From fc925561cfcd7416ae6a5fec9f32b45633146f2b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 24 十二月 2025 09:53:44 +0800
Subject: [PATCH] 1.海川开心-自动派工修改
---
src/views/productionManagement/productionDispatching/components/autoDispatchDia.vue | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/src/views/productionManagement/productionDispatching/components/autoDispatchDia.vue b/src/views/productionManagement/productionDispatching/components/autoDispatchDia.vue
index b4a76f6..bfbc5ca 100644
--- a/src/views/productionManagement/productionDispatching/components/autoDispatchDia.vue
+++ b/src/views/productionManagement/productionDispatching/components/autoDispatchDia.vue
@@ -17,13 +17,13 @@
>
<el-table-column label="搴忓彿" type="index" width="60" align="center" />
<el-table-column label="鍚堝悓鍙�" prop="salesContractNo" width="200" />
- <el-table-column label="瀹㈡埛鍚嶇О" prop="customerName" width="200" />
+ <el-table-column label="瀹㈡埛鍚嶇О" prop="customerName"/>
<!-- <el-table-column label="椤圭洰鍚嶇О" prop="projectName" width="250" /> -->
<el-table-column label="浜у搧澶х被" prop="productCategory" width="150" />
<el-table-column label="瑙勬牸鍨嬪彿" prop="specificationModel" width="200" />
- <el-table-column label="缁戝畾鏈哄櫒" prop="speculativeTradingName" width="120" />
+ <el-table-column label="缁戝畾鏈哄櫒" prop="speculativeTradingName"/>
<el-table-column label="鎬绘暟閲�" prop="quantity" width="100" align="right" />
- <el-table-column label="宸叉帓浜�" prop="schedulingNum" width="100" align="right" fixed="right" />
+<!-- <el-table-column label="宸叉帓浜�" prop="schedulingNum" width="100" align="right" fixed="right" />-->
<el-table-column label="寰呮帓浜�" prop="pendingQuantity" width="100" align="right" fixed="right" />
<el-table-column label="鏈鎺掍骇" width="150" align="center" fixed="right">
<template #default="{ row }">
@@ -92,11 +92,17 @@
dialogFormVisible.value = true;
// 澶勭悊浼犲叆鐨勬暟鎹�
- dispatchList.value = rows.map(row => ({
- ...row,
- schedulingNum: 0, // 鍒濆鍖栨湰娆℃帓浜ф暟閲忎负0
- pendingQuantity: (Number(row.quantity) || 0) - (Number(row.schedulingNum) || 0) // 璁$畻寰呮帓浜ф暟閲�
- }))
+ dispatchList.value = rows.map(row => {
+ const quantity = Number(row.quantity) || 0;
+ const scheduledNum = Number(row.schedulingNum) || 0; // 宸叉帓浜ф暟閲�
+ const pendingQuantity = quantity - scheduledNum; // 璁$畻寰呮帓浜ф暟閲�
+
+ return {
+ ...row,
+ schedulingNum: pendingQuantity, // 鏈鎺掍骇鏁伴噺鍒濆鍖栦负寰呮帓浜ф暟閲忥紙鎺掓弧锛�
+ pendingQuantity: pendingQuantity // 寰呮帓浜ф暟閲�
+ }
+ })
}
// 鎻愪氦琛ㄥ崟
--
Gitblit v1.9.3