Commit ac3130b6 by huaying

fix: bug-核销记录明细

parent 378a6ecd
......@@ -271,7 +271,8 @@ export default {
name: '核销记录',
component: () => import(/* webpackChunkName: "card" */ '../../views/card/hhrecord-list.vue'),
meta: {
path: '/card/hhrecord'
path: '/card/hhrecord',
keepAlive: true
},
children: []
},
......
......@@ -26,11 +26,15 @@
<script>
import { getCardDetailPage } from '@/service/api/cardApi.js';
import writeOff from './writeOff.js';
import sticky from '@/mixins/table-sticky.js';
export default {
name: 'writeOffDetail',
mixins: [writeOff],
mixins: [writeOff, sticky],
data() {
return {
headerTop: '80px',
parent: 'content',
scrollClass: 'dm-layout-page',
params: {
writeOffBeginTime: '',
writeOffEndTime: '',
......@@ -46,27 +50,23 @@ export default {
},
methods: {
async getList() {
this.loading = true;
this.dataTimeFormat();
this.params = {
...this.params,
storeId: this.$route.query.id
};
await getCardDetailPage(this.params)
.then(res => {
if (res.errorCode == 0) {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
} else {
this.loading = false;
this.$tips({ type: 'error', message: res.message });
}
this.loading = false;
})
.catch(err => {
this.$tips({ type: 'error', message: '加载列表失败' });
this.loading = false;
});
try {
this.loading = true;
this.dataTimeFormat();
this.params = {
...this.params,
storeId: this.$route.query.id
};
let res = await getCardDetailPage(this.params);
if (res.errorCode == 0 && res.result) {
this.tableData = res.result.result || [];
this.total = res.result.totalCount;
} else {
this.tableData = [];
this.total = 0;
}
} catch (err) {}
this.loading = false;
}
}
};
......
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