| | |
| | | return { |
| | | list: [], |
| | | price: 0, |
| | | type: null, |
| | | solutionId: null, |
| | | addList: [], |
| | | fileName: '' |
| | | } |
| | |
| | | this.title = title |
| | | this.addList = [] |
| | | this.fileName = '' |
| | | this.type = obj.type |
| | | this.visible = true |
| | | this.solutionId = obj.solutionId |
| | | this.list = obj.arr |
| | | this.price = obj.price |
| | | }, |
| | | // 导出模板 |
| | | exportTemplate () { |
| | | window.open(process.env.VUE_APP_USERTEMPLATE_URL) |
| | | // 投保申请 |
| | | if (this.type === 1) { |
| | | window.open(process.env.VUE_APP_MEMBER1_URL) |
| | | } else { |
| | | window.open(process.env.VUE_APP_MEMBER_URL) |
| | | } |
| | | }, |
| | | clickRef () { |
| | | this.$refs.fileExcel.click() |
| | |
| | | result (e) { |
| | | const data = new FormData() |
| | | data.append('file', e.target.files[0]) |
| | | data.append('solutionId', this.solutionId) |
| | | importExcel(data) |
| | | .then(res => { |
| | | res.forEach(item => { |
| | |
| | | confirm () { |
| | | for (let i = 0; i < this.addList.length; i++) { |
| | | for (let a = 0; a < this.list.length; a++) { |
| | | if (this.addList[i].name === this.list[a].memberName || this.addList[i].idCard === this.list[a].idcardNo) { |
| | | if (this.addList[i].idCard === this.list[a].idcardNo) { |
| | | this.$message.warning(`[${this.addList[i].name}]员工重复`) |
| | | return |
| | | } |