update 流程完善-审批意见
This commit is contained in:
+7
-1
@@ -108,7 +108,7 @@ import ProcessDetailList from '@comp/ProcessDetailList'
|
||||
import InspectionProcessTable
|
||||
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessTable'
|
||||
import UserSelectModal from '@comp/selection/UserSelectModal'
|
||||
import { EsInspectionProcess, ProcessKey } from '@/enums/commonEnums'
|
||||
import { ApprovalOpinions, EsInspectionProcess, ProcessKey } from '@/enums/commonEnums'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import {
|
||||
approvalInspectProcess,
|
||||
@@ -388,6 +388,8 @@ export default {
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
console.log(res)
|
||||
// 审批意见
|
||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||
return startInspectProcess(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
@@ -415,6 +417,8 @@ export default {
|
||||
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
|
||||
res.processApprovalRecord.commitText = '同意'
|
||||
}
|
||||
// 审批意见
|
||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||
return approvalInspectProcess(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
@@ -442,6 +446,8 @@ export default {
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
res.map.pass = false
|
||||
// 审批意见
|
||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
|
||||
return rejectInspectProcess(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user