| | |
| | | price = price + item.fee |
| | | }) |
| | | // } |
| | | if (!this.form.companyId) { |
| | | this.$refs.detailsPolicyholder.open('投保详情单', { |
| | | companyName: this.userInfo.company.name, |
| | | solutionName: this.item.name, |
| | | solutionType: this.item.type, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | insureNum: this.tableData.length, |
| | | totalPrice: price, |
| | | detailList: this.tableData |
| | | }) |
| | | const endTime = Number(this.item.correctWarnTime.split(':')[0] + this.item.correctWarnTime.split(':')[1]) |
| | | const now = new Date(); |
| | | const hours = now.getHours(); |
| | | const minutes = now.getMinutes(); |
| | | const date = `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}`; |
| | | const startTime = Number(date.split(':')[0] + date.split(':')[1]) |
| | | if (startTime > endTime) { |
| | | this.$confirm('您已超过当天最晚批改时间,保单实际生效时间以保险公司审核为准!', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | if (!this.form.companyId) { |
| | | this.$refs.detailsPolicyholder.open('投保详情单', { |
| | | companyName: this.userInfo.company.name, |
| | | solutionName: this.item.name, |
| | | solutionType: this.item.type, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | insureNum: this.tableData.length, |
| | | totalPrice: price, |
| | | detailList: this.tableData |
| | | }) |
| | | } else { |
| | | this.$refs.detailsPolicyholder.open('投保详情单', { |
| | | companyName: this.form.companyName, |
| | | solutionName: this.item.name, |
| | | solutionType: this.item.type, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | insureNum: this.tableData.length, |
| | | totalPrice: price, |
| | | detailList: this.tableData |
| | | }) |
| | | } |
| | | }).catch(() => { |
| | | |
| | | }); |
| | | } else { |
| | | this.$refs.detailsPolicyholder.open('投保详情单', { |
| | | companyName: this.form.companyName, |
| | | solutionName: this.item.name, |
| | | solutionType: this.item.type, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | insureNum: this.tableData.length, |
| | | totalPrice: price, |
| | | detailList: this.tableData |
| | | }) |
| | | if (!this.form.companyId) { |
| | | this.$refs.detailsPolicyholder.open('投保详情单', { |
| | | companyName: this.userInfo.company.name, |
| | | solutionName: this.item.name, |
| | | solutionType: this.item.type, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | insureNum: this.tableData.length, |
| | | totalPrice: price, |
| | | detailList: this.tableData |
| | | }) |
| | | } else { |
| | | this.$refs.detailsPolicyholder.open('投保详情单', { |
| | | companyName: this.form.companyName, |
| | | solutionName: this.item.name, |
| | | solutionType: this.item.type, |
| | | applyStartTime: this.form.applyStartTime, |
| | | applyEndTime: this.form.applyEndTime, |
| | | insureNum: this.tableData.length, |
| | | totalPrice: price, |
| | | detailList: this.tableData |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | }) |
| | |
| | | }, |
| | | // 查询全部方案 |
| | | getCompany () { |
| | | getUseList(this.form.companyId, 2) |
| | | getUseList(this.form.companyId ? this.form.companyId : this.userInfo.companyId, 2) |
| | | .then(res => { |
| | | this.company = res |
| | | }) |