|
@@ -16,7 +16,8 @@
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
</el-dropdown>
|
|
|
- <el-dropdown trigger="click" @command="registor" style="margin-left: 8px">
|
|
|
+ <ReadCard :pat-no="patientId" @success="afterReadCard" />
|
|
|
+ <el-dropdown trigger="click" @command="registor">
|
|
|
<el-button type="primary">登记<i class="el-icon-arrow-down el-icon--right"></i> </el-button>
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
@@ -237,16 +238,23 @@ import { obtainBasicPersonInfo, querySpecialChronicDiseasesAccreditation, queryM
|
|
|
import { getMedTypesByFlag } from '@/api/medical-insurance/si-dict'
|
|
|
import { searchData } from '@/api/yibao/dictionary'
|
|
|
import { clone } from '../../../utils/clone'
|
|
|
+import ReadCard from '@/components/medical-insurance/readcard/Index.vue'
|
|
|
+
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ ReadCard,
|
|
|
+ },
|
|
|
setup() {
|
|
|
+ //todo 完成业务后清除原读卡数据
|
|
|
const medType = ref(null)
|
|
|
const medTypes = ref([])
|
|
|
const patientId = ref('')
|
|
|
+ const readCardBizType = ref('')
|
|
|
const times = ref(null)
|
|
|
const windowSize = store.state.app.windowSize
|
|
|
- const tableHeight = windowSize.h - 45
|
|
|
+ const tableHeight = windowSize.h - 55
|
|
|
const receiptBoxStyle = {
|
|
|
- height: tableHeight - 200 + 'px',
|
|
|
+ height: tableHeight - 280 + 'px',
|
|
|
overflowY: 'auto',
|
|
|
}
|
|
|
|
|
@@ -470,6 +478,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
const fetchReceipts = (param) => {
|
|
|
+ clearReadCardData()
|
|
|
getMzReceipts(param)
|
|
|
.then((res) => {
|
|
|
unPaidReceipts.value = res
|
|
@@ -545,6 +554,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 param = {
|
|
|
patNo: patientId.value,
|
|
@@ -553,9 +580,13 @@ export default {
|
|
|
psnType: row.psnType,
|
|
|
insuplcAdmdvs: row.insuplcAdmdvs,
|
|
|
empName: row.empName,
|
|
|
+ mdtrtCertType: readCardData.mdtrtCertType,
|
|
|
+ readCardResult: readCardData.readCardResult,
|
|
|
+ readCardBizType: readCardData.readCardBizType,
|
|
|
}
|
|
|
outpatientRegistration(param).then((res) => {
|
|
|
showInsuinfo.value = false
|
|
|
+ clearReadCardData()
|
|
|
ElMessage({
|
|
|
message: res,
|
|
|
type: 'success',
|
|
@@ -629,6 +660,9 @@ export default {
|
|
|
staffId: store.state.user.info.code,
|
|
|
patNo: patientId.value,
|
|
|
times: times.value,
|
|
|
+ mdtrtCertType: readCardData.mdtrtCertType,
|
|
|
+ readCardResult: readCardData.readCardResult,
|
|
|
+ readCardBizType: readCardData.readCardBizType,
|
|
|
}
|
|
|
outpatientPreSettlement(param).then((res) => {
|
|
|
const message = '医保处方总费用:' + res.totalCost + ',医保报销金额:' + res.fundPay + '。'
|
|
@@ -643,8 +677,12 @@ export default {
|
|
|
const param = {
|
|
|
patNo: patientId.value,
|
|
|
times: times.value,
|
|
|
+ mdtrtCertType: readCardData.mdtrtCertType,
|
|
|
+ readCardResult: readCardData.readCardResult,
|
|
|
+ readCardBizType: readCardData.readCardBizType,
|
|
|
}
|
|
|
outpatientSettlement(param).then((res) => {
|
|
|
+ clearReadCardData()
|
|
|
const message = '医保处方总费用:' + res.totalCost + ',医保报销金额:' + res.fundPay + '。'
|
|
|
ElMessageBox.alert(message, '结算成功', {
|
|
|
type: 'success',
|
|
@@ -692,6 +730,7 @@ export default {
|
|
|
medType,
|
|
|
medTypes,
|
|
|
patientId,
|
|
|
+ readCardBizType,
|
|
|
cptYbState,
|
|
|
cptInsutype,
|
|
|
cptPersType,
|
|
@@ -717,6 +756,7 @@ export default {
|
|
|
diagTypes,
|
|
|
diagItem,
|
|
|
diags,
|
|
|
+ afterReadCard,
|
|
|
addDiag,
|
|
|
deleteDiag,
|
|
|
saveDiag,
|