2023-10-08 15:54:14 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view class="screeningRecord">
|
|
|
|
|
|
<view class="screeningRecordItem" v-for="(item,index) in screeningResultData" :key="index">
|
|
|
|
|
|
<!-- <view>筛查日期:{{ item.screeningDate }}</view> -->
|
|
|
|
|
|
<view style="font-size: 16px;font-weight: 900;">{{ item.screeningDate }}</view>
|
|
|
|
|
|
<view style="border-bottom: 1px solid #EDEDED;margin: 8px 0;"></view>
|
2023-10-13 10:17:42 +08:00
|
|
|
|
<view>筛查项目:{{ item.projectName }}</view>
|
2023-10-11 15:13:02 +08:00
|
|
|
|
<view>筛查医院:{{ item.hospitalName }}</view>
|
2023-10-08 15:54:14 +08:00
|
|
|
|
<view>责任医生:{{ item.doctorName}}</view>
|
|
|
|
|
|
<view style="border-bottom: 1px solid #EDEDED;margin: 10px 0;"></view>
|
|
|
|
|
|
<view style="color: #346CF2;text-align: center;font-size: 30rpx;" @click="goToScreeningResult(item)">
|
|
|
|
|
|
<span>查看筛查结果</span>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2023-10-10 17:35:36 +08:00
|
|
|
|
|
2023-10-08 15:54:14 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
// import { screeningResultList } from "@/service/api/jsApi.js"
|
|
|
|
|
|
import { screeningResultList } from '@/api/pagesB/screeningRecord/screeningRecord.js'
|
|
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
screeningResultData:[],
|
2023-10-10 17:35:36 +08:00
|
|
|
|
registerId:"",
|
|
|
|
|
|
patientId:"",
|
2023-10-11 15:13:02 +08:00
|
|
|
|
pageNum:1,
|
|
|
|
|
|
pageSize:10,
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
// qure:{
|
2023-10-13 10:17:42 +08:00
|
|
|
|
|
2023-10-11 15:13:02 +08:00
|
|
|
|
// }
|
2023-10-08 15:54:14 +08:00
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
onLoad(e) {
|
2023-10-10 17:35:36 +08:00
|
|
|
|
// con
|
2023-10-08 15:54:14 +08:00
|
|
|
|
if(e) {
|
2023-10-11 15:13:02 +08:00
|
|
|
|
this.registerId = e.registerId
|
2023-10-08 15:54:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
this.getScreeningResultList()
|
|
|
|
|
|
},
|
|
|
|
|
|
methods:{
|
|
|
|
|
|
//获取结果记录列表
|
|
|
|
|
|
getScreeningResultList() {
|
2023-10-11 15:13:02 +08:00
|
|
|
|
screeningResultList(this.registerId,this.pageNum,this.pageSize).then(res => {
|
2023-10-08 15:54:14 +08:00
|
|
|
|
console.log(res);
|
2023-10-11 15:13:02 +08:00
|
|
|
|
this.screeningResultData = res.rows
|
|
|
|
|
|
this.total=res.total
|
2023-10-08 15:54:14 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
2023-10-11 15:13:02 +08:00
|
|
|
|
onReachBottom() { //下滑加载
|
|
|
|
|
|
if (this.screeningResultData.length >= this.total) {} else {
|
|
|
|
|
|
this.pageNum++;
|
|
|
|
|
|
screeningResultList(this.registerId,this.pageNum,this.pageSize).then(res => {
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
res.rows.forEach(e => {
|
|
|
|
|
|
this.screeningResultData.push(e)
|
|
|
|
|
|
})
|
|
|
|
|
|
this.total=res.total
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 查看筛查结果
|
2023-10-08 15:54:14 +08:00
|
|
|
|
goToScreeningResult(item) {
|
|
|
|
|
|
uni.navigateTo({
|
2023-10-11 15:13:02 +08:00
|
|
|
|
url:`/pagesB/screeningResult/screeningResult?screeningId=${item.screeningId}®isterId=${this.registerId}&type=1`
|
2023-10-08 15:54:14 +08:00
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
.screeningRecord {
|
|
|
|
|
|
width: 94%;
|
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
|
|
|
|
|
|
|
.screeningRecordItem {
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
padding: 10px 20px;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|