Bladeren bron

feat: 门店操作按钮2×2布局 + 菜单图标补充 + 补货员管理入口隐藏

- 门店列表操作列改为两行排列(编辑/设备 + 停业/删除)
- ERP店铺管理、ERP商品关联菜单补充图标
- 补货员管理路由入口暂时隐藏

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
skyline 4 dagen geleden
bovenliggende
commit
cd201a7a9f

+ 11 - 9
haha-admin-web/src/router/modules/operation.ts

@@ -35,20 +35,22 @@ export default {
         title: "门店分布地图"
       }
     },
-    {
-      path: "/operation/replenisher",
-      name: "ReplenisherList",
-      component: () => import("@/views/replenisher/index.vue"),
-      meta: {
-        icon: "ri:user-star-line",
-        title: "补货员管理"
-      }
-    },
+    // 补货员管理(暂时隐藏入口)
+    // {
+    //   path: "/operation/replenisher",
+    //   name: "ReplenisherList",
+    //   component: () => import("@/views/replenisher/index.vue"),
+    //   meta: {
+    //     icon: "ri:user-star-line",
+    //     title: "补货员管理"
+    //   }
+    // },
     {
       path: "/operation/erp-shop",
       name: "ErpShopList",
       component: () => import("@/views/erp-shop/index.vue"),
       meta: {
+        icon: "ri:store-2-line",
         title: "ERP店铺管理"
       }
     },

+ 1 - 0
haha-admin-web/src/router/modules/product.ts

@@ -40,6 +40,7 @@ export default {
       name: "ErpGoodsList",
       component: () => import("@/views/erp-goods/index.vue"),
       meta: {
+        icon: "ri:links-line",
         title: "ERP商品关联"
       }
     }

+ 46 - 50
haha-admin-web/src/views/shop/index.vue

@@ -123,62 +123,58 @@ const {
           @page-current-change="handleCurrentChange"
         >
           <template #operation="{ row }">
-            <el-button
-              class="reset-margin"
-              link
-              type="primary"
-              :size="size"
-              :icon="useRenderIcon(EditPen)"
-              @click="openDialog('修改', row)"
-            >
-              编辑
-            </el-button>
-            <el-button
-              class="reset-margin"
-              link
-              type="primary"
-              :size="size"
-              :icon="useRenderIcon(Link)"
-              @click="handleDevices(row)"
-            >
-              设备
-            </el-button>
-            <el-button
-              class="reset-margin"
-              link
-              type="primary"
-              :size="size"
-              :icon="useRenderIcon(User)"
-              @click="handleReplenishers(row)"
-            >
-              补货员
-            </el-button>
-            <el-button
-              class="reset-margin"
-              link
-              :type="row.status === 1 ? 'danger' : 'success'"
-              :size="size"
-              :icon="useRenderIcon(row.status === 1 ? Lock : Unlock)"
-              @click="handleToggleStatus(row)"
-            >
-              {{ row.status === 1 ? "停业" : "营业" }}
-            </el-button>
-            <el-popconfirm
-              :title="`是否确认删除门店 ${row.name}?`"
-              @confirm="handleDelete(row)"
-            >
-              <template #reference>
+            <div style="display:flex;flex-direction:column;align-items:center;gap:2px">
+              <div style="display:flex;align-items:center;justify-content:center;gap:2px">
                 <el-button
                   class="reset-margin"
                   link
-                  type="danger"
+                  type="primary"
                   :size="size"
-                  :icon="useRenderIcon(Delete)"
+                  :icon="useRenderIcon(EditPen)"
+                  @click="openDialog('修改', row)"
                 >
-                  删除
+                  编辑
                 </el-button>
-              </template>
-            </el-popconfirm>
+                <el-button
+                  class="reset-margin"
+                  link
+                  type="primary"
+                  :size="size"
+                  :icon="useRenderIcon(Link)"
+                  @click="handleDevices(row)"
+                >
+                  设备
+                </el-button>
+              </div>
+              <div style="display:flex;align-items:center;gap:2px">
+                <el-button
+                  class="reset-margin"
+                  link
+                  :type="row.status === 1 ? 'danger' : 'success'"
+                  :size="size"
+                  :icon="useRenderIcon(row.status === 1 ? Lock : Unlock)"
+                  @click="handleToggleStatus(row)"
+                >
+                  {{ row.status === 1 ? "停业" : "营业" }}
+                </el-button>
+                <el-popconfirm
+                  :title="`是否确认删除门店 ${row.name}?`"
+                  @confirm="handleDelete(row)"
+                >
+                  <template #reference>
+                    <el-button
+                      class="reset-margin"
+                      link
+                      type="danger"
+                      :size="size"
+                      :icon="useRenderIcon(Delete)"
+                    >
+                      删除
+                    </el-button>
+                  </template>
+                </el-popconfirm>
+              </div>
+            </div>
           </template>
         </pure-table>
       </template>