|
@@ -16,12 +16,17 @@ import {
|
|
|
getPastHistory,
|
|
|
getPatientDataTree, whetherItExistsInTheDepartment
|
|
|
} from "@/api/zhu-yuan-yi-sheng/emr-patient";
|
|
|
-import {Document, Folder} from "@element-plus/icons-vue";
|
|
|
+import {
|
|
|
+ Document,
|
|
|
+ Folder
|
|
|
+} from "@element-plus/icons-vue";
|
|
|
import './emr-css.scss'
|
|
|
import {
|
|
|
canIUnlockIt,
|
|
|
- emrConfig, emrMitt,
|
|
|
- patientInfo, unlockEnum
|
|
|
+ emrConfig,
|
|
|
+ emrMitt,
|
|
|
+ patientInfo,
|
|
|
+ unlockEnum
|
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-init";
|
|
|
import {isDev} from "@/utils/public";
|
|
|
import {userInfoStore} from "@/utils/store-public";
|
|
@@ -29,7 +34,6 @@ import {getAllWards} from "@/api/zhu-yuan-yi-sheng/resident-doctor";
|
|
|
import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
import PatientEmrData from "@/components/zhu-yuan-yi-sheng/emr/emr-template/comp/PatientEmrData.vue";
|
|
|
import PatientHistoryData from "@/components/zhu-yuan-yi-sheng/emr/emr-template/comp/PatientHistoryData.vue";
|
|
|
-import useFillHeight from "@/utils/useFillHeight";
|
|
|
import CyFlex from "@/components/cy/flex/src/CyFlex.vue";
|
|
|
|
|
|
const defaultProps = {
|
|
@@ -49,8 +53,6 @@ const HospitalTemplate = defineComponent({
|
|
|
setup(props, {emit}) {
|
|
|
const inputValue = ref('')
|
|
|
const treeRef = useCompRef(ElTreeV2)
|
|
|
- const divRef = ref()
|
|
|
- const inputRef = ref()
|
|
|
|
|
|
function filterMethod(query: string, node: TreeNodeData) {
|
|
|
return node.name!.includes(query)
|
|
@@ -84,7 +86,6 @@ const HospitalTemplate = defineComponent({
|
|
|
{{
|
|
|
header: () => (
|
|
|
<ElInput
|
|
|
- ref={inputRef}
|
|
|
modelValue={inputValue.value}
|
|
|
onUpdate:modelValue={(value) => {
|
|
|
inputValue.value = value
|
|
@@ -131,9 +132,7 @@ const HospitalTemplate = defineComponent({
|
|
|
const emrSidebar = defineComponent({
|
|
|
name: 'EmrSidebar',
|
|
|
props: {
|
|
|
- patientData: {
|
|
|
- type: Object,
|
|
|
- },
|
|
|
+
|
|
|
doctorGrade: {
|
|
|
type: Number,
|
|
|
},
|
|
@@ -202,7 +201,7 @@ const emrSidebar = defineComponent({
|
|
|
|
|
|
const determineWhetherItCanBeCreated = () => {
|
|
|
// @ts-ignore
|
|
|
- if (userInfoStore.value.code === props.patientData['管床医生编码'] || props!.doctorGrade > 1) {
|
|
|
+ if (userInfoStore.value.code === patientInfo.value.referPhysician || props!.doctorGrade > 1) {
|
|
|
return true;
|
|
|
}
|
|
|
return wardList.includes(patientInfo.value.ward);
|