[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,6 +18,7 @@
@click="toSelect('1', i)" @click="toSelect('1', i)"
required required
/> />
<div v-if="userInfo[i].relationType != '3'">
<van-field label="姓名" type="text" name="姓名" placeholder="请输入" v-validate="'required|name'" clearable v-model="item.name" required /> <van-field label="姓名" type="text" name="姓名" placeholder="请输入" v-validate="'required|name'" clearable v-model="item.name" required />
<select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" required :value.sync="item.sex"></select-radio> <select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" required :value.sync="item.sex"></select-radio>
<van-field <van-field
@@ -63,7 +64,8 @@
clearable clearable
/> />
</div> </div>
<div class="add-btn mt20 pb20 text-center p15 c-gray-base" @click="add">+ 新增</div> </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') {