[NEW]【自助入司流程优化】家庭关系增加选项“无”,因后端暂时改不了,注释入司家庭关系字典“无”

This commit is contained in:
yuweiqi
2020-05-11 13:16:07 +08:00
parent bd44e8e2de
commit c93dc42028
2 changed files with 52 additions and 45 deletions

View File

@@ -1455,6 +1455,7 @@ export default {
{ id: 'AD', text: '营业总监' } { id: 'AD', text: '营业总监' }
], ],
relationType: [{ id: '0', text: '配偶' }, { id: '1', text: '子女' }, { id: '2', text: '父母' }], relationType: [{ id: '0', text: '配偶' }, { id: '1', text: '子女' }, { id: '2', text: '父母' }],
// relationType: [{ id: '0', text: '配偶' }, { id: '1', text: '子女' }, { id: '2', text: '父母' }, { id: '3', text: '无' }],
guarantRelationType: [{ id: '0', text: '亲属' }, { id: '1', text: '朋友' }, { id: '2', text: '同事' }, { id: '3', text: '其他' }], guarantRelationType: [{ id: '0', text: '亲属' }, { id: '1', text: '朋友' }, { id: '2', text: '同事' }, { id: '3', text: '其他' }],
classification: [{ id: '0', text: '司内' }, { id: '1', text: '司外' }], classification: [{ id: '0', text: '司内' }, { id: '1', text: '司外' }],
//入司国籍/地区 //入司国籍/地区

View File

@@ -18,52 +18,54 @@
@click="toSelect('1', i)" @click="toSelect('1', i)"
required required
/> />
<van-field label="姓名" type="text" name="姓名" placeholder="请输入" v-validate="'required|name'" clearable v-model="item.name" required /> <div v-if="userInfo[i].relationType != '3'">
<select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" required :value.sync="item.sex"></select-radio> <van-field label="姓名" type="text" name="姓名" placeholder="请输入" v-validate="'required|name'" clearable v-model="item.name" required />
<van-field <select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" required :value.sync="item.sex"></select-radio>
:value="item.idType | idToText('idType')" <van-field
v-validate="'required'" :value="item.idType | idToText('idType')"
readonly v-validate="'required'"
label="证件类型" readonly
name="证件类型" label="证件类型"
right-icon="arrow" name="证件类型"
placeholder="请选择" right-icon="arrow"
@click="toSelect('2', i)" placeholder="请选择"
required @click="toSelect('2', i)"
/> required
<van-field />
label="证件号码" <van-field
type="text" label="证件号码"
name="证件号码" type="text"
placeholder="请输入" name="证件号码"
clearable placeholder="请输入"
v-model="item.idNo" clearable
v-validate="'required'" v-model="item.idNo"
required v-validate="'required'"
maxlength="18" required
/> maxlength="18"
<FieldDatePicter />
v-validate="'required'" <FieldDatePicter
label="出生日期" v-validate="'required'"
name="出生日期" label="出生日期"
:value.sync="item.birthday" name="出生日期"
type="date" :value.sync="item.birthday"
:flag="true" type="date"
ref="birthday" :flag="true"
required ref="birthday"
></FieldDatePicter> required
<van-field ></FieldDatePicter>
v-model="item.mobile" <van-field
label="联系电话" v-model="item.mobile"
name="联系电话" label="联系电话"
placeholder="请输入" name="联系电话"
v-validate="'required|mobile'" placeholder="请输入"
maxlength="11" v-validate="'required|mobile'"
required maxlength="11"
clearable required
/> clearable
/>
</div>
</div> </div>
<div class="add-btn mt20 pb20 text-center p15 c-gray-base" @click="add">+ 新增</div> <div v-if="userInfo[0].relationType != '3'" class="add-btn mt20 pb20 text-center p15 c-gray-base" @click="add">+ 新增</div>
<!-- end --> <!-- end -->
<div class="flex justify-content-s bottom-btn bg-white"> <div class="flex justify-content-s bottom-btn bg-white">
<van-button class=" bottom0 left0" square plain type="danger" v-no-more-click="1000" @click="goBack" size="large">上一步</van-button> <van-button class=" bottom0 left0" square plain type="danger" v-no-more-click="1000" @click="goBack" size="large">上一步</van-button>
@@ -214,6 +216,10 @@ export default {
this.popupShow = false this.popupShow = false
if (this.pickerType == '1') { if (this.pickerType == '1') {
this.userInfo[this.enterIndex].relationType = value.id this.userInfo[this.enterIndex].relationType = value.id
if (value.id == '3') {
//如果家庭关系选择无,则页面其他信息不需要填不需要显示
this.userInfo[0].sex = ''
}
// this.$forceUpdate() // this.$forceUpdate()
} }
if (this.pickerType == '2') { if (this.pickerType == '2') {