From b5d01891fbbd69d8d50d2b4fb562fac3130fc2d6 Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期一, 20 四月 2026 11:01:22 +0800
Subject: [PATCH] 虚拟出入库单据锁定
---
项目代码/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue | 43 +++++++++++++++++++++++++++++++++++++++++--
1 files changed, 41 insertions(+), 2 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue"
index 81601b6..1fe40a9 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue"
@@ -57,13 +57,14 @@
>
<el-select
v-model="form.locationType"
- placeholder="璇峰厛閫夋嫨浠撳簱"
+ placeholder="鑷姩鑾峰彇浠撳簱鍖哄煙"
clearable
filterable
@change="handleLocationChange"
style="width: 100%"
:loading="locationLoading"
size="medium"
+ :disabled="true"
>
<el-option
v-for="item in locationTypes"
@@ -752,6 +753,33 @@
});
},
+ fetchLocationByWarehouse(warehouseCode) {
+ if (!warehouseCode) {
+ this.form.locationType = null;
+ return;
+ }
+ this.locationLoading = true;
+ http.post(`/api/InboundOrder/GetLocationType?code=${warehouseCode}`)
+ .then(({ data }) => {
+ if (data) {
+ this.form.locationType = data.locationType || data;
+ if (!this.locationTypes.find(item => item.locationType === this.form.locationType)) {
+ this.locationTypes.push({
+ locationType: this.form.locationType,
+ locationTypeDesc: this.form.locationType
+ });
+ }
+ }
+ })
+ .catch((err) => {
+ console.error("鑾峰彇浠撳簱鍖哄煙澶辫触:", err);
+ this.$message.error("鑾峰彇浠撳簱鍖哄煙澶辫触锛岃閲嶈瘯");
+ this.form.locationType = null;
+ })
+ .finally(() => {
+ this.locationLoading = false;
+ });
+ },
// 鑾峰彇搴撳瓨缁熻
fetchStockStatistics(orderNo) {
if (!orderNo) {
@@ -923,6 +951,10 @@
this.isManualInput = true;
this.isScanning = false;
+ if (this.trayBarcode) {
+ this.trayBarcode = this.trayBarcode.replace(/\s+/g, "");
+ }
+
if (this.manualInputTimer) {
clearTimeout(this.manualInputTimer);
}
@@ -936,6 +968,10 @@
this.isManualInput = true;
this.isScanning = false;
+ if (this.barcode) {
+ this.barcode = this.barcode.replace(/\s+/g, "");
+ }
+
if (this.manualInputTimer) {
clearTimeout(this.manualInputTimer);
}
@@ -963,7 +999,9 @@
this.validateForm().then((valid) => {
if (!valid) return;
- const currentTrayBarcode = this.trayBarcode.trim();
+ let currentTrayBarcode = (this.trayBarcode || "").replace(/\s+/g, "").trim();
+
+ this.trayBarcode = currentTrayBarcode;
if (!currentTrayBarcode) {
this.error = "璇疯緭鍏ユ垨鎵弿鎵樼洏鏉$爜";
@@ -1239,6 +1277,7 @@
this.barcode = "";
this.materials = [];
this.error = "";
+ this.fetchLocationByWarehouse(this.form.warehouseType);
},
// 鍖哄煙鍒囨崲浜嬩欢
--
Gitblit v1.9.3