|
@@ -17,7 +17,9 @@
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-button type="primary" @click="fetchHistoryReceipts">历史处方</el-button>
|
|
<el-button type="primary" @click="fetchHistoryReceipts">历史处方</el-button>
|
|
|
|
|
|
- <el-dropdown trigger="click" @command="registor" style="margin-left: 8px">
|
|
|
|
|
|
+ <ReadCard :pat-no="patNo" @success="afterReadCard" />
|
|
|
|
+
|
|
|
|
+ <el-dropdown trigger="click" @command="registor">
|
|
<el-button type="primary">登记<i class="el-icon-arrow-down el-icon--right"></i> </el-button>
|
|
<el-button type="primary">登记<i class="el-icon-arrow-down el-icon--right"></i> </el-button>
|
|
<template #dropdown>
|
|
<template #dropdown>
|
|
<el-dropdown-menu>
|
|
<el-dropdown-menu>
|
|
@@ -133,7 +135,11 @@ import { ElMessage, ElMessageBox } from 'element-plus'
|
|
import { getMedTypesByFlag } from '@/api/medical-insurance/si-dict'
|
|
import { getMedTypesByFlag } from '@/api/medical-insurance/si-dict'
|
|
import { shortcuts } from '@/data/shortcuts'
|
|
import { shortcuts } from '@/data/shortcuts'
|
|
import { getDateRangeFormatDate } from '@/utils/date'
|
|
import { getDateRangeFormatDate } from '@/utils/date'
|
|
|
|
+import ReadCard from '@/components/medical-insurance/readcard/Index.vue'
|
|
export default {
|
|
export default {
|
|
|
|
+ components: {
|
|
|
|
+ ReadCard,
|
|
|
|
+ },
|
|
setup() {
|
|
setup() {
|
|
const windowSize = store.state.app.windowSize
|
|
const windowSize = store.state.app.windowSize
|
|
const tableHeight = windowSize.h - 70
|
|
const tableHeight = windowSize.h - 70
|
|
@@ -193,6 +199,7 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ clearReadCardData()
|
|
historyReceipts.value = []
|
|
historyReceipts.value = []
|
|
currentRow.value = {}
|
|
currentRow.value = {}
|
|
const dates = getDateRangeFormatDate(dateRange.value)
|
|
const dates = getDateRangeFormatDate(dateRange.value)
|
|
@@ -242,6 +249,24 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ const readCardData = reactive({
|
|
|
|
+ mdtrtCertType: null,
|
|
|
|
+ readCardResult: null,
|
|
|
|
+ readCardBizType: null,
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ const clearReadCardData = () => {
|
|
|
|
+ readCardData.mdtrtCertType = null
|
|
|
|
+ readCardData.readCardResult = null
|
|
|
|
+ readCardData.readCardBizType = null
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const afterReadCard = (result) => {
|
|
|
|
+ readCardData.mdtrtCertType = result.mdtrtCertType
|
|
|
|
+ readCardData.readCardResult = result.readCardResult
|
|
|
|
+ readCardData.readCardBizType = result.readCardBizType
|
|
|
|
+ }
|
|
|
|
+
|
|
const handleClickInsuinfo = (row) => {
|
|
const handleClickInsuinfo = (row) => {
|
|
const param = {
|
|
const param = {
|
|
patNo: patNo.value,
|
|
patNo: patNo.value,
|
|
@@ -250,8 +275,12 @@ export default {
|
|
psnType: row.psnType,
|
|
psnType: row.psnType,
|
|
insuplcAdmdvs: row.insuplcAdmdvs,
|
|
insuplcAdmdvs: row.insuplcAdmdvs,
|
|
empName: row.empName,
|
|
empName: row.empName,
|
|
|
|
+ mdtrtCertType: readCardData.mdtrtCertType,
|
|
|
|
+ readCardResult: readCardData.readCardResult,
|
|
|
|
+ readCardBizType: readCardData.readCardBizType,
|
|
}
|
|
}
|
|
outpatientRegistration(param).then((res) => {
|
|
outpatientRegistration(param).then((res) => {
|
|
|
|
+ clearReadCardData()
|
|
showInsuinfo.value = false
|
|
showInsuinfo.value = false
|
|
ElMessage({
|
|
ElMessage({
|
|
message: res,
|
|
message: res,
|
|
@@ -367,6 +396,9 @@ export default {
|
|
staffId: store.state.user.info.code,
|
|
staffId: store.state.user.info.code,
|
|
patNo: patNo.value,
|
|
patNo: patNo.value,
|
|
times: currentRow.value.times,
|
|
times: currentRow.value.times,
|
|
|
|
+ mdtrtCertType: readCardData.mdtrtCertType,
|
|
|
|
+ readCardResult: readCardData.readCardResult,
|
|
|
|
+ readCardBizType: readCardData.readCardBizType,
|
|
}
|
|
}
|
|
outpatientPreSettlement(param).then((res) => {
|
|
outpatientPreSettlement(param).then((res) => {
|
|
const message = '医保处方总费用:' + res.totalCost + ',医保报销金额:' + res.fundPay + '。'
|
|
const message = '医保处方总费用:' + res.totalCost + ',医保报销金额:' + res.fundPay + '。'
|
|
@@ -441,8 +473,12 @@ export default {
|
|
patNo: patNo.value,
|
|
patNo: patNo.value,
|
|
times: currentRow.value.times,
|
|
times: currentRow.value.times,
|
|
saved: 1,
|
|
saved: 1,
|
|
|
|
+ mdtrtCertType: readCardData.mdtrtCertType,
|
|
|
|
+ readCardResult: readCardData.readCardResult,
|
|
|
|
+ readCardBizType: readCardData.readCardBizType,
|
|
}
|
|
}
|
|
outpatientSettlement(param).then((res) => {
|
|
outpatientSettlement(param).then((res) => {
|
|
|
|
+ clearReadCardData()
|
|
const message = '医保处方总费用:' + res.totalCost + ',医保报销金额:' + res.fundPay + '。'
|
|
const message = '医保处方总费用:' + res.totalCost + ',医保报销金额:' + res.fundPay + '。'
|
|
ElMessageBox.alert(message, '结算成功', {
|
|
ElMessageBox.alert(message, '结算成功', {
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -514,6 +550,7 @@ export default {
|
|
showSpcChrAccts,
|
|
showSpcChrAccts,
|
|
shortcuts,
|
|
shortcuts,
|
|
dateRange,
|
|
dateRange,
|
|
|
|
+ afterReadCard,
|
|
colorStatus,
|
|
colorStatus,
|
|
fetchHistoryReceipts,
|
|
fetchHistoryReceipts,
|
|
fetchHistoryReceiptDetail,
|
|
fetchHistoryReceiptDetail,
|