[FIX]富娃娃万能险-修改缴费期间后,将输入保费恢复默认值

This commit is contained in:
yuweiqi
2020-01-20 16:25:48 +08:00
parent e4c4bf738e
commit 88dcc8f3e6
2 changed files with 12 additions and 8 deletions

View File

@@ -401,11 +401,15 @@ export default {
console.log('currentFactor', currentFactor)
console.log('currentEle', currentEle)
currentEle['columns'].forEach((item, index) => {
if (item.value == value.value) {
this.payEndYearColumnsIndex = index
}
})
//如果需要填写的保费/保额校验规则跟缴费期间挂钩当改变缴费期间时将输入框的值恢复默认值1
if (currentEle.code == 'payEndYear') {
currentEle['columns'].forEach((item, index) => {
if (item.value == value.value) {
this.payEndYearColumnsIndex = index
}
})
this.defalutAmt = 1
}
console.log('payEndYearColumnsIndex == ', this.payEndYearColumnsIndex)
if (currentEle.showContent != value.text) {
@@ -1006,7 +1010,7 @@ export default {
//万能型产品保费赋值给保额
//增加判断是否是从建议书跳转过来了的
if (localStorage.isFrom != 'proposal') {
if (this.trialList[index].productCode == 'GFRS_M0003' || 'GFRS_M0015') {
if (this.trialList[index].productCode == ('GFRS_M0003' || 'GFRS_M0015')) {
// console.log('2222222222')
riskItem['amt'] = this.trialList[index].prem
}