Commit 50af8eff authored by 芮自成's avatar 芮自成

bug修改

parent 114fc086
...@@ -185,8 +185,8 @@ ...@@ -185,8 +185,8 @@
</div> </div>
</div> </div>
<div v-for="(x, xIndex) in inspectList" :key="xIndex"> <div v-for="(x, xIndex) in inspectList" :key="xIndex">
<div style="color: #262626" :class="[xIndex === 0 ? '' : 'mt-2']">{{ x.insName }}</div> <div class="py-1">{{ x.insName }}</div>
<div class="gray-box mt-1"> <div class="gray-box">
<div v-for="(y, yIndex) in x.items" :key="yIndex"> <div v-for="(y, yIndex) in x.items" :key="yIndex">
<span>{{ y.itemName }}</span> <span>{{ y.itemName }}</span>
<span v-if="y.itemName"></span> <span v-if="y.itemName"></span>
...@@ -259,6 +259,36 @@ ...@@ -259,6 +259,36 @@
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
<div class="list">
<div class="flex justify-between py-1 border-bottom item">
<span class="shrink-0 mr-2 label">是否调整治疗方案</span>
<span class="text-end">{{ visitInfo.adjustTreatName }}</span>
</div>
</div>
<template v-if="visitInfo.adjustTreat === 1">
<div class="py-1">用药方案</div>
<div v-for="(item, index) in medicateCase" :key="index" class="gray-box">
<div>药物名称:{{ item.drugName }}</div>
<div>
<span>剂量:</span>
<span>{{ item.dose }}</span>
<span class="ml-1">{{ item.unitName || store.getDictValue('CP00081', item.unit) }}</span>
</div>
<div>频次:{{ item.frequencyName || store.getDictValue('CP00084', item.frequency) }}</div>
<div>用法:{{ item.usageName || store.getDictValue('CP00083', item.usage) }}</div>
</div>
</template>
<div class="py-1">胰岛素</div>
<div class="gray-box">
<div>
<span>胰岛素种类:{{ visitInfo.insulinTypeName }}</span>
<span v-if="visitInfo.insulinType === 99">({{ visitInfo.insulinTypeOther }})</span>
</div>
<div>
<span>用法:{{ visitInfo.insulinUsageName }}</span>
<span v-if="visitInfo.insulinUsage === 9">({{ visitInfo.insulinUsageOther }})</span>
</div>
</div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="13" title="转诊" name="13"> <van-collapse-item key="13" title="转诊" name="13">
<template #right-icon> <template #right-icon>
...@@ -392,6 +422,13 @@ export default { ...@@ -392,6 +422,13 @@ export default {
} }
}) })
return list return list
},
medicateCase() {
if (this.visitInfo.medicateCase) {
return JSON.parse(this.visitInfo.medicateCase)
} else {
return []
}
} }
}, },
methods: { methods: {
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<van-field :rules="rules.serveType" style="padding: 0" class="mb-5"> <van-field :rules="rules.serveType" style="padding: 0" class="mb-5">
<template #input> <template #input>
<van-radio-group <van-radio-group
:disabled="$route.query.id ? true : false"
v-model="form.serveType" v-model="form.serveType"
shape="dot" shape="dot"
direction="horizontal" direction="horizontal"
......
...@@ -850,7 +850,7 @@ ...@@ -850,7 +850,7 @@
</van-field> </van-field>
<van-field <van-field
v-if="form.insulinUsage === 9" v-if="form.insulinUsage === 9"
v-model="form.insulinTypeOther" v-model="form.insulinUsageOther"
placeholder="其他用法" placeholder="其他用法"
class="card-input mt-2" class="card-input mt-2"
/> />
......
...@@ -861,6 +861,7 @@ import MovementTip from '@/doctor/components/movementTip/MovementTip.vue' ...@@ -861,6 +861,7 @@ import MovementTip from '@/doctor/components/movementTip/MovementTip.vue'
import InspectV2 from '../../components/InspectV2.vue' import InspectV2 from '../../components/InspectV2.vue'
import TreatmentPlan from '../../components/TreatmentPlan.vue' import TreatmentPlan from '../../components/TreatmentPlan.vue'
import dayjs from 'dayjs'
export default { export default {
components: { CheckBtn, BloodPressurePanel, BloodPressureBt, DocImageUpload, DocUnit, DocOffice, DocOfficeDoctor, InspectV2, TreatmentPlan, MovementTip }, components: { CheckBtn, BloodPressurePanel, BloodPressureBt, DocImageUpload, DocUnit, DocOffice, DocOfficeDoctor, InspectV2, TreatmentPlan, MovementTip },
inject: ['pressureObj'], inject: ['pressureObj'],
...@@ -1176,6 +1177,11 @@ export default { ...@@ -1176,6 +1177,11 @@ export default {
showVisitDoctor: false showVisitDoctor: false
} }
}, },
computed: {
authInfo() {
return this.store.authInfo
}
},
created() { created() {
this.getInfo() this.getInfo()
}, },
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<CheckBtn <CheckBtn
clearable clearable
column-1 column-1
:options="list" :options="store.getDict('CP00053')"
v-model:value="form.visitWay" v-model:value="form.visitWay"
:fieldNames="{ text: 'name', value: 'value' }" :fieldNames="{ text: 'name', value: 'value' }"
@change="visitWayChange" @change="visitWayChange"
...@@ -34,6 +34,54 @@ ...@@ -34,6 +34,54 @@
</div> </div>
</div> </div>
</van-popup> </van-popup>
<van-field v-if="form.visitWay === 1 || form.visitWay === 4" style="padding: 0">
<template #input>
<van-radio-group
v-model="form.interviewMethod"
shape="dot"
direction="horizontal"
class="w-full doc-radio-group mt-2"
>
<van-radio
v-for="item in store.getDict('CP00054')"
:key="item.value"
:name="item.value"
label-position="left"
>
{{ item.name }}
</van-radio>
</van-radio-group>
</template>
</van-field>
<!-- <van-field
v-if="form.visitWay === 1 || form.visitWay === 4"
v-model="form.interviewMethodName"
isLink
readonly
placeholder="请选择"
@click="showInterviewMethod = true"
class="form-input mt-2"
/>
<van-popup v-model:show="showInterviewMethod" position="bottom">
<div class="p-4" style="height: 100%">
<div class="flex justify-between items-center mb-4 pop-title">
<div class="greyColor" @click="showInterviewMethod = false">取消</div>
<div>随访方式(单选)</div>
<div></div>
</div>
<div style="height: 80%; overflow: auto">
<CheckBtn
clearable
column-1
:options="store.getDict('CP00054')"
v-model:value="form.interviewMethod"
:fieldNames="{ text: 'name', value: 'value' }"
@change="interviewMethodChange"
/>
</div>
</div>
</van-popup> -->
<template v-if="form.visitWay === 5 || form.visitWay === 6"> <template v-if="form.visitWay === 5 || form.visitWay === 6">
<div class="label-title mt-2">采用纸质表格原因</div> <div class="label-title mt-2">采用纸质表格原因</div>
<van-field <van-field
...@@ -1197,32 +1245,33 @@ export default { ...@@ -1197,32 +1245,33 @@ export default {
] ]
}, },
showVisitWay: false, showVisitWay: false,
list: [ // list: [
{ // {
value: 1, // value: 1,
name: '面访(家庭)' // name: '面访(家庭)'
}, // },
{ // {
value: 2, // value: 2,
name: '面访(门诊)' // name: '面访(门诊)'
}, // },
{ // {
value: 3, // value: 3,
name: '远程视频随访' // name: '远程视频随访'
}, // },
{ // {
value: 4, // value: 4,
name: '电话随访' // name: '电话随访'
}, // },
{ // {
value: 5, // value: 5,
name: '面访先填纸质表格,后录入电子系统(家庭)' // name: '面访先填纸质表格,后录入电子系统(家庭)'
}, // },
{ // {
value: 6, // value: 6,
name: '面访先填纸质表格,后录入电子系统(门诊)' // name: '面访先填纸质表格,后录入电子系统(门诊)'
} // }
], // ],
showInterviewMethod: false,
showPaperReasons: false, showPaperReasons: false,
showSymptom: false, showSymptom: false,
showCurrentDiagnosis: false, showCurrentDiagnosis: false,
...@@ -1255,7 +1304,7 @@ export default { ...@@ -1255,7 +1304,7 @@ export default {
checkboxReject, checkboxReject,
calculateBMI, calculateBMI,
visitWayChange() { visitWayChange() {
this.list.forEach(item => { this.store.getDict(`CP00053`).forEach(item => {
if (item.value === this.form.visitWay) { if (item.value === this.form.visitWay) {
this.form.visitWayName = item.name this.form.visitWayName = item.name
} }
......
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