From a66223eef2cc3c8a35ffa8aaef613008a3abdb31 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期五, 17 七月 2026 23:44:01 +0800
Subject: [PATCH] 优化盘点库存盘点
---
pages/wareHouse/inventory/index.vue | 31 +++++++++++++++++++++++--------
1 files changed, 23 insertions(+), 8 deletions(-)
diff --git a/pages/wareHouse/inventory/index.vue b/pages/wareHouse/inventory/index.vue
index e03e877..8ac9af1 100644
--- a/pages/wareHouse/inventory/index.vue
+++ b/pages/wareHouse/inventory/index.vue
@@ -449,14 +449,29 @@
);
console.log("宸紓瀛楁:", diff);
console.log("鏄惁鏈夊樊寮�:", Object.keys(diff).length > 0);
- if (this.registerInfo.locationNo !== this.submitList.locationNo) {
- uni.showModal({
- title: "鎻愮ず",
- content: "鎵弿搴撲綅鍙蜂笌绯荤粺鏁版嵁涓嶄竴鑷�",
- showCancel: true,
- success: function (res) {},
- });
- return;
+ if (this.registerInfo.locationNo) {
+ // 杈撳叆浜嗗簱浣嶅彿锛氭牎楠岃緭鍏ュ�间笌绯荤粺鏁版嵁鏄惁涓�鑷�
+ if (this.registerInfo.locationNo !== this.submitList.locationNo) {
+ uni.showModal({
+ title: "鎻愮ず",
+ content: "鎵弿搴撲綅鍙蜂笌绯荤粺鏁版嵁涓嶄竴鑷�",
+ showCancel: true,
+ success: function (res) {},
+ });
+ return;
+ }
+ } else {
+ // 鏈緭鍏ュ簱浣嶅彿锛氭牎楠岀郴缁熷簱浣嶆槸鍚﹀睘浜庢垚鍝佸簱浣�
+ const finishedGoodsLocations = ["CD01", "CT01", "CY01", "ZF01"];
+ if (!finishedGoodsLocations.includes(this.submitList.locationNo)) {
+ uni.showModal({
+ title: "鎻愮ず",
+ content: "搴撲綅鍙蜂笉灞炰簬鎴愬搧搴撲綅锛圕D01銆丆T01銆丆Y01銆乑F01锛�",
+ showCancel: true,
+ success: function (res) {},
+ });
+ return;
+ }
}
if (Object.keys(diff).length > 0) {
if (diff.partNo) {
--
Gitblit v1.9.3