|
@@ -33,7 +33,7 @@
|
|
|
<van-row class="cell">
|
|
<van-row class="cell">
|
|
|
<van-col span="6">身份证号<span>*</span>:</van-col>
|
|
<van-col span="6">身份证号<span>*</span>:</van-col>
|
|
|
<van-col span="18">
|
|
<van-col span="18">
|
|
|
- <van-field name="idcard" type="number" v-model="form.idCard" :rules="[{ validator, required: true, message: '请输入正确身份证号'}]" placeholder="请输入身份证号" />
|
|
|
|
|
|
|
+ <van-field name="idcard" type="text" v-model="form.idCard" :rules="[{ validator, required: true, message: '请输入正确身份证号'}]" placeholder="请输入身份证号" />
|
|
|
</van-col>
|
|
</van-col>
|
|
|
</van-row>
|
|
</van-row>
|
|
|
<van-row class="cell">
|
|
<van-row class="cell">
|
|
@@ -65,26 +65,46 @@
|
|
|
</van-row>
|
|
</van-row>
|
|
|
<van-row class="cell">
|
|
<van-row class="cell">
|
|
|
<van-col span="6">儿童类型<span>*</span>:</van-col>
|
|
<van-col span="6">儿童类型<span>*</span>:</van-col>
|
|
|
- <van-col span="18">
|
|
|
|
|
|
|
+ <!-- <van-col span="18">
|
|
|
<van-field name="child" v-model="form.typeDesc" @click="modelValue.childShow = true" :rules="[{ required: true }]"
|
|
<van-field name="child" v-model="form.typeDesc" @click="modelValue.childShow = true" :rules="[{ required: true }]"
|
|
|
placeholder="请选择" disabled />
|
|
placeholder="请选择" disabled />
|
|
|
</van-col>
|
|
</van-col>
|
|
|
<van-popup v-model="modelValue.childShow" position="bottom" :style="{ height: '50%' }">
|
|
<van-popup v-model="modelValue.childShow" position="bottom" :style="{ height: '50%' }">
|
|
|
<van-picker :visible-item-count="6" show-toolbar :columns="childList"
|
|
<van-picker :visible-item-count="6" show-toolbar :columns="childList"
|
|
|
@confirm="onChildShow" @cancel="modelValue.childShow = false" value-key="name" />
|
|
@confirm="onChildShow" @cancel="modelValue.childShow = false" value-key="name" />
|
|
|
- </van-popup>
|
|
|
|
|
|
|
+ </van-popup> -->
|
|
|
|
|
+ <van-col span="18">
|
|
|
|
|
+ <van-field-checkbox
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ :isSearch="false"
|
|
|
|
|
+ :columns="childList"
|
|
|
|
|
+ label-width="100"
|
|
|
|
|
+ :option="{label:'name', value:'id'}"
|
|
|
|
|
+ @confirm="onChildShowM"
|
|
|
|
|
+ />
|
|
|
|
|
+ </van-col>
|
|
|
</van-row>
|
|
</van-row>
|
|
|
|
|
|
|
|
<van-row class="cell">
|
|
<van-row class="cell">
|
|
|
<van-col span="6">帮扶单位:</van-col>
|
|
<van-col span="6">帮扶单位:</van-col>
|
|
|
- <van-col span="18">
|
|
|
|
|
|
|
+ <!-- <van-col span="18">
|
|
|
<van-field name="assist" v-model="form.stationDesc" @click="modelValue.assistShow = true" :rules="[{ required: true }]"
|
|
<van-field name="assist" v-model="form.stationDesc" @click="modelValue.assistShow = true" :rules="[{ required: true }]"
|
|
|
placeholder="请选择" disabled />
|
|
placeholder="请选择" disabled />
|
|
|
</van-col>
|
|
</van-col>
|
|
|
<van-popup v-model="modelValue.assistShow" position="bottom" :style="{ height: '50%' }">
|
|
<van-popup v-model="modelValue.assistShow" position="bottom" :style="{ height: '50%' }">
|
|
|
<van-picker :visible-item-count="8" show-toolbar :columns="assistList"
|
|
<van-picker :visible-item-count="8" show-toolbar :columns="assistList"
|
|
|
@confirm="onAssistShow" @cancel="modelValue.assistShow = false" value-key="name" />
|
|
@confirm="onAssistShow" @cancel="modelValue.assistShow = false" value-key="name" />
|
|
|
- </van-popup>
|
|
|
|
|
|
|
+ </van-popup> -->
|
|
|
|
|
+ <van-col span="18">
|
|
|
|
|
+ <van-field-checkbox
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ :isSearch="false"
|
|
|
|
|
+ :columns="assistList"
|
|
|
|
|
+ label-width="100"
|
|
|
|
|
+ :option="{label:'name', value:'id'}"
|
|
|
|
|
+ @confirm="onAssistShowM"
|
|
|
|
|
+ />
|
|
|
|
|
+ </van-col>
|
|
|
</van-row>
|
|
</van-row>
|
|
|
|
|
|
|
|
<van-row class="cell">
|
|
<van-row class="cell">
|
|
@@ -104,7 +124,7 @@
|
|
|
<van-row class="cell">
|
|
<van-row class="cell">
|
|
|
<van-col span="6">联系电话<span>*</span>:</van-col>
|
|
<van-col span="6">联系电话<span>*</span>:</van-col>
|
|
|
<van-col span="18">
|
|
<van-col span="18">
|
|
|
- <van-field name="phone" v-model="form.mobile" :rules="[{ required: true }]" placeholder="联系电话" disabled />
|
|
|
|
|
|
|
+ <van-field name="phone" type="tel" v-model="form.mobile" :rules="[{ required: true }]" placeholder="联系电话" disabled />
|
|
|
</van-col>
|
|
</van-col>
|
|
|
</van-row>
|
|
</van-row>
|
|
|
|
|
|
|
@@ -130,7 +150,7 @@
|
|
|
<van-row class="cell">
|
|
<van-row class="cell">
|
|
|
<van-col span="6">身高:</van-col>
|
|
<van-col span="6">身高:</van-col>
|
|
|
<van-col span="18">
|
|
<van-col span="18">
|
|
|
- <van-field name="height" v-model="form.height" :rules="[{ required: false }]"
|
|
|
|
|
|
|
+ <van-field name="height" type="number" v-model="form.height" :rules="[{ required: false }]"
|
|
|
placeholder="请输入" />
|
|
placeholder="请输入" />
|
|
|
</van-col>
|
|
</van-col>
|
|
|
</van-row>
|
|
</van-row>
|
|
@@ -138,7 +158,7 @@
|
|
|
<van-row class="cell">
|
|
<van-row class="cell">
|
|
|
<van-col span="6">体重:</van-col>
|
|
<van-col span="6">体重:</van-col>
|
|
|
<van-col span="18">
|
|
<van-col span="18">
|
|
|
- <van-field name="weight" v-model="form.weight" :rules="[{required: false}]"
|
|
|
|
|
|
|
+ <van-field name="weight" type="number" v-model="form.weight" :rules="[{required: false}]"
|
|
|
placeholder="请输入" />
|
|
placeholder="请输入" />
|
|
|
</van-col>
|
|
</van-col>
|
|
|
</van-row>
|
|
</van-row>
|
|
@@ -247,8 +267,9 @@ import {mzlist} from './mzlist.js'
|
|
|
import {validateIDcard} from '@/utils/validate.js'
|
|
import {validateIDcard} from '@/utils/validate.js'
|
|
|
import { listArea, childType, organization, listEmployeeByName, createChildBaseInfo} from '../../api/index.js'
|
|
import { listArea, childType, organization, listEmployeeByName, createChildBaseInfo} from '../../api/index.js'
|
|
|
import vanUploader from '../../components/vanUploader.vue'
|
|
import vanUploader from '../../components/vanUploader.vue'
|
|
|
|
|
+import vanFieldCheckbox from '../../components/vanFieldCheckbox.vue'
|
|
|
export default {
|
|
export default {
|
|
|
- components: { vanUploader },
|
|
|
|
|
|
|
+ components: { vanUploader,vanFieldCheckbox },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
userInfo:{},
|
|
userInfo:{},
|
|
@@ -408,11 +429,21 @@ export default {
|
|
|
this.form.typeDesc = e.name
|
|
this.form.typeDesc = e.name
|
|
|
this.form.type = e.id
|
|
this.form.type = e.id
|
|
|
},
|
|
},
|
|
|
|
|
+ onChildShowM(label,value) {
|
|
|
|
|
+ console.log('儿童类型::')
|
|
|
|
|
+ this.form.typeDesc = label
|
|
|
|
|
+ this.form.type = value
|
|
|
|
|
+ },
|
|
|
onAssistShow(e) {
|
|
onAssistShow(e) {
|
|
|
this.modelValue.assistShow = false
|
|
this.modelValue.assistShow = false
|
|
|
this.form.stationDesc = e.name
|
|
this.form.stationDesc = e.name
|
|
|
this.form.stationId = e.id
|
|
this.form.stationId = e.id
|
|
|
},
|
|
},
|
|
|
|
|
+ onAssistShowM(label,value) {
|
|
|
|
|
+ console.log('帮扶单位::')
|
|
|
|
|
+ this.form.stationDesc = label
|
|
|
|
|
+ this.form.stationId = value
|
|
|
|
|
+ },
|
|
|
onHealthShow(e) {
|
|
onHealthShow(e) {
|
|
|
this.modelValue.healthShow = false
|
|
this.modelValue.healthShow = false
|
|
|
this.modelValue.healthValue = e.text
|
|
this.modelValue.healthValue = e.text
|
|
@@ -565,7 +596,6 @@ export default {
|
|
|
.main {
|
|
.main {
|
|
|
padding: 0 20px;
|
|
padding: 0 20px;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
.cell {
|
|
.cell {
|
|
|
border-bottom: 1px solid #eee;
|
|
border-bottom: 1px solid #eee;
|
|
|
padding: 5px 0;
|
|
padding: 5px 0;
|