| | |
| | | <span v-if="item.ortherInfo">{{item.ortherInfo}}</span> |
| | | </div> |
| | | <!-- 选择员工 --> |
| | | <selectEmployees ref="selectEmployees" @result="getValue" /> |
| | | <selectEmployees ref="selectEmployees" @result="getValue1" /> |
| | | <!-- 添加员工 --> |
| | | <addEmployee ref="addEmployee" @result="getValue" /> |
| | | <!-- 导入名单 --> |
| | |
| | | this.form.addDetailList = [] |
| | | this.form.delDetailList = [] |
| | | this.list = [] |
| | | this.form.factory = [] |
| | | this.form.id = null |
| | | this.item = null |
| | | this.form.solutionId = '' |
| | |
| | | this.pickerOptions = { |
| | | disabledDate(time) { |
| | | // - 8.64e7 |
| | | return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date().getTime() |
| | | return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(res.lastChangeDate ? res.lastChangeDate : res.startTime).getTime() |
| | | } |
| | | }; |
| | | this.changeSolution1(res.solutionId) |
| | |
| | | this.$message.warning('请先选择保险方案') |
| | | return |
| | | } |
| | | this.$refs.selectEmployees.open('选取员工', { arr: this.form.delDetailList, price: this.price, insuranceApplyId: this.form.id }) |
| | | if (!this.form.applyStartTime) { |
| | | this.$message.warning('请先选择批单生效起期') |
| | | return |
| | | } |
| | | this.$refs.selectEmployees.open('选取员工', { arr: this.form.delDetailList, price: this.price, insuranceApplyId: this.form.id, validTime: this.form.applyStartTime }) |
| | | }, |
| | | addUser() { |
| | | if (!this.form.solutionId) { |
| | |
| | | handleSelectionChange (e) { |
| | | this.seleData = e.map(item => item.memberName) |
| | | }, |
| | | // 选取员工 |
| | | getValue1 (list) { |
| | | let arr = JSON.parse(JSON.stringify(list)) |
| | | |
| | | arr.forEach(item => { |
| | | item.oldDuId = item.duId |
| | | item.oldDuName = item.duName |
| | | item.oldWorkTypeName = item.workTypeName |
| | | item.oldWorktypeId = item.worktypeId |
| | | |
| | | item.duId = '' |
| | | item.duName = '' |
| | | item.workTypeName = '' |
| | | item.worktypeId = '' |
| | | }) |
| | | |
| | | for (let a = 0; a < arr.length; a++) { |
| | | for (let b = 0; b < this.form.factory.length; b++) { |
| | | if (arr[a].id === this.form.factory[b].id) { |
| | | this.$message.warning(`${arr[a].companyName}员工重复!`) |
| | | return |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.form.factory.push(...arr) |
| | | }, |
| | | getValue(list) { |
| | | let arr = JSON.parse(JSON.stringify(list)) |
| | | |