diff --git a/src/views/ebiz/sale/AttachmentManagement.vue b/src/views/ebiz/sale/AttachmentManagement.vue
index 491c1f793..e9c610476 100644
--- a/src/views/ebiz/sale/AttachmentManagement.vue
+++ b/src/views/ebiz/sale/AttachmentManagement.vue
@@ -14,7 +14,7 @@
-
@@ -346,6 +303,8 @@ export default {
fileListBankInsured: [],
// 被保人其他类型页面
fileLIstImgInsured: [],
+ // 受益人
+ fileListtypebeneficiary: [],
// fileLIstImgInsrued
// 其他
fileListOtherOne: [],
@@ -380,6 +339,7 @@ export default {
},
created() {
//如果是从编辑进来的
+
if (this.$route.query.edit) {
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
// console.log(res)
@@ -614,6 +574,8 @@ export default {
case 'saleInsuredInfoOther':
that.type = type
break
+ default:
+ that.type = type
}
},
// 删除图片
@@ -863,6 +825,19 @@ export default {
// window.localStorage.setItem('obj', JSON.stringify(obj))
// that.list.push(JSON.parse(window.localStorage.getItem('obj')))
that.list.push(obj)
+ } else if (that.type == 'fileListtypebeneficiary') {
+ // 是受益人
+ let type = '3'
+ let obj = {
+ businessNo: that.orderNo,
+ businessType: '',
+ imageInfoType: '21',
+ rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
+ subBusinessType: type,
+ subBusinessNo: '',
+ fileName: that.imgName
+ }
+ that.list.push(obj)
}
// })
} else {
@@ -991,6 +966,26 @@ export default {
}
},
computed: {
+ // eslint-disable-next-line vue/return-in-computed-property
+ typebeneficiary() {
+ // 1.趸交保费≥20万元或期交保费*总期数≥20万元时,
+ // 2.指定受益人
+ // 3.受益人与被保人关系为其他
+ if (window.localStorage.getItem('fromAddBeneficiaryInfo') && window.localStorage.getItem('trialList').prem >= '200000') {
+ let beneficiaryInfoList = JSON.parse(window.localStorage.getItem('beneficiaryInfo'))
+ for (let index = 0; index < beneficiaryInfoList.length; index++) {
+ // const element = beneficiaryInfoList[index]
+ if (beneficiaryInfoList[index].relationToInsured == '5') {
+ return true
+ } else {
+ return false
+ }
+ }
+ // return true
+ } else {
+ return true
+ }
+ },
listenChange() {
const {
fileListIdFront,
@@ -1006,6 +1001,7 @@ export default {
saleInsuredPersonInfoOther,
saleInsuredInfoOther
} = this
+ console.log(this)
return {
fileListIdFront,
fileListIdBack,
diff --git a/src/views/ebiz/sale/identityCardScan.vue b/src/views/ebiz/sale/identityCardScan.vue
index dddfa475d..7eea649a6 100644
--- a/src/views/ebiz/sale/identityCardScan.vue
+++ b/src/views/ebiz/sale/identityCardScan.vue
@@ -77,7 +77,6 @@ export default {
let that = this
EWebBridge.webCallAppInJs('id_auth', {
front: '1', //1是正面,0是反面。
-
scan: '1' //1是扫描。0是相册。
}).then(data => {
if (JSON.parse(data).state == '1') {