|
@@ -71,7 +71,6 @@
|
|
|
|
|
|
<script setup name='PatientList'>
|
|
|
import {computed, onMounted, ref} from "vue";
|
|
|
-import {getWardsApi} from "@/api/login";
|
|
|
import {getOverView} from "@/api/inpatient/patient";
|
|
|
import {allWardsVisible} from "@/utils/permission";
|
|
|
import XcCheckbox from "@/components/xiao-chan/checkbox/XcCheckbox";
|
|
@@ -80,6 +79,7 @@ import {getMyPatient, saveTheThirdLevelDoctor} from "@/api/zhu-yuan-yi-sheng/yi-
|
|
|
import {clickOnThePatient, huanZheXinXi} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
|
|
|
import XcDialogV2 from "@/components/xiao-chan/dialog/XcDialogV2.vue";
|
|
|
import SelectStaffCode from "@/components/SelectStaffCode.vue";
|
|
|
+import {getAllWards} from "@/api/zhu-yuan-yi-sheng/resident-doctor";
|
|
|
|
|
|
const myPatient = ref(false)
|
|
|
const wardsClearable = allWardsVisible()
|
|
@@ -139,7 +139,7 @@ const submitToTheThirdLevelDoctor = () => {
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
- getWardsApi().then((res) => {
|
|
|
+ getAllWards().then((res) => {
|
|
|
if (res.length > 0) {
|
|
|
allWards.value = res
|
|
|
currentWard.value = wardsClearable ? '' : res[0].code
|