11 changed files with 1624 additions and 658 deletions
@ -0,0 +1,151 @@ |
|||
Component({ |
|||
properties: { |
|||
show: { |
|||
type: Boolean, |
|||
value: false |
|||
}, |
|||
title: { |
|||
type: String, |
|||
value: ' ' |
|||
}, |
|||
formController: { |
|||
type: Object, |
|||
value: () => { |
|||
}, |
|||
observer(val) { |
|||
this.setData({ |
|||
formControllers: val |
|||
}) |
|||
} |
|||
}, |
|||
}, |
|||
data: { |
|||
showDate: false, |
|||
dateKey: "", |
|||
defaultDate: "", |
|||
dateIndex: "", |
|||
formControllers: {}, |
|||
showCheckbox: false, |
|||
checkboxTitle: '', |
|||
checkboxResult: [], |
|||
checkboxOptions: [], |
|||
checkboxIndex: '' |
|||
}, |
|||
methods: { |
|||
onClose() { |
|||
this.triggerEvent('close') |
|||
}, |
|||
onCloseCheckbox() { |
|||
this.setData({ |
|||
showCheckbox: false |
|||
}) |
|||
}, |
|||
sureCheckbox() { |
|||
let formControllers = this.data.formControllers; |
|||
let checkboxResult = this.data.checkboxResult |
|||
let label = [] |
|||
formControllers[this.data.checkboxIndex].value = checkboxResult.join(','); |
|||
checkboxResult.forEach(item => { |
|||
formControllers[this.data.checkboxIndex].options.forEach(option => { |
|||
if (option.value == item) { |
|||
label.push(option.label) |
|||
} |
|||
}) |
|||
}) |
|||
formControllers[this.data.checkboxIndex].selected = label.join(','); |
|||
this.setData({ |
|||
formControllers, |
|||
showCheckbox: false |
|||
}) |
|||
}, |
|||
toggle(event) { |
|||
console.log(event) |
|||
const {index} = event.currentTarget.dataset; |
|||
const checkbox = this.selectComponent(`.checkboxes-${index}`); |
|||
console.log(checkbox) |
|||
checkbox.toggle(); |
|||
}, |
|||
onChangeCheckbox(event) { |
|||
this.setData({ |
|||
checkboxResult: event.detail, |
|||
}); |
|||
}, |
|||
onShowCheckbox(e) { |
|||
let {options, value, label, index} = e.currentTarget.dataset |
|||
this.setData({ |
|||
showCheckbox: true, |
|||
checkboxTitle: '选择' + label, |
|||
checkboxResult: value.split(','), |
|||
checkboxOptions: options, |
|||
checkboxIndex: index |
|||
}) |
|||
}, |
|||
onShowDate(e) { |
|||
let {key, value, index} = e.currentTarget.dataset |
|||
console.log(e.currentTarget.dataset) |
|||
this.setData({ |
|||
showDate: true, |
|||
dateKey: key, |
|||
defaultDate: value, |
|||
dateIndex: index |
|||
}) |
|||
}, |
|||
onCloseDate(e) { |
|||
this.setData({ |
|||
showDate: false |
|||
}) |
|||
}, |
|||
formatDate(date) { |
|||
date = new Date(date); |
|||
return `${date.getFullYear()}-${date.getMonth() + 1 > 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1)}-${date.getDate() > 10 ? date.getDate() : '0' + date.getDate()}`; |
|||
}, |
|||
onConfirmDate(e) { |
|||
let formControllers = this.data.formControllers; |
|||
formControllers[this.data.dateIndex].value = this.formatDate(e.detail) |
|||
this.setData({ |
|||
showDate: false, |
|||
formControllers |
|||
}); |
|||
console.log(this.data.formControllers) |
|||
|
|||
}, |
|||
setVal(e) { |
|||
let formControllers = this.data.formControllers; |
|||
console.log(e) |
|||
formControllers[e.currentTarget.dataset.index].value = e.detail |
|||
this.setData({ |
|||
showDate: false, |
|||
formControllers |
|||
}); |
|||
console.log(this.data.formControllers) |
|||
}, |
|||
pickerChange(e) { |
|||
let {valuekey, options, currentindex, key} = e.currentTarget.dataset |
|||
let index = e.detail.value |
|||
console.log(key, 'key') |
|||
let formControllers = this.data.formControllers; |
|||
let selected = options[index] |
|||
formControllers[currentindex].value = selected[valuekey] |
|||
formControllers[currentindex].valueIndex = e.detail.value |
|||
if (selected.masterControl) { |
|||
formControllers.forEach(item => { |
|||
if (item.showFlag) { |
|||
if (item.showFlag === selected[valuekey]) { |
|||
item.hide = false |
|||
} else { |
|||
item.hide = true |
|||
} |
|||
} |
|||
}) |
|||
} |
|||
this.setData({ |
|||
formControllers |
|||
}) |
|||
}, |
|||
sure() { |
|||
console.log('ok', this.data.formControllers) |
|||
this.triggerEvent('ok', this.data.formControllers) |
|||
this.onClose(); |
|||
} |
|||
}, |
|||
}); |
@ -0,0 +1,12 @@ |
|||
{ |
|||
"component": true, |
|||
"usingComponents": { |
|||
"van-action-sheet": "@vant/weapp/action-sheet/index", |
|||
"van-field": "@vant/weapp/field/index", |
|||
"van-cell": "@vant/weapp/cell/index", |
|||
"van-cell-group": "@vant/weapp/cell-group/index", |
|||
"van-calendar": "@vant/weapp/calendar/index", |
|||
"van-checkbox-group": "@vant/weapp/checkbox-group/index", |
|||
"van-checkbox": "@vant/weapp/checkbox/index" |
|||
} |
|||
} |
@ -0,0 +1,103 @@ |
|||
<van-action-sheet show="{{ show }}" title="{{title}}" bind:close="onClose"> |
|||
<van-cell-group> |
|||
<block wx:for="{{formControllers}}" wx:if="{{!item.hide}}"> |
|||
<van-field |
|||
wx:if="{{item.type === 'input'}}" |
|||
label="{{item.label}}" |
|||
model:value="{{ item.value }}" |
|||
placeholder="请输入{{item.label}}" |
|||
bind:input="setVal" |
|||
|
|||
data-key="{{item.key}}" |
|||
data-index="{{index}}" |
|||
/> |
|||
<van-field |
|||
wx:if="{{item.type === 'textarea'}}" |
|||
type="textarea" |
|||
label="{{item.label}}" |
|||
value="{{ item.value }}" |
|||
placeholder="请输入{{item.label}}" |
|||
autosize |
|||
maxlength="{{item.maxlength?item.maxlength:-1}}" |
|||
show-word-limit="{{item.maxlength}}" |
|||
bind:input="setVal" |
|||
data-key="{{item.key}}" |
|||
data-index="{{index}}" |
|||
/> |
|||
<block wx:if="{{item.type === 'date'}}"> |
|||
<van-cell |
|||
title="{{item.label}}" |
|||
value="{{ item.value?item.value:'请选择'+item.label}}" |
|||
bind:click="onShowDate" |
|||
data-value="{{item.value}}" |
|||
data-index="{{index}}" |
|||
data-key="{{item.key}}" |
|||
/> |
|||
</block> |
|||
<block wx:if="{{item.type === 'checkbox'}}"> |
|||
<van-cell |
|||
title="{{item.label}}" |
|||
value="{{ item.selected?item.selected:'请选择'+item.label}}" |
|||
bind:click="onShowCheckbox" |
|||
data-options="{{item.options}}" |
|||
data-value="{{item.value}}" |
|||
data-label="{{item.label}}" |
|||
data-index="{{index}}" |
|||
data-key="{{item.key}}" |
|||
/> |
|||
</block> |
|||
<block wx:if="{{item.type === 'select'}}"> |
|||
<picker |
|||
value="{{item.valueIndex}}" |
|||
range="{{item.options}}" |
|||
range-key="{{item.optionsKey || 'label'}}" |
|||
bind:change="pickerChange" |
|||
data-value="{{item.value}}" |
|||
data-valuekey="{{item.valueKey || 'value'}}" |
|||
data-options="{{item.options || []}}" |
|||
data-currentindex="{{index}}" |
|||
data-optionsKey="{{item.optionsKey || 'label'}}" |
|||
data-index="{{index}}" |
|||
data-key="{{item.key}}" |
|||
> |
|||
<van-cell title="{{item.label}}" |
|||
value="{{ item.valueIndex>=0?item.options[item.valueIndex][item.optionsKey || 'label']:'请选择'+item.label }}"/> |
|||
</picker> |
|||
</block> |
|||
</block> |
|||
</van-cell-group> |
|||
<view class="bottom-btn"> |
|||
<view class="btn btn-gray" bind:tap="onClose">取消</view> |
|||
<view class="btn btn-blue" bind:tap="sure">确定</view> |
|||
</view> |
|||
</van-action-sheet> |
|||
|
|||
|
|||
<van-calendar |
|||
show="{{ showDate }}" |
|||
bind:close="onCloseDate" |
|||
bind:confirm="onConfirmDate" |
|||
default-date="{{defaultDate}}" |
|||
/> |
|||
<van-action-sheet show="{{ showCheckbox }}" title="{{checkboxTitle}}" bind:close="onCloseCheckbox"> |
|||
<scroll-view scroll-y style="max-height: 50vh"> |
|||
<van-checkbox-group value="{{ checkboxResult }}" bind:change="onChangeCheckbox"> |
|||
<view class="checkbox-item" wx:for="{{checkboxOptions}}" |
|||
data-index="{{ index }}" |
|||
bind:tap="toggle" |
|||
wx:key="index" |
|||
> |
|||
<van-checkbox |
|||
name="{{item.value}}" |
|||
class="checkboxes-{{ index }}" |
|||
> |
|||
{{item.label}} |
|||
</van-checkbox> |
|||
</view> |
|||
</van-checkbox-group> |
|||
</scroll-view> |
|||
<view class="bottom-btn"> |
|||
<view class="btn btn-gray" bind:tap="onCloseCheckbox">取消</view> |
|||
<view class="btn btn-blue" bind:tap="sureCheckbox">确定</view> |
|||
</view> |
|||
</van-action-sheet> |
@ -0,0 +1,38 @@ |
|||
|
|||
.btn { |
|||
width: 240rpx; |
|||
height: 76rpx; |
|||
border-radius: 38rpx; |
|||
color: #fff; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
text-align: center; |
|||
font-size: 32rpx; |
|||
font-weight: bold; |
|||
} |
|||
.btn-blue { |
|||
background: linear-gradient(87deg, #81B5FB 0%, #3E92FF 100%); |
|||
} |
|||
.btn-gray { |
|||
background: #D9D9D9; |
|||
} |
|||
|
|||
.bottom-btn { |
|||
background: none; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: space-between; |
|||
padding: 20rpx 99rpx 20rpx; |
|||
/*padding-bottom: calc(env(safe-area-inset-bottom) + 10rpx);*/ |
|||
width: 100%; |
|||
box-sizing: border-box; |
|||
z-index: 999; |
|||
position: static; |
|||
} |
|||
.checkbox-item { |
|||
display: flex; |
|||
align-items: center; |
|||
padding: 30rpx 40rpx; |
|||
border-bottom: 1px solid #f2f2f2; |
|||
} |
File diff suppressed because it is too large
@ -1,6 +1,7 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"wux-select": "../../../../components/dist/select" |
|||
"wux-select": "../../../../components/dist/select", |
|||
"DynamicForms": "../../../../components/DynamicForms/DynamicForms" |
|||
}, |
|||
"navigationStyle": "custom" |
|||
} |
@ -1,234 +1,279 @@ |
|||
<!--subpages/addResi/pages/addResi/addResi.wxml--> |
|||
<view class="header"> |
|||
<image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" bindtap="back" mode=""/> |
|||
<image class="header-bg" src="../images/header.png" mode="widthFix" /> |
|||
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;"> |
|||
{{formType == 'edit'?'修改人口信息':'新增人口信息'}} |
|||
<image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" |
|||
bindtap="back" mode=""/> |
|||
<image class="header-bg" src="../images/header.png" mode="widthFix"/> |
|||
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;"> |
|||
{{formType == 'edit' ? '修改人口信息' : '新增人口信息'}} |
|||
</view> |
|||
<view class="content"> |
|||
<view class="h2">填写居民信息</view> |
|||
<view class="tag"> 带 <b>*</b> 号为必填项</view> |
|||
<view class="h2">填写居民信息</view> |
|||
<view class="tag">带 <b>*</b> 号为必填项 |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="content"> |
|||
<view class="form_card"> |
|||
<view class="title"><text class="tag"></text> 基本信息</view> |
|||
<view class="title"> |
|||
<text class="tag"></text> 基本信息 |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<text class="must">*</text> |
|||
<view class="title">所在网格</view> |
|||
<text class="must">*</text> |
|||
<view class="title">所在网格</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangeGrid" range-key="label" value="{{index}}" range="{{gridList}}"> |
|||
<view class="{{form.gridName?'':'gray'}}"> |
|||
{{form.gridName?form.gridName:'请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
<picker bindchange="bindPickerChangeGrid" range-key="label" value="{{index}}" range="{{gridList}}"> |
|||
<view class="{{form.gridName?'':'gray'}}"> |
|||
{{form.gridName ? form.gridName : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<text class="must">*</text> |
|||
<view class="title">所在小区</view> |
|||
<text class="must">*</text> |
|||
<view class="title">所在小区</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangevillageId" range-key="label" value="{{index}}" range="{{villageList}}"> |
|||
<view class="{{villageName?'':'gray'}}"> |
|||
{{villageName?villageName:'请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
<picker bindchange="bindPickerChangevillageId" range-key="label" value="{{index}}" |
|||
range="{{villageList}}"> |
|||
<view class="{{villageName?'':'gray'}}"> |
|||
{{villageName ? villageName : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<text class="must">*</text> |
|||
<view class="title">所在楼栋</view> |
|||
<text class="must">*</text> |
|||
<view class="title">所在楼栋</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangebuilding" range-key="label" value="{{index}}" range="{{buildingList}}"> |
|||
<view class="{{buildingName?'':'gray'}}"> |
|||
{{buildingName?buildingName:'请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
<picker bindchange="bindPickerChangebuilding" range-key="label" value="{{index}}" |
|||
range="{{buildingList}}"> |
|||
<view class="{{buildingName?'':'gray'}}"> |
|||
{{buildingName ? buildingName : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<text class="must">*</text> |
|||
<view class="title">所在单元</view> |
|||
<text class="must">*</text> |
|||
<view class="title">所在单元</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangeUnit" range-key="label" value="{{index}}" range="{{unitList}}"> |
|||
<view class="{{unitName?'':'gray'}}"> |
|||
{{unitName?unitName:'请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
<picker bindchange="bindPickerChangeUnit" range-key="label" value="{{index}}" range="{{unitList}}"> |
|||
<view class="{{unitName?'':'gray'}}"> |
|||
{{unitName ? unitName : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_house"> |
|||
<view class="form_item"> |
|||
<view class="label "> |
|||
<text class="must">*</text> |
|||
<view class="title">所在房屋</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangeHouse" range-key="label" value="{{index}}" range="{{houseList}}"> |
|||
<view class="{{houseName?'':'gray'}}"> |
|||
{{houseName?houseName:'请选择'}} |
|||
<text class="must">*</text> |
|||
<view class="title">所在房屋</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangeHouse" range-key="label" value="{{index}}" |
|||
range="{{houseList}}"> |
|||
<view class="{{houseName?'':'gray'}}"> |
|||
{{houseName ? houseName : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
<view class="form_bottom">选项中如无该房屋,请先 |
|||
<text bind:tap="handelJump">新增房屋</text> |
|||
</view> |
|||
<view class="form_bottom">选项中如无该房屋,请先 <text bind:tap="handelJump">新增房屋</text></view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<text class="must">*</text> |
|||
<view class="title">姓名</view> |
|||
<text class="must">*</text> |
|||
<view class="title">姓名</view> |
|||
</view> |
|||
<view class="input"> |
|||
<input confirm-type="next" bindblur="bindNameInput" bindinput="bindNameInput" value="{{form.name}}" placeholder-class="gray" placeholder="请输入" /> |
|||
<input confirm-type="next" bindblur="bindNameInput" bindinput="bindNameInput" value="{{form.name}}" |
|||
placeholder-class="gray" placeholder="请输入"/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<text class="must">*</text> |
|||
<view class="title">性别</view> |
|||
<text class="must">*</text> |
|||
<view class="title">性别</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangeGender" range-key="label" value="{{index}}" range="{{genderList}}"> |
|||
<view class="{{form.gender?'':'gray'}}"> |
|||
{{genderName?genderName:'请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
<picker bindchange="bindPickerChangeGender" range-key="label" value="{{index}}" range="{{genderList}}"> |
|||
<view class="{{form.gender?'':'gray'}}"> |
|||
{{genderName ? genderName : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<text class="must">*</text> |
|||
<view class="title">出生日期</view> |
|||
<text class="must">*</text> |
|||
<view class="title">出生日期</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker mode="date" value="{{form.birthday}}" end="{{day}}" bindchange="bindDateChange"> |
|||
<picker mode="date" value="{{form.birthday}}" end="{{day}}" bindchange="bindDateChange"> |
|||
<view class="{{form.birthday?'':'gray'}}"> |
|||
{{form.birthday?form.birthday:'请选择'}} |
|||
{{form.birthday ? form.birthday : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<text class="must">*</text> |
|||
<view class="title">证件号</view> |
|||
<text class="must">*</text> |
|||
<view class="title">证件号</view> |
|||
</view> |
|||
<view class="input"> |
|||
<input confirm-type="next" bindblur="bindIdNumInput" bindinput="bindidNumInput" value="{{form.idNum}}" placeholder-class="gray" placeholder="请输入" /> |
|||
<input confirm-type="next" bindblur="bindIdNumInput" bindinput="bindidNumInput" value="{{form.idNum}}" |
|||
placeholder-class="gray" placeholder="请输入"/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<text class="must">*</text> |
|||
<view class="title">联系电话</view> |
|||
<text class="must">*</text> |
|||
<view class="title">联系电话</view> |
|||
</view> |
|||
<view class="input"> |
|||
<input confirm-type="next" bindblur="bindMobileInput" bindinput="bindmobileInput" value="{{form.mobile}}" placeholder-class="gray" placeholder="请输入" /> |
|||
<input confirm-type="next" bindblur="bindMobileInput" bindinput="bindmobileInput" |
|||
value="{{form.mobile}}" placeholder-class="gray" placeholder="请输入"/> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="form_card m-top20"> |
|||
<view class="title"><text class="tag"></text> 详细信息</view> |
|||
<view class="title"> |
|||
<text class="tag"></text> 详细信息 |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<view class="title">户籍地</view> |
|||
<view class="title">户籍地</view> |
|||
</view> |
|||
<view class="input"> |
|||
<input confirm-type="next" bindblur="bindPlaceOfDomicileInput" bindinput="bindPlaceOfDomicileInput" value="{{form.resideInfoDto.placeOfDomicile}}" placeholder-class="gray" placeholder="请输入" /> |
|||
<input confirm-type="next" bindblur="bindPlaceOfDomicileInput" bindinput="bindPlaceOfDomicileInput" |
|||
value="{{form.resideInfoDto.placeOfDomicile}}" placeholder-class="gray" placeholder="请输入"/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<view class="title">现居地</view> |
|||
<view class="title">现居地</view> |
|||
</view> |
|||
<view class="input"> |
|||
<input confirm-type="next" bindblur="bindCurrentResidenceInput" bindinput="bindCurrentResidenceInput" value="{{form.resideInfoDto.currentResidence}}" placeholder-class="gray" placeholder="请输入" /> |
|||
<input confirm-type="next" bindblur="bindCurrentResidenceInput" bindinput="bindCurrentResidenceInput" |
|||
value="{{form.resideInfoDto.currentResidence}}" placeholder-class="gray" placeholder="请输入"/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<view class="title">民族</view> |
|||
<view class="title">民族</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangeNation" range-key="label" value="{{index}}" range="{{nation}}"> |
|||
<view class="{{form.nation?'':'gray'}}"> |
|||
{{form.nation?nation[form.nation].label:'请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
<picker bindchange="bindPickerChangeNation" range-key="label" value="{{index}}" range="{{nation}}"> |
|||
<view class="{{form.nation?'':'gray'}}"> |
|||
{{form.nation ? nation[form.nation].label : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<view class="title">籍贯</view> |
|||
<view class="title">籍贯</view> |
|||
</view> |
|||
<view class="input"> |
|||
<input confirm-type="next" bindblur="bindNativePlaceInput" bindinput="bindNativePlaceInput" value="{{form.resideInfoDto.nativePlace}}" placeholder-class="gray" placeholder="请输入" /> |
|||
<input confirm-type="next" bindblur="bindNativePlaceInput" bindinput="bindNativePlaceInput" |
|||
value="{{form.resideInfoDto.nativePlace}}" placeholder-class="gray" placeholder="请输入"/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<view class="title">文化程度</view> |
|||
<view class="title">文化程度</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangeEducation" range-key="label" value="{{index}}" range="{{education}}"> |
|||
<view class="{{form.eduInfoDto.cultureLevel?'':'gray'}}"> |
|||
{{form.eduInfoDto.cultureLevel?education[form.eduInfoDto.cultureLevel].label:'请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
<picker bindchange="bindPickerChangeEducation" range-key="label" value="{{index}}" |
|||
range="{{education}}"> |
|||
<view class="{{form.eduInfoDto.cultureLevel?'':'gray'}}"> |
|||
{{form.eduInfoDto.cultureLevel ? education[form.eduInfoDto.cultureLevel].label : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label"> |
|||
<view class="title">婚姻状况</view> |
|||
<view class="title">婚姻状况</view> |
|||
</view> |
|||
<view class="input"> |
|||
<picker bindchange="bindPickerChangemarriage" range-key="label" value="{{index}}" range="{{marriageList}}"> |
|||
<view class="{{form.familyInfoDto.marriage?'':'gray'}}"> |
|||
{{marriageName?marriageName:'请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
<picker bindchange="bindPickerChangemarriage" range-key="label" value="{{index}}" |
|||
range="{{marriageList}}"> |
|||
<view class="{{form.familyInfoDto.marriage?'':'gray'}}"> |
|||
{{marriageName ? marriageName : '请选择'}} |
|||
</view> |
|||
</picker> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item "> |
|||
<view class="label"> |
|||
<view class="title">宗教信仰</view> |
|||
<view class="title">宗教信仰</view> |
|||
</view> |
|||
<view class="input"> |
|||
<input confirm-type="next" bindblur="bindReligionInput" bindinput="bindReligionInput" value="{{form.religionDto.religion}}" placeholder-class="gray" placeholder="请输入" /> |
|||
<input confirm-type="next" bindblur="bindReligionInput" bindinput="bindReligionInput" |
|||
value="{{form.religionDto.religion}}" placeholder-class="gray" placeholder="请输入"/> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="form_card m-top20"> |
|||
<view class="title"><text class="tag"></text> 居民类别</view> |
|||
<view class="title"> |
|||
<text class="tag"></text> 居民类别 |
|||
</view> |
|||
<view class="form_item"> |
|||
<view class="label" > |
|||
<view class="title">居民类别</view> |
|||
<view class="label"> |
|||
<view class="title">居民类别</view> |
|||
</view> |
|||
<view class="input" bind:tap="onClick3"> |
|||
<view class="residentCategorySty {{residentCategorySty?'':'gray'}}" style="text-align: left;"> |
|||
{{residentCategorySty ? residentCategorySty : '请选择'}} |
|||
</view> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
<view class="form_item" |
|||
wx:for="{{residentTypeFormCell}}" |
|||
:key="index" |
|||
bind:tap="openDynamicForms" |
|||
data-title="{{item.title}}" |
|||
data-formtype="{{item.value}}" |
|||
> |
|||
<view class="label"> |
|||
<view class="title">{{item.title}}</view> |
|||
</view> |
|||
<view class="input" bind:tap="onClick3"> |
|||
<view class="residentCategorySty {{residentCategorySty?'':'gray'}}" style="text-align: left;"> {{residentCategorySty?residentCategorySty:'请选择'}}</view> |
|||
<view class="input text-right"> |
|||
<image src="../../../../images/right.png" mode=""/> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="bottom_btn" bind:tap="submit">提交</view> |
|||
</view> |
|||
<wux-select id="wux-select3" /> |
|||
<wux-select id="wux-select3"/> |
|||
|
|||
<DynamicForms |
|||
show="{{isShowDynamicForms}}" |
|||
title="{{dynamicFormsTitle}}" |
|||
bind:close="closeDynamicForms" |
|||
bind:ok="okDynamicForms" |
|||
formController="{{formController}}" |
|||
/> |
Loading…
Reference in new issue