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

fix

上级 0ee15d9f
...@@ -92,6 +92,10 @@ export default { ...@@ -92,6 +92,10 @@ export default {
projectEquityNo: { projectEquityNo: {
type: String, type: String,
default:() => '' default:() => ''
},
externalData: {
type: Object,
default:() => null
} }
}, },
data() { data() {
...@@ -105,6 +109,15 @@ export default { ...@@ -105,6 +109,15 @@ export default {
searchValue: '', searchValue: '',
}; };
}, },
watch: {
externalData: {
handler(nv) {
console.log('externalData', nv);
this.getHospitalList(false);
},
deep:true
}
},
mounted() { mounted() {
this.getHospitalList(false); this.getHospitalList(false);
...@@ -120,9 +133,9 @@ export default { ...@@ -120,9 +133,9 @@ export default {
this.pageNum = isLoad ? this.pageNum + 1 : 1; this.pageNum = isLoad ? this.pageNum + 1 : 1;
const data = { const data = {
cityId: '', cityId: this.externalData.cityId,
countyId: '', countyId: this.externalData.countyId,
provinceId:'', provinceId:this.externalData.provinceId,
projectEquityNo:this.projectEquityNo, projectEquityNo:this.projectEquityNo,
// pageNum: this.pageNum, // pageNum: this.pageNum,
// pageSize: this.pageSize, // pageSize: this.pageSize,
...@@ -130,17 +143,21 @@ export default { ...@@ -130,17 +143,21 @@ export default {
}; };
console.log(data); console.log(data);
getHospitalList(data).then(res => { getHospitalList(data).then(res => {
console.log(res.data.list); console.log('getHospitalList', res);
if (isLoad) { if (isLoad) {
this.list = [...this.list, ...res.data.list]; this.list = [...this.list, ...res.data.data];
} else { } else {
this.list = res.data.list; this.list = res.data.data;
} }
if (res.data.list.length < this.pageSize) { if (res.data.data.length < this.pageSize) {
this.finished = true; this.finished = true;
} }
this.loading = false; this.loading = false;
const hospitalIdIndex = this.list.findIndex(ele => ele.hospitalId === this.hospitalId);
console.log('hospitalIdIndex', hospitalIdIndex);
if (this.externalData.cityId && this.externalData.countyId && this.externalData.provinceId && hospitalIdIndex == -1) {
this.$emit('clean');
}
}); });
}, },
selectItem(item) { selectItem(item) {
......
<template> <template>
<div class="insurance-detection-appoint"> <div class="insurance-detection-appoint">
<page-model
v-if="picaWechat != 'wechat'"
ref="PageModel"
:header-info="headerInfo"
/>
<div class="wrap"> <div class="wrap">
<div class="title-1"> <div class="title-1">
检测预约 检测预约
...@@ -153,11 +158,13 @@ ...@@ -153,11 +158,13 @@
</van-button> </van-button>
</div> </div>
<SelectHospital <SelectHospital
:external-data="externalData"
:project-equity-no="projectEquityNo" :project-equity-no="projectEquityNo"
:show="showselectHospital" :show="showselectHospital"
:hospital-id="hospitalId" :hospital-id="hospitalId"
@change="selectHospital" @change="selectHospital"
@close="closePopup" @close="closePopup"
@clean="cleanHospitalId"
/> />
<SelectTime <SelectTime
:hospital-id="hospitalId" :hospital-id="hospitalId"
...@@ -193,6 +200,14 @@ export default { ...@@ -193,6 +200,14 @@ export default {
}, },
data() { data() {
return { return {
picaWechat:window._picaWechat,
headerInfo: {
title: '检测服务',
isBlack: true,
backMethod: 'web',
style: 'backgroundColor:#ffffff;zIndex:100;',
background: '',
},
dectionData:{}, dectionData:{},
dectionForm: { dectionForm: {
detectName: '', detectName: '',
...@@ -235,7 +250,8 @@ export default { ...@@ -235,7 +250,8 @@ export default {
locationAreaCode: [], locationAreaCode: [],
hospitalId: '12746', hospitalId: '12746',
projectEquityNo: '', projectEquityNo: '',
yunOrderNo:'' yunOrderNo: '',
externalData:{}
}; };
}, },
computed: { computed: {
...@@ -328,6 +344,10 @@ export default { ...@@ -328,6 +344,10 @@ export default {
this.locationAreaCode = [provinceId, cityId, countyId]; this.locationAreaCode = [provinceId, cityId, countyId];
this.dectionForm.hospitalName = hospitalName; this.dectionForm.hospitalName = hospitalName;
this.hospitalId = hospitalId; this.hospitalId = hospitalId;
this.externalData = {
...this.position,
provinceId, countyId, cityId
};
}); });
}, },
// 目前是配置一个检测信息,可能会拓展,所以返回的是一个list // 目前是配置一个检测信息,可能会拓展,所以返回的是一个list
...@@ -407,15 +427,25 @@ export default { ...@@ -407,15 +427,25 @@ export default {
confirm(values) { confirm(values) {
console.log('confirm', values); console.log('confirm', values);
this.showAreaLabel = values.map(ele => ele.name).join(''); this.showAreaLabel = values.map(ele => ele.name).join('');
this.externalData.provinceId = values[0].id;
this.externalData.countyId = values[2].id;
this.externalData.cityId = values[1].id;
this.showArea = false; this.showArea = false;
}, },
selectHospital({hospitalId, hospitalName}) { selectHospital({hospitalId, hospitalName}) {
this.hospitalId = hospitalId; this.hospitalId = hospitalId;
this.dectionForm.hospitalName = hospitalName; this.dectionForm.hospitalName = hospitalName;
this.showselectHospital = false; this.showselectHospital = false;
}, },
showAreaFn() { showAreaFn() {
this.showArea = true; this.showArea = true;
},
cleanHospitalId() {
console.log('cleanHospitalId');
this.hospitalId = '';
this.dectionForm.hospitalName = '';
} }
}, },
}; };
...@@ -428,9 +458,6 @@ export default { ...@@ -428,9 +458,6 @@ export default {
overflow: auto; overflow: auto;
box-sizing: border-box; box-sizing: border-box;
color: #ffffff; color: #ffffff;
background: url('https://files.yunqueyi.com/image/png/common/20221213160647748.png')
no-repeat top left;
background-size: 100% 281px;
.bg-img { .bg-img {
width: 100%; width: 100%;
...@@ -441,6 +468,10 @@ export default { ...@@ -441,6 +468,10 @@ export default {
} }
.wrap { .wrap {
padding: 0 12px; padding: 0 12px;
overflow: auto;
background: url('https://files.yunqueyi.com/image/png/common/20221213160647748.png')
no-repeat top left;
background-size: 100% 281px;
} }
.title-1 { .title-1 {
font-size: 20px; font-size: 20px;
......
<template> <template>
<div class="insurance-reseach-detail"> <div class="insurance-reseach-detail">
<page-model
v-if="picaWechat != 'wechat'"
ref="PageModel"
:header-info="headerInfo"
/>
<div class="detail-top"> <div class="detail-top">
<div <div
class="detail-top-info" class="detail-top-info"
...@@ -126,8 +131,17 @@ import { mapActions, mapGetters } from 'vuex'; ...@@ -126,8 +131,17 @@ import { mapActions, mapGetters } from 'vuex';
export default { export default {
data() { data() {
return { return {
picaWechat:window._picaWechat,
headerInfo: {
title: '检测服务',
isBlack: true,
backMethod: 'web',
style: 'backgroundColor:#ffffff;zIndex:100;',
background: '',
},
detailInfo: {}, detailInfo: {},
yunOrderNo:'', yunOrderNo: '',
query:{},
// 状态 0=待预约,1=已预约 ,2=已出报告 4=已取消 5=已过期 // 状态 0=待预约,1=已预约 ,2=已出报告 4=已取消 5=已过期
statusMap: { statusMap: {
0: '待预约', 0: '待预约',
......
<template> <template>
<div>
<page-model
v-if="picaWechat != 'wechat'"
ref="PageModel"
:header-info="headerInfo"
/>
<div class="insuranceQuestionBack"> <div class="insuranceQuestionBack">
<div class="icon-item"> <div class="icon-item">
<img <img
...@@ -24,6 +30,7 @@ ...@@ -24,6 +30,7 @@
:is-need-wx-config="false" :is-need-wx-config="false"
/> />
</div> </div>
</div>
</template> </template>
<script> <script>
...@@ -32,6 +39,14 @@ const { VUE_APP_ENV } = process.env; ...@@ -32,6 +39,14 @@ const { VUE_APP_ENV } = process.env;
export default { export default {
data() { data() {
return { return {
picaWechat:window._picaWechat,
headerInfo: {
title: '检测服务',
isBlack: true,
backMethod: 'web',
style: 'backgroundColor:#ffffff;zIndex:100;',
background: '',
},
openWebAppConfig: { openWebAppConfig: {
content: content:
'<script' + '<script' +
...@@ -85,10 +100,9 @@ export default { ...@@ -85,10 +100,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.insuranceQuestionBack { .insuranceQuestionBack {
width: 100%; width: 100%;
height: 100vh;
background: #ffffff; background: #ffffff;
box-sizing: border-box; box-sizing: border-box;
padding: 20px 16px; padding: 0 16px;
color: #676869; color: #676869;
text-align: center; text-align: center;
.icon-item { .icon-item {
......
<template> <template>
<div class="insuranceQuestionResult-box">
<page-model
v-if="picaWechat != 'wechat'"
ref="PageModel"
:header-info="headerInfo"
/>
<div class="insuranceQuestionResult"> <div class="insuranceQuestionResult">
<div class="icon-item"> <div class="icon-item">
<img <img
...@@ -53,6 +59,7 @@ ...@@ -53,6 +59,7 @@
注:该问卷评估结果仅供填写人自行参考。 注:该问卷评估结果仅供填写人自行参考。
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
...@@ -60,6 +67,14 @@ import {getButtonStatus, getJumpPageStatus} from '@/api/question'; ...@@ -60,6 +67,14 @@ import {getButtonStatus, getJumpPageStatus} from '@/api/question';
export default { export default {
data() { data() {
return { return {
picaWechat:window._picaWechat,
headerInfo: {
title: '检测服务',
isBlack: true,
backMethod: 'web',
style: 'backgroundColor:#ffffff;zIndex:100;',
background: '',
},
needDetect: false, needDetect: false,
result: {}, result: {},
detailInfo: {}, detailInfo: {},
...@@ -137,18 +152,21 @@ export default { ...@@ -137,18 +152,21 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.insuranceQuestionResult-box{
background: #fff;
}
.insuranceQuestionResult { .insuranceQuestionResult {
width: 100%; width: 100%;
height: 100vh;
box-sizing: border-box; box-sizing: border-box;
padding: 20px 16px; padding: 0 16px;
color: #676869; color: #676869;
overflow: auto;
text-align: center; text-align: center;
.icon-item { .icon-item {
width: 50px; width: 50px;
height: 60px; height: 60px;
margin: 0 auto; margin: 0 auto;
margin-top: 45px; margin-top: 30px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -176,7 +194,7 @@ export default { ...@@ -176,7 +194,7 @@ export default {
border: 1px solid #fbe0ce; border: 1px solid #fbe0ce;
padding: 15px; padding: 15px;
text-align: center; text-align: center;
margin: 10 auto; margin: 16px auto;
} }
.fs { .fs {
font-size: 12px; font-size: 12px;
...@@ -200,7 +218,7 @@ export default { ...@@ -200,7 +218,7 @@ export default {
//position: absolute; //position: absolute;
//bottom: 120px; //bottom: 120px;
margin: 0 auto; margin: 0 auto;
margin-top: 150px; margin-top: 70px;
} }
.tips { .tips {
font-size: 13px; font-size: 13px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册