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

Merge branch 'feature/zl' into 'release'

change btn

See merge request !187
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
阳性报销 阳性报销
</div> </div>
</div> </div>
<div v-else class="submit-container multi-sub-wrap"> <div v-if="showFlagForReport" class="submit-container multi-sub-wrap">
<div <div
class="submit-button2" class="submit-button2"
@click="getReport()" @click="getReport()"
...@@ -293,7 +293,8 @@ export default { ...@@ -293,7 +293,8 @@ export default {
}, },
openWebAppBtnName: '报告解读', openWebAppBtnName: '报告解读',
yunOrderNo: '', yunOrderNo: '',
action_code: '' action_code: '',
showFlagForReport: false
}; };
}, },
created() { created() {
...@@ -355,6 +356,11 @@ export default { ...@@ -355,6 +356,11 @@ export default {
} }
this.$loading.hide(); this.$loading.hide();
}); });
getDetailByYunOrderNo(this.yunOrderNo).then(res => {
console.log(res);
const {showFlagForReport} = res.data;
this.showFlagForReport = showFlagForReport;
});
}, },
copyText(val) { copyText(val) {
const input = document.createElement('input'); const input = document.createElement('input');
...@@ -464,32 +470,22 @@ export default { ...@@ -464,32 +470,22 @@ export default {
}, },
getReport() { getReport() {
this.$loading.show('报告生成中,请稍等...'); this.$loading.show('报告生成中,请稍等...');
getDetailByYunOrderNo(this.yunOrderNo).then(res => { const p = {
console.log(res); env: VUE_APP_ENV == 'production' ? 'prod' : 'test1',
const {showFlagForReport} = res.data; sample_code: this.dataDetail.sampleCode,
if(showFlagForReport == 1) { res_type: 1
const p = { };
env: VUE_APP_ENV == 'production' ? 'prod' : 'test1', axios.post('https://project.picahealth.com/auto_set_detection_report', p)
sample_code: this.dataDetail.sampleCode, .then(res => {
res_type: 1 console.error('请求menu接口失败error', res);
}; const {errorMessage} = res.data.data;
// this.$toast(errorMessage);
axios.post('https://project.picahealth.com/auto_set_detection_report', p) this.init();
.then(res => { }).catch(error => {
console.error('请求menu接口失败error', res); console.error('请求menu接口失败error', error);
const {errorMessage} = res.data.data; const {errorMessage} = error.data.data;
this.$toast(errorMessage); this.$toast(errorMessage);
this.init(); this.init();
}).catch(error => {
console.error('请求menu接口失败error', error);
const {errorMessage} = error.data.data;
this.$toast(errorMessage);
this.init();
});
}else {
this.$loading.hide();
}
console.log('--showFlagForReport', showFlagForReport);
}); });
}, },
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册