Sfoglia il codice sorgente

fix: 修改参数信息

xiaweibo 2 mesi fa
parent
commit
06a84a64fd

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

@@ -26,7 +26,7 @@ export interface InventoryItem {
  * 查询工商认定信息请求参数
  */
 export interface InventoryQueryParam {
-  stuffName?: string; // 物品名称
+  queryKey?: string; // 物品名称
   status?: boolean; // 状态
   ids?: string[]; // 选择数据的ID
 }
@@ -58,7 +58,7 @@ export function queryWorkInjuryApplyListAdmin(query: QueryPageRequest<InventoryQ
  * 保存工商认定信息请求参数
  */
 export interface SaveInventoryRequest {
-  stuffName: string; // 物品名称
+  queryKey: string; // 物品名称
   inStoreTime: string; // 入库日期 (ISO 格式)
   stuffQty: number; // 物品数量
   remark: string; // 备注
@@ -123,7 +123,7 @@ export function queryInventoryDetail(id: number) {
  * 导出物品库存请求参数
  */
 export interface ExportInventoryRequest {
-  stuffName?: string; // 物品名称
+  queryKey?: string; // 物品名称
   status?: boolean; // 状态
   ids?: string[]; // 选择数据的ID
 }

+ 1 - 0
src/views/production-safety/risk-identification-and-control/work-injury-apply-manage/components/detail.vue

@@ -640,6 +640,7 @@ import { template } from 'lodash-es';
         await submitApprovalProcess(approvalData);
         ElMessage.success('提交成功');
         basicDialogRef.value.closeDialog();
+        cloneRuleFormData();
         router.back();
       }
     });

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

@@ -23,7 +23,7 @@
               <div class="select-box--item">
                 <span>单号:</span>
                 <el-input
-                  v-model="tableQuery.queryParam.stuffName"
+                  v-model="tableQuery.queryParam.queryKey"
                   placeholder="搜索申请单号/工号/姓名"
                   class="act-search-input"
                 />
@@ -87,12 +87,12 @@
                 <!-- 待审核:查看、审核 -->
                 <template v-if="scope.row.status === 1 || scope.row.status === '1'">
                   <ActionButton text="查看" @click="handleView(scope.row.id)" />
-                  <ActionButton text="审核" @click="handleAudit(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'">
                   <ActionButton text="查看" @click="handleView(scope.row.id)" />
-                  <ActionButton text="确认" @click="confirmDialog = true;confirmId = 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'">
@@ -212,7 +212,7 @@
     pageNumber: pagination.pageNumber,
     pageSize: pagination.pageSize,
     queryParam: {
-      stuffName: '', // 物品名称
+      queryKey: '', // 名称
       status: '', // 状态,默认启用
       ids: [], // 选择数据的ID
       applicationDepartmentId: '', // 所属部门ID
@@ -258,7 +258,7 @@
         pagination.total = res.totalRow;
       }
     } catch (e) {
-      console.error('获取物品库存列表失败:', e);
+      console.error('获取库存列表失败:', e);
       tableData.value = [];
       pagination.total = 0;
     } finally {
@@ -273,7 +273,7 @@
   };
 
   const handleReset = () => {
-    tableQuery.queryParam.stuffName = '';
+    tableQuery.queryParam.queryKey = '';
     tableQuery.queryParam.status = true; // 重置为默认启用状态
     tableQuery.queryParam.ids = [];
     handleSearch();
@@ -297,18 +297,18 @@
   const handleDownload = async () => {
     try {
       const exportParams = {
-        stuffName: tableQuery.queryParam.stuffName || undefined,
+        queryKey: tableQuery.queryParam.queryKey || undefined,
         status: tableQuery.queryParam.status,
         ids: tableQuery.queryParam.ids.length > 0 ? tableQuery.queryParam.ids : undefined,
       };
       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('导出成功');
       }
     } catch (e) {
-      console.error('导出物品库存失败:', e);
+      console.error('导出库存失败:', e);
       ElMessage.error('导出失败,请重试');
     }
   };
@@ -355,7 +355,7 @@
       ElMessage.success('删除成功');
       getTableData();
     } catch (e) {
-      console.error('删除物品库存失败:', e);
+      console.error('删除库存失败:', e);
       ElMessage.error('删除失败,请重试');
     }
   };

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

@@ -7,9 +7,9 @@
       <div class="search-table-container">
         <header>
           <div style="position: relative">
-            <el-button type="primary" class="search-table-container--button" @click="handleCreate">
+            <!-- <el-button type="primary" class="search-table-container--button" @click="handleCreate">
               添加
-            </el-button>
+            </el-button> -->
             <!-- <el-button plain class="search-table-container--button" @click="handleImport">
               导入
             </el-button>
@@ -23,7 +23,7 @@
               <div class="select-box--item">
                 <span>单号:</span>
                 <el-input
-                  v-model="tableQuery.queryParam.stuffName"
+                  v-model="tableQuery.queryParam.queryKey"
                   placeholder="搜索申请单号/工号/姓名"
                   class="act-search-input"
                 />
@@ -96,12 +96,12 @@
                 </template>
                 <!-- 审核不通过:编辑、删除、查看 -->
                 <template v-else-if="scope.row.status === 3 || scope.row.status === '3'">
-                  <ActionButton text="编辑" @click="handleEdit(scope.row.id,scope.row)" />
+                  <!-- <ActionButton text="编辑" @click="handleEdit(scope.row.id,scope.row)" />
                   <ActionButton
                     text="删除"
                     :popconfirm="{ title: '确定要删除该申请吗?' }"
                     @confirm="handleDelete(scope.row.id)"
-                  />
+                  /> -->
                   <ActionButton text="查看" @click="handleView(scope.row.id!)" />
                 </template>
                 <!-- 已完成:查看 -->
@@ -213,7 +213,7 @@
     pageNumber: pagination.pageNumber,
     pageSize: pagination.pageSize,
     queryParam: {
-      stuffName: '', // 物品名称
+      queryKey: '', // 物品名称
       status: '', // 状态,默认启用
       ids: [], // 选择数据的ID
       applicationDepartmentId: '', // 所属部门ID
@@ -274,7 +274,7 @@
   };
 
   const handleReset = () => {
-    tableQuery.queryParam.stuffName = '';
+    tableQuery.queryParam.queryKey = '';
     tableQuery.queryParam.status = true; // 重置为默认启用状态
     tableQuery.queryParam.ids = [];
     handleSearch();
@@ -298,7 +298,7 @@
   const handleDownload = async () => {
     try {
       const exportParams = {
-        stuffName: tableQuery.queryParam.stuffName || undefined,
+        queryKey: tableQuery.queryParam.queryKey || undefined,
         status: tableQuery.queryParam.status,
         ids: tableQuery.queryParam.ids.length > 0 ? tableQuery.queryParam.ids : undefined,
       };