فهرست منبع

feat(processSubmitDialog): 添加协同办公分类审批列表显示字段

liujt 7 ماه پیش
والد
کامیت
4851e367cf
1فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 8 1
      src/BIZComponents/processSubmitDialog/processSubmitDialog.vue

+ 8 - 1
src/BIZComponents/processSubmitDialog/processSubmitDialog.vue

@@ -577,6 +577,7 @@ this.postOptions.push(...response.data);
       //this.dictEnum['工作流任务分配自定义脚本']
       //this.dictEnum['工作流任务分配自定义脚本']
       await this.getDictList(this.dictEnum['工作流任务分配自定义脚本']);
       await this.getDictList(this.dictEnum['工作流任务分配自定义脚本']);
       await this.getDictList(this.dictEnum['工种类型']);
       await this.getDictList(this.dictEnum['工种类型']);
+      await this.getDictList(this.dictEnum['协同办公分类']);
     },
     },
     mounted() {
     mounted() {
       //this.isRight = false
       //this.isRight = false
@@ -967,9 +968,15 @@ this.postOptions.push(...response.data);
         this.form.valueJson = await this.generateFormValid();
         this.form.valueJson = await this.generateFormValid();
         this.form.processType = '1';
         this.form.processType = '1';
         console.log('formformformform', this.form);
         console.log('formformformform', this.form);
+        console.log('this.form.dictList', this.dictList);
         await processInstanceCreateAPI({
         await processInstanceCreateAPI({
           ...this.form,
           ...this.form,
-          variables: { ...this.form.valueJson }
+          variables: { 
+            ...this.form.valueJson, 
+            businessCode: this.form.key,
+            businessName: this.form.name,
+            businessType: this.dictList['collaborative_type']?.find(item => item.value == this.form.dictType)?.label
+          }
         });
         });
         this.$message('提交审核成功');
         this.$message('提交审核成功');
         this.$emit('reload');
         this.$emit('reload');