From 56edbd80963acea41d9b9737bb9264f57a6e4ae2 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 19 十一月 2024 09:13:41 +0800
Subject: [PATCH] 优化

---
 company/src/components/enterprise/importEmployees.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/company/src/components/enterprise/importEmployees.vue b/company/src/components/enterprise/importEmployees.vue
index a61616f..8e3f2df 100644
--- a/company/src/components/enterprise/importEmployees.vue
+++ b/company/src/components/enterprise/importEmployees.vue
@@ -48,7 +48,8 @@
       applyId: null,
       addList: [],
       delList: [],
-      fileName: ''
+      fileName: '',
+      hasDispatchUnit: null
     }
   },
   methods: {
@@ -63,6 +64,7 @@
       this.applyId = obj.insuranceApplyId
       this.list = obj.arr
       this.price = obj.price
+      this.hasDispatchUnit = obj.hasDispatchUnit
       this.importing= false
       this.confirming= false
     },
@@ -70,7 +72,11 @@
     exportTemplate () {
       // 鎶曚繚鐢宠
       if (this.type === 1) {
-        window.open('/template/personnel_add.xlsx')
+        if (this.hasDispatchUnit === 1) {
+          window.open('/template/personnel_no.xlsx')
+        } else {
+          window.open('/template/personnel_add.xlsx')
+        }
       } else {
         window.open('/template/personnel_reduce.xlsx')
       }

--
Gitblit v1.9.3