|
@@ -8,8 +8,10 @@
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
height="calc(100vh-300px)"
|
|
height="calc(100vh-300px)"
|
|
|
:pageSize="20"
|
|
:pageSize="20"
|
|
|
|
|
+ :pageSizes="[10,20,30,40, 50, 100, 200, 500,1000]"
|
|
|
:datasource="datasource"
|
|
:datasource="datasource"
|
|
|
cache-key="systemRoleTable"
|
|
cache-key="systemRoleTable"
|
|
|
|
|
+ row-key="id"
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
|
>
|
|
>
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
@@ -191,6 +193,7 @@
|
|
|
width: 45,
|
|
width: 45,
|
|
|
type: 'selection',
|
|
type: 'selection',
|
|
|
columnKey: 'selection',
|
|
columnKey: 'selection',
|
|
|
|
|
+ reserveSelection: true,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
fixed: 'left'
|
|
fixed: 'left'
|
|
|
},
|
|
},
|
|
@@ -348,7 +351,7 @@
|
|
|
this.$message.warning('请选择要生成对账单的记录');
|
|
this.$message.warning('请选择要生成对账单的记录');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 检查选中的记录状态是否为2
|
|
// 检查选中的记录状态是否为2
|
|
|
const invalidRecords = this.selection.filter(item => item.status != 2);
|
|
const invalidRecords = this.selection.filter(item => item.status != 2);
|
|
|
if (invalidRecords.length > 0) {
|
|
if (invalidRecords.length > 0) {
|
|
@@ -362,7 +365,7 @@
|
|
|
this.$message.warning('请选择批次维度或包装维度调拨单生成对账单');
|
|
this.$message.warning('请选择批次维度或包装维度调拨单生成对账单');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.generateStatementFlag = true;
|
|
this.generateStatementFlag = true;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.generateStatementRef.open(type, this.selection);
|
|
this.$refs.generateStatementRef.open(type, this.selection);
|
|
@@ -445,10 +448,16 @@
|
|
|
},
|
|
},
|
|
|
/* 表格数据源 */
|
|
/* 表格数据源 */
|
|
|
datasource({ page, limit, where }) {
|
|
datasource({ page, limit, where }) {
|
|
|
|
|
+ const params = Object.assign({}, where);
|
|
|
|
|
+ if (params.time?.length) {
|
|
|
|
|
+ params.startTime = params.time[0];
|
|
|
|
|
+ params.endTime = params.time[1];
|
|
|
|
|
+ }
|
|
|
|
|
+ delete params.time;
|
|
|
return storageApi.getAllotApplyPage({
|
|
return storageApi.getAllotApplyPage({
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit,
|
|
size: limit,
|
|
|
- ...where
|
|
|
|
|
|
|
+ ...params
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
/* 刷新表格 */
|
|
/* 刷新表格 */
|
|
@@ -500,4 +509,3 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|
|
|
-
|
|
|