From ffb5bb3a68ae74ed3a1765baf946336cead3bb0d Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期一, 23 六月 2025 09:00:37 +0800
Subject: [PATCH] 货位同侧移库,干膜货位大小托分配优化,WCS任务接收优化等

---
 代码管理/淮安PDA/pages/stash/receiveorderoutbound.vue |   72 ++++++++++++++++++++----------------
 1 files changed, 40 insertions(+), 32 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/receiveorderoutbound.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/receiveorderoutbound.vue"
index c8b5f39..050df38 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/receiveorderoutbound.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/receiveorderoutbound.vue"
@@ -9,7 +9,7 @@
 					<!-- <uni-forms-item label="鍗曟嵁绫诲瀷锛氱敓浜ч鏂欏崟" style="margin-top: -20px;"></uni-forms-item> -->
 					<uni-forms-item label="鍐呯鐮侊細" style="margin-top: -20px;">
 						<uni-easyinput type="text" placeholder="璇锋壂鎻忓唴绠辩爜" ref='midInput' :focus="!focus"
-							v-model="innerCode" @input="innercodeInput" />
+							v-model="innerCode" @confirm="innercodeInput" />
 					</uni-forms-item>
 					<uni-forms-item :label="PurchaseOrderNo" style="margin-top: -20px;"></uni-forms-item>
 					<uni-forms-item :label="matCode" style="margin-top: -20px;"></uni-forms-item>
@@ -58,6 +58,8 @@
 									<view>鏀惰揣鍗曞彿锛歿{orderNo}}</view>
 									<view>閲囪喘鍗曞彿锛歿{item.purchaseOrderNo}}</view>
 									<view>鐗╂枡缂栧彿锛歿{item.materielCode}}</view>
+									<view>鐗╂枡鍚嶇О锛歿{item.materielName}}</view>
+									<view>鐗╂枡瑙勬牸锛歿{item.materielSpec}}</view>
 									<view>鎵规鍙凤細{{item.lotNo}}</view>
 									<view>鏀惰揣鏁伴噺锛歿{item.receivedQuantity}}</view>
 									<view>鏄惁璐ㄦ锛歿{item.ifInspection==1?"鏄�":"鍚�"}}</view>
@@ -262,10 +264,10 @@
 				this.itemCode = itemCode;
 				this.$refs.inputDialog.open()
 			},
-			voiceSpeech(src) {
-				innerAudioContext.src = src; // '../../static/success.mp3';
-				innerAudioContext.play();
-			},
+			// voiceSpeech(src) {
+			// 	innerAudioContext.src = src; // '../../static/success.mp3';
+			// 	innerAudioContext.play();
+			// },
 			search() {
 				this.getData();
 			},
@@ -520,36 +522,42 @@
 						return;
 					}
 					var innerCode = this.innerCode;
+					//灏唅nnerCode,SC鍚庨潰鐨勮繘琛屾浛鎹㈢┖
+					if(this.warehouseId==11){
+						innerCode=innerCode.replace(/,SC.*/, '');
+					}
+					
+					if(innerCode.indexOf("POHA")>0){
+						this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + innerCode, {}).then((res) => {
+							if (res.status) {
+								this.sns = res.data.serialNumber;
+								// this.matInfos.splice(0, this.matInfos.length);
+								// this.matInfos.push(res.data);
+								this.matCode = "鐗╂枡缂栫爜锛�" + res.data.materielCode;
+								this.LotNo = "鐗╂枡鎵规锛�" + res.data.lotNo;
+								this.PurchaseOrderNo = "閲囪喘鍗曞彿锛�" + res.data.purchaseOrderNo;
+								this.EffectiveDate = "鏈夋晥鏃ユ湡锛�" + res.data.effectiveDate;
+								this.ProductionDate = "鐢熶骇鏃ユ湡锛�" + res.data.productionDate;
+								this.orderQty = "璁㈠崟鏁伴噺锛�" + res.data.quantity;
+								this.Quantity = res.data.quantity;
+								// setTimeout(() => {
+								// 	this.voiceSpeech('../../static/success.mp3');
+								// }, 100);
+							} else {
+								this.$refs.uToast.show({
+									title: res.message,
+									type: "error"
+								})
+								// setTimeout(() => {
+								// 	this.voiceSpeech('../../static/fail.mp3');
+								// }, 100);
+							}
+						})
+					}
 					setTimeout(() => {
 						this.innerCode = "";
 						this.focus=true;
-					}, 1);
-
-					this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + innerCode, {}).then((res) => {
-						if (res.status) {
-							this.sns = res.data.serialNumber;
-							// this.matInfos.splice(0, this.matInfos.length);
-							// this.matInfos.push(res.data);
-							this.matCode = "鐗╂枡缂栫爜锛�" + res.data.materielCode;
-							this.LotNo = "鐗╂枡鎵规锛�" + res.data.lotNo;
-							this.PurchaseOrderNo = "閲囪喘鍗曞彿锛�" + res.data.purchaseOrderNo;
-							this.EffectiveDate = "鏈夋晥鏃ユ湡锛�" + res.data.effectiveDate;
-							this.ProductionDate = "鐢熶骇鏃ユ湡锛�" + res.data.productionDate;
-							this.orderQty = "璁㈠崟鏁伴噺锛�" + res.data.quantity;
-							this.Quantity = res.data.quantity;
-							setTimeout(() => {
-								this.voiceSpeech('../../static/success.mp3');
-							}, 100);
-						} else {
-							this.$refs.uToast.show({
-								title: res.message,
-								type: "error"
-							})
-							setTimeout(() => {
-								this.voiceSpeech('../../static/fail.mp3');
-							}, 100);
-						}
-					})
+					}, 100);
 				})
 			},
 			tagInput() {

--
Gitblit v1.9.3