浏览代码

系统自动匹配退费。

xiaochan 4 年之前
父节点
当前提交
2f62e565ac

+ 16 - 2
src/components/inpatient/WeiGuiFeiYongFenXi.vue

@@ -4,6 +4,7 @@
       <el-descriptions title="患者信息" border>
         <template #extra>
           <el-button type="primary" @click="chaoZuoZhiNan = true" size="small">操作指南</el-button>
+          <el-button type="primary" @click="ziDongPiPeiTuiFei" size="small">自动匹配</el-button>
         </template>
         <el-descriptions-item label="姓名">{{ huanZheXinXi.name }}</el-descriptions-item>
         <el-descriptions-item label="住院号">{{ huanZheXinXi.inpatientNo }}</el-descriptions-item>
@@ -145,7 +146,7 @@
 <script>
 import { onMounted, ref, watch } from 'vue'
 import store from '../../store'
-import { huoQuZhenShuKePiPei, caiFenPiPei } from '@/api/yibao/xiang-mu-lu-ru'
+import { huoQuZhenShuKePiPei, caiFenPiPei, yiZhuTuiFeiPiPei, weiGuiFeiYongFenXi } from '@/api/yibao/xiang-mu-lu-ru'
 import { ElMessageBox } from 'element-plus'
 import { shortcuts } from '@/data/shortcuts'
 import { getDateRangeFormatDate } from '../../utils/date'
@@ -241,7 +242,6 @@ export default {
     const piPeiShiFouDianJi = ref(false)
 
     const PiPeiClick = () => {
-      console.log(store.state.user.info.deptCode)
       ElMessageBox.confirm('请仔细检查', '提示', {
         type: 'warning',
       })
@@ -316,6 +316,19 @@ export default {
 
     const chaoZuoZhiNan = ref(false)
 
+    const ziDongPiPeiTuiFei = () => {
+      ElMessageBox.confirm('如果你想每天的报表都可以对得上,那么就人工匹配,系统自动匹配<span style="color:red"> 天知道 </span>,你这一条退的是哪一天的,<br>ヾ(゚∀゚ゞ)。', '提示', {
+        type: 'warning',
+        dangerouslyUseHTMLString: true,
+      })
+        .then(() => {
+          yiZhuTuiFeiPiPei(props.patient.inpatientNo, props.patient.admissTimes).then((res) => {
+            ctx.emit('shuaXin')
+          })
+        })
+        .catch(() => {})
+    }
+
     return {
       weiPiPei,
       weiGuiFeiYong,
@@ -337,6 +350,7 @@ export default {
       weiGuiTabs,
       chaoZuoZhiNan,
       keYiPiPeiDeZhenShuSizeChange,
+      ziDongPiPeiTuiFei,
     }
   },
 }

+ 14 - 34
src/views/medical-insurance/inpatient/InHospFeeUpload.vue

@@ -4,7 +4,6 @@
       <el-button icon="el-icon-thumb" type="success" @click="preCalculateCost">获取费用</el-button>
       <el-button icon="el-icon-upload2" type="success" @click="uploadFees">费用上传</el-button>
       <el-button icon="el-icon-remove-outline" type="warning" :disabled="!isAdmin" @click="cancelFees">取消上传</el-button>
-      <el-button type="success" icon="el-icon-refresh" @click="tuiFeiPiPeiClick">退费匹配</el-button>
       <el-button type="primary" @click="weiGuiTuiFeiFenXiDialogOpen">违规费用分析</el-button>
       <el-popover placement="left" width="730" trigger="click">
         <template #reference>
@@ -97,7 +96,7 @@
       </div>
     </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>
@@ -113,7 +112,7 @@ import { hospitalizationPreSettlement, uploadFeeDetail, revokeUploadFees } from
 import { setCallback } from '@/utils/websocket'
 import { getGreatestRole } from '@/utils/permission'
 import { baseinfo } from '@/data/inpatient'
-import { yiZhuTuiFeiPiPei, weiGuiFeiYongFenXi } from '@/api/yibao/xiang-mu-lu-ru'
+import { weiGuiFeiYongFenXi } from '@/api/yibao/xiang-mu-lu-ru'
 import WeiGuiFeiYongFenXi from '../../../components/inpatient/WeiGuiFeiYongFenXi.vue'
 export default {
   components: { WeiGuiFeiYongFenXi },
@@ -375,53 +374,26 @@ export default {
         .catch(() => {})
     }
 
-    const tuiFeiPiPeiClick = () => {
-      yiZhuTuiFeiPiPei(patient.value.inpatientNo, patient.value.admissTimes)
-    }
-
     ///////////////////////////////////////////// 违规退费分析 /////////////////////////////////////////////////////////////////////////
     const weiGuiTuiFeiInit = ref(0)
     const weiGuiTuiFeiFenXiDialog = ref(false)
 
-    const tiShi = ref(true)
-
     const weiGuiJiBenXinXi = ref({})
 
     const weiGuiTuiFeiFenXiDialogOpen = () => {
       if (nullPatient()) return
       weiGuiFeiYongFenXi(patient.value.inpatientNo, patient.value.admissTimes, '').then((res) => {
         if (res.weiXieDaiYuanLiuShui.length > 0 || res.weiPiPei.length > 0) {
-          console.log(res)
           weiGuiTuiFeiFenXiDialog.value = true
           weiGuiJiBenXinXi.value.inpatientNo = patient.value.inpatientNo
           weiGuiJiBenXinXi.value.admissTimes = patient.value.admissTimes
           weiGuiJiBenXinXi.value.name = patient.value.name
-          weiGuiJiBenXinXi.value.weiPiPei = res.weiPiPei
-          weiGuiJiBenXinXi.value.weiXieDaiYuanLiuShui = res.weiXieDaiYuanLiuShui
           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
       })
     }
 
@@ -431,6 +403,15 @@ export default {
         fetchProjectFees()
         fetchMedicineFees()
       }
+      ElNotification({
+        title: '提示',
+        dangerouslyUseHTMLString: true,
+        type: 'success',
+        message: ` 
+            1、如果上传不成功或者费用不一致,那么请医保科取消上传,重新上传费用。<br>          
+            2、退药品的话(长期医嘱撤销就可以了,如果不能撤销提单子)(临嘱的话使用医保入院登记里面的【医嘱退费】,然后护士执行这个条医嘱就可以了)。<br>
+            3、全部的项目都要用本系统来退费。<br>你们终于可以不用向信息科打电话了 ヾ(✿゚▽゚)ノ`,
+      })
     })
     return {
       isAdmin,
@@ -452,7 +433,6 @@ export default {
       patientIndex,
       uploadIndexText,
       cancelFees,
-      tuiFeiPiPeiClick,
       feeTableHeight,
       weiGuiTuiFeiFenXiDialog,
       weiGuiTuiFeiFenXiDialogOpen,