|
@@ -42,14 +42,13 @@
|
|
|
<!-- </view>-->
|
|
<!-- </view>-->
|
|
|
<!-- <button class="attestation-button button-background button-color size-26 r-30" type="default" hover-class="is-hover" @click="onAuthentication(1)">去认证</button>-->
|
|
<!-- <button class="attestation-button button-background button-color size-26 r-30" type="default" hover-class="is-hover" @click="onAuthentication(1)">去认证</button>-->
|
|
|
<!-- </view>-->
|
|
<!-- </view>-->
|
|
|
- <add-identity></add-identity>
|
|
|
|
|
|
|
+ <add-identity :user-name.sync="formData.name" :user-sex.sync="formData.sex" :id-number.sync="formData.id_number" :identity-one.sync="formData.identity_one" :identity-two.sync="formData.identity_two" :identity-validity.sync="formData.identity_validity" :user-birthday.sync="formData.birthday" v-if="verifyKey('identity_one')"></add-identity>
|
|
|
<view class="p-t20">
|
|
<view class="p-t20">
|
|
|
- <WhInput :value="formData.name" name="姓名" placeholder="待自动录入" disabled></WhInput>
|
|
|
|
|
|
|
+ <WhInput :value="formData.name" name="姓名" placeholder="待自动录入" v-if="verifyKey('name')" disabled></WhInput>
|
|
|
<!-- <WhInput :value="formData.sex===1?'男':'女'" name="性别" placeholder="待自动录入" disabled></WhInput>-->
|
|
<!-- <WhInput :value="formData.sex===1?'男':'女'" name="性别" placeholder="待自动录入" disabled></WhInput>-->
|
|
|
- <EnRadio v-model="formData.sex" name="雇佣类型" :list="sexData" disabled="disabled"> </EnRadio>
|
|
|
|
|
- <WhInput :value="formData.id_number" :is_border="false" :name="'身份证号'" placeholder="待自动录入"
|
|
|
|
|
- disabled>
|
|
|
|
|
- </WhInput>
|
|
|
|
|
|
|
+ <EnRadio v-model="formData.sex" name="性别" v-if="verifyKey('sex')" :list="sexData" disabled="disabled"> </EnRadio>
|
|
|
|
|
+ <WhInput :value="formData.id_number" v-if="verifyKey('id_number')" :is_border="false" :name="'身份证号'" placeholder="待自动录入" disabled> </WhInput>
|
|
|
|
|
+ <WhInput :value="formData.birthday" v-if="verifyKey('birthday')" :is_border="false" :name="'生日'" placeholder="待自动录入" disabled> </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">
|
|
@@ -60,6 +59,7 @@
|
|
|
<en-upload label="添加结婚证" :imageWidth="180" v-if="verifyKey('marriage_img') && formData.marriage_type!=='1'" v-model="formData.marriage_img"></en-upload>
|
|
<en-upload label="添加结婚证" :imageWidth="180" v-if="verifyKey('marriage_img') && formData.marriage_type!=='1'" v-model="formData.marriage_img"></en-upload>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="sys-background-fff r-20 m-t20 p-lr30" v-if="formData.marriage_type===2">
|
|
<view class="sys-background-fff r-20 m-t20 p-lr30" v-if="formData.marriage_type===2">
|
|
|
|
|
+ <add-identity v-if="verifyKey('m_identity_one')" :user-name.sync="formData.mate_name" :id-number.sync="formData.mate_id_number" :identity-one.sync="formData.m_identity_one" :identity-two.sync="formData.m_identity_two" :identity-validity="formData.m_identity_validity" ></add-identity>
|
|
|
<WhInput label="配偶姓名" type="text" placeholder="等待自动录入" v-if="verifyKey('mate_name')"
|
|
<WhInput label="配偶姓名" type="text" placeholder="等待自动录入" v-if="verifyKey('mate_name')"
|
|
|
v-model="formData.mate_name"></WhInput>
|
|
v-model="formData.mate_name"></WhInput>
|
|
|
<WhInput label="配偶身份" type="idcard" placeholder="等待自动录入" v-if="verifyKey('mate_id_number')"
|
|
<WhInput label="配偶身份" type="idcard" placeholder="等待自动录入" v-if="verifyKey('mate_id_number')"
|
|
@@ -73,34 +73,30 @@
|
|
|
<!-- 身份认证end -->
|
|
<!-- 身份认证end -->
|
|
|
|
|
|
|
|
<!-- 教育职业背景start -->
|
|
<!-- 教育职业背景start -->
|
|
|
- <view class="m-t20 m-lr30 text-color-12" >
|
|
|
|
|
|
|
+ <view class="m-t20 m-lr30 text-color-12" v-show="verifyKey('education_type') || verifyKey('employ_type') || verifyKey('firm_name')|| verifyKey('firm_city')|| verifyKey('firm_address')">
|
|
|
<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="学历" is_select></WhInput>
|
|
|
|
|
|
|
+ <WhInput name="学历" placeholder="请选择教育背景" :local-data="educationData" v-if="verifyKey('education_type')" v-model="formData.education_type" is_select></WhInput>
|
|
|
<EnRadio v-model="formData.is_farming" name="雇佣类型" :list="employTypeData" > </EnRadio>
|
|
<EnRadio v-model="formData.is_farming" name="雇佣类型" :list="employTypeData" > </EnRadio>
|
|
|
- <WhInput name="企业名称"></WhInput>
|
|
|
|
|
- <WhInput name="企业城市" is_select></WhInput>
|
|
|
|
|
- <WhInput :is_border="false" name="详细地址"></WhInput>
|
|
|
|
|
|
|
+ <WhInput name="企业名称" placeholder="请输入企业名称" v-if="verifyKey('firm_name')" v-model="formData.firm_name"></WhInput>
|
|
|
|
|
+ <en-city label="企业城市" placeholder="请选择省、市、区" v-if="verifyKey('firm_city')" v-model="formData.firm_city"></en-city>
|
|
|
|
|
+ <WhInput :is_border="false" name="详细地址" v-if="verifyKey('firm_address')" v-model="formData.firm_address"></WhInput>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 教育职业背景end -->
|
|
<!-- 教育职业背景end -->
|
|
|
|
|
|
|
|
<!-- 社保信息start -->
|
|
<!-- 社保信息start -->
|
|
|
- <view class="m-t20 m-lr30 text-color-12" >
|
|
|
|
|
|
|
+ <view class="m-t20 m-lr30 text-color-12" v-show="verifyKey('social_num') || verifyKey('reserved_money')">
|
|
|
<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="缴纳时间" rightText="月" placeholder="请输入社保连续缴纳时间"></WhInput>
|
|
|
|
|
- <WhInput name="公积金" rightText="元" placeholder="请输入公积金缴纳基数"></WhInput>
|
|
|
|
|
|
|
+ <WhInput name="缴纳时间" rightText="月" v-if="verifyKey('social_num')" v-model="formData.social_num"></WhInput>
|
|
|
|
|
+ <WhInput name="公积金" rightText="元" v-if="verifyKey('reserved_money')" v-model="formData.reserved_money" placeholder="请输入公积金缴纳基数"></WhInput>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 社保信息end -->
|
|
<!-- 社保信息end -->
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <EnButton :text="'完成'" @onSubmit="onSubmit" v-if="step === 3 || step === 4"></EnButton> -->
|
|
<!-- <EnButton :text="'完成'" @onSubmit="onSubmit" v-if="step === 3 || step === 4"></EnButton> -->
|
|
|
- <EnButton v-if="step === 3" is_both :leftText="'上一步'" :rightText="'保存'" @onLeftSubmit="onStep(0)"
|
|
|
|
|
- @onSubmit="onSubmit" />
|
|
|
|
|
- <EnButton v-else is_both :leftText="'保存'" :rightText="'下一步'" @onLeftSubmit="onLeftSubmit" @onSubmit="onStep(1)">
|
|
|
|
|
- </EnButton>
|
|
|
|
|
- <uv-action-sheet ref="marriageSheet" round="10" :actions="marriageData" title="请选择婚姻状态" @select="onSelectMarriage"></uv-action-sheet>
|
|
|
|
|
|
|
+ <EnButton is_both :leftText="'上一步'" :rightText="'保存'" @onLeftSubmit="onStep(0)" @onSubmit="onSubmit" />
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- correct -->
|
|
<!-- correct -->
|
|
@@ -197,15 +193,7 @@
|
|
|
let clientInfoKey = uni.getStorageSync('clientInfoKey')
|
|
let clientInfoKey = uni.getStorageSync('clientInfoKey')
|
|
|
this.formData=clientInfoData
|
|
this.formData=clientInfoData
|
|
|
this.clientInfoKey=clientInfoKey
|
|
this.clientInfoKey=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=>{
|
|
uni.$on('setClientData',clientInfo=>{
|
|
|
this.formData=clientInfo
|
|
this.formData=clientInfo
|
|
|
})
|
|
})
|
|
@@ -214,11 +202,6 @@
|
|
|
verifyKey(field) {
|
|
verifyKey(field) {
|
|
|
return this.clientInfoKey.indexOf(field) >= 0
|
|
return this.clientInfoKey.indexOf(field) >= 0
|
|
|
},
|
|
},
|
|
|
- setNum(step) {
|
|
|
|
|
- if (this.step !== step) {
|
|
|
|
|
- this.step = step
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
// 身份认证
|
|
// 身份认证
|
|
|
onAuthentication(item) {
|
|
onAuthentication(item) {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
@@ -233,13 +216,7 @@
|
|
|
},
|
|
},
|
|
|
// 下一步
|
|
// 下一步
|
|
|
onStep(type) {
|
|
onStep(type) {
|
|
|
- if (type === 1) {
|
|
|
|
|
- if (this.step === 3) return
|
|
|
|
|
- this.step++
|
|
|
|
|
- } else {
|
|
|
|
|
- if (this.step === 1) return
|
|
|
|
|
- this.step--
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
// 完成
|
|
// 完成
|
|
@@ -249,16 +226,8 @@
|
|
|
onChange(address) {
|
|
onChange(address) {
|
|
|
console.log(address);
|
|
console.log(address);
|
|
|
this.formData.firm_address = address
|
|
this.formData.firm_address = address
|
|
|
- },
|
|
|
|
|
- onMarriage() {
|
|
|
|
|
- this.$refs.marriageSheet.open();
|
|
|
|
|
- },
|
|
|
|
|
- onSelectMarriage(e) {
|
|
|
|
|
- console.log(e);
|
|
|
|
|
- },
|
|
|
|
|
- onFarming(e) {
|
|
|
|
|
- this.formData.is_farming = e
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|