From e900aec86b529815369fc48b7582d0a26a24d59f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Thu, 18 Dec 2025 11:51:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=94=80=E5=94=AE=E6=9D=83=E9=99=90):=20?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E9=92=A2=E5=8D=B7=E9=94=80=E5=94=AE=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=88=86=E9=85=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增销售权限管理模块,包含以下功能: 1. 在用户模块添加id字段用于权限控制 2. 重构CoilSelector组件支持销售视角权限过滤 3. 新增销售权限分配页面,支持钢卷分配与移除 4. 优化表格样式和交互体验 组件现在支持根据用户权限动态显示和过滤钢卷数据,管理员可在新页面为销售分配钢卷权限 --- klp-ui/src/assets/styles/element-ui.scss | 4 +- klp-ui/src/components/CoilSelector/data.js | 52 ++ klp-ui/src/components/CoilSelector/index.vue | 172 ++--- .../components/HomeModules/StatisticGroup.vue | 4 +- klp-ui/src/store/getters.js | 1 + klp-ui/src/store/modules/user.js | 7 +- klp-ui/src/views/index.vue | 3 +- klp-ui/src/views/wms/delivery/permi/index.vue | 586 ++++++++++++++++++ klp-ui/src/views/wms/delivery/plan/index.vue | 2 +- 9 files changed, 749 insertions(+), 82 deletions(-) create mode 100644 klp-ui/src/components/CoilSelector/data.js create mode 100644 klp-ui/src/views/wms/delivery/permi/index.vue diff --git a/klp-ui/src/assets/styles/element-ui.scss b/klp-ui/src/assets/styles/element-ui.scss index 7ea86558..480f6e59 100644 --- a/klp-ui/src/assets/styles/element-ui.scss +++ b/klp-ui/src/assets/styles/element-ui.scss @@ -1551,8 +1551,8 @@ body { .el-pager li { margin: 0 2px; min-width: 30px; - height: 30px; - line-height: 30px; + // height: 30px; + // line-height: 30px; border-radius: 4px; background: $--metal-gradient-light; border: 1px solid $--border-color-light; diff --git a/klp-ui/src/components/CoilSelector/data.js b/klp-ui/src/components/CoilSelector/data.js new file mode 100644 index 00000000..85762b0e --- /dev/null +++ b/klp-ui/src/components/CoilSelector/data.js @@ -0,0 +1,52 @@ +export const defaultColumns = [ + { + label: '卷号', + align: 'center', + prop: 'currentCoilNo', + showOverflowTooltip: true + }, + { + label: '存储位置', + align: 'center', + prop: 'actualWarehouseName', + width: '120', + showOverflowTooltip: true + }, + { + label: '物料', + align: 'center', + prop: 'itemName', + width: '100' + }, + { + label: '规格', + align: 'center', + prop: 'specification', + width: '100' + }, + { + label: '材质', + align: 'center', + prop: 'material', + width: '100' + }, + { + label: '厂家', + align: 'center', + prop: 'manufacturer', + width: '100' + }, + { + label: '重量(t)', + align: 'center', + prop: 'netWeight', + width: '100' + }, + { + label: '库区', + align: 'center', + prop: 'warehouseName', + width: '120', + showOverflowTooltip: true + }, +] \ No newline at end of file diff --git a/klp-ui/src/components/CoilSelector/index.vue b/klp-ui/src/components/CoilSelector/index.vue index 20fe5010..e03cd460 100644 --- a/klp-ui/src/components/CoilSelector/index.vue +++ b/klp-ui/src/components/CoilSelector/index.vue @@ -24,19 +24,22 @@ @keyup.enter.native="handleQuery" /> - + - + - + - + - + 搜索 重置 @@ -44,22 +47,32 @@ - + - + +
+ + + + + + + + + + +
+ - +