筛查结果
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 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;" 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}}
|
{{screeningResultData.projectName}}
|
||||||
</view>
|
</view>
|
||||||
<uni-segmented-control :current="Inv" :values="items" @clickItem="onClickItem" styleType="text"
|
<uni-segmented-control :current="Inv" :values="items" @clickItem="onClickItem" styleType="text"
|
||||||
@ -142,7 +149,7 @@
|
|||||||
lastScreeningResult,
|
lastScreeningResult,
|
||||||
screeningResultDetail
|
screeningResultDetail
|
||||||
} from '@/api/pagesB/screeningResult/screeningResult.js'
|
} from '@/api/pagesB/screeningResult/screeningResult.js'
|
||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -172,34 +179,11 @@ import baseurl from '@/api/baseurl.js'
|
|||||||
fileImgSrc1: '',
|
fileImgSrc1: '',
|
||||||
fileImgSrc2: '',
|
fileImgSrc2: '',
|
||||||
registerId: "",
|
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() {
|
onShow() {
|
||||||
this.baseurl=baseurl
|
this.baseurl = baseurl
|
||||||
console.log(baseurl)
|
console.log(baseurl)
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -219,7 +203,7 @@ import baseurl from '@/api/baseurl.js'
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// this.patientld = 52;
|
// this.patientld = 52;
|
||||||
this.userinfo= uni.getStorageSync('userinfo');
|
this.userinfo = uni.getStorageSync('userinfo');
|
||||||
this.patientld = this.userinfo.id;
|
this.patientld = this.userinfo.id;
|
||||||
this.getLastScreeningResult()
|
this.getLastScreeningResult()
|
||||||
}
|
}
|
||||||
@ -227,9 +211,8 @@ import baseurl from '@/api/baseurl.js'
|
|||||||
methods: {
|
methods: {
|
||||||
lookpath() {
|
lookpath() {
|
||||||
var that = this
|
var that = this
|
||||||
|
var url = that.baseurl + `/nurseApplet/screening/record/fileview?filePath=${that.screeningResultData.attachment}`
|
||||||
var url = that.baseurl + `/nurseApplet/screening/record/fileview/${that.screeningResultData.attachment}`
|
console.log(url, '1')
|
||||||
console.log(url,'1')
|
|
||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: url,
|
url: url,
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
@ -295,11 +278,14 @@ import baseurl from '@/api/baseurl.js'
|
|||||||
},
|
},
|
||||||
// 获取最新的筛查结果
|
// 获取最新的筛查结果
|
||||||
getLastScreeningResult() {
|
getLastScreeningResult() {
|
||||||
console.log(this.registerId,'999')
|
console.log(this.registerId, '999')
|
||||||
lastScreeningResult(this.patientld,this.projectId).then(res => {
|
lastScreeningResult(this.patientld, this.projectId).then(res => {
|
||||||
|
|
||||||
// console.log(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.screeningResultData = res.data
|
||||||
this.isResult(this.Inv)
|
this.isResult(this.Inv)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user