Browse Source

电子病历路由变化问题

xiaochan 1 year ago
parent
commit
7b53496391

+ 2 - 1
src/components/inpatient/XiangMuLuRu.vue

@@ -410,10 +410,11 @@ import {listIsBlank, stringNotBlank} from '@/utils/blank-utils'
 import Sleep from "@/utils/sleep";
 import RefundForProjectEntry from "@/components/med-tec-mod/RefundForProjectEntry";
 import XcComboGrid from "@/components/xiao-chan/combo-grid/XcComboGrid.vue";
-import {xcMessage} from "@/utils/xiaochan-element-plus";
 import {useUserStore} from "@/pinia/user-store";
 import cyRefList from "@/utils/cyRefList";
 import Dig from "@/utils/math";
+import XEUtils from 'xe-utils'
+
 
 const emit = defineEmits(['close-xmlr'])
 const userInfo = useUserStore().userInfo

+ 3 - 2
src/components/med-tec-mod/HuoQuMuBan.vue

@@ -17,7 +17,7 @@
         <el-table-column label="数量" prop="amount"></el-table-column>
         <el-table-column label="金额">
           <template #default="scope">
-            {{ (scope.row.chargeAmount * scope.row.amount).toFixed(2) }}
+            {{ XEUtils.toFixed(Dig.multiply(scope.row.chargeAmount * scope.row.amount), 2) }}
           </template>
         </el-table-column>
         <el-table-column label="编码" prop="chargeCodeMx"></el-table-column>
@@ -91,9 +91,10 @@
 import {onMounted, ref, reactive} from 'vue'
 import {getMuBan, getMuBanXinXi, shanChuMuBan} from '@/api/inpatient/xiang-mu-lu-ru'
 import {ElMessageBox, ElTable} from 'element-plus'
-import XcTable from "@/components/xiao-chan/xc-table/XcTable.vue";
 import {useUserStore} from "@/pinia/user-store";
 import useCompRef from "@/utils/useCompRef";
+import Dig from "../../utils/math";
+import XEUtils from 'xe-utils'
 
 const dialog = ref(false)
 const emit = defineEmits(['selectionFeiYong'])

+ 4 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/Home.vue

@@ -300,6 +300,10 @@ async function clickPatientNext(upper: boolean = true) {
   window.location.reload()
 }
 
+watch(() => router.currentRoute.value, () => {
+  window.location.reload()
+}, {deep: true})
+
 onMounted(async () => {
   await useUserStore().getUserInfo
   whetherKickedOut()