|
@@ -448,12 +448,9 @@ export default {
|
|
|
},
|
|
|
// 选择供应商,查询合同
|
|
|
async changeClient(value) {
|
|
|
- console.log('查合同');
|
|
|
- console.log(value);
|
|
|
let res = await this.treatyQuery({ client: value });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `treatyList`, res.data);
|
|
|
- console.log(this.treatyList);
|
|
|
}
|
|
|
},
|
|
|
// 选择合同,查询项目
|
|
@@ -478,12 +475,12 @@ export default {
|
|
|
},
|
|
|
//是否有供应商
|
|
|
async isTreaty() {
|
|
|
- console.log(this.detailForm.out_bill);
|
|
|
+ // console.log(this.detailForm.out_bill);
|
|
|
let outList = this.detailForm.out_bill;
|
|
|
for (let item of outList) {
|
|
|
- if (item.client) {
|
|
|
- this.changeClient(item.client);
|
|
|
- }
|
|
|
+ if (item.client) this.changeClient(item.client);
|
|
|
+ if (item.treaty) this.changeTreaty(item.treaty);
|
|
|
+ if (item.item) this.changeItem(item.item);
|
|
|
}
|
|
|
// if (this.detailForm.client) this.changeClient(this.detailForm.client);
|
|
|
// if (this.detailForm.treaty) this.changeTreaty(this.detailForm.treaty);
|