|
@@ -17,12 +17,13 @@
|
|
|
<el-button type="primary" icon="Upload" @click="saveVerify(1)">保存首页</el-button>
|
|
|
<el-button type="success" icon="Printer" @click="beforePrint(1)">打印正面</el-button>
|
|
|
<el-button type="success" icon="Printer" @click="beforePrint(2)">打印反面</el-button>
|
|
|
+ <el-button type="danger" icon="Refresh" @click="renewSheet">重新生成病案</el-button>
|
|
|
<el-button type="primary" icon="PieChart" @click="setlUplaodClick" v-if="inOutStatus === 2">结算清单质控
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<template #aside>
|
|
|
<el-table ref="asideTable" :data="overview" :height="tableHeight" stripe highlight-current-row
|
|
|
- @row-click="fetchSheetInfo">
|
|
|
+ @row-click="handleClickOverview">
|
|
|
<el-table-column prop="bedNo" label="床" width="30"></el-table-column>
|
|
|
<el-table-column label="姓名" width="70">
|
|
|
<template #default="scope">
|
|
@@ -990,8 +991,7 @@ import {
|
|
|
getSsfzSurgeriesByIcd,
|
|
|
increaseDiagWeight,
|
|
|
selectSiDiagByBaDiag,
|
|
|
- isMedinsSetl,
|
|
|
-} from '@/api/case-front-sheet'
|
|
|
+ isMedinsSetl} from '@/api/case-front-sheet'
|
|
|
import maleIcon from '@/assets/male-icon.png'
|
|
|
import femaleIcon from '@/assets/female-icon.png'
|
|
|
import {ElMessage, ElNotification} from 'element-plus'
|
|
@@ -1059,7 +1059,7 @@ const searchPatient = () => {
|
|
|
})
|
|
|
} else {
|
|
|
const currentPatient = overview.value[patientIndex]
|
|
|
- fetchSheetInfo(currentPatient)
|
|
|
+ handleClickOverview(currentPatient)
|
|
|
smoothScrollTableColumn(asideTable.value, patientIndex, currentPatient)
|
|
|
}
|
|
|
}
|
|
@@ -1113,6 +1113,13 @@ const fetchOverview = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const currentRow = ref({})
|
|
|
+
|
|
|
+const handleClickOverview = (row) => {
|
|
|
+ currentRow.value = row
|
|
|
+ fetchSheetInfo(row)
|
|
|
+}
|
|
|
+
|
|
|
const fetchSheetInfo = (row) => {
|
|
|
if (row.bah !== patient.value.bah || row.times !== patient.value.admissTimes) {
|
|
|
forceVerifies.value = []
|
|
@@ -1120,12 +1127,19 @@ const fetchSheetInfo = (row) => {
|
|
|
}
|
|
|
row.inOutFlag = inOutStatus.value
|
|
|
getSheetInfo(row).then((res) => {
|
|
|
+ currentRow.value.renew = false
|
|
|
patient.value = res
|
|
|
patient.value.bedNo = row.bedNo
|
|
|
patient.value.sex = row.sex
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const renewSheet = () => {
|
|
|
+ patient.value = {}
|
|
|
+ currentRow.value.renew = true
|
|
|
+ fetchSheetInfo(currentRow.value)
|
|
|
+}
|
|
|
+
|
|
|
const currentSRPage = ref(1)
|
|
|
const showSearch = ref(false)
|
|
|
const insertDiag = ref(false)
|
|
@@ -1723,19 +1737,18 @@ const beforePrint = (page) => {
|
|
|
sheet: patient.value,
|
|
|
page: page
|
|
|
}
|
|
|
- executePrintVerify(param)
|
|
|
- .then(() => {
|
|
|
+ executePrintVerify(param).then(() => {
|
|
|
execPrint(page)
|
|
|
- })
|
|
|
- .catch((e) => {
|
|
|
- forceVerifies.value = e.data.force
|
|
|
- adviceVerifies.value = e.data.advice
|
|
|
- showMessageDrawer.value = true
|
|
|
- if (e.data.force.length === 0) {
|
|
|
- execPrint(page)
|
|
|
- }
|
|
|
- })
|
|
|
+ }).catch((e) => {
|
|
|
+ forceVerifies.value = e.data.force
|
|
|
+ adviceVerifies.value = e.data.advice
|
|
|
+ showMessageDrawer.value = true
|
|
|
+ if (e.data.force.length === 0) {
|
|
|
+ execPrint(page)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
+
|
|
|
const execPrint = (page) => {
|
|
|
const LODOP = getLodop()
|
|
|
const prntStyle = `<style>*{font-size:10pt} table,th,td {border: 1px solid black;border-collapse: collapse;} td,th {height: 24px;padding-left: 4px;}</style>`
|