feature/GFRS-2301【需求】健康险渠道国富无忧卡金掌桂开发的需求--投保信息修改--提交人庞兴月

This commit is contained in:
pangxingyue
2021-04-02 11:06:43 +08:00
parent dbce280ab3
commit f151a33869
2 changed files with 22 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
<div v-if="!isScan">
<van-cell-group>
<van-field v-model="underWriteData.riskName" type="textarea" autosize readonly label="产品名称" class="projuct" />
<van-field v-model="underWriteData.appntName" readonly label="保障方案" class="projuct" />
<van-field v-model="underWriteData.schemeName" readonly label="保障方案" class="projuct" />
<van-field v-if="!isWeixin" v-model="underWriteData.appntName" readonly label="投保人姓名" class="projuct" />
<van-field v-if="!isWeixin" v-model="underWriteData.insuredName" readonly label="被保人姓名" class="projuct" />
<van-field :value="underWriteData.orderAmount == undefined ? '' : `${underWriteData.orderAmount} 元`" readonly label="支付金额" />
@@ -205,6 +205,7 @@ export default {
name: '',
bankCode: '', //银行卡号
bankName: '', //开户银行
schemeName: '' //保障金额
},
radio: '3',
result: [],
@@ -265,6 +266,7 @@ export default {
this.underWriteData.appntName = orderDetail.appntDTO.name
this.underWriteData.insuredName = orderDetail.insuredDTOs[0].name
this.underWriteData.orderAmount = orderDetail.insuredDTOs[0].riskDTOLst[0].prem
this.underWriteData.schemeName = res.orderDTO.insuredDTOs[0].riskDTOLst[0].proScheme
this.orderStatus = orderDetail.orderInfoDTO.orderStatus
this.underWriteData.idType = orderDetail.appntDTO.idType
// this.radio = '3'
@@ -477,8 +479,9 @@ export default {
// bankName: res.orderDTO.orderAccountDTO.bankCode,
// bankCode: res.orderDTO.orderAccountDTO.cardBookCode,
// cardBookCode: res.orderDTO.orderAccountDTO.cardBookCode,
schemeName: res.orderDTO.insuredDTOs[0].riskDTOLst[0].proScheme,
idType: res.orderDTO.appntDTO.idType,
orderAmount: res.orderDTO.orderInfoDTO.orderAmount,
orderAmount: res.orderDTO.insuredDTOs[0].riskDTOLst[0].prem,
orderNo: res.orderDTO.orderAccountDTO.orderNo,
result: '',
resultMessage: '交易处理成功',
@@ -490,8 +493,7 @@ export default {
this.underWriteData.bankName = res.orderDTO.orderAccountDTO.bankCode !== null ? res.orderDTO.orderAccountDTO.bankCode : this.$route.query.bankName
this.underWriteData.cardBookCode =
res.orderDTO.orderAccountDTO.cardBookCode !== null ? res.orderDTO.orderAccountDTO.cardBookCode : this.$route.query.bankCode
this.bankListName = res.orderDTO.orderAccountDTO.bankName !== null ? res.orderDTO.orderAccountDTO.bankName : this.$route.query.bankListName
this.bankListName = res.orderDTO.orderAccountDTO.bankName !== null ? res.orderDTO.orderAccountDTO.bankName : this.$route.query.bankListName
// if (this.isWeixin) {
// this.pay()
// }
@@ -757,7 +759,6 @@ export default {
console.log(this.$validator)
return this.$toast(this.$validator.errors.all()[0])
}
let shareName = this.underWriteData.name
localStorage.name = this.underWriteData.name
localStorage.bankName = this.underWriteData.bankName
localStorage.bankCode = this.underWriteData.bankCode

View File

@@ -978,11 +978,24 @@ export default {
switch (insuYear.insuYearFlag){
case 'D':
var hoDate = Date.parse(val)/1000 + insuYear['insuYear']*24*3600
var productDate = new Date(parseInt(hoDate) * 1000);
var productDateTime = productDate.getFullYear() + '年' + (productDate.getMonth() + 1) + '月' + productDate.getDate() + '日'
this.productDate = currentData + '0时至' + productDateTime + '24时止'
break;
case 'Y':
var productDate = new Date()
var productDateTime = parseInt(productDate.getFullYear())+parseInt(insuYear['insuYear']) + '年' + (productDate.getMonth() + 1) + '月' + productDate.getDate() + '日'
this.productDate = currentData + '0时至' + productDateTime + '24时止'
break;
case 'M':
var productDate = new Date()
let yearY = parseInt(productDate.getFullYear()) + parseInt((parseInt((productDate.getMonth() + 1))+parseInt(insuYear['insuYear']))/12)
let yearM = parseInt((productDate.getMonth() + 1)) + parseInt((parseInt((productDate.getMonth() + 1))+parseInt(insuYear['insuYear']))%12)
var productDateTime = yearY + '年' + yearM + '月' + productDate.getDate() + '日'
this.productDate = currentData + '0时至' + productDateTime + '24时止'
break;
}
var productDate = new Date(parseInt(hoDate) * 1000);
var productDateTime = productDate.getFullYear() + '年' + (productDate.getMonth() + 1) + '月' + productDate.getDate() + '日';
this.productDate = currentData + '至' + productDateTime + '时止'
}
break
}