提交 4ee1aebd 编写于 作者: 张敬贤's avatar 张敬贤

Merge branch 'develop' of...

Merge branch 'develop' of http://192.168.110.53/com.pica.cloud.frontend/pica-insurance into feature/zjx
...@@ -224,6 +224,7 @@ export default { ...@@ -224,6 +224,7 @@ export default {
}, },
insuranceInfo: {}, insuranceInfo: {},
pprotocolType: '', pprotocolType: '',
yunOrderNo: ''
}; };
}, },
computed: { computed: {
...@@ -234,6 +235,7 @@ export default { ...@@ -234,6 +235,7 @@ export default {
if(pprotocolType && detectionRecordId && yunOrderNo) { if(pprotocolType && detectionRecordId && yunOrderNo) {
this.pprotocolType = pprotocolType; this.pprotocolType = pprotocolType;
this.detectionRecordId = detectionRecordId; this.detectionRecordId = detectionRecordId;
this.yunOrderNo = yunOrderNo;
this.getProtocolName(); this.getProtocolName();
this.getRecordInfo(detectionRecordId); this.getRecordInfo(detectionRecordId);
this.getDetectionName(yunOrderNo); this.getDetectionName(yunOrderNo);
...@@ -392,7 +394,7 @@ export default { ...@@ -392,7 +394,7 @@ export default {
{ {
path: '/insuranceBindCodeSuccess', path: '/insuranceBindCodeSuccess',
query: { query: {
projectId: this.projectId, yunOrderNo: this.yunOrderNo,
detectionRecordId: this.detectionRecordId detectionRecordId: this.detectionRecordId
}, },
} }
......
...@@ -99,12 +99,14 @@ export default { ...@@ -99,12 +99,14 @@ export default {
background: '', background: '',
}, },
dataDetail: {}, dataDetail: {},
detectionRecordId: '' detectionRecordId: '',
yunOrderNo: ''
}; };
}, },
created() { created() {
const {detectionRecordId} = this.$route.query; const {detectionRecordId, yunOrderNo} = this.$route.query;
this.detectionRecordId = detectionRecordId; this.detectionRecordId = detectionRecordId;
this.yunOrderNo = yunOrderNo;
this.init(); this.init();
}, },
mounted() { mounted() {
...@@ -125,6 +127,7 @@ export default { ...@@ -125,6 +127,7 @@ export default {
path: '/insuranceDetectionDetail', path: '/insuranceDetectionDetail',
query: { query: {
detectionRecordId: this.detectionRecordId, detectionRecordId: this.detectionRecordId,
yunOrderNo: this.yunOrderNo
}, },
}); });
}, },
......
...@@ -241,11 +241,14 @@ export default { ...@@ -241,11 +241,14 @@ export default {
path:'pagesInsurance/all-entrance/index', // 打开页面 path:'pagesInsurance/all-entrance/index', // 打开页面
extraData: JSON.stringify({}) extraData: JSON.stringify({})
}, },
openWebAppBtnName: '报告解读' openWebAppBtnName: '报告解读',
yunOrderNo: ''
}; };
}, },
created() { created() {
this.detectionRecordId = this.$route.query.detectionRecordId; const {detectionRecordId, yunOrderNo} = this.$route.query;
this.detectionRecordId = detectionRecordId;
this.yunOrderNo = yunOrderNo;
this.init(); this.init();
}, },
mounted() { mounted() {
...@@ -256,8 +259,7 @@ export default { ...@@ -256,8 +259,7 @@ export default {
const ed = { const ed = {
channelSource: 'insurance_channel', channelSource: 'insurance_channel',
targetPath: 'pagesInsurance/all-entrance/index', targetPath: 'pagesInsurance/all-entrance/index',
query: {detectionRecordId:this.detectionRecordId, status: this.dataDetail.status}, query: {yunOrderNo: this.yunOrderNo},
fromOriginPage:'insuranceDetectionDetail',
}; };
getDetectionDetail(this.detectionRecordId).then((res) => { getDetectionDetail(this.detectionRecordId).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
...@@ -266,14 +268,14 @@ export default { ...@@ -266,14 +268,14 @@ export default {
const {inquiryStatus} = res.data; const {inquiryStatus} = res.data;
let n = ''; let n = '';
if(inquiryStatus == 0) { if(inquiryStatus == 0) {
ed.targetPath = '/pages/consultation-info/consultation/index'; // ed.targetPath = '/pages/consultation-info/consultation/index';
n = '报告解读'; n = '报告解读';
}else if([4, 6].includes(inquiryStatus)) { }else if([4, 6].includes(inquiryStatus)) {
n = '查看专家建议'; n = '查看专家建议';
ed.targetPath = '/pages/health/detection-detail/index'; // ed.targetPath = '/pages/health/detection-detail/index';
}else { }else {
n = '已预约待咨询'; n = '已预约待咨询';
ed.targetPath = '/pages/consultation-im/index?initTRTC=false'; // ed.targetPath = '/pages/consultation-im/index?initTRTC=false';
} }
that.openWebAppConfig.extraData = JSON.stringify(ed); that.openWebAppConfig.extraData = JSON.stringify(ed);
that.openWebAppBtnName = n; that.openWebAppBtnName = n;
...@@ -322,7 +324,7 @@ export default { ...@@ -322,7 +324,7 @@ export default {
if(this.picaWechat == 'wechat') { if(this.picaWechat == 'wechat') {
return false; return false;
} }
const p = {params:{path:'pagesInsurance/all-entrance/index', query:{channelSource:'insurance_channel', detectionRecordId:this.detectionRecordId, status: this.dataDetail.status }}, type: 2}; const p = {params:{path:'pagesInsurance/all-entrance/index', query:`yunOrderNo=${this.yunOrderNo}&channelSource=insurance_channel`}, type: 2};
getJumpToWebapp(p).then(res => { getJumpToWebapp(p).then(res => {
console.log('--res', res); console.log('--res', res);
if(res.data) { if(res.data) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册