From d143af7023cfd4a0ced6f0ecf04ae3b3a06fd1dc Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期三, 15 四月 2026 13:11:28 +0800
Subject: [PATCH] feat(md): 添加称重盒子维护功能

---
 ruoyi-plus-soybean/src/views/analy/hoister/index.vue |  607 +++++++++++++++++++++++++++---------------------------
 1 files changed, 303 insertions(+), 304 deletions(-)

diff --git a/ruoyi-plus-soybean/src/views/analy/hoister/index.vue b/ruoyi-plus-soybean/src/views/analy/hoister/index.vue
index 9e83f57..b7b9926 100755
--- a/ruoyi-plus-soybean/src/views/analy/hoister/index.vue
+++ b/ruoyi-plus-soybean/src/views/analy/hoister/index.vue
@@ -15,7 +15,6 @@
   name: 'HoisterDataList'
 });
 
-
 const appStore = useAppStore();
 const { download } = useDownload();
 const { hasAuth } = useAuth();
@@ -34,314 +33,314 @@
 
 const { columns, columnChecks, data, getData, getDataByPage, loading, mobilePagination, scrollX } =
   useNaivePaginatedTable({
-  api: () => fetchGetHoisterDataList(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: () => fetchGetHoisterDataList(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: 'time',
-      title: '鏃堕棿',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'key',
-      title: 'key',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'online',
-      title: '缃戠粶鐘舵��  0寮傚父锛�1姝e父',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'qty',
-      title: '浜ч噺',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState1',
-      title: '1#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState2',
-      title: '2#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState3',
-      title: '3#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState4',
-      title: '4#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState5',
-      title: '5#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState6',
-      title: '6#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState7',
-      title: '7#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState8',
-      title: '8#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState9',
-      title: '9#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState10',
-      title: '10#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState11',
-      title: '11#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tState12',
-      title: '12#鎻愬崌鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'pState1',
-      title: '1#鎺掑寘鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'pState2',
-      title: '2#鎺掑寘鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'pState3',
-      title: '3#鎺掑寘鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'pState4',
-      title: '4#鎺掑寘鏈虹姸鎬�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty1',
-      title: '1#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty2',
-      title: '2#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty3',
-      title: '3#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty4',
-      title: '4#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty5',
-      title: '5#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty6',
-      title: '6#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty7',
-      title: '7#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty8',
-      title: '8#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty9',
-      title: '9#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty10',
-      title: '10#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty11',
-      title: '11#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'tQty12',
-      title: '12#鎻愬崌鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'pQty1',
-      title: '1#鎺掑寘鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'pQty2',
-      title: '2#鎺掑寘鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'pQty3',
-      title: '3#鎺掑寘鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'pQty4',
-      title: '4#鎺掑寘鏈轰骇閲�',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'shift',
-      title: '鐝',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'equNo',
-      title: '璁惧',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'remark',
-      title: '澶囨敞',
-      align: 'center',
-      minWidth: 120
-    },
-    {
-      key: 'operate',
-      title: $t('common.operate'),
-      align: 'center',
-      width: 130,
-      render: row => {
-        const divider = () => {
-          if (!hasAuth('qa:hoisterData:edit') || !hasAuth('qa:hoisterData: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: 'time',
+        title: '鏃堕棿',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'key',
+        title: 'key',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'online',
+        title: '缃戠粶鐘舵��  0寮傚父锛�1姝e父',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'qty',
+        title: '浜ч噺',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState1',
+        title: '1#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState2',
+        title: '2#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState3',
+        title: '3#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState4',
+        title: '4#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState5',
+        title: '5#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState6',
+        title: '6#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState7',
+        title: '7#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState8',
+        title: '8#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState9',
+        title: '9#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState10',
+        title: '10#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState11',
+        title: '11#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tState12',
+        title: '12#鎻愬崌鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'pState1',
+        title: '1#鎺掑寘鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'pState2',
+        title: '2#鎺掑寘鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'pState3',
+        title: '3#鎺掑寘鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'pState4',
+        title: '4#鎺掑寘鏈虹姸鎬�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty1',
+        title: '1#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty2',
+        title: '2#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty3',
+        title: '3#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty4',
+        title: '4#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty5',
+        title: '5#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty6',
+        title: '6#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty7',
+        title: '7#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty8',
+        title: '8#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty9',
+        title: '9#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty10',
+        title: '10#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty11',
+        title: '11#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'tQty12',
+        title: '12#鎻愬崌鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'pQty1',
+        title: '1#鎺掑寘鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'pQty2',
+        title: '2#鎺掑寘鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'pQty3',
+        title: '3#鎺掑寘鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'pQty4',
+        title: '4#鎺掑寘鏈轰骇閲�',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'shift',
+        title: '鐝',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'equNo',
+        title: '璁惧',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'remark',
+        title: '澶囨敞',
+        align: 'center',
+        minWidth: 120
+      },
+      {
+        key: 'operate',
+        title: $t('common.operate'),
+        align: 'center',
+        width: 130,
+        render: row => {
+          const divider = () => {
+            if (!hasAuth('qa:hoisterData:edit') || !hasAuth('qa:hoisterData:remove')) {
+              return null;
+            }
+            return <NDivider vertical />;
+          };
 
-        const editBtn = () => {
-          if (!hasAuth('qa:hoisterData:edit')) {
-            return null;
-          }
+          const editBtn = () => {
+            if (!hasAuth('qa:hoisterData:edit')) {
+              return null;
+            }
+            return (
+              <ButtonIcon
+                text
+                type="primary"
+                icon="material-symbols:drive-file-rename-outline-outline"
+                tooltipContent={$t('common.edit')}
+                onClick={() => edit(row.time)}
+              />
+            );
+          };
+
+          const deleteBtn = () => {
+            if (!hasAuth('qa:hoisterData:remove')) {
+              return null;
+            }
+            return (
+              <ButtonIcon
+                text
+                type="error"
+                icon="material-symbols:delete-outline"
+                tooltipContent={$t('common.delete')}
+                popconfirmContent={$t('common.confirmDelete')}
+                onPositiveClick={() => handleDelete(row.time)}
+              />
+            );
+          };
+
           return (
-            <ButtonIcon
-              text
-              type="primary"
-              icon="material-symbols:drive-file-rename-outline-outline"
-              tooltipContent={$t('common.edit')}
-              onClick={() => edit(row.time)}
-            />
+            <div class="flex-center gap-8px">
+              {editBtn()}
+              {divider()}
+              {deleteBtn()}
+            </div>
           );
-        };
-
-        const deleteBtn = () => {
-          if (!hasAuth('qa:hoisterData:remove')) {
-            return null;
-          }
-          return (
-            <ButtonIcon
-              text
-              type="error"
-              icon="material-symbols:delete-outline"
-              tooltipContent={$t('common.delete')}
-              popconfirmContent={$t('common.confirmDelete')}
-              onPositiveClick={() => handleDelete(row.time)}
-            />
-          );
-        };
-
-        return (
-          <div class="flex-center gap-8px">
-            {editBtn()}
-            {divider()}
-            {deleteBtn()}
-          </div>
-        );
+        }
       }
-    }
-  ]
-});
+    ]
+  });
 
 const { drawerVisible, operateType, editingData, handleAdd, handleEdit, checkedRowKeys, onBatchDeleted, onDeleted } =
   useTableOperate(data, 'time', getData);

--
Gitblit v1.9.3