瀏覽代碼

违规分析

xiaochan 4 年之前
父節點
當前提交
fcc0869662

+ 0 - 4
.env.development

@@ -1,4 +0,0 @@
-ENV = 'development'
-
-VITE_BASE_URL = 'http://172.16.30.26:8706'
-VITE_SOCKET_URL = 'ws://172.16.30.26:8706/websocket/'

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

@@ -1,8 +1,14 @@
 <template>
   <el-container>
     <el-tabs>
-      <el-tab-pane label="未匹配"> </el-tab-pane>
-      <el-tab-pane label="违规退费"></el-tab-pane>
+      <el-tab-pane label="未匹配">
+        <el-table :data="weiPiPei.data"></el-table>
+      </el-tab-pane>
+      <el-tab-pane label="违规退费">
+        <el-table :data="weiGuiFeiYong.data">
+          <el-table-column label="项目编码" prop="chargeCodeMx"></el-table-column>
+        </el-table>
+      </el-tab-pane>
     </el-tabs>
   </el-container>
 </template>
@@ -46,7 +52,7 @@ export default {
       console.log(props.patient)
       console.log(props.init)
     })
-    return {}
+    return { weiPiPei, weiGuiFeiYong }
   },
 }
 </script>

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

@@ -5,6 +5,7 @@
       <el-button size="mini" icon="el-icon-upload2" type="success" @click="uploadFees">费用上传</el-button>
       <el-button size="mini" icon="el-icon-remove-outline" type="warning" :disabled="!isAdmin" @click="cancelFees">取消上传</el-button>
       <el-button size="mini" type="success" icon="el-icon-refresh" @click="tuiFeiPiPeiClick">退费匹配</el-button>
+      <el-button size="mini" type="primary" @click="weiGuiTuiFeiFenXiDialogOpen">违规费用分析</el-button>
       <el-popover placement="left" width="730" trigger="click">
         <template #reference>
           <el-button size="mini" type="warning" icon="el-icon-circle-close" plain>错误信息 ({{ errorMessages.length }}) </el-button>
@@ -95,6 +96,9 @@
         </div>
       </div>
     </el-main>
+    <el-dialog v-model="weiGuiTuiFeiFenXiDialog" title="违规费用分析">
+      <wei-gui-fei-yong-fen-xi :init="weiGuiTuiFeiInit" :patient="weiGuiJiBenXinXi"></wei-gui-fei-yong-fen-xi>
+    </el-dialog>
   </el-container>
 </template>
 
@@ -109,9 +113,11 @@ import { hospitalizationPreSettlement, uploadFeeDetail, revokeUploadFees } from
 import { setCallback } from '@/utils/websocket'
 import { getGreatestRole } from '@/utils/permission'
 import { baseinfo } from '@/data/inpatient'
-import { yiZhuTuiFeiPiPei } from '@/api/yibao/xiang-mu-lu-ru'
+import { yiZhuTuiFeiPiPei, weiGuiFeiYongFenXi } from '@/api/yibao/xiang-mu-lu-ru'
 import router from '@/router'
+import WeiGuiFeiYongFenXi from '../../../components/inpatient/WeiGuiFeiYongFenXi.vue'
 export default {
+  components: { WeiGuiFeiYongFenXi },
   setup() {
     const feeTableHeight = (store.state.app.windowSize.h - 200) / 2
     const isAdmin = getGreatestRole() < 10
@@ -373,6 +379,29 @@ export default {
       yiZhuTuiFeiPiPei(patient.value.inpatientNo, patient.value.admissTimes)
     }
 
+    ///////////////////////////////////////////// 违规退费分析 /////////////////////////////////////////////////////////////////////////
+    const weiGuiTuiFeiInit = ref(0)
+    const weiGuiTuiFeiFenXiDialog = ref(false)
+
+    const weiGuiJiBenXinXi = ref({})
+
+    const weiGuiTuiFeiFenXiDialogOpen = () => {
+      if (nullPatient()) return
+      weiGuiTuiFeiInit.value += 1
+      weiGuiFeiYongFenXi(patient.value.inpatientNo, patient.value.admissTimes).then((res) => {
+        if (res.weiXieDaiYuanLiuShui.length > 0 || res.weiPiPei.length > 0) {
+          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 = 30
+          weiGuiJiBenXinXi.value.currentPage = 1
+        }
+      })
+    }
+
     onMounted(() => {
       setCallback(socketCallback)
       if (patient.value.inpatientNo) {
@@ -402,6 +431,10 @@ export default {
       cancelFees,
       tuiFeiPiPeiClick,
       feeTableHeight,
+      weiGuiTuiFeiFenXiDialog,
+      weiGuiTuiFeiFenXiDialogOpen,
+      weiGuiJiBenXinXi,
+      weiGuiTuiFeiInit,
     }
   },
 }