This commit is contained in:
Taric Xin
2022-01-19 11:37:10 +08:00
parent 4ccb9db42a
commit 54565374c0
14 changed files with 240 additions and 138 deletions

View File

@ -14,8 +14,7 @@ import { RequestedInvoiceModalComponent } from './requested-invoice-modal/reques
@Component({
selector: 'app-invoice-requested',
templateUrl: './invoice-requested.component.html',
styleUrls: ['./invoice-requested.component.less'],
providers: [CurrencyPipe]
styleUrls: ['./invoice-requested.component.less', '../../../commom/less/box.less']
})
export class InvoiceRequestedComponent implements OnInit {
@ViewChild('st', { static: true })
@ -32,12 +31,7 @@ export class InvoiceRequestedComponent implements OnInit {
totalCallNo = 0;
selectedRows: any[] = [];
constructor(
public service: TicketService,
private nzModalService: NzModalService,
private router: Router,
private currencyPipe: CurrencyPipe
) {}
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
ngOnInit(): void {}
@ -406,27 +400,35 @@ export class InvoiceRequestedComponent implements OnInit {
{ title: '其他要求', index: 'otherremarks', width: 100 },
{ title: '申请人', index: 'applyName', width: 90 },
{ title: '申请时间', index: 'applyTime', type: 'date', width: 150 },
{ title: '快递是否下单成功', index: 'expressHSts', width: 150, type: 'enum', enum: { true: '是', false: '否' } },
{
title: '快递是否下单成功',
index: 'expressHSts',
width: 150,
className: 'text-center',
type: 'enum',
enum: { true: '是', false: '否' }
},
{
title: '操作',
width: 150,
width: 125,
fixed: 'right',
buttons: [
{ type: 'divider' },
{
text: '开票',
click: item => this.requestedInvoiceAction(item)
},
{
text: '驳回',
text: '驳回<br/>',
click: item => this.rejectAction([item])
},
{
text: '查看原因',
click: item => this.showReason(item)
text: '订单明细<br/>',
click: item => this.router.navigate(['/ticket/invoice-requested/detail/' + item?.id])
},
{
text: '订单明细',
click: item => this.orderDetail(item)
text: '查看原因<br/>',
click: item => this.showReason(item)
},
{
text: '下载对账单'
@ -436,15 +438,6 @@ export class InvoiceRequestedComponent implements OnInit {
}
];
}
orderDetail(item: any) {
console.log(item);
this.router.navigate([
'/ticket/invoice-requested/detail/' + item?.id,
{
queryParams: { id: item?.id }
}
]);
}
selectChange(e: any) {
this.resourceStatus = e;
this.initST();