guhongwei 4 سال پیش
والد
کامیت
07b92ac8c0
1فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 6 6
      src/views/order/transport/index.vue

+ 6 - 6
src/views/order/transport/index.vue

@@ -116,7 +116,7 @@
                     <span v-else-if="form.supply_type == '1'">
                       <el-form-item label="供应商">
                         <el-select v-model="form.supplier.client" placeholder="供应商" @change="changeClient">
-                          <el-option v-for="item in clientList" :key="item.label" :label="item.name" :value="item.id"> </el-option>
+                          <el-option v-for="item in supClientList" :key="item.label" :label="item.name" :value="item.id"> </el-option>
                         </el-select>
                       </el-form-item>
                       <el-form-item label="合同">
@@ -303,7 +303,7 @@ export default {
         this.$set(this, `clientList`, data);
       }
       // 查供应商
-      res = await this.clientQuery({ type: '客户' });
+      res = await this.clientQuery({ type: '供应商' });
       if (this.$checkRes(res)) {
         const { data, total } = res;
         this.$set(this, `supClientList`, data);
@@ -396,22 +396,22 @@ export default {
       else return value;
     },
     // 选择供应商,查询合同
-    async changeClient() {
-      let res = await this.treatyQuery({ type: '供应商' });
+    async changeClient(value) {
+      let res = await this.treatyQuery({ client: value });
       if (this.$checkRes(res)) {
         this.$set(this, `treatyList`, res.data);
       }
     },
     // 选择合同,查询项目
     async changeTreaty(value) {
-      let res = await this.projectQuery({ client: value });
+      let res = await this.projectQuery({ treaty: value });
       if (this.$checkRes(res)) {
         this.$set(this, `itemList`, res.data);
       }
     },
     // 选择项目,查询线路
     async changeItem(value) {
-      let res = await this.routeQuery({ treaty: value });
+      let res = await this.routeQuery({ project: value });
       if (this.$checkRes(res)) {
         this.$set(this, `supRouteList`, res.data);
       }