|
|
@@ -23,11 +23,13 @@
|
|
|
<div class="pull-left overhidden" style="width: 1.85rem">{{item.head}}</div>
|
|
|
</div>
|
|
|
<div class="list clearfix">
|
|
|
- <div class="clearfix pull-left w50">
|
|
|
+ <div class="clearfix">
|
|
|
<div class="pull-left">收票人:</div>
|
|
|
<div class="pull-left overhidden" style="width:2.1rem">{{item.name}}</div>
|
|
|
</div>
|
|
|
- <div class="clearfix pull-left w50">
|
|
|
+ </div>
|
|
|
+ <div class="list clearfix">
|
|
|
+ <div class="clearfix">
|
|
|
<div class="pull-left">联系电话:</div>
|
|
|
<div class="pull-left overhidden">{{item.telephone}}</div>
|
|
|
</div>
|
|
|
@@ -70,7 +72,7 @@
|
|
|
<div class="clearfix">
|
|
|
<div class="pull-left">单位地址:</div>
|
|
|
<div class="pull-left overhidden" style="width: 4.6rem;">
|
|
|
- {{item.bcompanyAddress || '-'}}
|
|
|
+ {{item.companyAddress || '-'}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -101,13 +103,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
<div class="list clearfix">
|
|
|
- <div class="clearfix pull-left w50">
|
|
|
+ <div class="clearfix">
|
|
|
<div class="pull-left">收票人:</div>
|
|
|
<div class="pull-left overhidden" style="width:2.1rem">{{item.name}}</div>
|
|
|
</div>
|
|
|
- <div class="clearfix pull-left w50">
|
|
|
+ </div>
|
|
|
+ <div class="list">
|
|
|
+ <div class="clearfix">
|
|
|
<div class="pull-left">收票电话:</div>
|
|
|
<div class="pull-left overhidden">{{item.telephone}}</div>
|
|
|
</div>
|
|
|
@@ -161,6 +164,7 @@
|
|
|
v-if="showAddinvoice"
|
|
|
:isSaveinvoiceType="$kind"
|
|
|
:joinType="joinType"
|
|
|
+ :isAddInvoice="isAddInvoice"
|
|
|
></addinvoice>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -176,6 +180,7 @@
|
|
|
layout: 'mobile',
|
|
|
data() {
|
|
|
return {
|
|
|
+ isAddInvoice: false,
|
|
|
activeType: '',
|
|
|
invoiceList: [],
|
|
|
hasnormal: false, // 是否拥有普票
|
|
|
@@ -216,11 +221,6 @@
|
|
|
this.showDeleteAlert = true
|
|
|
},
|
|
|
async addinvoiceFn(ty, item) {
|
|
|
- if (this.invoiceList.length === 0) {
|
|
|
- this.goLastPage()
|
|
|
- return
|
|
|
- }
|
|
|
- this.showAddinvoice = false
|
|
|
if (ty) {
|
|
|
let {data} = await axios.get('/trade/bill/list/personal')
|
|
|
let _arr = []
|
|
|
@@ -236,15 +236,23 @@
|
|
|
})
|
|
|
this.invoiceList = _arr
|
|
|
this.hasnormal = hasnormal
|
|
|
+ } else {
|
|
|
+ if (this.invoiceList.length === 0) {
|
|
|
+ this.goLastPage()
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
+ this.showAddinvoice = false
|
|
|
},
|
|
|
updateInvoice(item, index) {
|
|
|
this.joinType = 'update'
|
|
|
this.chooseItem = this.baseUtils.deepCopy(item)
|
|
|
this.$kind = 0
|
|
|
+ this.isAddInvoice = false
|
|
|
this.showAddinvoice = true
|
|
|
},
|
|
|
addInvoiceNew() {
|
|
|
+ this.isAddInvoice = true
|
|
|
this.joinType = 'add'
|
|
|
this.$kind = this.invoiceList.length > 0 ? this.invoiceList[0].kind : 0
|
|
|
this.chooseItem = {}
|