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

quick detect

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