user5 hace 2 años
padre
commit
78abbe12ae
Se han modificado 1 ficheros con 12 adiciones y 1 borrados
  1. 12 1
      src/views/modules/flowable/task/TaskForm.vue

+ 12 - 1
src/views/modules/flowable/task/TaskForm.vue

@@ -147,8 +147,12 @@
         }
       }
        // 读取按钮配置
-      if (this.status === 'start') {
+      if (this.status === 'start') {  // 送审
         this.buttons = [{code: '_flow_start', name: '启动', isHide: '0'}]
+      } else if (this.status === 'startAndClose') { // 送审、关闭
+        this.buttons = [{code: '_flow_start', name: '送审', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
+      } else if (this.status === 'startAndHold') {  // 送审、暂存、关闭
+        this.buttons = [{code: '_flow_start', name: '送审', isHide: '0'}, {code: '_flow_save', name: '暂存', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
       } else if (this.procDefKey && this.taskDefKey) {
         // 读取按钮
         this.taskDefExtensionService.queryByDefIdAndTaskId({
@@ -352,6 +356,10 @@
       print () {
 
       },
+      // 关闭
+      close () {
+
+      },
       // 自定义按钮提交
       commit (vars) {
         if (this.formType === '2') { // 外置表单
@@ -431,6 +439,9 @@
           case '_flow_print':// 打印
             this.print()
             break
+          case '_flow_close':// 打印
+            this.close()
+            break
           default:
             this.commit(vars) // 自定义按钮提交
         }