|
|
|
@ -8,7 +8,7 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="addrList" v-if="billTitle.length != 0"> |
|
|
|
|
<div class="item" v-for="(item,index) in billTitle" :key="index"> |
|
|
|
|
<p class="default" v-if="item.flag"><span class="f_12">默认抬头</span></p> |
|
|
|
|
<p class="default" v-if="item.sort==0"><span class="f_12">默认抬头</span></p> |
|
|
|
|
<div class="d-flex"> |
|
|
|
|
|
|
|
|
|
<div><span v-if="item.invoiceType == 1">普通增值税发票</span><span v-if="item.invoiceType == 2">专用增值税发票</span></div> |
|
|
|
@ -27,7 +27,7 @@ |
|
|
|
|
cancel-text="No" |
|
|
|
|
@confirm="confirm2(item.id)" |
|
|
|
|
@cancel="cancel" |
|
|
|
|
v-if="!item.flag" |
|
|
|
|
v-if="!item.sort==0" |
|
|
|
|
><span class="btn">将其设置为默认抬头</span></a-popconfirm> |
|
|
|
|
<!-- <span class="btn" v-if="!item.flag" @click="handleDefault(item.id)">将其设置为默认抬头</span>--> |
|
|
|
|
</div> |
|
|
|
@ -115,7 +115,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { httpAction, getAction } from '@/api/manage' |
|
|
|
|
|
|
|
|
|
import { deleteAction } from '@/api/manage' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
@ -204,7 +204,9 @@ |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
url: { |
|
|
|
|
findbill: "/getuserpersion/findbill" |
|
|
|
|
findbill: "/getuserpersion/findbill", |
|
|
|
|
szfpmr: "/getuserpersion/szfpmr", |
|
|
|
|
deletefp: "/getuserpersion/deletefp" |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -318,14 +320,35 @@ |
|
|
|
|
this.flag = 'edit' |
|
|
|
|
this.form = item |
|
|
|
|
}, |
|
|
|
|
confirm1(id) { |
|
|
|
|
let itemIndex = this.billTitle.findIndex(item =>item.id == id) |
|
|
|
|
this.billTitle.splice(itemIndex,1) |
|
|
|
|
}, |
|
|
|
|
confirm2(id) { |
|
|
|
|
this.changeDefault() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getAction(this.url.szfpmr,{id,id}).then((res) => { |
|
|
|
|
if(res.success) { |
|
|
|
|
this.loadData(1); |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* let itemIndex = this.billTitle.findIndex(item =>item.id == id) |
|
|
|
|
this.billTitle.splice(itemIndex,1)*/ |
|
|
|
|
}, |
|
|
|
|
confirm1(id) { |
|
|
|
|
deleteAction(this.url.deletefp,{id,id}).then((res) => { |
|
|
|
|
if(res.success) { |
|
|
|
|
this.loadData(1); |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*this.changeDefault() |
|
|
|
|
let itemIndex2 = this.billTitle.findIndex(item =>item.id == id) |
|
|
|
|
this.billTitle[itemIndex2].flag = true |
|
|
|
|
this.billTitle[itemIndex2].flag = true*/ |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
cancel(e) { |
|
|
|
|
this.$message.warning('已取消'); |
|
|
|
|