筛查结果
This commit is contained in:
parent
9da8c95d2e
commit
ca5d324636
@ -9,7 +9,14 @@
|
||||
<view style="color: #2968F1;" @click="goToScreeningRecord" v-show="type != '1'">筛查记录</view>
|
||||
</view>
|
||||
<view class="tabbarCon">
|
||||
<view style="text-align: center;color: #26A888;" v-if="screeningResultData.projectName">
|
||||
<view style="text-align: center;
|
||||
color: #26A888;
|
||||
border-bottom: 1rpx solid #26A888;
|
||||
padding-top: 17rpx;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
transform: translate(-50%);
|
||||
display: inline-block;" v-if="screeningResultData.projectName">
|
||||
{{screeningResultData.projectName}}
|
||||
</view>
|
||||
<uni-segmented-control :current="Inv" :values="items" @clickItem="onClickItem" styleType="text"
|
||||
@ -142,7 +149,7 @@
|
||||
lastScreeningResult,
|
||||
screeningResultDetail
|
||||
} from '@/api/pagesB/screeningResult/screeningResult.js'
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -172,34 +179,11 @@ import baseurl from '@/api/baseurl.js'
|
||||
fileImgSrc1: '',
|
||||
fileImgSrc2: '',
|
||||
registerId: "",
|
||||
baseurl:'',
|
||||
baseurl: '',
|
||||
};
|
||||
},
|
||||
// onLoad(e) {
|
||||
// console.log(e);
|
||||
// // this.type = e.type
|
||||
// if(e) {
|
||||
// this.registerId=e.projectId
|
||||
// // this.patientld=uni.getStorageSync('patientId);
|
||||
|
||||
// this.patientld=52;
|
||||
// this.getLastScreeningResult()
|
||||
// // 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
|
||||
this.baseurl = baseurl
|
||||
console.log(baseurl)
|
||||
|
||||
},
|
||||
@ -219,7 +203,7 @@ import baseurl from '@/api/baseurl.js'
|
||||
})
|
||||
} else {
|
||||
// this.patientld = 52;
|
||||
this.userinfo= uni.getStorageSync('userinfo');
|
||||
this.userinfo = uni.getStorageSync('userinfo');
|
||||
this.patientld = this.userinfo.id;
|
||||
this.getLastScreeningResult()
|
||||
}
|
||||
@ -227,9 +211,8 @@ import baseurl from '@/api/baseurl.js'
|
||||
methods: {
|
||||
lookpath() {
|
||||
var that = this
|
||||
|
||||
var url = that.baseurl + `/nurseApplet/screening/record/fileview/${that.screeningResultData.attachment}`
|
||||
console.log(url,'1')
|
||||
var url = that.baseurl + `/nurseApplet/screening/record/fileview?filePath=${that.screeningResultData.attachment}`
|
||||
console.log(url, '1')
|
||||
uni.downloadFile({
|
||||
url: url,
|
||||
responseType: 'blob',
|
||||
@ -295,11 +278,14 @@ import baseurl from '@/api/baseurl.js'
|
||||
},
|
||||
// 获取最新的筛查结果
|
||||
getLastScreeningResult() {
|
||||
console.log(this.registerId,'999')
|
||||
lastScreeningResult(this.patientld,this.projectId).then(res => {
|
||||
console.log(this.registerId, '999')
|
||||
lastScreeningResult(this.patientld, this.projectId).then(res => {
|
||||
|
||||
// console.log(res);
|
||||
this.items.push(res.data.projectName)
|
||||
if (res.data.projectName) {
|
||||
this.items.push(res.data.projectName)
|
||||
|
||||
}
|
||||
this.screeningResultData = res.data
|
||||
this.isResult(this.Inv)
|
||||
})
|
||||
@ -368,4 +354,4 @@ import baseurl from '@/api/baseurl.js'
|
||||
color: #393939;
|
||||
border-bottom: 3px solid #4DC2A8;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user