From 54711af2bf3b5746f11497e5435a2950305bbde8 Mon Sep 17 00:00:00 2001 From: wanghao Date: Mon, 12 Jan 2026 13:32:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms):=20=E8=87=AA=E5=BB=BA=E7=89=A9?= =?UTF-8?q?=E6=96=99=E6=98=BE=E7=A4=BA=E6=89=80=E5=B1=9E=E9=83=A8=E9=97=A8?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E7=BB=B4=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/inStockBill/index.vue | 8 +++++--- src/views/wms/wmsBaseProduct/index.vue | 25 ++++++++++++++++++++----- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/views/wms/inStockBill/index.vue b/src/views/wms/inStockBill/index.vue index 152bbee..74db667 100644 --- a/src/views/wms/inStockBill/index.vue +++ b/src/views/wms/inStockBill/index.vue @@ -219,7 +219,7 @@
添加入库物料
- 选择物料 + 选择物料

已选择的物料:

@@ -353,11 +353,14 @@ const getProjectName = (projectId) => { const project = projectInfoList.value.find((item) => item.projectId === projectId); return project ? project.projectCode : projectId; }; +// 添加物料选择loading状态 +const productSelectLoading = ref(false); // 处理物料选择回调 const handleProductSelect = async (products) => { // 重置所有的物料 // selectedProducts.value = products; // 为每个物料添加批次号 + productSelectLoading.value = true; const timestamp = parseTime(new Date(), '{y}{m}{d}'); for (const material of products) { // 生成批次号:供应商代码 + 时间戳 @@ -372,6 +375,7 @@ const handleProductSelect = async (products) => { const res = await getWmsInventoryDetailbyProductId(material.productId); material.inventoryAmount = res.data?.inventoryAmount || 0; } + productSelectLoading.value = false; selectedProducts.value.push(...products); }; @@ -396,8 +400,6 @@ const inStockBillFormRef = ref(); const addFormRef = ref(); - - // 计算总价 const calculateTotalPrice = (material) => { if (material.unitPrice && material.inStockAmount) { diff --git a/src/views/wms/wmsBaseProduct/index.vue b/src/views/wms/wmsBaseProduct/index.vue index 196ee49..1726f3b 100644 --- a/src/views/wms/wmsBaseProduct/index.vue +++ b/src/views/wms/wmsBaseProduct/index.vue @@ -68,7 +68,7 @@ - +