From c2cdf0b95d4c9214646c860609b8c838d6ffa779 Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期五, 15 八月 2025 13:42:10 +0800 Subject: [PATCH] AGV,成品库代码更新上传 --- 项目代码/龙利得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