This commit is contained in:
Taric Xin
2022-04-08 15:54:03 +08:00
parent 4fc505c885
commit 0b7e7b05c5
3 changed files with 6 additions and 5 deletions

View File

@ -30,7 +30,7 @@
</ng-template>
</st>
<div class="modal-footer text-center">
<button nz-button type="button">移除</button>
<button nz-button type="button"(click)="removeOrder(selectedRows)">移除</button>
<button nz-button type="button" (click)="saveManage()">手工处理</button>
<!-- <button nz-button type="submit" nzType="primary" [nzLoading]="service.http.loading" (click)="saveManage()">自动开票</button> -->
</div>

View File

@ -39,11 +39,11 @@ export class RequestedInvoiceModalComponent {
removeOrder(item: any[]) {
console.log(item);
this.nzModalService.warning({
nzTitle: '确定从当前批次中移除所订单?',
nzTitle: '确定从当前批次中移除所订单?',
nzContent: '移除后相关订单可以重新提交开票申请',
nzOnOk: () => {
const ids = this.selectedRows.map(order => order.billHId);
this.service.request(this.service.$api_remove_bill, ids).subscribe(res => {
const ids = item.map(order => order.billHId);
this.service.request(this.service.$api_remove_bill, { billHIds: ids }).subscribe(res => {
if (res) {
this.service.msgSrv.success('移除成功');
this.modal.destroy(true);

View File

@ -22,7 +22,8 @@ export class TicketService extends ShipperBaseService {
// 货主/运营端获取开票申请订单明细
$api_get_invoice_requested_order_detail = '/api/fcc/ficoVatappBill/getDetailByVatapp';
// 删除开票申请订单明细
$api_remove_bill = '/api/fcc/ficoVatappBill/deletebatch';
// $api_remove_bill = '/api/fcc/ficoVatappBill/deletebatch';
$api_remove_bill = '/api/fcc/ficoVatappH/remove';
// 运营端单个/批量驳回
$api_reject_invoice = '/api/fcc/ficoVatappH/rejectInvoiceApple';
// 运营端修改开票地址