首页-筛查记录

This commit is contained in:
shidongli 2023-10-19 13:26:38 +08:00
parent ca5d324636
commit dc2c2368ba
4 changed files with 130 additions and 93 deletions

View File

@ -7,23 +7,6 @@
查看筛查结果 查看筛查结果
</view> </view>
</view> </view>
<!-- <view class="content">
<view class="big">血小板筛查
</view>
<view class="servename" @tap="result(2)">
查看筛查结果
</view>
</view>
<view class="content">
<view class="big">糖尿病-眼底病变筛查
</view>
<view class="servename" @tap="result(3)">
查看筛查结果
</view>
</view> -->
</view> </view>
</template> </template>

View File

@ -46,45 +46,9 @@
<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 style="text-align: center;">
<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 v-else style="margin: 10px auto; ">
<u-empty text="暂无照片" mode="data"></u-empty>
</view> -->
</view> </view>
</view> </view>
<!-- <view v-show="Inv == 0">
<view style="text-align: center;">
<view
v-if="screeningResultData.projectRecordList[0].attachment && screeningResultData.projectRecordList[0].attachment != '找不到指定文件!'">
<view style="display: flex;justify-content: space-around;">
<view style="width: 49%;" @click="xxbClick(screeningResultData.projectRecordList[0].attachment)">
<image style="width: 100%;height: 100px;"
:src="'data:image/jpeg;base64' + screeningResultData.projectRecordList[0].attachment"></image>
</view>
<view style="width: 49%;" @click="picClick1(screeningResultData.projectRecordList[0].attachmentTwo)">
<image style="width: 100%;height: 100px;"
:src="'data:image/jpeg;base64' + screeningResultData.projectRecordList[0].attachmentTwo"></image>
</view>
</view>
</view>
<view v-else style="margin: 10px auto; ">
<u-empty text="暂无照片" mode="data"></u-empty>
</view>
</view>
</view> -->
<view v-show="Inv == 1"> <view v-show="Inv == 1">
<view> <view>
<view <view

View File

@ -3,30 +3,52 @@
<view class="content"> <view class="content">
<view class="item"> <view class="item">
筛查项目 筛查项目
<span>眼底筛查</span> <span>{{screeningResultData.projectName}}</span>
</view> </view>
<view class="item"> <view class="item">
筛查时间 筛查时间
<span>2023-14-14 13:13:13</span> <span>{{ screeningResultData.screeningDate ? screeningResultData.screeningDate : '无' }}</span>
</view> </view>
<view class="item"> <view class="item">
筛查机构 筛查机构
<span>河口社区卫生服务中心</span> <span>{{screeningResultData.hospitalName}}</span>
</view>
<view class="item">
筛查项目
<span>眼底筛查</span>
</view> </view>
<view class="item"> <view class="item">
筛查医生 筛查医生
<span>张三</span> <span>{{screeningResultData.doctorName}}</span>
</view> </view>
<view class="itemend"> <view class="itemend">
筛查结果: 筛查结果:
</view> </view>
<view class="image"> <view class="image">
<view class="imageitem"> <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>
</view>
<!-- <view class="imageitem">
<image src="../../static/pagesB/Behave.png" mode=""></image> <image src="../../static/pagesB/Behave.png" mode=""></image>
</view> </view>
<view class="imageitem"> <view class="imageitem">
@ -34,29 +56,82 @@
</view> </view>
<view class="imageitem"> <view class="imageitem">
<image src="../../static/pagesB/Behave.png" mode=""></image> <image src="../../static/pagesB/Behave.png" mode=""></image>
</view> -->
<view class="item">
诊断结果
<span>{{screeningResultData.diagnosticResult}}</span>
</view> </view>
</view>
<view class="item">
诊断结果
<span>诊断结果内容</span>
</view>
<view class="item">
健康处方
</view>
<view class="word">
处方内容内容处方处内容方内处方容容内处 方内容处方容处方处内容方内处方容容内处 方容处方内容
</view>
</view> </view>
</view>
</view> </view>
</template> </template>
<script> <script>
import {
lastScreeningResult,
screeningResultDetail
} from '@/api/pagesB/screeningResult/screeningResult.js'
import baseurl from '@/api/baseurl.js'
export default { export default {
data() { data() {
return {}; return {
screeningResultData: {},
projectId: '',
patientld: '',
userinfo: {},
baseurl: '',
};
},
onLoad(e) {
this.userinfo = uni.getStorageSync('userinfo');
this.patientld = this.userinfo.id;
this.projectId = e.projectId
this.getLastScreeningResult()
console.log(e)
},
onShow() {
this.baseurl = baseurl
}, },
methods: { methods: {
//
getLastScreeningResult() {
lastScreeningResult(this.patientld, this.projectId).then(res => {
this.screeningResultData = res.data
})
},
//
lookpath() {
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',
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)
}
});
}
})
},
goapponint() { goapponint() {
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/Screeningdetails/Screeningdetails' url: '/pagesC/Screeningdetails/Screeningdetails'
@ -112,8 +187,8 @@
} }
.image { .image {
display: flex; // display: flex;
justify-content: space-around; // justify-content: space-around;
padding-top: 20rpx; padding-top: 20rpx;
} }
@ -138,4 +213,4 @@
} }
} }
} }
</style> </style>

View File

@ -1,6 +1,16 @@
<template> <template>
<view class="app"> <view class="app">
<view class="content"> <view class="content" v-for="(item,index) in prejectlist">
<view class="big">{{item.projectName}}
</view>
<view class="servename">
{{item.createTime}}
</view>
<view class="appoint" @tap="goapponint(item)">
详情
</view>
</view>
<!-- <view class="content">
<view class="big">眼底筛查 <view class="big">眼底筛查
</view> </view>
@ -10,33 +20,38 @@
<view class="appoint" @tap="goapponint"> <view class="appoint" @tap="goapponint">
详情 详情
</view> </view>
</view> </view> -->
<view class="content">
<view class="big">眼底筛查
</view>
<view class="servename">
2023-12-12 12:12:12
</view>
<view class="appoint" @tap="goapponint">
详情
</view>
</view>
</view> </view>
</template> </template>
<script> <script>
import {
projectTypedata
} from '@/api/pagesB/SelectItem/SelectItem.js'
export default { export default {
data() { data() {
return {}; return {
prejectlist:{},
};
},
onShow() {
var projectType=1
projectTypedata(projectType).then(res=>{
this.prejectlist=res.data
console.log(res)
})
// this.resultstype();
}, },
methods: { methods: {
goapponint() { goapponint(item) {
console.log(item)
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/Screeningdetails/Screeningdetails' url: `/pagesC/Screeningdetails/Screeningdetails?projectId=${item.projectId}`
}); });
}, },
}, },