edit
This commit is contained in:
@ -69,7 +69,7 @@ export class InvoicedListComponent implements OnInit {
|
|||||||
nzTitle: '确定将所选发票作废?',
|
nzTitle: '确定将所选发票作废?',
|
||||||
nzCancelText: '取消',
|
nzCancelText: '取消',
|
||||||
nzOnOk: () => {
|
nzOnOk: () => {
|
||||||
this.service.request(this.service.$api_cancel_invoice, { id: item.id }).subscribe(res => {
|
this.service.request(this.service.$api_delete_invoice, { id: item.id }).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.service.msgSrv.success('发票作废成功');
|
this.service.msgSrv.success('发票作废成功');
|
||||||
}
|
}
|
||||||
@ -81,6 +81,27 @@ export class InvoicedListComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
canceInvoice(item: any) {
|
||||||
|
// if (this.selectedRows?.length <= 0) {
|
||||||
|
// this.service.msgSrv.warning('请选择发票');
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
const modal = this.nzModalService.warning({
|
||||||
|
nzTitle: '确定取消所选发票?',
|
||||||
|
nzCancelText: '取消',
|
||||||
|
nzOnOk: () => {
|
||||||
|
this.service.request(this.service.$api_cancel_invoice, { id: item.id }).subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.service.msgSrv.success('取消发票成功');
|
||||||
|
}
|
||||||
|
modal.destroy();
|
||||||
|
this.st.load(1);
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 填写物流/修改物流
|
* 填写物流/修改物流
|
||||||
* @param item
|
* @param item
|
||||||
@ -314,10 +335,15 @@ export class InvoicedListComponent implements OnInit {
|
|||||||
queryParams: { expressno: item.expressno, type: 2, ltdId: item.shipperId }
|
queryParams: { expressno: item.expressno, type: 2, ltdId: item.shipperId }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
text: '取消开票<br>',
|
||||||
|
click: item => this.canceInvoice(item),
|
||||||
|
iif: item => item.sts === '1'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: '发票作废<br>',
|
text: '发票作废<br>',
|
||||||
click: item => this.deletedInvoice(item),
|
click: item => this.deletedInvoice(item),
|
||||||
iif: item => item.sts === '1'
|
iif: item => item.sts === '3'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '查看物流<br>',
|
text: '查看物流<br>',
|
||||||
|
|||||||
@ -65,7 +65,9 @@ export class TicketService extends ShipperBaseService {
|
|||||||
$api_update_Express = '/api/fcc/ficoVatinvH/updateExpress';
|
$api_update_Express = '/api/fcc/ficoVatinvH/updateExpress';
|
||||||
|
|
||||||
// 发票作废
|
// 发票作废
|
||||||
$api_cancel_invoice = '/api/fcc/ficoVatinvH/inpinvHCancel';
|
$api_delete_invoice = '/api/fcc/ficoVatinvH/inpinvHCancel';
|
||||||
|
// 发票取消
|
||||||
|
$api_cancel_invoice = '/api/fcc/ficoVatinvH/cancel';
|
||||||
// 获取销项发票抬头
|
// 获取销项发票抬头
|
||||||
$api_get_invoice_header_detail = '/api/fcc/ficoVatinvH/get';
|
$api_get_invoice_header_detail = '/api/fcc/ficoVatinvH/get';
|
||||||
// 获取分票发票抬头开票申请订单明细
|
// 获取分票发票抬头开票申请订单明细
|
||||||
|
|||||||
Reference in New Issue
Block a user