|
|
@ -189,13 +189,14 @@ const reapplyWorkFlow = (val:any) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
const butLoad = ref(false) |
|
|
/** |
|
|
/** |
|
|
@ 作者: 秦东 |
|
|
@ 作者: 秦东 |
|
|
@ 时间: 2024-11-20 15:44:03 |
|
|
@ 时间: 2024-11-20 15:44:03 |
|
|
@ 功能: 提交审批 |
|
|
@ 功能: 提交审批 |
|
|
*/ |
|
|
*/ |
|
|
const yesOrNo = (val:string,agreeOrRefuse:number) => { |
|
|
const yesOrNo = (val:string,agreeOrRefuse:number) => { |
|
|
|
|
|
butLoad.value = true; |
|
|
let sendInfo = { |
|
|
let sendInfo = { |
|
|
id:props.appPageInfo.runFlowIdStr, |
|
|
id:props.appPageInfo.runFlowIdStr, |
|
|
agreeOrRefuse:agreeOrRefuse, |
|
|
agreeOrRefuse:agreeOrRefuse, |
|
|
@ -213,7 +214,9 @@ const yesOrNo = (val:string,agreeOrRefuse:number) => { |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
.finally(()=>{ |
|
|
.finally(()=>{ |
|
|
|
|
|
butLoad.value = false; |
|
|
newAddPageData(); |
|
|
newAddPageData(); |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -306,8 +309,8 @@ defineExpose({ |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
|
<el-col :span="4"></el-col> |
|
|
<el-col :span="4"></el-col> |
|
|
<el-col :span="8" class="juzhong"><el-button type="primary" style="width:100%" @click="yesOrNo(props.flowKey,1)">同意</el-button></el-col> |
|
|
<el-col :span="8" class="juzhong"><el-button v-loading="butLoad" type="primary" style="width:100%" @click="yesOrNo(props.flowKey,1)">同意</el-button></el-col> |
|
|
<el-col :span="8" class="juzhong"><el-button type="danger" style="width:100%" @click="yesOrNo(props.flowKey,2)">驳回</el-button></el-col> |
|
|
<el-col :span="8" class="juzhong"><el-button v-loading="butLoad" type="danger" style="width:100%" @click="yesOrNo(props.flowKey,2)">驳回</el-button></el-col> |
|
|
<el-col :span="4"></el-col> |
|
|
<el-col :span="4"></el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
|
|