diff --git a/klp-ui/src/components/KLPService/CustomerSelect/index.vue b/klp-ui/src/components/KLPService/CustomerSelect/index.vue index 0ce3c7c7..12d5bd76 100644 --- a/klp-ui/src/components/KLPService/CustomerSelect/index.vue +++ b/klp-ui/src/components/KLPService/CustomerSelect/index.vue @@ -1,5 +1,5 @@ @@ -21,6 +21,10 @@ style: { type: Object, default: () => ({}) + }, + pager: { + type: Boolean, + default: true } }, computed: { @@ -51,7 +55,7 @@ methods: { remoteSearchCustomer(query) { this.customerLoading = true; - listCustomer({ companyName: query, pageNum: 1, pageSize: 10 }).then(response => { + listCustomer({ companyName: query, pageNum: 1, pageSize: this.pager ? 10 : 10000 }).then(response => { this.customerList = response.rows; }).finally(() => { this.customerLoading = false; diff --git a/klp-ui/src/components/KLPService/OrderSelect/index.vue b/klp-ui/src/components/KLPService/OrderSelect/index.vue index 4d2068ef..efe07f99 100644 --- a/klp-ui/src/components/KLPService/OrderSelect/index.vue +++ b/klp-ui/src/components/KLPService/OrderSelect/index.vue @@ -2,11 +2,11 @@ { + this.options = res.rows.map(item => ({ + value: item.orderId, + label: item.orderCode + })) + }).catch(error => { + console.error('订单加载失败:', error) + }).finally(() => { + this.loading = false + }) + } + }, methods: { remoteMethod(query) { if (query !== '') { this.loading = true listPurchaseOrder({ pageNum: 1, - pageSize: 10, + pageSize: this.pager ? 10 : 10000, orderCode: query }).then(res => { this.loading = false