Browse Source

医保多收统计添加科室和医生等信息

lighter 9 months ago
parent
commit
ccd9c56c68
1 changed files with 54 additions and 11 deletions
  1. 54 11
      src/views/medical-insurance/management/SetlOverLimitAnalyze.vue

+ 54 - 11
src/views/medical-insurance/management/SetlOverLimitAnalyze.vue

@@ -21,26 +21,46 @@
       <div class="layout_main layout_el-table">
         <el-table :data="data" stripe highlight-current-row @row-click="handleClickRow">
           <el-table-column prop="patName" label="患者姓名"></el-table-column>
-          <el-table-column prop="patNo" label="住院号"></el-table-column>
-          <el-table-column prop="times" label="住院次数"></el-table-column>
+          <el-table-column prop="patNo" label="住院号_次数">
+            <template #default="{row}">
+              {{ row.patNo }}_{{row.times}}
+            </template>
+          </el-table-column>
+          <el-table-column prop="beginTime" label="入院日期"></el-table-column>
+          <el-table-column prop="endTime" label="出院日期"></el-table-column>
           <el-table-column prop="drugHisCode" label="HIS药品编码"></el-table-column>
           <el-table-column prop="drugHisName" label="HIS药品名称"></el-table-column>
           <el-table-column prop="max" label="最大用药天数"></el-table-column>
           <el-table-column prop="real" label="实际用药天数"></el-table-column>
-          <el-table-column prop="offset" label="用药超出天数"></el-table-column>
+          <el-table-column prop="offset" label="超出用药天数"></el-table-column>
           <el-table-column prop="totalAmt" label="超出总金额"></el-table-column>
           <el-table-column prop="selfPayProp" label="自付比例"></el-table-column>
-          <el-table-column prop="refundAmt" label="应退金额"></el-table-column>
+          <el-table-column prop="refundAmt" width="120">
+            <template #header>
+              应退金额&nbsp;&nbsp;
+              <span
+                  style="
+                  color: #0a84fd;
+                  text-decoration: underline;
+                  cursor: pointer"
+                  @click="downloadExcel"
+              >
+                导出
+              </span>
+            </template>
+          </el-table-column>
         </el-table>
       </div>
-      <div class="layout_el-table" style="margin-left: 4px; width: 380px">
+      <div class="layout_el-table" style="margin-left: 4px; width: 420px">
         <el-table :data="drugItems" stripe>
-          <el-table-column prop="ledgerSn" label="账页号" width="60"></el-table-column>
-          <el-table-column prop="detailSn" label="流水号" width="60"></el-table-column>
+          <el-table-column prop="ledgerSn" label="账页" width="40"></el-table-column>
+          <el-table-column prop="detailSn" label="流水号" width="50"></el-table-column>
           <el-table-column prop="price" label="单价" width="50"></el-table-column>
-          <el-table-column prop="quantity" label="数量" width="50"></el-table-column>
-          <el-table-column prop="payAmt" label="金额"></el-table-column>
-          <el-table-column prop="chargeDate" label="收费日期"></el-table-column>
+          <el-table-column prop="quantity" label="数量" width="40"></el-table-column>
+          <el-table-column prop="payAmt" label="金额" width="50"></el-table-column>
+          <el-table-column prop="chargeDate" label="收费日期" width="70"></el-table-column>
+          <el-table-column prop="doctorName" label="医生" width="50"></el-table-column>
+          <el-table-column prop="deptName" label="科室" width="70"></el-table-column>
         </el-table>
       </div>
     </div>
@@ -51,6 +71,7 @@
 import env from "@/utils/setting";
 import {startLoading,endLoading} from "@/utils/loading.js";
 import {xcMessage} from "@/utils/xiaochan-element-plus";
+import {Export} from "@/utils/ExportExcel.js";
 
 const actionLink = ref(env.VITE_BASE_URL + '/setlOverLimitAnalyze/execute')
 const headers = reactive({
@@ -68,11 +89,33 @@ function handleClickRow(row) {
 function onSuccess(res) {
   endLoading();
   if (res.code === 200) {
-    console.log(res.data)
     data.value = res.data
   } else {
     xcMessage.error(res.message)
   }
 }
 
+function downloadExcel() {
+  if (data.value.length === 0) {
+    xcMessage.error('没有可以导出的数据')
+    return
+  }
+  const field = {
+    patName: '患者姓名',
+    patNo: '住院号',
+    times: '住院次数',
+    beginTime: '入院日期',
+    endTime: '出院日期',
+    drugHisCode: 'HIS药品编码',
+    drugHisName: 'HIS药品名称',
+    max: '最大用药天数',
+    real: '实际用药天数',
+    offset: '超出用药天数',
+    totalAmt: '超出总金额',
+    selfPayProp: '自付比例',
+    refundAmt: '应退金额',
+  }
+  Export(data.value, field, '医保结算多收');
+}
+
 </script>