Commit 7c3a787d authored by 祁正's avatar 祁正

出差申请-通过

parent 6e06efbf
...@@ -80,6 +80,8 @@ export function projectCostReimbursementNotPass(query) { ...@@ -80,6 +80,8 @@ export function projectCostReimbursementNotPass(query) {
}) })
} }
// 3.出差申请审批
//出差申请-通过 //出差申请-通过
export function tripApplicationApproval(query) { export function tripApplicationApproval(query) {
return request({ return request({
...@@ -88,15 +90,6 @@ export function tripApplicationApproval(query) { ...@@ -88,15 +90,6 @@ export function tripApplicationApproval(query) {
data:query data:query
}) })
} }
// 3.出差申请审批
//出差申请审批-通过
export function tripApplicationPass(query) {
return request({
url: '/expenseApproval/tripApplicationApproval',
method: 'post',
data:query
})
}
//出差申请审批-驳回 //出差申请审批-驳回
export function tripApplicationPassNotPass(query) { export function tripApplicationPassNotPass(query) {
return request({ return request({
......
...@@ -167,24 +167,23 @@ ...@@ -167,24 +167,23 @@
<!-- 驳回弹出框--> <!-- 驳回弹出框-->
<el-dialog style="width: 745px;height: 300px;margin-top: 300px" :fullscreen="true" v-model="dialogFormVisible" title="驳回" > <el-dialog style="width: 745px;height: 300px;margin-top: 300px" :fullscreen="true" v-model="dialogFormVisible" title="驳回" >
<template #header> <template #header>
<div class="text_weight">驳回<el-divider /></div> <div class="text_weight">驳回<el-divider /></div>
</template> </template>
<div style="padding: 5px;display: flex;flex-direction:column;"> <div style="padding: 5px;display: flex;flex-direction:column;">
<div class="text">驳回原因</div> <div class="text">驳回原因</div>
<div style="width: 95%;margin-top:10px"> <el-input :rows="3" type="textarea" v-model="form.name" placeholder="请输入驳回原因" /></div> <div style="width: 95%;margin-top:10px"> <el-input v-model="rejectObj.groundsForRejection" :rows="3" type="textarea" placeholder="请输入驳回原因" /></div>
</div> </div>
<template #footer> <template #footer>
<div style="position: absolute;left: 35%;display: flex"> <div style="position: absolute;left: 35%;display: flex">
<el-button @click="dialogFormVisible = false" class="btn-B">取消</el-button> <el-button @click="cancelReject" class="btn-B">取消</el-button>
<el-button @click="dialogFormVisible" class="btn-A" type="primary">确定</el-button> <el-button @click="sureReject" class="btn-A" type="primary">确定</el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
</template> </template>
<script setup > <script setup >
...@@ -196,8 +195,9 @@ import {ElMessage} from "element-plus"; ...@@ -196,8 +195,9 @@ import {ElMessage} from "element-plus";
import { import {
getApproveNodeList, getApproveNodeList,
getProjectName, getProjectName,
getRoleId, projectCostReimbursementNotPass, getRoleId,
tripApplicationApproval tripApplicationApproval,
tripApplicationPassNotPass
} from "../../../../api/examineAndApprove/examineAndApprove.js"; } from "../../../../api/examineAndApprove/examineAndApprove.js";
const { project_status,cost_daily_status,project_type} = proxy.useDict('project_status', 'cost_daily_status','project_type'); const { project_status,cost_daily_status,project_type} = proxy.useDict('project_status', 'cost_daily_status','project_type');
...@@ -356,7 +356,6 @@ const handleHover = (row, column, cell, event) => { ...@@ -356,7 +356,6 @@ const handleHover = (row, column, cell, event) => {
if (timer) { if (timer) {
clearTimeout(timer); clearTimeout(timer);
} }
console.log(row)
timer = setTimeout(() => { timer = setTimeout(() => {
changProjectNumber.value = row.projectNumber changProjectNumber.value = row.projectNumber
let i = allList.value.findIndex((item)=>item.nodeId === row.currentAuditRoleId) let i = allList.value.findIndex((item)=>item.nodeId === row.currentAuditRoleId)
...@@ -389,7 +388,6 @@ const oneClickPass = ()=>{ ...@@ -389,7 +388,6 @@ const oneClickPass = ()=>{
} }
//通过 //通过
const passProjectCost = (row)=>{ const passProjectCost = (row)=>{
console.log(row)
let currentAuditRoleId = row.currentAuditRoleId let currentAuditRoleId = row.currentAuditRoleId
//获取currentAuditRoleId的下标 //获取currentAuditRoleId的下标
let index = allList.value.findIndex(item=>item.nodeId === currentAuditRoleId) let index = allList.value.findIndex(item=>item.nodeId === currentAuditRoleId)
...@@ -435,19 +433,19 @@ const sureReject = ()=>{ ...@@ -435,19 +433,19 @@ const sureReject = ()=>{
//如果是一键驳回 //如果是一键驳回
let list = passObjList.map((item)=>{ let list = passObjList.map((item)=>{
return { return {
tripApplicationId:item.id, tripApplicationId:item.tripApplicationId,
groundsForRejection:rejectObj.groundsForRejection groundsForRejection:rejectObj.groundsForRejection
} }
}) })
projectCostReimbursementNotPass(list).then(res=>{ tripApplicationPassNotPass(list).then(res=>{
dialogFormVisible.value = false dialogFormVisible.value = false
cancelReject() cancelReject()
getList() getList()
}) })
}else { }else {
//不是一键驳回 //不是一键驳回
projectCostReimbursementNotPass([rejectObj]).then(res=>{ tripApplicationPassNotPass([rejectObj]).then(res=>{
dialogFormVisible.value = false dialogFormVisible.value = false
cancelReject() cancelReject()
getList() getList()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment