|
|
@@ -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 =
|