From 295bdcf5c1c434604d35bdb592660284870014d7 Mon Sep 17 00:00:00 2001
From: zhuguifei <312353457@qq.com>
Date: 星期三, 18 三月 2026 13:36:58 +0800
Subject: [PATCH] feat: 1.新增判定规程明细项目维护 2.新增储丝单柜产量报表 3.新增exceljs、dompdf等文件导出工具 4.修改启动loading、icon、fav
---
ruoyi-plus-soybean/src/views/md/shift/index.vue | 295 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 147 insertions(+), 148 deletions(-)
diff --git a/ruoyi-plus-soybean/src/views/md/shift/index.vue b/ruoyi-plus-soybean/src/views/md/shift/index.vue
old mode 100644
new mode 100755
index d28d6b0..7aa7cee
--- a/ruoyi-plus-soybean/src/views/md/shift/index.vue
+++ b/ruoyi-plus-soybean/src/views/md/shift/index.vue
@@ -15,7 +15,6 @@
name: 'ShiftList'
});
-
const appStore = useAppStore();
const { download } = useDownload();
const { hasAuth } = useAuth();
@@ -31,158 +30,158 @@
const { columns, columnChecks, data, getData, getDataByPage, loading, mobilePagination, scrollX } =
useNaivePaginatedTable({
- api: () => fetchGetShiftList(searchParams.value),
- transform: response => defaultTransform(response),
- onPaginationParamsChange: params => {
- searchParams.value.pageNum = params.page;
- searchParams.value.pageSize = params.pageSize;
- },
- columns: () => [
- {
- type: 'selection',
- align: 'center',
- width: 48
+ api: () => fetchGetShiftList(searchParams.value),
+ transform: response => defaultTransform(response),
+ onPaginationParamsChange: params => {
+ searchParams.value.pageNum = params.page;
+ searchParams.value.pageSize = params.pageSize;
},
- {
- key: 'index',
- title: $t('common.index'),
- align: 'center',
- width: 64,
- render: (_, index) => index + 1
- },
- {
- key: 'id',
- title: 'ud',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'wsId',
- title: '杞﹂棿澶栭敭',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'code',
- title: '缂栫爜',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'name',
- title: '鍚嶇О',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'stim',
- title: '鐝寮�濮嬫椂闂�',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'etim',
- title: '鐝缁撴潫鏃堕棿',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'seq',
- title: '鎺掑簭',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'enable',
- title: '鍚敤',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'del',
- title: '鍒犻櫎',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'createUserName',
- title: '鍒涘缓鐢ㄦ埛',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'createUserTime',
- title: '鍒涘缓鏃堕棿',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'updateUserName',
- title: '鏇存柊鐢ㄦ埛',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'updateUserTime',
- title: '鏇存柊鏃堕棿',
- align: 'center',
- minWidth: 120
- },
- {
- key: 'operate',
- title: $t('common.operate'),
- align: 'center',
- width: 130,
- render: row => {
- const divider = () => {
- if (!hasAuth('md:shift:edit') || !hasAuth('md:shift:remove')) {
- return null;
- }
- return <NDivider vertical />;
- };
+ columns: () => [
+ {
+ type: 'selection',
+ align: 'center',
+ width: 48
+ },
+ {
+ key: 'index',
+ title: $t('common.index'),
+ align: 'center',
+ width: 64,
+ render: (_, index) => index + 1
+ },
+ {
+ key: 'id',
+ title: 'id',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'wsId',
+ title: '杞﹂棿澶栭敭',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'code',
+ title: '缂栫爜',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'name',
+ title: '鍚嶇О',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'stim',
+ title: '鐝寮�濮嬫椂闂�',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'etim',
+ title: '鐝缁撴潫鏃堕棿',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'seq',
+ title: '鎺掑簭',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'enable',
+ title: '鍚敤',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'del',
+ title: '鍒犻櫎',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'createUserName',
+ title: '鍒涘缓鐢ㄦ埛',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'createUserTime',
+ title: '鍒涘缓鏃堕棿',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'updateUserName',
+ title: '鏇存柊鐢ㄦ埛',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'updateUserTime',
+ title: '鏇存柊鏃堕棿',
+ align: 'center',
+ minWidth: 120
+ },
+ {
+ key: 'operate',
+ title: $t('common.operate'),
+ align: 'center',
+ width: 130,
+ render: row => {
+ const divider = () => {
+ if (!hasAuth('md:shift:edit') || !hasAuth('md:shift:remove')) {
+ return null;
+ }
+ return <NDivider vertical />;
+ };
- const editBtn = () => {
- if (!hasAuth('md:shift:edit')) {
- return null;
- }
+ const editBtn = () => {
+ if (!hasAuth('md:shift:edit')) {
+ return null;
+ }
+ return (
+ <ButtonIcon
+ text
+ type="primary"
+ icon="material-symbols:drive-file-rename-outline-outline"
+ tooltipContent={$t('common.edit')}
+ onClick={() => edit(row.id)}
+ />
+ );
+ };
+
+ const deleteBtn = () => {
+ if (!hasAuth('md:shift:remove')) {
+ return null;
+ }
+ return (
+ <ButtonIcon
+ text
+ type="error"
+ icon="material-symbols:delete-outline"
+ tooltipContent={$t('common.delete')}
+ popconfirmContent={$t('common.confirmDelete')}
+ onPositiveClick={() => handleDelete(row.id)}
+ />
+ );
+ };
+
return (
- <ButtonIcon
- text
- type="primary"
- icon="material-symbols:drive-file-rename-outline-outline"
- tooltipContent={$t('common.edit')}
- onClick={() => edit(row.id)}
- />
+ <div class="flex-center gap-8px">
+ {editBtn()}
+ {divider()}
+ {deleteBtn()}
+ </div>
);
- };
-
- const deleteBtn = () => {
- if (!hasAuth('md:shift:remove')) {
- return null;
- }
- return (
- <ButtonIcon
- text
- type="error"
- icon="material-symbols:delete-outline"
- tooltipContent={$t('common.delete')}
- popconfirmContent={$t('common.confirmDelete')}
- onPositiveClick={() => handleDelete(row.id)}
- />
- );
- };
-
- return (
- <div class="flex-center gap-8px">
- {editBtn()}
- {divider()}
- {deleteBtn()}
- </div>
- );
+ }
}
- }
- ]
-});
+ ]
+ });
const { drawerVisible, operateType, editingData, handleAdd, handleEdit, checkedRowKeys, onBatchDeleted, onDeleted } =
useTableOperate(data, 'id', getData);
--
Gitblit v1.9.3