|
|
@@ -64,6 +64,8 @@ export default {
|
|
|
},
|
|
|
spanArr: [],
|
|
|
type: '',
|
|
|
+ // 来源类型(1需求/2计划/3核价/4合同),已采下钻时由订单物料清单传入
|
|
|
+ sourceRelationType: '',
|
|
|
datasource: []
|
|
|
};
|
|
|
},
|
|
|
@@ -170,8 +172,10 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- async open(row, type) {
|
|
|
+ async open(row, type, sourceRelationType) {
|
|
|
this.type = type
|
|
|
+ // 来源类型(1需求/2计划/3核价/4合同),仅已采下钻使用:后端按它区分已采口径
|
|
|
+ this.sourceRelationType = sourceRelationType
|
|
|
await this.getInquiryData(row, type);
|
|
|
this.getSpanArr()
|
|
|
},
|
|
|
@@ -184,6 +188,9 @@ export default {
|
|
|
batchNo: row.batchNo,
|
|
|
relationIds: this.type != 5 ? (row[arrName] || []) : ([...row.requirementIds, ...row.planIds, ...row.inquiryIds, ...row.contractIds] || [])
|
|
|
}
|
|
|
+ if (this.type == 5) {
|
|
|
+ params.sourceRelationType = this.sourceRelationType
|
|
|
+ }
|
|
|
this.loading = true;
|
|
|
try {
|
|
|
this.datasource = await getProductsNumberDetail(params);
|