Преглед изворни кода

违规退费分析在医技科室也要使用。

xiaochan пре 3 година
родитељ
комит
3f48853aaa

+ 17 - 3
src/components/inpatient/WeiGuiFeiYongFenXi.vue

@@ -28,6 +28,7 @@
             @current-change="weiPiPeiCurrentPage"
             :current-page="weiPiPei.currentPage"
             :page-size="weiPiPei.pageSize"
+            :page-sizes="[40, 200, 300, 400]"
             layout=" prev, pager, next,total"
             :total="weiPiPei.data.length"
             style="margin-top: 5px"
@@ -45,6 +46,7 @@
           >
             <el-table-column label="流水号" prop="detailSn"></el-table-column>
             <el-table-column label="项目编码" prop="chargeCodeMx"></el-table-column>
+            <el-table-column label="收费时间" prop="chargeDate"></el-table-column>
             <el-table-column label="项目名称" prop="chargeCodeName"></el-table-column>
             <el-table-column label="金额" prop="chargeFee"></el-table-column>
             <el-table-column label="数量" prop="chargeAmount"></el-table-column>
@@ -69,7 +71,7 @@
       </el-tabs>
     </el-main>
     <el-drawer title="费用修正" v-model="feiYongXiuZhenDrawer" size="50%" :before-close="shiFouBaoCun">
-      <el-descriptions title="患者信息" border>
+      <el-descriptions title="费用信息" border>
         <el-descriptions-item label="项目名称">{{ fuShuFeiYongXinXi.chargeCodeName }}</el-descriptions-item>
         <el-descriptions-item label="金额">{{ fuShuFeiYongXinXi.chargeFee }}</el-descriptions-item>
         <el-descriptions-item label="数量">{{ fuShuFeiYongXinXi.chargeAmount }}</el-descriptions-item>
@@ -114,9 +116,10 @@
       </el-table>
       <el-pagination
         @current-change="keYiPiPeiDeZhenShuCurrentPage"
+        @size-change="keYiPiPeiDeZhenShuSizeChange"
         :current-page="keYiPiPeiDeZhenShu.currentPage"
         :page-size="keYiPiPeiDeZhenShu.pageSize"
-        layout=" prev, pager, next,total"
+        layout=" prev, pager, next,total,sizes"
         :total="keYiPiPeiDeZhenShu.data.length"
         style="margin-top: 5px"
         background
@@ -124,7 +127,12 @@
     </el-drawer>
     <el-dialog v-model="chaoZuoZhiNan" title="操作指南">
       一、未匹配 <br />
-      1、
+      1、点击未匹配,可以查询到这个患者没有匹配到医保的医保码<br />
+      二、违规退费<br />
+      1、点击违规退费:会显示这个患者无法上传到医保的费用。<br />
+      2、点击这个费用:会在右边弹出抽屉,上面会显示一些,费用的信息。<br />
+      3、匹配:这条负数的数据退的是那一天(或那几天)的费用,点击弹出来的抽屉中的多选框然后点击保存即可<br />
+      4、查询:查询这些正费用时,可以选择 日期,以及 排序。<br />
     </el-dialog>
   </el-container>
 </template>
@@ -189,6 +197,10 @@ export default {
       keYiPiPeiDeZhenShu.value.currentPage = val
     }
 
+    const keYiPiPeiDeZhenShuSizeChange = (val) => {
+      keYiPiPeiDeZhenShu.value.pageSize = val
+    }
+
     const zhenShuFeiYong = (val) => {
       let dateS = getDateRangeFormatDate(dateRange.value)
       let startTime = dateS.startTime
@@ -277,6 +289,7 @@ export default {
 
     onMounted(() => {
       genXingShuJu()
+      chaoZuoZhiNan.value = true
     })
 
     const genXingShuJu = () => {
@@ -318,6 +331,7 @@ export default {
       shortcuts,
       weiGuiTabs,
       chaoZuoZhiNan,
+      keYiPiPeiDeZhenShuSizeChange,
     }
   },
 }

+ 16 - 10
src/components/med-tec-mod/HuanZheFeiYong.vue

@@ -3,7 +3,7 @@
     <el-main>
       <el-button type="danger" @click="xiangMuTuiFeiClick" icon="el-icon-delete-solid">退费</el-button>
       <el-button type="primary" @click="weiGuiTuiFeiFenXiDialogOpen">违规费用分析</el-button>
-      <el-table :data="cptTableDataHuanZheFeiYong" :height="windowHeigth - 170" @selection-change="handleSelectionChange" highlight-current-row stripe>
+      <el-table :data="cptTableDataHuanZheFeiYong" :height="windowHeigth / 1.35" @selection-change="handleSelectionChange" highlight-current-row stripe>
         <el-table-column type="selection"></el-table-column>
         <el-table-column label="流水号" prop="detailSn" width="70px"></el-table-column>
         <el-table-column label="医嘱号" prop="orderNo" width="70px"></el-table-column>
@@ -58,7 +58,7 @@ import { costState } from '@/utils/computed'
 import store from '@/store'
 import { getChargeCode, xiangMuTuiFei, weiGuiFeiYongFenXi } from '@/api/yibao/xiang-mu-lu-ru'
 import WeiGuiFeiYongFenXi from '@/components/inpatient/WeiGuiFeiYongFenXi.vue'
-import { ElNotification } from 'element-plus'
+import { ElMessage, ElMessageBox, ElNotification } from 'element-plus'
 export default {
   components: { WeiGuiFeiYongFenXi },
   name: 'huanZheFeiYong',
@@ -84,18 +84,28 @@ export default {
       () => props.init,
       () => {
         cptTableDataHuanZheFeiYong.value = props.init.records
-        fenYe.value.total = props.init.total
-        fenYe.value.currentPage = props.init.currentPage
-        weiGuiTuiFeiFenXiDialogOpen()
+        fenYe.value.total = typeof props.init.total === 'undefined' ? 0 : props.init.total
+        console.log(fenYe.value)
+        if (props.patient.inpatientNo === weiGuiJiBenXinXi.value.inpatientNo) {
+          return
+        } else {
+          weiGuiJiBenXinXi.value.inpatientNo = props.patient.inpatientNo
+          weiGuiJiBenXinXi.value.admissTimes = props.patient.admissTimes
+          weiGuiJiBenXinXi.value.name = props.patient.name
+          weiGuiTuiFeiFenXiDialogOpen()
+        }
       }
     )
 
     // 分页
     const handleSizeChange = (val) => {
+      fenYe.value.pageSize = val
+      fenYe.value.currentPage = 1
       ctx.emit('size', { val })
     }
 
     const handleCurrentChange = (val) => {
+      fenYe.value.currentPage = val
       ctx.emit('current', { val })
     }
 
@@ -163,12 +173,8 @@ export default {
 
     const weiGuiTuiFeiFenXiDialogOpen = () => {
       weiGuiFeiYongFenXi(props.patient.inpatientNo, props.patient.admissTimes, store.state.user.info.deptCode).then((res) => {
-        if (res.weiXieDaiYuanLiuShui.length > 0 || res.weiPiPei.length > 0) {
-          console.log(res)
+        if (res.weiXieDaiYuanLiuShui.length > 0) {
           weiGuiTuiFeiFenXiDialog.value = true
-          weiGuiJiBenXinXi.value.inpatientNo = props.patient.inpatientNo
-          weiGuiJiBenXinXi.value.admissTimes = props.patient.admissTimes
-          weiGuiJiBenXinXi.value.name = props.patient.name
           weiGuiJiBenXinXi.value.weiPiPei = res.weiPiPei
           weiGuiJiBenXinXi.value.weiXieDaiYuanLiuShui = res.weiXieDaiYuanLiuShui
           weiGuiJiBenXinXi.value.pageSize = 20

+ 3 - 1
src/views/med-tec-mod/YiJiFeiYongLuRu.vue

@@ -159,6 +159,7 @@ export default {
       getHuanZheFeiYong(queryTerm.value)
         .then((res) => {
           total.value = res.total
+          patient.value.total = total.value
           tableDataHuanZheFeiYong.value = res
         })
         .catch(() => {
@@ -199,7 +200,8 @@ export default {
     // 分页
     const handleSizeChange = (val) => {
       queryTerm.value.pageSize = val.val
-      handleHuanZheFeiYong()
+      patient.value.pageSize = val.val
+      queryHuanZheFeiYong()
     }
 
     const handleCurrentChange = (val) => {