From ac02e562a1dadfa2a0f7b8e6f2d0a066522d7d3b Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 11 六月 2026 14:52:06 +0800
Subject: [PATCH] refactor(workOrder): 重构工单管理页面为父子表格结构
---
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