| | |
| | | <div style="display: flex; flex-direction: column;"> |
| | | <el-date-picker |
| | | v-model="form.applyStartTime" |
| | | type="datetime" |
| | | type="date" |
| | | :picker-options="pickerOptions" |
| | | value-format="yyyy-MM-dd hh:mm:ss" |
| | | format="yyyy-MM-dd hh:mm:ss" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | <span style="color: #F95601; font-size: 14px;">(次日生效投保请于17:30前提交,超时提交以保险单为准)</span> |
| | |
| | | <el-form-item label="投保年龄" v-if="item"> |
| | | <span>{{item.minAge}} 至 {{item.maxAge}}</span> |
| | | </el-form-item> |
| | | <el-form-item label="费用" v-if="item"> |
| | | <el-form-item label="费用" v-if="item && item.type==0"> |
| | | <span>{{item.price}}元</span> |
| | | <span v-if="item.timeUnit === 0">/天</span> |
| | | <span v-if="item.timeUnit === 1">/半月</span> |
| | |
| | | align="center" |
| | | label="投保人数"> |
| | | </el-table-column> |
| | | <el-table-column prop="guaranteeNum" align="center" label="在保人数" ></el-table-column> |
| | | <el-table-column |
| | | prop="serviceDays" |
| | | align="center" |
| | | label="在保时长(天)"> |
| | | label="保单时长(天)"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="currentFee" |
| | | align="center" |
| | | label="当前费用(元)"> |
| | | label="已产生费用(元)"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="fee" |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="info" v-if="item"> |
| | | <span v-if="item.specialAgreement">{{item.specialAgreement}}</span> |
| | | <span v-if="item.specialInfo">{{item.specialInfo}}</span> |
| | | <span v-if="item.ortherInfo">{{item.ortherInfo}}</span> |
| | | <span v-if="item.specialAgreement" v-html="item.specialAgreement"></span> |
| | | <span v-if="item.specialInfo" v-html="item.specialInfo"> </span> |
| | | <span v-if="item.ortherInfo" v-html="item.ortherInfo"> </span> |
| | | </div> |
| | | <!-- 选择员工 --> |
| | | <selectEmployees ref="selectEmployees" @result="getValue" /> |
| | |
| | | import { all } from '@/api/business/solutions' |
| | | import { getDetail, findList } from '@/api/business/insuranceApply' |
| | | import { create, update, applyChagneDetailList } from '@/api/business/applyChange' |
| | | import { getDate, compareDates, getTomorrow } from '@/utils/util' |
| | | export default { |
| | | name: 'editFactoryChange', |
| | | extends: BaseOpera, |
| | |
| | | return { |
| | | form: { |
| | | id: null, |
| | | applyChangId: '', |
| | | applyChangeId: '', |
| | | solutionId: '', |
| | | solutionsName: '', |
| | | applyStartTime: '', |
| | |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form.id = target.id |
| | | this.form.applyChangId = target.applyChangId |
| | | this.form.applyChangeId = target.applyChangId |
| | | this.getDetails() |
| | | this.getapplyChagneDetailList() |
| | | }) |
| | |
| | | // 获取换厂人员 |
| | | getapplyChagneDetailList() { |
| | | applyChagneDetailList({ |
| | | applyChangId: this.form.applyChangId, |
| | | applyChangeId: this.form.applyChangeId, |
| | | types: [2] |
| | | }).then(res => { |
| | | res.forEach(item => { |
| | | item.idCard = item.memberIdcardNo |
| | | item.oldDuId = item.duId |
| | | item.oldDuName = item.duName |
| | | item.oldWorkTypeName = item.workTypeName |
| | | item.oldWorktypeId = item.worktypeId |
| | | // item.oldDuId = item.duId |
| | | // item.oldDuName = item.duName |
| | | // item.oldWorkTypeName = item.workTypeName |
| | | // item.oldWorktypeId = item.worktypeId |
| | | item.workTypeName = '' |
| | | item.worktypeId = '' |
| | | item.duId = '' |
| | |
| | | }, |
| | | // 获取投保详情 |
| | | getDetails() { |
| | | findList({ applyId: this.form.id }) |
| | | /*findList({ applyId: this.form.id }) |
| | | .then(res => { |
| | | res.forEach(item => { |
| | | item.idCard = item.idcardNo |
| | |
| | | item.duName = '' |
| | | }) |
| | | // this.form.factory = res |
| | | }) |
| | | })*/ |
| | | getDetail(this.form.id) |
| | | .then(res => { |
| | | this.list.push(res) |
| | |
| | | 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.startTime).getTime() |
| | | // 当前日期大于等于生效日期并且最后一次操作时间等于空 |
| | | if ([1, 3].includes(compareDates(getDate(), res.startTime)) && !res.lastChangeDate) { |
| | | return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(getTomorrow()).getTime() |
| | | // 当前日期小于生效日期并且最后一次操作时间等于空 |
| | | } else if (compareDates(getDate(), res.startTime) === 2 && !res.lastChangeDate) { |
| | | return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(res.startTime).getTime() |
| | | // 最后一次操作时间有值 |
| | | } else if (res.lastChangeDate) { |
| | | // 当前日期大于最后一次操作时间 |
| | | if ([1, 3].includes(compareDates(getDate(), res.lastChangeDate))) { |
| | | return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(getTomorrow()).getTime() |
| | | // 当前时间小于最后一次操作时间 |
| | | } else if (compareDates(getDate(), res.lastChangeDate) === 2) { |
| | | return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(res.lastChangeDate).getTime() |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | this.changeSolution1(res.solutionId) |
| | |
| | | // }) |
| | | this.isWorking = true |
| | | update({ |
| | | id: this.form.applyChangId, |
| | | id: this.form.applyChangeId, |
| | | applyId: this.form.id, |
| | | changeDetailList: this.form.factory, |
| | | validTime: this.form.applyStartTime, |