[FIX]健康告知与换卡失败状态修改

This commit is contained in:
zhouna
2019-12-25 11:46:57 +08:00
parent 85722daf7c
commit 3254de7836
3 changed files with 9 additions and 32 deletions

View File

@@ -556,7 +556,7 @@ export default {
},
{
id: '16',
text: '承保中'
text: '等待出单'
},
{
id: '17',

View File

@@ -96,18 +96,7 @@
round
>重新支付</van-button
>
<template
v-if="
(active == 'commit' && order.orderInfoDTO.orderStatus == '48') ||
(active == 'commit' && order.orderInfoDTO.orderStatus == '49') ||
(active == 'commit' && order.orderInfoDTO.orderStatus == '50') ||
(active == 'commit' && order.orderInfoDTO.orderStatus == '51') ||
(active == 'commit' && order.orderInfoDTO.orderStatus == '52') ||
(active == 'commit' && order.orderInfoDTO.orderStatus == '53') ||
(active == 'commit' && order.orderInfoDTO.orderStatus == '54') ||
(active == 'commit' && order.orderInfoDTO.orderStatus == '55')
"
>
<template v-if="active == 'commit' && order.orderInfoDTO.orderStatus == '55'">
<van-button @click="changeCard(order)" size="small" class="mr5" type="danger" round>修改卡号</van-button>
<van-button @click="againPay(order)" size="small" class="mr5" type="danger" round>重新支付</van-button>
</template>

View File

@@ -74,23 +74,12 @@
<div class="mb20 ml20" v-if="item.impartCode == '2b' && showFlag && isShow">
<span>{{ item.impartCode + '.' + item.impartContent }}</span>
</div>
<van-radio-group
v-model="item.impartAnswer"
class="flex mb10 pb10"
@change="change(item.isSelect, $event)"
v-validate="'required'"
data-vv-name="单选"
v-if="showFlag && isShow"
>
<van-radio name="0" class="mr150 ml70"></van-radio>
<van-radio name="1"></van-radio>
</van-radio-group>
<van-cell-group v-for="(it, ind) in item.questions" :key="ind">
<div v-if="it.extra">
<div v-if="it.extra && showFlag && isShow">
<van-field v-model="it.answer" placeholder="请输入" :label="it.questionContent" clearable v-validate="'required'" data-vv-name="答案" />
</div>
</van-cell-group>
<div v-if="item.show">
<div v-if="showFlag && isShow">
<van-cell-group v-for="(it, ind) in item.questions" :key="ind">
<van-field
v-model="it.answer"
@@ -178,7 +167,7 @@ export default {
this.saleInsuredAge = utilsAge.getAge(this.saleInsuredInfo.birthday, new Date())
this.saleInsuredSex = this.saleInsuredInfo.sex
//投被不同人取到年纪和性别去判断是是否显示内容
this.saleInsuredPersonAge = utilsAge.getAge(this.saleInsuredPersonInfo.birthday, new Date())
this.saleInsuredPersonAge = this.saleInsuredPersonInfo.age
this.saleInsuredPersonSex = this.saleInsuredPersonInfo.sex
} else {
this.$toast(res.resultMessage)
@@ -186,7 +175,7 @@ export default {
})
// this.relationToAppnt = `1`
this.productCodes = JSON.parse(localStorage.chooseProductCodes)
this.information()
//this.information()
},
methods: {
// 一键全否
@@ -248,7 +237,7 @@ export default {
let obj = JSON.parse(items.extra3)
if (obj.age && obj.sex == '2') {
//小于18岁显示
if (that.saleInsuredPersonAge < obj.age) {
if (that.saleInsuredPersonAge < Number(obj.age)) {
this.isShow = true
}
}
@@ -313,7 +302,6 @@ export default {
that.impartDTOS.map(it => {
it.impartItemDTOS.map(itm => {
if (itm.impartCode == '2b') {
itm.show = false
itm.impartAnswer = ''
}
})