invoiceRecord.vue
1.36 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
54
55
56
57
58
59
60
61
62
63
<template>
<div v-if="list.length>0">
<group title="开票历史">
<cell title="停车" link="https://vux.li" inline-desc='2020/05/29 22:22:22'>
<div>
<p>已发送电子邮箱</p>
<p>¥ 0.20</p>
</div>
</cell>
<cell title="停车" link="https://vux.li" inline-desc='2020/05/29 22:22:22'>
<div>
<p>已开票</p>
<p>¥ 0.20</p>
</div>
</cell>
</group>
</div>
<div class="noDada" v-else>
<img src="../../../assets/images/parkInvoice/parkInvoiceNo.png" width="180px" height="140px">
<p>暂无开票历史记录</p>
</div>
</template>
<script>
import {
queryCustInvoiceHistoryList
} from "@/api/invoice/invoice.js";
export default {
name: "invoiceRecord",
data() {
return {
list: []
};
},
mounted() {
this.queryCustInvoiceHistoryList();
},
methods: {
queryCustInvoiceHistoryList: function() {
let jsondata = this.$utils.commonParams();
jsondata.sign = this.$utils.signObject(jsondata);
console.log("传参 " + JSON.stringify(jsondata));
queryCustInvoiceHistoryList(jsondata).then(response => {
console.log(response);
this.list = response.data;
});
}
}
};
</script>
<style scoped lang="scss">
.noDada {
text-align: center;
img {
margin: 20px auto;
}
}
</style>