Selaa lähdekoodia

🐞 fix(【drp-采购需求单】): 物料编码被修改之后需要清空采购员

一、业务现状 1、输入物料编码无法联查出物料相关字段信息 2、新增选择物料或导入成功后,修改物料编码,没有更新物料相关字段信息 二、解决方案 1、输入和变更物料编码更新相关字段

20240513235     -v2
002390 1 vuosi sitten
vanhempi
commit
a8e8cb9f77
1 muutettua tiedostoa jossa 18 lisäystä ja 3 poistoa
  1. 18 3
      src/views/purchase/PurchaseDemandList/add.vue

+ 18 - 3
src/views/purchase/PurchaseDemandList/add.vue

@@ -3185,14 +3185,29 @@ export default {
             storageCondition: "storageCondition", // 存储条件
             storageCondition: "storageCondition", // 存储条件
             classifyId: "classifyId",
+            deliveryWarehouse: null,
+            deliveryWarehouseName: null, // 收货仓库
+            deliveryAllocation: null,
+            deliveryAllocationName: null, // 收货货位
+            deliveryAddress: null,
+            deliveryAddressName: null, // 收货地址
+            buyer: null,
+            buyerName: null, // 采购员
+            deliveryDate: null, // 交货日期
+            averageQtyMonth: null, // 月均销量
+            demandPeriod: null, // 需求可用周期
           };
 
           let { billType } = this.basicForm;
-          row.isUrgency = billType == "JJXQ" ? "Y" : "N";
-          row.isReplenishment = billType == "BDXQ" ? "Y" : "N";
+          row.isUrgency = billType == "JJXQ" ? "Y" : "N"; // 紧急标识
+          row.isReplenishment = billType == "BDXQ" ? "Y" : "N"; // 补单标识
 
           for (const key in fieldObject) {
-            row[key] = source[fieldObject[key]];
+            if (fieldObject[key]) {
+              row[key] = source[fieldObject[key]];
+            } else {
+              row[key] = null;
+            }
           }
         } else {
           row.materialCode = null;