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