| | |
| | | <el-form-item label="保险方案"> |
| | | <span>{{form.solutionsName}}</span> |
| | | </el-form-item> |
| | | <el-form-item label="批单生效起期" prop="applyStartTime"> |
| | | <el-form-item label="批单生效起期" prop="applyStartTime" v-if="1==2"> |
| | | <div style="display: flex; flex-direction: column;"> |
| | | <el-date-picker |
| | | @change="changeApplyStartTime" |
| | |
| | | applyStartTime: '', |
| | | applyEndTime: '', |
| | | addDetailList: [], |
| | | delDetailList: [], |
| | | delDetailList: [] |
| | | }, |
| | | newVersionSolutionId: '', |
| | | activeName: '0', |
| | |
| | | // - 8.64e7 |
| | | // return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date().getTime() |
| | | } |
| | | }; |
| | | } |
| | | // this.changeSolution1(res.solutionId) |
| | | }) |
| | | }, |
| | |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | | sums[index] = '总价' |
| | | return |
| | | } else if (index === 7) { |
| | | let total = 0 |
| | | if (this.activeName === '0') { |
| | |
| | | total += item.fee |
| | | }) |
| | | // if (total < 0) { |
| | | sums[index] = total.toFixed(2) |
| | | sums[index] = (total||0).toFixed(2) |
| | | // } else { |
| | | // sums[index] = '-' + total |
| | | // } |
| | |
| | | return |
| | | } |
| | | if (this.activeName === '0') { |
| | | this.$refs.selectEmployees.open('选取员工', { arr: this.form.addDetailList, price: this.price, notInInsuranceApplyId: this.form.id }) |
| | | this.$refs.selectEmployees.open('选取加保员工', { arr: this.form.addDetailList, price: this.price, notInInsuranceApplyId: this.form.id, validTime: this.form.applyStartTime }) |
| | | } else { |
| | | this.$refs.selectEmployees.open('选取员工', { arr: this.form.delDetailList, price: this.price, insuranceApplyId: this.form.id }) |
| | | this.$refs.selectEmployees.open('选取减保员工', { arr: this.form.delDetailList, price: this.reducePrice, insuranceApplyId: this.form.id, validTime: this.form.applyStartTime }) |
| | | } |
| | | }, |
| | | addUser() { |
| | |
| | | return |
| | | } |
| | | if (this.activeName === '0') { |
| | | this.$refs.addEmployee.open('添加员工', { arr: this.form.addDetailList, price: this.price }) |
| | | this.$refs.addEmployee.open('添加加保员工', { arr: this.form.addDetailList, solutionId: this.item.newVersionSolutionId, price: this.price }) |
| | | } else { |
| | | this.$refs.addEmployee.open('添加员工', { arr: this.form.delDetailList, price: this.price }) |
| | | this.$refs.addEmployee.open('添加减保员工', { arr: this.form.delDetailList, solutionId: this.item.newVersionSolutionId, price: this.reducePrice }) |
| | | } |
| | | }, |
| | | uploadUser() { |
| | |
| | | return |
| | | } |
| | | if (this.activeName === '0') { |
| | | this.$refs.importEmployees.open('上传名单', { arr: this.form.addDetailList, price: this.price }) |
| | | this.$refs.importEmployees.open('加保员工名单', { arr: this.form.addDetailList, type: 1, price: this.price, solutionId: this.item.newVersionSolutionId }) |
| | | } else { |
| | | this.$refs.importEmployees.open('上传名单', { arr: this.form.delDetailList, price: this.price }) |
| | | this.$refs.importEmployees.open('减保员工名单', { arr: this.form.delDetailList, type: 0, price: this.reducePrice, solutionId: this.item.newVersionSolutionId, insuranceApplyId: this.form.id }) |
| | | } |
| | | }, |
| | | // 切换方案 |
| | |
| | | } |
| | | }) |
| | | this.seleData = [] |
| | | this.$refs.multipleTable.clearSelection(); |
| | | this.$refs.multipleTable.clearSelection() |
| | | }, |
| | | // 选择员工 |
| | | sele() { |