Преглед на файлове

优化病案首页高级搜索

lighter преди 3 години
родител
ревизия
fae67285c2
променени са 2 файла, в които са добавени 42 реда и са изтрити 4 реда
  1. 11 0
      src/data/index.js
  2. 31 4
      src/views/hospitalization/case-front-sheet/AllCaseFrontSheet.vue

+ 11 - 0
src/data/index.js

@@ -25,6 +25,17 @@ export const medTypes = [
   { code: '42', name: '工伤住院' },
 ]
 
+export const frontSheetMedTypes = [
+  { code: '01', name: '自费' },
+  { code: '2101', name: '普通住院' },
+  { code: '2102', name: '单病种住院' },
+  { code: '2106', name: '生育平产(居民)' },
+  { code: '2107', name: '生育剖宫产(居民)' },
+  { code: '22', name: '外伤住院' },
+  { code: '52', name: '生育住院(职工)' },
+  { code: '42', name: '工伤住院' },
+]
+
 export const trueMedTypes = [
   { code: '2101', name: '普通住院' },
   { code: '2102', name: '单病种住院' },

+ 31 - 4
src/views/hospitalization/case-front-sheet/AllCaseFrontSheet.vue

@@ -89,7 +89,19 @@
     </el-drawer>
     <div class="rightside-btn" @click="showMessageDrawer = !showMessageDrawer">首页签收校验结果</div>
     <el-dialog v-model="showAdvanceSearch" title="高级条件检索" width="380px">
-      <div style="margin-top: 5px">
+      <div style="margin-top: 10px">
+        <el-tag type="info">病案条件</el-tag>
+        <div style="margin-top: 5px; display: flex">
+          &nbsp;&nbsp;病例分型:
+          <el-checkbox-group v-model="advanceSearch.blfxChkbox">
+            <el-checkbox label="1">A</el-checkbox>
+            <el-checkbox label="2">B</el-checkbox>
+            <el-checkbox label="3">C</el-checkbox>
+            <el-checkbox label="4">D</el-checkbox>
+          </el-checkbox-group>
+        </div>
+      </div>
+      <div style="margin-top: 10px">
         <el-tag type="info">医生条件</el-tag>
         <div style="margin-top: 5px">
           &nbsp;&nbsp;医生姓名:<el-input v-model="advanceSearch.doctorName" style="width: 160px" clearable @click="showSearchData('advanceSearchDoctor')"></el-input>
@@ -97,6 +109,12 @@
       </div>
       <div style="margin-top: 10px">
         <el-tag type="info">患者条件</el-tag>
+        <div style="margin-top: 5px">
+          &nbsp;&nbsp;医疗类别:
+          <el-select v-model="advanceSearch.medType" style="width: 160px; margin-left: -4px" clearable>
+            <el-option v-for="item in frontSheetMedTypes" :key="item.code" :label="item.name" :value="item.code"></el-option>
+          </el-select>
+        </div>
         <div style="margin-top: 5px">
           &nbsp;&nbsp;诊断编码:<el-input v-model="advanceSearch.icdCode" style="width: 160px" clearable @click="showSearchData('advanceSearchDiag')"></el-input>
         </div>
@@ -105,12 +123,12 @@
         </div>
         <div style="margin-top: 5px">
           &nbsp;&nbsp;患者性别:
-          <el-select v-model="advanceSearch.sex" style="width: 100px" clearable>
+          <el-select v-model="advanceSearch.sex" style="width: 160px; margin-left: -4px" clearable>
             <el-option v-for="item in dics.getSexCode" :key="item.code" :value="item.code" :label="item.name"></el-option>
           </el-select>
         </div>
       </div>
-      <div style="width: 100%; text-align: right; margin-top: 15px">
+      <div style="width: 100%; text-align: right; margin-top: 20px">
         <el-button icon="el-icon-search" type="primary" @click="doAdvanceSearch">开始检索</el-button>
       </div>
     </el-dialog>
@@ -199,7 +217,7 @@
 import { yesOrNo, haveOrNot, searchMethods, autopsies } from './common'
 import { computed, onActivated, onMounted, reactive, ref, watchEffect } from 'vue'
 import store from '@/store'
-import { operations } from '@/data/index'
+import { operations, frontSheetMedTypes } from '@/data/index'
 import {
   basOutPatients,
   executeAdvanceSearch,
@@ -472,6 +490,8 @@ const showSearchData = (flag) => {
 
 const showAdvanceSearch = $ref(false)
 const advanceSearch = reactive({
+  blfxChkbox: [],
+  medType: '',
   doctorCode: '',
   doctorName: '',
   icdCode: '',
@@ -483,6 +503,7 @@ const advanceSearch = reactive({
 const doAdvanceSearch = () => {
   advanceSearch.start = formatDate(dateRange[0])
   advanceSearch.end = formatDate(dateRange[1])
+  console.log(advanceSearch)
   if (!advanceSearch.doctorName) {
     advanceSearch.doctorCode = ''
   }
@@ -683,6 +704,12 @@ onMounted(() => {
 :deep(.el-drawer__header) {
   margin-bottom: 8px;
 }
+:deep(.el-checkbox) {
+  margin-right: 15px;
+}
+:deep(.el-checkbox__label) {
+  padding-left: 4px;
+}
 .page-inner {
   padding: 0 20px 10px 26px;
   border-radius: 12px;