|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="invoice-wrapper">
|
|
|
<div class="mobile-nav">
|
|
|
<div class="mobile-header mobile-center-header">
|
|
|
- <a @click="goBack()"><i class="iconfont icon-fanhui"></i></a>
|
|
|
+ <a @click="goLastPage()"><i class="iconfont icon-fanhui"></i></a>
|
|
|
<p>发票管理</p>
|
|
|
<p class="en-name">
|
|
|
<img :src="`/images/mobile/center/${user.data.enterprise && user.data.enterprise.uu ? 'en' : 'self'}.png`" alt="">{{currentEnName}}
|
|
|
@@ -199,24 +199,26 @@
|
|
|
},
|
|
|
async addinvoiceFn(ty, item) {
|
|
|
this.showAddinvoice = false
|
|
|
- let { data } = await axios.get('/trade/bill/list/personal')
|
|
|
- let _arr = []
|
|
|
- data.forEach(obj => {
|
|
|
- if (obj.kind === 1206) {
|
|
|
- _arr.splice(0, 0, obj)
|
|
|
- } else {
|
|
|
- _arr.push(obj)
|
|
|
- }
|
|
|
- })
|
|
|
- let hasnormal = data.find(item => {
|
|
|
- return item.kind === 1206
|
|
|
- })
|
|
|
- this.invoiceList = _arr
|
|
|
- this.hasnormal = hasnormal
|
|
|
+ if (ty) {
|
|
|
+ let {data} = await axios.get('/trade/bill/list/personal')
|
|
|
+ let _arr = []
|
|
|
+ data.forEach(obj => {
|
|
|
+ if (obj.kind === 1206) {
|
|
|
+ _arr.splice(0, 0, obj)
|
|
|
+ } else {
|
|
|
+ _arr.push(obj)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ let hasnormal = data.find(item => {
|
|
|
+ return item.kind === 1206
|
|
|
+ })
|
|
|
+ this.invoiceList = _arr
|
|
|
+ this.hasnormal = hasnormal
|
|
|
+ }
|
|
|
},
|
|
|
updateInvoice(item, index) {
|
|
|
this.joinType = 'update'
|
|
|
- this.chooseItem = item
|
|
|
+ this.chooseItem = this.baseUtils.deepCopy(item)
|
|
|
this.$kind = 0
|
|
|
this.showAddinvoice = true
|
|
|
},
|
|
|
@@ -271,9 +273,8 @@
|
|
|
width: 100%;
|
|
|
.invoice-wrapper-el {
|
|
|
margin: 2.08rem 0 0.98rem;
|
|
|
- height: calc(100vh - 1.26rem - 0.98rem);
|
|
|
+ height: calc(100vh - 1.26rem - 0.98rem - 0.82rem);
|
|
|
overflow-y: scroll;
|
|
|
- padding-bottom: 0.98rem;
|
|
|
}
|
|
|
/*overflow-y: scroll;*/
|
|
|
.mobile-header{
|