From 01a4f6341f6fe4806f45cf7a4c7b3bc450a6a0e0 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 07 五月 2026 16:08:53 +0800
Subject: [PATCH] feat(AIChatSidebar): 添加文件上传预览和消息中文件显示功能

---
 src/views/productionManagement/productionOrder/components/MaterialLedgerDialog.vue |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/views/productionManagement/productionOrder/components/MaterialLedgerDialog.vue b/src/views/productionManagement/productionOrder/components/MaterialLedgerDialog.vue
index 991f2a1..210dbba 100644
--- a/src/views/productionManagement/productionOrder/components/MaterialLedgerDialog.vue
+++ b/src/views/productionManagement/productionOrder/components/MaterialLedgerDialog.vue
@@ -49,11 +49,8 @@
           </template>
         </el-table-column>
         <!-- 鎵瑰彿澶氶�� -->
-        <el-table-column min-width="200">
-          <template #header>
-            <span style="color: #f56c6c; margin-right: 4px;">*</span>
-            <span>鎵瑰彿</span>
-          </template>
+        <el-table-column min-width="200"
+                         label="鎵瑰彿">
           <template #default="{ row }">
             <el-select v-model="row.batchNo"
                        multiple
@@ -313,8 +310,8 @@
       item =>
         !item.operationName ||
         !item.materialName ||
-        !item.batchNo ||
-        item.batchNo.length === 0 ||
+        (Number(item.pickQty) > 0 &&
+          (!item.batchNo || item.batchNo.length === 0)) ||
         item.demandedQuantity === null ||
         item.demandedQuantity === undefined ||
         item.pickQty === null ||

--
Gitblit v1.9.3