受益人必填校验

This commit is contained in:
邓晓坤
2019-10-15 09:40:55 +08:00
parent 05e1e333e1
commit 1c4059208d

View File

@@ -204,6 +204,9 @@
<span>受益人附件</span>
</div>
<div class="m20 bg-white">
<van-cell-group>
<van-field required label="受益人附件上传" disabled />
</van-cell-group>
<div @click="test('fileListtypebeneficiary', saleInsuredPersonInfo.idType)" class="flex">
<van-uploader
name="fileListtypebeneficiary"
@@ -1004,7 +1007,8 @@ export default {
fileListBankInsured,
fileLIstImgInsured,
saleInsuredPersonInfoOther,
saleInsuredInfoOther
saleInsuredInfoOther,
fileListtypebeneficiary
} = this
console.log(this)
return {
@@ -1019,12 +1023,14 @@ export default {
fileLIstImgInsured,
fileLIstImg,
saleInsuredPersonInfoOther,
saleInsuredInfoOther
saleInsuredInfoOther,
fileListtypebeneficiary
}
}
},
watch: {
listenChange(val) {
console.log(this.typebeneficiary, 'typebeneficiary')
let that = this
if (
(val.fileListIdFront.length != '0' &&
@@ -1127,7 +1133,11 @@ export default {
) {
that.isDisabled = false
} else {
that.isDisabled = true
if ((that.typebeneficiary && val.fileListtypebeneficiary.length != '0') || (!that.typebeneficiary && val.fileListtypebeneficiary.length == '0')) {
that.isDisabled = true
} else {
that.isDisabled = false
}
}
}
},