Ver Fonte

fix(exceptionManagement): 修复采购订单异常列表物品清单未正确返回的问题

liujt há 8 meses atrás
pai
commit
7f8ffb171a

+ 3 - 0
src/views/saleManage/saleOrder/exceptionManagement/components/addOrEditDialog.vue

@@ -235,6 +235,7 @@
       receiveTListDialog
     },
     props: {
+      // 1: 销售订单, 2: 采购订单
       relationType: {
         default: 1
       }
@@ -490,6 +491,7 @@
         }
       },
       async changeParent(data) {
+        console.log('data~~~~~~', this.relationType, data);
         if (this.relationType == 1) {
           const res = await getSendSaleOrderConfirmDetail(data.id);
           this.form.relationCode = res.docNo;
@@ -503,6 +505,7 @@
           this.form.relationId = res.id;
           res.productList = res.productList.map((item) => {
             item['clientCode'] = item.supplierMark;
+            return item;
           });
 
           this.form.relationName =