From c935ca9c67f391615c63dadf822c45e6eb8be4f0 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期一, 18 五月 2026 11:56:36 +0800
Subject: [PATCH] fix(form): 修正表单字段绑定和初始化问题

---
 src/views/productionManagement/productionOrder/components/MaterialDetailDialog.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/productionManagement/productionOrder/components/MaterialDetailDialog.vue b/src/views/productionManagement/productionOrder/components/MaterialDetailDialog.vue
index e9b2646..370815e 100644
--- a/src/views/productionManagement/productionOrder/components/MaterialDetailDialog.vue
+++ b/src/views/productionManagement/productionOrder/components/MaterialDetailDialog.vue
@@ -55,14 +55,15 @@
                              controls-position="right"
                              placeholder="杈撳叆瀹為檯鏁伴噺"
                              style="width: 100%;"
-                             :disabled="row.returned"
+                             :disabled="row.returned || orderRow?.end"
                              @change="val => handleActualQtyChange(row, val)" />
           </template>
         </el-table-column>
       </el-table>
       <template #footer>
         <span class="dialog-footer">
-          <el-button type="warning"
+          <el-button v-if="!orderRow?.end"
+                     type="warning"
                      :loading="materialReturnConfirming"
                      :disabled="!canOpenReturnSummary"
                      @click="openReturnSummaryDialog">

--
Gitblit v1.9.3