123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473 |
- <template>
- <div class="layout_display_flex_y">
- <div class="m-b_8px round-header">
- <el-select v-model="inOutFlag" style="width: 80px" @change="handleInOutStatusChange">
- <el-option :value="1" label="未结算"></el-option>
- <el-option :value="2" label="已结算"></el-option>
- </el-select>
- <span v-show="inOutFlag === 2">
- <el-date-picker type="daterange" v-model="disdateRange" style="width: 180px"
- @change="handleDisdateRangeChange"></el-date-picker>
- </span>
- <span v-show="inOutFlag === 1">
- <el-select v-model="medType" placeholder="医疗类别" style="width: 100px" clearable>
- <el-option v-for="item in trueMedTypes" :key="item.code" :label="item.name" :value="item.code"></el-option>
- </el-select>
- <el-select v-model="statusFlag" placeholder="审核状态" style="width: 90px" clearable>
- <el-option v-for="item in statusFlags" :key="item.code" :label="item.name" :value="item.code"></el-option>
- </el-select>
- </span>
- <el-input clearable v-model="patNo" placeholder="住院号筛选" style="width: 100px"></el-input>
- <el-divider direction="vertical"></el-divider>
- <el-button type="success" icon="Document" :disabled="currentApply.medType === '42'" @click="feeDtle">
- 医保费用明细
- </el-button>
- <el-button type="primary" icon="User" @click="checkIdInfo">身份信息</el-button>
- <el-button type="primary" icon="Tickets" :disabled="injuryMode" @click="beforeGetTreatinfo">待遇检查</el-button>
- <el-button type="success" icon="Check" @click="beforeHandleApply(true)">审核通过</el-button>
- <el-button type="danger" icon="Close" @click="beforeHandleApply(false)">审核不通过</el-button>
- </div>
- <div class="layout_display_flex">
- <div style="margin-right: 8px">
- <el-table
- :data="cptApplies"
- height="100%"
- stripe
- highlight-current-row
- @row-click="handleClickSettleApply">
- <el-table-column label="姓名" width="65">
- <template #default="scope">
- <div style="display: flex; align-items: center">
- <img class="sex-icon" :src="scope.row.gender === 1 ? maleIcon : femaleIcon"/>
- {{ scope.row.name }}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="住院号" width="80" align="center">
- <template #default="scope">
- <span v-html="getStatusFlag(scope.row.status, scope.row.patNo, scope.row.times)"></span>
- </template>
- </el-table-column>
- <el-table-column prop="wardName" label="病房" width="100"></el-table-column>
- <el-table-column label="历史" width="40">
- <template #default="scope">
- <el-button :icon="Search" circle @click.stop="getApplyHistories(scope.row)"></el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div class="layout_display_flex_y layout_flex_1-x">
- <el-divider content-position="left" class="el-divider_shorter">
- 患者基本信息
- </el-divider>
- <div>
- <span v-show="currentApply.patNo" style="margin-left: 20px">
- <span>明细总费用:</span>
- <el-tag type="info" effect="dark">{{ currentApply.detailTotalCharge }}</el-tag>
- <span style="margin-left: 12px">账页总费用:</span>
- <el-tag type="info" effect="dark">{{ currentApply.ledgerTotalCharge }}</el-tag>
- <span style="margin-left: 12px">医保总费用:</span>
- <el-tag type="info" effect="dark">{{ currentApply.medinsTotalCharge }}</el-tag>
- <span style="margin-left: 12px">医保报销费用:</span>
- <el-tag type="info" effect="dark">{{ currentApply.fundpay }} , {{
- currentApply.fundpayPercentage
- }}</el-tag>
- </span>
- <el-descriptions :column="4" border>
- <el-descriptions-item>
- <template #label> 住院号</template>
- {{ patient.inpatientNo }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 住院次数</template>
- {{ patient.admissTimes }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 身份证号</template>
- {{ patient.socialNo }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 姓名</template>
- {{ patient.name }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 性别</template>
- {{ patient.sex ? (patient.sex === 1 ? '男' : '女') : '' }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 病区</template>
- {{ patient.admissWardName }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 小科室</template>
- {{ patient.smallDeptName }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 入院医生</template>
- {{ patient.admissPhysicianName }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 管床医生</template>
- {{ patient.referPhysicianName }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 床位</template>
- {{ patient.bedNo }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 入院日期</template>
- {{ patient.admissDate }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 登记日期</template>
- {{ patient.ybRegisterDate }}
- </el-descriptions-item>
- </el-descriptions>
- </div>
- <el-divider content-position="left" class="el-divider_shorter">
- 出院结算/中间断账申请信息
- </el-divider>
- <div>
- <el-descriptions :column="4" border>
- <el-descriptions-item>
- <template #label> 申请类别</template>
- {{ currentApply.type === 1 ? '出院结算' : '中间断账' }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> {{ currentApply.type === 1 ? '出院时间' : '断账时间' }}</template>
- {{ currentApply.settleDatetime }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 医疗类别</template>
- {{ currentApply.medTypeName }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 险种类型</template>
- {{ currentApply.insutypeName }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 参保地区</template>
- {{ currentApply.insuplcAdmdvsName }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 申请人</template>
- {{ currentApply.inputName }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 申请时间</template>
- {{ currentApply.inputDatetime }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 申请理由</template>
- {{ currentApply.inputComment }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 使用个账</template>
- {{ filterAcctUsedFlag(currentApply.acctUsedFlag) }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 处理人</template>
- {{ currentApply.handleStaffName }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 处理时间</template>
- {{ currentApply.handleDatetime }}
- </el-descriptions-item>
- <el-descriptions-item>
- <template #label> 处理意见</template>
- {{ currentApply.handleComment }}
- </el-descriptions-item>
- </el-descriptions>
- </div>
- <div class="layout_display_flex layout_flex_1-y">
- <div class="layout_display_flex_y layout_flex_1-x" style="margin-right: 8px">
- <el-divider content-position="left" class="el-divider_shorter">
- 医保入院诊断
- </el-divider>
- <div class="layout_flex_1-y">
- <el-table :data="zyInYbDiags" stripe height="100%">
- <el-table-column prop="diagNo" label="序号" width="35"></el-table-column>
- <el-table-column prop="icdCode" label="诊断编码" width="80"></el-table-column>
- <el-table-column prop="icdText" label="诊断名称"></el-table-column>
- <el-table-column prop="opDate" label="诊断时间"></el-table-column>
- <el-table-column prop="operName" label="录入人" width="50"></el-table-column>
- </el-table>
- </div>
- </div>
- <div class="layout_display_flex_y layout_flex_1-x">
- <el-divider content-position="left" class="el-divider_shorter">
- 医保出院诊断
- </el-divider>
- <div class="layout_flex_1-y">
- <el-table :data="zyDisDiags" stripe height="100%">
- <el-table-column prop="disDiagNo" label="序号" width="35"></el-table-column>
- <el-table-column prop="disDiag" label="诊断编码" width="80"></el-table-column>
- <el-table-column prop="disDiagComment" label="诊断名称"></el-table-column>
- <el-table-column prop="opDiagDate" label="诊断时间"></el-table-column>
- <el-table-column prop="opName" label="录入人" width="50"></el-table-column>
- <el-table-column prop="ssfz" label="分值"></el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- <el-divider content-position="left" class="el-divider_shorter">
- 患者手术记录
- </el-divider>
- <div class="layout_flex_1-y">
- <el-table :data="zySurgeries" stripe height="100%">
- <el-table-column prop="ssxh" label="手术序号"></el-table-column>
- <el-table-column prop="ssbm" label="手术编码"></el-table-column>
- <el-table-column prop="ssmc" label="手术名称"></el-table-column>
- <el-table-column prop="ssrq" label="手术时间"></el-table-column>
- <el-table-column prop="ssysName" label="手术医师"></el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </div>
- <Insuinfo v-if="showPsnInsuinfo" :params="checkTreatmentParams" @close="showPsnInsuinfo = false" @row-click="checkTreatmentinfos"/>
- <Treatmentinfo v-if="showTreatmentinfos" :params="checkTreatmentParams" @close="showTreatmentinfos = false"/>
- <MedfeeAnalyse v-if="showFeeDetl" type="unsettled" :mdtrt-id="currentApply.mdtrtId" @close="showFeeDetl = false"/>
- <IdentifyImage v-if="showIdCardImg" :pat-no="currentApply.patNo" :times="currentApply.times" @close="showIdCardImg = false"/>
- <el-drawer
- v-model="showHistories"
- title="审核历史"
- direction="ltr"
- size="35%"
- >
- <el-timeline>
- <el-timeline-item v-for="item in histories" :timestamp="item.handleDatetime" placement="top">
- <el-card>
- <h4>{{ item.handleComment || '无' }}</h4>
- <p style="width: 100%; text-align: right">处理人:{{ item.handleStaffName || '未处理' }}</p>
- </el-card>
- </el-timeline-item>
- </el-timeline>
- </el-drawer>
- </template>
- <script setup>
- import {computed, onActivated, ref} from 'vue'
- import maleIcon from '@/assets/male-icon.png'
- import femaleIcon from '@/assets/female-icon.png'
- import {ElMessage, ElMessageBox} from 'element-plus'
- import {
- selectUnhandledApplies,
- selectPatientInfo,
- handleApply,
- selectApplyHistories,
- selectSettledApplies
- } from '@/api/medical-insurance/si-settle-apply'
- import {statusFlags, trueMedTypes} from '../../../data/index'
- import Insuinfo from '../../../components/medical-insurance/insuinfo/Index.vue'
- import Treatmentinfo from '../../../components/medical-insurance/treatmentinfo/Index.vue'
- import MedfeeAnalyse from '../../../components/medical-insurance/medfee-analyse/Index.vue'
- import IdentifyImage from '../../../components/inpatient/IdentifyImage.vue'
- import {Search} from "@element-plus/icons-vue";
- import {formatDate, getOneMonthOffset} from "@/utils/date";
- import {useMedinsStore} from "@/pinia/medins-store";
- const currentApply = ref({})
- const showFeeDetl = ref(false)
- const inOutFlag = ref(1)
- const disdateRange = ref([])
- const medType = ref('')
- const statusFlag = ref('')
- const patNo = ref('')
- const patient = ref({})
- const zyInYbDiags = ref([])
- const zyDisDiags = ref([])
- const zySurgeries = ref([])
- const allApplies = ref([])
- const cptApplies = computed(() => {
- return allApplies.value.filter((itm) => {
- if ('' !== statusFlag.value) {
- return medType.value ? (itm.medType === medType.value && itm.status === statusFlag.value && itm.patNo.indexOf(patNo.value) > -1)
- : (itm.status === statusFlag.value && itm.patNo.indexOf(patNo.value) > -1)
- } else {
- return medType.value ? (itm.medType === medType.value && itm.patNo.indexOf(patNo.value) > -1) : itm.patNo.indexOf(patNo.value) > -1
- }
- })
- })
- const feeDtle = () => {
- if (!currentApply.value.patNo) {
- ElMessage({
- message: '请先选择患者',
- type: 'warning',
- duration: 2500,
- showClose: true,
- })
- return
- }
- showFeeDetl.value = true
- }
- const medInsStore = useMedinsStore()
- const injuryMode = computed(() => {
- return medInsStore.isInjuryMode
- })
- const currentRow = ref({})
- const handleClickSettleApply = (row) => {
- row.inOutFlag = inOutFlag.value
- medInsStore.setInjuryMode(row.medType === '42')
- selectPatientInfo(row).then((res) => {
- currentRow.value = row
- patient.value = res.patient
- currentApply.value = res.apply
- zyInYbDiags.value = res.indiags
- zyDisDiags.value = res.disdiags
- zySurgeries.value = res.surgeries
- if (res.warning) {
- ElMessage({
- message: res.warning,
- type: 'warning',
- duration: 6000,
- showClose: true,
- })
- }
- }).catch(() => {
- patient.value = {}
- currentApply.value = {}
- zyInYbDiags.value = []
- zyDisDiags.value = []
- zySurgeries.value = []
- })
- }
- const beforeHandleApply = (approve) => {
- if (!currentApply.value.patNo) {
- ElMessage({
- message: '请先选择患者',
- type: 'warning',
- duration: 2500,
- showClose: true,
- })
- } else {
- const title = approve ? '审核通过' : '审核不通过'
- let inputVal = approve ? '同意办理。' : ''
- ElMessageBox.prompt('请输入处理意见:', title, {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- inputValue: inputVal,
- }).then(({value}) => {
- currentApply.value.status = approve ? 1 : 2
- currentApply.value.handleComment = value
- handleApply(currentApply.value).then((res) => {
- currentRow.value.status = currentApply.value.status
- ElMessage({
- message: res,
- type: 'success',
- duration: 2500,
- showClose: true,
- })
- })
- }).catch(() => {})
- }
- }
- const showIdCardImg = ref(false)
- const checkIdInfo = () => {
- if (!currentApply.value.patNo) {
- ElMessage({
- message: '请先选择患者',
- type: 'warning',
- duration: 2500,
- showClose: true,
- })
- } else {
- showIdCardImg.value = true
- }
- }
- const showPsnInsuinfo = ref(false)
- const showTreatmentinfos = ref(false)
- const checkTreatmentParams = ref({})
- const beforeGetTreatinfo = () => {
- checkTreatmentParams.value = {
- medType: currentApply.value.medType,
- patNo: currentApply.value.patNo,
- times: currentApply.value.times,
- ledgerSn: currentApply.value.ledgerSn,
- socialNo: patient.value.socialNo,
- name: patient.value.name,
- admdvs: patient.value.admdvs,
- }
- showPsnInsuinfo.value = true
- }
- const checkTreatmentinfos = (row) => {
- checkTreatmentParams.value.psnNo = row.psnNo
- checkTreatmentParams.value.begntime = patient.value.ybRegisterDate
- checkTreatmentParams.value.insutype = row.insutype
- showPsnInsuinfo.value = false
- showTreatmentinfos.value = true
- }
- const showHistories = ref(false)
- const histories = ref([])
- const getApplyHistories = (row) => {
- selectApplyHistories(row).then(res => {
- histories.value = res
- showHistories.value = true
- })
- }
- const handleInOutStatusChange = (val) => {
- if (val === 1) {
- selectUnhandledApplies().then((res) => {
- allApplies.value = res
- });
- } else {
- const params = {start: disdateRange.value[0], end: disdateRange.value[1]}
- selectSettledApplies(params).then(res => {
- allApplies.value = res
- })
- }
- }
- const handleDisdateRangeChange = (val) => {
- disdateRange.value[0] = formatDate(val[0])
- disdateRange.value[1] = formatDate(val[1])
- const params = {start: disdateRange.value[0], end: disdateRange.value[1]}
- selectSettledApplies(params).then(res => {
- allApplies.value = res
- })
- }
- onActivated(() => {
- selectUnhandledApplies().then((res) => {
- allApplies.value = res
- })
- const month = getOneMonthOffset()
- disdateRange.value = [month.start, month.end]
- })
- const getStatusFlag = (status, patNo, times) => {
- // 0:撤销-黑色,1:待审核-橙色,2:已审核-绿色,9:未通过-红色,null/-1:未提交-灰色
- switch (status) {
- case 0:
- return `<span style="color: gray">${patNo}_${times}</span>`
- case 1:
- return `<span style="color: green">${patNo}_${times}</span>`
- case 2:
- return `<span style="color: red">${patNo}_${times}</span>`
- }
- }
- function filterAcctUsedFlag(val) {
- if (!val) {
- return '';
- }
- switch (val) {
- case '0':
- return '不使用个账'
- case '1':
- return '使用本人个账'
- case '2':
- return '使用共济人个账'
- }
- }
- </script>
|