postdischarge-applet/pages/medication/medication.vue
zhuangyuanke daf9159fca 1
2024-11-01 13:36:21 +08:00

118 lines
2.5 KiB
Vue

<template>
<view class="app">
<view class="noorder" v-if="list==0">
<u-empty mode="list" icon-size='220' text='暂无内容'></u-empty>
</view>
<view class="body" @tap="changefollow(item)" v-else v-for="(item, index) in list" :index="index">
<view class="follow">
<span class="time">药事服务</span>
</view>
<view class="follow">
<span class="time">{{item.executeTime}}</span>
</view>
<view class="follow">
<span class="time">{{item.routeNodeName=='AFTER_DISCHARGE'? '出院后':''}}
{{item.routeNodeName=='AFTER_ADMISSION'? '入院后':''}}
{{item.routeNodeName=='AFTER_CONSULTATION'? '就诊后':''}}
{{item.routeNodeName=='AFTER_VISIT_DISCHARGE'? '就诊/出院后':''}}
{{item.routeNodeName=='PREOPERATIVE'? '术前':''}}
{{item.routeNodeName=='POSTOPERATIVE'? '术后':''}}{{item.routeNodeDay}}
</span>
</view>
</view>
<!-- <view class="body" @tap="changefollowwq()">
<view class="follow">
<span class="time">2024-04-02</span>
</view>
<view class="follow">
<span class="time">问卷填写</span>
</view>
<view class="follow">
<span class="time">出院后第十天</span>
</view>
</view> -->
</view>
</template>
<script>
import {
getTaskList
} from '@/api/Mymedication/Mymedication.js'
import {
getNodeDetail
} from '@/api/Mymedication/Mymedication.js'
export default {
data() {
return {
residentId: uni.getStorageSync('patientId'),
list: [],
// contents:'',
}
},
onShow() {
this.getlist()
},
methods: {
changefollow(item) {
uni.navigateTo({
url: `/pages/Mymedication/Mymedication?id=${item.id}`
})
},
getlist() {
var TaskTypeList = "PHARMACY_SERVICE"
getTaskList(TaskTypeList, this.residentId).then(res => {
console.log(res)
this.list = res.data
})
},
}
}
</script>
<style lang="scss">
.app {
height: 100vh;
background-color: #F7F5F5;
padding: 20rpx 0 0 0;
overflow: scroll;
font-size: 28rpx;
::v-deep .u-empty {
margin-top: 100rpx !important;
}
.body {
width: 95%;
height: 320rpx;
background: #fff;
margin: 40rpx auto;
padding-top: 15rpx;
box-shadow: 0px 4px 15px 4px rgba(0, 0, 0, 0.03);
border-radius: 2px;
.follow {
margin-top: 10rpx;
padding: 20rpx 0 0 100rpx;
.time {
display: inline-block;
width: 300rpx;
height: 55rpx;
line-height: 55rpx;
padding-left: 20rpx;
padding-right: 20rpx;
// background: #F6F6F6;
border: 1px solid #CFCECE;
}
// ;
}
}
}
</style>