提交 8c778666 编写于 作者: 张敬贤's avatar 张敬贤

Merge branch 'develop' of...

Merge branch 'develop' of http://192.168.110.53/com.pica.cloud.frontend/pica-insurance into feature/zjx
...@@ -12,14 +12,6 @@ ...@@ -12,14 +12,6 @@
<link rel="dns-prefetch" href="<%= process.env.VUE_APP_SERVICE_URL %>"> <link rel="dns-prefetch" href="<%= process.env.VUE_APP_SERVICE_URL %>">
<link rel="icon" type="image/x-icon" href="<%= VUE_APP_OSS_URL %>static/img/logo.png"> <link rel="icon" type="image/x-icon" href="<%= VUE_APP_OSS_URL %>static/img/logo.png">
<title>云鹊医</title> <title>云鹊医</title>
<script type="text/javascript">
var userAgent = navigator.userAgent;
if (/miniProgram/i.test(userAgent) && /micromessenger/i.test(userAgent)) {
// 微信小程序 JS-SDK 如果不需要兼容微信小程序,则无需引用此 JS 文件。
document.write('<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"><\/script>');
}
</script>
</head> </head>
<body> <body>
<noscript> <noscript>
...@@ -37,9 +29,6 @@ ...@@ -37,9 +29,6 @@
<script src="<%= VUE_APP_OSS_URL %>static/js/vconsole-3.3.4.js"></script> <script src="<%= VUE_APP_OSS_URL %>static/js/vconsole-3.3.4.js"></script>
<script src="<%= VUE_APP_OSS_URL %>static/js/lodash-4.17.15.js"></script> <script src="<%= VUE_APP_OSS_URL %>static/js/lodash-4.17.15.js"></script>
<!-- <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> -->
<script type="text/javascript" src="https://unpkg.com/@dcloudio/uni-webview-js@0.0.3/index.js"></script>
<script> <script>
!(function(c,b,d,a){c[a]||(c[a]={});c[a].config= !(function(c,b,d,a){c[a]||(c[a]={});c[a].config=
{ {
......
...@@ -304,8 +304,6 @@ export default { ...@@ -304,8 +304,6 @@ export default {
methods: { methods: {
choose() {}, choose() {},
submit() { submit() {
console.log(wx.miniProgram);
// wx.miniProgram.navigateTo({url: '/pagesInsurance/binding-code/index'});
console.log(1122334); console.log(1122334);
uni.postMessage({ uni.postMessage({
data: { data: {
...@@ -313,7 +311,7 @@ export default { ...@@ -313,7 +311,7 @@ export default {
} }
}); });
uni.navigateTo({ uni.navigateTo({
url: '' url: '/pagesInsurance/binding-code/index'
}); });
console.log(1122334); console.log(1122334);
}, },
......
...@@ -18,9 +18,17 @@ export default { ...@@ -18,9 +18,17 @@ export default {
'0301': '/appoint-details', '0301': '/appoint-details',
'0302': '/insuranceBindCode', '0302': '/insuranceBindCode',
}, },
dectionData:{} dectionData: {},
projectEquityNo: '',
orderNo:''
}; };
}, },
mounted() {
const { projectEquityNo, orderNo } = this.$route.query;
this.projectEquityNo = projectEquityNo;
this.orderNo = orderNo;
this.getJumpPageStatus();
},
methods: { methods: {
// 目前是配置一个检测信息,可能会拓展,所以返回的是一个list // 目前是配置一个检测信息,可能会拓展,所以返回的是一个list
getDetectionName(yunOrderNo) { getDetectionName(yunOrderNo) {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
type="text" type="text"
class="code" class="code"
> >
{{ detectionData.checkName || '' }} {{ insuranceInfo.checkName || '' }}
</div> </div>
<div class="code-input-item-r"> <div class="code-input-item-r">
<div <div
...@@ -194,6 +194,7 @@ ...@@ -194,6 +194,7 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex';
import { signDetection, getProtocolContent, getProtocolName, sampleCodeValidate, detectionRecordInfo, bindingSampleCode} from '@/api/detection.js'; import { signDetection, getProtocolContent, getProtocolName, sampleCodeValidate, detectionRecordInfo, bindingSampleCode} from '@/api/detection.js';
export default { export default {
data() { data() {
...@@ -218,7 +219,6 @@ export default { ...@@ -218,7 +219,6 @@ export default {
detectionRecordId: '', detectionRecordId: '',
showProtocol: false, showProtocol: false,
agreeText: '', agreeText: '',
detectionData:{},
recordInfo: { recordInfo: {
name: '', name: '',
sex: '', sex: '',
...@@ -228,6 +228,7 @@ export default { ...@@ -228,6 +228,7 @@ export default {
}; };
}, },
computed: { computed: {
...mapGetters(['insuranceInfo', 'orderInfo']),
}, },
created() { created() {
console.log('--window._picaWechat', window._picaWechat); console.log('--window._picaWechat', window._picaWechat);
...@@ -246,10 +247,10 @@ export default { ...@@ -246,10 +247,10 @@ export default {
serviceCheckType: 1, serviceCheckType: 1,
validateIdNo: 0, validateIdNo: 0,
}; };
this.detectionData = mock; this.insuranceInfo = mock;
const { pprotocolType, detectionRecordId } = this.$route.query; const { pprotocolType, detectionRecordId } = this.$route.query;
this.getProtocolName(pprotocolType); this.getProtocolName(pprotocolType || 31);
this.getRecordInfo(detectionRecordId); this.getRecordInfo(detectionRecordId || 11077);
}, },
methods: { methods: {
clearCode() { clearCode() {
...@@ -273,14 +274,14 @@ export default { ...@@ -273,14 +274,14 @@ export default {
}); });
}, },
toggleBindingInfo() { toggleBindingInfo() {
if(!this.isCheck && this.detectionData.pprotocolType) { if(!this.isCheck && this.insuranceInfo.pprotocolType) {
this.goProtocol(); this.goProtocol();
}else{ }else{
if(this.isCheck && this.barCode) { if(this.isCheck && this.barCode) {
const o = { const o = {
projectId: this.detectionData.projectId, projectId: this.insuranceInfo.projectId,
sampleCode: this.barCode, sampleCode: this.barCode,
hospitalId:this.detectionData.hospitalId hospitalId:this.insuranceInfo.hospitalId
}; };
this.$loading.show(); this.$loading.show();
sampleCodeValidate(o).then(res => { sampleCodeValidate(o).then(res => {
...@@ -299,8 +300,8 @@ export default { ...@@ -299,8 +300,8 @@ export default {
}, },
setSignDetection() { setSignDetection() {
const obj = { const obj = {
protocolType: this.detectionData.pprotocolType, protocolType: this.insuranceInfo.pprotocolType,
patientId: 212773027 patientId: this.orderInfo.beneficiaryPatientId || 212773027
}; };
signDetection(obj).then(res => { signDetection(obj).then(res => {
if (res.code !== '000000') { if (res.code !== '000000') {
...@@ -312,8 +313,7 @@ export default { ...@@ -312,8 +313,7 @@ export default {
}, },
goProtocol() { goProtocol() {
const obj = { const obj = {
// id: this.detectionData.pprotocolType, id: this.insuranceInfo.pprotocolType,
id: 31,
}; };
getProtocolContent(obj).then(res => { getProtocolContent(obj).then(res => {
if (res.code !== '000000') { if (res.code !== '000000') {
...@@ -325,7 +325,7 @@ export default { ...@@ -325,7 +325,7 @@ export default {
}, },
getProtocolName() { getProtocolName() {
const d = { const d = {
id: this.detectionData.pprotocolType id: this.insuranceInfo.pprotocolType
}; };
getProtocolName(d).then( res => { getProtocolName(d).then( res => {
if (res.code !== '000000') { if (res.code !== '000000') {
...@@ -336,8 +336,8 @@ export default { ...@@ -336,8 +336,8 @@ export default {
}, },
subProtocol() { subProtocol() {
const obj = { const obj = {
protocolType: this.detectionData.pprotocolType, protocolType: this.insuranceInfo.pprotocolType,
patientId: 212773027 patientId: this.orderInfo.beneficiaryPatientId || 212773027
}; };
signDetection(obj).then(res => { signDetection(obj).then(res => {
if (res.code !== '000000') { if (res.code !== '000000') {
...@@ -369,7 +369,7 @@ export default { ...@@ -369,7 +369,7 @@ export default {
const obj = { const obj = {
barCode: this.barCode, barCode: this.barCode,
id: this.recordID, id: this.recordID,
prototypeId: this.detectionData.pprotocolType ? this.detectionData.pprotocolType : 0, prototypeId: this.insuranceInfo.pprotocolType ? this.insuranceInfo.pprotocolType : 0,
prototypeLogId: this.prototypeLogId ? this.prototypeLogId : 0, prototypeLogId: this.prototypeLogId ? this.prototypeLogId : 0,
}; };
bindingSampleCode(obj).then(res => { bindingSampleCode(obj).then(res => {
......
...@@ -152,19 +152,20 @@ ...@@ -152,19 +152,20 @@
</div> </div>
</div> </div>
</div> </div>
<!-- v-if="[1, 3].includes(dataDetail.status)"--> <!-- v-if="[1, 3].includes(dataDetail.status)"-->
<div <div
class="submit-container multi-sub-wrap" class="submit-container multi-sub-wrap"
> >
<div <div
class="submit-button" class="submit-button"
:class="[3].includes(dataDetail.status) && 'multi-sub-wrap'" :class="[3].includes(dataDetail.status) && 'multi-sub-wrap'"
@click="bottomBtnFun(dataDetail.status)" @click="bottomBtnFun(dataDetail.reportUrl)"
> >
{{ dataDetail.status | showBtnTextFilter }} 查看报告
</div> </div>
<!-- v-if="[3].includes(dataDetail.status)"--> <!-- v-if="[3].includes(dataDetail.status)"-->
<div <div
v-if="picaWechat == 'wechat'"
class="submit-button" class="submit-button"
> >
<wx-open-launch-weapp <wx-open-launch-weapp
...@@ -175,10 +176,13 @@ ...@@ -175,10 +176,13 @@
:extra-data="openWebAppConfig.extraData" :extra-data="openWebAppConfig.extraData"
> >
<script type="text/wxtag-template"> <script type="text/wxtag-template">
<style>.btn {position:absolute; top: 0; color: #ffffff;text-align: center;line-height: 40px; left: 0; width:100%; height: 100%;}</style> <div class="btn">{{ }}</div> <style>.btn {position:absolute; top: 0; color: #ffffff;text-align: center;line-height: 40px; left: 0; width:100%; height: 100%;}</style> <div class="btn">{{dataDetail.status | showBtnTextFilter}}</div>
</script> </script>
</wx-open-launch-weapp> </wx-open-launch-weapp>
</div> </div>
<div v-else class="submit-button" @click="getJumpToWebapp">
{{dataDetail.status | showBtnTextFilter}}
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -268,6 +272,7 @@ export default { ...@@ -268,6 +272,7 @@ export default {
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.openWebAppBtnName = n; that.openWebAppBtnName = n;
console.log(res, 'eeeeeeeeeee', this.dataDetail); console.log(res, 'eeeeeeeeeee', this.dataDetail);
} else { } else {
...@@ -313,20 +318,14 @@ export default { ...@@ -313,20 +318,14 @@ export default {
} }
}); });
}, },
// 查看报告 bottomBtnFun(u) {
seeReport() { // const p = s == 1 ? '/insuranceBindCode' : '/pdf-preview';
// window.open(this.dataDetail.reportUrl + '?response-content-type=application/pdf'); const p = '/pdf-preview';
const l =
this.dataDetail.reportUrl + '?response-content-type=application/pdf';
this.$DDObj.ddOpenLink({ url: l });
},
bottomBtnFun(s) {
const p = s == 1 ? '/insuranceBindCode' : '/pdf-preview';
this.$router.push( this.$router.push(
{ {
path: p, path: p,
query: { query: {
id: '', url: u || 'https://file.yunqueyi.com/bioHope/reports/202302/20230215165058_2axd021dy0.pdf?response-content-type=application/pdf&1676514088161',
}, },
} }
); );
......
...@@ -62,8 +62,9 @@ ...@@ -62,8 +62,9 @@
}, },
created() { created() {
const {name, url} = this.$route.query; const {name, url} = this.$route.query;
console.log('--url', url);
this.pdfname = name; this.pdfname = name;
this.pdfUrl = url || 'https://file.yunqueyi.com/bioHope/reports/202302/20230215165058_2axd021dy0.pdf?response-content-type=application/pdf&1676514088161'; this.pdfUrl = url;
}, },
mounted() { mounted() {
this._loadFile(this.pdfUrl); this._loadFile(this.pdfUrl);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册