浏览代码

Merge branch 'master' of https://172.16.32.165/lighter/vue-intergration-platform

lighter 2 年之前
父节点
当前提交
29a1352df3

+ 0 - 17
src/api/inpatient/yi-zhu-tui-fei.js

@@ -1,17 +0,0 @@
-import request from '@/utils/request'
-
-export function getOrderList(data) {
-  return request({
-    url: '/zhuYuanYiZhu/getOrderList',
-    method: 'post',
-    data,
-  })
-}
-
-export function yiZhuTuiFei(data) {
-  return request({
-    url: '/zhuYuanYiZhu/yiZhuTuiFei',
-    method: 'post',
-    data,
-  })
-}

+ 0 - 257
src/components/inpatient/YiZhuTuiFei.vue

@@ -1,257 +0,0 @@
-<template>
-  <el-container>
-    <el-header height="30px">
-      <el-tag>患者姓名: {{ patient.name }}</el-tag>
-      <el-tag>住院号: {{ patient.inpatientNo }}</el-tag>
-      <el-tag>床号: {{ patient.bedNo }}</el-tag>
-      <el-tag>住院次数: {{ patient.admissTimes }}</el-tag>
-      <el-tag>性别: {{ cptSex(patient.sex) }}</el-tag>
-      <br /><br />
-      医嘱号:
-      <el-input style="width: 120px" v-model="actOrderNo"></el-input>
-      医嘱名称:
-      <el-select v-model="orderCode" remote filterable clearable :remote-method="remoteMethodOrderCode">
-        <el-option v-for="item in orderCodeNameData" :key="item.code" :label="item.name" :value="item.code">
-          <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
-          <el-divider direction="vertical"></el-divider>
-          <span>{{ item.name }}</span>
-        </el-option>
-      </el-select>
-      医嘱时间:
-      <el-date-picker
-        v-model="dateRange"
-        type="daterange"
-        range-separator="至"
-        start-placeholder="开始日期"
-        end-placeholder="结束日期"
-        :shortcuts="shortcuts"
-        style="width: 260px"
-      ></el-date-picker>
-      <el-button style="margin-left: 10px" type="primary" icon="Search" @click="queryActOrder">搜索</el-button>
-      <el-button style="margin-left: 10px" type="danger" icon="Delete" @click="yiZhuTuiFeiClick">医嘱退费 </el-button>
-      <el-button style="margin-left: 10px" type="warning" icon="Close" @click="closeDialog">关闭</el-button>
-    </el-header>
-    <el-main style="margin-top: 50px">
-      <el-table :data="yzActOrderData" :height="tableHeight - 20" stripe highlight-current-row @selection-change="selectionTuiFeiYiZhu">
-        <el-table-column type="selection"></el-table-column>
-        <el-table-column prop="actOrderNo" label="医嘱号"></el-table-column>
-        <el-table-column prop="orderCode" label="医嘱编码"></el-table-column>
-        <el-table-column prop="orderName" label="医嘱名称"></el-table-column>
-        <el-table-column prop="drugQuan" label="执行用量"></el-table-column>
-        <el-table-column prop="supplyCodeName" label="给药方式"></el-table-column>
-        <el-table-column prop="frequCode" label="频次"></el-table-column>
-        <el-table-column prop="physicianName" label="医生"></el-table-column>
-        <el-table-column prop="startTime" label="开始时间" width="80px"></el-table-column>
-        <el-table-column prop="endTime" label="结束时间" width="80px"></el-table-column>
-        <el-table-column prop="dose" label="计量"></el-table-column>
-        <el-table-column prop="doseUnit" label="计量单位"></el-table-column>
-        <el-table-column prop="groupNo" label="药房号"></el-table-column>
-        <el-table-column prop="drugFlagName" label="医嘱类型"></el-table-column>
-        <el-table-column prop="discription" label="描述"></el-table-column>
-        <el-table-column prop="tfFlag" label="是否退费">
-          <template #default="scope">
-            <span v-html="tfFlag(scope.row.tfFlag)"></span>
-          </template>
-        </el-table-column>
-      </el-table>
-      <el-pagination
-        @size-change="handleSizeChange"
-        @current-change="handleCurrentChange"
-        :current-page="currentPage"
-        :page-sizes="[20, 30, 40, 50, 100]"
-        :page-size="pageSize"
-        layout="total, sizes, prev, pager, next, jumper"
-        :total="total"
-        style="margin-top: 5px"
-      ></el-pagination>
-    </el-main>
-  </el-container>
-</template>
-
-<script>
-import { onMounted, ref, watch } from '@vue/runtime-core'
-import store from '@/store'
-import { getChargeCode } from '@/api/inpatient/xiang-mu-lu-ru'
-import { cptSex } from '@/utils/computed'
-import { shortcuts } from '@/data/shortcuts'
-import { getDateRangeFormatDate } from '@/utils/date'
-import { getOrderList, yiZhuTuiFei } from '@/api/inpatient/yi-zhu-tui-fei'
-import { ElMessage, ElMessageBox } from 'element-plus'
-import { baseinfo } from '@/data/inpatient'
-import { computed } from 'vue'
-
-export default {
-  props: {
-    initYiZhu: {
-      type: Number,
-    },
-  },
-  setup(props, cxt) {
-    const windowSize = store.state.app.windowSize
-    const tableHeight = windowSize.h - 120
-
-    const actOrderNo = ref('')
-    const orderCode = ref('')
-    // 根据医嘱名称来查询
-    const orderCodeNameData = ref([])
-    const dateRange = ref(null)
-    // 退费编码
-    const tuiFeiCode = ref(3)
-
-    const currentPage = ref(1)
-    const pageSize = ref(20)
-    const total = ref(0)
-
-    const patient = computed(() => {
-      return baseinfo()
-    })
-
-    const yzActOrderData = ref([])
-
-    const handleSizeChange = (val) => {
-      pageSize.value = val
-      queryActOrder()
-    }
-
-    const handleCurrentChange = (val) => {
-      currentPage.value = val
-      queryActOrder()
-    }
-
-    /**
-     * 远程搜索
-     */
-    const remoteMethodOrderCode = (val) => {
-      if (val.length >= 2) {
-        getChargeCode(val).then((res) => {
-          orderCodeNameData.value = res
-        })
-      }
-    }
-
-    const closeDialog = () => {
-      cxt.emit('closeYiZhuTuiFei')
-    }
-
-    watch(
-      () => props.initYiZhu,
-      () => {
-        orderCode.value = ''
-        actOrderNo.value = ''
-        dateRange.value = null
-        currentPage.value = 1
-        pageSize.value = 20
-        queryActOrder()
-      }
-    )
-
-    onMounted(() => {
-      queryActOrder()
-    })
-
-    const queryActOrder = () => {
-      let date = getDateRangeFormatDate(dateRange.value)
-      let queryTerm = {
-        queryStartTime: date.startTime,
-        queryEndTime: date.endTime,
-        orderCode: orderCode.value,
-        actOrderNo: actOrderNo.value,
-        inpatientNo: patient.value.inpatientNo,
-        admissTimes: patient.value.admissTimes,
-        currentPage: currentPage.value,
-        pageSize: pageSize.value,
-        tfFlag: tuiFeiCode.value,
-      }
-      getOrderList(queryTerm)
-        .then((res) => {
-          total.value = res.total
-          yzActOrderData.value = res.records
-        })
-        .catch(() => {
-          total.value = 0
-          yzActOrderData.value = []
-        })
-    }
-
-    // 获取退费医嘱
-    const tuiFaiYiZhu = ref([])
-
-    const selectionTuiFeiYiZhu = (val) => {
-      tuiFaiYiZhu.value = val
-    }
-
-    // 开始退费
-    const yiZhuTuiFeiClick = () => {
-      if (tuiFaiYiZhu.value.length <= 0) {
-        return ElMessage.error({
-          message: '请先选择需要退费的数据',
-          showClose: true,
-        })
-      }
-
-      ElMessageBox.confirm(`共${tuiFaiYiZhu.value.length}条数据退费,请认真审核。`, '提示', {
-        type: 'warning',
-      })
-        .then(() => {
-          let tuiFei = {
-            inpatientNo: patient.inpatientNo,
-            admissTimes: patient.admissTimes,
-            tuiFeiList: tuiFaiYiZhu.value,
-          }
-          yiZhuTuiFei(tuiFei).then((res) => {
-            queryActOrder()
-          })
-        })
-        .catch(() => {})
-    }
-
-    // 监听如果选择的退费类型 那么就要从第一页开始 不然会有bug
-    watch(
-      () => tuiFeiCode.value,
-      () => {
-        currentPage.value = 1
-        queryActOrder()
-      }
-    )
-
-    return {
-      actOrderNo,
-      orderCode,
-      orderCodeNameData,
-      remoteMethodOrderCode,
-      closeDialog,
-      patient,
-      cptSex,
-      dateRange,
-      shortcuts,
-      queryActOrder,
-      total,
-      yzActOrderData,
-      tableHeight,
-      currentPage,
-      pageSize,
-      handleCurrentChange,
-      handleSizeChange,
-      selectionTuiFeiYiZhu,
-      yiZhuTuiFeiClick,
-      tfFlag,
-      tuiFeiCode,
-    }
-  },
-}
-
-function tfFlag(val) {
-  switch (val) {
-    case 0:
-      return `<span style="color: #67C23A">未退费</span>`
-    case 1:
-      return `<span style="color: #F56C6C">已退费</span>`
-    case 2:
-      return `<span style="color: #F56C6C">退费数据</span>`
-    default:
-      return `<span style="color: #909399">未知</span>`
-  }
-}
-</script>
-
-<style></style>

+ 0 - 3
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor.vue

@@ -214,8 +214,6 @@
               active-value="1"
               inactive-value="0"/>
         </div>
-
-
         <div>
           录入/确认/停止
           <div style="display: inline-block">
@@ -688,7 +686,6 @@ const toAddAnOrder = async () => {
   if (stringIsBlank(props.patientInfo.inpatientNo)) {
     BizException(ExceptionEnum.MESSAGE_ERROR, '请先选择患者')
   }
-
   if (stringIsBlank(yiZhuData.value.actOrderNo) || yiZhuData.value.actOrderNo === 'tempOrderNo') {
     BizException(ExceptionEnum.MESSAGE_ERROR, '请先选择一个医嘱')
   }

+ 0 - 15
src/views/medical-insurance/inpatient/AdmRegistration.vue

@@ -6,7 +6,6 @@
       <el-button icon="Top" type="success" @click="checkRegisterDatetime">医保入院登记</el-button>
       <el-button icon="Bottom" type="danger" @click="beforeCancelRegister">撤销入院登记</el-button>
       <el-button icon="Coin" type="success" @click="xiangMuLuRuRouter">项目录入</el-button>
-      <el-button v-if="greatestRole < 8" icon="Warning" type="danger" @click="yiZhuTuiFeiClick">医嘱退费</el-button>
     </div>
     <div style="margin-top: 4px">
       <el-tag type="info">病人基本信息</el-tag>
@@ -243,10 +242,6 @@
     <el-dialog v-model="openXmlr" :fullscreen="true" destroy-on-close title="项目录入" @close="openXmlr = false">
       <Xmlr @closeXmlr="openXmlr = false"/>
     </el-dialog>
-    <el-dialog v-model="openYiZhuTuiFei" :fullscreen="true" title="医嘱退费">
-      <YiZhuTuiFei :initYiZhu="initYiZhu" @closeYiZhuTuiFei="openYiZhuTuiFei = false"/>
-    </el-dialog>
-
     <el-dialog v-model="showSearchSpecialDiag" :close-on-click-modal="false" title="医保患者病种录入" width="60%">
       <div style="margin: -16px 0 4px 2px; height: 22px; line-height: 22px">
         患者当前病种:
@@ -362,7 +357,6 @@ import {admissRegistration, cancelInjuryRegister, getPersonBaseinfo} from '@/api
 import {selectAdmissApply, submitAdmissApply} from '@/api/medical-insurance/si-admiss-apply'
 import {baseinfo} from '@/data/inpatient'
 import Xmlr from '@/components/inpatient/XiangMuLuRu.vue'
-import YiZhuTuiFei from '@/components/inpatient/YiZhuTuiFei.vue'
 import Assignmentinfo from '@/components/medical-insurance/assigninfo/Index.vue'
 import Search from '@/components/search/Index.vue'
 import ReadCard from '@/components/medical-insurance/readcard/Index.vue'
@@ -840,15 +834,6 @@ const xiangMuLuRuRouter = () => {
   openXmlr.value = true
 }
 
-// 医嘱退费
-const initYiZhu = ref(0)
-const openYiZhuTuiFei = ref(false)
-const yiZhuTuiFeiClick = () => {
-  if (nullPatient()) return
-  initYiZhu.value += 1
-  openYiZhuTuiFei.value = true
-}
-
 const currentPage = ref(1)
 const handleCurrentChange = (val) => {
   currentPage.value = val