|
@@ -7,7 +7,7 @@
|
|
|
range-separator="至"
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
|
- :shortcuts="shortcuts"
|
|
|
+ :shortcuts="maxHalfYear"
|
|
|
style="width: 260px"
|
|
|
></el-date-picker>
|
|
|
<el-select v-model="overviewParam.ward" style="width: 130px" placeholder="请选择科室" filterable clearable>
|
|
@@ -35,6 +35,7 @@
|
|
|
<el-dropdown-item icon="el-icon-printer" command="unSign">解除签收</el-dropdown-item>
|
|
|
<el-dropdown-item icon="el-icon-printer" command="dismissCount" divided>出院患者统计</el-dropdown-item>
|
|
|
<el-dropdown-item icon="el-icon-printer" command="exportLateData">导出迟交病案</el-dropdown-item>
|
|
|
+ <el-dropdown-item icon="el-icon-printer" command="exportUnsignedData">导出未签收病案</el-dropdown-item>
|
|
|
<el-dropdown-item icon="el-icon-printer" command="print1" divided>打印正面</el-dropdown-item>
|
|
|
<el-dropdown-item icon="el-icon-printer" command="print2">打印反面</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
@@ -232,7 +233,7 @@ import {
|
|
|
import maleIcon from '@/assets/male-icon.png'
|
|
|
import femaleIcon from '@/assets/female-icon.png'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
-import { shortcuts } from '@/data/shortcuts'
|
|
|
+import { maxHalfYear } from '@/data/shortcuts'
|
|
|
import { formatDate, getOneMonthOffset } from '@/utils/date'
|
|
|
import { initLodop, getLodop } from '@/utils/c-lodop'
|
|
|
import { formatMonth } from '@/utils/date'
|
|
@@ -267,11 +268,13 @@ const overviewParam = reactive({
|
|
|
bah: '',
|
|
|
})
|
|
|
const isLateDataMode = $ref(false)
|
|
|
+const isUnsignedMode = $ref(false)
|
|
|
const searchPatient = () => {
|
|
|
overviewParam.start = formatDate(dateRange[0])
|
|
|
overviewParam.end = formatDate(dateRange[1])
|
|
|
basOutPatients(overviewParam).then((res) => {
|
|
|
isLateDataMode = overviewParam.lateFlag === '1'
|
|
|
+ isUnsignedMode = overviewParam.fileStatus === '0'
|
|
|
overview = res.list
|
|
|
if (res.list.length === 1) {
|
|
|
fetchSheetInfo(res.list[0])
|
|
@@ -407,7 +410,10 @@ const handleCommand = (val) => {
|
|
|
showDismissCount = true
|
|
|
break
|
|
|
case 'exportLateData':
|
|
|
- exportLateDataExel()
|
|
|
+ exportSpecialDataExel(1)
|
|
|
+ break
|
|
|
+ case 'exportUnsignedData':
|
|
|
+ exportSpecialDataExel(2)
|
|
|
break
|
|
|
case 'print1':
|
|
|
beforePrint(1)
|
|
@@ -421,15 +427,27 @@ const handleCommand = (val) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const exportLateDataExel = () => {
|
|
|
- if (!isLateDataMode) {
|
|
|
- ElMessage({
|
|
|
- message: '请先查询迟交病案。',
|
|
|
- type: 'warning',
|
|
|
- duration: 2500,
|
|
|
- showClose: true,
|
|
|
- })
|
|
|
- return
|
|
|
+const exportSpecialDataExel = (flag) => {
|
|
|
+ if (flag === 1) {
|
|
|
+ if (!isLateDataMode) {
|
|
|
+ ElMessage({
|
|
|
+ message: '请先查询迟交病案。',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true,
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (!isUnsignedMode) {
|
|
|
+ ElMessage({
|
|
|
+ message: '请先查询未签收病案。',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true,
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
if (overview.length === 0) {
|
|
|
ElMessage({
|
|
@@ -450,10 +468,12 @@ const exportLateDataExel = () => {
|
|
|
disDate: '出院时间',
|
|
|
deptName: '出院科室',
|
|
|
doctorName: '管床医生',
|
|
|
- lateDays: '迟交天数',
|
|
|
- signDate: '签收日期',
|
|
|
}
|
|
|
- Export(overview, fields, '迟交病案')
|
|
|
+ if (flag === 1) {
|
|
|
+ fields.lateDays = '迟交天数'
|
|
|
+ fields.signDate = '签收日期'
|
|
|
+ }
|
|
|
+ Export(overview, fields, flag === 1 ? '迟交病案' : '未签收病案')
|
|
|
}
|
|
|
|
|
|
const searchMethod = $ref('alpha')
|