From 62d69c142e8d6b6d5b9ccc2f1247a0a9d74ed789 Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Thu, 11 Jul 2024 22:25:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E6=8F=8F=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bo-page-cart-scan-tmp.vue | 7 ++-- .../bo-page-fajian-scan-tmp.vue | 9 +++-- components/tpx-scan-input/tpx-scan-input.vue | 36 +++++++++++++------ .../tpx-scroll-view/tpx-scroll-view.vue | 9 ++++- pages/deliveryDeal/arriveList.vue | 20 +++++++---- pages/deliveryDeal/paiList.vue | 20 +++++++---- pages/deliveryDeal/pickUp.vue | 14 ++++---- pages/deliveryDeal/sendList.vue | 20 +++++++---- pages/deliveryDeal/signedScanning.vue | 8 ++--- pages/post/openorder.vue | 12 ++++--- pages/post/query.vue | 10 +++--- pages/print/courierNote.vue | 4 +-- pages/tabBar/order/order.vue | 25 ++++++++----- pages/tms/coPackingScanning.vue | 12 +++---- pages/tms/unpackingScanning.vue | 9 +++-- 15 files changed, 134 insertions(+), 81 deletions(-) diff --git a/components/buns-order-templates/bo-page-cart-scan-tmp.vue b/components/buns-order-templates/bo-page-cart-scan-tmp.vue index bb54453..eae0cb7 100644 --- a/components/buns-order-templates/bo-page-cart-scan-tmp.vue +++ b/components/buns-order-templates/bo-page-cart-scan-tmp.vue @@ -5,7 +5,7 @@ + @scanChange="handleScanValChange" :showConfirm="true" @confirmClick="handleScanValChange" iconPos="left"> @@ -120,9 +120,8 @@ initData() { this.submitParam.billCode = this.queryOption.billCode }, - async handleSubmit(val) { + async handleSubmit() { let extParam = {} - val && (extParam.billCode = val); await checkParams(this.submitParam, this.submitValidConfig) // 转换图片格式 extParam.picUrl = this.submitParam.picUrl.join(",") @@ -136,7 +135,7 @@ } }, handleScanValChange: debounce(function(val){ - val && (this.handleSubmit(val)) + this.handleSubmit() }), resetForm() { this.submitParam.billCode = '' diff --git a/components/buns-order-templates/bo-page-fajian-scan-tmp.vue b/components/buns-order-templates/bo-page-fajian-scan-tmp.vue index 0248fda..b7a6be5 100644 --- a/components/buns-order-templates/bo-page-fajian-scan-tmp.vue +++ b/components/buns-order-templates/bo-page-fajian-scan-tmp.vue @@ -5,7 +5,7 @@ + @scanChange="handleScanValChange" :showConfirm="true" @confirmClick="handleScanValChange" iconPos="left"> @@ -99,9 +99,8 @@ initData() { this.submitParam.billCode = this.queryOption.billCode }, - async handleSubmit(val) { + async handleSubmit() { let extParam = {} - val && (extParam.billCode = val); await checkParams(this.submitParam, this.submitValidConfig) let scnParam = getScanParams(scanTypeEnum.faJian, { ...this.submitParam, ...extParam }) let res = await apiService.scanRecord({...scnParam, _loading: true}) @@ -112,8 +111,8 @@ this.resetForm() } }, - handleScanValChange: debounce(function(val){ - val && (this.handleSubmit(val)) + handleScanValChange: debounce(function(){ + this.handleSubmit() }), resetForm() { this.submitParam.billCode = '' diff --git a/components/tpx-scan-input/tpx-scan-input.vue b/components/tpx-scan-input/tpx-scan-input.vue index e737f1a..f3ba111 100644 --- a/components/tpx-scan-input/tpx-scan-input.vue +++ b/components/tpx-scan-input/tpx-scan-input.vue @@ -1,16 +1,22 @@ @@ -50,6 +56,11 @@ return '' } }, + showConfirm:{ + default () { + return false + } + }, }, data() { }, @@ -77,6 +88,9 @@ handleScanChange(val){ this.$emit('scanChange', val) this.handleChange(val) + }, + handleConfirm(){ + this.$emit('confirmClick') } } } diff --git a/components/tpx-scroll-view/tpx-scroll-view.vue b/components/tpx-scroll-view/tpx-scroll-view.vue index 2fb2b18..d4dc5ee 100644 --- a/components/tpx-scroll-view/tpx-scroll-view.vue +++ b/components/tpx-scroll-view/tpx-scroll-view.vue @@ -26,7 +26,9 @@ watch: { searchParam: { handler: function(cval, oval) { - this.getDataList(true) + if(this.autoReload) { + this.getDataList(true) + } }, deep: true } @@ -41,6 +43,11 @@ } }, props: { + autoReload: { + default () { + return true + } + }, searchParam: { default () { return {} diff --git a/pages/deliveryDeal/arriveList.vue b/pages/deliveryDeal/arriveList.vue index 726fc41..6a4afca 100644 --- a/pages/deliveryDeal/arriveList.vue +++ b/pages/deliveryDeal/arriveList.vue @@ -4,14 +4,14 @@