From 6b35989783d91899169f89e21a7d3734d8cadc1d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期日, 04 一月 2026 15:19:54 +0800
Subject: [PATCH] 1.海川开心

---
 src/views/productionManagement/productionReporting/components/formDia.vue |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/views/productionManagement/productionReporting/components/formDia.vue b/src/views/productionManagement/productionReporting/components/formDia.vue
index 2eb1c0b..ecb7d81 100644
--- a/src/views/productionManagement/productionReporting/components/formDia.vue
+++ b/src/views/productionManagement/productionReporting/components/formDia.vue
@@ -4,6 +4,7 @@
         v-model="dialogFormVisible"
         title="鐢熶骇鎶ュ伐"
         width="70%"
+				draggable
         @close="closeDia"
     >
       <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
@@ -107,6 +108,7 @@
   form: {
 		successNum: "",
 		schedulingNum: "",
+    pendingNum: "",
 		finishedNum: "",
 		schedulingUserId: "",
 		schedulingDate: "",
@@ -127,6 +129,12 @@
 		userList.value = res.data;
 	});
 	form.value = {...row}
+  const total = Number(row?.schedulingNum ?? 0);
+  const pendingFinish = Number(row?.pendingFinishNum ?? 0);
+  const autoFill = pendingFinish > 0 ? Math.min(pendingFinish, total) : total;
+  form.value.finishedNum = autoFill;
+  form.value.pendingNum = Math.max(total - autoFill, 0);
+  changeNum(form.value.finishedNum);
 }
 
 const changeNum = (value) => {

--
Gitblit v1.9.3