mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 01:22:53 +08:00
Merge branch 'dev_claim' into dev
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
export default function jump(options) {
|
||||
// eslint-disable
|
||||
if (window.WebViewJavascriptBridge && options.flag) {
|
||||
if (options.flag == 'h5') {
|
||||
if (options.flag == 'h5' || options.flag == 'service') {
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: options.flag,
|
||||
extra: options.extra
|
||||
|
||||
@@ -14,20 +14,20 @@
|
||||
></select-radio>
|
||||
<van-row type="flex" class="van-cell van-field pv7 ph8">
|
||||
<van-col class="red posit">*</van-col>
|
||||
<van-col span="11 ml">申请类型</van-col>
|
||||
<van-row>
|
||||
<van-col span="18 ml">申请类型</van-col>
|
||||
<van-row class="flexCenter">
|
||||
<van-col
|
||||
class="van-radio__label pb10"
|
||||
class="van-radio__label pb10 flex"
|
||||
v-for="(item, index) in typeRadio"
|
||||
:key="index"
|
||||
span="11"
|
||||
span="9"
|
||||
>
|
||||
<van-button
|
||||
round
|
||||
plain
|
||||
size="small"
|
||||
type="info"
|
||||
class="ph15 van-button--danger"
|
||||
class="ph15 van-button--danger wh"
|
||||
@click="toActive(item.value, $event)"
|
||||
>{{ item.label }}</van-button>
|
||||
</van-col>
|
||||
@@ -459,4 +459,12 @@ export default {
|
||||
.ml {
|
||||
margin-left: 9px;
|
||||
}
|
||||
.wh {
|
||||
min-width: 28vw;
|
||||
}
|
||||
.flex {
|
||||
margin-left: 5.2vw;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -6,15 +6,17 @@
|
||||
<p class="fwb fs15 pl10 pv12">基本信息</p>
|
||||
<!-- <u class="pv12 fs14 pr10 green" @click="toSearch">已有历史报案信息</u> -->
|
||||
</div>
|
||||
<van-field
|
||||
label="姓名"
|
||||
<customer-picker
|
||||
@nameChange="nameChange"
|
||||
@on-choose="chooseCustomer(arguments)"
|
||||
name="姓名"
|
||||
required
|
||||
v-model="userInfo.insuredName"
|
||||
placeholder="请输入"
|
||||
label="姓名"
|
||||
:parentShowPicker.sync="customerShowPicker"
|
||||
:value.sync="userInfo.insuredName"
|
||||
v-validate="'required|name'"
|
||||
clearable
|
||||
/>
|
||||
required
|
||||
@on-click="selectClick('1')"
|
||||
></customer-picker>
|
||||
<select-radio
|
||||
:radios="sexRadio"
|
||||
label="性别"
|
||||
@@ -173,6 +175,7 @@ import { Field, CellGroup, Popup, Picker, Checkbox, Area } from 'vant'
|
||||
import SelectRadio from '@/components/ebiz/SelectRadio'
|
||||
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
||||
import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker'
|
||||
import CustomerPicker from '@/components/ebiz/claims/CustomerPicker'
|
||||
import { selectComp, chooseOccupation } from '@/views/ebiz/sale/js/methods'
|
||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||
import DataDictionary from '@/assets/js/utils/data-dictionary.js'
|
||||
@@ -180,7 +183,7 @@ import Nationality from '@/assets/js/utils/nationality.js'
|
||||
import areaList from '@/assets/js/utils/area'
|
||||
import getAreaName from '@/assets/js/utils/get-area-name'
|
||||
import idNoCheck from '@/assets/js/utils/idNoCheck'
|
||||
import { apply, query } from '@/api/ebiz/claims/claims'
|
||||
import { apply, query, customerInfo } from '@/api/ebiz/claims/claims'
|
||||
import { idToData } from '@/views/ebiz/customer/js/verification'
|
||||
import utilsAge from '@/assets/js/utils/age'
|
||||
export default {
|
||||
@@ -191,6 +194,7 @@ export default {
|
||||
[SelectRadio.name]: SelectRadio,
|
||||
[FieldDatePicter.name]: FieldDatePicter,
|
||||
[OccupationPicker.name]: OccupationPicker,
|
||||
[CustomerPicker.name]: CustomerPicker,
|
||||
[Popup.name]: Popup,
|
||||
[Picker.name]: Picker,
|
||||
[IdentityCardScan.name]: IdentityCardScan,
|
||||
@@ -201,6 +205,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
isScan: false, //是否显示证件扫描组件
|
||||
customerShowPicker: false, //(客户搜索组件显示隐藏)
|
||||
// 性别
|
||||
sexRadio: [
|
||||
{
|
||||
@@ -374,7 +379,9 @@ export default {
|
||||
this.currentPopupIndex = index
|
||||
selectComp(this, index, '2')
|
||||
let title = ''
|
||||
if (index == 2) {
|
||||
if (index == 1) {
|
||||
;[this.customerShowPicker, title] = [true, '搜索客户']
|
||||
} else if (index == 2) {
|
||||
;[this.occupationShowPicker, title] = [true, '职业类别']
|
||||
} else if (index == 3) {
|
||||
localStorage.scanFromInsured = 'true'
|
||||
@@ -391,6 +398,40 @@ export default {
|
||||
this.closeBtn()
|
||||
}, 400)
|
||||
},
|
||||
|
||||
//监听名字变化
|
||||
nameChange(name) {
|
||||
this.insuredName = name
|
||||
},
|
||||
//选择客户
|
||||
chooseCustomer(Detail) {
|
||||
console.log(Detail)
|
||||
this.customerNo = Detail[0][0].customerNo
|
||||
this.DataIndex = Detail[0][1]
|
||||
this.customerShowPicker = false
|
||||
let data = {
|
||||
customerNo: this.customerNo,
|
||||
surrenderType: '0'
|
||||
}
|
||||
customerInfo(data).then(res => {
|
||||
console.log(res)
|
||||
if (res.result == 0) {
|
||||
let CustomerDetails = res.content
|
||||
//let Customerdetail = this.CustomerDetails[this.DataIndex]
|
||||
this.userInfo.insuredName = CustomerDetails.customerName
|
||||
this.userInfo.insuredSex = CustomerDetails.customerSex
|
||||
this.userInfo.certiType = CustomerDetails.idType
|
||||
this.userInfo.certiCode = CustomerDetails.idNo
|
||||
this.userInfo.insuredBirthday = CustomerDetails.customerBirthday
|
||||
this.userInfo.insuredNo = CustomerDetails.insuredNo //保存客户编号(被保人编号)
|
||||
this.userInfo.insuredNationatlity = CustomerDetails.nationality
|
||||
this.userInfo.insuredMobile = CustomerDetails.customermobile
|
||||
this.userInfo.insuredAddr = CustomerDetails.address
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
ChooseOccupation() {
|
||||
// chooseOccupation(this, '2')
|
||||
this.occupationShowPicker = false
|
||||
@@ -428,7 +469,9 @@ export default {
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
if (this.currentPopupIndex == 2) {
|
||||
if (this.currentPopupIndex == 1) {
|
||||
this.customerShowPicker = false
|
||||
}else if (this.currentPopupIndex == 2) {
|
||||
this.occupationShowPicker = false
|
||||
} else if (this.currentPopupIndex == 3) {
|
||||
this.isScan = false
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
required
|
||||
:value.sync="accidentCause"
|
||||
></select-radio>
|
||||
<van-row type="flex" class="van-cell van-field pv7 ph8">
|
||||
<!-- <van-row type="flex" class="van-cell van-field pv7 ph8">
|
||||
<van-col class="red posit">*</van-col>
|
||||
<van-col span="14 ml">申请类型</van-col>
|
||||
<van-row>
|
||||
@@ -137,6 +137,27 @@
|
||||
>{{ item.label }}</van-button>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</van-row> -->
|
||||
<van-row type="flex" class="van-cell van-field pv7 ph8">
|
||||
<van-col class="red posit">*</van-col>
|
||||
<van-col span="18 ml">申请类型</van-col>
|
||||
<van-row class="flexCenter">
|
||||
<van-col
|
||||
class="van-radio__label pb10 flex"
|
||||
v-for="(item, index) in typeRadio"
|
||||
:key="index"
|
||||
span="9"
|
||||
>
|
||||
<van-button
|
||||
round
|
||||
plain
|
||||
size="small"
|
||||
type="info"
|
||||
class="ph15 van-button--danger wh"
|
||||
@click="toActive(item.value, $event)"
|
||||
>{{ item.label }}</van-button>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</van-row>
|
||||
|
||||
<FieldDatePicter
|
||||
@@ -645,4 +666,13 @@ export default {
|
||||
.ml {
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.wh {
|
||||
min-width: 28vw;
|
||||
}
|
||||
.flex {
|
||||
margin-left: 5.3vw;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -122,7 +122,8 @@ export default {
|
||||
[CellGroup.name]: CellGroup,
|
||||
[Collapse.name]: Collapse,
|
||||
[CollapseItem.name]: CollapseItem,
|
||||
[Dialog.name]: Dialog
|
||||
[Dialog.name]: Dialog,
|
||||
UploadImageFile: UploadImageFile,
|
||||
},
|
||||
created() {
|
||||
this.init()
|
||||
@@ -255,7 +256,6 @@ export default {
|
||||
})
|
||||
} else {
|
||||
this.idcardData.typeface = !this.idcardData.typeface
|
||||
console.log("触发" + this.typeface)
|
||||
this.idcardData.idcardName = this.list.applyerName
|
||||
this.idcardData.idcardNumber = this.list.applyerCertiCode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user