wxy 4 年之前
父節點
當前提交
06b261dafa
共有 1 個文件被更改,包括 4 次插入7 次删除
  1. 4 7
      src/views/order/out.vue

+ 4 - 7
src/views/order/out.vue

@@ -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);