From 560c7dcc7e222c58dc18f0d641055b62596fd33a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 08 六月 2026 16:08:43 +0800
Subject: [PATCH] 中兴实强 1.消耗工序下拉框数据只查了10条问题
---
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