From 1e72942aa4848ae4835e7f30bb4adc01f9ce5bdc Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 23 二月 2024 11:45:58 +0800
Subject: [PATCH] mrshi
---
company/src/components/enterprise/selectEmployees.vue | 36 +++++++++++++++++++++++++++++++-----
1 files changed, 31 insertions(+), 5 deletions(-)
diff --git a/company/src/components/enterprise/selectEmployees.vue b/company/src/components/enterprise/selectEmployees.vue
index d2cb3da..c74f776 100644
--- a/company/src/components/enterprise/selectEmployees.vue
+++ b/company/src/components/enterprise/selectEmployees.vue
@@ -51,9 +51,13 @@
components: { GlobalWindow },
data () {
return {
+ type: '',
val: '',
list: [],
price: '',
+ insuranceApplyId: '',
+ notInInsuranceApplyId: '',
+ validTime: '',
seleData: [],
oldList: []
}
@@ -66,8 +70,24 @@
},
methods: {
open (title, obj) {
+ this.insuranceApplyId = ''
+ this.notInInsuranceApplyId = ''
+ this.val = ''
this.price = obj.price
this.oldList = obj.arr
+ if (obj.type) {
+ this.type = obj.type
+ }
+ this.list = []
+ if (obj.insuranceApplyId) {
+ this.insuranceApplyId = obj.insuranceApplyId
+ }
+ if (obj.notInInsuranceApplyId) {
+ this.notInInsuranceApplyId = obj.notInInsuranceApplyId
+ }
+ if (obj.validTime) {
+ this.validTime = obj.validTime
+ }
this.title = title
this.visible = true
this.getList()
@@ -88,10 +108,13 @@
this.seleData.forEach(item => {
item.idCard = item.idcardNo
item.memberName = item.name
- item.workTypeName = ''
- item.worktypeId = ''
- item.duId = ''
- item.duName = ''
+ item.memberId = item.id
+ if (this.notInInsuranceApplyId || this.type == 1) {
+ item.workTypeName = ''
+ item.worktypeId = ''
+ item.duId = ''
+ item.duName = ''
+ }
item.fee = this.price
})
this.$emit('result', this.seleData)
@@ -102,7 +125,10 @@
},
getList() {
findListByDTO({
- name: this.val
+ name: this.val,
+ insuranceApplyId: this.insuranceApplyId,
+ notInInsuranceApplyId: this.notInInsuranceApplyId,
+ validTime: this.validTime
}).then(res => {
res.forEach(item => {
item.fee = ''
--
Gitblit v1.9.3