在线签约+签约信息提示+图文问诊+地址所在区
This commit is contained in:
parent
ec21a0127c
commit
50bd2c390a
@ -186,12 +186,16 @@
|
|||||||
} else {
|
} else {
|
||||||
if (this.region == 1 || this.region == 2) {
|
if (this.region == 1 || this.region == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
uni.navigateTo({
|
||||||
title: '未签约,请先签约',
|
url:`/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
|
||||||
type: 'error',
|
|
||||||
duration: '1500',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
})
|
||||||
|
// this.$refs.uToast.show({
|
||||||
|
// title: '未签约,请先签约',
|
||||||
|
// type: 'error',
|
||||||
|
// duration:'1500',
|
||||||
|
// url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
// })
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.infotitle,
|
title: this.infotitle,
|
||||||
@ -220,12 +224,16 @@
|
|||||||
} else {
|
} else {
|
||||||
if (this.region == 1 || this.region == 2) {
|
if (this.region == 1 || this.region == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
uni.navigateTo({
|
||||||
title: this.infotitle,
|
url:`/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
|
||||||
type: 'error',
|
|
||||||
duration: '1500',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
})
|
||||||
|
// this.$refs.uToast.show({
|
||||||
|
// title: '未签约,请先签约',
|
||||||
|
// type: 'error',
|
||||||
|
// duration:'1500',
|
||||||
|
// url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
// })
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.infotitle,
|
title: this.infotitle,
|
||||||
@ -305,12 +313,17 @@
|
|||||||
} else {
|
} else {
|
||||||
if (this.region == 1 || this.region == 2) {
|
if (this.region == 1 || this.region == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
|
||||||
title: '未签约,请先签约',
|
uni.navigateTo({
|
||||||
type: 'error',
|
url:`/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
|
||||||
duration: '1500',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
})
|
||||||
|
// this.$refs.uToast.show({
|
||||||
|
// title: '未签约,请先签约',
|
||||||
|
// type: 'error',
|
||||||
|
// duration:'1500',
|
||||||
|
// url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
// })
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.infotitle,
|
title: this.infotitle,
|
||||||
@ -339,13 +352,16 @@
|
|||||||
} else {
|
} else {
|
||||||
if (this.region == 1 || this.region == 2) {
|
if (this.region == 1 || this.region == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
uni.navigateTo({
|
||||||
title: '未签约,请先签约',
|
url:`/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
|
||||||
duration: '1500',
|
|
||||||
type: 'error',
|
|
||||||
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
})
|
||||||
|
// this.$refs.uToast.show({
|
||||||
|
// title: '未签约,请先签约',
|
||||||
|
// duration:'1500',
|
||||||
|
// type: 'error',
|
||||||
|
// url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
// })
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.infotitle,
|
title: this.infotitle,
|
||||||
@ -373,12 +389,16 @@
|
|||||||
} else {
|
} else {
|
||||||
if (this.region == 1 || this.region == 2) {
|
if (this.region == 1 || this.region == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
uni.navigateTo({
|
||||||
title: '未签约,请先签约',
|
url:`/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
|
||||||
type: 'error',
|
|
||||||
duration: '1500',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
})
|
||||||
|
// this.$refs.uToast.show({
|
||||||
|
// title: '未签约,请先签约',
|
||||||
|
// type: 'error',
|
||||||
|
// duration:'1500',
|
||||||
|
// url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
// })
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.infotitle,
|
title: this.infotitle,
|
||||||
@ -402,4 +422,4 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "./homepage.scss";
|
@import "./homepage.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -418,11 +418,15 @@
|
|||||||
} else {
|
} else {
|
||||||
if (this.region == 1 || this.region == 2) {
|
if (this.region == 1 || this.region == 2) {
|
||||||
if (this.checkSign == "0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
uni.navigateTo({
|
||||||
title: '未签约,请先签约',
|
url:`/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
|
||||||
type: 'error',
|
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
|
||||||
})
|
})
|
||||||
|
// this.$refs.uToast.show({
|
||||||
|
// title: '未签约,请先签约',
|
||||||
|
// type: 'error',
|
||||||
|
// url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
|
// })
|
||||||
} else if (this.checkSign == "01") {
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.infotitle,
|
title: this.infotitle,
|
||||||
@ -587,4 +591,4 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import './myinformation.scss'
|
@import './myinformation.scss'
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -55,6 +55,9 @@
|
|||||||
selectDepartmentNoPage,
|
selectDepartmentNoPage,
|
||||||
selectHospitalPerson
|
selectHospitalPerson
|
||||||
} from '@/api/pagesB/medicine/index.js'
|
} from '@/api/pagesB/medicine/index.js'
|
||||||
|
import {
|
||||||
|
checkSignApply
|
||||||
|
} from '@/api/pages/homepage/homepage.js'
|
||||||
import baseurl from '../../api/baseurl';
|
import baseurl from '../../api/baseurl';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -68,12 +71,16 @@
|
|||||||
HospitalPersonlist: null,
|
HospitalPersonlist: null,
|
||||||
HospitalPersontotal: 0,
|
HospitalPersontotal: 0,
|
||||||
hospitalDepartmentList: null,
|
hospitalDepartmentList: null,
|
||||||
|
cardNo:'',
|
||||||
|
checkSign:'',
|
||||||
|
infotitle:'',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.region = Number(uni.getStorageSync('region'))
|
this.region = Number(uni.getStorageSync('region'))
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.selectDepartmentinfo();
|
this.selectDepartmentinfo();
|
||||||
|
this.cardNo=uni.getStorageSync('userinfo').cardNo
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
info() {
|
info() {
|
||||||
@ -118,10 +125,29 @@
|
|||||||
//图文问诊
|
//图文问诊
|
||||||
goimagetextConsultation() {
|
goimagetextConsultation() {
|
||||||
if (this.region != 3) {
|
if (this.region != 3) {
|
||||||
uni.navigateTo({
|
checkSignApply(this.cardNo).then(res => {
|
||||||
url: '/pagesB/imagetextConsultation/imagetextConsultation'
|
if (res.data) {
|
||||||
|
this.checkSign = res.data.code
|
||||||
|
this.infotitle = res.data.info
|
||||||
|
if (this.checkSign == "0") {
|
||||||
|
uni.navigateTo({
|
||||||
|
url:`/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
|
||||||
|
|
||||||
|
})
|
||||||
|
} else if (this.checkSign == "01") {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: this.infotitle,
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pagesB/imagetextConsultation/imagetextConsultation'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.info()
|
this.info()
|
||||||
}
|
}
|
||||||
@ -287,4 +313,4 @@
|
|||||||
margin: 20rpx auto 0;
|
margin: 20rpx auto 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -12,9 +12,12 @@
|
|||||||
现住址所在区
|
现住址所在区
|
||||||
</view>
|
</view>
|
||||||
<view class="input" @tap='showPicker'>
|
<view class="input" @tap='showPicker'>
|
||||||
<view class="inputtext"
|
<!-- <view class="inputtext"
|
||||||
:style="address=='请选择所属地区'?'font-size:22rpx;font-weight: 400;color: #8E8E8E !important;':''">
|
:style="address=='请选择所属地区'?'font-size:22rpx;font-weight: 400;color: #8E8E8E !important;':''">
|
||||||
{{address}}
|
{{address}}
|
||||||
|
</view> -->
|
||||||
|
<view class="inputtext" v-if="address">
|
||||||
|
{{address}}
|
||||||
</view>
|
</view>
|
||||||
<image src="../../static/huijiantou.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
@ -154,7 +157,7 @@
|
|||||||
list: [],
|
list: [],
|
||||||
addresslength: null,
|
addresslength: null,
|
||||||
imglistlength: null,
|
imglistlength: null,
|
||||||
address: '请选择所属地区', //页面所属区域
|
address: '', //页面所属区域
|
||||||
formdata: {
|
formdata: {
|
||||||
address: '', //页面所属区域
|
address: '', //页面所属区域
|
||||||
patientId: '',
|
patientId: '',
|
||||||
@ -178,7 +181,7 @@
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.uoloadaction = baseurl + '/nurseApplet/consultationInfo/uploadConsultationFile'
|
this.uoloadaction = baseurl + '/nurseApplet/consultationInfo/uploadConsultationFile'
|
||||||
this.formdata = uni.getStorageSync('userinfo')
|
this.formdata = uni.getStorageSync('userinfo')
|
||||||
this.formdata.address = ''
|
// this.formdata.address = ''
|
||||||
this.formdata.fileUrls = []
|
this.formdata.fileUrls = []
|
||||||
this.infolist()
|
this.infolist()
|
||||||
this.areaInfo();
|
this.areaInfo();
|
||||||
@ -317,6 +320,13 @@
|
|||||||
},
|
},
|
||||||
infolist() {
|
infolist() {
|
||||||
detail(this.formdata.cardNo).then(res => {
|
detail(this.formdata.cardNo).then(res => {
|
||||||
|
if(res.data.provinceName && res.data.cityName && res.data.countyName &&res.data.townName){
|
||||||
|
this.address=res.data.provinceName+res.data.cityName+res.data.countyName+res.data.townName
|
||||||
|
this.formdata.address=this.address
|
||||||
|
}else if(res.data.provinceName && res.data.cityName && res.data.countyName){
|
||||||
|
this.address=res.data.provinceName+res.data.cityName+res.data.countyName
|
||||||
|
this.formdata.address=this.address
|
||||||
|
}
|
||||||
var status = '1'
|
var status = '1'
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => {
|
getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => {
|
||||||
@ -357,4 +367,4 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import './createnewconsultation.scss';
|
@import './createnewconsultation.scss';
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -6,9 +6,14 @@
|
|||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
||||||
border-radius: 5rpx;
|
border-radius: 5rpx;
|
||||||
|
::v-deep .u-toast{
|
||||||
|
margin-top: 6%;
|
||||||
|
|
||||||
|
}
|
||||||
::v-deep .u-checkbox {
|
::v-deep .u-checkbox {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
height: 80rpx !important;
|
height: 80rpx !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
.signing {
|
.signing {
|
||||||
width: 637rpx;
|
width: 637rpx;
|
||||||
|
|||||||
@ -636,6 +636,14 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
if(options.checkSign=="0"){
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '未签约,请先签约',
|
||||||
|
type: 'error',
|
||||||
|
duration:'2000',
|
||||||
|
position:'top',
|
||||||
|
})
|
||||||
|
}
|
||||||
var region = uni.getStorageSync('region')
|
var region = uni.getStorageSync('region')
|
||||||
// 德州
|
// 德州
|
||||||
if (region == 1) {
|
if (region == 1) {
|
||||||
@ -691,4 +699,4 @@
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "./Onlinesigning.scss";
|
@import "./Onlinesigning.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user