|
@@ -158,14 +158,13 @@ export default {
|
|
|
cvenName: '', //供应商
|
|
|
planLotNumber: '', //计划单号
|
|
|
csocode: '', //销售订单号
|
|
|
- pageNo: '1' // 初始页
|
|
|
- // pageSize: '10' // 为了显示数据总计数
|
|
|
+ pageNo: '' // 点击的页数
|
|
|
},
|
|
|
// 分页
|
|
|
pagination: {
|
|
|
- total: 0,
|
|
|
- current: 0,
|
|
|
- pageSize: 0
|
|
|
+ // total: '', //总条数
|
|
|
+ // current: '', //当前页
|
|
|
+ // pageSize: '' //一页多少
|
|
|
},
|
|
|
cvenNameArr: [], //供应商数组 chart
|
|
|
cinvNameArr: [], //物料名称数组chart
|
|
@@ -196,36 +195,30 @@ export default {
|
|
|
// 分页查询 染损列表
|
|
|
getdyeLossList() {
|
|
|
this.$nextTick(() => {
|
|
|
- console.log('111')
|
|
|
dyeLossList(this.queryParam).then(res => {
|
|
|
- console.log('查询接口调成')
|
|
|
- console.log(res.result)
|
|
|
+ // console.log(res.result)
|
|
|
if (res.success) {
|
|
|
- console.log('333')
|
|
|
this.dyeLossRateData = res.result.records
|
|
|
console.log('染损列表', this.dyeLossRateData)
|
|
|
- console.log('染损列表cvenName', this.dyeLossRateData.cinvCode)
|
|
|
- // 分页信息赋值
|
|
|
this.pagination = {
|
|
|
total: res.result.total,
|
|
|
current: res.result.current,
|
|
|
pageSize: res.result.size
|
|
|
}
|
|
|
- console.log('this.pagination:', this.pagination)
|
|
|
- console.log('res.result.total', res.result.total)
|
|
|
+ console.log('分页器赋值:', this.pagination.total, this.pagination.current, this.pagination.pageSize)
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- // 分页、排序、筛选变化时触发
|
|
|
+ // 分页变化时触发
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
|
- console.log('当前页信息>>>>', pagination)
|
|
|
+ console.log('分页器信息>>>>', pagination)
|
|
|
if (Object.keys(sorter).length > 0) {
|
|
|
this.isorter.column = sorter.field
|
|
|
this.isorter.order = sorter.order == 'ascend' ? 'asc' : 'desc'
|
|
|
}
|
|
|
this.queryParam.pageNo = pagination.current
|
|
|
- console.log('this.queryParam.pageNo', this.queryParam.pageNo)
|
|
|
+ // console.log('this.queryParam.pageNo', this.queryParam.pageNo)
|
|
|
this.getdyeLossList()
|
|
|
},
|
|
|
// 查询按钮
|
|
@@ -248,17 +241,19 @@ export default {
|
|
|
},
|
|
|
// 合计行 TODO: table 单元格合并
|
|
|
totalFooterShow(data) {
|
|
|
- console.log('需合计数据(合计行)data', data)
|
|
|
- return (
|
|
|
- <a-table
|
|
|
- rowKey={Math.random}
|
|
|
- bordered={false}
|
|
|
- pagination={false}
|
|
|
- columns={this.dyeLossRateColumns}
|
|
|
- dataSource={this.dyeLossRateDataSource || []}
|
|
|
- showHeader={false}
|
|
|
- ></a-table>
|
|
|
- )
|
|
|
+ if (data) {
|
|
|
+ console.log('需合计数据(合计行)data', data)
|
|
|
+ return (
|
|
|
+ <a-table
|
|
|
+ rowKey={Math.random}
|
|
|
+ bordered={false}
|
|
|
+ pagination={false}
|
|
|
+ columns={this.dyeLossRateColumns}
|
|
|
+ dataSource={this.dyeLossRateDataSource || []}
|
|
|
+ showHeader={false}
|
|
|
+ ></a-table>
|
|
|
+ )
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
computed: {
|