update 流程完善-审批意见
This commit is contained in:
+7
-1
@@ -127,7 +127,7 @@ import ProcessDetailList from '@comp/ProcessDetailList'
|
||||
import InspectionPlanTable from '@views/workCenter/enterpriseStandardInspectionPlan/modules/InspectionPlanTable'
|
||||
import UserSelection from '@comp/selection/UserSelection'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import { EsInspectionPlan, ProcessKey } from '@/enums/commonEnums'
|
||||
import { ApprovalOpinions, EsInspectionPlan, ProcessKey } from '@/enums/commonEnums'
|
||||
import {
|
||||
approvalInspectPlan,
|
||||
getInspectPlanDetail,
|
||||
@@ -459,6 +459,8 @@ export default {
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
console.log(res)
|
||||
// 审批意见
|
||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||
return startInspectPlan(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
@@ -491,6 +493,8 @@ export default {
|
||||
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
|
||||
res.processApprovalRecord.commitText = '同意'
|
||||
}
|
||||
// 审批意见
|
||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||
return approvalInspectPlan(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
@@ -518,6 +522,8 @@ export default {
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
res.map.pass = false
|
||||
// 审批意见
|
||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
|
||||
return rejectInspectPlan(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user