Commit e31dba42 authored by gengchunlei's avatar gengchunlei

Merge branch 'chronic-dev' of http://gitlab.yiboshi.com/nightkis1995/frontend-h5 into chronic-dev

parents 77b0ed8c fcc40b68
......@@ -66,7 +66,7 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
token = '5188896d-6c7a-4add-a1c5-37ba42fe0e68'
token = 'f1f98c99-ac8d-47db-8066-fe24a548c784'
}
}
if (token) {
......
......@@ -712,6 +712,86 @@
</van-field>
</div>
</div>
<div class="label-title mt-2" required>药物不良反应</div>
<van-field style="padding: 0">
<template #input>
<van-radio-group
v-model="form.drugsAdverse"
shape="dot"
direction="horizontal"
class="w-full doc-radio-group"
>
<van-radio
v-for="item in store.getDict('DC00069')"
:key="item.value"
:name="item.value"
label-position="left"
>
{{ item.name }}
</van-radio>
</van-radio-group>
</template>
</van-field>
<div class="bg-fa mt-2">
<div class="label-title" style="color: #262626; font-size: 14px">不良反应</div>
<van-field
v-model="form.drugsAdverseOther"
placeholder="填写具体描述哪种药物,何种不良反应,限120字"
class="card-input"
/>
</div>
<div class="label-title mt-2" required>此次随访分类</div>
<van-field style="padding: 0">
<template #input>
<van-radio-group
v-model="form.visitType"
shape="dot"
direction="horizontal"
class="w-full doc-radio-group"
>
<van-radio
v-for="item in store.getDict('CP00085')"
:key="item.value"
:name="item.value"
label-position="left"
style="width: 48%"
>
{{ item.name }}
</van-radio>
</van-radio-group>
</template>
</van-field>
<div class="label-title mt-2" required>目前诊断</div>
<van-field
v-model="form.currentDiagnosisName"
isLink
readonly
placeholder="请选择"
:rules="rules.currentDiagnosisName"
@click="showCurrentDiagnosis = true"
class="form-input"
/>
<van-popup v-model:show="showCurrentDiagnosis" position="bottom">
<div class="p-4" style="height: 100%">
<div class="flex justify-between items-center mb-4 pop-title">
<div class="greyColor" @click="showCurrentDiagnosis = false">取消</div>
<div>症状(可多选)</div>
<div class="blueColor" @click="currentDiagnosisConfirm">确定</div>
</div>
<div style="height: 80%; overflow: auto">
<CheckBtn
multiple
column-2
:options="store.getDict('CP00086')"
v-model:value="form.currentDiagnosis"
:fieldNames="{ text: 'name', value: 'value' }"
/>
</div>
</div>
</van-popup>
</van-form>
</template>
<script>
......@@ -758,6 +838,7 @@ export default {
showPaperReasons: false,
showSymptom: false,
// showAuxiliaryExamination: false
showCurrentDiagnosis: false
}
},
methods: {
......@@ -789,6 +870,17 @@ export default {
this.form.symptomName = list.join()
this.showSymptom = false
},
currentDiagnosisConfirm() {
let list = []
this.store.getDict('CP00086').forEach(item => {
let selected = this.form.currentDiagnosis.filter(e => e === item.value)
if (selected && selected.length) {
list.push(item.name)
}
})
this.form.currentDiagnosisName = list.join()
this.showCurrentDiagnosis = false
}
// auxiliaryConfirm() {
// let list = []
// this.store.getDict('CP00073').forEach(item => {
......
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