| | |
| | | v-model="form.applyStartTime" |
| | | type="date" |
| | | class="date_picker" |
| | | :clearable="false" |
| | | :disabled="!form.solutionId" |
| | | :picker-options="pickerOptions" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | |
| | | <el-table-column |
| | | label="年龄"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.idCard">{{ getAgeByIdCard(row.idCard) }}</span> |
| | | <template v-if="item"> |
| | | <span style="color: red;" v-if="row.idCard && (getAgeByIdCard(row.idCard) < item.minAge || getAgeByIdCard(row.idCard) > item.maxAge)">{{ getAgeByIdCard(row.idCard) }}</span> |
| | | <span v-else>{{ getAgeByIdCard(row.idCard) }}</span> |
| | | </template> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | import addEmployee from '@/components/enterprise/addEmployee' |
| | | import importEmployees from '@/components/enterprise/importEmployees' |
| | | import confirmJobType from '@/components/enterprise/confirmJobType' |
| | | import { all } from '@/api/business/solutions' |
| | | import { all, getNewVersion } from '@/api/business/solutions' |
| | | import { create, getCountCyclePriceVO, getDetail, findList, updateData } from '@/api/business/insuranceApply' |
| | | export default { |
| | | name: 'OperaInsuranceApplyWindow', |
| | |
| | | }) |
| | | getDetail(this.form.id) |
| | | .then(res => { |
| | | this.form.solutionId = res.solutionId |
| | | // this.form.solutionId = res.solutionId |
| | | this.changeSolution1(res.solutionId) |
| | | }) |
| | | }, |
| | |
| | | this.tableData.forEach(item => { |
| | | item.fee = res.cyclePrice |
| | | }) |
| | | console.log(this.tableData) |
| | | this.$forceUpdate() |
| | | }) |
| | | }, |
| | |
| | | return time.getTime() <= new Date(currentDate.toLocaleString()).getTime() - 8.64e7; |
| | | } else if (that.item.validType === 0) { |
| | | // 多少日后生效 |
| | | return time.getTime() <= new Date(that.getDate(that.item.validTypeNum)).getTime(); |
| | | return time.getTime() <= new Date(that.getDate(that.item.validTypeNum - 1)).getTime(); |
| | | } |
| | | } |
| | | }; |
| | |
| | | this.$message.warning('请先选择保险方案') |
| | | return |
| | | } |
| | | this.$refs.selectEmployees.open('选取员工', { arr: this.tableData, price: this.price }) |
| | | this.$refs.selectEmployees.open('选取员工', { arr: this.tableData, price: this.price, type: 1 }) |
| | | }, |
| | | addUser() { |
| | | if (!this.form.solutionId) { |
| | |
| | | }, |
| | | // 切换方案 |
| | | changeSolution(e) { |
| | | this.tableData = [] |
| | | if (!this.form.id) { |
| | | this.tableData = [] |
| | | } else { |
| | | this.price = '' |
| | | this.form.applyEndTime = '' |
| | | this.form.applyStartTime = '' |
| | | this.tableData.forEach(item => { |
| | | item.fee = '' |
| | | item.duName = '' |
| | | item.duId = '' |
| | | item.workTypeName = '' |
| | | item.workTypeId = '' |
| | | }) |
| | | } |
| | | this.company.forEach(item => { |
| | | if (item.id === e) { |
| | | // this.price = item.price |
| | |
| | | }, |
| | | // 切换方案 |
| | | changeSolution1(e) { |
| | | this.company.forEach(item => { |
| | | if (item.id === e) { |
| | | // this.price = item.price |
| | | this.item = item |
| | | this.updatePickerOptions() |
| | | } |
| | | }) |
| | | getNewVersion(e) |
| | | .then(res => { |
| | | this.form.solutionId = res.id |
| | | this.company.forEach(item => { |
| | | if (item.id === res.id) { |
| | | // this.price = item.price |
| | | this.item = item |
| | | this.updatePickerOptions() |
| | | } |
| | | }) |
| | | }) |
| | | this.tableData.forEach(item => { |
| | | item.fee = this.price |
| | | }) |
| | |
| | | this.tableData.splice(index, 1) |
| | | }, |
| | | getUser(obj) { |
| | | this.seleData.forEach(item => { |
| | | this.seleData.forEach(id => { |
| | | this.tableData.forEach(row => { |
| | | if (item === row.name) { |
| | | if (id === row.id) { |
| | | row.workTypeName = obj.workTypeName |
| | | row.worktypeId = obj.worktypeId |
| | | row.duName = obj.duName |
| | |
| | | return sexAndAge.age |
| | | }, |
| | | handleSelectionChange (e) { |
| | | this.seleData = e.map(item => item.name) |
| | | this.seleData = e.map(item => item.id) |
| | | }, |
| | | getValue(list) { |
| | | this.tableData.push(...list) |