1.修复异常单据详情数量显示错误问题

2.修复一些页面的分页bug
fencang
x_z 3 years ago
parent 7a0c579c0c
commit b4b6e58cf9

@ -207,6 +207,7 @@ export default {
}, },
onSubmit() { onSubmit() {
this.loading = true; this.loading = true;
this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
handleSizeChange(val) { handleSizeChange(val) {
@ -233,7 +234,6 @@ export default {
this.filterQuery.customerId = store.getters.customerId; this.filterQuery.customerId = store.getters.customerId;
filterProducts(this.filterQuery) filterProducts(this.filterQuery)
.then((response) => { .then((response) => {
console.log(response)
this.loading = false; this.loading = false;
this.showSup = response.data.showSup; this.showSup = response.data.showSup;
this.list = response.data.list || []; this.list = response.data.list || [];
@ -311,7 +311,6 @@ export default {
}); });
}, },
findMethod(query) { findMethod(query) {
console.log(query);
this.fromOptions = []; this.fromOptions = [];
let cQuery = { let cQuery = {
key: query, key: query,

@ -308,13 +308,13 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="单据数量" label="单据数量"
prop="reCount" prop="erpCount"
width="100" width="100"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="实际数量" label="实际数量"
prop="erpCount" prop="reCount"
width="100" width="100"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>

@ -232,6 +232,7 @@ export default {
path: "", path: "",
query: this.query, query: this.query,
}); });
this.query.page = 1;
this.getCodeList(); this.getCodeList();
}, },
handleSizeChange(val) { handleSizeChange(val) {
@ -280,7 +281,6 @@ export default {
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.orderId = this.idQuery.id; this.query.orderId = this.idQuery.id;
console.log(this.idQuery.id)
errorCodeList(this.query) // errorCodeList(this.query) //
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -689,9 +689,7 @@ export default {
.then((response) => { .then((response) => {
this.detailLoading = false; this.detailLoading = false;
this.detailList = response.data.list || []; this.detailList = response.data.list || [];
/*this.detailList.forEach(data => { this.detailTotal = response.data.total;
data['edit'] = false;
});*/
}) })
.catch(() => { .catch(() => {
this.detailLoading = false; this.detailLoading = false;

@ -600,6 +600,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 === "502") { if (this.query.status === "502") {
this.haveNewDistributionVisible = true; this.haveNewDistributionVisible = true;
@ -702,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;

@ -618,7 +618,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;
@ -635,7 +634,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') {
@ -807,9 +805,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;

Loading…
Cancel
Save