From 6be8b9f43be3670473ddfaebafe18a1be644ca1d Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 05 五月 2025 16:06:14 +0800 Subject: [PATCH] 组托问题修复 --- pages/rece/other.vue | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/pages/rece/other.vue b/pages/rece/other.vue index 3de4a88..8fe6ce0 100644 --- a/pages/rece/other.vue +++ b/pages/rece/other.vue @@ -90,7 +90,7 @@ <view class="cu-form-group padding-lr-0"> <view class="title text-blue"><text class="text-red text-xl vertical-middle">*</text>鏀惰揣鏁伴噺:</view> - <uni-number-box style="width: 70%;" v-model="item.receiptQty" + <uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty" :step='1'></uni-number-box> </view> </view> @@ -186,7 +186,8 @@ list: [], range: [], repeatClick: false, - isconfirm: false + isconfirm: false, + max: 99999999 } }, computed: { @@ -237,7 +238,7 @@ this.list = [] this.barcode = '' }, - next(event) { + next() { if (this.list.length) { this.isconfirm = true } else { @@ -255,7 +256,8 @@ console.log(val) uni.setStorageSync('whAreaId', val) }, - async complete(id) { + async complete(id) { + this.repeatClick = true const { code, data, @@ -271,7 +273,8 @@ title: msg, icon: "none", }) - } + } + this.repeatClick = false }, async confirm(isCom) { if (this.whAreaId === '') { @@ -287,7 +290,7 @@ }; }).filter(el => el.receiptQty !== 0); - this.repeatClick = true + const { code, data, @@ -303,15 +306,13 @@ }) this.list = [] this.barcode = '' - this.isconfirm = false - this.repeatClick = false + this.isconfirm = false isCom && this.complete(data.id) } else { uni.showToast({ title: msg, icon: "none", }) - this.repeatClick = false } } }, -- Gitblit v1.9.1