受益人必填校验

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