交班记录

This commit is contained in:
魏啾 2024-07-30 15:46:14 +08:00
parent 9317ec1dfa
commit 20ed539215
1 changed files with 5 additions and 10 deletions

View File

@ -127,18 +127,13 @@ export default {
this.tableData.loading = true;
try {
let lane = null
if (this.query.createdAt.length == 0) {
lane = `/api/tbHandover?page=${this.tableData.page + 1}&size=${this.tableData.size}&shopId=${localStorage.getItem("shopId")}`
let urlData = null
if (this.query.createdAt.length == 0) { // key -- 2024.7.30 15:50
urlData = `/api/tbHandover?page=${this.tableData.page + 1}&size=${this.tableData.size}&shopId=${localStorage.getItem("shopId")}`
} else {
lane = `/api/tbHandover?page=${this.tableData.page + 1}&size=${this.tableData.size}&shopId=${localStorage.getItem("shopId")}&tradeDay=${this.query.createdAt[0] ? this.query.createdAt[0] : ''}&tradeDay=${this.query.createdAt[1] ? this.query.createdAt[1] : ''}`
urlData = `/api/tbHandover?page=${this.tableData.page + 1}&size=${this.tableData.size}&shopId=${localStorage.getItem("shopId")}&tradeDay=${this.query.createdAt[0] ? this.query.createdAt[0] : ''}&tradeDay=${this.query.createdAt[1] ? this.query.createdAt[1] : ''}`
}
const res = await tbHandoverGet(lane);
// page: this.tableData.page + 1,
// size: this.tableData.size,
// shopId: localStorage.getItem("shopId"),
// tradeDay:this.query.createdAt
// });
const res = await tbHandoverGet(urlData);
this.tableData.loading = false;
this.tableData.data = res.content;
this.tableData.total = res.totalElements;