From 2122e30c435e4287a035162aee4469a8e558f408 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 22 四月 2026 13:43:56 +0800
Subject: [PATCH] 新增采购详情和产品明细展示功能
---
src/pages/inventoryManagement/scanIn/index.vue | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/pages/inventoryManagement/scanIn/index.vue b/src/pages/inventoryManagement/scanIn/index.vue
index 6502574..f68ebd5 100644
--- a/src/pages/inventoryManagement/scanIn/index.vue
+++ b/src/pages/inventoryManagement/scanIn/index.vue
@@ -303,6 +303,11 @@
item.operateQuantity = String(Math.max(0, n));
};
+ const hasEditableInboundItems = computed(() => {
+ if (!recordList.value?.length) return false;
+ return recordList.value.some(item => !isFullyStocked(item));
+ });
+
const formatCell = (item, row, idx) => {
if (row.key === "index") {
const v = item.index;
@@ -426,6 +431,10 @@
modal.msgError("缂哄皯璁㈠崟淇℃伅锛岃閲嶆柊鎵爜");
return;
}
+ if (!hasEditableInboundItems.value) {
+ modal.msgError("璇ヤ骇鍝佸凡缁忓叏閮ㄥ叆搴�");
+ return;
+ }
const salesLedgerProductList = buildSalesLedgerProductList(recordList.value);
if (!hasAnyPositiveStockedQty(salesLedgerProductList)) {
modal.msgError("璇疯嚦灏戝~鍐欎竴琛屽ぇ浜� 0 鐨勫叆搴撴暟閲�");
@@ -438,10 +447,10 @@
return;
}
const runApi = currentSubmitConfig.runApi;
- const inboundApproveUserIds = stockApproverNodes.value.map(node => node.userId).join(",");
+ const approveUserIds = stockApproverNodes.value.map(node => node.userId).join(",");
const payload = currentSubmitConfig.payloadBuilder(
salesLedgerProductList,
- inboundApproveUserIds
+ approveUserIds
);
try {
submitLoading.value = true;
--
Gitblit v1.9.3