diff --git a/klp-ui/src/views/wms/purchasePlan/panels/detail.vue b/klp-ui/src/views/wms/purchasePlan/panels/detail.vue index 938bc3d6..31e6fbe9 100644 --- a/klp-ui/src/views/wms/purchasePlan/panels/detail.vue +++ b/klp-ui/src/views/wms/purchasePlan/panels/detail.vue @@ -156,13 +156,15 @@ + - + + - + @@ -284,7 +286,9 @@ export default { uploadQualityCertificateInfo: undefined, vendorList: [], - contractList: [] + vendorLoading: false, + contractList: [], + contractLoading: false }; }, computed: { @@ -295,8 +299,10 @@ export default { }, created() { this.getList(); - this.getVendorList(); - this.getContractList(); + this.remoteSearchVendor(''); + this.remoteSearchContract(''); + // this.getVendorList(); + // this.getContractList(); }, watch: { planId: { @@ -310,16 +316,33 @@ export default { } }, methods: { - getVendorList() { - listSupplier().then(response => { + // 默认执行一次 + remoteSearchVendor(query) { + this.vendorLoading = true; + listSupplier({ name: query, pageNum: 1, pageSize: 10 }).then(response => { this.vendorList = response.rows; + }).finally(() => { + this.vendorLoading = false; }); }, - getContractList() { - listContract({ type: 'purchase' }).then(response => { + remoteSearchContract(query) { + this.contractLoading = true; + listContract({ contractNo: query, pageNum: 1, pageSize: 10 }).then(response => { this.contractList = response.rows; + }).finally(() => { + this.contractLoading = false; }); }, + // getVendorList() { + // listSupplier().then(response => { + // this.vendorList = response.rows; + // }); + // }, + // getContractList() { + // listContract({ type: 'purchase' }).then(response => { + // this.contractList = response.rows; + // }); + // }, /** 查询采购计划明细列表 */ getList() { this.loading = true;