Commit 53347024 authored by 芮自成's avatar 芮自成

专病随访问题修改

parent 3df4df10
......@@ -268,7 +268,8 @@ const defaultForm = (info = {}) => {
// 当前人群-显示type=CP00181
groupsArrays: undefined,
// 当前人群-查询
groups: undefined
groups: undefined,
diseaseTypes: undefined
}
Reflect.ownKeys(form).forEach(key => {
if (info[key] != undefined) {
......
......@@ -228,6 +228,25 @@
<template #right-icon>
<doc-icon type="doc-down" />
</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 mb-2">
<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>
</van-collapse-item>
<van-collapse-item key="12" title="转诊" name="12">
<template #right-icon>
......@@ -338,6 +357,13 @@ export default {
},
inspectList() {
return this.visitInfo.inspectList || []
},
medicateCase() {
if (this.visitInfo.medicateCase) {
return JSON.parse(this.visitInfo.medicateCase)
} else {
return []
}
}
},
methods: {
......
......@@ -240,8 +240,46 @@
<template #right-icon>
<doc-icon type="doc-down" />
</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 mb-2">
<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>
</van-collapse-item>
<van-collapse-item key="12" title="其他治疗" name="12">
<div class="py-1">家庭氧疗</div>
<div class="gray-box">
<div>每日:{{ visitInfo.otEveryday || '-' }} 小时</div>
<div>氧流量:{{ visitInfo.otFlow || '-' }} L</div>
<div>
<span>副作用:{{ visitInfo.otSideEffectName }}</span>
<span v-if="visitInfo.otSideEffect === 1">,{{ visitInfo.otSideEffectHave }}</span>
</div>
</div>
<div class="py-1">无创呼吸机使用</div>
<div class="gray-box">
<div>每日:{{ visitInfo.nippvEveryday || '-' }} 小时</div>
<div>
<span>副作用:{{ visitInfo.nippvSideEffectName }}</span>
<span v-if="visitInfo.nippvSideEffect === 1">,{{ visitInfo.nippvSideEffectHave }}</span>
</div>
</div>
</van-collapse-item>
<van-collapse-item key="12" title="转诊" name="12">
<van-collapse-item key="13" title="转诊" name="13">
<template #right-icon>
<doc-icon type="doc-down" />
</template>
......@@ -264,13 +302,13 @@
</div>
</div>
</van-collapse-item>
<van-collapse-item key="13" title="现场随访照片" name="13">
<van-collapse-item key="14" title="现场随访照片" name="14">
<template #right-icon>
<doc-icon type="doc-down" />
</template>
<ImagePreview :img-list="visitInfo.visitImageList"></ImagePreview>
</van-collapse-item>
<van-collapse-item key="14" title="下次随访日期" name="14">
<van-collapse-item key="15" title="下次随访日期" name="15">
<template #right-icon>
<doc-icon type="doc-down" />
</template>
......@@ -281,7 +319,7 @@
</div>
</div>
</van-collapse-item>
<van-collapse-item key="15" title="随访机构" name="15">
<van-collapse-item key="16" title="随访机构" name="16">
<template #right-icon>
<doc-icon type="doc-down" />
</template>
......@@ -369,6 +407,13 @@ export default {
},
inspectList() {
return this.visitInfo.inspectList || []
},
medicateCase() {
if (this.visitInfo.medicateCase) {
return JSON.parse(this.visitInfo.medicateCase)
} else {
return []
}
}
},
methods: {
......@@ -378,7 +423,7 @@ export default {
this.activeCollapse = []
} else {
let list = []
for (let i = 1; i < 16; i++) {
for (let i = 1; i < 17; i++) {
list.push(i.toString())
}
this.activeCollapse = list
......@@ -398,7 +443,7 @@ export default {
this.activeCollapse = val.slice(val.length - 1)
}
}
if (val.length === 15) {
if (val.length === 16) {
this.collapseAll = true
} else {
this.collapseAll = false
......
......@@ -267,7 +267,7 @@
</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 v-for="(item, index) in medicateCase" :key="index" class="gray-box mb-2">
<div>药物名称:{{ item.drugName }}</div>
<div>
<span>剂量:</span>
......
......@@ -228,6 +228,25 @@
<template #right-icon>
<doc-icon type="doc-down" />
</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 mb-2">
<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>
</van-collapse-item>
<van-collapse-item key="12" title="转诊" name="12">
<template #right-icon>
......@@ -322,7 +341,6 @@ export default {
{ title: '身高', key: 'signHeight', unit: 'cm' },
{ title: '体重', key: 'signWeight', unit: 'kg' },
{ title: 'BMI', key: 'signBmi', unit: 'kg/m²' },
{ title: '腰围', key: 'signWaistline', unit: 'cm' },
{ title: '心率', key: 'signHeartRate', unit: '次/分' },
{ title: '其他', key: 'signOther' }
],
......@@ -340,6 +358,13 @@ export default {
},
inspectList() {
return this.visitInfo.inspectList || []
},
medicateCase() {
if (this.visitInfo.medicateCase) {
return JSON.parse(this.visitInfo.medicateCase)
} else {
return []
}
}
},
methods: {
......
......@@ -4,42 +4,49 @@
<HypertensionForm
v-if="diseaseInfo.diseaseType === 1"
:diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="hypertensionForm">
</HypertensionForm>
<!-- 糖尿病 -->
<DiabetesForm
v-if="diseaseInfo.diseaseType === 2"
:diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="diabetesForm">
</DiabetesForm>
<!-- 冠心病 -->
<CoronaryHeartDiseaseForm
v-if="diseaseInfo.diseaseType === 3"
:diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="coronaryHeartDiseaseForm">
</CoronaryHeartDiseaseForm>
<!-- 脑卒中 -->
<StrokeForm
v-if="diseaseInfo.diseaseType === 4"
:diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="strokeForm">
</StrokeForm>
<!-- 慢阻肺 -->
<CopdForm
v-if="diseaseInfo.diseaseType === 5"
:diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="copdForm">
</CopdForm>
<!-- 慢性肾脏病 -->
<ChronicKidneyDiseaseForm
v-if="diseaseInfo.diseaseType === 6"
:diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="chronicKidneyDiseaseForm">
</ChronicKidneyDiseaseForm>
<!-- 血脂异常 -->
<DyslipidemiaForm
v-if="diseaseInfo.diseaseType === 7"
:diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="dyslipidemiaForm">
</DyslipidemiaForm>
</div>
......@@ -80,6 +87,9 @@ export default {
} else {
return 3
}
},
diseaseTypes() {
return this.baseInfo.diseaseTypes
}
},
methods: {
......
......@@ -884,6 +884,10 @@ export default {
diseaseInfo: {
type: Object,
default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
}
},
data() {
......@@ -1297,10 +1301,24 @@ export default {
symptom: 'arrToStr',
currentDiagnosis: 'arrToStr'
})
// 录入信息(日期、单位、科室、医生)默认当前
let createdInfo = {
createDate: dayjs().format('YYYY-MM-DD'),
createUnitId: this.authInfo.unitId,
createUnitName: this.authInfo.unitName,
createOfficeId: this.authInfo.officeId,
createOfficeName: this.authInfo.officeName,
createDoctorId: this.authInfo.relationId,
createDoctorName: this.authInfo.nickName
}
resolve({
...form,
// 辅助检查
inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase)
// 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
})
}).catch(e => {
......@@ -1373,6 +1391,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期
this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
},
defaultData() {
......@@ -1387,6 +1407,49 @@ export default {
// 随访医生
this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName
// 目前诊断
this.getCurrentDiagnosis()
},
// 目前诊断赋值
getCurrentDiagnosis() {
let { id } = this.$route.query
if (id) {
if (this.inData === 1) {
this.getLastTimeDiagnose()
return
}
this.store.getDict('CP00086').forEach(item => {
item.disabled = true
})
} else {
if (this.inData === 3) {
this.store.getDict('CP00086').forEach(item => {
let selected = this.form.currentDiagnosis.filter(e => e === item.value)
if (selected && selected.length) {
item.disabled = true
} else {
item.disabled = false
}
})
return
}
this.getLastTimeDiagnose()
}
},
getLastTimeDiagnose() {
this.form.currentDiagnosis = this.diseaseTypes
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)
item.disabled = true
} else {
item.disabled = false
}
})
this.form.currentDiagnosisName = list.join()
}
},
watch: {
......
......@@ -82,7 +82,7 @@
</div>
</div>
</van-popup>
<template v-if="(form.symptom || []).includes(99)">
<template v-if="(form.symptom || []).includes(9)">
<div class="label-title mt-2">其他症状</div>
<van-field
v-model="form.symptomOther"
......@@ -1240,6 +1240,10 @@ export default {
diseaseInfo: {
type: Object,
default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
}
},
data() {
......@@ -1498,6 +1502,45 @@ export default {
currentDiagnosisName: [
{ required: true, message: '请选择' }
],
otEveryday: [
{
validator: (value, rule) => {
let res = true
const regex = /^\d+$/
if (value && !(regex.test(value) && Number(value) >= 0 && Number(value) <= 24)) {
res = false
}
return res
},
message: `请输入0到24之间的整数`
}
],
otFlow: [
{
validator: (value, rule) => {
let res = true
const regex = /^\d+$/
if (value && !(regex.test(value) && Number(value) >= 0 && Number(value) <= 10)) {
res = false
}
return res
},
message: `请输入0到10之间的整数`
}
],
nippvEveryday: [
{
validator: (value, rule) => {
let res = true
const regex = /^\d+$/
if (value && !(regex.test(value) && Number(value) >= 0 && Number(value) <= 24)) {
res = false
}
return res
},
message: `请输入0到24之间的整数`
}
],
isReferral: [
{ required: true, message: '请选择' }
],
......@@ -1649,10 +1692,24 @@ export default {
currentDiagnosis: 'arrToStr',
vaccinesHistoryHave: 'arrToStr'
})
// 录入信息(日期、单位、科室、医生)默认当前
let createdInfo = {
createDate: dayjs().format('YYYY-MM-DD'),
createUnitId: this.authInfo.unitId,
createUnitName: this.authInfo.unitName,
createOfficeId: this.authInfo.officeId,
createOfficeName: this.authInfo.officeName,
createDoctorId: this.authInfo.relationId,
createDoctorName: this.authInfo.nickName
}
resolve({
...form,
// 辅助检查
inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase)
// 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
})
}).catch(e => {
......@@ -1729,6 +1786,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期
this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
},
defaultData() {
// 随访日期
......@@ -1742,6 +1801,49 @@ export default {
// 随访医生
this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName
// 目前诊断
this.getCurrentDiagnosis()
},
// 目前诊断赋值
getCurrentDiagnosis() {
let { id } = this.$route.query
if (id) {
if (this.inData === 1) {
this.getLastTimeDiagnose()
return
}
this.store.getDict('CP00086').forEach(item => {
item.disabled = true
})
} else {
if (this.inData === 3) {
this.store.getDict('CP00086').forEach(item => {
let selected = this.form.currentDiagnosis.filter(e => e === item.value)
if (selected && selected.length) {
item.disabled = true
} else {
item.disabled = false
}
})
return
}
this.getLastTimeDiagnose()
}
},
getLastTimeDiagnose() {
this.form.currentDiagnosis = this.diseaseTypes
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)
item.disabled = true
} else {
item.disabled = false
}
})
this.form.currentDiagnosisName = list.join()
}
},
watch: {
......
......@@ -888,6 +888,10 @@ export default {
diseaseInfo: {
type: Object,
default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
}
},
data() {
......@@ -1299,10 +1303,24 @@ export default {
symptom: 'arrToStr',
currentDiagnosis: 'arrToStr'
})
// 录入信息(日期、单位、科室、医生)默认当前
let createdInfo = {
createDate: dayjs().format('YYYY-MM-DD'),
createUnitId: this.authInfo.unitId,
createUnitName: this.authInfo.unitName,
createOfficeId: this.authInfo.officeId,
createOfficeName: this.authInfo.officeName,
createDoctorId: this.authInfo.relationId,
createDoctorName: this.authInfo.nickName
}
resolve({
...form,
// 辅助检查
inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase)
// 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
})
}).catch(e => {
......@@ -1375,6 +1393,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期
this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
},
defaultData() {
// 随访日期
......@@ -1388,6 +1408,49 @@ export default {
// 随访医生
this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName
// 目前诊断
this.getCurrentDiagnosis()
},
// 目前诊断赋值
getCurrentDiagnosis() {
let { id } = this.$route.query
if (id) {
if (this.inData === 1) {
this.getLastTimeDiagnose()
return
}
this.store.getDict('CP00086').forEach(item => {
item.disabled = true
})
} else {
if (this.inData === 3) {
this.store.getDict('CP00086').forEach(item => {
let selected = this.form.currentDiagnosis.filter(e => e === item.value)
if (selected && selected.length) {
item.disabled = true
} else {
item.disabled = false
}
})
return
}
this.getLastTimeDiagnose()
}
},
getLastTimeDiagnose() {
this.form.currentDiagnosis = this.diseaseTypes
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)
item.disabled = true
} else {
item.disabled = false
}
})
this.form.currentDiagnosisName = list.join()
}
},
watch: {
......
......@@ -1065,6 +1065,10 @@ export default {
diseaseInfo: {
type: Object,
default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
}
},
data() {
......@@ -1592,12 +1596,24 @@ export default {
currentDiagnosis: 'arrToStr',
auxiliaryExamination: 'arrToStr'
})
// 录入信息(日期、单位、科室、医生)默认当前
let createdInfo = {
createDate: dayjs().format('YYYY-MM-DD'),
createUnitId: this.authInfo.unitId,
createUnitName: this.authInfo.unitName,
createOfficeId: this.authInfo.officeId,
createOfficeName: this.authInfo.officeName,
createDoctorId: this.authInfo.relationId,
createDoctorName: this.authInfo.nickName
}
resolve({
...form,
// 辅助检查
inspectList: inspectList,
// 治疗方案
medicateCase: JSON.stringify(medicateCase)
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
})
}).catch(e => {
......@@ -1672,6 +1688,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期
this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
},
defaultData() {
// 随访日期
......@@ -1685,6 +1703,48 @@ export default {
// 随访医生
this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName
// 目前诊断
this.getCurrentDiagnosis()
},
// 目前诊断赋值
getCurrentDiagnosis() {
let { id } = this.$route.query
if (id) {
if (this.inData === 1) {
this.getLastTimeDiagnose()
return
}
this.store.getDict('CP00086').forEach(item => {
item.disabled = true
})
} else {
if (this.inData === 3) {
this.store.getDict('CP00086').forEach(item => {
let selected = this.form.currentDiagnosis.filter(e => e === item.value)
if (selected && selected.length) {
item.disabled = true
} else {
item.disabled = false
}
})
return
}
this.getLastTimeDiagnose()
}
},
getLastTimeDiagnose() {
this.form.currentDiagnosis = this.diseaseTypes
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)
item.disabled = true
} else {
item.disabled = false
}
})
this.form.currentDiagnosisName = list.join()
}
},
watch: {
......
......@@ -887,6 +887,10 @@ export default {
diseaseInfo: {
type: Object,
default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
}
},
data() {
......@@ -1297,10 +1301,24 @@ export default {
symptom: 'arrToStr',
currentDiagnosis: 'arrToStr'
})
// 录入信息(日期、单位、科室、医生)默认当前
let createdInfo = {
createDate: dayjs().format('YYYY-MM-DD'),
createUnitId: this.authInfo.unitId,
createUnitName: this.authInfo.unitName,
createOfficeId: this.authInfo.officeId,
createOfficeName: this.authInfo.officeName,
createDoctorId: this.authInfo.relationId,
createDoctorName: this.authInfo.nickName
}
resolve({
...form,
// 辅助检查
inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase)
// 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
})
}).catch(e => {
......@@ -1373,6 +1391,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期
this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
},
defaultData() {
......@@ -1387,6 +1407,49 @@ export default {
// 随访医生
this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName
// 目前诊断
this.getCurrentDiagnosis()
},
// 目前诊断赋值
getCurrentDiagnosis() {
let { id } = this.$route.query
if (id) {
if (this.inData === 1) {
this.getLastTimeDiagnose()
return
}
this.store.getDict('CP00086').forEach(item => {
item.disabled = true
})
} else {
if (this.inData === 3) {
this.store.getDict('CP00086').forEach(item => {
let selected = this.form.currentDiagnosis.filter(e => e === item.value)
if (selected && selected.length) {
item.disabled = true
} else {
item.disabled = false
}
})
return
}
this.getLastTimeDiagnose()
}
},
getLastTimeDiagnose() {
this.form.currentDiagnosis = this.diseaseTypes
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)
item.disabled = true
} else {
item.disabled = false
}
})
this.form.currentDiagnosisName = list.join()
}
},
watch: {
......
......@@ -962,6 +962,10 @@ export default {
diseaseInfo: {
type: Object,
default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
}
},
data() {
......@@ -1419,6 +1423,16 @@ export default {
currentDiagnosis: 'arrToStr',
auxiliaryExamination: 'arrToStr'
})
// 录入信息(日期、单位、科室、医生)默认当前
let createdInfo = {
createDate: dayjs().format('YYYY-MM-DD'),
createUnitId: this.authInfo.unitId,
createUnitName: this.authInfo.unitName,
createOfficeId: this.authInfo.officeId,
createOfficeName: this.authInfo.officeName,
createDoctorId: this.authInfo.relationId,
createDoctorName: this.authInfo.nickName
}
resolve({
...form,
......@@ -1428,7 +1442,9 @@ export default {
currentMedicateCase: JSON.stringify(currentMedicateCase),
addMedicateCase: JSON.stringify(addMedicateCase),
// 治疗方案
medicateCase: JSON.stringify(medicateCase)
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
})
}).catch(e => {
......@@ -1505,6 +1521,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期
this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
},
defaultData() {
......@@ -1519,7 +1537,51 @@ export default {
// 随访医生
this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName
// 目前诊断
this.getCurrentDiagnosis()
},
// 目前诊断赋值
getCurrentDiagnosis() {
let { id } = this.$route.query
if (id) {
if (this.inData === 1) {
this.getLastTimeDiagnose()
return
}
this.store.getDict('CP00086').forEach(item => {
item.disabled = true
})
} else {
if (this.inData === 3) {
this.store.getDict('CP00086').forEach(item => {
let selected = this.form.currentDiagnosis.filter(e => e === item.value)
if (selected && selected.length) {
item.disabled = true
} else {
item.disabled = false
}
})
return
}
this.getLastTimeDiagnose()
}
},
getLastTimeDiagnose() {
this.form.currentDiagnosis = this.diseaseTypes
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)
item.disabled = true
} else {
item.disabled = false
}
})
this.form.currentDiagnosisName = list.join()
}
},
watch: {
'form.signHeight': {
......
......@@ -887,6 +887,10 @@ export default {
diseaseInfo: {
type: Object,
default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
}
},
data() {
......@@ -1297,10 +1301,24 @@ export default {
symptom: 'arrToStr',
currentDiagnosis: 'arrToStr'
})
// 录入信息(日期、单位、科室、医生)默认当前
let createdInfo = {
createDate: dayjs().format('YYYY-MM-DD'),
createUnitId: this.authInfo.unitId,
createUnitName: this.authInfo.unitName,
createOfficeId: this.authInfo.officeId,
createOfficeName: this.authInfo.officeName,
createDoctorId: this.authInfo.relationId,
createDoctorName: this.authInfo.nickName
}
resolve({
...form,
// 辅助检查
inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase)
// 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
})
}).catch(e => {
......@@ -1373,6 +1391,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期
this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
},
defaultData() {
// 随访日期
......@@ -1386,6 +1406,49 @@ export default {
// 随访医生
this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName
// 目前诊断
this.getCurrentDiagnosis()
},
// 目前诊断赋值
getCurrentDiagnosis() {
let { id } = this.$route.query
if (id) {
if (this.inData === 1) {
this.getLastTimeDiagnose()
return
}
this.store.getDict('CP00086').forEach(item => {
item.disabled = true
})
} else {
if (this.inData === 3) {
this.store.getDict('CP00086').forEach(item => {
let selected = this.form.currentDiagnosis.filter(e => e === item.value)
if (selected && selected.length) {
item.disabled = true
} else {
item.disabled = false
}
})
return
}
this.getLastTimeDiagnose()
}
},
getLastTimeDiagnose() {
this.form.currentDiagnosis = this.diseaseTypes
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)
item.disabled = true
} else {
item.disabled = false
}
})
this.form.currentDiagnosisName = list.join()
}
},
watch: {
......
......@@ -30,12 +30,12 @@ module.exports = defineConfig({
}
},
'/chronic-admin': {
// target: 'https://beta-tumour.zmnyjk.com',
target: 'http://192.168.1.202:8900',
target: 'https://beta-tumour.zmnyjk.com',
// target: 'http://192.168.1.202:8900',
changOrigin: true,
pathRewrite: {
'^/chronic-admin': '/'
// '^/chronic-admin': '/chronic-admin'
// '^/chronic-admin': '/'
'^/chronic-admin': '/chronic-admin'
}
},
'/chronic-resident': {
......
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