clearing-print-stock.vue
1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<template>
<layout-print>
<h2>对账单库存</h2>
<Table border :columns="tableCols" :data="tableData"></Table>
</layout-print>
</template>
<script>
import _ from 'lodash';
import stock from '../clearing/store/stock';
import FinanceService from 'services/finance/finance-service';
export default {
data() {
return stock.call(this);
},
created() {
this.FinanceService = new FinanceService();
this.search();
},
methods: {
search() {
let params = {
brandId: +this.$route.query.brandId,
beginTime: +this.$route.query.begin,
endTime: +this.$route.query.end,
pageSize: 20,
pageNo: this.$route.query.page
};
params = _.pickBy(params, val => val);
this.FinanceService.inventoryLedgerList(params).then(ret => {
this.tableData = _.get(ret, 'data.records', []);
});
}
}
};
</script>
<style lang="scss" scoped>
h2 {
line-height: 50px;
border-bottom: 1px solid #f2f2f2;
margin-bottom: 10px;
}
.print-detail {
margin-bottom: 20px;
color: #333;
}
</style>