diff --git a/.cursor/rules/frontend-design-spec.mdc b/.cursor/rules/frontend-design-spec.mdc index 2a01119..d7f2097 100644 --- a/.cursor/rules/frontend-design-spec.mdc +++ b/.cursor/rules/frontend-design-spec.mdc @@ -31,7 +31,7 @@ alwaysApply: true - HandsontablePro 列定义用 `key` + `label`,勿用 `data` + `title` - HandsontablePro 固定列序:操作(可选,内容自适应宽)→ 序号(50px)→ 复选框(可选,60px)→ 数据;`stretch-columns` 只拉宽数据列,勿再传 `action-column-position` / `action-column-width` - 列表页高度:`flex: 1; min-height: 0`,`.list-wrap` 勿写死 min-height -- 分页 10/30/50/100,默认 30 +- 分页 10/30/50/100,默认 50 - 新页面 path 与 API 前缀冲突时须配置 nginx SPA 回退(见规范 §十五) ### 权限 diff --git a/docs/仓储模块设计方案.md b/docs/仓储模块设计方案.md index af0f001..360f44b 100644 --- a/docs/仓储模块设计方案.md +++ b/docs/仓储模块设计方案.md @@ -237,7 +237,7 @@ flowchart TB | `sku` | `WarehouseSku` | `views/warehouse/sku/index.vue` | `Warehouse.Sku.Query` | | `inboundNotice` | `WarehouseInboundNotice` | `views/warehouse/inboundNotice/index.vue` | `Warehouse.InboundNotice.Query` | -列表页布局遵循 `docs/前端页面设计规范.md`:`xxx-container`、`table-toolbar`、分页右上角、`PaginationPro` 默认 30 条。 +列表页布局遵循 `docs/前端页面设计规范.md`:`xxx-container`、`table-toolbar`、分页右上角、`PaginationPro` 默认 50 条。 ### 2.3 RBAC 权限码 diff --git a/docs/前端页面设计规范.md b/docs/前端页面设计规范.md index 98fcf8a..2c28194 100644 --- a/docs/前端页面设计规范.md +++ b/docs/前端页面设计规范.md @@ -302,7 +302,7 @@ itemList: [ - **位置(必选)**:所有分页组件(`PaginationPro`、Arco `a-pagination`、项目内其它分页封装等)须置于**列表的右上角**——即放在**紧邻列表上方**的工具栏**右侧**(`table-toolbar` / `.list-toolbar` 的 `.toolbar-right`,与 `toolbar-left` 同一行),与列表左右对齐、视觉上位于列表区域上方靠右。禁止将分页放在表格**下方**、列表**底部**、或单独居中另起一行(与「二、2.5.3」「2.5.4」工具栏约定一致)。 - 可选 pageSize:`10 / 30 / 50 / 100`(按需裁剪) -- 默认 pageSize:`30` +- 默认 pageSize:`50` - 接口参数:`pageIndex`、`pageSize`;返回:`totalCount`、`items` 或 `data.list` ### 7.4 操作列 @@ -547,7 +547,7 @@ const { t } = useI18n(); - [ ] 表单使用 FormPro 或统一 label/span - [ ] 表格优先 TablePro / CustomList / HandsontablePro - [ ] **HandsontablePro** 列定义使用 **`key` + `label`**,勿用 `data` + `title`(**§7.5**) -- [ ] 分页组件置于**列表上方工具栏右侧**(列表右上角),**§7.3**;分页 10/30/50/100,默认 30 +- [ ] 分页组件置于**列表上方工具栏右侧**(列表右上角),**§7.3**;分页 10/30/50/100,默认 50 - [ ] 操作按钮按权限使用 `hasPermission` - [ ] 路由 meta 配置 `permission` - [ ] **新增前端页面路径**若落在 `/order/`、`/channel/`、`/system/` 等与 Admin API 同源前缀下,须在 **`nginx-default.conf` / `nginx-docker.conf`** 增加 `^~` 的 `try_files /index.html =200` 规则(**§十五**),避免刷新/直链 404 diff --git a/src/assets/style/global.less b/src/assets/style/global.less index e50b249..5f7f059 100644 --- a/src/assets/style/global.less +++ b/src/assets/style/global.less @@ -632,3 +632,10 @@ div.main-menu[data-v-eb552580] { font-size: 12px !important; font-weight: bold !important; } + +/* 工具栏已选条数:数字默认红色 */ +.selected-count .count-number { + color: #f53f3f; + font-weight: 600; + margin: 0 2px; +} diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index b57132f..557659e 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -345,9 +345,6 @@ declare global { export type { WaybillSource, WaybillContext } from './composables/useAskAdvisor' import('./composables/useAskAdvisor') // @ts-ignore - export type { NanaBatchOpenOptions } from './composables/useNanaBatchPanel' - import('./composables/useNanaBatchPanel') - // @ts-ignore export type { ScanFeedbackType } from './composables/useOperationScanFeedback' import('./composables/useOperationScanFeedback') // @ts-ignore @@ -565,7 +562,6 @@ declare module 'vue' { readonly useId: UnwrapRef readonly useIdle: UnwrapRef readonly useImage: UnwrapRef - readonly useInboxUnread: UnwrapRef readonly useInfiniteScroll: UnwrapRef readonly useIntersectionObserver: UnwrapRef readonly useInterval: UnwrapRef @@ -587,7 +583,6 @@ declare module 'vue' { readonly useMouseInElement: UnwrapRef readonly useMousePressed: UnwrapRef readonly useMutationObserver: UnwrapRef - readonly useNanaBatchPanel: UnwrapRef readonly useNavigatorLanguage: UnwrapRef readonly useNetwork: UnwrapRef readonly useNow: UnwrapRef diff --git a/src/components/TablePro/index.vue b/src/components/TablePro/index.vue index 900ca10..97b5d1b 100644 --- a/src/components/TablePro/index.vue +++ b/src/components/TablePro/index.vue @@ -67,7 +67,7 @@ }, defaultPageSize: { type: Number, - default: null, // null 表示使用默认值 300 + default: null, // null 表示使用统一默认值 50 }, }); const attrs = useAttrs(); @@ -129,16 +129,16 @@ return baseSizes; }; - // 确定默认 pageSize(按统一分页规则,默认 30) + // 确定默认 pageSize(按统一分页规则,默认 50) const getDefaultPageSize = () => { if (props.defaultPageSize) { return props.defaultPageSize; } if (props.maxPageSize) { - // 有最大限制时,默认取 30,但不超过 maxPageSize - return Math.min(30, props.maxPageSize); + // 有最大限制时,默认取 50,但不超过 maxPageSize + return Math.min(50, props.maxPageSize); } - return 30; + return 50; }; const tablePage = reactive({ diff --git a/src/views/channel/components/ChannelConfigHotTable.vue b/src/views/channel/components/ChannelConfigHotTable.vue index d4b0fcb..f680cc9 100644 --- a/src/views/channel/components/ChannelConfigHotTable.vue +++ b/src/views/channel/components/ChannelConfigHotTable.vue @@ -50,7 +50,7 @@ import { computed } from 'vue'; { totalCount: 0, currentPage: 1, - pageSize: 30, + pageSize: 50, serialNoHeader: '', actionColumnHeader: '', customCellRenderer: undefined, diff --git a/src/views/channel/components/ChannelConfigRightPanel.vue b/src/views/channel/components/ChannelConfigRightPanel.vue index 33de327..0a16947 100644 --- a/src/views/channel/components/ChannelConfigRightPanel.vue +++ b/src/views/channel/components/ChannelConfigRightPanel.vue @@ -71,7 +71,7 @@ showPagination: true, totalCount: 0, currentPage: 1, - pageSize: 30, + pageSize: 50, pageSizes: () => [10, 30, 50, 100], } ); diff --git a/src/views/channel/composables/useKpiAreaPage.ts b/src/views/channel/composables/useKpiAreaPage.ts index 132b32f..7dd6ac5 100644 --- a/src/views/channel/composables/useKpiAreaPage.ts +++ b/src/views/channel/composables/useKpiAreaPage.ts @@ -359,7 +359,7 @@ export function useKpiAreaPage(areaType: KpiAreaType) { const totalCount = ref(0); const currentPage = ref(1); - const pageSize = ref(30); + const pageSize = ref(50); const tableLoading = ref(false); const leftLoading = ref(false); diff --git a/src/views/channel/issueTemplate/index.vue b/src/views/channel/issueTemplate/index.vue index 561a55c..d09d14e 100644 --- a/src/views/channel/issueTemplate/index.vue +++ b/src/views/channel/issueTemplate/index.vue @@ -47,7 +47,7 @@ type IssueTemplateRow = { const tableData = ref([]) const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const totalCount = ref(0) const listLoading = ref(false) const organizationOptions = ref>([]) @@ -128,7 +128,7 @@ function formatNotifyMethods(methods: string[]) { const found = NOTIFY_METHOD_OPTIONS.find((item) => item.value === code) return found ? t(found.labelKey) : code }) - .join('、') + .join('ã€?) } function mapRow(r: any): IssueTemplateRow { @@ -443,7 +443,7 @@ const { tableContainerRef, tableHeight } = useTableContainerHeight() const handsontableHeight = computed(() => Math.max(tableHeight.value || 0, 400)) function customCellRenderer(_row: number, col: number, _value: any, rowData: IssueTemplateRow): string | null { - // 固定列序:操作 + 序号 → 数据从 col 2 起 + // 固定列序:操ä½?+ 序号 â†?数据ä»?col 2 èµ? const dataColIndex = col - 2 if (dataColIndex < 0 || dataColIndex >= hotColumns.value.length) return null const colKey = hotColumns.value[dataColIndex].key @@ -466,7 +466,7 @@ function customCellRenderer(_row: number, col: number, _value: any, rowData: Iss ? t('channel.issueTemplate.handlerType.customer') : t('channel.issueTemplate.handlerType.user') const detail = rowData.handlerType === 'user' && rowData.handlerUserName - ? `:${rowData.handlerUserName}` + ? `ï¼?{rowData.handlerUserName}` : '' return `${typeLabel}${detail}` } diff --git a/src/views/channel/salesProducts/components/ChannelReferencePreviewModal.vue b/src/views/channel/salesProducts/components/ChannelReferencePreviewModal.vue index 45e4499..ae1b5a1 100644 --- a/src/views/channel/salesProducts/components/ChannelReferencePreviewModal.vue +++ b/src/views/channel/salesProducts/components/ChannelReferencePreviewModal.vue @@ -35,7 +35,7 @@ const tableData = ref[]>([]); const pagination = ref({ current: 1, - pageSize: 30, + pageSize: 50, total: 0, showTotal: true, showPageSize: true, diff --git a/src/views/channel/weightRounding/index.vue b/src/views/channel/weightRounding/index.vue index 5f10968..a265b10 100644 --- a/src/views/channel/weightRounding/index.vue +++ b/src/views/channel/weightRounding/index.vue @@ -382,7 +382,7 @@ const searchModel = reactive({ keyword: '' }); const totalCount = ref(0); const currentPage = ref(1); - const pageSize = ref(30); + const pageSize = ref(50); const tableLoading = ref(false); const leftLoading = ref(false); diff --git a/src/views/channel/weightRules/index.vue b/src/views/channel/weightRules/index.vue index 29c211d..23b9c28 100644 --- a/src/views/channel/weightRules/index.vue +++ b/src/views/channel/weightRules/index.vue @@ -445,7 +445,7 @@ const searchModel = reactive({ keyword: '' }); const totalCount = ref(0); const currentPage = ref(1); - const pageSize = ref(30); + const pageSize = ref(50); const tableLoading = ref(false); const leftLoading = ref(false); @@ -480,7 +480,7 @@ ]); function hotCellRenderer(_row: number, col: number, _value: any, rowData: any): string | null { - // ChannelConfigHotTable:操作 + 序号 → 数据从 col 2 起 + // ChannelConfigHotTable:操ä½?+ 序号 â†?数据ä»?col 2 èµ? const dataColIndex = col - 2; if (dataColIndex < 0 || dataColIndex >= hotColumns.value.length) return null; const colKey = hotColumns.value[dataColIndex].key; diff --git a/src/views/finance/receivablePayable/index.vue b/src/views/finance/receivablePayable/index.vue index 2facfd5..df10c37 100644 --- a/src/views/finance/receivablePayable/index.vue +++ b/src/views/finance/receivablePayable/index.vue @@ -206,7 +206,7 @@ const viewMode = ref('detail') const dateRange = ref([]) const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const feeItemDictRows = ref([]) const columnConfigState = ref( diff --git a/src/views/kb/article/index.vue b/src/views/kb/article/index.vue index 863bbbd..630c08a 100644 --- a/src/views/kb/article/index.vue +++ b/src/views/kb/article/index.vue @@ -271,7 +271,7 @@ const categoryFilter = ref() const statusFilter = ref() const audienceFilter = ref() const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const modalVisible = ref(false) const modalLoading = ref(false) diff --git a/src/views/marketing/commissionDetail/index.vue b/src/views/marketing/commissionDetail/index.vue index e7e8319..9f1b0a7 100644 --- a/src/views/marketing/commissionDetail/index.vue +++ b/src/views/marketing/commissionDetail/index.vue @@ -172,7 +172,7 @@ const listLoading = ref(false) const orderNo = ref('') const statusFilter = ref(undefined) const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const adjustVisible = ref(false) const adjustLoading = ref(false) diff --git a/src/views/marketing/commissionWithdraw/index.vue b/src/views/marketing/commissionWithdraw/index.vue index dbcc96e..ed29632 100644 --- a/src/views/marketing/commissionWithdraw/index.vue +++ b/src/views/marketing/commissionWithdraw/index.vue @@ -166,7 +166,7 @@ const customerCode = ref('') const statusFilter = ref(1) const withdrawType = ref(undefined) const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const rejectVisible = ref(false) const rejectLoading = ref(false) @@ -220,7 +220,7 @@ function statusTone(status: number): StatusTagTone { } function customCellRenderer(_row: number, col: number, _value: unknown, rowData: WithdrawRow): string | null { - // 固定列序:操作 + 序号 → 数据从 col 2 起 + // 固定列序:操ä½?+ 序号 â†?数据ä»?col 2 èµ? const dataColIndex = col - 2 if (dataColIndex < 0 || dataColIndex >= hotColumns.value.length) return null const colKey = hotColumns.value[dataColIndex].key diff --git a/src/views/marketing/components/PointsFlowPanel.vue b/src/views/marketing/components/PointsFlowPanel.vue index cd0bd25..cea857b 100644 --- a/src/views/marketing/components/PointsFlowPanel.vue +++ b/src/views/marketing/components/PointsFlowPanel.vue @@ -169,7 +169,7 @@ const listLoading = ref(false) const customerCode = ref('') const changeType = ref(undefined) const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const adjustVisible = ref(false) const adjustLoading = ref(false) diff --git a/src/views/marketing/couponTemplate/index.vue b/src/views/marketing/couponTemplate/index.vue index 7981d02..c148f6c 100644 --- a/src/views/marketing/couponTemplate/index.vue +++ b/src/views/marketing/couponTemplate/index.vue @@ -158,7 +158,7 @@ const listLoading = ref(false) const keyword = ref('') const statusFilter = ref(undefined) const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const modalVisible = ref(false) const modalLoading = ref(false) diff --git a/src/views/marketing/memberLevel/index.vue b/src/views/marketing/memberLevel/index.vue index b8eb43e..56f28bc 100644 --- a/src/views/marketing/memberLevel/index.vue +++ b/src/views/marketing/memberLevel/index.vue @@ -329,7 +329,7 @@ const totalCount = ref(0) const listLoading = ref(false) const keyword = ref('') const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const drawerVisible = ref(false) const drawerLoading = ref(false) diff --git a/src/views/operation/fulfillPack/index.vue b/src/views/operation/fulfillPack/index.vue index e291734..454f832 100644 --- a/src/views/operation/fulfillPack/index.vue +++ b/src/views/operation/fulfillPack/index.vue @@ -34,7 +34,7 @@ const listLoading = ref(false) const confirmLoading = ref(false) const queueList = ref([]) const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const totalCount = ref(0) const selectedOrderId = ref(null) const selectedQueueRows = ref([]) diff --git a/src/views/operation/inboundScan/index.vue b/src/views/operation/inboundScan/index.vue index 45fb5cd..14e971a 100644 --- a/src/views/operation/inboundScan/index.vue +++ b/src/views/operation/inboundScan/index.vue @@ -195,7 +195,7 @@ const submitting = ref(false) const lookingUp = ref(false) const listLoading = ref(false) const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const headerSearchParams = reactive>({}) const NUMBER_FILTER_KEYS = ['waybillNumber'] as const let softPollTimer: ReturnType | null = null diff --git a/src/views/operation/outboundScan/index.vue b/src/views/operation/outboundScan/index.vue index cf36f7d..b2c7478 100644 --- a/src/views/operation/outboundScan/index.vue +++ b/src/views/operation/outboundScan/index.vue @@ -179,7 +179,7 @@ const submitting = ref(false) const lookingUp = ref(false) const listLoading = ref(false) const currentPage = ref(1) -const pageSize = ref(30) +const pageSize = ref(50) const headerSearchParams = reactive>({}) const NUMBER_FILTER_KEYS = ['waybillNumber'] as const diff --git a/src/views/operation/printLabel/index.vue b/src/views/operation/printLabel/index.vue index 1a5fb7f..539ca5e 100644 --- a/src/views/operation/printLabel/index.vue +++ b/src/views/operation/printLabel/index.vue @@ -1,7 +1,7 @@