update 流程完善-审批意见

This commit is contained in:
danshihao
2023-12-12 19:24:34 +08:00
parent cc8f2945bc
commit 459594ec9b
8 changed files with 48 additions and 7 deletions
@@ -112,7 +112,7 @@ import {
approvalInspectRectify, getInspectRectifyDataById,
getInspectRectifyDetail, rejectInspectRectify, saveInspectRectify, transferInspectRectify
} from '@api/workCenter'
import { EsInspectionRectification, ProcessKey } from '@/enums/commonEnums'
import { ApprovalOpinions, EsInspectionRectification, ProcessKey } from '@/enums/commonEnums'
export default {
name: 'EnterpriseStandardInspectionRectification',
@@ -385,6 +385,8 @@ export default {
this.getPageParams().then(res => {
console.log(res)
res.map.pass = true
// 审批意见
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
return approvalInspectRectify(res)
}).then(res => {
if (res.success) {
@@ -412,6 +414,8 @@ export default {
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
res.processApprovalRecord.commitText = '同意'
}
// 审批意见
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
return approvalInspectRectify(res)
}).then(res => {
if (res.success) {
@@ -439,6 +443,8 @@ export default {
this.loading = true
this.getPageParams().then(res => {
res.map.pass = false
// 审批意见
res.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
return rejectInspectRectify(res)
}).then(res => {
if (res.success) {