edit
This commit is contained in:
		| @ -282,7 +282,7 @@ export class PaymentRecordComponent implements OnInit { | ||||
|       { title: '申请人', index: 'applyUserName', width: 90 }, | ||||
|       { title: '处理时间', index: 'handlerTime', width: 180 }, | ||||
|       { title: '处理人', index: 'handlerUserName', width: 90 }, | ||||
|       { title: '失败原因', index: 'failCause', width: 250 }, | ||||
|       { title: '备注', index: 'failCause', width: 250 }, | ||||
|       { | ||||
|         title: '操作', | ||||
|         fixed: 'right', | ||||
|  | ||||
| @ -56,15 +56,24 @@ export class InvoicedListComponent implements OnInit { | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   deletedInvoice() { | ||||
|     if (this.selectedRows?.length <= 0) { | ||||
|       this.service.msgSrv.warning('请选择发票'); | ||||
|       return; | ||||
|     } | ||||
|     this.nzModalService.warning({ | ||||
|   deletedInvoice(item: any) { | ||||
|     // if (this.selectedRows?.length <= 0) { | ||||
|     //   this.service.msgSrv.warning('请选择发票'); | ||||
|     //   return; | ||||
|     // } | ||||
|     const modal = this.nzModalService.warning({ | ||||
|       nzTitle: '确定将所选发票作废?', | ||||
|       nzCancelText: '取消', | ||||
|       nzOnOk: () => {} | ||||
|       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; | ||||
|       } | ||||
|     }); | ||||
|   } | ||||
|  | ||||
| @ -243,6 +252,11 @@ export class InvoicedListComponent implements OnInit { | ||||
|                 queryParams: { expressno: item.expressno, type: 2, ltdId: item.ltdId } | ||||
|               }) | ||||
|           }, | ||||
|           { | ||||
|             text: '发票作废', | ||||
|             click: item => this.deletedInvoice(item), | ||||
|             iif: item => item.sts === '1' | ||||
|           }, | ||||
|           { | ||||
|             text: '查看物流', | ||||
|             click: item => this.showlogosticsLogs(item), | ||||
|  | ||||
| @ -52,6 +52,9 @@ export class TicketService extends ShipperBaseService { | ||||
|  | ||||
|   // 已开发票查询 | ||||
|   $api_get_invoice_page = '/api/fcc/ficoVatinvH/list/page'; | ||||
|  | ||||
|   // 发票作废 | ||||
|   $api_cancel_invoice = '/api/fcc/ficoVatinvH/inpinvHCancel'; | ||||
|   // 获取销项发票抬头 | ||||
|   $api_get_invoice_header_detail = '/api/fcc/ficoVatinvH/get'; | ||||
|   // 获取分票发票抬头开票申请订单明细 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user