Prechádzať zdrojové kódy

feat(审批流程): 添加发起人昵称到审批数据

liujt 8 mesiacov pred
rodič
commit
f8a8e62ca4

+ 6 - 2
src/views/bpm/handleTask/components/purchaseOrder/invoice/submit.vue

@@ -158,7 +158,10 @@
       },
       taskDefinitionKey: {
         default: ''
-      }
+      },
+      fromUser: {
+        default: ''
+      },
     },
     data() {
       return {
@@ -200,9 +203,10 @@
       async storeManagerApprove() {
         let res = await this.getTableValue();
         let storageData = res.returnStorageData;
-        console.log(storageData);
+        console.log('storeManagerApprove', storageData);
         // isSkip 0-正常  1-外部(外部跳过内部审核流程)
         storageData.isSkip = 1;
+        storageData.fromUser = this.fromUser;
         try {
           this.isSaveLoading = true;
           await storageApi.storage(storageData);

+ 1 - 0
src/views/bpm/handleTask/index.vue

@@ -51,6 +51,7 @@
               :businessId="listData?.businessId"
               :id="listData?.id"
               :taskDefinitionKey="listData?.taskDefinitionKey"
+              :fromUser="processInstance.startUser?.nickname"
               @handleAudit="handleAudit"
               @getTableValue="getTableValue"
               @handleUpdateAssignee="handleUpdateAssignee(item)"