|
@@ -1,6 +1,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import { useMzEmrStoreKey, UseMzEmrStoreType } from "@/views/mz-emr/emr-v2";
|
|
|
import { ElMessageBox } from "element-plus";
|
|
|
+import { endOfVisit, print } from "@/api/mz-emr/mz-emr";
|
|
|
|
|
|
const { store, userInfo, emrMutation, mutation } = inject(
|
|
|
useMzEmrStoreKey
|
|
@@ -14,6 +15,7 @@ async function handlePrint(name: string) {
|
|
|
type: "warning",
|
|
|
}
|
|
|
);
|
|
|
+ await print(emrMutation.getId());
|
|
|
emrMutation.print(name);
|
|
|
}
|
|
|
|
|
@@ -53,6 +55,16 @@ const funs = [
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
+ {
|
|
|
+ name: "结束就诊",
|
|
|
+ fun: () => {
|
|
|
+ ElMessageBox.confirm("是否结束就诊。", "提示", {
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ endOfVisit(store.patientInfo.patientId, store.patientInfo.times);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
];
|
|
|
</script>
|
|
|
|