From 6be8b9f43be3670473ddfaebafe18a1be644ca1d Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 05 五月 2025 16:06:14 +0800 Subject: [PATCH] 组托问题修复 --- pages/rece/other.vue | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/pages/rece/other.vue b/pages/rece/other.vue index 69359a8..8fe6ce0 100644 --- a/pages/rece/other.vue +++ b/pages/rece/other.vue @@ -90,7 +90,8 @@ <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" :step='1'></uni-number-box> + <uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty" + :step='1'></uni-number-box> </view> </view> <view class="content" v-else> @@ -159,8 +160,8 @@ </view> <view class="cu-bar btn-group foot" v-show="isconfirm"> - <button class="cu-btn text-blue line-blue shadow" @click="prev">涓婁竴姝�</button> - <button class="cu-btn bg-blue shadow-blur" @click="confirm(false)">鏀惰揣</button> + <button class="cu-btn text-blue line-blue shadow" @click="prev">涓婁竴姝�</button> + <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm(false)">鏀惰揣</button> </view> </view> @@ -184,7 +185,9 @@ whAreaId: '', list: [], range: [], - isconfirm: false + repeatClick: false, + isconfirm: false, + max: 99999999 } }, computed: { @@ -248,12 +251,13 @@ prev() { this.isconfirm = false }, - selChange(val) { - console.log('-------->') + selChange(val) { + console.log('-------->') console.log(val) uni.setStorageSync('whAreaId', val) }, - async complete(id) { + async complete(id) { + this.repeatClick = true const { code, data, @@ -269,7 +273,8 @@ title: msg, icon: "none", }) - } + } + this.repeatClick = false }, async confirm(isCom) { if (this.whAreaId === '') { -- Gitblit v1.9.1