From fcfd8688b635646f08880082a59a26b56dab540d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 16 三月 2026 18:01:21 +0800
Subject: [PATCH] 军泰伟业 1.发货台账逻辑改为可分批发货

---
 src/views/basicData/product/index.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue
index 5a243a3..24a4659 100644
--- a/src/views/basicData/product/index.vue
+++ b/src/views/basicData/product/index.vue
@@ -130,6 +130,7 @@
       title="浜у搧瀵煎叆"
       width="600px"
       @cancel="importDia = false"
+      @confirm="submitImport"
     >
       <el-upload
         ref="importUploadRef"
@@ -156,11 +157,6 @@
           </div>
         </template>
       </el-upload>
-      <template #footer>
-        <div class="dialog-footer">
-          <el-button type="primary" @click="submitImport">纭瀵煎叆</el-button>
-        </div>
-      </template>
     </FormDialog>
   </div>
 </template>
@@ -227,7 +223,12 @@
     label: "浜у搧灞炴��",
     prop: "productType",
     width: 100,
+    dataType: "tag",
     formatData: (v) => ({ "1": "鑷埗", "2": "澶栬喘", "3": "濮斿" }[String(v)] ?? v),
+    formatType: (v) => {
+      const typeMap = { "1": "success", "2": "warning", "3": "info" };
+      return typeMap[String(v)] || "info";
+    },
   },
   {
     dataType: "action",

--
Gitblit v1.9.3