mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 05:26:43 +08:00
Compare commits
3 Commits
hotfix/【20
...
feature/FC
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff4cf2abd0 | ||
|
|
e17addb02d | ||
|
|
b1f3eab2b4 |
@@ -362,4 +362,12 @@ export function getDoubleRecordProductLst(data) {
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function appntIsAgent(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/insure/appntIsAgent', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
class="attachmentManagement-next"
|
||||
size="large"
|
||||
:disabled="isDisabled"
|
||||
@click="next"
|
||||
@click="appntIsAgent"
|
||||
@touchstart="beforeNext(isDisabled)"
|
||||
v-no-more-click="1000"
|
||||
>立即投保</van-button
|
||||
@@ -148,7 +148,7 @@ import { Cell, CellGroup, Field, Uploader, RadioGroup, Radio, Dialog, Picker, Po
|
||||
import { cardOrderDetail,saveOrUpdateGroupCard } from '@/api/ebiz/cardList/cardList.js'
|
||||
import config from '@/config'
|
||||
import utils from '../../../assets/js/business-common'
|
||||
import { underWrite } from '@/api/ebiz/sale/sale'
|
||||
import { underWrite, appntIsAgent } from '@/api/ebiz/sale/sale'
|
||||
import { uploadImg, IDCardOCR } from '@/api/ebiz/sale/sale'
|
||||
|
||||
|
||||
@@ -1037,6 +1037,35 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
appntIsAgent(){
|
||||
let params = {
|
||||
orderNo: this.cardOrderNo
|
||||
}
|
||||
appntIsAgent(params).then(res=>{
|
||||
if(res.result == '0') {
|
||||
if(res.content.isAgengFlag == '0') {
|
||||
this.$dialog.confirm({
|
||||
className: 'dialog-delete',
|
||||
title: '提示',
|
||||
message: '投保人/法人同时为代理人,此代理人费用为0。(虚拟账号的提示虚拟代理人费用为0。)请确认提交审核或者退回修改!',
|
||||
cancelButtonColor: '#E9332E',
|
||||
confirmButtonColor: '#FFFFFF',
|
||||
cancelButtonText: '退回'
|
||||
})
|
||||
.then(() => {
|
||||
this.next()
|
||||
})
|
||||
.catch(() => {
|
||||
return
|
||||
})
|
||||
} else {
|
||||
this.next()
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 点击下一步
|
||||
next() {
|
||||
|
||||
@@ -579,7 +579,7 @@ import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||
import areaList from '@/assets/js/utils/areaForSale'
|
||||
import { getProductInfo,saveOrUpdateCard,insureTrial } from '@/api/ebiz/cardList/cardList.js'
|
||||
import { underWrite } from '@/api/ebiz/sale/sale'
|
||||
import { underWrite, appntIsAgent } from '@/api/ebiz/sale/sale'
|
||||
import utilsAge from '@/assets/js/utils/age'
|
||||
import getAreaName from '@/assets/js/utils/getAreaNameForSale'
|
||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||
@@ -1097,6 +1097,35 @@ export default {
|
||||
this.areaCode = this.insuredInfo.homeArea
|
||||
}
|
||||
},
|
||||
appntIsAgent(orderNo){
|
||||
let params = {
|
||||
orderNo: orderNo
|
||||
}
|
||||
appntIsAgent(params).then(res=>{
|
||||
if(res.result == '0') {
|
||||
if(res.content.isAgengFlag == '0') {
|
||||
this.$dialog.confirm({
|
||||
className: 'dialog-delete',
|
||||
title: '提示',
|
||||
message: '投保人/法人同时为代理人,此代理人费用为0。(虚拟账号的提示虚拟代理人费用为0。)请确认提交审核或者退回修改!',
|
||||
cancelButtonColor: '#E9332E',
|
||||
confirmButtonColor: '#FFFFFF',
|
||||
cancelButtonText: '退回'
|
||||
})
|
||||
.then(() => {
|
||||
this.underWrite(orderNo)
|
||||
})
|
||||
.catch(() => {
|
||||
return
|
||||
})
|
||||
} else {
|
||||
this.underWrite(orderNo)
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
underWrite(orderNo) {
|
||||
let data = {
|
||||
platform: 'app',
|
||||
@@ -2401,8 +2430,8 @@ export default {
|
||||
// console.log(this.userInfo)
|
||||
|
||||
let orderNo = (localStorage.orderNo = resultData.content.object)
|
||||
|
||||
this.underWrite(orderNo)
|
||||
this.appntIsAgent(orderNo)
|
||||
// this.underWrite(orderNo)
|
||||
} else {
|
||||
console.error(resultData.resultMessage)
|
||||
this.$toast(resultData.resultMessage)
|
||||
|
||||
Reference in New Issue
Block a user