From 8e4eb05471b2c6935accdbcda455e7d895736473 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 06 五月 2025 13:10:09 +0800
Subject: [PATCH] no message
---
pages/rece/other.vue | 24 ++++++++++++++----------
1 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/pages/rece/other.vue b/pages/rece/other.vue
index 3166479..8fe6ce0 100644
--- a/pages/rece/other.vue
+++ b/pages/rece/other.vue
@@ -3,9 +3,9 @@
<form>
<view class="cu-form-group margin-top" v-show="!isconfirm">
<view class="title">ASN鍗曞彿</view>
- <input placeholder="璇锋壂鎻廇SN鍗曞彿" v-model="asncode" focus></input>
+ <input placeholder="璇锋壂鎻廇SN鍗曞彿" v-model="asncode" @input="search" focus></input>
<text class='cuIcon-close text-gray margin-right-xs' v-show="asncode!==''" @click="clearCode"></text>
- <text class='cuIcon-search text-blue' @click="search"></text>
+ <!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
</view>
<view class="cu-form-group" v-show="!isconfirm">
<view class="title">鐗╂枡鏍囩</view>
@@ -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>
- <input type="number" placeholder="璇疯緭鍏ユ暟閲�" v-model="item.receiptQty"></input>
+ <uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty"
+ :step='1'></uni-number-box>
</view>
</view>
<view class="content" v-else>
@@ -160,8 +161,7 @@
<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(true)">鏀惰揣骞跺畬鎴�</button>
- <button class="cu-btn bg-blue shadow-blur" @click="confirm(false)">鏀惰揣</button>
+ <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm(false)">鏀惰揣</button>
</view>
</view>
@@ -185,7 +185,9 @@
whAreaId: '',
list: [],
range: [],
- isconfirm: false
+ repeatClick: false,
+ isconfirm: false,
+ max: 99999999
}
},
computed: {
@@ -249,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,
@@ -270,7 +273,8 @@
title: msg,
icon: "none",
})
- }
+ }
+ this.repeatClick = false
},
async confirm(isCom) {
if (this.whAreaId === '') {
--
Gitblit v1.9.1