添加家庭成员 图文问诊 状态
This commit is contained in:
parent
b82e6217d7
commit
4ba7fd8919
@ -23,10 +23,10 @@ export function selectDepartment(pageNum, pageSize) {
|
|||||||
//人员
|
//人员
|
||||||
export function selectHospitalPerson(pageNum, pageSize, departmentId,status) {
|
export function selectHospitalPerson(pageNum, pageSize, departmentId,status) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApp/healthConsultation/selectHospitalPerson?pageNum=${pageNum}&pageSize=${pageSize}&departmentId=${departmentId}&&status=${1}`,
|
url: `/nurseApp/healthConsultation/selectHospitalPerson?pageNum=${pageNum}&pageSize=${pageSize}&departmentId=${departmentId}&status=${2}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
header: {
|
header: {
|
||||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -99,12 +99,20 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<view class="name">
|
<view class="name">
|
||||||
|
所属区域
|
||||||
|
<view class="select" @tap='showPicker'>
|
||||||
|
<text v-if="!addressinfo">请选择所属区域</text>
|
||||||
|
<text v-else class="testitem">{{addressinfo}}</text>
|
||||||
|
<!-- <image src="../../static/huijiantou.png" mode=""></image> -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- <view class="name">
|
||||||
所在位置
|
所在位置
|
||||||
<view class="selectdata" @tap='getAddress'>
|
<view class="selectdata" @tap='getAddress'>
|
||||||
<text v-if="form.locationName ==''">请选择所在位置</text>
|
<text v-if="form.locationName ==''">请选择所在位置</text>
|
||||||
<text class="testitem">{{form.locationName}}</text>
|
<text class="testitem">{{form.locationName}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<u-form-item prop="phone" :border-bottom="false">
|
<u-form-item prop="phone" :border-bottom="false">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
手机号
|
手机号
|
||||||
@ -128,6 +136,11 @@
|
|||||||
<!-- 出生日期 -->
|
<!-- 出生日期 -->
|
||||||
<u-picker mode="time" v-model="timeshow" :params="params" @confirm='timechange' @canel='timeshow=false'>
|
<u-picker mode="time" v-model="timeshow" :params="params" @confirm='timechange' @canel='timeshow=false'>
|
||||||
</u-picker>
|
</u-picker>
|
||||||
|
<view class="">
|
||||||
|
<m-city style='z-index: 10076;' :provinceData="list" headTitle="地区选择" ref="cityPicker"
|
||||||
|
@funcValue="getpickerParentValue" pickerSize="4">
|
||||||
|
</m-city>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@ -138,15 +151,22 @@
|
|||||||
import {
|
import {
|
||||||
registerdata
|
registerdata
|
||||||
} from '@/api/pages/register/register.js'
|
} from '@/api/pages/register/register.js'
|
||||||
|
import gkcity from "@/components/m-city/m-city.vue";
|
||||||
|
import ldSelect from '../../components/ld-select/ld-select.vue';
|
||||||
|
import {
|
||||||
|
getSubordinateRegions,
|
||||||
|
} from '@/api/pagesB/modifyAddress/modifyAddress.js';
|
||||||
|
|
||||||
// import {
|
|
||||||
// bindFamilyUser,
|
|
||||||
// getDictByType
|
|
||||||
// } from '@/service/api/api.js'
|
|
||||||
// import QQMapWX from '@/utils/qqMap/qqmap-wx-jssdk.js';
|
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
ldSelect,
|
||||||
|
"m-city": gkcity,
|
||||||
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
addresslength: null,
|
||||||
|
addressinfo:'',
|
||||||
sexlist: [{
|
sexlist: [{
|
||||||
name: '男',
|
name: '男',
|
||||||
disabled: false
|
disabled: false
|
||||||
@ -188,6 +208,7 @@
|
|||||||
locationName: '',
|
locationName: '',
|
||||||
homeLongitude: '',
|
homeLongitude: '',
|
||||||
homeLatitude: '',
|
homeLatitude: '',
|
||||||
|
areaCode:'',
|
||||||
},
|
},
|
||||||
householdRelationship: '',
|
householdRelationship: '',
|
||||||
userinfo: {},
|
userinfo: {},
|
||||||
@ -259,6 +280,11 @@
|
|||||||
disabled: false
|
disabled: false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
list: [{
|
||||||
|
id: "",
|
||||||
|
localName: "请选择",
|
||||||
|
children: [],
|
||||||
|
}, ],
|
||||||
rules: {
|
rules: {
|
||||||
cardNo: [{
|
cardNo: [{
|
||||||
//必填
|
//必填
|
||||||
@ -347,6 +373,7 @@
|
|||||||
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.form.openid = uni.getStorageSync('openid')
|
this.form.openid = uni.getStorageSync('openid')
|
||||||
|
this.areaInfo()
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@ -382,6 +409,33 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 显示三级地址联动
|
||||||
|
showPicker() {
|
||||||
|
this.$refs.cityPicker.show();
|
||||||
|
},
|
||||||
|
// 三级地址联动回调
|
||||||
|
getpickerParentValue(e) {
|
||||||
|
e = e.filter(ele => ele.localName != '暂不选择')
|
||||||
|
e = e.filter(ele => ele.localName != '暂无需选择')
|
||||||
|
this.addresslength = e
|
||||||
|
this.addressinfo = ''
|
||||||
|
this.form.areaCode = ''
|
||||||
|
if (e && e.length >= 1) {
|
||||||
|
e.forEach(el => {
|
||||||
|
this.addressinfo = this.addressinfo + el.localName
|
||||||
|
})
|
||||||
|
this.form.areaCode = e[e.length - 1].id
|
||||||
|
} else {
|
||||||
|
this.addressinfo = ''
|
||||||
|
this.form.areaCode = ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//区街道
|
||||||
|
areaInfo() {
|
||||||
|
getSubordinateRegions().then(res => {
|
||||||
|
this.list = res.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
//选择出生日期
|
//选择出生日期
|
||||||
timechange(e) {
|
timechange(e) {
|
||||||
this.form.birthDate = e.year + '-' + e.month + '-' + e.day
|
this.form.birthDate = e.year + '-' + e.month + '-' + e.day
|
||||||
@ -410,7 +464,7 @@
|
|||||||
registerdata(_this.form).then(res => {
|
registerdata(_this.form).then(res => {
|
||||||
if (res.code == 500) {
|
if (res.code == 500) {
|
||||||
_this.$refs.uToast.show({
|
_this.$refs.uToast.show({
|
||||||
title: res.data.msg,
|
title: res.msg,
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -131,7 +131,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="btns">
|
<view class="btns">
|
||||||
<view class="btnleft">
|
<view class="btnleft">
|
||||||
¥<text>{{formdata.price}}</text>.00
|
¥<text>{{formdata.price}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="btnright" @tap='updata'>
|
<view class="btnright" @tap='updata'>
|
||||||
保存
|
保存
|
||||||
|
|||||||
@ -146,7 +146,7 @@
|
|||||||
//人员
|
//人员
|
||||||
selectHospitalPersonInfo() {
|
selectHospitalPersonInfo() {
|
||||||
this.personpageNum = 1
|
this.personpageNum = 1
|
||||||
var status='1'
|
var status='2'
|
||||||
selectHospitalPerson(this.personpageNum, this.pageSize, this.departmentId,status).then(res => {
|
selectHospitalPerson(this.personpageNum, this.pageSize, this.departmentId,status).then(res => {
|
||||||
this.HospitalPersonlist = res.rows
|
this.HospitalPersonlist = res.rows
|
||||||
this.HospitalPersontotal = res.total
|
this.HospitalPersontotal = res.total
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user