From 76b64433947bcb72ee922f890a9e1a7cbe409ea0 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 12 六月 2026 13:53:08 +0800
Subject: [PATCH] fix(production): 修复生产订单状态更新逻辑
---
src/views/productionManagement/productionOrder/components/PurchaseRequestDialog.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/views/productionManagement/productionOrder/components/PurchaseRequestDialog.vue b/src/views/productionManagement/productionOrder/components/PurchaseRequestDialog.vue
index 0000c26..88d2a28 100644
--- a/src/views/productionManagement/productionOrder/components/PurchaseRequestDialog.vue
+++ b/src/views/productionManagement/productionOrder/components/PurchaseRequestDialog.vue
@@ -144,11 +144,12 @@
form.value.ccUserName = "";
// 灏嗗簱瀛樹笉瓒崇殑浜у搧濉厖鍒拌〃鏍�
+ // 鍏煎棰嗘枡鍜岃ˉ鏂欑殑鏁版嵁缁撴瀯
tableData.value = props.insufficientItems.map((item) => ({
tempId: generateTempId(),
- productModelId: item.materialModelId,
- productName: item.materialName,
- model: item.materialModel,
+ productModelId: item.materialModelId || item.productModelId,
+ productName: item.materialName || item.productName,
+ model: item.materialModel || item.model,
unit: item.unit,
quantity: Math.max(1, Math.ceil((item.demandedQuantity || 0) - (item.stockQuantity || 0))),
}));
--
Gitblit v1.9.3