diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue index ef23aa937..dbb2df79f 100644 --- a/src/views/ebiz/common/SelectedProduct.vue +++ b/src/views/ebiz/common/SelectedProduct.vue @@ -4,7 +4,7 @@
-
+
主险 @@ -27,12 +27,27 @@ 删除
+
+
+ + + + 电子(不打印保单) + + + 电子+纸质 + + +
+
+添加产品
-
@@ -133,7 +148,7 @@ import { orderDetail, deleteOrderInfo, mainRiskList, mainRiskListProposal, calculatePremium } from '@/api/ebiz/common/common' import { formatAllRisk } from '@/assets/js/utils/formatRiskList' import { getDetail, deleteProposal } from '@/api/ebiz/proposal/proposal.js' - import { saveOrderActiveType,getActivityList, getDoubleRecordProductLst } from '@/api/ebiz/sale/sale.js' + import { saveOrderActiveType,getActivityList, getDoubleRecordProductLst, saveOrUpdateOrderInfo } from '@/api/ebiz/sale/sale.js' import utilsAge from '@/assets/js/utils/age' import IndexBar from '@/components/ebiz/sale/IndexBar' import riskRules from './risk-rules' @@ -162,6 +177,7 @@ renovate:'',//刷新子组件 manageComCode:'',//代理人管理机构 52贵州 45广西 isCrossChannel: 0, // 是否选择交叉渠道列表 0-否 1-是 + isElecCont: '', // 保单形式 } }, components: { @@ -384,6 +400,9 @@ } if (!isProposal) { if (this.chooseProducts.length > 0) { + if(this.chooseProducts[0].mainRiskCode == 'GFRS_M0076' || this.chooseProducts[0].mainRiskCode == 'GFRS_M0077') { + this.isElecCont = '1' + } if (this.chooseProducts[0].mainRiskCode == 'GFRS_M0026' && this.chooseProducts.length == 1) { this.isShow = true } else { @@ -981,17 +1000,55 @@ localStorage.beneficiaryInfo = '' localStorage.fromAddBeneficiaryInfo = '' localStorage.removeItem('applicant') - this.$jump({ - flag: 'h5', - extra: { - forbidSwipeBack: '1', - url: location.origin + '/#' + thismyurl, - needRefresh: '1' - }, - routerInfo: { - path: thismyurl + if(this.isFrom == 'sale') { + if(!this.isElecCont) { + this.$toast('请选择保单形式') + return false + } else { + let params = { + orderType: 'APPNT_ORDER', + orderDTO: { + orderInfoDTO: { + orderNo: this.$route.query.orderNo, + isElecCont: '' + }, + appntDTO: this.appntDTO + } + } + if(this.isElecCont == '1') { + params.orderDTO.orderInfoDTO.isElecCont = '0' + } + saveOrUpdateOrderInfo(params).then(res => { + if(res.result == 0) { + this.$jump({ + flag: 'h5', + extra: { + forbidSwipeBack: '1', + url: location.origin + '/#' + thismyurl, + needRefresh: '1' + }, + routerInfo: { + path: thismyurl + } + }) + } else { + this.$toast(res.resultMessage) + } + }) } - }) + } else { + this.$jump({ + flag: 'h5', + extra: { + forbidSwipeBack: '1', + url: location.origin + '/#' + thismyurl, + needRefresh: '1' + }, + routerInfo: { + path: thismyurl + } + }) + } } } } @@ -1072,5 +1129,15 @@ padding-right: 0px; padding-bottom: 10px; } + /deep/ .van-radio__icon--round{ + display: flex; + align-items: center; + } + /deep/ .van-icon{ + line-height: 100%; + } + /deep/ .van-radio__label{ + color: red; + } } diff --git a/src/views/ebiz/sale/InsuredInfo.vue b/src/views/ebiz/sale/InsuredInfo.vue index fa97aa760..2dc4c69b4 100644 --- a/src/views/ebiz/sale/InsuredInfo.vue +++ b/src/views/ebiz/sale/InsuredInfo.vue @@ -187,16 +187,16 @@ v-validate="'required'" @click="toSelect('11')" /> -
- - - 电子(不打印保单) - 电子+纸质 - -
+ + + + + + + + + + @@ -1147,10 +1147,10 @@ return false } } - if(this.isElecCont == '' || this.isElecCont == null || this.isElecCont == undefined){ - this.$toast('请选择保单形式') - return false - } + // if(this.isElecCont == '' || this.isElecCont == null || this.isElecCont == undefined){ + // this.$toast('请选择保单形式') + // return false + // } // .then(valid => { if (true === valid) { localStorage.chooseProductCodesNew = localStorage.chooseProductCodes