Explorar el Código

病案首页添加归档申请

lighter hace 3 años
padre
commit
88f8c8c251

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

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

+ 19 - 0
src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

@@ -16,6 +16,7 @@
       <el-button type="primary" icon="el-icon-upload" @click="saveVerify(1)">保存首页</el-button>
       <el-button type="success" icon="el-icon-printer" @click="beforePrint(1)">打印正面</el-button>
       <el-button type="success" icon="el-icon-printer" @click="beforePrint(2)">打印反面</el-button>
+      <el-button type="danger" icon="el-icon-document" @click="execSignApply">归档申请</el-button>
     </el-header>
     <el-container>
       <el-aside width="245px">
@@ -779,6 +780,7 @@ import {
   getYbDiags,
   sheetSearch,
   increaseDiagWeight,
+  signApply,
 } from '@/api/case-front-sheet'
 import maleIcon from '@/assets/male-icon.png'
 import femaleIcon from '@/assets/female-icon.png'
@@ -1336,6 +1338,23 @@ const handleClickMessage = (id, index) => {
 
 const showMessageDrawer = $ref(false)
 
+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