1.修复分页查询导致的关键字查询无数据的问题

fencang
x_z 3 years ago
parent 1613e6a0a2
commit eea34d6b73

@ -109,7 +109,7 @@ export default {
relIdFk: null,
batchNo: null,
page: 1,
limit: 20,
limit: 10,
customerId: null,
supId: null,
unitFk: null,
@ -154,12 +154,13 @@ export default {
unitFk: null,
supId: null,
page: 1,
limit: 20,
limit: 10,
};
this.getList();
},
onSubmit() {
this.loading = true;
this.filterQuery.page = 1;
this.getList();
},
handleSizeChange(val) {
@ -183,7 +184,6 @@ export default {
this.filterQuery.customerId = store.getters.customerId;
filterProducts(this.filterQuery)
.then((response) => {
console.log(response)
this.showSup = response.data.showSup;
this.loading = false;
this.list = response.data.list || [];
@ -231,7 +231,6 @@ export default {
});
},
findMethod(query) {
console.log(query);
this.fromOptions = [];
let cQuery = {
key: query,

@ -38,7 +38,7 @@
<el-form-item>
<el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" icon="search" @click="combine"></el-button>
</el-button-group>
</el-form-item>
@ -112,6 +112,7 @@
@current-change="handleErpPageChange"
layout="prev, pager, next"
:total="pageTotal"
:current-page="listQuery.page"
></el-pagination>
</div>
</el-card>
@ -241,7 +242,6 @@ export default {
this.getList();
},
handleChange(val) {
console.log(val);
this.currentRow = val;
},
handleDetailClick(row) {
@ -258,12 +258,15 @@ export default {
this.getList();
event.target.select();
},
search() {
this.listQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
this.listQuery.customerId = store.getters.customerId;
stockOrderDetailFilterProduct(this.listQuery)
.then((response) => {
console.log(response)
this.loading = false;
if (response.code === 20000) {
this.dataList = response.data.list || [];
@ -292,7 +295,6 @@ export default {
let ids = [];
selection.forEach((obj, index) => {
console.log("obj:===" + obj + "==" + obj.relIdFk)
let data = {
relId: obj.rlId,
}

Loading…
Cancel
Save