Kaynağa Gözat

fix: 替换相关接口字段内容

xiaweibo 2 ay önce
ebeveyn
işleme
9909bb852a

+ 39 - 0
src/api/drawLessons/index.ts

@@ -43,6 +43,11 @@ export interface DrawLessonsQueryParam {
   keyword?: string;
   /** 隐患问题(搜索) */
   problem?: string;
+  associationOtId?: number;
+  obligationDeptName?: string;
+  planStartDate?: string;
+  planEndDate?: string;
+  searchStatus?: number;
 }
 
 /**
@@ -313,3 +318,37 @@ export function issueDrawLessonsBatch(data: {
     () => ({}),
   );
 }
+
+
+export function queryDrawLessonsAdminDetailPage(query: QueryPageRequest<DrawLessonsQueryParam>) {
+  return http.request({
+    url: `/drawLessons/admin/notify`,
+    method: 'post',
+    data: query,
+  });
+}
+
+/**
+ * 废举一反三子记录
+ */
+export function cancellationMessagePost(id: number) {
+  return http.request({
+    url: `/drawLessons/admin/void?id=${id}`,
+    method: 'put',
+  });
+}
+
+
+/**
+ * 导出举一反三子记录
+ */
+export function exportTheDocumentPost() {
+  return http.request({
+    url: `/specialEquipment/exportInventory`,
+    method: 'post',
+    data: {},
+    params: {
+      classifyName: 'drawLessons',
+    },
+  });
+}

+ 1 - 0
src/api/production-safety/business-registration-application.ts

@@ -20,6 +20,7 @@ export interface InventoryItem {
   templateId: string; // 模板ID
   injuryCategoryCode: string; // 工伤类别编码
   rejectReason: string; // 拒绝原因
+  workDescription: string; // 工作描述
 }
 
 /**

+ 91 - 44
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagement/components/OneByOneNotifyTarget.vue

@@ -64,6 +64,15 @@
                   style="width: 240px"
                 />
               </div>
+              <div class="select-box--item">
+                <span>关键词:</span>
+                <el-input
+                  v-model="searchKeyword"
+                  placeholder="请输入关键词"
+                  clearable
+                  class="act-search-input"
+                />
+              </div>
             </section>
             <section class="search-btn">
               <el-button type="primary" @click="handleSearch">查询</el-button>
@@ -76,7 +85,7 @@
         <div class="batch-table">
           <BasicTable
             ref="basicTableRef"
-            :tableData="paginatedTableData"
+            :tableData="rawTableData"
             :tableConfig="tableConfig"
             @update:pageSize="handleSizeChange"
             @update:pageNumber="handleCurrentChange"
@@ -116,16 +125,24 @@
   import BasicTable from '@/components/BasicTable.vue';
   import ActionButton from '@/components/ActionButton.vue';
   import useTableConfig from '@/hooks/useTableConfigHook';
-  import { queryDrawLessonsAdminPage, type DrawLessonsQueryParam } from '@/api/drawLessons';
+  import { 
+    queryDrawLessonsAdminPage, 
+    queryDrawLessonsAdminDetailPage,
+    cancellationMessagePost,
+    exportTheDocumentPost,
+    type DrawLessonsQueryParam 
+  } from '@/api/drawLessons';
   import type { QueryPageRequest } from '@/types/basic-query';
   import { DRAW_LESSONS_TABLE_COLUMNS } from '../configs/tables';
+  import { t } from '@wangeditor/editor';
+  import { downloadByData } from '@/utils/file/download';
 
   const NOTIFY_TARGET_STATUS_OPTIONS = [
-    { label: '未下发', value: '未下发' },
-    { label: '待反馈', value: '待反馈' },
-    { label: '待审核', value: '待审核' },
-    { label: '已作废', value: '已作废' },
-    { label: '已完成', value: '已完成' },
+    // { label: '未下发', value: '未下发' },
+    { label: '待反馈', value: '3' },
+    { label: '待审核', value: '4' },
+    { label: '已作废', value: '6' },
+    { label: '已完成', value: '5' },
   ];
 
   const TABLE_OPTIONS = {
@@ -137,6 +154,7 @@
   const router = useRouter();
   const route = useRoute();
   const id = computed(() => Number(route.query.id));
+  const tableData = ref<any[]>([]);
 
   const { tableConfig, pagination } = useTableConfig(DRAW_LESSONS_TABLE_COLUMNS, TABLE_OPTIONS, true);
   const basicTableRef = ref<InstanceType<typeof BasicTable>>();
@@ -151,30 +169,31 @@
   const searchStatus = ref<string>('');
   const searchDeptName = ref<string>('');
   const searchDateRange = ref<string[] | null>(null);
+  const searchKeyword = ref<string>('');
 
-  const filteredTableData = computed(() => {
-    let list = rawTableData.value;
-    if (activeTab.value !== 'ALL') {
-      list = list.filter((row) => (row.statusName || '') === activeTab.value);
-    }
-    if (searchStatus.value) {
-      list = list.filter((row) => (row.statusName || '') === searchStatus.value);
-    }
-    if (searchDeptName.value?.trim()) {
-      const kw = searchDeptName.value.trim().toLowerCase();
-      list = list.filter(
-        (row) => (row.associationOtObligationDeptName || '').toLowerCase().includes(kw),
-      );
-    }
-    if (searchDateRange.value?.length === 2) {
-      const [start, end] = searchDateRange.value;
-      list = list.filter((row) => {
-        const t = (row.createdAt || row.associationOtTimeLimit || '').toString().slice(0, 10);
-        return t >= start && t <= end;
-      });
-    }
-    return list;
-  });
+  // const filteredTableData = computed(() => {
+  //   let list = rawTableData.value;
+  //   if (activeTab.value !== 'ALL') {
+  //     list = list.filter((row) => (row.statusName || '') === activeTab.value);
+  //   }
+  //   if (searchStatus.value) {
+  //     list = list.filter((row) => (row.statusName || '') === searchStatus.value);
+  //   }
+  //   if (searchDeptName.value?.trim()) {
+  //     const kw = searchDeptName.value.trim().toLowerCase();
+  //     list = list.filter(
+  //       (row) => (row.associationOtObligationDeptName || '').toLowerCase().includes(kw),
+  //     );
+  //   }
+  //   if (searchDateRange.value?.length === 2) {
+  //     const [start, end] = searchDateRange.value;
+  //     list = list.filter((row) => {
+  //       const t = (row.createdAt || row.associationOtTimeLimit || '').toString().slice(0, 10);
+  //       return t >= start && t <= end;
+  //     });
+  //   }
+  //   return list;
+  // });
 
   /** 分页后的列表(前端分页) */
   const paginatedTableData = computed(() => {
@@ -183,13 +202,13 @@
     return list.slice(start, start + pagination.pageSize);
   });
 
-  watch(
-    () => filteredTableData.value.length,
-    (len) => {
-      pagination.total = len;
-    },
-    { immediate: true },
-  );
+  // watch(
+  //   () => filteredTableData.value.length,
+  //   (len) => {
+  //     pagination.total = len;
+  //   },
+  //   { immediate: true },
+  // );
 
   const handleSizeChange = (value: number) => {
     pagination.pageSize = value;
@@ -207,13 +226,20 @@
       const query: QueryPageRequest<DrawLessonsQueryParam> = {
         pageNumber: 1,
         pageSize: 9999,
-        queryParam: {},
+        queryParam: {
+          associationOtId: id.value,
+          obligationDeptName: searchDeptName.value,
+          planStartDate: searchDateRange.value?.[0],
+          planEndDate: searchDateRange.value?.[1],
+          statusId: searchStatus.value ? Number(searchStatus.value) : undefined,
+          problem: searchKeyword.value,
+        },
       };
-      const res = await queryDrawLessonsAdminPage(query);
+      const res = await queryDrawLessonsAdminDetailPage(query);
       const records = (res && (res as { records?: unknown[] }).records) ?? [];
       const list = Array.isArray(records) ? records : [];
       if (id.value) {
-        const current = list.filter((r: { id?: number }) => r.id === id.value);
+        const current = list;
         rawTableData.value = current;
         if (current.length) {
           const row = current[0] as { problem?: string; creatorName?: string; createdAt?: string };
@@ -244,25 +270,46 @@
   const getDetail = () => loadList();
 
   const handleTabChange = () => {
-    // 切换 tab 后列表由 filteredTableData 自动过滤
+    loadList();
   };
 
   const handleSearch = () => {
-    // 由 filteredTableData 响应 searchStatus/searchDeptName/searchDateRange
+    loadList();
   };
 
   const handleReset = () => {
     searchStatus.value = '';
     searchDeptName.value = '';
     searchDateRange.value = null;
+    searchKeyword.value = '';
+    loadList();
   };
 
-  const handleExport = () => {
-    ElMessage.info('导出功能待对接');
+  const handleExport = async () => {
+    try {
+      const response = await exportTheDocumentPost();
+      if (response) {
+        const fileName = `法律法规管理_${new Date().toISOString().split('T')[0]}.xlsx`;
+        downloadByData(response, fileName);
+        ElMessage.success('导出成功');
+      }
+      loadList();
+    } catch (e) {
+      console.error('导出举一反三记录失败:', e);
+      ElMessage.error(e?.message || e?.data || '导出失败,请重试');
+    }
   };
 
   const handleCancel = async (row: any) => {
     ElMessage.info('作废功能待对接接口');
+    try {
+      await cancellationMessagePost(row.id);
+      ElMessage.success('作废成功');
+      loadList();
+    } catch (e) {
+      console.error('作废举一反三记录失败:', e);
+      ElMessage.error(e?.message || e?.data || '作废失败,请重试');
+    }
   };
 
   const handleApprove = () => {

+ 11 - 25
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagement/configs/tables.ts

@@ -38,39 +38,25 @@ export const DRAW_LESSONS_TABLE_COLUMNS: TableColumnProps[] = [
     minWidth: '100px',
   },
   {
-    label: '举一反三要求',
-    prop: 'associationOneThree',
+    label: '部门名称',
+    prop: 'associationOtObligationDeptName',
     align: 'left',
-    minWidth: '200px',
+    minWidth: '140px',
     showOverflowTooltip: true,
   },
-  {
-    label: '责任部门',
-    prop: 'associationOtObligationDeptName',
+    {
+    label: '部门负责人',
+    prop: 'deptUserByName',
     align: 'left',
     minWidth: '140px',
     showOverflowTooltip: true,
   },
   {
-    label: '下发数',
-    prop: 'issueCount',
-    slot: 'issueCount',
-    align: 'center',
-    width: '90px',
-  },
-  {
-    label: '反馈人数',
-    prop: 'feedbackCount',
-    slot: 'feedbackCount',
-    align: 'center',
-    width: '90px',
-  },
-  {
-    label: '反馈比例',
-    prop: 'feedbackRatio',
-    slot: 'feedbackRatio',
-    align: 'center',
-    width: '100px',
+    label: '举一反三要求',
+    prop: 'associationOneThree',
+    align: 'left',
+    minWidth: '140px',
+    showOverflowTooltip: true,
   },
   {
     label: '计划完成时间',

+ 4 - 4
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagement/oneByOneManagement.vue

@@ -69,13 +69,13 @@
             @update:pageNumber="handleCurrentChange"
           >
             <template #status="scope">
-              <span>{{ scope.row.statusName || '-' }}</span>
+              <span>{{ scope.row.statusName || '0' }}</span>
             </template>
             <template #issueCount="scope">
-              <span>{{ scope.row.issueCount || '-' }}</span>
+              <span>{{ scope.row.issueCount || '0' }}</span>
             </template>
             <template #feedbackCount="scope">
-              <span>{{ scope.row.feedbackCount || '-' }}</span>
+              <span>{{ scope.row.feedbackCount || '0' }}</span>
             </template>
             <template #feedbackRatio="scope">
               <span>{{ scope.row.feedbackRatio ?? (scope.row.issueCount ? `${scope.row.feedbackCount ?? 0}/${scope.row.issueCount}` : '-') }}</span>
@@ -90,7 +90,7 @@
                     :popconfirm="{ title: '确定要删除?' }"
                     @confirm="handleDelete(scope.row.id)"
                   />
-                  <ActionButton text="通知对象" @click="handleNotifyTarget(scope.row)" />
+                  <!-- <ActionButton text="通知对象" @click="handleNotifyTarget(scope.row)" /> -->
                   <ActionButton text="发送" @click="handleSend(scope.row)" />
                 </template>
                 <!-- 待反馈 statusId=3 -->

+ 17 - 17
src/views/production-safety/risk-identification-and-control/labor-products-purchase-apply-manage/listAdmin.vue

@@ -26,7 +26,7 @@
               <div class="select-box--item">
                 <span>状态:</span>
                 <el-select
-                  v-model="tableQuery.queryParam.status"
+                  v-model="tableQuery.queryParam.approvalStatus"
                   placeholder="请选择状态"
                   clearable
                   class="act-search-input"
@@ -63,22 +63,22 @@
           >
             <template #status="scope">
               <span>
-                {{ scope.row.statusName || getStatusText(scope.row.status) }}
+                {{ scope.row.statusName || getStatusText(scope.row.approvalStatus) }}
               </span>
             </template>
             <template #action="scope">
               <div class="action-container--div" style="justify-content: left">
                 <!-- 待审核:查看、审核 -->
-                <template v-if="scope.row.status === 1 || scope.row.status === '1'">
+                <template v-if="scope.row.approvalStatus === 1 || scope.row.approvalStatus === '1'">
                   <ActionButton text="查看" @click="handleView(scope.row.id!, scope.row)" />
                   <ActionButton text="审核" @click="handleAudit(scope.row.id!, scope.row)" />
                 </template>
                 <!-- 审核通过:查看 -->
-                <template v-else-if="scope.row.status === 2 || scope.row.status === '2'">
+                <template v-else-if="scope.row.approvalStatus === 2 || scope.row.approvalStatus === '2'">
                   <ActionButton text="查看" @click="handleView(scope.row.id!, scope.row)" />
                 </template>
                 <!-- 审核不通过:编辑、删除、查看 -->
-                <template v-else-if="scope.row.status === 3 || scope.row.status === '3'">
+                <template v-else-if="scope.row.approvalStatus === 3 || scope.row.approvalStatus === '3'">
                   <!-- <ActionButton text="编辑" @click="handleEdit(scope.row.id!, scope.row)" />
                   <ActionButton
                     text="删除"
@@ -131,16 +131,16 @@
     pageSize: pagination.pageSize,
     queryParam: {
       name: '',
-      status: undefined,
+      approvalStatus: undefined,
       applyDeptCode: '',
       applyDeptName: '',
     },
   });
 
-  function getStatusText(status: number | string | undefined) {
-    if (status === 1 || status === '1') return '待审核';
-    if (status === 2 || status === '2') return '审核通过';
-    if (status === 3 || status === '3') return '审核不通过';
+  function getStatusText(approvalStatus: number | string | undefined) {
+    if (approvalStatus === 1 || approvalStatus === '1') return '待审核';
+    if (approvalStatus === 2 || approvalStatus === '2') return '审核通过';
+    if (approvalStatus === 3 || approvalStatus === '3') return '审核不通过';
     return '-';
   }
 
@@ -190,7 +190,7 @@
 
   const handleReset = () => {
     tableQuery.queryParam.name = '';
-    tableQuery.queryParam.status = undefined;
+    tableQuery.queryParam.approvalStatus = undefined;
     tableQuery.queryParam.applyDeptCode = '';
     tableQuery.queryParam.applyDeptName = '';
     handleSearch();
@@ -214,8 +214,8 @@
           applicantName: row.applicantName ?? '',
           deptName: row.deptName ?? '',
           templateId: row.templateId ?? '',
-          rejectReason: row.rejectReason ?? '',
-          approvalStatus: row.status ?? '',
+          rejectReason: row.ppeDescription ?? '',
+          approvalStatus: row.approvalStatus ?? '',
         }),
       },
     });
@@ -243,8 +243,8 @@
           applicantName: row.applicantName ?? '',
           deptName: row.deptName ?? '',
           templateId: row.templateId ?? '',
-          rejectReason: row.rejectReason ?? '',
-          approvalStatus: row.status ?? '',
+          rejectReason: row.ppeDescription ?? '',
+          approvalStatus: row.approvalStatus ?? '',
         }),
       },
     });
@@ -262,8 +262,8 @@
           deptName: row.deptName ?? '',
           approvalOrder: row.approvalOrder ?? '',
           templateId: row.templateId ?? '',
-          rejectReason: row.rejectReason ?? '',
-          approvalStatus: row.status ?? '',
+          rejectReason: row.ppeDescription ?? '',
+          approvalStatus: row.approvalStatus ?? '',
         }),
       },
     });

+ 16 - 8
src/views/production-safety/risk-identification-and-control/work-injury-apply-manage/configs/form.ts

@@ -48,42 +48,42 @@ export const INVENTORY_FORM_CONFIG: FormConfig[] = [
     slot: 'approvalTemplateId',
   },
   {
-    prop: 'accidentReport',
+    prop: 'accidentCertUrl',
     label: '事故报告:',
     slot: 'accidentReport',
   },
   {
-    prop: 'powerOfAttorney',
+    prop: 'powerAttorneyUrl',
     label: '委托书:',
     slot: 'powerOfAttorney',
   },
   {
-    prop: 'addressConfirmation',
+    prop: 'addressConfirmUrl',
     label: '地址确认书:',
     slot: 'addressConfirmation',
   },
   {
-    prop: 'applicationForm',
+    prop: 'applicationFormUrl',
     label: '申请表:',
     slot: 'applicationForm',
   },
   {
-    prop: 'idCard',
+    prop: 'idCardUrl',
     label: '身份证正反面:',
     slot: 'idCard',
   },
   {
-    prop: 'laborContract',
+    prop: 'laborContractUrl',
     label: '劳动合同:',
     slot: 'laborContract',
   },
   {
-    prop: 'initialMedicalCertificate',
+    prop: 'initialMedicalCertUrl',
     label: '初次医疗证明:',
     slot: 'initialMedicalCertificate',
   },
   {
-    prop: 'agentIdCard',
+    prop: 'trusteeIdCardUrl',
     label: '被委托人员身份证正反面:',
     slot: 'agentIdCard',
   },
@@ -119,4 +119,12 @@ export const INVENTORY_FORM_RULES = {
   remarks: [{ required: true, message: '请输入受伤原因', trigger: 'blur' }],
   departmentName: [{ required: true, message: '请选择所属部门', trigger: 'change' }],
   approvalTemplateId: [{ required: true, message: '请选择审批流程', trigger: 'change' }],
+  accidentCertUrl: [{ required: true, message: '请上传事故报告', trigger: 'change' }],
+  powerAttorneyUrl: [{ required: true, message: '请上传委托书', trigger: 'change' }],
+  addressConfirmUrl: [{ required: true, message: '请上传地址确认书', trigger: 'change' }],
+  applicationFormUrl: [{ required: true, message: '请上传申请表', trigger: 'change' }],
+  idCardUrl: [{ required: true, message: '请上传身份证正反面', trigger: 'change' }],
+  laborContractUrl: [{ required: true, message: '请上传劳动合同', trigger: 'change' }],
+  initialMedicalCertUrl: [{ required: true, message: '请上传初次医疗证明', trigger: 'change' }],
+  trusteeIdCardUrl: [{ required: true, message: '请上传被委托人员身份证正反面', trigger: 'change' }],
 };

+ 12 - 12
src/views/production-safety/risk-identification-and-control/work-injury-apply-manage/list.vue

@@ -31,7 +31,7 @@
               <div class="select-box--item">
                 <span>状态:</span>
                 <el-select
-                  v-model="tableQuery.queryParam.status"
+                  v-model="tableQuery.queryParam.workStatus"
                   placeholder="请选择状态"
                   clearable
                 >
@@ -73,7 +73,7 @@
           >
             <template #status="scope">
               <span>
-                {{ scope.row.status === 1 ? '待审核' : scope.row.status === 2 ? '申请加盖公章及材料申请' : scope.row.status === 3 ? '审核不通过' : scope.row.status === 4 ? '已完成' : '-' }}
+                {{ scope.row.workStatus === 1 ? '待审核' : scope.row.workStatus === 2 ? '申请加盖公章及材料申请' : scope.row.workStatus === 3 ? '审核不通过' : scope.row.workStatus === 4 ? '已完成' : '-' }}
               </span>
             </template>
             <template #injuryCategoryCode="scope">
@@ -85,17 +85,17 @@
               <div class="action-container--div" style="justify-content: left">
                 
                 <!-- 待审核:查看、审核 -->
-                <template v-if="scope.row.status === 1 || scope.row.status === '1'">
+                <template v-if="scope.row.workStatus === 1 || scope.row.workStatus === '1'">
                   <ActionButton text="查看" @click="handleView(scope.row.id)" />
                   <!-- <ActionButton text="审核" @click="handleAudit(scope.row.id,scope.row)" /> -->
                 </template>
                 <!-- 申请加盖公章及材料申请 -->
-                <template v-else-if="scope.row.status === 2 || scope.row.status === '2'">
+                <template v-else-if="scope.row.workStatus === 2 || scope.row.workStatus === '2'">
                   <ActionButton text="查看" @click="handleView(scope.row.id)" />
                   <!-- <ActionButton text="确认" @click="confirmDialog = true;confirmId = scope.row.id;" /> -->
                 </template>
                 <!-- 审核不通过:编辑、删除、查看 -->
-                <template v-else-if="scope.row.status === 3 || scope.row.status === '3'">
+                <template v-else-if="scope.row.workStatus === 3 || scope.row.workStatus === '3'">
                   <ActionButton text="编辑" @click="handleEdit(scope.row.id,scope.row)" />
                   <ActionButton
                     text="删除"
@@ -105,7 +105,7 @@
                   <ActionButton text="查看" @click="handleView(scope.row.id!)" />
                 </template>
                 <!-- 已完成:查看 -->
-                <template v-else-if="scope.row.status === 4 || scope.row.status === '4'">
+                <template v-else-if="scope.row.workStatus === 4 || scope.row.workStatus === '4'">
                   <ActionButton text="查看" @click="handleView(scope.row.id!)" />
                 </template>
               </div>
@@ -213,7 +213,7 @@
     pageSize: pagination.pageSize,
     queryParam: {
       queryKey: '', // 名称
-      status: '', // 状态,默认启用
+      workStatus: '', // 状态,默认启用
       ids: [], // 选择数据的ID
       deptCode: '', // 所属部门ID
     },
@@ -248,12 +248,12 @@
           injuryTime: item.injuryTime, // 受伤时间
           injuryCategoryName: item.injuryCategoryName, // 工伤类别
           remark: item.remark, // 备注
-          status: item.status, // 状态
+          workStatus: item.workStatus, // 状态
           approvalTemplateId: item.approvalTemplateId, // 审批模板ID
           approvalOrder: item.approvalOrder, // 审批订单
           templateId: item.templateId, // 模板ID
           injuryCategoryCode: item.injuryCategoryCode, // 工伤类别编码
-          rejectReason: item.rejectReason, // 拒绝原因
+          rejectReason: item.workDescription, // 拒绝原因
         }));
         pagination.total = res.totalRow;
       }
@@ -274,7 +274,7 @@
 
   const handleReset = () => {
     tableQuery.queryParam.queryKey = '';
-    tableQuery.queryParam.status = true; // 重置为默认启用状态
+    tableQuery.queryParam.workStatus = ''; // 重置为默认启用状态
     tableQuery.queryParam.ids = [];
     handleSearch();
   };
@@ -327,10 +327,10 @@
       name: 'workInjuryApplyManageItem',
       query: {
         id,
-        rejectReason:row.rejectReason ?? '',
+        rejectReason:row.workDescription ?? '',
         approvalTemplateId:row.templateId ?? '',
         approvalOrder:row.approvalOrder ?? '',
-        approvalStatus:row.status ?? '',
+        approvalStatus:row.workStatus ?? '',
         injuryCategoryCode:row.injuryCategoryCode ?? '',
         operate: 'inventory-edit',
       },

+ 10 - 10
src/views/production-safety/risk-identification-and-control/work-injury-apply-manage/listAdmin.vue

@@ -31,7 +31,7 @@
               <div class="select-box--item">
                 <span>状态:</span>
                 <el-select
-                  v-model="tableQuery.queryParam.status"
+                  v-model="tableQuery.queryParam.workStatus"
                   placeholder="请选择状态"
                   clearable
                 >
@@ -73,7 +73,7 @@
           >
             <template #status="scope">
               <span>
-                {{ scope.row.status === 1 ? '待审核' : scope.row.status === 2 ? '申请加盖公章及材料申请' : scope.row.status === 3 ? '审核不通过' : scope.row.status === 4 ? '已完成' : '-' }}
+                {{ scope.row.workStatus === 1 ? '待审核' : scope.row.workStatus === 2 ? '申请加盖公章及材料申请' : scope.row.workStatus === 3 ? '审核不通过' : scope.row.workStatus === 4 ? '已完成' : '-' }}
               </span>
             </template>
             <template #injuryCategoryCode="scope">
@@ -85,17 +85,17 @@
               <div class="action-container--div" style="justify-content: left">
                 
                 <!-- 待审核:查看、审核 -->
-                <template v-if="scope.row.status === 1 || scope.row.status === '1'">
+                <template v-if="scope.row.workStatus === 1 || scope.row.workStatus === '1'">
                   <ActionButton text="查看" @click="handleView(scope.row.id)" />
                   <ActionButton text="审核" @click="handleAudit(scope.row.id,scope.row)" />
                 </template>
                 <!-- 申请加盖公章及材料申请 -->
-                <template v-else-if="scope.row.status === 2 || scope.row.status === '2'">
+                <template v-else-if="scope.row.workStatus === 2 || scope.row.workStatus === '2'">
                   <ActionButton text="查看" @click="handleView(scope.row.id)" />
                   <ActionButton text="确认" @click="confirmDialog = true;confirmId = scope.row.id;" />
                 </template>
                 <!-- 审核不通过:编辑、删除、查看 -->
-                <template v-else-if="scope.row.status === 3 || scope.row.status === '3'">
+                <template v-else-if="scope.row.workStatus === 3 || scope.row.workStatus === '3'">
                   <!-- <ActionButton text="编辑" @click="handleEdit(scope.row.id,scope.row)" />
                   <ActionButton
                     text="删除"
@@ -105,7 +105,7 @@
                   <ActionButton text="查看" @click="handleView(scope.row.id!)" />
                 </template>
                 <!-- 已完成:查看 -->
-                <template v-else-if="scope.row.status === 4 || scope.row.status === '4'">
+                <template v-else-if="scope.row.workStatus === 4 || scope.row.workStatus === '4'">
                   <ActionButton text="查看" @click="handleView(scope.row.id!)" />
                 </template>
               </div>
@@ -214,7 +214,7 @@
     pageSize: pagination.pageSize,
     queryParam: {
       queryKey: '', // 物品名称
-      status: '', // 状态,默认启用
+      workStatus: '', // 状态,默认启用
       ids: [], // 选择数据的ID
       deptCode: '', // 所属部门ID
     },
@@ -249,7 +249,7 @@
           injuryTime: item.injuryTime, // 受伤时间
           injuryCategoryName: item.injuryCategoryName, // 工伤类别
           remark: item.remark, // 备注
-          status: item.status, // 状态
+          workStatus: item.workStatus, // 状态
           approvalTemplateId: item.approvalTemplateId, // 审批模板ID
           approvalOrder: item.approvalOrder, // 审批订单
           templateId: item.templateId, // 模板ID
@@ -275,7 +275,7 @@
 
   const handleReset = () => {
     tableQuery.queryParam.queryKey = '';
-    tableQuery.queryParam.status = true; // 重置为默认启用状态
+    tableQuery.queryParam.workStatus = ''; // 重置为默认启用状态
     tableQuery.queryParam.ids = [];
     handleSearch();
   };
@@ -331,7 +331,7 @@
         rejectReason:row.rejectReason ?? '',
         approvalTemplateId:row.templateId ?? '',
         approvalOrder:row.approvalOrder ?? '',
-        approvalStatus:row.status ?? '',
+        approvalStatus:row.workStatus ?? '',
         injuryCategoryCode:row.injuryCategoryCode ?? '',
         operate: 'inventory-edit',
       },