mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 10:43:05 +08:00
Merge branch 'feature/GFRS-2360【需求】金掌柜增加健康告知异常类资料上传需求' into dev
This commit is contained in:
@@ -140,6 +140,20 @@
|
||||
:max-count="1"
|
||||
/>
|
||||
</div>
|
||||
<van-cell-group>
|
||||
<van-field required label="健康告知异常类资料" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListNotify', saleInsuredInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListNotify"
|
||||
v-model="fileListNotify"
|
||||
:after-read="afterRead"
|
||||
@delete="deleteImg"
|
||||
:before-delete="beforeDelete"
|
||||
class="mt10 ml20"
|
||||
:max-count="1"
|
||||
/>
|
||||
</div>
|
||||
<!-- <van-cell-group>
|
||||
<van-field required label="银行卡反面" disabled />
|
||||
</van-cell-group>
|
||||
@@ -214,14 +228,26 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<van-cell-group>
|
||||
<van-field required label="健康告知异常类资料" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListNotifyInsured', saleInsuredInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListNotifyInsured"
|
||||
v-model="fileListNotifyInsured"
|
||||
:after-read="afterRead"
|
||||
@delete="deleteImg"
|
||||
:before-delete="beforeDelete"
|
||||
class="mt10 ml20"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<!-- <div>
|
||||
<div class="flex p10 align-items-c bg-white mt10">
|
||||
<!-- <div class="attachmentManagement-block"></div> -->
|
||||
<span>请点击+上传健康告知异常类资料</span>
|
||||
</div>
|
||||
<div class="m20 bg-white">
|
||||
@@ -242,7 +268,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- 受益人类型 -->
|
||||
<!-- <div v-if="typebeneficiary == true">
|
||||
<div class="flex bg-white p10 align-items-c">
|
||||
@@ -334,9 +360,13 @@ import IndexBar from '@/components/ebiz/sale/IndexBar'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isNotify:false,//是否有异常的健康告知
|
||||
isNotify: false, //是否有异常的健康告知
|
||||
// 订单号
|
||||
orderNo: '',
|
||||
// 被保人异常告知
|
||||
fileListNotifyInsured:[],
|
||||
// 投保人异常告知
|
||||
fileListNotify:[],
|
||||
// 身份证正面
|
||||
fileListIdFront: [
|
||||
// { url: 'https://img.yzcdn.cn/vant/cat.jpeg' }
|
||||
@@ -395,7 +425,7 @@ export default {
|
||||
// 投保人被保险人是否是一个人 1为同一个人
|
||||
relationToAppnt: '',
|
||||
changeCard: localStorage.changeCard,
|
||||
salePageFlag: '7'
|
||||
salePageFlag: '7',
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -434,7 +464,7 @@ export default {
|
||||
// eslint-disable-next-line no-undef
|
||||
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
||||
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||
intercept: '1', //是否拦截原生返回事件 1是 其他否
|
||||
})
|
||||
}, 100)
|
||||
window.appCallBack = this.appCallBack
|
||||
@@ -474,7 +504,7 @@ export default {
|
||||
// 身份证正面
|
||||
if (window.localStorage.getItem('imgfrontPath') != null) {
|
||||
let imgfront = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgfrontPath')}`
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgfrontPath')}`,
|
||||
}
|
||||
that.fileListIdFront.push(imgfront)
|
||||
let obj = {
|
||||
@@ -483,7 +513,7 @@ export default {
|
||||
imageInfoType: '1',
|
||||
rgssUrl: window.localStorage.getItem('imgfrontPath'),
|
||||
subBusinessType: '0',
|
||||
subBusinessNo: that.saleInsuredInfo.insuredId
|
||||
subBusinessNo: that.saleInsuredInfo.insuredId,
|
||||
}
|
||||
that.list.push(obj)
|
||||
} else {
|
||||
@@ -492,7 +522,7 @@ export default {
|
||||
// 被保险人身份证正面
|
||||
if (window.localStorage.getItem('imgfrontInsuredPath') != null) {
|
||||
let imgfront = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgfrontInsuredPath')}`
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgfrontInsuredPath')}`,
|
||||
}
|
||||
that.fileListIdFrontInsured.push(imgfront)
|
||||
let obj = {
|
||||
@@ -501,7 +531,7 @@ export default {
|
||||
imageInfoType: '1',
|
||||
rgssUrl: window.localStorage.getItem('imgfrontInsuredPath'),
|
||||
subBusinessType: '1',
|
||||
subBusinessNo: that.saleInsuredPersonInfo.insuredId
|
||||
subBusinessNo: that.saleInsuredPersonInfo.insuredId,
|
||||
}
|
||||
that.list.push(obj)
|
||||
} else {
|
||||
@@ -510,7 +540,7 @@ export default {
|
||||
// 身份证背面
|
||||
if (window.localStorage.getItem('imgBackPath') != null) {
|
||||
let imgback = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgBackPath')}`
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgBackPath')}`,
|
||||
}
|
||||
that.fileListIdBack.push(imgback)
|
||||
let obj = {
|
||||
@@ -519,7 +549,7 @@ export default {
|
||||
imageInfoType: '2',
|
||||
rgssUrl: window.localStorage.getItem('imgBackPath'),
|
||||
subBusinessType: '0',
|
||||
subBusinessNo: that.saleInsuredInfo.insuredId
|
||||
subBusinessNo: that.saleInsuredInfo.insuredId,
|
||||
}
|
||||
that.list.push(obj)
|
||||
} else {
|
||||
@@ -528,7 +558,7 @@ export default {
|
||||
// 被保险人身份证背面
|
||||
if (window.localStorage.getItem('imgBackInsuredPath') != null) {
|
||||
let imgback = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgBackInsuredPath')}`
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('imgBackInsuredPath')}`,
|
||||
}
|
||||
that.fileListIdBackInsured.push(imgback)
|
||||
let obj = {
|
||||
@@ -537,7 +567,7 @@ export default {
|
||||
imageInfoType: '2',
|
||||
rgssUrl: window.localStorage.getItem('imgBackInsuredPath'),
|
||||
subBusinessType: '1',
|
||||
subBusinessNo: that.saleInsuredPersonInfo.insuredId
|
||||
subBusinessNo: that.saleInsuredPersonInfo.insuredId,
|
||||
}
|
||||
that.list.push(obj)
|
||||
} else {
|
||||
@@ -546,7 +576,7 @@ export default {
|
||||
// 银行卡
|
||||
if (window.localStorage.getItem('bankCardUrlPath') != null) {
|
||||
let bankCardUrl = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('bankCardUrlPath')}`
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${window.localStorage.getItem('bankCardUrlPath')}`,
|
||||
}
|
||||
that.fileListBank.push(bankCardUrl)
|
||||
let obj = {
|
||||
@@ -555,7 +585,7 @@ export default {
|
||||
imageInfoType: '3',
|
||||
rgssUrl: window.localStorage.getItem('bankCardUrlPath'),
|
||||
subBusinessType: '0',
|
||||
subBusinessNo: that.saleInsuredInfo.insuredId
|
||||
subBusinessNo: that.saleInsuredInfo.insuredId,
|
||||
}
|
||||
that.list.push(obj)
|
||||
} else {
|
||||
@@ -595,7 +625,7 @@ export default {
|
||||
title: '提示',
|
||||
message: '退出流程可能会丢失部分数据,是否确认退出?',
|
||||
cancelButtonColor: '#E9332E',
|
||||
confirmButtonColor: '#FFFFFF'
|
||||
confirmButtonColor: '#FFFFFF',
|
||||
})
|
||||
.then(() => {
|
||||
this.$jump({
|
||||
@@ -603,12 +633,12 @@ export default {
|
||||
extra: {
|
||||
title: '电子投保单列表',
|
||||
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||
url: location.origin + `/#/sale/list`
|
||||
url: location.origin + `/#/sale/list`,
|
||||
},
|
||||
routerInfo: {
|
||||
path: `/sale/list`,
|
||||
type: '1'
|
||||
}
|
||||
type: '1',
|
||||
},
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
@@ -622,7 +652,7 @@ export default {
|
||||
let that = this
|
||||
Dialog.confirm({
|
||||
title: '提示',
|
||||
message: '您确定要删除吗'
|
||||
message: '您确定要删除吗',
|
||||
}).then(() => {
|
||||
if (detail.name == 'fileListIdFront') {
|
||||
this.fileListIdFront = []
|
||||
@@ -764,7 +794,7 @@ export default {
|
||||
|
||||
loadingType: 'spinner',
|
||||
|
||||
message: '加载中……'
|
||||
message: '加载中……',
|
||||
})
|
||||
let formdata = new FormData()
|
||||
formdata.append('imgPath', that.dataURLtoFile(that.file, that.imgName))
|
||||
@@ -875,6 +905,9 @@ export default {
|
||||
// } else if (that.type == 'fileListBankBack') {
|
||||
// //银行卡反面
|
||||
// imageInfoType = '19'
|
||||
}else if(that.type == 'fileListNotify'){
|
||||
name='fileListNotify';
|
||||
imageInfoType = '24'
|
||||
}
|
||||
let obj = {
|
||||
name: name,
|
||||
@@ -885,7 +918,7 @@ export default {
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '0',
|
||||
subBusinessNo: that.saleInsuredInfo.appntId,
|
||||
fileName: that.imgName
|
||||
fileName: that.imgName,
|
||||
}
|
||||
that.list.push(obj)
|
||||
} else if (
|
||||
@@ -946,6 +979,9 @@ export default {
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '9') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '18'
|
||||
}else if(that.type == 'fileListNotifyInsured'){
|
||||
name='fileListNotifyInsured';
|
||||
imageInfoType = '24'
|
||||
}
|
||||
|
||||
let obj = {
|
||||
@@ -956,7 +992,7 @@ export default {
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '1',
|
||||
subBusinessNo: that.saleInsuredPersonInfo.insuredId,
|
||||
fileName: that.imgName
|
||||
fileName: that.imgName,
|
||||
}
|
||||
|
||||
that.list.push(obj)
|
||||
@@ -972,7 +1008,7 @@ export default {
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: type,
|
||||
subBusinessNo: '',
|
||||
fileName: that.imgName
|
||||
fileName: that.imgName,
|
||||
}
|
||||
|
||||
that.list.push(obj)
|
||||
@@ -989,20 +1025,20 @@ export default {
|
||||
// fileName: that.imgName
|
||||
// }
|
||||
// that.list.push(obj)
|
||||
}else if(that.type == 'fileListNotify'){
|
||||
} else if (that.type == 'fileListNotify') {
|
||||
// 健康告知异常类资料
|
||||
let obj = {
|
||||
name: 'fileListNotify',
|
||||
businessNo: that.orderNo,
|
||||
businessType: '',
|
||||
imageInfoType: '24',
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '0',
|
||||
subBusinessNo: '',
|
||||
fileName: that.imgName
|
||||
}
|
||||
// let obj = {
|
||||
// name: 'fileListNotify',
|
||||
// businessNo: that.orderNo,
|
||||
// businessType: '',
|
||||
// imageInfoType: '24',
|
||||
// rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
// subBusinessType: '0',
|
||||
// subBusinessNo: '',
|
||||
// fileName: that.imgName,
|
||||
// }
|
||||
|
||||
that.list.push(obj)
|
||||
// that.list.push(obj)
|
||||
}
|
||||
} else {
|
||||
switch (that.type) {
|
||||
@@ -1130,14 +1166,14 @@ export default {
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: window.localStorage.getItem('orderNo'),
|
||||
productCode: JSON.parse(localStorage.mainRiskCodes)[0]
|
||||
productCode: JSON.parse(localStorage.mainRiskCodes)[0],
|
||||
},
|
||||
appntDTO: {
|
||||
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt
|
||||
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
|
||||
},
|
||||
mediaDTOS: that.list
|
||||
mediaDTOS: that.list,
|
||||
},
|
||||
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER'
|
||||
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
|
||||
}
|
||||
|
||||
saveInformation(data).then((res) => {
|
||||
@@ -1164,17 +1200,17 @@ export default {
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/signatureConfirmation',
|
||||
pullRefresh: '1',
|
||||
backToFirst: '1'
|
||||
backToFirst: '1',
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/signatureConfirmation'
|
||||
}
|
||||
path: '/sale/signatureConfirmation',
|
||||
},
|
||||
})
|
||||
} else {
|
||||
that.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
// eslint-disable-next-line vue/return-in-computed-property
|
||||
@@ -1211,7 +1247,7 @@ export default {
|
||||
fileListBankInsured,
|
||||
fileLIstImgInsured,
|
||||
saleInsuredPersonInfoOther,
|
||||
saleInsuredInfoOther
|
||||
saleInsuredInfoOther,
|
||||
// fileListtypebeneficiary
|
||||
} = this
|
||||
console.log(this)
|
||||
@@ -1227,10 +1263,10 @@ export default {
|
||||
fileLIstImgInsured,
|
||||
fileLIstImg,
|
||||
saleInsuredPersonInfoOther,
|
||||
saleInsuredInfoOther
|
||||
saleInsuredInfoOther,
|
||||
// fileListtypebeneficiary
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
listenChange(val) {
|
||||
@@ -1360,7 +1396,7 @@ export default {
|
||||
that.isDisabled = true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
components: {
|
||||
[Cell.name]: Cell,
|
||||
@@ -1372,8 +1408,8 @@ export default {
|
||||
[Dialog.name]: Dialog,
|
||||
[Picker.name]: Picker,
|
||||
[Popup.name]: Popup,
|
||||
[IndexBar.name]: IndexBar
|
||||
}
|
||||
[IndexBar.name]: IndexBar,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user