|
|
@@ -47,22 +47,22 @@
|
|
|
: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">
|
|
|
- <en-input :value="formData.name" label="姓名" placeholder="待自动录入" v-if="verifyKey('name')"
|
|
|
+ <en-input v-model="formData.name" label="姓名" placeholder="待自动录入" v-if="verifyKey('name')"
|
|
|
disabled></en-input>
|
|
|
- <!-- <en-input :value="formData.sex===1?'男':'女'" label="性别" placeholder="待自动录入" disabled></en-input>-->
|
|
|
+ <!-- <en-input v-model="formData.sex===1?'男':'女'" label="性别" placeholder="待自动录入" disabled></en-input>-->
|
|
|
<EnRadio v-model="formData.sex" label="性别" v-if="verifyKey('sex')" :list="sexData"
|
|
|
disabled="disabled"> </EnRadio>
|
|
|
- <en-input :value="formData.id_number" v-if="verifyKey('id_number')" :label="'身份证号'"
|
|
|
+ <en-input v-model="formData.id_number" v-if="verifyKey('id_number')" :label="'身份证号'"
|
|
|
placeholder="待自动录入" disabled> </en-input>
|
|
|
- <en-input :value="formData.birthday" v-if="verifyKey('birthday')" :is_border="false"
|
|
|
+ <en-input v-model="formData.birthday" v-if="verifyKey('birthday')" :is_border="false"
|
|
|
:label="'生日'" placeholder="待自动录入" disabled> </en-input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="sys-background-fff r-20 m-t20 p-lr30">
|
|
|
- <en-input :value="formData.phone" v-if="verifyKey('phone')" :label="'联系方式'"></en-input>
|
|
|
+ <en-input v-model="formData.phone" v-if="verifyKey('phone')" :label="'联系方式'"></en-input>
|
|
|
<en-city label="常居城市" placeholder="请选择省、市、区" v-if="verifyKey('resident_city')"
|
|
|
v-model="formData.resident_city"></en-city>
|
|
|
- <en-input :label="'详细地址'" :value="formData.resident_address"
|
|
|
+ <en-input :label="'详细地址'" v-model="formData.resident_address"
|
|
|
v-if="verifyKey('resident_address')"></en-input>
|
|
|
<en-select label="婚姻状态" :local-data="marriageData" v-if="verifyKey('marriage_type')"
|
|
|
v-model="formData.marriage_type"></en-select>
|
|
|
@@ -92,9 +92,8 @@
|
|
|
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="size-30 sys-weight-600 p-b30">教育职业背景</view>
|
|
|
- <en-input label="学历" placeholder="请选择教育背景" :local-data="educationData"
|
|
|
- v-if="verifyKey('education_type')" v-model="formData.education_type" disabled
|
|
|
- is_select></en-input>
|
|
|
+ <en-select label="学历" placeholder="请选择教育背景" :local-data="educationData"
|
|
|
+ v-if="verifyKey('education_type')" v-model="formData.education_type" ></en-select>
|
|
|
<EnRadio v-model="formData.is_farming" label="雇佣类型" :list="employTypeData"> </EnRadio>
|
|
|
<en-input label="企业名称" placeholder="请输入企业名称" v-if="verifyKey('firm_name')"
|
|
|
v-model="formData.firm_name"></en-input>
|
|
|
@@ -118,8 +117,7 @@
|
|
|
</view>
|
|
|
<!-- 社保信息end -->
|
|
|
</view>
|
|
|
- <!-- <EnButton :text="'完成'" @onSubmit="onSubmit" v-if="step === 3 || step === 4"></EnButton> -->
|
|
|
- <EnButton is_both :leftText="'上一步'" :rightText="'保存'" @onLeftSubmit="onStep(0)" @onSubmit="onSubmit" />
|
|
|
+ <EnButton :text="'完成'" @onSubmit="onSubmit" ></EnButton>
|
|
|
</view>
|
|
|
</template>
|
|
|
<!-- correct -->
|
|
|
@@ -131,6 +129,8 @@
|
|
|
import EnUpload from "@/components/en-from/en-upload/en-upload.vue";
|
|
|
import AddIdentity from "@/page_task/identity_upload/add-identity.vue";
|
|
|
import EnInput from "@/components/en-from/en-input/en-input.vue";
|
|
|
+ import tools from "@/service/tools";
|
|
|
+ import {verifyBusinessModuleKey} from "@/api/task";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -252,10 +252,16 @@
|
|
|
watch: {
|
|
|
'formData': {
|
|
|
handler() {
|
|
|
- uni.$emit("putClientInfo", this.formData);
|
|
|
+ // console.log( this.formData)
|
|
|
+ // uni.$emit("putClientInfo", this.formData);
|
|
|
},
|
|
|
deep: true
|
|
|
},
|
|
|
+ 'formData.id_number':function () {
|
|
|
+ if(this.formData.id_number!==''){
|
|
|
+ uni.$emit("putClientInfo", this.formData);
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
onPageScroll(res) {
|
|
|
this.scrollTop = res.scrollTop / 120
|
|
|
@@ -268,6 +274,7 @@
|
|
|
this.clientInfoKey = clientInfoKey
|
|
|
|
|
|
uni.$on('setClientData', clientInfo => {
|
|
|
+ console.log('数据被重置了-------------------')
|
|
|
this.formData = clientInfo
|
|
|
})
|
|
|
},
|
|
|
@@ -283,25 +290,16 @@
|
|
|
'&identity_validity=' + this.formData.identity_validity
|
|
|
})
|
|
|
},
|
|
|
- // 保存
|
|
|
- onLeftSubmit() {
|
|
|
- console.log(this.formData);
|
|
|
- console.log('保存');
|
|
|
- this.step--
|
|
|
- },
|
|
|
- // 下一步
|
|
|
- onStep(type) {
|
|
|
-
|
|
|
|
|
|
- },
|
|
|
// 完成
|
|
|
onSubmit() {
|
|
|
- this.step = 4
|
|
|
+
|
|
|
+ uni.$emit("putClientInfo", this.formData);
|
|
|
+ setTimeout(()=>{
|
|
|
+ tools.leftClick()
|
|
|
+ },50)
|
|
|
},
|
|
|
- onChange(address) {
|
|
|
- console.log(address);
|
|
|
- this.formData.firm_address = address
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
}
|