Browse Source

2025-11-17

订单产出标签报表加分页
master
fengyuan_yang 2 months ago
parent
commit
e211fcea54
  1. 42
      src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue

42
src/views/modules/shopOrder/productionReport/searchSfdcRollsReport.vue

@ -90,6 +90,15 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
<!-- 属性变动对话框 --> <!-- 属性变动对话框 -->
<el-dialog title="属性变动" :close-on-click-modal="false" v-drag :visible.sync="attributeChangeDialogVisible" width="450px"> <el-dialog title="属性变动" :close-on-click-modal="false" v-drag :visible.sync="attributeChangeDialogVisible" width="450px">
@ -236,6 +245,9 @@ import {updateInventoryStockAttribute} from "../../../../api/wms/wms";
}, },
dataList:[], dataList:[],
dataListLoading: false, dataListLoading: false,
pageIndex: 1,
pageSize: 50,
totalPage: 0,
columnList: [ columnList: [
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -575,9 +587,33 @@ import {updateInventoryStockAttribute} from "../../../../api/wms/wms";
}) })
}, },
getData(){ getData(){
searchSfdcRollsReport(this.searchData).then(({data}) => {
this.dataList = data.rows
})
this.dataListLoading = true;
//
const params = {
...this.searchData,
page: (this.pageIndex - 1) * this.pageSize, // OFFSET
limit: this.pageSize // FETCH NEXT
};
searchSfdcRollsReport(params).then(({data}) => {
this.dataList = data.rows || [];
this.totalPage = data.total || 0;
this.dataListLoading = false;
}).catch(err => {
console.error('查询失败:', err);
this.$message.error('查询失败!');
this.dataListLoading = false;
});
},
//
sizeChangeHandle(val) {
this.pageSize = val;
this.pageIndex = 1;
this.getData();
},
//
currentChangeHandle(val) {
this.pageIndex = val;
this.getData();
}, },
//excel //excel
createExportData() { createExportData() {

Loading…
Cancel
Save