筛查结果
This commit is contained in:
parent
8989cabfb0
commit
5c9c7901c5
8
api/pagesB/SelectItem/SelectItem.js
Normal file
8
api/pagesB/SelectItem/SelectItem.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import request from "../../request.js"
|
||||||
|
// 获取项目
|
||||||
|
export function projectTypedata(projectType) {
|
||||||
|
return request({
|
||||||
|
url: `/nurseApplet/screening/project/list?projectType=${projectType}`,
|
||||||
|
method: 'GET'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -1,8 +1,8 @@
|
|||||||
import request from "../../request.js"
|
import request from "../../request.js"
|
||||||
// 获取筛查结果列表
|
// 获取筛查结果列表
|
||||||
export function screeningResultList(patientId) {
|
export function screeningResultList(patientId,pageNum,pageSize) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApplet/screening/record/record?patientId=${patientId}`,
|
url: `/nurseApplet/screening/record/record?patientId=${patientId}&pageNum=${pageNum}&pageSize=${pageSize}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -55,7 +55,7 @@
|
|||||||
// 查看筛查结果
|
// 查看筛查结果
|
||||||
result(item){
|
result(item){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pagesB/screeningResult/screeningResult?projectId=${item}`
|
url: `/pagesB/screeningResult/screeningResult?registerId=${item}`
|
||||||
});
|
});
|
||||||
console.log(item)
|
console.log(item)
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<!-- <view>筛查日期:{{ item.screeningDate }}</view> -->
|
<!-- <view>筛查日期:{{ item.screeningDate }}</view> -->
|
||||||
<view style="font-size: 16px;font-weight: 900;">{{ 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 style="border-bottom: 1px solid #EDEDED;margin: 8px 0;"></view>
|
||||||
<view>筛查医院:{{ item.deptName }}</view>
|
<view>筛查医院:{{ item.hospitalName }}</view>
|
||||||
<view>责任医生:{{ item.doctorName}}</view>
|
<view>责任医生:{{ item.doctorName}}</view>
|
||||||
<view style="border-bottom: 1px solid #EDEDED;margin: 10px 0;"></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)">
|
<view style="color: #346CF2;text-align: center;font-size: 30rpx;" @click="goToScreeningResult(item)">
|
||||||
@ -24,26 +24,46 @@
|
|||||||
screeningResultData:[],
|
screeningResultData:[],
|
||||||
registerId:"",
|
registerId:"",
|
||||||
patientId:"",
|
patientId:"",
|
||||||
|
pageNum:1,
|
||||||
|
pageSize:10,
|
||||||
|
total: 0,
|
||||||
|
// qure:{
|
||||||
|
|
||||||
|
// }
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
// con
|
// con
|
||||||
if(e) {
|
if(e) {
|
||||||
this.patientId = e.registerId
|
this.registerId = e.registerId
|
||||||
}
|
}
|
||||||
this.getScreeningResultList()
|
this.getScreeningResultList()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
//获取结果记录列表
|
//获取结果记录列表
|
||||||
getScreeningResultList() {
|
getScreeningResultList() {
|
||||||
screeningResultList(this.patientId).then(res => {
|
screeningResultList(this.registerId,this.pageNum,this.pageSize).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.screeningResultData = res.data.rows
|
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) {
|
goToScreeningResult(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`../screeningResult/screeningResult?screeningId=${item.screeningId}®isterId=${this.registerId}&type=1`
|
url:`/pagesB/screeningResult/screeningResult?screeningId=${item.screeningId}®isterId=${this.registerId}&type=1`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,11 +9,37 @@
|
|||||||
<view style="color: #2968F1;" @click="goToScreeningRecord" v-show="type != '1'">筛查记录</view>
|
<view style="color: #2968F1;" @click="goToScreeningRecord" v-show="type != '1'">筛查记录</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tabbarCon">
|
<view class="tabbarCon">
|
||||||
|
<view style="text-align: center;color: #26A888;">
|
||||||
|
{{screeningResultData.projectName}}
|
||||||
|
</view>
|
||||||
<uni-segmented-control :current="Inv" :values="items" @clickItem="onClickItem" styleType="text"
|
<uni-segmented-control :current="Inv" :values="items" @clickItem="onClickItem" styleType="text"
|
||||||
activeColor="#4AC4AB"></uni-segmented-control>
|
activeColor="#4AC4AB"></uni-segmented-control>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view v-show="Inv == 0">
|
<view v-show="Inv == 0">
|
||||||
<view style="text-align: center;">
|
<view style="text-align: center;">
|
||||||
|
<view class="" v-if="screeningResultData.fileType=='docx'||screeningResultData.fileType=='doc'">
|
||||||
|
<view class="btn" @click="lookpath" v-if="screeningResultData.attachment">
|
||||||
|
查看报告
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="" v-else>
|
||||||
|
<view v-if="screeningResultData.attachment && screeningResultData.attachment != '找不到指定文件!'">
|
||||||
|
<view style="display: flex;justify-content: space-around;">
|
||||||
|
<view style="width: 49%;" @click="xxbClick(screeningResultData.attachment)">
|
||||||
|
<image style="width: 100%;height: 100px;"
|
||||||
|
:src="'data:image/jpeg;base64' + screeningResultData.attachment"></image>
|
||||||
|
</view>
|
||||||
|
<view style="width: 49%;" @click="picClick1(screeningResultData.attachmentTwo)">
|
||||||
|
<image style="width: 100%;height: 100px;"
|
||||||
|
:src="'data:image/jpeg;base64' + screeningResultData.attachmentTwo"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view v-else style="margin: 10px auto; ">
|
||||||
|
<u-empty text="暂无照片" mode="data"></u-empty>
|
||||||
|
</view>
|
||||||
|
<!-- <view style="text-align: center;">
|
||||||
<view v-if="screeningResultData.attachment && screeningResultData.attachment != '找不到指定文件!'">
|
<view v-if="screeningResultData.attachment && screeningResultData.attachment != '找不到指定文件!'">
|
||||||
<view style="display: flex;justify-content: space-around;">
|
<view style="display: flex;justify-content: space-around;">
|
||||||
<view style="width: 49%;" @click="xxbClick(screeningResultData.attachment)">
|
<view style="width: 49%;" @click="xxbClick(screeningResultData.attachment)">
|
||||||
@ -28,7 +54,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view v-else style="margin: 10px auto; ">
|
<view v-else style="margin: 10px auto; ">
|
||||||
<u-empty text="暂无照片" mode="data"></u-empty>
|
<u-empty text="暂无照片" mode="data"></u-empty>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -116,7 +142,7 @@
|
|||||||
lastScreeningResult,
|
lastScreeningResult,
|
||||||
screeningResultDetail
|
screeningResultDetail
|
||||||
} from '@/api/pagesB/screeningResult/screeningResult.js'
|
} from '@/api/pagesB/screeningResult/screeningResult.js'
|
||||||
|
import baseurl from '@/api/baseurl.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -145,32 +171,82 @@
|
|||||||
fileImgSrc: '',
|
fileImgSrc: '',
|
||||||
fileImgSrc1: '',
|
fileImgSrc1: '',
|
||||||
fileImgSrc2: '',
|
fileImgSrc2: '',
|
||||||
registerId:""
|
registerId: "",
|
||||||
|
baseurl:'',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
// onLoad(e) {
|
||||||
console.log(e);
|
// console.log(e);
|
||||||
// this.type = e.type
|
// // this.type = e.type
|
||||||
if(e) {
|
// if(e) {
|
||||||
this.registerId=e.projectId
|
// this.registerId=e.projectId
|
||||||
// this.patientld=uni.getStorageSync('patientId);
|
// // this.patientld=uni.getStorageSync('patientId);
|
||||||
|
|
||||||
this.patientld=52;
|
// this.patientld=52;
|
||||||
this.getLastScreeningResult()
|
// this.getLastScreeningResult()
|
||||||
// this.registerId= e.registerId
|
// // this.registerId= e.registerId
|
||||||
|
// }
|
||||||
|
// if (e.screeningId) {
|
||||||
|
// screeningResultDetail(e.screeningId).then(res => {
|
||||||
|
// this.items.push(res.data.data.projectName)
|
||||||
|
// this.screeningResultData = res.data.data
|
||||||
|
// })
|
||||||
|
// } else {
|
||||||
|
|
||||||
|
// // this.patientld= uni.getStorageSync('patientld');
|
||||||
|
// this.patientld=52;
|
||||||
|
// this.getLastScreeningResult()
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
onShow() {
|
||||||
|
this.baseurl=baseurl
|
||||||
|
console.log(baseurl)
|
||||||
|
|
||||||
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
// console.log(e);
|
||||||
|
this.type = e.type
|
||||||
|
if (e) {
|
||||||
|
this.registerId = e.registerId
|
||||||
}
|
}
|
||||||
if (e.screeningId) {
|
if (e.screeningId) {
|
||||||
screeningResultDetail(e.screeningId).then(res => {
|
screeningResultDetail(e.screeningId).then(res => {
|
||||||
this.items.push(res.data.data.projectName)
|
this.items.push(res.data.projectName)
|
||||||
this.screeningResultData = res.data.data
|
console.log(this.items, '111')
|
||||||
|
this.screeningResultData = res.data
|
||||||
|
console.log(this.screeningResultData, '000000')
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.patientld = 52;
|
||||||
// this.patientld= uni.getStorageSync('patientld');
|
// this.patientld= uni.getStorageSync('patientld');
|
||||||
// this.patientld=52;
|
this.getLastScreeningResult()
|
||||||
// this.getLastScreeningResult()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
lookpath() {
|
||||||
|
var that = this
|
||||||
|
|
||||||
|
var url = that.baseurl + `/nurseApplet/screening/record/fileview/${that.screeningResultData.screeningId}`
|
||||||
|
console.log(url,'1')
|
||||||
|
uni.downloadFile({
|
||||||
|
url: url,
|
||||||
|
responseType: 'blob',
|
||||||
|
success: function(resp) {
|
||||||
|
var filePath = resp.tempFilePath;
|
||||||
|
uni.openDocument({
|
||||||
|
filePath: filePath,
|
||||||
|
fileType: that.screeningResultData.fileType.toLowerCase(),
|
||||||
|
showMenu: true,
|
||||||
|
success: function(respp) {
|
||||||
|
console.log(respp)
|
||||||
|
},
|
||||||
|
fail(err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
onClickItem(e) {
|
onClickItem(e) {
|
||||||
if (this.Inv != e.currentIndex) {
|
if (this.Inv != e.currentIndex) {
|
||||||
this.Inv = e.currentIndex;
|
this.Inv = e.currentIndex;
|
||||||
@ -179,6 +255,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
isResult(inv) {
|
isResult(inv) {
|
||||||
|
console.log(this.screeningResultData.projectRecordList, '555')
|
||||||
for (let item in this.screeningResultData.projectRecordList) {
|
for (let item in this.screeningResultData.projectRecordList) {
|
||||||
if (this.screeningResultData.projectRecordList[item].projectName == (inv == 0 ? '糖尿病-眼底病变筛查' : (inv ==
|
if (this.screeningResultData.projectRecordList[item].projectName == (inv == 0 ? '糖尿病-眼底病变筛查' : (inv ==
|
||||||
1 ?
|
1 ?
|
||||||
@ -216,10 +293,11 @@
|
|||||||
},
|
},
|
||||||
// 获取最新的筛查结果
|
// 获取最新的筛查结果
|
||||||
getLastScreeningResult() {
|
getLastScreeningResult() {
|
||||||
lastScreeningResult(this.patientld,this.registerId).then(res => {
|
lastScreeningResult(this.patientld, this.registerId).then(res => {
|
||||||
|
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
this.items.push(res.data.data.projectName)
|
this.items.push(res.data.projectName)
|
||||||
this.screeningResultData = res.data.data
|
this.screeningResultData = res.data
|
||||||
this.isResult(this.Inv)
|
this.isResult(this.Inv)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user