From fdf7bb595ee00e5fef7b4e110fbe32f637c069f6 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期一, 18 八月 2025 08:38:46 +0800
Subject: [PATCH] 1
---
项目代码/龙利得PDA/pages/stash/boxing.vue | 79 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 76 insertions(+), 3 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/\351\276\231\345\210\251\345\276\227PDA/pages/stash/boxing.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/\351\276\231\345\210\251\345\276\227PDA/pages/stash/boxing.vue"
index 917db35..4e9fa6a 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/\351\276\231\345\210\251\345\276\227PDA/pages/stash/boxing.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/\351\276\231\345\210\251\345\276\227PDA/pages/stash/boxing.vue"
@@ -46,6 +46,23 @@
</uni-forms>
</view>
</view>
+ <view v-if="current === 2" class="headerstyle" >
+ <view class="itemstyle">
+ <uni-forms label-width="120">
+ <uni-forms-item label="鎵樼洏鏉$爜">
+ <uni-easyinput type="text" :focus="!addressEmptyFocus" v-model="emptyCode"
+ placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" ref='midInput' @confirm="inputChangeemptyCode" />
+ </uni-forms-item>
+ <uni-forms-item label="鍦板潃鏉$爜">
+ <uni-easyinput type="text" v-model="addressEmpty"
+ placeholder="璇锋壂鎻忓湴鍧�鏉$爜" ref='midInput' :focus="addressEmptyFocus" />
+ </uni-forms-item>
+ <uni-forms-item>
+ <button @click="inEmpty" type="primary" size="default" style="margin-top: 2%;">鍏ュ簱纭</button>
+ </uni-forms-item>
+ </uni-forms>
+ </view>
+ </view>
</view>
<u-toast ref="uToast" />
</view>
@@ -71,6 +88,9 @@
orderNo: "",
warehouseId: "",
Test: false,
+ emptyCode: "",
+ addressEmpty: "",
+ addressEmptyFocus: false,
}
},
onShow() {},
@@ -81,6 +101,10 @@
if (this.warehouseId == 1) {
this.items=['缁勭洏'];
}
+ if (this.warehouseId == 2) {
+ this.items=['绌虹洏鍏ュ簱'];
+ this.current=2;
+ }
},
methods: {
barcodeInput() {
@@ -89,6 +113,54 @@
this.focus = true;
}
})
+ },
+ inputChangeemptyCode() {
+ if (this.emptyCode.length > 0) {
+ this.addressEmptyFocus = true;
+ } else {
+ this.addressEmptyFocus = false;
+ }
+ },
+ inEmpty(){
+ if (this.emptyCode == "") {
+ this.$refs.uToast.show({
+ title: "璇锋壂鎻忔墭鐩樻潯鐮�",
+ type: "error"
+ })
+ return;
+ }
+ if (this.addressEmpty == "") {
+ this.$refs.uToast.show({
+ title: "璇锋壂鎻忓湴鍧�鏉$爜",
+ type: "error"
+ })
+ return;
+ }
+ var url="?barCode="+this.emptyCode+"&startPoint="+this.addressEmpty;
+ this.$u.post('/api/Task/EmptyBackTask'+url, {}).then(res => {
+ if (res.status) {
+ this.emptyCode = "";
+ this.addressEmpty="";
+ //鑾峰彇鎬绘暟閲�
+ setTimeout(() => {
+ this.addressEmptyFocus = false;
+ this.$refs.uToast.show({
+ title: "鎴愬姛",
+ type: "success"
+ })
+ }, 200);
+ } else {
+ this.$refs.uToast.show({
+ title: res.message,
+ type: "error"
+ })
+ }
+ }).catch(err => {
+ this.$refs.uToast.show({
+ title: err.message,
+ type: "error"
+ })
+ })
},
inbound() {
if (this.inboundBarcode == "") {
@@ -166,9 +238,10 @@
})
this.focus = false;
this.barcode = "";
- this.matInfos = [];
- this.sns = [];
- this.matTotal = [];
+ this.materSn = "";
+ this.wide = "";
+ this.weight = "";
+ this.thickness = "";
} else {
this.$refs.uToast.show({
title: res.message,
--
Gitblit v1.9.3