Bladeren bron

fix(bpm): 修复成品入库数据映射与重复提交问题

- 为成品入库详情补充包装单位字段映射
- 移除审核按钮重复的 v-click-once 指令
- 修复仓库管理员申请出库时重复触发加载状态的问题
- 统一审批接口的加载状态管理,确保 finally 中关闭 loading
yusheng 2 dagen geleden
bovenliggende
commit
6f9ca1fa18

+ 2 - 1
src/views/bpm/handleTask/components/productionWarehousing/detailDialog.vue

@@ -224,7 +224,8 @@
               productName: item.categoryName,
               productCode: item.categoryCode,
               productId: item.categoryId,
-              packingQuantity: item.packingCount
+              packingQuantity: item.packingCount,
+              packingUnit:item.packingUnit||item.measuringUnit
             };
           });
         }

+ 5 - 4
src/views/bpm/handleTask/components/selectedCollectionOutbound/submit.vue

@@ -23,7 +23,6 @@
         type="success"
         size="mini"
         :loading="isLoading"
-        v-click-once
         @click="handleAudit(1)"
         v-if="taskDefinitionKey != 'storeman'"
         >通过
@@ -33,7 +32,6 @@
         type="success"
         size="mini"
         :loading="isLoading"
-        v-click-once
         @click="handleAudit(1)"
         v-if="taskDefinitionKey == 'storeman'"
         >申请出库
@@ -128,9 +126,9 @@
         if (this.taskDefinitionKey === 'storeman' && !!status) {
           // 入库来源isSkip 0-正常  1-外部(外部跳过内部审核流程)
           storageData.isSkip = 1;
-          console.log(storageData);
+          this.isLoading = true;
+
           try {
-            this.isLoading = true;
             const res = await storageApi.outStorage(storageData);
             if (res.code == 0) {
               let API = !!status ? approveTaskWithVariables : rejectTask;
@@ -172,6 +170,7 @@
           pass: !!status
         };
         let API = !!status ? approveTaskWithVariables : rejectTask;
+        this.isLoading = true;
         API({
           id: this.taskId,
           reason: this.form.reason,
@@ -183,6 +182,8 @@
               title: status === 0 ? '驳回' : ''
             });
           }
+        }).finally(() => {
+          this.isLoading = false;
         });
       },
       //更多