update 流程完善-审批意见
This commit is contained in:
+7
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user