From 50fb58286ed3b718c39a97e0987ee7561a295651 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 04 七月 2025 17:56:41 +0800
Subject: [PATCH] git ch

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

diff --git a/company/src/components/enterprise/importEmployees.vue b/company/src/components/enterprise/importEmployees.vue
index 45550ff..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')
       }
@@ -123,6 +129,7 @@
         .then(res => {
           res.forEach(item => {
             item.memberName = item.name
+            item.reducePrice = item.fee
           })
           this.delList = res
           this.fileName = e.target.files[0].name

--
Gitblit v1.9.3