diff --git a/src/views/inventory/invPreProducts.vue b/src/views/inventory/invPreProducts.vue index 97bf3eb..c171397 100644 --- a/src/views/inventory/invPreProducts.vue +++ b/src/views/inventory/invPreProducts.vue @@ -216,10 +216,10 @@ export default { limit: 20, }; this.getList(); - this.filterQuery.page=null; }, onSubmit() { this.loading = true; + this.filterQuery.page = 1; this.getList(); }, handleSizeChange(val) { @@ -229,7 +229,6 @@ export default { handleCurrentChange(val) { this.filterQuery.page = val; this.getList(); - this.filterQuery.page = 1; }, handleUnitClick(row) { this.curIndex = row.id; diff --git a/src/views/warehouse/AdditionalOrder.vue b/src/views/warehouse/AdditionalOrder.vue index ce2b7c9..61e9c38 100644 --- a/src/views/warehouse/AdditionalOrder.vue +++ b/src/views/warehouse/AdditionalOrder.vue @@ -359,6 +359,7 @@ export default { }, onSubmit() { this.loading = true; + this.filterQuery.page = 1; this.getList(); }, handleSizeChange(val) { @@ -368,7 +369,6 @@ export default { handleCurrentChange(val) { this.filterQuery.page = val; this.getList(); - this.filterQuery.page = 1; }, handleUnitClick(row) { this.curIndex = row.id;