소스 검색

Merge branch 'master' of https://172.16.32.165/lighter/vue-intergration-platform

xiaochan 1 년 전
부모
커밋
f57c4d6535
2개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 2
      src/api/case-front-sheet/index.js
  2. 5 4
      src/views/hospitalization/case-front-sheet/FrontSheetExport.vue

+ 2 - 2
src/api/case-front-sheet/index.js

@@ -377,11 +377,11 @@ export function fetchExportData(data) {
     })
 }
 
-export function fetchSheets(month) {
+export function fetchSheets(month, isHqms) {
     return request({
         url: '/frontSheetExport/fetchSheets',
         method: 'get',
-        params: {month},
+        params: {month, isHqms},
     })
 }
 

+ 5 - 4
src/views/hospitalization/case-front-sheet/FrontSheetExport.vue

@@ -1,11 +1,12 @@
 <template>
-
   <div class="layout_container">
     <header>
       <el-date-picker v-model="month" :clearable="false" placeholder="出院日期" style="width: 110px"
                       type="month"></el-date-picker>
       <el-divider direction="vertical"></el-divider>
-      <el-button type="primary" icon="Search" @click="getAnalyzedSheets">检索</el-button>
+      <el-button type="primary" icon="Search" @click="getAnalyzedSheets(false)">检索(省质控)</el-button>
+      <el-button type="success" icon="Search" @click="getAnalyzedSheets(true)">检索(HQMS)</el-button>
+      <el-divider direction="vertical" />
       <el-button type="primary" icon="Download" @click="exportExcel">导出csv</el-button>
     </header>
     <div class="layout_main layout_el-table">
@@ -102,7 +103,7 @@ const handleCurrentChange = (val) => {
   currentPage.value = val
 }
 
-const getAnalyzedSheets = () => {
+const getAnalyzedSheets = (isHqms) => {
   if (!month.value) {
     ElMessage({
       message: '请先选择出院日期',
@@ -113,7 +114,7 @@ const getAnalyzedSheets = () => {
     return
   }
   month.value = formatMonth(month.value)
-  fetchSheets(month.value).then((res) => {
+  fetchSheets(month.value, isHqms).then((res) => {
     sheets.value = res
   })
 }