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

专病随访问题修改

parent 3df4df10
...@@ -268,7 +268,8 @@ const defaultForm = (info = {}) => { ...@@ -268,7 +268,8 @@ const defaultForm = (info = {}) => {
// 当前人群-显示type=CP00181 // 当前人群-显示type=CP00181
groupsArrays: undefined, groupsArrays: undefined,
// 当前人群-查询 // 当前人群-查询
groups: undefined groups: undefined,
diseaseTypes: undefined
} }
Reflect.ownKeys(form).forEach(key => { Reflect.ownKeys(form).forEach(key => {
if (info[key] != undefined) { if (info[key] != undefined) {
......
...@@ -228,6 +228,25 @@ ...@@ -228,6 +228,25 @@
<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 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>
<van-collapse-item key="12" title="转诊" name="12"> <van-collapse-item key="12" title="转诊" name="12">
<template #right-icon> <template #right-icon>
...@@ -338,6 +357,13 @@ export default { ...@@ -338,6 +357,13 @@ export default {
}, },
inspectList() { inspectList() {
return this.visitInfo.inspectList || [] return this.visitInfo.inspectList || []
},
medicateCase() {
if (this.visitInfo.medicateCase) {
return JSON.parse(this.visitInfo.medicateCase)
} else {
return []
}
} }
}, },
methods: { methods: {
......
...@@ -240,8 +240,46 @@ ...@@ -240,8 +240,46 @@
<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 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>
<van-collapse-item key="12" title="转诊" name="12"> <van-collapse-item key="13" title="转诊" name="13">
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
...@@ -264,13 +302,13 @@ ...@@ -264,13 +302,13 @@
</div> </div>
</div> </div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="13" title="现场随访照片" name="13"> <van-collapse-item key="14" title="现场随访照片" name="14">
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
<ImagePreview :img-list="visitInfo.visitImageList"></ImagePreview> <ImagePreview :img-list="visitInfo.visitImageList"></ImagePreview>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="14" title="下次随访日期" name="14"> <van-collapse-item key="15" title="下次随访日期" name="15">
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
...@@ -281,7 +319,7 @@ ...@@ -281,7 +319,7 @@
</div> </div>
</div> </div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="15" title="随访机构" name="15"> <van-collapse-item key="16" title="随访机构" name="16">
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
...@@ -369,6 +407,13 @@ export default { ...@@ -369,6 +407,13 @@ export default {
}, },
inspectList() { inspectList() {
return this.visitInfo.inspectList || [] return this.visitInfo.inspectList || []
},
medicateCase() {
if (this.visitInfo.medicateCase) {
return JSON.parse(this.visitInfo.medicateCase)
} else {
return []
}
} }
}, },
methods: { methods: {
...@@ -378,7 +423,7 @@ export default { ...@@ -378,7 +423,7 @@ export default {
this.activeCollapse = [] this.activeCollapse = []
} else { } else {
let list = [] let list = []
for (let i = 1; i < 16; i++) { for (let i = 1; i < 17; i++) {
list.push(i.toString()) list.push(i.toString())
} }
this.activeCollapse = list this.activeCollapse = list
...@@ -398,7 +443,7 @@ export default { ...@@ -398,7 +443,7 @@ export default {
this.activeCollapse = val.slice(val.length - 1) this.activeCollapse = val.slice(val.length - 1)
} }
} }
if (val.length === 15) { if (val.length === 16) {
this.collapseAll = true this.collapseAll = true
} else { } else {
this.collapseAll = false this.collapseAll = false
......
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
</div> </div>
<template v-if="visitInfo.adjustTreat === 1"> <template v-if="visitInfo.adjustTreat === 1">
<div class="py-1">用药方案</div> <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>药物名称:{{ item.drugName }}</div>
<div> <div>
<span>剂量:</span> <span>剂量:</span>
......
...@@ -228,6 +228,25 @@ ...@@ -228,6 +228,25 @@
<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 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>
<van-collapse-item key="12" title="转诊" name="12"> <van-collapse-item key="12" title="转诊" name="12">
<template #right-icon> <template #right-icon>
...@@ -322,7 +341,6 @@ export default { ...@@ -322,7 +341,6 @@ export default {
{ title: '身高', key: 'signHeight', unit: 'cm' }, { title: '身高', key: 'signHeight', unit: 'cm' },
{ title: '体重', key: 'signWeight', unit: 'kg' }, { title: '体重', key: 'signWeight', unit: 'kg' },
{ title: 'BMI', key: 'signBmi', unit: 'kg/m²' }, { title: 'BMI', key: 'signBmi', unit: 'kg/m²' },
{ title: '腰围', key: 'signWaistline', unit: 'cm' },
{ title: '心率', key: 'signHeartRate', unit: '次/分' }, { title: '心率', key: 'signHeartRate', unit: '次/分' },
{ title: '其他', key: 'signOther' } { title: '其他', key: 'signOther' }
], ],
...@@ -340,6 +358,13 @@ export default { ...@@ -340,6 +358,13 @@ export default {
}, },
inspectList() { inspectList() {
return this.visitInfo.inspectList || [] return this.visitInfo.inspectList || []
},
medicateCase() {
if (this.visitInfo.medicateCase) {
return JSON.parse(this.visitInfo.medicateCase)
} else {
return []
}
} }
}, },
methods: { methods: {
......
...@@ -4,42 +4,49 @@ ...@@ -4,42 +4,49 @@
<HypertensionForm <HypertensionForm
v-if="diseaseInfo.diseaseType === 1" v-if="diseaseInfo.diseaseType === 1"
:diseaseInfo="diseaseInfo" :diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="hypertensionForm"> ref="hypertensionForm">
</HypertensionForm> </HypertensionForm>
<!-- 糖尿病 --> <!-- 糖尿病 -->
<DiabetesForm <DiabetesForm
v-if="diseaseInfo.diseaseType === 2" v-if="diseaseInfo.diseaseType === 2"
:diseaseInfo="diseaseInfo" :diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="diabetesForm"> ref="diabetesForm">
</DiabetesForm> </DiabetesForm>
<!-- 冠心病 --> <!-- 冠心病 -->
<CoronaryHeartDiseaseForm <CoronaryHeartDiseaseForm
v-if="diseaseInfo.diseaseType === 3" v-if="diseaseInfo.diseaseType === 3"
:diseaseInfo="diseaseInfo" :diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="coronaryHeartDiseaseForm"> ref="coronaryHeartDiseaseForm">
</CoronaryHeartDiseaseForm> </CoronaryHeartDiseaseForm>
<!-- 脑卒中 --> <!-- 脑卒中 -->
<StrokeForm <StrokeForm
v-if="diseaseInfo.diseaseType === 4" v-if="diseaseInfo.diseaseType === 4"
:diseaseInfo="diseaseInfo" :diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="strokeForm"> ref="strokeForm">
</StrokeForm> </StrokeForm>
<!-- 慢阻肺 --> <!-- 慢阻肺 -->
<CopdForm <CopdForm
v-if="diseaseInfo.diseaseType === 5" v-if="diseaseInfo.diseaseType === 5"
:diseaseInfo="diseaseInfo" :diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="copdForm"> ref="copdForm">
</CopdForm> </CopdForm>
<!-- 慢性肾脏病 --> <!-- 慢性肾脏病 -->
<ChronicKidneyDiseaseForm <ChronicKidneyDiseaseForm
v-if="diseaseInfo.diseaseType === 6" v-if="diseaseInfo.diseaseType === 6"
:diseaseInfo="diseaseInfo" :diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="chronicKidneyDiseaseForm"> ref="chronicKidneyDiseaseForm">
</ChronicKidneyDiseaseForm> </ChronicKidneyDiseaseForm>
<!-- 血脂异常 --> <!-- 血脂异常 -->
<DyslipidemiaForm <DyslipidemiaForm
v-if="diseaseInfo.diseaseType === 7" v-if="diseaseInfo.diseaseType === 7"
:diseaseInfo="diseaseInfo" :diseaseInfo="diseaseInfo"
:diseaseTypes="diseaseTypes"
ref="dyslipidemiaForm"> ref="dyslipidemiaForm">
</DyslipidemiaForm> </DyslipidemiaForm>
</div> </div>
...@@ -80,6 +87,9 @@ export default { ...@@ -80,6 +87,9 @@ export default {
} else { } else {
return 3 return 3
} }
},
diseaseTypes() {
return this.baseInfo.diseaseTypes
} }
}, },
methods: { methods: {
......
...@@ -884,6 +884,10 @@ export default { ...@@ -884,6 +884,10 @@ export default {
diseaseInfo: { diseaseInfo: {
type: Object, type: Object,
default: () => {} default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
} }
}, },
data() { data() {
...@@ -1297,10 +1301,24 @@ export default { ...@@ -1297,10 +1301,24 @@ export default {
symptom: 'arrToStr', symptom: 'arrToStr',
currentDiagnosis: '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({ resolve({
...form, ...form,
// 辅助检查
inspectList: inspectList, inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase) // 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
}) })
}).catch(e => { }).catch(e => {
...@@ -1373,6 +1391,8 @@ export default { ...@@ -1373,6 +1391,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-') this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期 // 随访日期
this.form._visitDate = this.form.visitDate.split('-') this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
}, },
defaultData() { defaultData() {
...@@ -1387,6 +1407,49 @@ export default { ...@@ -1387,6 +1407,49 @@ export default {
// 随访医生 // 随访医生
this.form.visitDoctorId = this.authInfo.relationId this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName 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: { watch: {
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</div> </div>
</div> </div>
</van-popup> </van-popup>
<template v-if="(form.symptom || []).includes(99)"> <template v-if="(form.symptom || []).includes(9)">
<div class="label-title mt-2">其他症状</div> <div class="label-title mt-2">其他症状</div>
<van-field <van-field
v-model="form.symptomOther" v-model="form.symptomOther"
...@@ -1240,6 +1240,10 @@ export default { ...@@ -1240,6 +1240,10 @@ export default {
diseaseInfo: { diseaseInfo: {
type: Object, type: Object,
default: () => {} default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
} }
}, },
data() { data() {
...@@ -1498,6 +1502,45 @@ export default { ...@@ -1498,6 +1502,45 @@ export default {
currentDiagnosisName: [ currentDiagnosisName: [
{ required: true, message: '请选择' } { 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: [ isReferral: [
{ required: true, message: '请选择' } { required: true, message: '请选择' }
], ],
...@@ -1649,10 +1692,24 @@ export default { ...@@ -1649,10 +1692,24 @@ export default {
currentDiagnosis: 'arrToStr', currentDiagnosis: 'arrToStr',
vaccinesHistoryHave: '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({ resolve({
...form, ...form,
// 辅助检查
inspectList: inspectList, inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase) // 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
}) })
}).catch(e => { }).catch(e => {
...@@ -1729,6 +1786,8 @@ export default { ...@@ -1729,6 +1786,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-') this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期 // 随访日期
this.form._visitDate = this.form.visitDate.split('-') this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
}, },
defaultData() { defaultData() {
// 随访日期 // 随访日期
...@@ -1742,6 +1801,49 @@ export default { ...@@ -1742,6 +1801,49 @@ export default {
// 随访医生 // 随访医生
this.form.visitDoctorId = this.authInfo.relationId this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName 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: { watch: {
......
...@@ -888,6 +888,10 @@ export default { ...@@ -888,6 +888,10 @@ export default {
diseaseInfo: { diseaseInfo: {
type: Object, type: Object,
default: () => {} default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
} }
}, },
data() { data() {
...@@ -1299,10 +1303,24 @@ export default { ...@@ -1299,10 +1303,24 @@ export default {
symptom: 'arrToStr', symptom: 'arrToStr',
currentDiagnosis: '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({ resolve({
...form, ...form,
// 辅助检查
inspectList: inspectList, inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase) // 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
}) })
}).catch(e => { }).catch(e => {
...@@ -1375,6 +1393,8 @@ export default { ...@@ -1375,6 +1393,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-') this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期 // 随访日期
this.form._visitDate = this.form.visitDate.split('-') this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
}, },
defaultData() { defaultData() {
// 随访日期 // 随访日期
...@@ -1388,6 +1408,49 @@ export default { ...@@ -1388,6 +1408,49 @@ export default {
// 随访医生 // 随访医生
this.form.visitDoctorId = this.authInfo.relationId this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName 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: { watch: {
......
...@@ -1065,6 +1065,10 @@ export default { ...@@ -1065,6 +1065,10 @@ export default {
diseaseInfo: { diseaseInfo: {
type: Object, type: Object,
default: () => {} default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
} }
}, },
data() { data() {
...@@ -1592,12 +1596,24 @@ export default { ...@@ -1592,12 +1596,24 @@ export default {
currentDiagnosis: 'arrToStr', currentDiagnosis: 'arrToStr',
auxiliaryExamination: '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({ resolve({
...form, ...form,
// 辅助检查 // 辅助检查
inspectList: inspectList, inspectList: inspectList,
// 治疗方案 // 治疗方案
medicateCase: JSON.stringify(medicateCase) medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
}) })
}).catch(e => { }).catch(e => {
...@@ -1672,6 +1688,8 @@ export default { ...@@ -1672,6 +1688,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-') this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期 // 随访日期
this.form._visitDate = this.form.visitDate.split('-') this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
}, },
defaultData() { defaultData() {
// 随访日期 // 随访日期
...@@ -1685,6 +1703,48 @@ export default { ...@@ -1685,6 +1703,48 @@ export default {
// 随访医生 // 随访医生
this.form.visitDoctorId = this.authInfo.relationId this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName 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: { watch: {
......
...@@ -887,6 +887,10 @@ export default { ...@@ -887,6 +887,10 @@ export default {
diseaseInfo: { diseaseInfo: {
type: Object, type: Object,
default: () => {} default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
} }
}, },
data() { data() {
...@@ -1297,10 +1301,24 @@ export default { ...@@ -1297,10 +1301,24 @@ export default {
symptom: 'arrToStr', symptom: 'arrToStr',
currentDiagnosis: '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({ resolve({
...form, ...form,
// 辅助检查
inspectList: inspectList, inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase) // 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
}) })
}).catch(e => { }).catch(e => {
...@@ -1373,6 +1391,8 @@ export default { ...@@ -1373,6 +1391,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-') this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期 // 随访日期
this.form._visitDate = this.form.visitDate.split('-') this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
}, },
defaultData() { defaultData() {
...@@ -1387,6 +1407,49 @@ export default { ...@@ -1387,6 +1407,49 @@ export default {
// 随访医生 // 随访医生
this.form.visitDoctorId = this.authInfo.relationId this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName 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: { watch: {
......
...@@ -962,6 +962,10 @@ export default { ...@@ -962,6 +962,10 @@ export default {
diseaseInfo: { diseaseInfo: {
type: Object, type: Object,
default: () => {} default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
} }
}, },
data() { data() {
...@@ -1419,6 +1423,16 @@ export default { ...@@ -1419,6 +1423,16 @@ export default {
currentDiagnosis: 'arrToStr', currentDiagnosis: 'arrToStr',
auxiliaryExamination: '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({ resolve({
...form, ...form,
...@@ -1428,7 +1442,9 @@ export default { ...@@ -1428,7 +1442,9 @@ export default {
currentMedicateCase: JSON.stringify(currentMedicateCase), currentMedicateCase: JSON.stringify(currentMedicateCase),
addMedicateCase: JSON.stringify(addMedicateCase), addMedicateCase: JSON.stringify(addMedicateCase),
// 治疗方案 // 治疗方案
medicateCase: JSON.stringify(medicateCase) medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
}) })
}).catch(e => { }).catch(e => {
...@@ -1505,6 +1521,8 @@ export default { ...@@ -1505,6 +1521,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-') this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期 // 随访日期
this.form._visitDate = this.form.visitDate.split('-') this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
}, },
defaultData() { defaultData() {
...@@ -1519,7 +1537,51 @@ export default { ...@@ -1519,7 +1537,51 @@ export default {
// 随访医生 // 随访医生
this.form.visitDoctorId = this.authInfo.relationId this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName 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: { watch: {
'form.signHeight': { 'form.signHeight': {
......
...@@ -887,6 +887,10 @@ export default { ...@@ -887,6 +887,10 @@ export default {
diseaseInfo: { diseaseInfo: {
type: Object, type: Object,
default: () => {} default: () => {}
},
diseaseTypes: {
type: Array,
default: () => []
} }
}, },
data() { data() {
...@@ -1297,10 +1301,24 @@ export default { ...@@ -1297,10 +1301,24 @@ export default {
symptom: 'arrToStr', symptom: 'arrToStr',
currentDiagnosis: '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({ resolve({
...form, ...form,
// 辅助检查
inspectList: inspectList, inspectList: inspectList,
medicateCase: JSON.stringify(medicateCase) // 治疗方案
medicateCase: JSON.stringify(medicateCase),
// 录入信息
...createdInfo
}) })
}).catch(e => { }).catch(e => {
...@@ -1373,6 +1391,8 @@ export default { ...@@ -1373,6 +1391,8 @@ export default {
this.form._nextVisitDate = this.form.nextVisitDate.split('-') this.form._nextVisitDate = this.form.nextVisitDate.split('-')
// 随访日期 // 随访日期
this.form._visitDate = this.form.visitDate.split('-') this.form._visitDate = this.form.visitDate.split('-')
// 目前诊断
this.getCurrentDiagnosis()
}, },
defaultData() { defaultData() {
// 随访日期 // 随访日期
...@@ -1386,6 +1406,49 @@ export default { ...@@ -1386,6 +1406,49 @@ export default {
// 随访医生 // 随访医生
this.form.visitDoctorId = this.authInfo.relationId this.form.visitDoctorId = this.authInfo.relationId
this.form.visitDoctorName = this.authInfo.nickName 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: { watch: {
......
...@@ -30,12 +30,12 @@ module.exports = defineConfig({ ...@@ -30,12 +30,12 @@ module.exports = defineConfig({
} }
}, },
'/chronic-admin': { '/chronic-admin': {
// target: 'https://beta-tumour.zmnyjk.com', target: 'https://beta-tumour.zmnyjk.com',
target: 'http://192.168.1.202:8900', // target: 'http://192.168.1.202:8900',
changOrigin: true, changOrigin: true,
pathRewrite: { pathRewrite: {
'^/chronic-admin': '/' // '^/chronic-admin': '/'
// '^/chronic-admin': '/chronic-admin' '^/chronic-admin': '/chronic-admin'
} }
}, },
'/chronic-resident': { '/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