From f69aafaad9bbb5dfeaa7481c5ce0c8c5066285ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Thu, 15 Jan 2026 13:53:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(automatedWarehouse):=20=E6=89=98=E7=9B=98?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=86=E9=A1=B5=E5=92=8C=E8=BF=87=E6=BB=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增最大已用数量查询条件输入框 - 集成分页组件支持页码、每页条数切换 - 添加分页相关状态变量和参数配置 - 实现分页数据请求和响应处理逻辑 - 优化SOP管理界面布局和交互流程 - 移除不必要的按钮和错误类型筛选选项 - 调整表格列宽度以适应内容显示 - 更新API调用逻辑适配分页参数格式 --- .../automatedWarehouse/palletMergeQuery.vue | 61 +++++- .../automatedWarehouse/sopManagement.vue | 188 ++++++++---------- 2 files changed, 144 insertions(+), 105 deletions(-) diff --git a/src/views/modules/automatedWarehouse/palletMergeQuery.vue b/src/views/modules/automatedWarehouse/palletMergeQuery.vue index a741292..31c910c 100644 --- a/src/views/modules/automatedWarehouse/palletMergeQuery.vue +++ b/src/views/modules/automatedWarehouse/palletMergeQuery.vue @@ -18,6 +18,15 @@ + + + + + 查询 @@ -74,6 +83,17 @@ + + + + @@ -93,9 +113,16 @@ export default { submitLoading: false, selectedRows: [], palletTypeOptions: [], + // 分页参数 - rqrq + pageIndex: 1, + pageSize: 20, + totalPage: 0, searchData: { site: this.$store.state.user.site || '55', - palletType: '' + palletType: '', + maxPositionCount: null, // 最大已用数量 - rqrq + page: 1, + limit: 20 }, // 表格列配置 - rqrq columnList: [ @@ -236,6 +263,8 @@ export default { handlePalletTypeChange() { this.dataList = [] this.selectedRows = [] + this.totalPage = 0 + this.pageIndex = 1 if (this.$refs.mainTable) { this.$refs.mainTable.clearSelection() } @@ -254,10 +283,24 @@ export default { this.$refs.mainTable.clearSelection() } + // 设置分页参数 - rqrq + this.searchData.page = this.pageIndex + this.searchData.limit = this.pageSize + searchPalletMergeList(this.searchData).then(({ data }) => { this.dataListLoading = false if (data && data.code == 0) { - this.dataList = data.rows || [] + // 支持分页返回格式 - rqrq + if (data.page) { + this.dataList = data.page.list || [] + this.pageIndex = data.page.currPage + this.pageSize = data.page.pageSize + this.totalPage = data.page.totalCount + } else { + // 兼容旧的非分页返回格式 - rqrq + this.dataList = data.rows || [] + this.totalPage = this.dataList.length + } if (this.dataList.length === 0) { this.$message({ message: '没有找到需要合托的托盘', @@ -267,14 +310,27 @@ export default { } } else { this.dataList = [] + this.totalPage = 0 this.$alert(data.msg || '查询失败', '错误', { confirmButtonText: '确定' }) } }).catch(() => { this.dataListLoading = false this.dataList = [] + this.totalPage = 0 this.$message.error('查询失败') }) }, + // 每页条数变化 - rqrq + sizeChangeHandle(val) { + this.pageSize = val + this.pageIndex = 1 + this.searchTable() + }, + // 当前页变化 - rqrq + currentChangeHandle(val) { + this.pageIndex = val + this.searchTable() + }, // 行点击选中/取消选中 - rqrq handleRowClick(row) { this.$refs.mainTable.toggleRowSelection(row) @@ -341,4 +397,3 @@ export default { margin-right: 4px; } - diff --git a/src/views/modules/automatedWarehouse/sopManagement.vue b/src/views/modules/automatedWarehouse/sopManagement.vue index b62c81a..66f8367 100644 --- a/src/views/modules/automatedWarehouse/sopManagement.vue +++ b/src/views/modules/automatedWarehouse/sopManagement.vue @@ -4,10 +4,10 @@ - - - @@ -50,31 +50,6 @@ - - - - - - - - - - - - - - - - @@ -86,14 +61,14 @@ -
+
{{ currentUrlConfig.platform }} - + {{ currentUrlConfig.moduleName }} - {{ currentUrlConfig.pageName }}
@@ -108,7 +83,7 @@ highlight-current-row v-loading="dataListLoading" style="width: 100%;"> - +