From fef3e6cff4cdd0adfc9aa7e420256fea89620ee9 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期三, 25 六月 2025 13:29:49 +0800 Subject: [PATCH] # --- pages/outbound/fastPicking.vue | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 50 insertions(+), 3 deletions(-) diff --git a/pages/outbound/fastPicking.vue b/pages/outbound/fastPicking.vue index 667ab7b..44fa013 100644 --- a/pages/outbound/fastPicking.vue +++ b/pages/outbound/fastPicking.vue @@ -9,11 +9,11 @@ </view> </form> - <view class="cu-form-group" v-show="isClickItem"> + <!-- <view class="cu-form-group" v-show="isClickItem"> <view class="title">QR鐮�</view> <input placeholder="璇锋壂鎻廞R鐮�" v-model="QRbarcode" ></input> - </view> + </view> --> <view class="cu-list det menu sm-border padding"> @@ -76,7 +76,7 @@ <view class="cu-bar btn-group foot" > <button class="cu-btn text-blue line-blue shadow" @click="clear">娓呯┖</button> - <button class="cu-btn bg-blue shadow-blur" @click="next">鎻愪氦</button> + <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="complete">鎻愪氦纭</button> </view> @@ -109,6 +109,7 @@ backgroundColor: '#42b983', borderColor: '#42b983' }, + repeatClick: false } }, computed: { @@ -170,6 +171,52 @@ }, + async complete() { + let that = this + if(that.barcode === '' || that.barcode === null){ + uni.showToast({ + title: "瀹瑰櫒鍙蜂负绌�", + icon: "error", + }) + return ; + } + if(that.list === [] || that.list.length === 0){ + uni.showToast({ + title: "鎷h揣鏄庣粏涓虹┖", + icon: "error", + }) + return ; + } + that.repeatClick = true + const { + code, + data, + msg + } = await request('/saveOutTaskSts/'+that.barcode,{}, 'get') + if (code === 200) { + uni.showToast({ + title: msg, + icon: "success" + }) + that.clear() + + }else if(code == 401){ + setTimeout(() => { + uni.removeStorageSync('token'); + uni.reLaunch({ + url: "/pages/login/login" + }); + }, 1000); + }else { + uni.showToast({ + title: msg, + icon: "none", + position: 'top' + }) + } + that.repeatClick = false + + }, clearCode() { this.barcode = '' }, -- Gitblit v1.9.1