From dbb4a755c136a32b1e0d6d045d95f11841f21d75 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期四, 24 七月 2025 17:01:32 +0800 Subject: [PATCH] # --- pages/outbound/wavePickItem.vue | 33 ++++++++++++++++++++++++++------- 1 files changed, 26 insertions(+), 7 deletions(-) diff --git a/pages/outbound/wavePickItem.vue b/pages/outbound/wavePickItem.vue index 16c4057..25f9817 100644 --- a/pages/outbound/wavePickItem.vue +++ b/pages/outbound/wavePickItem.vue @@ -1,10 +1,10 @@ <template> <view class="has-foot"> <form> - <view class="cu-form-group" v-show="!isconfirm"> + <!-- <view class="cu-form-group" v-show="!isconfirm"> <view class="title">娉㈡鍙�</view> <text class="text-black ">{{wave.code}}</text> - </view> + </view> --> <view class="cu-form-group" v-show="!isconfirm"> <view class="title">瀹瑰櫒鍙�</view> <input placeholder="璇锋壂鎻忓鍣ㄥ彿" v-model="barcode" focus></input> @@ -17,7 +17,7 @@ <view class="cu-list det menu sm-border padding"> - <block v-for="(item, index) in list" :key="index"> + <block v-for="(item, index) in list"> <view class="cu-list det menu "> @@ -70,7 +70,7 @@ <text class="text-gray">宸叉嫞鏁伴噺:<text class="text-black ">{{item2.qty}}</text></text> </view> </view> - <view class="cu-item"> + <view class="cu-item" v-show="item2.anfme !== item2.qty"> <view class="content"> <view class="cu-form-group padding-lr-0"> <view class="title text-blue"><text @@ -119,7 +119,7 @@ wave:'', list: [], isconfirm: false, - barcode:'80003642', + barcode:'', max: 99999999, repeatClick:false @@ -142,7 +142,7 @@ that.wave = data.data }) - this.search() + }, methods: { clear() { @@ -193,18 +193,37 @@ }, 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 ; + } this.repeatClick = true const { code, data, msg - } = await request('/saveWavePick',that.list) + } = await request('/saveWavePick',{ + container:that.barcode, + containerWaveDtos:that.list + }) if (code === 200) { uni.showToast({ title: msg, icon: "none", }) + that.clear() } else { uni.showToast({ title: msg, -- Gitblit v1.9.1