Browse Source

病案首页打印反面后就入库

lighter 2 years ago
parent
commit
7fc519c87d

+ 0 - 8
src/api/case-front-sheet/index.js

@@ -110,14 +110,6 @@ export function doSaveYbDiags(data) {
     })
 }
 
-export function signApply(data) {
-    return request({
-        url: '/caseFrontSheet/signApply',
-        method: 'post',
-        data: data,
-    })
-}
-
 export function frontsheetQualityCheck(data) {
     return request({
         url: '/caseFrontSheet/frontsheetQualityCheck',

+ 13 - 15
src/views/hospitalization/case-front-sheet/AllCaseFrontSheet.vue

@@ -235,7 +235,7 @@
 import {autopsies, haveOrNot, searchMethods, yesOrNo} from './common'
 import {onActivated, onMounted, reactive, watchEffect} from 'vue'
 import store from '@/store'
-import {frontSheetMedTypes, operations} from '@/data/index'
+import {frontSheetMedTypes, operations} from '@/data'
 import {
   analyzeDismissCount,
   basOutPatients,
@@ -256,7 +256,7 @@ import {formatDate, formatMonth, getOneMonthOffset} from '@/utils/date'
 import {getLodop, initLodop} from '@/utils/c-lodop'
 import HeadPage from '../../../components/inpatient/frontsheet-printpage/HeadPage.vue'
 import TailPage from '../../../components/inpatient/frontsheet-printpage/TailPage.vue'
-import {Export} from '../../../utils/ExportExcel'
+import {Export} from '@/utils/ExportExcel'
 import SheetQuality from '@/components/inpatient/CaseFrontSheetQuality.vue'
 import PageLayer from "@/layout/PageLayer";
 
@@ -616,19 +616,17 @@ const archiveBa = () => {
     opType: 2,
     sheet: sheet,
   }
-  executeSaveVerify(param)
-      .then((res) => {
-        ElMessage({
-          message: '操作成功。',
-          type: 'success',
-          duration: 2500,
-          showClose: true,
-        })
-      })
-      .catch((e) => {
-        forceVerifies = e.data
-        showMessageDrawer = true
-      })
+  executeSaveVerify(param).then(() => {
+    ElMessage({
+      message: '操作成功。',
+      type: 'success',
+      duration: 2500,
+      showClose: true,
+    })
+  }).catch((e) => {
+    forceVerifies = e.data
+    showMessageDrawer = true
+  })
 }
 
 const unArchiveBa = () => {

+ 6 - 23
src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

@@ -807,7 +807,6 @@ import {
   sheetSearch,
   getSsfzSurgeriesByIcd,
   increaseDiagWeight,
-  signApply,
   selectSiDiagByBaDiag,
   frontsheetQualityCheck,
   isMedinsSetl,
@@ -1477,23 +1476,6 @@ const caseQualityCheck = () => {
   })
 }
 
-const execSignApply = () => {
-  if (nullPatient()) return
-  signApply(patient.value)
-    .then((res) => {
-      ElMessage({
-        message: '申请成功',
-        type: 'success',
-        duration: 2500,
-        showClose: true,
-      })
-    })
-    .catch((e) => {
-      forceVerifies.value = e.data
-      showMessageDrawer = true
-    })
-}
-
 const saveVerify = (opType) => {
   if (nullPatient()) return
   beforePrintSet.value = false
@@ -1524,29 +1506,30 @@ const dismissShowSearch = (flag) => {
     }
   }, 100)
 }
-const beforePrint = (flag) => {
+const beforePrint = (page) => {
   if (nullPatient()) return
   const param = {
     opType: 4,
     sheet: patient.value,
+    page: page
   }
   executePrintVerify(param)
     .then(() => {
-      execPrint(flag)
+      execPrint(page)
     })
     .catch((e) => {
       forceVerifies.value = e.data.force
       adviceVerifies.value = e.data.advice
       showMessageDrawer = true
       if (e.data.force.length === 0) {
-        execPrint(flag)
+        execPrint(page)
       }
     })
 }
-const execPrint = (flag) => {
+const execPrint = (page) => {
   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
+  const prntContent = page === 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', '')