|
@@ -45,18 +45,18 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="p-t20">
|
|
<view class="p-t20">
|
|
|
<WhInput :value="formData.name" name="姓名" placeholder="待自动录入" disabled></WhInput>
|
|
<WhInput :value="formData.name" name="姓名" placeholder="待自动录入" disabled></WhInput>
|
|
|
- <WhInput :value="formData.gender" name="性别" placeholder="待自动录入" disabled></WhInput>
|
|
|
|
|
|
|
+ <WhInput :value="formData.sex===1?'男':'女'" name="性别" placeholder="待自动录入" disabled></WhInput>
|
|
|
<WhInput :value="formData.id_number" :is_border="false" :name="'身份证号'" placeholder="待自动录入"
|
|
<WhInput :value="formData.id_number" :is_border="false" :name="'身份证号'" placeholder="待自动录入"
|
|
|
disabled>
|
|
disabled>
|
|
|
</WhInput>
|
|
</WhInput>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="sys-background-fff r-20 m-t20 p-lr30">
|
|
<view class="sys-background-fff r-20 m-t20 p-lr30">
|
|
|
- <WhInput :name="'联系方式'"></WhInput>
|
|
|
|
|
|
|
+ <WhInput :value="formData.phone" :name="'联系方式'"></WhInput>
|
|
|
<EnDataPicker title="请选择常居城市" @onChange="onChange">
|
|
<EnDataPicker title="请选择常居城市" @onChange="onChange">
|
|
|
- <WhInput :value="formData.firm_address" name="常居城市" disabled is_select></WhInput>
|
|
|
|
|
|
|
+ <WhInput :value="formData.resident_city" name="常居城市" disabled is_select></WhInput>
|
|
|
</EnDataPicker>
|
|
</EnDataPicker>
|
|
|
- <WhInput :name="'详细地址'"></WhInput>
|
|
|
|
|
|
|
+ <WhInput :name="'详细地址'" :value="formData.resident_address"></WhInput>
|
|
|
<view @click="onMarriage">
|
|
<view @click="onMarriage">
|
|
|
<WhInput :is_border="false" name="婚姻状态" disabled is_select></WhInput>
|
|
<WhInput :is_border="false" name="婚姻状态" disabled is_select></WhInput>
|
|
|
</view>
|
|
</view>
|
|
@@ -69,7 +69,7 @@
|
|
|
<view class="sys-background-fff r-20 m-t20 p-lr30 p-t30">
|
|
<view class="sys-background-fff r-20 m-t20 p-lr30 p-t30">
|
|
|
<view class="size-30 sys-weight-600 p-b30">教育职业背景</view>
|
|
<view class="size-30 sys-weight-600 p-b30">教育职业背景</view>
|
|
|
<WhInput name="学历" disabled is_select></WhInput>
|
|
<WhInput name="学历" disabled is_select></WhInput>
|
|
|
- <EnRadio :value="formData.is_farming" name="雇佣类型" :list="farming" @onSelect="onFarming">
|
|
|
|
|
|
|
+ <EnRadio :value="formData.is_farming" name="雇佣类型" :list="employTypeData" @onSelect="onFarming">
|
|
|
</EnRadio>
|
|
</EnRadio>
|
|
|
<WhInput name="企业名称"></WhInput>
|
|
<WhInput name="企业名称"></WhInput>
|
|
|
<WhInput name="企业城市" disabled is_select></WhInput>
|
|
<WhInput name="企业城市" disabled is_select></WhInput>
|
|
@@ -93,8 +93,7 @@
|
|
|
@onSubmit="onSubmit" />
|
|
@onSubmit="onSubmit" />
|
|
|
<EnButton v-else is_both :leftText="'保存'" :rightText="'下一步'" @onLeftSubmit="onLeftSubmit" @onSubmit="onStep(1)">
|
|
<EnButton v-else is_both :leftText="'保存'" :rightText="'下一步'" @onLeftSubmit="onLeftSubmit" @onSubmit="onStep(1)">
|
|
|
</EnButton>
|
|
</EnButton>
|
|
|
- <uv-action-sheet ref="actionSheet" round="10" :actions="list" title="请选择婚姻状态" @select="onSelect">
|
|
|
|
|
- </uv-action-sheet>
|
|
|
|
|
|
|
+ <uv-action-sheet ref="marriageSheet" round="10" :actions="marriageData" title="请选择婚姻状态" @select="onSelectMarriage"></uv-action-sheet>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- correct -->
|
|
<!-- correct -->
|
|
@@ -111,20 +110,19 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- list: [{
|
|
|
|
|
- name: '单身',
|
|
|
|
|
- value: 1
|
|
|
|
|
- }, {
|
|
|
|
|
- name: '已婚',
|
|
|
|
|
- value: 2
|
|
|
|
|
- }],
|
|
|
|
|
- farming: [{
|
|
|
|
|
- text: '受薪',
|
|
|
|
|
- value: 1
|
|
|
|
|
- }, {
|
|
|
|
|
- text: '自雇',
|
|
|
|
|
- value: 2
|
|
|
|
|
- }],
|
|
|
|
|
|
|
+ marriageData: [{'value': 1, 'name': '单身'}, {'value': 2, 'name': '已婚'}, {'value': 3, 'name': '离异'}, {'value': 4, 'name': '丧偶'},],
|
|
|
|
|
+ employTypeData: [{'value': 1, 'name': '受薪'}, {'value': 2, 'name': '自雇'}],
|
|
|
|
|
+ educationData: [
|
|
|
|
|
+ {name: "初中", value: 1,},
|
|
|
|
|
+ {name: "高中", value: 2,},
|
|
|
|
|
+ {name: "中专", value: 3,},
|
|
|
|
|
+ {name: "大专", value: 4,},
|
|
|
|
|
+ {name: "本科", value: 5,},
|
|
|
|
|
+ {name: "研究生", value: 6,},
|
|
|
|
|
+ {name: "硕士", value: 7,},
|
|
|
|
|
+ {name: "博士", value: 8,},
|
|
|
|
|
+ {name: "博士后", value: 9,},
|
|
|
|
|
+ ],
|
|
|
title: '',
|
|
title: '',
|
|
|
step: 1,
|
|
step: 1,
|
|
|
scrollTop: 0,
|
|
scrollTop: 0,
|
|
@@ -161,9 +159,18 @@
|
|
|
"reserved_money": "",
|
|
"reserved_money": "",
|
|
|
"marriage_img": [],
|
|
"marriage_img": [],
|
|
|
"credit_img": []
|
|
"credit_img": []
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ clientInfoKey:[]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ 'formData': {
|
|
|
|
|
+ handler() {
|
|
|
|
|
+ uni.$emit("putClientInfo", this.formData);
|
|
|
|
|
+ },
|
|
|
|
|
+ deep: true
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
onPageScroll(res) {
|
|
onPageScroll(res) {
|
|
|
this.scrollTop = res.scrollTop / 120
|
|
this.scrollTop = res.scrollTop / 120
|
|
|
},
|
|
},
|
|
@@ -171,7 +178,20 @@
|
|
|
this.title = options.title
|
|
this.title = options.title
|
|
|
let clientInfoData = uni.getStorageSync('clientInfoData')
|
|
let clientInfoData = uni.getStorageSync('clientInfoData')
|
|
|
let clientInfoKey = uni.getStorageSync('clientInfoKey')
|
|
let clientInfoKey = uni.getStorageSync('clientInfoKey')
|
|
|
|
|
+ this.formData=clientInfoData
|
|
|
|
|
+ this.clientInfoKey=clientInfoKey
|
|
|
console.log(clientInfoData, clientInfoKey)
|
|
console.log(clientInfoData, clientInfoKey)
|
|
|
|
|
+ uni.$on('discernMember',data=>{
|
|
|
|
|
+ this.formData.identity_one=data.identity_one
|
|
|
|
|
+ this.formData.identity_two=data.identity_two
|
|
|
|
|
+ this.formData.name=data.name
|
|
|
|
|
+ this.formData.id_number=data.id_number
|
|
|
|
|
+ this.formData.sex=data.sex
|
|
|
|
|
+ this.formData.identity_validity=data.identity_validity
|
|
|
|
|
+ })
|
|
|
|
|
+ uni.$on('setClientData',clientInfo=>{
|
|
|
|
|
+ this.formData=clientInfo
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
setNum(step) {
|
|
setNum(step) {
|
|
@@ -211,10 +231,9 @@
|
|
|
this.formData.firm_address = address
|
|
this.formData.firm_address = address
|
|
|
},
|
|
},
|
|
|
onMarriage() {
|
|
onMarriage() {
|
|
|
- console.log(11111);
|
|
|
|
|
- this.$refs.actionSheet.open();
|
|
|
|
|
|
|
+ this.$refs.marriageSheet.open();
|
|
|
},
|
|
},
|
|
|
- onSelect(e) {
|
|
|
|
|
|
|
+ onSelectMarriage(e) {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
|
},
|
|
},
|
|
|
onFarming(e) {
|
|
onFarming(e) {
|