edit
This commit is contained in:
@ -37,11 +37,12 @@ export class InvoiceDetailComponent implements OnInit {
|
||||
mailNo: '',
|
||||
routes: []
|
||||
};
|
||||
id: any = null;
|
||||
constructor(public service: TicketService, private route: ActivatedRoute) {
|
||||
this.isCanEdit = !!route.snapshot.queryParams.type;
|
||||
const expressno = route.snapshot.queryParams.expressno;
|
||||
const id = route.snapshot.params.id;
|
||||
this.loadInvoiceHeader(id);
|
||||
this.id = route.snapshot.params.id;
|
||||
this.loadInvoiceHeader(this.id);
|
||||
if (expressno) {
|
||||
this.loadRoutes(expressno);
|
||||
}
|
||||
@ -50,6 +51,7 @@ export class InvoiceDetailComponent implements OnInit {
|
||||
ngOnInit(): void {}
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
Object.assign(requestOptions.body, { vatinvHId: this.id });
|
||||
if (this.orderSf) {
|
||||
Object.assign(requestOptions.body, { ...this.orderSf.value });
|
||||
}
|
||||
|
||||
@ -49,6 +49,7 @@ export class InvoiceRequestedDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
Object.assign(requestOptions.body, { vatappHId: this.id });
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, { ...this.sf.value });
|
||||
}
|
||||
@ -273,7 +274,7 @@ export class InvoiceRequestedDetailComponent implements OnInit {
|
||||
{ title: '', index: 'key', type: 'checkbox' },
|
||||
{ title: '订单号', render: 'billHCode', width: 170 },
|
||||
{ title: '订单完成日期', index: 'billTime', type: 'date', width: 150 },
|
||||
{ title: '开票状态', index: 'vatappSts', width: 100 },
|
||||
{ title: '开票状态', index: 'vatappStsLabel', width: 100 },
|
||||
{ title: '所属项目', index: 'projectId', width: 140 },
|
||||
{ title: '订单类型', index: 'billType', width: 100, type: 'enum', enum: { 1: '整车', 2: '大宗' } },
|
||||
{ title: '装货地', index: 'loadingfrom', width: 220 },
|
||||
|
||||
@ -190,8 +190,8 @@ export class InvoicedListComponent implements OnInit {
|
||||
})
|
||||
},
|
||||
{ title: '申请时间', index: 'createTime', type: 'date', width: 150 },
|
||||
{ title: '发票类型', index: 'invoicetype', width: 100 },
|
||||
{ title: '网络货运人', index: 'ltdId', width: 120 },
|
||||
{ title: '发票类型', index: 'invoicetypeLabel', className: 'text-center', width: 140 },
|
||||
{ title: '网络货运人', index: 'ltdName', width: 120 },
|
||||
{ title: '购买人', index: 'artoname', width: 90 },
|
||||
{ title: '订单数', index: 'ordlines', className: 'text-right', width: 90 },
|
||||
{
|
||||
@ -225,7 +225,7 @@ export class InvoicedListComponent implements OnInit {
|
||||
render: 'expresscompany',
|
||||
width: 180
|
||||
},
|
||||
{ title: '状态', index: 'sts', width: 90 },
|
||||
{ title: '状态', index: 'stsLabel', width: 90 },
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
|
||||
Reference in New Issue
Block a user