Browse Source

修改文字

xiaochan 2 years ago
parent
commit
2df2bc1b3e

+ 80 - 80
src/App.vue

@@ -1,11 +1,11 @@
 <template>
-    <router-view v-slot="{ Component }">
-        <keep-alive exclude="login">
-            <component :is="Component"/>
-        </keep-alive>
-    </router-view>
-    <soctet-dialog v-if="socketErrDialog"/>
-    <progress-bar/>
+  <router-view v-slot="{ Component }">
+    <keep-alive exclude="login">
+      <component :is="Component"/>
+    </keep-alive>
+  </router-view>
+  <soctet-dialog v-if="socketErrDialog"/>
+  <progress-bar/>
 </template>
 
 <script setup name="App">
@@ -22,107 +22,107 @@ const store = useStore()
 let windowSize = getWindowSize()
 store.commit('app/setWindowSize', windowSize)
 store.commit('app/setJdt', {
-    title: '数据上传',
-    isOpen: false,
-    abnormalClosing: false,
+  title: '数据上传',
+  isOpen: false,
+  abnormalClosing: false,
 })
 
 window.onresize = () => {
-    store.commit('app/setWindowSize', getWindowSize())
+  store.commit('app/setWindowSize', getWindowSize())
 }
 
 const emrChannelFunc = {
-    "firstPageOfMedicalRecord": (val) => {
-        router.push({
-            name: 'fillCaseFrontSheet',
-            query: {
-                patNo: val.inpatientNo,
-                deptCode: val.smallDept,
-            },
-        })
-    },
-    "medicalAdvice": (val) => {
-        router.push({
-            name: 'yiZhuLuRu',
-            params: {
-                inpatientNo: val.inpatientNo
-            },
-            query: {
-                pattern: 'all'
-            }
-        })
-    }
+  "firstPageOfMedicalRecord": (val) => {
+    router.push({
+      name: 'fillCaseFrontSheet',
+      query: {
+        patNo: val.inpatientNo,
+        deptCode: val.smallDept,
+      },
+    })
+  },
+  "medicalAdvice": (val) => {
+    router.push({
+      name: 'yiZhuLuRu',
+      params: {
+        inpatientNo: val.inpatientNo
+      },
+      query: {
+        pattern: 'all'
+      }
+    })
+  }
 }
 
 const createChannel = () => {
-    let homePage = new BroadcastChannel('emrChannel')
-    homePage.addEventListener('message', async (e) => {
-        if (!router.currentRoute.value.path.includes('/myEmrEditor')) {
-            await router.push('/blank')
-            let data = JSON.parse(e.data)
-            emrChannelFunc[data.name](data.data)
-        }
-    })
+  let homePage = new BroadcastChannel('emrChannel')
+  homePage.addEventListener('message', async (e) => {
+    if (!router.currentRoute.value.path.includes('/myEmrEditor')) {
+      await router.push('/blank')
+      let data = JSON.parse(e.data)
+      emrChannelFunc[data.name](data.data)
+    }
+  })
 }
 
 onMounted(() => {
 
-    createChannel()
+  createChannel()
 
-    setCallback('refreshToken', (data) => {
-        store.commit('user/tokenChange', data.token)
-    })
+  setCallback('refreshToken', (data) => {
+    store.commit('user/tokenChange', data.token)
+  })
 
-    setCallback('sidSingle', async () => {
-        await store.dispatch('user/loginOut')
-        await ElMessageBox.alert('您的账号已在其他地方登陆,如需修改密码请在个人中心中修改。', '提示', {
-            type: 'warning',
-        })
+  setCallback('sidSingle', async () => {
+    await store.dispatch('user/loginOut')
+    await ElMessageBox.alert('您的账号已在其他地方登陆,如需修改密码请在个人中心中修改。', '提示', {
+      type: 'warning',
     })
+  })
 
 
-    setCallback('criticalValue', (data) => {
-        ElMessageBox.alert(data.message, '患者危急值', {
-            type: 'error'
-        }).then(() => {
+  setCallback('criticalValue', (data) => {
+    ElMessageBox.alert(data.message, '患者危急值', {
+      type: 'error'
+    }).then(() => {
 
-        }).catch(() => {
+    }).catch(() => {
 
-        })
     })
+  })
 
-    setCallback('systemNotification', (data) => {
-        if (data.count) {
-            let newCount = store.state.app.unreadMessageCount + data.count
-            store.commit('app/setUnreadMessageCount', newCount)
-        }
-
-        if (data.refreshDelay) {
-            sleep(data.refreshDelay).then(() => {
-                location.reload();
-            })
-        }
-
-        if (data?.donTDisplay) {
-            return
-        }
-
-        ElNotification({
-            title: typeof data.title === 'undefined' ? '新消息' : data.title,
-            message: data.message,
-            dangerouslyUseHTMLString: true,
-            type: typeof data.type === 'undefined' ? 'warning' : data.type,
-            duration: 0,
-        })
+  setCallback('systemNotification', (data) => {
+    if (data.count) {
+      let newCount = store.state.app.unreadMessageCount + data.count
+      store.commit('app/setUnreadMessageCount', newCount)
+    }
+
+    if (data.refreshDelay) {
+      sleep(data.refreshDelay).then(() => {
+        location.reload();
+      })
+    }
 
+    if (data?.donTDisplay) {
+      return
+    }
+
+    ElNotification({
+      title: typeof data.title === 'undefined' ? '新消息' : data.title,
+      message: data.message,
+      dangerouslyUseHTMLString: true,
+      type: typeof data.type === 'undefined' ? 'warning' : data.type,
+      duration: 0,
     })
+
+  })
 })
 
 
 function getWindowSize() {
-    const w = window.innerWidth
-    const h = window.innerHeight - 96
-    return {w, h}
+  const w = window.innerWidth
+  const h = window.innerHeight - 96
+  return {w, h}
 }
 </script>
 

+ 2 - 2
src/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/EditInspection.vue

@@ -63,9 +63,9 @@
                                 :active-value="1"
                                 :inactive-value="0"
                                 active-color="#13ce66"
-                                active-text="急诊"
+                                active-text="自费"
                                 inactive-color="#ff4949"
-                                inactive-text="普通">
+                                inactive-text="医保">
                         </el-switch>
                     </el-form-item>
                 </el-col>

+ 2 - 2
src/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/InspectionRequisition.vue

@@ -54,9 +54,9 @@
                 :active-value="1"
                 :inactive-value="0"
                 active-color="#13ce66"
-                active-text="急诊"
+                active-text="自费"
                 inactive-color="#ff4949"
-                inactive-text="普通"
+                inactive-text="医保"
             >
             </el-switch>
           </el-form-item>