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

quick detect

上级 4a69fd1a
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
alt="" alt=""
> >
{{ !expireFlag ? statusMap[detailInfo.status]:'已过期' }} {{ !expireFlag ? statusMap(detailInfo.status):'已过期' }}
</div> </div>
<div class="detail-top insurance-detection"> <div class="detail-top insurance-detection">
<div class="detection-title"> <div class="detection-title">
...@@ -235,18 +235,6 @@ export default { ...@@ -235,18 +235,6 @@ export default {
expireFlag:false, expireFlag:false,
query: {}, query: {},
isUnderLine:false, isUnderLine:false,
statusMap: {
'0101': '未填写问卷',
'0102': '已填写问卷',
'0201': '待预约',
'0202': '预约成功',
'0203': '已取消待重新预约',
'0301': '待采样',
'0302': '已采样',
'0303': '待重新采样',
'0304': '已出报告',
'0401': '已结束',
},
}; };
}, },
computed: { computed: {
...@@ -425,7 +413,6 @@ export default { ...@@ -425,7 +413,6 @@ export default {
this.$toast('已复制'); this.$toast('已复制');
console.log('已复制的内容:', copyText); console.log('已复制的内容:', copyText);
}, },
getDetectionName(yunOrderNo) { getDetectionName(yunOrderNo) {
getDetectionName(yunOrderNo).then(res => { getDetectionName(yunOrderNo).then(res => {
if (res.code === '000000' && res.data) { if (res.code === '000000' && res.data) {
...@@ -434,6 +421,33 @@ export default { ...@@ -434,6 +421,33 @@ export default {
} }
}); });
}, },
statusMap(type) {
const obj = {
'0101': '未填写问卷',
'0102': '已填写问卷',
'0201': '待预约',
'0202': '预约成功',
'0203': '已取消待重新预约',
'0301': '待采样',
'0302': '已采样',
'0303': '待重新采样',
'0304': '已出报告',
'0401': '已结束',
};
const obj2 = {
'0101': '未填写问卷',
'0102': '已填写问卷',
'0201': '待预约',
'0202': '预约成功',
'0203': '已取消待重新预约',
'0301': '待领取',
'0302': '已领取',
'0303': '待重新领取',
'0304': '已出报告',
'0401': '已结束',
};
return this.insuranceInfo.detectionKind == 1 ? obj2[type] : obj[type];
},
}, },
}; };
</script> </script>
......
...@@ -115,7 +115,8 @@ export default { ...@@ -115,7 +115,8 @@ export default {
this.status = res.data.statusCode; this.status = res.data.statusCode;
this.hasQuestionnaire = res.data.hasQuestionnaire; this.hasQuestionnaire = res.data.hasQuestionnaire;
// 快检结果 // 快检结果
const result = this.status != '0101' && await this.getDetectionName(this.yunOrderNo); const t = ['0101', '0102', '0902'];
const result = !t.includes(this.status) && await this.getDetectionName(this.yunOrderNo);
const {detectionKind} = result; const {detectionKind} = result;
console.log('---result', result); console.log('---result', result);
switch (this.status) { switch (this.status) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<template v-if="!needDetect"> <template v-if="!needDetect">
<div class="info-top"> <div class="info-top">
<div class="info-top-title"> <div class="info-top-title">
防癌专家提醒您尽快进行 防癌专家提醒您尽快{{insuranceInfo.detectionKind == 0 ? '进行' : '领取'}}
</div> </div>
<div class="info-top-name"> <div class="info-top-name">
{{ detectionName }} {{ detectionName }}
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</div> </div>
</div> </div>
<img <img
src="https://files.yunqueyi.com/image/gif/common/20230228173135233.gif" :src=" insuranceInfo && insuranceInfo.detectionKind == 0 ? 'https://files.yunqueyi.com/image/gif/common/20230228173135233.gif' : 'https://files.yunqueyi.com/image/gif/common/20230315102649177.gif'"
class="info-btn" class="info-btn"
@click="toAppoint" @click="toAppoint"
> >
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<div <div
class="tips-fixed" class="tips-fixed"
> >
注:请填写人根据问卷评估结果自主选择后续 注:请填写人根据问卷评估结果自主选择后续检测
</div> </div>
</div> </div>
</div> </div>
......
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
const obj = { const obj = {
0: '待完善信息', 0: '待完善信息',
1: '待采样', 1: '待采样',
2: '已采样', 2: '已领取',
21: '已送检', 21: '已送检',
25: '已接收', 25: '已接收',
27: '已上机', 27: '已上机',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册