Browse Source

违规退费中修复医技科室的bug

xiaochan 3 năm trước cách đây
mục cha
commit
f6ffbc5862

+ 2 - 2
src/api/yibao/xiang-mu-lu-ru.js

@@ -64,11 +64,11 @@ export function shangChuanMuBan(data) {
   })
 }
 
-export function yiZhuTuiFeiPiPei(inpatientNo, admissTimes) {
+export function yiZhuTuiFeiPiPei(inpatientNo, admissTimes, deptCode) {
   return request({
     url: '/xmlr/yiZhuTuiFeiPiPei',
     method: 'get',
-    params: { inpatientNo, admissTimes },
+    params: { inpatientNo, admissTimes, deptCode },
   })
 }
 

+ 4 - 4
src/components/inpatient/WeiGuiFeiYongFenXi.vue

@@ -116,8 +116,8 @@
           <el-table-column label="流水号" prop="detailSn" width="70"></el-table-column>
           <el-table-column label="时间" prop="chargeDate" width="70"></el-table-column>
           <el-table-column label="项目编码" prop="chargeCodeMx"></el-table-column>
-          <el-table-column label="金额" prop="chargeFee"></el-table-column>
-          <el-table-column label="数量" prop="chargeAmount"></el-table-column>
+          <el-table-column label="金额" prop="chargeFee" sortable></el-table-column>
+          <el-table-column label="数量" prop="chargeAmount" sortable></el-table-column>
         </el-table>
         <el-pagination
           @current-change="keYiPiPeiDeZhenShuCurrentPage"
@@ -146,7 +146,7 @@
 <script>
 import { onMounted, ref, watch } from 'vue'
 import store from '../../store'
-import { huoQuZhenShuKePiPei, caiFenPiPei, yiZhuTuiFeiPiPei, weiGuiFeiYongFenXi } from '@/api/yibao/xiang-mu-lu-ru'
+import { huoQuZhenShuKePiPei, caiFenPiPei, yiZhuTuiFeiPiPei } from '@/api/yibao/xiang-mu-lu-ru'
 import { ElMessageBox } from 'element-plus'
 import { shortcuts } from '@/data/shortcuts'
 import { getDateRangeFormatDate } from '../../utils/date'
@@ -322,7 +322,7 @@ export default {
         dangerouslyUseHTMLString: true,
       })
         .then(() => {
-          yiZhuTuiFeiPiPei(props.patient.inpatientNo, props.patient.admissTimes).then((res) => {
+          yiZhuTuiFeiPiPei(props.patient.inpatientNo, props.patient.admissTimes, store.state.user.info.deptCode).then((res) => {
             ctx.emit('shuaXin')
           })
         })

+ 0 - 8
src/components/inpatient/XiangMuLuRu.vue

@@ -8,7 +8,6 @@
       <el-tag effect="dark" size="medium">性别: {{ cptSex(patient.sex) }}</el-tag>
       住院号: <el-input v-model="inpatientNo" style="width: 100px" clearable placeholder="住院号"></el-input>
       <el-button type="primary" icon="el-icon-search" @click="chaXunHuanZheXinXi">查询患者信息</el-button>
-      <el-button type="success" icon="el-icon-refresh" @click="tuiFeiPiPeiClick">退费匹配</el-button>
       <el-button type="danger" style="margin-left: 20px" icon="el-icon-close" @click="guanBiDialog">关闭</el-button>
       <el-button type="warning" style="margin-left: 20px" @click="chaoZuoZhiNan = true">操作指南</el-button>
     </el-header>
@@ -331,7 +330,6 @@ import {
   shanChuMuBan,
   getDept,
   getPyCode,
-  yiZhuTuiFeiPiPei,
   cheXiaoTuiFei,
 } from '@/api/yibao/xiang-mu-lu-ru'
 import { ElMessage, ElMessageBox } from 'element-plus'
@@ -426,11 +424,6 @@ export default {
         })
     }
 
-    // 这里是退费匹配
-    const tuiFeiPiPeiClick = () => {
-      yiZhuTuiFeiPiPei(patient.value.inpatientNo, patient.value.admissTimes)
-    }
-
     /**
      * 这个是 用户没有选择患者 就进来执行的
      */
@@ -924,7 +917,6 @@ export default {
       feiYongLeiXing,
       tuiFeiLeiXin,
       total,
-      tuiFeiPiPeiClick,
       cheXiaoTuiFeiClick,
       quanXian,
       chaoZuoZhiNan,

+ 9 - 28
src/components/med-tec-mod/HuanZheFeiYong.vue

@@ -47,7 +47,7 @@
       ></el-pagination>
     </el-main>
     <el-dialog v-model="weiGuiTuiFeiFenXiDialog" title="违规费用分析" :fullscreen="true">
-      <wei-gui-fei-yong-fen-xi :init="weiGuiTuiFeiInit" :patient="weiGuiJiBenXinXi"></wei-gui-fei-yong-fen-xi>
+      <wei-gui-fei-yong-fen-xi :init="weiGuiTuiFeiInit" @shuaXin="weiGuiTuiFeiFenXiDialogOpen" :patient="weiGuiJiBenXinXi"></wei-gui-fei-yong-fen-xi>
     </el-dialog>
   </el-container>
 </template>
@@ -166,41 +166,21 @@ export default {
     const weiGuiTuiFeiInit = ref(0)
     const weiGuiTuiFeiFenXiDialog = ref(false)
 
-    const tiShi = ref(true)
-
     const weiGuiJiBenXinXi = ref({})
 
     const weiGuiTuiFeiFenXiDialogOpen = () => {
       weiGuiFeiYongFenXi(props.patient.inpatientNo, props.patient.admissTimes, store.state.user.info.deptCode).then((res) => {
-        console.log(res)
-        if (res.weiXieDaiYuanLiuShui.length > 0) {
+        if (res.weiXieDaiYuanLiuShui.length > 0 || res.weiPiPei.length > 0) {
           weiGuiTuiFeiFenXiDialog.value = true
-          weiGuiJiBenXinXi.value.weiPiPei = res.weiPiPei
-          weiGuiJiBenXinXi.value.weiXieDaiYuanLiuShui = res.weiXieDaiYuanLiuShui
+          weiGuiJiBenXinXi.value.inpatientNo = props.patient.inpatientNo
+          weiGuiJiBenXinXi.value.admissTimes = props.patient.admissTimes
+          weiGuiJiBenXinXi.value.name = props.patient.name
           weiGuiJiBenXinXi.value.pageSize = 20
           weiGuiJiBenXinXi.value.currentPage = 1
-          weiGuiTuiFeiInit.value += 1
-        } else {
-          if (tiShi.value) {
-            ElNotification({
-              title: '提示',
-              dangerouslyUseHTMLString: true,
-              type: 'success',
-              message: ` 1、该患者没有本科室违规的费用 very nice。<br> 
-            2、如果还是上传不成功或者费用不一致,那么请医保科取消上传,重新上传费用。<br>          
-            3、退药品的话(长期医嘱撤销就可以了,如果不能撤销提单子)(临嘱的话使用医保入院登记里面的【医嘱退费】,然后护士执行这个条医嘱就可以了)。<br>
-            4、全部的项目都要用本系统来退费。<br>你们终于可以不用向信息科打电话了 ヾ(✿゚▽゚)ノ`,
-            })
-            tiShi.value = false
-          } else {
-            ElNotification({
-              title: '提示',
-              dangerouslyUseHTMLString: true,
-              type: 'success',
-              message: `该患者没有本科室违规的费用 very nice`,
-            })
-          }
         }
+        weiGuiTuiFeiInit.value += 1
+        weiGuiJiBenXinXi.value.weiPiPei = res.weiPiPei
+        weiGuiJiBenXinXi.value.weiXieDaiYuanLiuShui = res.weiXieDaiYuanLiuShui
       })
     }
 
@@ -218,6 +198,7 @@ export default {
       weiGuiTuiFeiFenXiDialogOpen,
       weiGuiTuiFeiFenXiDialog,
       weiGuiJiBenXinXi,
+      weiGuiTuiFeiInit,
     }
   },
 }