提交 db5f726a 编写于 作者: 张磊's avatar 张磊

quick detect

上级 728a8d23
...@@ -118,7 +118,7 @@ export const detectionRecordInfo = (id) => { ...@@ -118,7 +118,7 @@ export const detectionRecordInfo = (id) => {
export const detectionQuickRecordInfo = (id) => { export const detectionQuickRecordInfo = (id) => {
return request({ return request({
method: 'get', method: 'get',
url: `/trade/detection/record/queryFastDetectRecord/${id}`, url: `/trade/detection/record/quick/info?detectionRecordId=${id}`,
withCredentials: true, withCredentials: true,
}); });
}; };
......
...@@ -380,7 +380,7 @@ export default { ...@@ -380,7 +380,7 @@ export default {
}); });
}, },
getRecordInfo() { getRecordInfo() {
if(this.insuranceInfo.detectionKind == 1) { if(this.insuranceInfo.detectionKind == 0) {
detectionRecordInfo(this.detectionRecordId).then(res => { detectionRecordInfo(this.detectionRecordId).then(res => {
if (res.code === '000000') { if (res.code === '000000') {
this.recordInfo.name = res.data.patientName; this.recordInfo.name = res.data.patientName;
...@@ -393,13 +393,13 @@ export default { ...@@ -393,13 +393,13 @@ export default {
} }
}); });
} }
if(this.insuranceInfo.detectionKind == 0) { if(this.insuranceInfo.detectionKind == 1) {
detectionQuickRecordInfo(this.detectionRecordId).then(res => { detectionQuickRecordInfo(this.detectionRecordId).then(res => {
if (res.code === '000000') { if (res.code === '000000') {
this.recordInfo.name = res.data.patientName; this.recordInfo.name = res.data.patientName;
this.recordInfo.sex = res.data.patientGender === 1 ? '男' : '女'; this.recordInfo.sex = res.data.sex === 1 ? '男' : '女';
this.recordInfo.date = res.data.birthTime; this.recordInfo.date = res.data.birthday;
this.recordInfo.checkName = res.data.detectName; this.recordInfo.checkName = res.data.checkName;
this.recordInfo.projectId = res.data.projectId; this.recordInfo.projectId = res.data.projectId;
this.recordInfo.patientId = res.data.patientId; this.recordInfo.patientId = res.data.patientId;
this.recordInfo.hospitalId = res.data.hospitalId; this.recordInfo.hospitalId = res.data.hospitalId;
......
...@@ -155,12 +155,6 @@ ...@@ -155,12 +155,6 @@
v-if="[3].includes(dataDetail.status)" v-if="[3].includes(dataDetail.status)"
class="submit-container multi-sub-wrap" class="submit-container multi-sub-wrap"
> >
<div
class="submit-button submit-button-empty"
@click="bottomBtnFun(dataDetail.reportUrl)"
>
查看报告
</div>
<div <div
v-if="picaWechat == 'wechat' && [3].includes(dataDetail.status)" v-if="picaWechat == 'wechat' && [3].includes(dataDetail.status)"
class="submit-button" class="submit-button"
...@@ -208,17 +202,9 @@ export default { ...@@ -208,17 +202,9 @@ export default {
3: '已完成', 3: '已完成',
5: '样本异常', 5: '样本异常',
6: '待支付', 6: '待支付',
}; };
return obj[type]; return obj[type];
}, },
showBtnTextFilter(status) {
const obj = {
1: '绑定条形码',
3: '查看报告',
};
return obj[status] || '';
},
}, },
data() { data() {
return { return {
...@@ -239,7 +225,7 @@ export default { ...@@ -239,7 +225,7 @@ export default {
path:'pagesInsurance/all-entrance/index', // 打开页面 path:'pagesInsurance/all-entrance/index', // 打开页面
extraData: JSON.stringify({}) extraData: JSON.stringify({})
}, },
openWebAppBtnName: '报告解读', openWebAppBtnName: '绑定条形码',
yunOrderNo: '', yunOrderNo: '',
action_code: '' action_code: ''
}; };
...@@ -260,32 +246,12 @@ export default { ...@@ -260,32 +246,12 @@ export default {
targetPath: 'pagesInsurance/all-entrance/index', targetPath: 'pagesInsurance/all-entrance/index',
query: {yunOrderNo: this.yunOrderNo}, query: {yunOrderNo: this.yunOrderNo},
}; };
let jump_path = `pagesInsurance/all-entrance/index?yunOrderNo=${this.yunOrderNo}&channelSource=channelSource`;
getQuickDetectionDetail(this.detectionRecordId).then((res) => { getQuickDetectionDetail(this.detectionRecordId).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
this.dataDetail = res.data; this.dataDetail = res.data;
this.getDetailProces(); this.getDetailProces();
const {inquiryStatus} = res.data;
let n = '';
if(inquiryStatus == 0) {
// ed.targetPath = '/pages/consultation-info/consultation/index';
this.action_code = 'bottomBtnFun2';
jump_path = jump_path + '&action_code=bottomBtnFun2';
n = '报告解读';
}else if([4, 6].includes(inquiryStatus)) {
n = '查看专家建议';
this.action_code = 'getAdvice';
jump_path = jump_path + '&action_code=getAdvice';
// ed.targetPath = '/pages/health/detection-detail/index';
}else {
n = '已预约待咨询';
this.action_code = 'goIm';
jump_path = jump_path + '&action_code=goIm';
// ed.targetPath = '/pages/consultation-im/index?initTRTC=false';
}
that.openWebAppConfig.extraData = JSON.stringify(ed); that.openWebAppConfig.extraData = JSON.stringify(ed);
that.openWebAppBtnName = n; that.openWebAppConfig.path = `pagesInsurance/all-entrance/index?yunOrderNo=${this.yunOrderNo}&channelSource=channelSource`;
that.openWebAppConfig.path = jump_path;
} else { } else {
that.$toast(res.message); that.$toast(res.message);
} }
...@@ -312,21 +278,6 @@ export default { ...@@ -312,21 +278,6 @@ export default {
} }
}); });
}, },
bottomBtnFun(u) {
if(!u) {
this.$toast('reportUrl--为空', u);
return false;
}
const p = '/pdf-preview';
this.$router.push(
{
path: p,
query: {
url: u,
},
}
);
},
getJumpToWebapp() { getJumpToWebapp() {
if(this.picaWechat == 'wechat') { if(this.picaWechat == 'wechat') {
return false; return false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册