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

修复委托收货表单供应商数据映射问题,优化入库流程供应商代号逻辑

yusheng 9 месяцев назад
Родитель
Сommit
fb8e6c4302

+ 6 - 0
src/views/bpm/handleTask/components/saleOrder/entrustedReceive/boxTabPage.vue

@@ -170,6 +170,12 @@
         const data = await getPSaleEntrustedReceiveDetailAPI(id);
         if (data) {
           this.form = deepClone(data);
+          this.form.supplierId = data.contactId;
+          this.form.supplierName = data.contactName;
+          this.form.productList = this.form.productList.map((item) => {
+            item.supplierMark = item.customerMark;
+            return item;
+          });
           console.log(this.form);
         }
       }

+ 2 - 2
src/views/bpm/stockManagement/storage.vue

@@ -1589,9 +1589,9 @@
                 brandNum: item.brandNum, // 牌号
                 batchNo: batchNo, // 批次号
                 supplierListOptions: supplierList[item.id], // 供应商列表
-                supplierId: this.form.supplierId, // 供应商id
+                supplierId:this.form.supplierId, // 供应商id
                 supplierCode:
-                  this.bizType == 2
+                  this.bizType == 2||this.bizType == 7
                     ? filtersItem.supplierMark
                     : item.supplierCode, // 供应商代号
                 supplierName: this.form.supplierName, // 供应商名称