Commit 74bf2582 by huaying

fix: 核销记录

parent 2aefd7f1
......@@ -77,15 +77,19 @@ export default {
async getList() {
this.dataTimeFormat();
this.loading = true;
await getCardLogPage(this.params).then(res => {
if (res.errorCode == 0) {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
} else {
this.$tips({ type: 'error', message: '加载列表失败' });
}
this.loading = false;
});
await getCardLogPage(this.params)
.then(res => {
if (res.errorCode == 0) {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
} else {
this.$tips({ type: 'error', message: '加载列表失败' });
}
this.loading = false;
})
.catch(() => {
this.loading = false;
});
}
}
};
......
......@@ -52,38 +52,42 @@ export default {
async getList() {
this.loading = true;
this.dataTimeFormat();
await getCardStorePage(this.params).then(res => {
if (res.errorCode == 0) {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
this.tableData = [
{
storeId: 1,
storeName: 'cehsai',
writeOffPrice: '23',
writeOffCount: '66',
costValue: '66'
},
{
storeId: 2,
storeName: 'daf',
writeOffPrice: '25',
writeOffCount: '55',
costValue: '33'
},
{
storeId: 3,
storeName: 'cehsdfasai',
writeOffPrice: '21',
writeOffCount: '88',
costValue: '44'
}
];
} else {
this.$tips({ type: 'error', message: '加载列表失败' });
}
this.loading = false;
});
await getCardStorePage(this.params)
.then(res => {
if (res.errorCode == 0) {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
// this.tableData = [
// {
// storeId: 1,
// storeName: 'cehsai',
// writeOffPrice: '23',
// writeOffCount: '66',
// costValue: '66'
// },
// {
// storeId: 2,
// storeName: 'daf',
// writeOffPrice: '25',
// writeOffCount: '55',
// costValue: '33'
// },
// {
// storeId: 3,
// storeName: 'cehsdfasai',
// writeOffPrice: '21',
// writeOffCount: '88',
// costValue: '44'
// }
// ];
} else {
this.$tips({ type: 'error', message: '加载列表失败' });
}
this.loading = false;
})
.catch(() => {
this.loading = false;
});
},
// 明细
details(row) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment