客户管理的新增客户以及编辑客户页面增加新市民身份以及新市民类型和新市民信息提示相关内容

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-07-11 15:43:06 +08:00
parent c34f32f138
commit 4e482f306a
3 changed files with 49 additions and 4 deletions

View File

@@ -85,6 +85,27 @@
<!-- 工作信息 --> <!-- 工作信息 -->
<van-cell-group> <van-cell-group>
<p class="title pl10 pv12 mt10">工作信息</p> <p class="title pl10 pv12 mt10">工作信息</p>
<div class="p15 pl8 fs14" style="border-bottom: 1px solid #eee;display: flex;justify-content: space-between;align-items: center;">
<van-radio-group v-model="userInfo.newCitizen" class="flex">
<label>
<i class="pr5"></i>
新市民身份
</label>
<van-radio name="1" class="ml30"></van-radio>
<van-radio name="2" class="ml20"></van-radio>
</van-radio-group>
<van-icon name="question-o" size="20" @click="newCitizenTip"/>
</div>
<van-field
v-if="userInfo.newCitizen == 1"
:value="userInfo.newCitizenType | idToText('newCitizenType')"
readonly
label="新市民类型"
name="新市民类型"
right-icon="arrow"
placeholder="请选择"
@click="toSelect('11')"
/>
<van-field <van-field
:value="userInfo.degree | idToText('degree')" :value="userInfo.degree | idToText('degree')"
readonly readonly
@@ -196,11 +217,16 @@
<van-popup v-model="censusShow" position="bottom"> <van-popup v-model="censusShow" position="bottom">
<van-area :area-list="areaList" value="110101" :columns-num="2" @confirm="sureArea($event, '3')" @cancel="areaShow = false" /> <van-area :area-list="areaList" value="110101" :columns-num="2" @confirm="sureArea($event, '3')" @cancel="areaShow = false" />
</van-popup> </van-popup>
<van-popup v-model:show="newCitizenTipshow" closeable position="bottom" round :style="{ height: '30%' }">
<div class="newCitizenTipClass">
新市民是指因本人创业就业子女上学投靠子女等原因来到城镇常住未获得当地户籍或获得当地户籍不满三年的各类群体包括但不限于进城务工人员新就业大中专毕业生等
</div>
</van-popup>
</div> </div>
</template> </template>
<script> <script>
import { Field, CellGroup, Cell, Popup, Picker, Checkbox, Area } from 'vant' import {Field, CellGroup, Cell, Popup, Picker, Checkbox, Area, RadioGroup, Radio} from 'vant'
import SelectRadio from '@/components/ebiz/SelectRadio' import SelectRadio from '@/components/ebiz/SelectRadio'
import FieldDatePicter from '@/components/ebiz/FieldDatePicter' import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
import DataDictionary from '@/assets/js/utils/data-dictionary' import DataDictionary from '@/assets/js/utils/data-dictionary'
@@ -226,11 +252,14 @@ export default {
[FieldDatePicter.name]: FieldDatePicter, [FieldDatePicter.name]: FieldDatePicter,
[OccupationPicker.name]: OccupationPicker, [OccupationPicker.name]: OccupationPicker,
[SelectRadio.name]: SelectRadio, [SelectRadio.name]: SelectRadio,
[RadioGroup.name]: RadioGroup,
[Radio.name]: Radio,
[Area.name]: Area [Area.name]: Area
}, },
props: ['userInfo'], props: ['userInfo'],
data() { data() {
return { return {
newCitizenTipshow: false,
popupShow: false, popupShow: false,
areaShow: false, //省级联动 areaShow: false, //省级联动
homeShow: false, homeShow: false,
@@ -252,6 +281,8 @@ export default {
customerType: '', customerType: '',
customerSource: '', customerSource: '',
age: '', age: '',
newCitizen: '', //新市民身份
newCitizenType: '', //新市民类型
effectiveDateTypeAble: false, //长期按钮是否禁用 effectiveDateTypeAble: false, //长期按钮是否禁用
occupationShowPicker: false, occupationShowPicker: false,
sexRadio: [ sexRadio: [
@@ -322,6 +353,9 @@ export default {
this.areaLists = areaLists this.areaLists = areaLists
}, },
methods: { methods: {
newCitizenTip(){
this.newCitizenTipshow = true
},
selectClick() { selectClick() {
let title = '' let title = ''
;[this.occupationShowPicker, title] = [true, '职业类别'] ;[this.occupationShowPicker, title] = [true, '职业类别']
@@ -566,6 +600,8 @@ export default {
this.columns = DataDictionary.customerSource this.columns = DataDictionary.customerSource
} else if (pickerType == '9') { } else if (pickerType == '9') {
this.columns = DataDictionary.workCondition this.columns = DataDictionary.workCondition
} else if (pickerType == '11') {
this.columns = DataDictionary.newCitizenType
} }
}, },
//确认选择字段 //确认选择字段
@@ -602,6 +638,8 @@ export default {
;[this.userInfo.customerSource, this.customerSource] = [value.id, value.text] ;[this.userInfo.customerSource, this.customerSource] = [value.id, value.text]
} else if (this.pickerType == '9') { } else if (this.pickerType == '9') {
;[this.userInfo.workCondition, this.workCondition] = [value.id, value.text] ;[this.userInfo.workCondition, this.workCondition] = [value.id, value.text]
} else if (this.pickerType == '11') {
;[this.userInfo.newCitizenType, this.newCitizenType] = [value.id, value.text]
} }
}, },
//区域选择 //区域选择
@@ -739,4 +777,7 @@ export default {
.van-checkbox { .van-checkbox {
margin-left: auto; margin-left: auto;
} }
.newCitizenTipClass{
margin-top: 45px;line-height: 24px;text-indent: 2em;letter-spacing: 1px;padding: 2px 10px;
}
</style> </style>

View File

@@ -28,7 +28,7 @@
</template> </template>
<script> <script>
import { Field, CellGroup, Cell } from 'vant' import { Field, CellGroup, Cell, RadioGroup, Radio, } from 'vant'
import { updateCustomerInfo } from '@/api/ebiz/customer/customer' import { updateCustomerInfo } from '@/api/ebiz/customer/customer'
import formBlock from '@/components/ebiz/customer/formBlock' import formBlock from '@/components/ebiz/customer/formBlock'
@@ -84,7 +84,9 @@ export default {
homeArea: '', //家庭区 homeArea: '', //家庭区
homeAddress: '', //家庭详细地址 homeAddress: '', //家庭详细地址
homeZip: '', //家庭邮编 homeZip: '', //家庭邮编
homePhone: '' //家庭电话 homePhone: '', //家庭电话
newCitizen: '', //新市民身份
newCitizenType: '', //新市民类型
} }
} }
}, },

View File

@@ -95,7 +95,9 @@ export default {
homeArea: '', //家庭区 homeArea: '', //家庭区
homeAddress: '', //家庭详细地址 homeAddress: '', //家庭详细地址
homeZip: '', //家庭邮编 homeZip: '', //家庭邮编
homePhone: '' //家庭电话 homePhone: '', //家庭电话
newCitizen: '', //新市民身份
newCitizenType: '', //新市民类型
} }
} }
}, },