修改
This commit is contained in:
parent
254664bdbb
commit
d8623ea732
@ -1,90 +1,83 @@
|
||||
<template>
|
||||
<view class="screeningRecord" v-if="screeningResultData.length>0">
|
||||
<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>
|
||||
<view>筛查项目:{{ item.projectName }}</view>
|
||||
<view>筛查医院:{{ item.hospitalName }}</view>
|
||||
<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>
|
||||
</view>
|
||||
<view v-else style="margin-top: 50%;">
|
||||
<u-empty mode="order" icon-size='220' text="暂无筛查记录"></u-empty>
|
||||
</view>
|
||||
|
||||
<view class="screeningRecord" v-if="screeningResultData.length>0">
|
||||
<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>
|
||||
<view>筛查项目:{{ item.projectName }}</view>
|
||||
<view>筛查医院:{{ item.hospitalName }}</view>
|
||||
<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>
|
||||
</view>
|
||||
<view v-else style="margin-top: 50%;">
|
||||
<u-empty mode="order" icon-size='220' text="暂无筛查记录"></u-empty>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import { screeningResultList } from "@/service/api/jsApi.js"
|
||||
import { screeningResultList } from '@/api/pagesB/screeningRecord/screeningRecord.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
screeningResultData:[],
|
||||
registerId:"",
|
||||
patientId:"",
|
||||
pageNum:1,
|
||||
pageSize:10,
|
||||
total: 0,
|
||||
// qure:{
|
||||
|
||||
// }
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
// con
|
||||
if(e) {
|
||||
this.registerId = e.registerId
|
||||
}
|
||||
this.getScreeningResultList()
|
||||
},
|
||||
methods:{
|
||||
//获取结果记录列表
|
||||
getScreeningResultList() {
|
||||
screeningResultList(this.registerId,this.pageNum,this.pageSize).then(res => {
|
||||
console.log(res);
|
||||
this.screeningResultData = res.rows
|
||||
this.total=res.total
|
||||
})
|
||||
},
|
||||
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
|
||||
})
|
||||
}
|
||||
},
|
||||
// 查看筛查结果
|
||||
goToScreeningResult(item) {
|
||||
uni.navigateTo({
|
||||
url:`/pagesB/screeningResult/screeningResult?screeningId=${item.screeningId}®isterId=${this.registerId}&type=1`
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
import {
|
||||
screeningResultList
|
||||
} from '@/api/pagesB/screeningRecord/screeningRecord.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
screeningResultData: [],
|
||||
registerId: "",
|
||||
patientId: "",
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
this.registerId = uni.getStorageSync('userinfo').id
|
||||
this.getScreeningResultList()
|
||||
},
|
||||
methods: {
|
||||
//获取结果记录列表
|
||||
getScreeningResultList() {
|
||||
screeningResultList(this.registerId, this.pageNum, this.pageSize).then(res => {
|
||||
this.screeningResultData = res.rows
|
||||
this.total = res.total
|
||||
})
|
||||
},
|
||||
// 查看筛查结果
|
||||
goToScreeningResult(item) {
|
||||
uni.navigateTo({
|
||||
url: `/pagesB/screeningResult/screeningResult?screeningId=${item.screeningId}®isterId=${this.registerId}&type=1`
|
||||
})
|
||||
}
|
||||
},
|
||||
onReachBottom() { //下滑加载
|
||||
if (this.screeningResultData.length >= this.total) {} else {
|
||||
this.pageNum++;
|
||||
screeningResultList(this.registerId, this.pageNum, this.pageSize).then(res => {
|
||||
res.rows.forEach(e => {
|
||||
this.screeningResultData.push(e)
|
||||
})
|
||||
this.total = res.total
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.screeningRecord {
|
||||
width: 94%;
|
||||
margin: 10px auto;
|
||||
.screeningRecord {
|
||||
width: 94%;
|
||||
margin: 10px auto;
|
||||
|
||||
.screeningRecordItem {
|
||||
margin-top: 10px;
|
||||
padding: 10px 20px;
|
||||
background-color: #fff;
|
||||
line-height: 30px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
.screeningRecordItem {
|
||||
margin-top: 10px;
|
||||
padding: 10px 20px;
|
||||
background-color: #fff;
|
||||
line-height: 30px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -142,11 +142,8 @@
|
||||
},
|
||||
onShow() {
|
||||
this.baseurl = baseurl
|
||||
console.log(baseurl)
|
||||
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(e);
|
||||
this.type = e.type
|
||||
if (e) {
|
||||
this.registerId = e.registerId
|
||||
@ -155,12 +152,9 @@
|
||||
if (e.screeningId) {
|
||||
screeningResultDetail(e.screeningId).then(res => {
|
||||
this.items.push(res.data.projectName)
|
||||
console.log(this.items, '111')
|
||||
this.screeningResultData = res.data
|
||||
console.log(this.screeningResultData, '000000')
|
||||
})
|
||||
} else {
|
||||
// this.patientld = 52;
|
||||
this.userinfo = uni.getStorageSync('userinfo');
|
||||
this.patientld = this.userinfo.id;
|
||||
this.getLastScreeningResult()
|
||||
@ -171,7 +165,6 @@
|
||||
var that = this
|
||||
var url = that.baseurl +
|
||||
`/nurseApplet/screening/record/fileview?filePath=${that.screeningResultData.attachment}`
|
||||
console.log(url, '1')
|
||||
uni.downloadFile({
|
||||
url: url,
|
||||
responseType: 'blob',
|
||||
@ -181,12 +174,8 @@
|
||||
filePath: filePath,
|
||||
fileType: that.screeningResultData.fileType.toLowerCase(),
|
||||
showMenu: true,
|
||||
success: function(respp) {
|
||||
console.log(respp)
|
||||
},
|
||||
fail(err) {
|
||||
console.log(err)
|
||||
}
|
||||
success: function(respp) {},
|
||||
fail(err) {}
|
||||
});
|
||||
}
|
||||
})
|
||||
@ -195,11 +184,9 @@
|
||||
if (this.Inv != e.currentIndex) {
|
||||
this.Inv = e.currentIndex;
|
||||
this.getLastScreeningResult()
|
||||
// this.isResult(this.Inv)
|
||||
}
|
||||
},
|
||||
isResult(inv) {
|
||||
console.log(this.screeningResultData.projectRecordList, '555')
|
||||
for (let item in this.screeningResultData.projectRecordList) {
|
||||
if (this.screeningResultData.projectRecordList[item].projectName == (inv == 0 ? '糖尿病-眼底病变筛查' : (inv ==
|
||||
1 ?
|
||||
@ -223,27 +210,19 @@
|
||||
},
|
||||
close1() {
|
||||
this.show1 = false
|
||||
// console.log('close');
|
||||
},
|
||||
close2() {
|
||||
this.show2 = false
|
||||
},
|
||||
open() {
|
||||
// console.log('open');
|
||||
},
|
||||
open() {},
|
||||
close() {
|
||||
this.show = false
|
||||
// console.log('close');
|
||||
},
|
||||
// 获取最新的筛查结果
|
||||
getLastScreeningResult() {
|
||||
console.log(this.registerId, '999')
|
||||
lastScreeningResult(this.patientld, this.projectId).then(res => {
|
||||
|
||||
// console.log(res);
|
||||
if (res.data.projectName) {
|
||||
if (res.code == 200 && res.data.projectName) {
|
||||
this.items.push(res.data.projectName)
|
||||
|
||||
}
|
||||
this.screeningResultData = res.data
|
||||
this.isResult(this.Inv)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user