筛查预约

This commit is contained in:
shidongli 2023-11-02 10:46:35 +08:00
parent 3249d137f6
commit 1ed614c588
2 changed files with 16 additions and 12 deletions

View File

@ -18,6 +18,9 @@
</text> </text>
<view style="color:#333;margin-bottom: 30rpx;"> <view style="color:#333;margin-bottom: 30rpx;">
预约状态 预约状态
<!-- <span v-if="item.exceedStatus == '0'">生效中</span>
<span v-if="item.exceedStatus == '1'">已过期</span> -->
<uni-tag v-if="item.exceedStatus == '0'" text="生效中" size="mini" type="success" /> <uni-tag v-if="item.exceedStatus == '0'" text="生效中" size="mini" type="success" />
<uni-tag v-if="item.exceedStatus == '1'" size="mini" text="已过期" /> <uni-tag v-if="item.exceedStatus == '1'" size="mini" text="已过期" />
</view> </view>

View File

@ -6,17 +6,17 @@
<view style="margin-right: 30rpx; color: #333">年龄{{userInfo.age}}</view> <view style="margin-right: 30rpx; color: #333">年龄{{userInfo.age}}</view>
<view style="color: #333;">性别{{userInfo.sex}}</view> <view style="color: #333;">性别{{userInfo.sex}}</view>
</view> </view>
<view class="illness" v-if="userInfo.diseaseList"> <view class="illness" v-if="formData.disease">
<view v-show="userInfo.diseaseList.includes(0)"> <view v-show="formData.disease.includes(0)">
<span></span> <span></span>
</view> </view>
<view v-show="userInfo.diseaseList.includes(1)"> <view v-show="formData.disease.includes(1)">
<span>高血压</span> <span>高血压</span>
</view> </view>
<view v-show="userInfo.diseaseList.includes(2) "> <view v-show="formData.disease.includes(2) ">
<span>高血糖</span> <span>高血糖</span>
</view> </view>
<view v-show="userInfo.diseaseList.includes(3)"> <view v-show="formData.disease.includes(3)">
<span>高血脂</span> <span>高血脂</span>
</view> </view>
</view> </view>
@ -193,24 +193,25 @@
this.$refs.form1.setRules(this.rules); this.$refs.form1.setRules(this.rules);
}, },
onLoad(e) { onLoad(e) {
console.log(e, '4')
if (e) { if (e) {
this.userInfo = JSON.parse(e.userinfo) this.userInfo = JSON.parse(e.userinfo)
this.formData.disease = this.userInfo.diseaseList.join(',')
if (this.userInfo.sex == 'MALE') { if (this.userInfo.sex == 'MALE') {
this.userInfo.sex = '男' this.userInfo.sex = '男'
} else { } else if(this.userInfo.sex == 'FEMALE'){
this.userInfo.sex = '女' this.userInfo.sex = '女'
} }
this.userInfo.age = getAgeFun(this.userInfo.birthDate) this.userInfo.age = getAgeFun(this.userInfo.birthDate)
if(this.userInfo.diseaseList.length>0){
this.formData.disease = this.userInfo.diseaseList.join(',')
console.log(this.formData.disease,'9999')
}
} }
this.getDeptAndPro() this.getDeptAndPro()
}, },
methods: { methods: {
appointitem(e) { appointitem(e) {
// console.log(e, '67')
var that = this var that = this
if (that.formData.hospitalId == '') { if (that.formData.hospitalId == '') {
this.$refs.uToast.show({ this.$refs.uToast.show({
@ -322,7 +323,7 @@
const value = uni.getStorageSync('userinfo'); const value = uni.getStorageSync('userinfo');
this.formData.patientId = value.id this.formData.patientId = value.id
this.formData.identity = this.userInfo.cardNo this.formData.identity = this.userInfo.cardNo
this.formData.diseaseList = this.userInfo.diseaseList this.formData.diseaseList = this.userInfo.diseaseList.map(Number)
this.formData.applyStartTime = this.datetimerange[0] this.formData.applyStartTime = this.datetimerange[0]
this.formData.applyEndTime = this.datetimerange[1] this.formData.applyEndTime = this.datetimerange[1]
if (this.formData.sex == '男') { if (this.formData.sex == '男') {