Explorar o código

fix:完成安全奖惩与考核模块标题、功能模块文案修改

sunqijun hai 2 semanas
pai
achega
faaa82b2f9

+ 1 - 1
src/views/production-safety/safetyAssessment/evaluationDepartment/EvaluationDepartmentItem.vue

@@ -19,7 +19,7 @@
 
   const headerTitle = computed(() => {
     if (operate.value === 'evaluationDepartment-feedback') {
-      return '自评反馈';
+      return '反馈安全考核自评';
     }
     if (operate.value === 'evaluationDepartment-advanced-person') {
       return '先进个人信息';

+ 3 - 3
src/views/production-safety/safetyAssessment/evaluationSystem/components/EvaluationTarget.vue

@@ -748,11 +748,11 @@
     margin-bottom: 12px;
     display: flex;
     gap: 24px;
+    max-width: 100%;
+    overflow: hidden;
     font-size: 14px;
     color: #666;
+    flex-wrap: wrap;
   }
 
-  .evaluation-meta span {
-    white-space: nowrap;
-  }
 </style>

+ 4 - 4
src/views/production-safety/safetyAssessment/inventory/InventoryItem.vue

@@ -2,7 +2,7 @@
  * @Author: liuJie
  * @Date: 2026-02-26 13:57:24
  * @LastEditors: liuJie
- * @LastEditTime: 2026-02-27 15:25:03
+ * @LastEditTime: 2026-04-20 16:54:51
  * @Describe: file describe
 -->
 <template>
@@ -27,11 +27,11 @@
   const headerTitle = computed(() => {
     switch (operate) {
       case 'inventory-create':
-        return '新增奖品';
+        return '新增安全奖励奖品';
       case 'inventory-edit':
-        return '编辑奖品';
+        return '编辑安全奖励奖品';
       case 'inventory-view':
-        return '查看奖品';
+        return '查看安全奖励奖品';
       default:
         return '未知操作';
     }

+ 6 - 5
src/views/production-safety/safetyAssessment/inventory/configs/tables.ts

@@ -2,7 +2,7 @@
  * @Author: liuJie
  * @Date: 2026-02-26 13:57:24
  * @LastEditors: liuJie
- * @LastEditTime: 2026-02-27 15:25:54
+ * @LastEditTime: 2026-04-20 16:55:37
  * @Describe: file describe
  */
 import type { TableColumnProps } from '@/types/basic-table';
@@ -25,13 +25,13 @@ export const INVENTORY_TABLE_COLUMNS: TableColumnProps[] = [
     label: '奖品名称',
     prop: 'itemName',
     align: 'left',
-    minWidth: '120px',
+    minWidth: '160px',
   },
   {
     label: '入库日期',
     prop: 'warehouseDate',
     align: 'left',
-    minWidth: '120px',
+    minWidth: '140px',
   },
   {
     label: '奖品数量',
@@ -43,13 +43,14 @@ export const INVENTORY_TABLE_COLUMNS: TableColumnProps[] = [
     label: '经办人',
     prop: 'handler',
     align: 'left',
-    minWidth: '120px',
+    minWidth: '160px',
   },
   {
     label: '备注',
     prop: 'remarks',
     align: 'left',
-    minWidth: '150px',
+    minWidth: '180px',
+    showOverflowTooltip: true,
   },
   {
     label: '状态',

+ 3 - 3
src/views/production-safety/safetyAssessment/inventory/inventory.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="safety-platform-container">
     <header class="safety-platform-container__header">
-      <div class="breadcrumb-title"> 奖品库管理 </div>
+      <div class="breadcrumb-title"> 安全奖励奖品 </div>
     </header>
     <main class="safety-platform-container__main">
       <div class="search-table-container">
@@ -84,7 +84,7 @@
       :visible="batchImportVisible"
       :import-api-url="importApiUrl"
       :template-url="templateUrl"
-      template-name="奖品库管理导入模版"
+      template-name="安全奖励奖品导入模版"
       :show-template="true"
       @close="batchImportVisible = false"
       @update="handleUpdate"
@@ -203,7 +203,7 @@
       };
       const response = await exportInventory(exportParams);
       if (response) {
-        const fileName = `奖品库存管理_${new Date().toISOString().split('T')[0]}.xlsx`;
+        const fileName = `安全奖励奖品_${new Date().toISOString().split('T')[0]}.xlsx`;
         downloadByData(response, fileName);
         ElMessage.success('导出成功');
       }

+ 2 - 2
src/views/production-safety/safetyAssessment/pointDeduction/configs/tables.ts

@@ -2,7 +2,7 @@
  * @Author: liuJie
  * @Date: 2026-02-26 13:57:24
  * @LastEditors: liuJie
- * @LastEditTime: 2026-02-27 15:33:45
+ * @LastEditTime: 2026-04-20 17:33:55
  * @Describe: file describe
  */
 import type { TableColumnProps } from '@/types/basic-table';
@@ -32,7 +32,7 @@ export const POINT_DEDUCTION_TABLE_COLUMNS: TableColumnProps[] = [
     label: '扣分日期',
     prop: 'deductionDate',
     align: 'left',
-    minWidth: '120px',
+    minWidth: '140px',
   },
   {
     label: '扣分值',

+ 4 - 3
src/views/production-safety/safetyAssessment/pointDeduction/pointDeduction.vue

@@ -11,9 +11,7 @@
             <el-button plain class="search-table-container--button" @click="handleImport">
               导入
             </el-button>
-            <el-button plain class="search-table-container--button" @click="handleDownload">
-              导出
-            </el-button>
+
           </div>
 
           <div class="act-search">
@@ -37,6 +35,9 @@
             <section class="search-btn">
               <el-button type="primary" @click="handleSearch">查询</el-button>
               <el-button @click="handleReset">重置</el-button>
+              <el-button plain @click="handleDownload">
+              导出
+              </el-button>
             </section>
           </div>
         </header>

+ 12 - 6
src/views/production-safety/safetyAssessment/receiptRecord/configs/tables.ts

@@ -8,17 +8,23 @@ export const TABLE_OPTIONS = {
 };
 
 export const RECEIPT_RECORD_TABLE_COLUMNS: TableColumnProps[] = [
+   {
+    label: '编号',
+    type: 'index',
+    align: 'center',
+    width: '80px',
+  },
   {
     label: '奖品名称',
     prop: 'itemName',
     align: 'left',
-    minWidth: '120px',
+    minWidth: '160px',
   },
   {
     label: '出库日期',
     prop: 'outboundDate',
     align: 'left',
-    minWidth: '120px',
+    minWidth: '140px',
   },
   {
     label: '取出数量',
@@ -36,26 +42,26 @@ export const RECEIPT_RECORD_TABLE_COLUMNS: TableColumnProps[] = [
     label: '单号',
     prop: 'receiptNumber',
     align: 'left',
-    minWidth: '120px',
+    minWidth: '160px',
   },
   {
     label: '部门',
     prop: 'department',
     align: 'left',
-    minWidth: '120px',
+    minWidth: '160px',
   },
   {
     label: '领取人',
     prop: 'recipient',
     align: 'left',
-    minWidth: '120px',
+    minWidth: '160px',
   },
   {
     label: '状态',
     prop: 'status',
     slot: 'status',
     align: 'center',
-    minWidth: '100px',
+    minWidth: '140px',
   },
   {
     label: '操作',

+ 4 - 4
src/views/production-safety/safetyAssessment/receiptRecord/receiptRecord.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="safety-platform-container">
     <header class="safety-platform-container__header">
-      <div class="breadcrumb-title"> 奖品领取记录管理 </div>
+      <div class="breadcrumb-title"> 安全奖励管理 </div>
     </header>
     <main class="safety-platform-container__main">
       <div class="search-table-container">
@@ -129,7 +129,7 @@
       :visible="batchImportVisible"
       :import-api-url="importApiUrl"
       :template-url="templateUrl"
-      template-name="奖品领取记录管理导入模版"
+      template-name="安全奖励管理导入模版"
       :show-template="true"
       @close="batchImportVisible = false"
       @update="handleUpdate"
@@ -256,12 +256,12 @@
       };
       const response = await exportClaimItemsLog(exportParams);
       if (response) {
-        const fileName = `奖品领取记录_${new Date().toISOString().split('T')[0]}.xlsx`;
+        const fileName = `安全奖励管理_${new Date().toISOString().split('T')[0]}.xlsx`;
         downloadByData(response, fileName);
         ElMessage.success('导出成功');
       }
     } catch (e:any) {
-      console.error('导出奖品领取记录失败:', e);
+      console.error('导出安全奖励管理失败:', e);
       ElMessage.error(e?.message || e?.data || '导出失败,请重试');
     }
   };

+ 5 - 5
src/views/production-safety/safetyAssessment/receiptRecord/receiptRecordItem.vue

@@ -2,7 +2,7 @@
  * @Author: liuJie
  * @Date: 2026-02-26 13:57:24
  * @LastEditors: liuJie
- * @LastEditTime: 2026-02-27 15:27:23
+ * @LastEditTime: 2026-04-20 16:58:13
  * @Describe: file describe
 -->
 <template>
@@ -27,13 +27,13 @@
   const headerTitle = computed(() => {
     switch (operate) {
       case 'receiptRecord-create':
-        return '新增奖品领取记录';
+        return '新增安全奖励';
       case 'receiptRecord-edit':
-        return '编辑奖品领取记录';
+        return '编辑安全奖励';
       case 'receiptRecord-view':
-        return '查看奖品领取记录';
+        return '查看安全奖励';
       case 'receiptRecord-audit':
-        return '审核奖品领取记录';
+        return '审核安全奖励';
       default:
         return '未知操作';
     }

+ 1 - 1
src/views/production-safety/safetyAssessment/receiptRecordAdministratorReview/receiptRecordAdministratorReview.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="safety-platform-container">
     <header class="safety-platform-container__header">
-      <div class="breadcrumb-title"> 奖品领取审核列表 </div>
+      <div class="breadcrumb-title"> 安全奖励审核 </div>
     </header>
     <main class="safety-platform-container__main">
       <div class="search-table-container">

+ 5 - 5
src/views/production-safety/safetyAssessment/receiptRecordAdministratorReview/receiptRecordItem.vue

@@ -2,7 +2,7 @@
  * @Author: liuJie
  * @Date: 2026-02-26 13:57:24
  * @LastEditors: liuJie
- * @LastEditTime: 2026-02-27 15:27:23
+ * @LastEditTime: 2026-04-20 17:16:13
  * @Describe: file describe
 -->
 <template>
@@ -27,13 +27,13 @@
   const headerTitle = computed(() => {
     switch (operate) {
       case 'receiptRecord-create':
-        return '新增奖品领取记录';
+        return '新增安全奖励';
       case 'receiptRecord-edit':
-        return '编辑奖品领取记录';
+        return '编辑安全奖励';
       case 'receiptRecord-view':
-        return '查看奖品领取记录';
+        return '查看安全奖励';
       case 'receiptRecord-audit':
-        return '审核奖品领取记录';
+        return '审核安全奖励';
       default:
         return '未知操作';
     }