Commit d486e2ce authored by gengchunlei's avatar gengchunlei

居民端小程序 v1.2 注释掉vconsole

parent 0aa96dcb
......@@ -7,7 +7,7 @@
<link rel='icon' href='<%= BASE_URL %>favicon.ico'>
<title><%= htmlWebpackPlugin.options.title %></title>
<!-- 3.3.4/vconsole.min.js -->
<script src='https://beta-copd-img.yiboshi.com/20241106/1730860078278931285.js'></script>
<!-- <script src='https://beta-copd-img.yiboshi.com/20241106/1730860078278931285.js'></script>-->
</head>
<body>
<noscript>
......
......@@ -2,7 +2,7 @@
<div>
<van-form ref='form'>
<div class='title'>随访信息</div>
<div v-if='showOne && firstForm.visitSituation == 1'>
<div v-if='showOne'>
<div class='no-req-label'>随访内容</div>
<van-field
v-model='form.visitContent'
......@@ -13,7 +13,7 @@
type='textarea'
/>
</div>
<div v-if='showOne && firstForm.visitSituation == 1'>
<div v-if='showOne'>
<div class='no-req-label mt-5'>处置意见</div>
<van-field
v-model='form.disposalOpinion'
......@@ -24,7 +24,7 @@
class='input-back mt-2 form-input'
/>
</div>
<div v-if='(showOne || showTwo) && firstForm.visitSituation == 1 && firstForm.isHealthGuide == 1'>
<div v-if='showTwo'>
<div class='no-req-label mt-5'>健康指导</div>
<div class='health mt-2'>
<div class='health-cell mt-2' v-for='item in form.visitHealthGuideList'>
......@@ -41,7 +41,7 @@
</div>
</div>
<div v-if='showOne && firstForm.visitSituation == 1'>
<div v-if='showOne'>
<div class='no-req-label mt-5'>上传随访记录</div>
<div class='tips'>
支持上传jpg、png、jpeg文件,大小请在10M以内
......@@ -92,7 +92,7 @@
<div v-if='imgList.length > 6' class='warn mt-2'>最多允许上传6张!</div>
</div>
<div v-if='showOne && firstForm.visitSituation == 1'>
<div v-if='showOne'>
<div class='no-req-label mt-5'>现场随访照片</div>
<div class='tips'>
支持上传jpg、png、jpeg文件,大小请在10M以内
......@@ -153,7 +153,7 @@
</div>
</van-overlay>
<div v-if='firstForm.visitSituation == 1'>
<div>
<div class='label-title mt-5'>下次随访日期</div>
<van-field
v-model='form.nextVisitDate'
......@@ -195,7 +195,7 @@ export default {
default: () => {
return {}
}
}
},
},
data() {
return {
......@@ -234,29 +234,38 @@ export default {
},
},
computed: {
//复检指导
//复检
showOne() {
const { visitWay } = this.firstForm
const { visitWayRules = [] } = this.firstForm
let res = false
if (visitWay == 5 || visitWay == 6 || visitWay == 7 || visitWay == 8) {
if (visitWayRules.includes(1)) {
res = true
}
return res
},
//微信、短信指导
//指导
showTwo() {
const { visitWay } = this.firstForm
const { visitWayRules = [] } = this.firstForm
let res = false
if (visitWay == 9 || visitWay == 11) {
if (visitWayRules.includes(2)) {
res = true
}
return res
},
//催检
//宣教
showThree() {
const { visitWay } = this.firstForm
const {visitWayRules = []} = this.firstForm
let res = false
if (visitWayRules.includes(3)) {
res = true
}
return res
},
//催检
showFour() {
const { visitWayRules = [] } = this.firstForm
let res = false
if (visitWay == 10 || visitWay == 12) {
if (visitWayRules.includes(4)) {
res = true
}
return res
......
......@@ -2,11 +2,21 @@
<div>
<van-nav-bar :title="routerDetail.id ? '修改通用随访': '新增通用随访'" left-text='' left-arrow @click-left='toBack'></van-nav-bar>
<div class='p-4 h-overflow'>
<base-info :info='info' v-show='step == 1' ref='baseInfo'
@changeVisitSituation='changeVisitSituation'></base-info>
<general-f-u-form :info='info' :first-form='firstForm' v-show='step == 2'
ref='generalFUForm'></general-f-u-form>
<common-bottom :info='info' v-show='step == 3' ref='commonBottom'></common-bottom>
<base-info :info='info'
:modeEnumList="modeEnumList"
v-show='step == 1'
ref='baseInfo'
@changeVisitSituation='changeVisitSituation'
></base-info>
<general-f-u-form :info='info'
:first-form='firstForm'
v-show='step == 2'
ref='generalFUForm'
></general-f-u-form>
<common-bottom :info='info'
v-show='step == 3'
ref='commonBottom'
></common-bottom>
</div>
<div class='pt-2 pb-2'>
<div class='px-5 grow flex flex-col justify-end' v-if='step == 1'>
......@@ -47,7 +57,73 @@ import {
} from '@/api/doctor/generalFU'
import GeneralFUForm from '@/doctor/followUp/generalFU/form/GeneralFUForm'
import CommonBottom from '@/doctor/followUp/generalFU/form/CommonBottom'
const getModeEnum = (patientInfo = {}) => {
return {
mode1: [
{
value: '1', name: `门诊`,
children: [
{value: 1, name: `复检`, disabled: false},
{value: 2, name: `指导`, disabled: false},
{value: 3, name: `宣教`, disabled: false},
{value: 4, name: `催检`, disabled: true}
]
},
{
value: '2', name: `住院`,
children: [
{value: 1, name: `复检`, disabled: false},
{value: 2, name: `指导`, disabled: false},
{value: 3, name: `宣教`, disabled: false},
{value: 4, name: `催检`, disabled: true}
]
},
{
value: '3', name: `入户`,
children: [
{value: 1, name: `复检`, disabled: false},
{value: 2, name: `指导`, disabled: false},
{value: 3, name: `宣教`, disabled: false},
{value: 4, name: `催检`, disabled: true}
],
},
{
value: '4', name: `电话`,
children: [
{value: 1, name: `复检`, disabled: false},
{value: 2, name: `指导`, disabled: false},
{value: 3, name: `宣教`, disabled: true},
{value: 4, name: `催检`, disabled: false}
],
},
{
value: '5', name: `短信`,
children: [
{value: 1, name: `复检`, disabled: true},
{value: 2, name: `指导`, disabled: false},
{value: 3, name: `宣教`, disabled: false},
{value: 4, name: `催检`, disabled: false}
],
},
{
value: '6', name: `微信`,
children: [
{value: 1, name: `复检`, disabled: true},
{value: 2, name: `指导`, disabled: false},
{value: 3, name: `宣教`, disabled: false},
{value: 4, name: `催检`, disabled: false}
],
},
],
tel:`(本人电话:${patientInfo.telephone || ''})`,
weixi: `(绑定电话:${patientInfo.weixin || '未绑定'})`,
weixinTel: patientInfo.weixin,
//是否下次随访日期必填
nextVisitDateReq: true,
//催检内容是否显示患者姓名
urgeResidentShow: true,
}
}
export default {
name: 'Index',
components: { CommonBottom, GeneralFUForm, BaseInfo },
......@@ -60,7 +136,8 @@ export default {
//第一步提交的表单
firstForm: {},
//居民信息
residentInfo: {}
residentInfo: {},
modeEnumList: getModeEnum({})
}
},
created() {
......@@ -104,7 +181,7 @@ export default {
}
this.info.diseaseType = this.routerDetail.diseaseType
}
this.modeEnumList = getModeEnum(this.info)
},
async toNext(val) {
if (val == 2) {
......
......@@ -56,7 +56,7 @@
<div class="bt-group">
<van-button round size="small" class="doc-btn-primary">详情</van-button>
<span class="mr-3"></span>
<van-button round size="small" class="doc-btn-primary">通用随访</van-button>
<van-button round size="small" class="doc-btn-primary" @click='toAddGeneral(item)'>通用随访</van-button>
<span class="mr-3"></span>
<van-button round size="small" class="doc-btn-primary" @click="onIgnore(item)">忽略</van-button>
</div>
......@@ -172,7 +172,15 @@ export default {
showToast('操作成功')
}, 800);
})
}
},
//新增通用随访
toAddGeneral(val) {
const {id, ...others} = val
this.$router.push({
path: `/doctor/followUp/generalFU/add`,
query: {...others}
})
},
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment