|  |  |  | 
|---|
|  |  |  | components: { GlobalWindow }, | 
|---|
|  |  |  | data () { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | type: '', | 
|---|
|  |  |  | val: '', | 
|---|
|  |  |  | list: [], | 
|---|
|  |  |  | price: '', | 
|---|
|  |  |  | insuranceApplyId: '', | 
|---|
|  |  |  | notInInsuranceApplyId: '', | 
|---|
|  |  |  | validTime: '', | 
|---|
|  |  |  | seleData: [], | 
|---|
|  |  |  | oldList: [] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | for (let i = 0; i < this.seleData.length; i++) { | 
|---|
|  |  |  | for (let a = 0; a < this.oldList.length; a++) { | 
|---|
|  |  |  | if (this.seleData[i].name === this.oldList[a].memberName || this.seleData[i].idCard === this.oldList[a].idcardNo) { | 
|---|
|  |  |  | // this.seleData[i].name === this.oldList[a].memberName || | 
|---|
|  |  |  | if (this.seleData[i].idCard === this.oldList[a].idcardNo) { | 
|---|
|  |  |  | this.$message.warning(`[${this.seleData[i].name}]员工重复`) | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | item.idCard = item.idcardNo | 
|---|
|  |  |  | item.memberName = item.name | 
|---|
|  |  |  | item.memberId = item.id | 
|---|
|  |  |  | if (this.notInInsuranceApplyId) { | 
|---|
|  |  |  | if (this.notInInsuranceApplyId || this.type == 1) { | 
|---|
|  |  |  | item.workTypeName = '' | 
|---|
|  |  |  | item.worktypeId = '' | 
|---|
|  |  |  | item.duId = '' | 
|---|
|  |  |  | 
|---|
|  |  |  | findListByDTO({ | 
|---|
|  |  |  | name: this.val, | 
|---|
|  |  |  | insuranceApplyId: this.insuranceApplyId, | 
|---|
|  |  |  | notInInsuranceApplyId: this.notInInsuranceApplyId | 
|---|
|  |  |  | notInInsuranceApplyId: this.notInInsuranceApplyId, | 
|---|
|  |  |  | validTime: this.validTime | 
|---|
|  |  |  | }).then(res => { | 
|---|
|  |  |  | res.forEach(item => { | 
|---|
|  |  |  | item.fee = '' | 
|---|