|
@@ -164,6 +164,7 @@
|
|
|
v-if="showAddinvoice"
|
|
v-if="showAddinvoice"
|
|
|
:isSaveinvoiceType="$kind"
|
|
:isSaveinvoiceType="$kind"
|
|
|
:joinType="joinType"
|
|
:joinType="joinType"
|
|
|
|
|
+ :isAddInvoice="isAddInvoice"
|
|
|
></addinvoice>
|
|
></addinvoice>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -179,6 +180,7 @@
|
|
|
layout: 'mobile',
|
|
layout: 'mobile',
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ isAddInvoice: false,
|
|
|
activeType: '',
|
|
activeType: '',
|
|
|
invoiceList: [],
|
|
invoiceList: [],
|
|
|
hasnormal: false, // 是否拥有普票
|
|
hasnormal: false, // 是否拥有普票
|
|
@@ -219,7 +221,6 @@
|
|
|
this.showDeleteAlert = true
|
|
this.showDeleteAlert = true
|
|
|
},
|
|
},
|
|
|
async addinvoiceFn(ty, item) {
|
|
async addinvoiceFn(ty, item) {
|
|
|
-
|
|
|
|
|
if (ty) {
|
|
if (ty) {
|
|
|
let {data} = await axios.get('/trade/bill/list/personal')
|
|
let {data} = await axios.get('/trade/bill/list/personal')
|
|
|
let _arr = []
|
|
let _arr = []
|
|
@@ -247,9 +248,11 @@
|
|
|
this.joinType = 'update'
|
|
this.joinType = 'update'
|
|
|
this.chooseItem = this.baseUtils.deepCopy(item)
|
|
this.chooseItem = this.baseUtils.deepCopy(item)
|
|
|
this.$kind = 0
|
|
this.$kind = 0
|
|
|
|
|
+ this.isAddInvoice = false
|
|
|
this.showAddinvoice = true
|
|
this.showAddinvoice = true
|
|
|
},
|
|
},
|
|
|
addInvoiceNew() {
|
|
addInvoiceNew() {
|
|
|
|
|
+ this.isAddInvoice = true
|
|
|
this.joinType = 'add'
|
|
this.joinType = 'add'
|
|
|
this.$kind = this.invoiceList.length > 0 ? this.invoiceList[0].kind : 0
|
|
this.$kind = this.invoiceList.length > 0 ? this.invoiceList[0].kind : 0
|
|
|
this.chooseItem = {}
|
|
this.chooseItem = {}
|