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

add all entrance for insurance

上级 c418775e
...@@ -26,3 +26,12 @@ export const createOrder = (data) => { ...@@ -26,3 +26,12 @@ export const createOrder = (data) => {
withCredentials: true, withCredentials: true,
}); });
}; };
// tis/insurance/makeAppointmentStatus?yunOrderNo=PCX2023021608340000000709043
export const getAppointmentStatus = (yunOrderNo) => {
return request({
method: 'get',
url: `/tis/insurance/makeAppointmentStatus?yunOrderNo=${yunOrderNo}`,
withCredentials: true,
});
};
...@@ -28,16 +28,16 @@ ...@@ -28,16 +28,16 @@
<div <div
v-show="currentItem.amTimeBegin !='' && currentItem.amTimeEnd !=''" v-show="currentItem.amTimeBegin !='' && currentItem.amTimeEnd !=''"
class="text" class="text"
:class="selectTimeBucket === 'amTimeBegin' ?'selected':''" :class="selectTimeBucket === 'am' ?'selected':''"
@click="selectTimeB('amTimeBegin')" @click="selectTimeB('am')"
> >
{{ currentItem.amTimeContent }} {{ currentItem.amTimeContent }}
</div> </div>
<div <div
v-if="currentItem.pmTimeBegin !='' && currentItem.pmTimeEnd!=''" v-if="currentItem.pmTimeBegin !='' && currentItem.pmTimeEnd!=''"
class="text" class="text"
:class="selectTimeBucket === 'pmTimeBegin' ?'selected':''" :class="selectTimeBucket === 'pm' ?'selected':''"
@click="selectTimeB('pmTimeBegin')" @click="selectTimeB('pm')"
> >
{{ currentItem.pmTimeContent }} {{ currentItem.pmTimeContent }}
</div> </div>
......
...@@ -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: {detectionRecordId:this.detectionRecordId, status: this.dataDetail.status, yunOrderNo: this.yunOrderNo},
fromOriginPage:'insuranceDetectionDetail',
}; };
getDetectionDetail(this.detectionRecordId).then((res) => { getDetectionDetail(this.detectionRecordId).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册