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

fengcang
x_z 3 years ago
parent 8004ecfffa
commit ea1f6b3e04

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save