1.修复部分页面分页问题

fengcang
x_z 3 years ago
parent 8004ecfffa
commit ea1f6b3e04

@ -12,7 +12,7 @@
<el-form-item>
<el-button-group style="margin-left: 10px;display:flex;">
<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="handleAddClick"
:disabled="!configParms.entrustAction"
>新增
@ -178,6 +178,10 @@ export default {
this.filterQuery.page = val;
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
getEntrustRece(this.filterQuery)

@ -24,7 +24,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-group>
</el-form-item>
</el-form>
@ -526,6 +526,10 @@ export default {
}
this.thirdSysFk = this.thirdSysFk;
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
getBasicThirdSys(this.filterQuery)

@ -77,7 +77,7 @@
</el-form-item>
<el-form-item style="display: flex">
<el-button-group>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="searchList"></el-button>
<el-button type="primary" size="mini" icon="search" @click="combine"
:loading="combineLoading"
>选入
@ -173,6 +173,10 @@ export default {
this.erpQuery.page = val;
this.getErpList();
},
searchList() {
this.unitQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
this.unitQuery.thirdSys = this.thirdSysFk;

@ -1361,7 +1361,7 @@ export default {
getJoinBussinessType(this.bussinessTypeQuery).then((res) => {
this.selectBussinessTypeList = [];
this.bussinessTypeList = res.data.list;
this.bussinessTypeTotal = res.data.total;
var that = this;
that.$nextTick(() => {
if (that.$refs.typeList) {

@ -613,9 +613,9 @@ export default {
this.detailLoading = true;
stockOrderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.detailLoading = false;
this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
})
.catch(() => {
this.detailLoading = false;

@ -764,9 +764,9 @@ export default {
this.detailLoading = true;
stockOrderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.detailLoading = false;
this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
})
.catch(() => {
this.detailLoading = false;
@ -884,7 +884,6 @@ export default {
if (valid) {
this.detailLoading = true;
let tQuery = this.detailFormData;
console.log(this.detailCountMax + "---" + this.detailFormData.count + "---" + this.detailFormData.reCount)
if (this.detailCountMax) {
if (this.detailFormData.count < this.detailFormData.reCount) {
this.$message.error("实际数量不能高于订单数量");

@ -703,6 +703,7 @@ export default {
.then((response) => {
this.detailLoading = false;
this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
})
.catch(() => {
this.detailLoading = false;

@ -619,7 +619,6 @@ export default {
},
handleEdit(index, row) {
this.currentCheckIndex = index;
console.log(this.currentCheckIndex)
},
handleSave(index, row) {
this.currentCheckIndex = -1;
@ -636,7 +635,6 @@ export default {
row.forEach((item) => {
_this.multipId.push(item.id);
})
console.log(this.multipId);
},
batchSetParams(flag, type) {
if (flag == '1' && type == 'salesListNo') {
@ -808,9 +806,9 @@ export default {
this.detailLoading = true;
stockOrderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.detailLoading = false;
this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
})
.catch(() => {
this.detailLoading = false;

@ -477,7 +477,7 @@ export default {
this.query.startTime = null;
this.query.endTime = null;
}
this.query.page = 1;
this.getList();
if (this.query.status === "202" || this.query.status === "502") {
this.haveDistributionVisible = true;
@ -611,9 +611,9 @@ export default {
this.detailLoading = true;
stockOrderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.detailLoading = false;
this.detailList = response.data.list || [];
this.detailTotal = response.data.total;
})
.catch(() => {
this.detailLoading = false;

@ -260,6 +260,7 @@ export default {
this.filterQuery.startDate = null;
this.filterQuery.endDate = null;
}
this.filterQuery.page = 1;
this.getList();
},
getList() {
@ -351,7 +352,6 @@ export default {
this.getList();
},
handleSelectionChange(val) {
console.log(val);
this.multipleSelection = val;
},
getBusType() {

@ -666,6 +666,7 @@ export default {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
this.filterQuery.page = 1;
this.getList();
},
bindRl(val) {
@ -690,7 +691,6 @@ export default {
this.getList();
},
handleSelectionChange(val) {
console.log(val);
this.multipleSelection = val;
},
@ -756,7 +756,6 @@ export default {
this.filterQuery.customerId = store.getters.customerId;
filterOrder(this.filterQuery)
.then((response) => {
console.log(response)
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
@ -864,7 +863,6 @@ export default {
refresgOrderDetail() {
orderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.loading = false;
this.detailList = response.data || [];
})
@ -1039,7 +1037,6 @@ export default {
},
uploadOrderDialog(value) {
console.log(value.id + "---" + value.orderid);
this.uploadQuery = {
orderId: value.id,
};

@ -521,6 +521,7 @@ export default {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
this.filterQuery.page = 1;
this.getList();
},
handleSizeChange(val) {
@ -532,7 +533,6 @@ export default {
this.getList();
},
handleSelectionChange(val) {
console.log(val);
this.multipleSelection = val;
},
getStorageName(code) {
@ -612,7 +612,6 @@ export default {
this.filterQuery.customerId = store.getters.customerId;
filterOrder(this.filterQuery)
.then((response) => {
console.log(response)
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
@ -635,7 +634,6 @@ export default {
refresgOrderDetail() {
orderDetail(this.detailQuery)
.then((response) => {
console.log(response)
this.loading = false;
this.detailList = response.data || [];
})
@ -675,7 +673,6 @@ export default {
},
selectUnit(row) {
console.log(row.id);
this.unitUpdateQuery.id = this.curIndex;
this.unitUpdateQuery.fromCorp = row.name;
this.unitUpdateQuery.fromCorpId = row.unitid;
@ -768,7 +765,6 @@ export default {
uploadOrderDialog(value) {
console.log(value.id + "---" + value.orderid);
this.uploadQuery = {
orderId: value.id,
};

@ -580,6 +580,7 @@ export default {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
this.filterQuery.page = 1;
this.getList();
},
handleSizeChange(val) {

Loading…
Cancel
Save