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

Merge branch 'feature/zl' into 'release'

Feature/zl

See merge request !185
...@@ -35,6 +35,7 @@ export const getDetailByYunOrderNo = async (yunOrderNo) => { ...@@ -35,6 +35,7 @@ export const getDetailByYunOrderNo = async (yunOrderNo) => {
method: 'get', method: 'get',
url: `/tis/insurance/getDetailByYunOrderNo?yunOrderNo=${yunOrderNo}`, url: `/tis/insurance/getDetailByYunOrderNo?yunOrderNo=${yunOrderNo}`,
withCredentials: true, withCredentials: true,
hasLoading:false,
}); });
}; };
export const getHospitalList = async(data) => { export const getHospitalList = async(data) => {
......
...@@ -103,6 +103,9 @@ export const detectionRecordInfo = (data) => { ...@@ -103,6 +103,9 @@ export const detectionRecordInfo = (data) => {
method: 'get', method: 'get',
url: `/trade/detection/record/record/infoV2?detectionRecordId=${data.detectionRecordId}&detectionKind=${data.detectionKind}`, url: `/trade/detection/record/record/infoV2?detectionRecordId=${data.detectionRecordId}&detectionKind=${data.detectionKind}`,
withCredentials: true, withCredentials: true,
headers: {
hasLoading:false,
},
}); });
}; };
......
...@@ -13,7 +13,6 @@ const loading = { ...@@ -13,7 +13,6 @@ const loading = {
document.body.appendChild(instance.$el); document.body.appendChild(instance.$el);
// 在Vue的原型链上注册方法,控制组件 // 在Vue的原型链上注册方法,控制组件
Vue.prototype.$loading = { Vue.prototype.$loading = {
show: (text) => { show: (text) => {
instance.show = true; instance.show = true;
......
...@@ -12,7 +12,7 @@ $http.setOptions({ ...@@ -12,7 +12,7 @@ $http.setOptions({
console.log('我重写了默认的loading1', opt); console.log('我重写了默认的loading1', opt);
const globalLoading = document.getElementById('globalLoading'); const globalLoading = document.getElementById('globalLoading');
if (!globalLoading && !noLoading) { if (!globalLoading && !noLoading) {
vueApp.$loading.show(); // vueApp.$loading.show();
} }
} }
}); });
...@@ -22,7 +22,7 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config) ...@@ -22,7 +22,7 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config)
// 新增后置钩子 // 新增后置钩子
$http.addAfterHook(response => { $http.addAfterHook(response => {
vueApp.$loading.hide(); // vueApp.$loading.hide();
if (response.data.code !== '000000') { if (response.data.code !== '000000') {
console.log('我是新增的后置钩子111', response); console.log('我是新增的后置钩子111', response);
vueApp.$toast(response.data.message ); vueApp.$toast(response.data.message );
......
...@@ -223,6 +223,7 @@ export default { ...@@ -223,6 +223,7 @@ export default {
console.log('--res', res); console.log('--res', res);
this.orgData = res.data; this.orgData = res.data;
} }
this.$loading.hide();
}); });
}, },
selectTimes(times) { selectTimes(times) {
......
...@@ -304,7 +304,6 @@ export default { ...@@ -304,7 +304,6 @@ export default {
}, },
}, },
mounted() { mounted() {
this.$loading.show(); this.$loading.show();
const { yunOrderNo, projectEquityNo } = this.$route.query; const { yunOrderNo, projectEquityNo } = this.$route.query;
this.yunOrderNo = yunOrderNo; this.yunOrderNo = yunOrderNo;
...@@ -518,7 +517,6 @@ export default { ...@@ -518,7 +517,6 @@ export default {
message: this.buttonText, message: this.buttonText,
confirmButtonColor:'#00bda5' confirmButtonColor:'#00bda5'
}); });
}); });
}, },
confirm(values) { confirm(values) {
......
...@@ -258,7 +258,6 @@ export default { ...@@ -258,7 +258,6 @@ export default {
console.log('yunOrderNo', yunOrderNo); console.log('yunOrderNo', yunOrderNo);
this.getDetailByYunOrderNo(yunOrderNo); this.getDetailByYunOrderNo(yunOrderNo);
this.getDetectionName(yunOrderNo); this.getDetectionName(yunOrderNo);
this.$loading.hide();
this.$sendBuriedData({ this.$sendBuriedData({
action: 'ACTION_WEB_AFTER', action: 'ACTION_WEB_AFTER',
component_tag: '7802855#0#0#预约详情', component_tag: '7802855#0#0#预约详情',
......
...@@ -413,6 +413,7 @@ export default { ...@@ -413,6 +413,7 @@ export default {
prototypeId: this.pprotocolType, prototypeId: this.pprotocolType,
prototypeLogId: this.prototypeLogId, prototypeLogId: this.prototypeLogId,
}; };
this.$loading.show();
console.log('--obj--', obj); console.log('--obj--', obj);
if(this.insuranceInfo.detectionKind == 1) { if(this.insuranceInfo.detectionKind == 1) {
this.quickBindingCode(obj); this.quickBindingCode(obj);
...@@ -450,6 +451,7 @@ export default { ...@@ -450,6 +451,7 @@ export default {
} }
); );
} }
this.$loading.hide();
this.$toast('提交成功'); this.$toast('提交成功');
} }
}); });
...@@ -469,6 +471,7 @@ export default { ...@@ -469,6 +471,7 @@ export default {
}, },
} }
); );
this.$loading.hide();
this.$toast('提交成功'); this.$toast('提交成功');
} }
}); });
......
...@@ -274,7 +274,6 @@ ...@@ -274,7 +274,6 @@
position: relative; position: relative;
height: 40px; height: 40px;
border-radius: 20px; border-radius: 20px;
font-weight: 700;
color: #ffffff; color: #ffffff;
font-size: 16px; font-size: 16px;
display: flex; display: flex;
...@@ -296,6 +295,19 @@ ...@@ -296,6 +295,19 @@
padding: 0px 20px; padding: 0px 20px;
min-width: 60px; min-width: 60px;
} }
.submit-button2{
position: relative;
height: 40px;
border-radius: 20px;
color: #ffffff;
font-size: 16px;
display: flex;
align-items: center;
background: #00bda5;
justify-content: center;
padding: 0px 20px;
min-width: 80%;
}
.btn-label{ .btn-label{
width: 62px; width: 62px;
height: 14px; height: 14px;
......
...@@ -220,11 +220,21 @@ ...@@ -220,11 +220,21 @@
阳性报销 阳性报销
</div> </div>
</div> </div>
<div v-else class="submit-container multi-sub-wrap">
<div
class="submit-button2"
@click="getReport()"
>
获取报告
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import { getDetectionDetailProces, getJumpToWebapp, detectionRecordInfo } from '@/api/detection'; import { getDetectionDetailProces, getJumpToWebapp, detectionRecordInfo } from '@/api/detection';
const { VUE_APP_ENV } = process.env; const { VUE_APP_ENV } = process.env;
import axios from 'axios';
import {getDetailByYunOrderNo} from '@/api/appoint';
// 0待完善信息、1待采样、2已采样、21已送检、22快递已签收、 25实验室已收样、 27已上机、 3已完成、5样本失效、 6待支付 // 0待完善信息、1待采样、2已采样、21已送检、22快递已签收、 25实验室已收样、 27已上机、 3已完成、5样本失效、 6待支付
export default { export default {
filters: { filters: {
...@@ -343,6 +353,7 @@ export default { ...@@ -343,6 +353,7 @@ export default {
} else { } else {
that.$toast(res.message); that.$toast(res.message);
} }
this.$loading.hide();
}); });
}, },
copyText(val) { copyText(val) {
...@@ -451,6 +462,36 @@ export default { ...@@ -451,6 +462,36 @@ export default {
} }
return t; return t;
}, },
getReport() {
this.$loading.show('报告生成中,请稍等...');
getDetailByYunOrderNo(this.yunOrderNo).then(res => {
console.log(res);
const {showFlagForReport} = res.data;
if(showFlagForReport == 1) {
const p = {
env: VUE_APP_ENV == 'production' ? 'prod' : 'test1',
sample_code: this.dataDetail.sampleCode,
res_type: 1
};
//
axios.post('https://project.picahealth.com/auto_set_detection_report', p)
.then(res => {
console.error('请求menu接口失败error', res);
const {errorMessage} = res.data.data;
this.$toast(errorMessage);
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);
});
},
}, },
}; };
</script> </script>
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
<div class="tips-item-dot" /> <div class="tips-item-dot" />
早期检出、早期干预、实现可逆 早期检出、早期干预、实现可逆
</div> </div>
<div class="tips-item"> <div v-if="insuranceInfo.positiveReimburse == 0 && insuranceInfo.reimburseMax > 0" class="tips-item">
<div class="tips-item-dot" /> <div class="tips-item-dot" />
检测报告阳性,最高可报销300元复查费用 检测报告阳性,最高可报销{{ (insuranceInfo.reimburseMax / 100).toFixed(0) }}元复查费用
</div> </div>
</div> </div>
<div <div
...@@ -118,7 +118,6 @@ export default { ...@@ -118,7 +118,6 @@ export default {
}, },
mounted() { mounted() {
const { query } = this.$route; const { query } = this.$route;
this.$loading.show();
this.query = query; this.query = query;
this.yunOrderNo = query.yunOrderNo; this.yunOrderNo = query.yunOrderNo;
this.getDetectionName(query.yunOrderNo); this.getDetectionName(query.yunOrderNo);
...@@ -127,7 +126,6 @@ export default { ...@@ -127,7 +126,6 @@ export default {
component_tag: '7802850#0#0#问卷结果页面', component_tag: '7802850#0#0#问卷结果页面',
web_data:{yunOrderNo: this.yunOrderNo}, web_data:{yunOrderNo: this.yunOrderNo},
}); });
this.$loading.hide();
}, },
methods: { methods: {
statusMap(status) { statusMap(status) {
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
<div class="tips-item-dot" /> <div class="tips-item-dot" />
早期检出、早期干预、实现可逆 早期检出、早期干预、实现可逆
</div> </div>
<div class="tips-item"> <div v-if="detectionDetail.positiveReimburse == 0 && detectionDetail.reimburseMax > 0" class="tips-item">
<div class="tips-item-dot" /> <div class="tips-item-dot" />
检测报告阳性,最高可报销300元复查费用 检测报告阳性,最高可报销{{ (detectionDetail.reimburseMax / 100).toFixed(0) }}元复查费用
</div> </div>
</div> </div>
<div <div
...@@ -115,6 +115,7 @@ export default { ...@@ -115,6 +115,7 @@ export default {
query: {}, query: {},
buttonStatus: false, buttonStatus: false,
buttonText:'', buttonText:'',
detectionDetail:{}
}; };
}, },
computed: { computed: {
...@@ -152,10 +153,11 @@ export default { ...@@ -152,10 +153,11 @@ export default {
getDetectionName(yunOrderNo) { getDetectionName(yunOrderNo) {
getDetectionName(yunOrderNo).then(res => { getDetectionName(yunOrderNo).then(res => {
if (res.code === '000000' && res.data) { if (res.code === '000000' && res.data) {
const dectionData = res.data[0] || {}; const d = res.data[0] || {};
console.log('dectionData.detectionName', this.insuranceInfo, dectionData); this.detectionDetail = d || {};
this.detectionName = dectionData.detectionName; console.log('dectionData.detectionName', this.insuranceInfo, d);
this.$store.dispatch('home/setInsuranceInfo', dectionData); this.detectionName = d.detectionName;
this.$store.dispatch('home/setInsuranceInfo', d);
this.$loading.hide(); this.$loading.hide();
} }
}); });
......
...@@ -35,7 +35,7 @@ module.exports = { ...@@ -35,7 +35,7 @@ module.exports = {
port: 8083, port: 8083,
proxy: { proxy: {
'/proxy': { '/proxy': {
target: 'https://test1-sc.yunqueyi.com/', target: 'https://dev-sc.yunqueyi.com/',
// target: 'https://test1-sc.yunqueyi.com/', // target: 'https://test1-sc.yunqueyi.com/',
// target: 'https://uat-sc.yunqueyi.com/', // target: 'https://uat-sc.yunqueyi.com/',
// http://10.241.65.90:3000/mock/1071/cs/route/removeUser // http://10.241.65.90:3000/mock/1071/cs/route/removeUser
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册