Explorar o código

同意并结束

shenqilong hai 1 ano
pai
achega
2516bf31b6
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  1. 6 3
      src/business/platform/bpmn/form/action.js

+ 6 - 3
src/business/platform/bpmn/form/action.js

@@ -4,8 +4,6 @@ import { startFlow, saveDraft } from '@/api/platform/bpmn/bpmInst'
 import { saveFormData } from '@/api/platform/data/dataTemplate'
 import { changeCompleteTime, replenishSnapshot } from '@/api/platform/bpmn/bpmInstHis'
 import Print from '@/utils/print'
-import request from '@/business/platform/form/utils/custom/joinCURD.js'
-import { snapshoot } from '@/api/platform/file/attachment'
 
 export default {
     methods: {
@@ -35,7 +33,12 @@ export default {
             this.submitFormOpinion = this.getFormOpinionData()
             switch (buttonType) {
                 case 'agree':// 同意
-                    this.setData()
+                // 判断是否最后一步流程
+                    if (this.actionTitle === '同意并结束' || this.actionTitle === '提交并结束') {
+                        this.setData('已完成')
+                    } else {
+                        this.setData()
+                    }
                     // if (this.isHide()) {
                     this.handleDirectActionEvent(actionName)
                     // } else {