Quellcode durchsuchen

fix: 优化受托收货单MBOM数据处理逻辑,修正产品分类ID字段名并启用批次号生成

yusheng vor 9 Monaten
Ursprung
Commit
7c45624785

+ 4 - 4
src/views/saleManage/saleOrder/entrustedReceive/components/addOrEditDialog.vue

@@ -273,7 +273,7 @@
             if (productList && productList.length > 0) {
               productList.forEach((v) => {
                 let arr = v.saleOrderProductBomList.map((item) => {
-                  item.productCategoryId = item.categoryLevelPathIdParent;
+                  item.categoryRootLevelId = item.categoryLevelPathIdParent;
                   item.productCode = item.categoryCode;
                   item.productId = item.categoryId;
                   item.productName = item.categoryName;
@@ -284,9 +284,9 @@
                 // v.orderTotalCount = v.orderTotalCount || v.totalCount;
                 // v.batchNo = await getCode('lot_number_code');
               });
-              // mbomCategoryList.forEach(async (v) => {
-              //   v.batchNo = await getCode('lot_number_code');
-              // });
+             await mbomCategoryList.forEach(async (v) => {
+                v.batchNo = await getCode('lot_number_code');
+              });
             }
             console.log(mbomCategoryList,'mbomCategoryList')
             this.form = Object.assign({}, this.form, {