Prechádzať zdrojové kódy

移除不必要的内容

lighter 3 rokov pred
rodič
commit
1b3b22ce8d

+ 27 - 35
src/api/case-front-sheet/index.js

@@ -1,17 +1,17 @@
-import request from '../../utils/request'
+import request from '../../utils/request';
 
 export function getAllDictionary() {
   return request({
     url: '/caseFrontSheet/getAllDictionary',
     method: 'get',
-  })
+  });
 }
 
 export function getUserWards() {
   return request({
     url: '/caseFrontSheet/getUserWards',
     method: 'get',
-  })
+  });
 }
 
 export function getPatientOverview(ward) {
@@ -19,7 +19,7 @@ export function getPatientOverview(ward) {
     url: '/caseFrontSheet/getPatientOverview',
     method: 'get',
     params: { ward },
-  })
+  });
 }
 
 export function getSheetInfo(data) {
@@ -27,7 +27,7 @@ export function getSheetInfo(data) {
     url: '/caseFrontSheet/getSheetInfo',
     method: 'post',
     data,
-  })
+  });
 }
 
 export function sheetSearch(data) {
@@ -35,7 +35,7 @@ export function sheetSearch(data) {
     url: '/sheetSearch/execute',
     method: 'post',
     data,
-  })
+  });
 }
 
 export function executeSaveVerify(data) {
@@ -43,7 +43,7 @@ export function executeSaveVerify(data) {
     url: '/caseFrontSheet/saveVerify',
     method: 'post',
     data: data,
-  })
+  });
 }
 
 export function executePrintVerify(data) {
@@ -51,7 +51,7 @@ export function executePrintVerify(data) {
     url: '/caseFrontSheet/printVerify',
     method: 'post',
     data: data,
-  })
+  });
 }
 
 export function fetchOutPatients(data) {
@@ -59,7 +59,7 @@ export function fetchOutPatients(data) {
     url: '/caseFrontSheet/outPatients',
     method: 'post',
     data: data,
-  })
+  });
 }
 
 export function fetchSsfz(code, bah, times) {
@@ -67,7 +67,7 @@ export function fetchSsfz(code, bah, times) {
     url: '/caseFrontSheet/fetchSsfz',
     method: 'get',
     params: { code, bah, times },
-  })
+  });
 }
 
 export function increaseDiagWeight(code) {
@@ -75,7 +75,7 @@ export function increaseDiagWeight(code) {
     url: '/caseFrontSheet/increaseDiagWeight',
     method: 'get',
     params: { code },
-  })
+  });
 }
 
 export function getYbDiags(bah, times) {
@@ -83,7 +83,7 @@ export function getYbDiags(bah, times) {
     url: '/caseFrontSheet/getYbDiags',
     method: 'get',
     params: { bah, times },
-  })
+  });
 }
 
 export function doSaveYbDiags(data) {
@@ -91,7 +91,7 @@ export function doSaveYbDiags(data) {
     url: '/caseFrontSheet/saveYbDiags',
     method: 'post',
     data: data,
-  })
+  });
 }
 
 export function signApply(data) {
@@ -99,14 +99,14 @@ export function signApply(data) {
     url: '/caseFrontSheet/signApply',
     method: 'post',
     data: data,
-  })
+  });
 }
 
 export function getAllWards() {
   return request({
     url: '/caseFrontSheet/getAllWards',
     method: 'get',
-  })
+  });
 }
 
 export function basOutPatients(data) {
@@ -114,7 +114,7 @@ export function basOutPatients(data) {
     url: '/caseFrontSheet/basOutPatients',
     method: 'post',
     data: data,
-  })
+  });
 }
 
 export function executeUnArchiveBa(data) {
@@ -122,15 +122,7 @@ export function executeUnArchiveBa(data) {
     url: '/caseFrontSheet/unArchiveBa',
     method: 'post',
     data: data,
-  })
-}
-
-export function executeConfirmPrint(data) {
-  return request({
-    url: '/caseFrontSheet/confirmCopyPrint',
-    method: 'post',
-    data: data,
-  })
+  });
 }
 
 export function executeAdvanceSearch(data) {
@@ -138,7 +130,7 @@ export function executeAdvanceSearch(data) {
     url: '/caseFrontSheet/advanceSearch',
     method: 'post',
     data: data,
-  })
+  });
 }
 
 export function analyzeDismissCount(data) {
@@ -146,14 +138,14 @@ export function analyzeDismissCount(data) {
     url: '/caseFrontSheet/analyzeDismissCount',
     method: 'post',
     data,
-  })
+  });
 }
 
 export function gethuiZhenLeiBie() {
   return request({
     url: '/huiZhenShenQing/huiZhenLeiBie',
     method: 'get',
-  })
+  });
 }
 
 export function queryDept(code) {
@@ -161,7 +153,7 @@ export function queryDept(code) {
     url: '/huiZhenShenQing/queryDept',
     method: 'get',
     params: { code },
-  })
+  });
 }
 
 export function submitHuiZhenShenQing(data) {
@@ -169,7 +161,7 @@ export function submitHuiZhenShenQing(data) {
     url: '/huiZhenShenQing/submitHuiZhenShenQing',
     method: 'post',
     data,
-  })
+  });
 }
 
 export function chaKanHuiZhenShenQing(inpatientNo, admissTimes) {
@@ -177,7 +169,7 @@ export function chaKanHuiZhenShenQing(inpatientNo, admissTimes) {
     url: '/huiZhenShenQing/chaKanHuiZhenShenQing',
     method: 'get',
     params: { inpatientNo, admissTimes },
-  })
+  });
 }
 
 export function shanChuHuiZhenShenQing(inpatientNo, admissTimes, actOrderNo, reqTimes) {
@@ -185,7 +177,7 @@ export function shanChuHuiZhenShenQing(inpatientNo, admissTimes, actOrderNo, req
     url: '/huiZhenShenQing/shanChuHuiZhenShenQing',
     method: 'get',
     params: { inpatientNo, admissTimes, actOrderNo, reqTimes },
-  })
+  });
 }
 
 export function pingJieZhenDuan(inpatientNo, admissTimes) {
@@ -193,7 +185,7 @@ export function pingJieZhenDuan(inpatientNo, admissTimes) {
     url: '/huiZhenShenQing/pingJieZhenDuan',
     method: 'get',
     params: { inpatientNo, admissTimes },
-  })
+  });
 }
 
 export function huiZhenYiSheng(deptCode, hzType) {
@@ -201,7 +193,7 @@ export function huiZhenYiSheng(deptCode, hzType) {
     url: '/huiZhenShenQing/huiZhenYiSheng',
     method: 'get',
     params: { deptCode, hzType },
-  })
+  });
 }
 
 export function huoQuHuanZheZhuYaoZhenDuan(patNo, times, flag) {
@@ -209,5 +201,5 @@ export function huoQuHuanZheZhuYaoZhenDuan(patNo, times, flag) {
     url: '/huiZhenShenQing/huoQuHuanZheZhuYaoZhenDuan',
     method: 'get',
     params: { patNo, times, flag },
-  })
+  });
 }

+ 38 - 38
src/views/dashboard/index.vue

@@ -42,71 +42,71 @@
 </template>
 
 <script setup>
-import { computed, onActivated, onMounted, ref, watch } from 'vue'
-import { useStore } from 'vuex'
-import { selectSystemMessages } from '../../api/messages/index'
-import { formatDate } from '../../utils/date'
-import { getUserInfo } from '@/api/settings/user-settings'
-import { genTextPortrait } from '@/utils/portrait'
-import { isInpatientStaff } from '@/utils/permission'
-import { selectInpatientBriefs } from '../../api/dashboard/index'
-import MyClock from '@/components/MyClock.vue'
-import Inpatient from '@/components/dashboard/Inpatient.vue'
+import { computed, onActivated, onMounted, ref, watch } from 'vue';
+import { useStore } from 'vuex';
+import { selectSystemMessages } from '../../api/messages/index';
+import { formatDate } from '../../utils/date';
+import { getUserInfo } from '@/api/settings/user-settings';
+import { genTextPortrait } from '@/utils/portrait';
+import { isInpatientStaff } from '@/utils/permission';
+import { selectInpatientBriefs } from '../../api/dashboard/index';
+import MyClock from '@/components/MyClock.vue';
+import Inpatient from '@/components/dashboard/Inpatient.vue';
 
-const store = useStore()
+const store = useStore();
 const token = computed(() => {
-  return store.state.user.token
-})
+  return store.state.user.token;
+});
 watch(
   () => token.value,
   () => {
     setTimeout(() => {
-      location.reload()
-    }, 100)
+      location.reload();
+    }, 100);
   }
-)
+);
 
-const messages = ref([])
+const messages = ref([]);
 const fetchMoreMessages = () => {
-  let lastdate = 'latest'
+  let lastdate = 'latest';
   if (messages.value.length > 0) {
-    lastdate = formatDate(messages.value[0].simpledate)
+    lastdate = formatDate(messages.value[0].simpledate);
   }
   selectSystemMessages(lastdate).then((res) => {
     res.forEach((item) => {
-      messages.value.unshift(item)
-    })
-  })
-}
+      messages.value.unshift(item);
+    });
+  });
+};
 
-const userInfo = ref({})
+const userInfo = ref({});
 const errorHandler = () => {
-  return true
-}
+  return true;
+};
 const makeTextPortrait = () => {
-  return genTextPortrait(userInfo.value.name)
-}
+  return genTextPortrait(userInfo.value.name);
+};
 
 onActivated(() => {
   setTimeout(() => {
     selectSystemMessages('latest').then((res) => {
-      messages.value = res
-    })
-  }, 500)
-})
+      messages.value = res;
+    });
+  }, 500);
+});
 
-const briefs = ref([])
+const briefs = ref([]);
 
 onMounted(() => {
   getUserInfo().then((res) => {
-    userInfo.value = res
+    userInfo.value = res;
     if (isInpatientStaff()) {
       selectInpatientBriefs(res.deptCode).then((list) => {
-        briefs.value = list
-      })
+        briefs.value = list;
+      });
     }
-  })
-})
+  });
+});
 </script>
 
 <style lang="scss" scoped>

+ 204 - 238
src/views/hospitalization/case-front-sheet/AllCaseFrontSheet.vue

@@ -37,7 +37,6 @@
             <el-dropdown-item icon="el-icon-printer" command="exportLateData">导出迟交病案</el-dropdown-item>
             <el-dropdown-item icon="el-icon-printer" command="print1" divided>打印正面</el-dropdown-item>
             <el-dropdown-item icon="el-icon-printer" command="print2">打印反面</el-dropdown-item>
-            <el-dropdown-item icon="el-icon-printer" command="confirmPrint">确认已打印</el-dropdown-item>
           </el-dropdown-menu>
         </template>
       </el-dropdown>
@@ -214,14 +213,13 @@
 </template>
 
 <script setup name="AllCaseFrontSheet">
-import { yesOrNo, haveOrNot, searchMethods, autopsies } from './common'
-import { computed, onActivated, onMounted, reactive, ref, watchEffect } from 'vue'
-import store from '@/store'
-import { operations, frontSheetMedTypes } from '@/data/index'
+import { yesOrNo, haveOrNot, searchMethods, autopsies } from './common';
+import { computed, onActivated, onMounted, reactive, ref, watchEffect } from 'vue';
+import store from '@/store';
+import { operations, frontSheetMedTypes } from '@/data/index';
 import {
   basOutPatients,
   executeAdvanceSearch,
-  executeConfirmPrint,
   executePrintVerify,
   executeSaveVerify,
   executeUnArchiveBa,
@@ -230,43 +228,43 @@ import {
   getSheetInfo,
   sheetSearch,
   analyzeDismissCount,
-} from '@/api/case-front-sheet'
-import maleIcon from '@/assets/male-icon.png'
-import femaleIcon from '@/assets/female-icon.png'
-import { ElMessage, ElMessageBox } from 'element-plus'
-import { shortcuts } from '@/data/shortcuts'
-import { formatDate, getOneMonthOffset } from '@/utils/date'
-import { initLodop, getLodop } from '@/utils/c-lodop'
-import { formatMonth } from '@/utils/date'
-import HeadPage from '../../../components/inpatient/frontsheet-printpage/HeadPage.vue'
-import TailPage from '../../../components/inpatient/frontsheet-printpage/TailPage.vue'
-import { Export } from '../../../utils/ExportExcel'
+} from '@/api/case-front-sheet';
+import maleIcon from '@/assets/male-icon.png';
+import femaleIcon from '@/assets/female-icon.png';
+import { ElMessage, ElMessageBox } from 'element-plus';
+import { shortcuts } from '@/data/shortcuts';
+import { formatDate, getOneMonthOffset } from '@/utils/date';
+import { initLodop, getLodop } from '@/utils/c-lodop';
+import { formatMonth } from '@/utils/date';
+import HeadPage from '../../../components/inpatient/frontsheet-printpage/HeadPage.vue';
+import TailPage from '../../../components/inpatient/frontsheet-printpage/TailPage.vue';
+import { Export } from '../../../utils/ExportExcel';
 
 const cdStyle = computed(() => {
   return {
     position: 'absolute',
     top: '77px',
     left: '590px',
-  }
-})
-const currentPage = $ref(1)
+  };
+});
+const currentPage = $ref(1);
 const handleCurrentPageChange = (val) => {
-  currentPage = val
-}
-const userWards = $ref([])
-const windowSize = store.state.app.windowSize
-const tableHeight = windowSize.h - 75
-const overview = $ref([])
+  currentPage = val;
+};
+const userWards = $ref([]);
+const windowSize = store.state.app.windowSize;
+const tableHeight = windowSize.h - 75;
+const overview = $ref([]);
 const sheet = $ref({
   disdiagList: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
   surgeryList: [{}, {}, {}, {}, {}],
-})
+});
 const mainInfo = {
   height: windowSize.h - 45 + 'px',
   padding: '0 20px',
   overflowY: 'scroll',
-}
-const dics = $ref({})
+};
+const dics = $ref({});
 const overviewParam = reactive({
   ward: '',
   start: '',
@@ -274,61 +272,61 @@ const overviewParam = reactive({
   fileStatus: '0',
   lateFlag: '3',
   bah: '',
-})
-const cdPercentage = $ref('')
-const isLateDataMode = $ref(false)
+});
+const cdPercentage = $ref('');
+const isLateDataMode = $ref(false);
 const searchPatient = () => {
-  overviewParam.start = formatDate(dateRange[0])
-  overviewParam.end = formatDate(dateRange[1])
+  overviewParam.start = formatDate(dateRange[0]);
+  overviewParam.end = formatDate(dateRange[1]);
   basOutPatients(overviewParam).then((res) => {
-    isLateDataMode = overviewParam.lateFlag === '1'
-    cdPercentage = res.cdPercentage
-    overview = res.list
+    isLateDataMode = overviewParam.lateFlag === '1';
+    cdPercentage = res.cdPercentage;
+    overview = res.list;
     if (res.list.length === 1) {
-      fetchSheetInfo(res.list[0])
+      fetchSheetInfo(res.list[0]);
     }
-  })
-}
+  });
+};
 
-const dateRange = $ref([])
+const dateRange = $ref([]);
 
 const fetchSheetInfo = (row) => {
   if (row.bah !== sheet.bah || row.times !== sheet.admissTimes) {
-    forceVerifies = []
-    adviceVerifies = []
+    forceVerifies = [];
+    adviceVerifies = [];
   }
-  row.inOutFlag = 2
+  row.inOutFlag = 2;
   getSheetInfo(row).then((res) => {
-    sheet = res
-  })
-}
+    sheet = res;
+  });
+};
 
-const showSearch = $ref(false)
-const insertDiag = $ref(false)
+const showSearch = $ref(false);
+const insertDiag = $ref(false);
 watchEffect(() => {
   if (showSearch) {
-    searchResults = []
+    searchResults = [];
     setTimeout(() => {
-      searchInput.focus()
-    }, 300)
+      searchInput.focus();
+    }, 300);
   } else {
-    insertDiag = false
+    insertDiag = false;
   }
-})
-const searchInput = $ref(null)
-const searchUrl = $ref('')
-const searchTargetCode = $ref('')
-const searchTargetName = $ref('')
-const searchContent = $ref('')
-const currentSRPage = $ref(1)
+});
+const searchInput = $ref(null);
+const searchUrl = $ref('');
+const searchTargetCode = $ref('');
+const searchTargetName = $ref('');
+const searchContent = $ref('');
+const currentSRPage = $ref(1);
 const lastPage = () => {
-  currentSRPage -= 1
-  fetchSearchData()
-}
+  currentSRPage -= 1;
+  fetchSearchData();
+};
 const nextPage = () => {
-  currentSRPage += 1
-  fetchSearchData()
-}
+  currentSRPage += 1;
+  fetchSearchData();
+};
 const fetchSearchData = () => {
   const param = {
     method: searchMethod,
@@ -338,34 +336,34 @@ const fetchSearchData = () => {
     page: currentSRPage,
     ybType: sheet.ybType,
     treatType: sheet.treatType,
-  }
+  };
   sheetSearch(param).then((res) => {
-    searchResults = res
-  })
-}
+    searchResults = res;
+  });
+};
 const executeSearch = () => {
-  if (searchContent.length < 2 && searchContent !== '-') return
-  currentSRPage = 1
+  if (searchContent.length < 2 && searchContent !== '-') return;
+  currentSRPage = 1;
   if (searchContent === '-') {
-    searchResults = [{ code: '-', name: '-' }]
+    searchResults = [{ code: '-', name: '-' }];
   } else {
-    fetchSearchData()
+    fetchSearchData();
   }
-}
+};
 
-const showDismissCount = $ref(false)
-const dismissCountdata = $ref([])
+const showDismissCount = $ref(false);
+const dismissCountdata = $ref([]);
 const disCountParams = reactive({
   month: formatMonth(new Date()),
   type: 1,
   dept: null,
-})
+});
 const fetchDismissCount = () => {
-  disCountParams.month = formatMonth(disCountParams.month)
+  disCountParams.month = formatMonth(disCountParams.month);
   analyzeDismissCount(disCountParams).then((res) => {
-    dismissCountdata = res
-  })
-}
+    dismissCountdata = res;
+  });
+};
 const exportDismissCount = () => {
   if (dismissCountdata.length === 0) {
     ElMessage({
@@ -373,19 +371,19 @@ const exportDismissCount = () => {
       type: 'warning',
       duration: 2000,
       showClose: true,
-    })
-    return
+    });
+    return;
   }
-  let name = ''
-  let title = {}
+  let name = '';
+  let title = {};
   if (disCountParams.type === 1) {
     title = {
       deptName: '科室',
       dismissCount: '出院人数',
       signedCount: '已签收',
       unsignCount: '未签收',
-    }
-    name = '科室出院人数统计'
+    };
+    name = '科室出院人数统计';
   } else {
     title = {
       patNo: '住院号',
@@ -406,34 +404,31 @@ const exportDismissCount = () => {
       zzys: '主治医师',
       zyys: '住院医师',
       fdcrb: '法定传染病',
-    }
-    name = disCountParams.type === 2 ? '出院明细统计' : '死亡患者统计'
+    };
+    name = disCountParams.type === 2 ? '出院明细统计' : '死亡患者统计';
   }
-  const fileName = `【${disCountParams.month}】${name}`
-  Export(dismissCountdata, title, fileName)
-}
+  const fileName = `【${disCountParams.month}】${name}`;
+  Export(dismissCountdata, title, fileName);
+};
 const handleCommand = (val) => {
   switch (val) {
     case 'dismissCount':
-      showDismissCount = true
-      break
+      showDismissCount = true;
+      break;
     case 'exportLateData':
-      exportLateDataExel()
-      break
+      exportLateDataExel();
+      break;
     case 'print1':
-      beforePrint(1)
-      break
+      beforePrint(1);
+      break;
     case 'print2':
-      beforePrint(2)
-      break
-    case 'confirmPrint':
-      confirmCopyPrint()
-      break
+      beforePrint(2);
+      break;
     case 'unSign':
-      unArchiveBa()
-      break
+      unArchiveBa();
+      break;
   }
-}
+};
 
 const exportLateDataExel = () => {
   if (!isLateDataMode) {
@@ -442,8 +437,8 @@ const exportLateDataExel = () => {
       type: 'warning',
       duration: 2500,
       showClose: true,
-    })
-    return
+    });
+    return;
   }
   if (overview.length === 0) {
     ElMessage({
@@ -451,8 +446,8 @@ const exportLateDataExel = () => {
       type: 'warning',
       duration: 2000,
       showClose: true,
-    })
-    return
+    });
+    return;
   }
   const title = {
     name: '姓名',
@@ -466,30 +461,30 @@ const exportLateDataExel = () => {
     doctorName: '管床医生',
     lateDays: '迟交天数',
     signDate: '签收日期',
-  }
-  Export(overview, title, '迟交病案')
-}
+  };
+  Export(overview, title, '迟交病案');
+};
 
-const searchMethod = $ref('alpha')
-const searchResults = $ref([])
+const searchMethod = $ref('alpha');
+const searchResults = $ref([]);
 const showSearchData = (flag) => {
   if (flag === 'advanceSearchDoctor') {
-    searchUrl = 'employee'
-    searchTargetCode = 'advanceSearch'
-    searchTargetName = 'doctor'
+    searchUrl = 'employee';
+    searchTargetCode = 'advanceSearch';
+    searchTargetName = 'doctor';
   } else if (flag === 'advanceSearchDiag') {
-    searchUrl = 'normalDiag'
-    searchTargetCode = 'advanceSearch'
-    searchTargetName = 'icd'
+    searchUrl = 'normalDiag';
+    searchTargetCode = 'advanceSearch';
+    searchTargetName = 'icd';
   } else {
-    searchUrl = 'surgery'
-    searchTargetCode = 'advanceSearch'
-    searchTargetName = 'surgery'
+    searchUrl = 'surgery';
+    searchTargetCode = 'advanceSearch';
+    searchTargetName = 'surgery';
   }
-  showSearch = true
-}
+  showSearch = true;
+};
 
-const showAdvanceSearch = $ref(false)
+const showAdvanceSearch = $ref(false);
 const advanceSearch = reactive({
   blfxChkbox: [],
   medType: '',
@@ -500,38 +495,38 @@ const advanceSearch = reactive({
   surgeryCode: '',
   surgeryName: '',
   sex: null,
-})
+});
 const doAdvanceSearch = () => {
-  advanceSearch.start = formatDate(dateRange[0])
-  advanceSearch.end = formatDate(dateRange[1])
-  console.log(advanceSearch)
+  advanceSearch.start = formatDate(dateRange[0]);
+  advanceSearch.end = formatDate(dateRange[1]);
+  console.log(advanceSearch);
   if (!advanceSearch.doctorName) {
-    advanceSearch.doctorCode = ''
+    advanceSearch.doctorCode = '';
   }
   executeAdvanceSearch(advanceSearch).then((res) => {
-    overview = res
-    showAdvanceSearch = false
-  })
-}
+    overview = res;
+    showAdvanceSearch = false;
+  });
+};
 
 const handleSelectSearch = (item) => {
   switch (searchTargetName) {
     case 'doctor':
-      advanceSearch.doctorCode = item.code
-      advanceSearch.doctorName = item.name
-      break
+      advanceSearch.doctorCode = item.code;
+      advanceSearch.doctorName = item.name;
+      break;
     case 'icd':
-      advanceSearch.icdCode = item.code
-      advanceSearch.icdName = item.name
-      break
+      advanceSearch.icdCode = item.code;
+      advanceSearch.icdName = item.name;
+      break;
     case 'surgery':
-      advanceSearch.surgeryCode = item.code
-      advanceSearch.surgeryName = item.name
-      break
+      advanceSearch.surgeryCode = item.code;
+      advanceSearch.surgeryName = item.name;
+      break;
   }
-  searchContent = ''
-  showSearch = false
-}
+  searchContent = '';
+  showSearch = false;
+};
 
 const nullPatient = () => {
   if (!sheet.bah) {
@@ -540,52 +535,52 @@ const nullPatient = () => {
       type: 'warning',
       duration: 2500,
       showClose: true,
-    })
-    return true
+    });
+    return true;
   }
-  return false
-}
+  return false;
+};
 
-const showMessageDrawer = $ref(false)
+const showMessageDrawer = $ref(false);
 const beforePrint = (flag) => {
-  if (nullPatient()) return
+  if (nullPatient()) return;
   const param = {
     sheet: sheet,
-  }
+  };
   executePrintVerify(param)
     .then(() => {
-      execPrint(flag)
+      execPrint(flag);
     })
     .catch((e) => {
-      forceVerifies = e.data.force
-      adviceVerifies = e.data.advice
-      showMessageDrawer = true
+      forceVerifies = e.data.force;
+      adviceVerifies = e.data.advice;
+      showMessageDrawer = true;
       if (e.data.force.length === 0) {
-        execPrint(flag)
+        execPrint(flag);
       }
-    })
-}
+    });
+};
 const execPrint = (flag) => {
-  LODOP = getLodop()
-  const prntStyle = `<style>*{font-size:10pt} table,th,td {border: 1px solid black;border-collapse: collapse;} td,th {height: 24px;padding-left: 4px;}</style>`
-  const prntContent = flag === 1 ? document.getElementById('headpage').innerHTML : document.getElementById('tailpage').innerHTML
-  let pagePrint = prntStyle + '<body>' + prntContent + '</body>'
-  LODOP.PRINT_INIT('casefrontsheet')
-  LODOP.SET_PRINT_PAGESIZE(1, '210mm', '297mm', '')
-  LODOP.SET_PRINT_MODE('FULL_WIDTH_FOR_OVERFLOW', true) // 整宽不变形
-  LODOP.ADD_PRINT_HTM('2mm', '0.5mm', '209.5mm', '295mm', pagePrint)
-  LODOP.SET_PRINT_STYLE('ItemType', 3)
-  LODOP.PREVIEW()
-}
+  LODOP = getLodop();
+  const prntStyle = `<style>*{font-size:10pt} table,th,td {border: 1px solid black;border-collapse: collapse;} td,th {height: 24px;padding-left: 4px;}</style>`;
+  const prntContent = flag === 1 ? document.getElementById('headpage').innerHTML : document.getElementById('tailpage').innerHTML;
+  let pagePrint = prntStyle + '<body>' + prntContent + '</body>';
+  LODOP.PRINT_INIT('casefrontsheet');
+  LODOP.SET_PRINT_PAGESIZE(1, '210mm', '297mm', '');
+  LODOP.SET_PRINT_MODE('FULL_WIDTH_FOR_OVERFLOW', true); // 整宽不变形
+  LODOP.ADD_PRINT_HTM('2mm', '0.5mm', '209.5mm', '295mm', pagePrint);
+  LODOP.SET_PRINT_STYLE('ItemType', 3);
+  LODOP.PREVIEW();
+};
 
 const archiveBa = () => {
   if (nullPatient()) {
-    return
+    return;
   }
   const param = {
     opType: 2,
     sheet: sheet,
-  }
+  };
   executeSaveVerify(param)
     .then((res) => {
       ElMessage({
@@ -593,17 +588,17 @@ const archiveBa = () => {
         type: 'success',
         duration: 2500,
         showClose: true,
-      })
+      });
     })
     .catch((e) => {
-      forceVerifies = e.data
-      showMessageDrawer = true
-    })
-}
+      forceVerifies = e.data;
+      showMessageDrawer = true;
+    });
+};
 
 const unArchiveBa = () => {
   if (nullPatient()) {
-    return
+    return;
   }
 
   ElMessageBox.confirm('是否确认解除签收患者【' + sheet.name + '】的病案首页?', '提示', {
@@ -615,51 +610,22 @@ const unArchiveBa = () => {
       const param = {
         opType: 3,
         sheet: sheet,
-      }
+      };
       executeUnArchiveBa(param).then((res) => {
         ElMessage({
           message: res,
           type: 'success',
           duration: 2500,
           showClose: true,
-        })
-      })
+        });
+      });
     })
-    .catch(() => {})
-}
+    .catch(() => {});
+};
 
-const confirmCopyPrint = () => {
-  if (nullPatient()) {
-    return
-  }
-  if (sheet.fileStatus === 2) {
-    ElMessageBox.alert('此病案首页已确认过打印!', '提示', {
-      showCancelButton: false,
-      type: 'warning',
-    }).then(() => {})
-    return
-  }
-  ElMessageBox.confirm('是否确认患者【' + sheet.name + '】的病案首页已打印,此操作将不可逆转!', '提示', {
-    confirmButtonText: '确定',
-    cancelButtonText: '取消',
-    type: 'warning',
-  })
-    .then(() => {
-      executeConfirmPrint({ sheet: sheet }).then(() => {
-        ElMessage({
-          message: '操作成功',
-          type: 'success',
-          duration: 2500,
-          showClose: true,
-        })
-      })
-    })
-    .catch(() => {})
-}
-
-const forceVerifies = $ref([])
-const adviceVerifies = $ref([])
-const currentMessageIndex = $ref(null)
+const forceVerifies = $ref([]);
+const adviceVerifies = $ref([]);
+const currentMessageIndex = $ref(null);
 const messageColor = (id) => {
   return currentMessageIndex === id
     ? {
@@ -669,33 +635,33 @@ const messageColor = (id) => {
     : {
         background: '#eea7a752',
         color: '#ff2b2b',
-      }
-}
+      };
+};
 
-const currentDismissCountPage = $ref(1)
+const currentDismissCountPage = $ref(1);
 const handleCurrentDismissCountPageChange = (val) => {
-  currentDismissCountPage = val
-}
+  currentDismissCountPage = val;
+};
 
 onActivated(() => {
-  initLodop()
-})
+  initLodop();
+});
 
 onMounted(() => {
   getAllDictionary().then((res) => {
-    res.getOperations = operations
-    res.getYesOrNo = yesOrNo
-    res.getHaveOrNot = haveOrNot
-    res.getAutopsies = autopsies
-    dics = res
+    res.getOperations = operations;
+    res.getYesOrNo = yesOrNo;
+    res.getHaveOrNot = haveOrNot;
+    res.getAutopsies = autopsies;
+    dics = res;
     getAllWards().then((res1) => {
-      userWards = res1
-      const t = getOneMonthOffset()
-      dateRange[0] = t.start
-      dateRange[1] = t.end
-    })
-  })
-})
+      userWards = res1;
+      const t = getOneMonthOffset();
+      dateRange[0] = t.start;
+      dateRange[1] = t.end;
+    });
+  });
+});
 </script>
 
 <style scoped>