From 2853abadc405f42aef8d2bf03722281fa3fb91c2 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 09 十月 2026 14:12:20 +0800
Subject: [PATCH] fix: 允许下发数量超出
---
src/views/productionPlan/productionPlan/index.vue | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/src/views/productionPlan/productionPlan/index.vue b/src/views/productionPlan/productionPlan/index.vue
index ada7beb..c8b52c8 100644
--- a/src/views/productionPlan/productionPlan/index.vue
+++ b/src/views/productionPlan/productionPlan/index.vue
@@ -135,7 +135,6 @@
<el-form-item label="鐢熶骇鏁伴噺">
<el-input-number v-model="mergeForm.totalAssignedQuantity"
:min="0"
- :max="sumAssignedQuantity"
@change="onBlur"
style="width: 100%" />
</el-form-item>
@@ -432,8 +431,6 @@
mergeForm.planCompleteTime = row.requiredDate || "";
mergeForm.productId = row.productId || "";
mergeForm.ids = [row.id];
- sumAssignedQuantity.value =
- Number(row.qtyRequired || 0) - Number(row.quantityIssued || 0);
isShowNewModal.value = true;
},
},
@@ -723,7 +720,6 @@
};
// 鎷夊彇鏁版嵁鎸夐挳鎿嶄綔
const loadProdDataLoading = ref(false);
- const sumAssignedQuantity = ref(0);
// 澶勭悊鍚堝苟涓嬪彂鎸夐挳鐐瑰嚮
const handleMerge = () => {
@@ -740,8 +736,6 @@
return sum + Number(row.qtyRequired || 0) - Number(row.quantityIssued || 0);
}, 0); // 閬垮厤娴偣鏁扮簿搴﹂棶棰橈紙濡� 37.800000000000004锛�
const fixedTotal = Number(totalAssignedQuantity.toFixed(10));
- sumAssignedQuantity.value = fixedTotal;
- console.log(fixedTotal);
// 璁剧疆琛ㄥ崟鏁版嵁
mergeForm.productName = productName;
mergeForm.model = firstRow.model || "";
@@ -766,13 +760,6 @@
const handleMergeSubmit = () => {
if (mergeForm.totalAssignedQuantity === 0) {
ElMessage.warning("璇疯緭鍏ョ敓浜ф暟閲�");
- return;
- }
- console.log(sumAssignedQuantity.value, "sumAssignedQuantity");
-
- // 楠岃瘉totalAssignedQuantity涓嶈兘澶т簬鎬绘柟鏁�
- if (mergeForm.totalAssignedQuantity > sumAssignedQuantity.value) {
- ElMessage.error("鐢熶骇鏁伴噺涓嶈兘澶т簬褰撳墠璁$畻鐨勬�诲��");
return;
}
--
Gitblit v1.9.3