- 新增 useTabOrder、tab-order 工具与 tab-order-registry 注册表,按模块集中登记 页面标签并懒加载默认标签;新增 TabOrderSettingsDialog、TabOrderDragList, 支持拖拽排序、设置默认页签与重置,SortSettingDialog / TabArea 迁移到同一套实现 - 用户偏好存储新增「用户级」globalMap(不随仓库隔离),tabOrder 写入用户级 scope, 旧 scope 一次性迁移并对齐回退读取;各页面 config 接入统一注册表, 移除页面内自写的排序与默认页签逻辑 - 新增 tbyc-config 统一配置文件与分区注册表,UpperTable 的配置导出/导入 升级为 tbyc-config.json(字段列、标签排序、界面显示、快捷键), 兼容旧版「全局字段配置」与 tabOrders 文件 - Element Plus 改为 unplugin-vue-components 按需自动引入,移除 app.use(ElementPlus)、dts 生成与强制 vendor-element-plus 分包 - ECharts 改为按需注册(折线/饼图 + 所需组件),dashboard 图表统一走 @/utils/echarts;移除 three.js 及 overlookControls / threeScene / threeUtils, 同步清理依赖、manualChunks 与 optimizeDeps - vue-devtools 支持 VITE_VUE_DEVTOOLS=off 关闭;抽离 wavePrintPayload 供订单、 复核页面复用,scanFields 承接批量搜索操作符与「包含商品」筛选项 - 补充标签排序与默认页签统一方案、tbyc-config 说明文档, 更新标签页性能测量结论与用户偏好保存方案
78 lines
2.9 KiB
TypeScript
78 lines
2.9 KiB
TypeScript
import type { ToolbarButtonConfig } from '@/components/ToolbarButtonGroup/types'
|
|
|
|
// ============================================================
|
|
// 站内信群组 - ScanBox 筛选字段
|
|
// ============================================================
|
|
export const groupAvailableFields = [
|
|
{
|
|
value: 'store_id',
|
|
label: '货主',
|
|
type: 'select',
|
|
multiple: true,
|
|
placeholder: '请选择货主',
|
|
options: [] as { label: string; value: unknown }[],
|
|
},
|
|
{
|
|
value: 'groupType',
|
|
label: '群类型',
|
|
type: 'select',
|
|
placeholder: '请选择群类型',
|
|
operators: ['eq'],
|
|
defaultOperator: 'eq',
|
|
options: [
|
|
{ label: '货主群', value: 'store' },
|
|
{ label: '仓库群', value: 'warehouse' },
|
|
{ label: '快递群', value: 'express' },
|
|
],
|
|
},
|
|
{
|
|
value: 'keyword',
|
|
label: '群名称',
|
|
type: 'text',
|
|
placeholder: '模糊搜索群名称',
|
|
operators: ['contains'],
|
|
defaultOperator: 'contains',
|
|
},
|
|
{
|
|
value: 'is_blocked',
|
|
label: '是否禁用',
|
|
type: 'select',
|
|
placeholder: '请选择状态',
|
|
operators: ['eq'],
|
|
defaultOperator: 'eq',
|
|
options: [
|
|
{ label: '启用', value: 0 },
|
|
{ label: '禁用', value: 1 },
|
|
],
|
|
},
|
|
]
|
|
|
|
// ============================================================
|
|
// 站内信群组 - UpperTable 列配置
|
|
// ============================================================
|
|
export const groupColumns = [
|
|
{ prop: 'group_name', label: '群名称', minWidth: '160', showOverflowTooltip: true },
|
|
{ prop: 'group_id', label: '群ID', minWidth: '160', showOverflowTooltip: true },
|
|
{ prop: 'group_type', label: '群类型', width: '100' },
|
|
{ prop: 'sub_type', label: '子类型', width: '100' },
|
|
{ prop: 'store_name', label: '货主', minWidth: '120', showOverflowTooltip: true },
|
|
{ prop: 'source_type', label: '来源', width: '90' },
|
|
{ prop: 'source_extra', label: '来源标识', minWidth: '140', showOverflowTooltip: true },
|
|
{ prop: 'express_interfaces', label: '快递接口', minWidth: '160', showOverflowTooltip: true },
|
|
{ prop: 'system_express_name', label: '系统快递', width: '110', showOverflowTooltip: true },
|
|
{ prop: 'ai_enabled', label: 'AI回复', width: '90' },
|
|
{ prop: 'template_reply_enabled', label: '模板回复', width: '90' },
|
|
{ prop: 'is_blocked', label: '状态', width: '80' },
|
|
{ prop: 'created_at', label: '创建时间', width: '170' },
|
|
{ prop: 'updated_at', label: '更新时间', width: '170' },
|
|
{ prop: 'actions', label: '操作', width: '220', fixed: 'right' },
|
|
]
|
|
|
|
// ============================================================
|
|
// 工具栏按钮
|
|
// ============================================================
|
|
export const groupToolbarButtons: ToolbarButtonConfig[] = [
|
|
{ key: 'refresh', label: '刷新', category: 'refresh', size: 'small', loadingKey: 'loading', action: 'loadData' },
|
|
{ key: 'showBindDialog', label: '生成绑群码', category: 'action', size: 'small', action: 'showBindDialog' },
|
|
]
|