Просмотр исходного кода

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

liujt 7 месяцев назад
Родитель
Сommit
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['工作流任务分配自定义脚本']
       await this.getDictList(this.dictEnum['工作流任务分配自定义脚本']);
       await this.getDictList(this.dictEnum['工种类型']);
+      await this.getDictList(this.dictEnum['协同办公分类']);
     },
     mounted() {
       //this.isRight = false
@@ -967,9 +968,15 @@ this.postOptions.push(...response.data);
         this.form.valueJson = await this.generateFormValid();
         this.form.processType = '1';
         console.log('formformformform', this.form);
+        console.log('this.form.dictList', this.dictList);
         await processInstanceCreateAPI({
           ...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.$emit('reload');