|
@@ -39,11 +39,11 @@
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col">
|
|
<div class="col">
|
|
|
<div class="label">主责部门执行人所属分组名称:</div>
|
|
<div class="label">主责部门执行人所属分组名称:</div>
|
|
|
- <div class="value">{{ viewDetail.mainDeptExecutorGroupName || '-' }}</div>
|
|
|
|
|
|
|
+ <div class="value">{{ viewDetail.primaryResponsibleDeptExecGroupName || '-' }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col">
|
|
<div class="col">
|
|
|
<div class="label">主责部门责任人:</div>
|
|
<div class="label">主责部门责任人:</div>
|
|
|
- <div class="value">{{ viewDetail.mainDeptResponsiblePerson || '-' }}</div>
|
|
|
|
|
|
|
+ <div class="value">{{ viewDetail.primaryResponsibleDeptPersonName || '-' }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row">
|
|
<div class="row">
|
|
@@ -334,6 +334,7 @@
|
|
|
mapAreaCheckPlanApiRecordToUi,
|
|
mapAreaCheckPlanApiRecordToUi,
|
|
|
queryUnqualifiedItemNumDeptPage,
|
|
queryUnqualifiedItemNumDeptPage,
|
|
|
sandAreaCheckRecordToProductionHiddenDanger,
|
|
sandAreaCheckRecordToProductionHiddenDanger,
|
|
|
|
|
+ exportAreaCheckInspectionRecord,
|
|
|
type UnqualifiedItemNumRecord,
|
|
type UnqualifiedItemNumRecord,
|
|
|
type SandAreaCheckRecordToHiddenDangerReq,
|
|
type SandAreaCheckRecordToHiddenDangerReq,
|
|
|
} from '@/api/production-safety-system';
|
|
} from '@/api/production-safety-system';
|
|
@@ -347,6 +348,7 @@
|
|
|
HIDDEN_DANGER_FORM_RULES,
|
|
HIDDEN_DANGER_FORM_RULES,
|
|
|
} from '@/views/production-safety/hiddenTroubleInvestigationAndGovernance/hiddenTroubleAccountManagement/configs/form';
|
|
} from '@/views/production-safety/hiddenTroubleInvestigationAndGovernance/hiddenTroubleAccountManagement/configs/form';
|
|
|
import { queryAvailableUserList } from '@/api/production-safety/responsibility-implementation';
|
|
import { queryAvailableUserList } from '@/api/production-safety/responsibility-implementation';
|
|
|
|
|
+ import { downloadByData } from '@/utils/file/download';
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
@@ -387,6 +389,8 @@
|
|
|
createdPersonName: (d?.createdPersonName ?? '') || '-',
|
|
createdPersonName: (d?.createdPersonName ?? '') || '-',
|
|
|
createdAt: (d?.createdAt ?? '') || '-',
|
|
createdAt: (d?.createdAt ?? '') || '-',
|
|
|
businessWork: (d?.businessWork ?? '') || '-',
|
|
businessWork: (d?.businessWork ?? '') || '-',
|
|
|
|
|
+ primaryResponsibleDeptExecGroupName: d?.primaryResponsibleDeptExecGroupName ?? '-',
|
|
|
|
|
+ primaryResponsibleDeptPersonName: d?.primaryResponsibleDeptPersonName ?? '-',
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -561,8 +565,26 @@
|
|
|
recordPagination.pageNumber = 1;
|
|
recordPagination.pageNumber = 1;
|
|
|
loadRecordList();
|
|
loadRecordList();
|
|
|
};
|
|
};
|
|
|
- const onRecordExport = () => {
|
|
|
|
|
- ElMessage.success('导出功能开发中');
|
|
|
|
|
|
|
+ const onRecordExport = async () => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const [start, end] = recordDateRange.value && recordDateRange.value.length === 2
|
|
|
|
|
+ ? recordDateRange.value
|
|
|
|
|
+ : ['', ''];
|
|
|
|
|
+ const queryParam = {
|
|
|
|
|
+ searchKey: recordSearchKeyword.value || undefined,
|
|
|
|
|
+ startDate: start || undefined,
|
|
|
|
|
+ endDate: end || undefined,
|
|
|
|
|
+ };
|
|
|
|
|
+ const response = await exportAreaCheckInspectionRecord(queryParam);
|
|
|
|
|
+ if (response) {
|
|
|
|
|
+ const fileName = `检查记录_${new Date().toISOString().split('T')[0]}.xlsx`;
|
|
|
|
|
+ downloadByData(response, fileName);
|
|
|
|
|
+ ElMessage.success('导出成功');
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ console.error('导出院级文件失败:', e);
|
|
|
|
|
+ ElMessage.error('导出失败,请重试');
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const loadUnqualifiedList = async () => {
|
|
const loadUnqualifiedList = async () => {
|