优化
This commit is contained in:
@ -23,10 +23,15 @@
|
|||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
<nz-card class="content-box" nzBordered>
|
<nz-card class="content-box" nzBordered>
|
||||||
<st #st [data]="service.$api_get_invoice_logs_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
|
<st #st [data]="service.$api_invoicedBillInfo_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
|
||||||
[loading]="false" [scroll]="{ x:'1200px' }">
|
[loading]="false" [scroll]="{ x:'1200px' }">
|
||||||
<ng-template st-row="call3No" let-item let-index="index" let-column="column">
|
<ng-template st-row="sts" let-item let-index="index" let-column="column">
|
||||||
{{item.driverName}}<br>{{item.driverCellphone}}
|
<span *ngIf="item.sts === '1'">待受理</span>
|
||||||
|
<span *ngIf="item.sts === '2'">处理中</span>
|
||||||
|
<span *ngIf="item.sts === '3'">已完成</span>
|
||||||
|
<span *ngIf="item.sts === '5'">已拒绝</span>
|
||||||
|
<span *ngIf="item.sts === '6'">已撤销</span>
|
||||||
|
<span *ngIf="item.sts === '7'">已作废</span>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</st>
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
@ -20,22 +20,14 @@ export class BillingOrderComponent implements OnInit {
|
|||||||
|
|
||||||
_$expand = false;
|
_$expand = false;
|
||||||
|
|
||||||
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
|
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) { }
|
||||||
|
|
||||||
ngOnInit(): void {}
|
ngOnInit(): void { }
|
||||||
|
|
||||||
beforeReq = (requestOptions: STRequestOptions) => {
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
if (this.sf) {
|
if (this.sf) {
|
||||||
Object.assign(requestOptions.body, {
|
Object.assign(requestOptions.body, {
|
||||||
...this.sf.value,
|
...this.sf.value,
|
||||||
exTime: {
|
|
||||||
start: this.sf.value.exTime?.[0] || '',
|
|
||||||
end: this.sf.value.exTime?.[1] || ''
|
|
||||||
},
|
|
||||||
invoiceMakeTime: {
|
|
||||||
start: this.sf.value.invoiceMakeTime?.[0] || '',
|
|
||||||
end: this.sf.value.invoiceMakeTime?.[1] || ''
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return requestOptions;
|
return requestOptions;
|
||||||
@ -91,7 +83,6 @@ export class BillingOrderComponent implements OnInit {
|
|||||||
serviceType: {
|
serviceType: {
|
||||||
title: '服务类型',
|
title: '服务类型',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'service:type' },
|
||||||
@ -101,14 +92,14 @@ export class BillingOrderComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
enterpriseName: {
|
shipperAppUserName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货主名称',
|
title: '货主名称',
|
||||||
ui: {
|
ui: {
|
||||||
placeholder: '请输入',
|
placeholder: '请输入',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
vatappHCode: {
|
vatappcode: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '申请编号',
|
title: '申请编号',
|
||||||
ui: {
|
ui: {
|
||||||
@ -128,19 +119,19 @@ export class BillingOrderComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createTime: {
|
vatappdate: {
|
||||||
title: '申请时间',
|
title: '申请时间',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'sl-from-to-search',
|
widget: 'sl-from-to',
|
||||||
format: 'yyyy-MM-dd HH:mm:ss',
|
type: 'date',
|
||||||
nzShowTime: true,
|
format: 'yyyy-MM-dd',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
} as SFDateWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
},
|
},
|
||||||
invoicingStatus: {
|
sts: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '开票状态',
|
title: '开票状态',
|
||||||
ui: {
|
ui: {
|
||||||
@ -150,10 +141,9 @@ export class BillingOrderComponent implements OnInit {
|
|||||||
visibleIf: {
|
visibleIf: {
|
||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
default: ''
|
|
||||||
},
|
},
|
||||||
invoiceNum: {
|
invoiceno: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '发票号码',
|
title: '发票号码',
|
||||||
ui: {
|
ui: {
|
||||||
@ -164,30 +154,19 @@ export class BillingOrderComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
approvalTime: {
|
invoicedate: {
|
||||||
title: '审核时间',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
widget: 'sl-from-to-search',
|
|
||||||
format: 'yyyy-MM-dd HH:mm:ss',
|
|
||||||
nzShowTime: true,
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
} as SFDateWidgetSchema
|
|
||||||
},
|
|
||||||
invoiceMakeTime: {
|
|
||||||
title: '开票日期',
|
title: '开票日期',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'sl-from-to-search',
|
widget: 'sl-from-to',
|
||||||
|
type: 'date',
|
||||||
format: 'yyyy-MM-dd',
|
format: 'yyyy-MM-dd',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
} as SFDateWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
},
|
},
|
||||||
ltdId: {
|
enterpriseInfoId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '网络货运人',
|
title: '网络货运人',
|
||||||
ui: {
|
ui: {
|
||||||
@ -198,8 +177,7 @@ export class BillingOrderComponent implements OnInit {
|
|||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
asyncData: () => this.service.getNetworkFreightForwarder()
|
asyncData: () => this.service.getNetworkFreightForwarder()
|
||||||
},
|
}
|
||||||
default: ''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -207,97 +185,95 @@ export class BillingOrderComponent implements OnInit {
|
|||||||
|
|
||||||
private initST(): STColumn[] {
|
private initST(): STColumn[] {
|
||||||
return [
|
return [
|
||||||
{ title: '订单号', index: 'billCode', width: 180 },
|
{ title: '订单号', index: 'billCode', className: 'text-center', width: 180 },
|
||||||
{ title: '运单号', index: 'waybillCode', width: 180 },
|
{ title: '运单号', index: 'wayBillCode', width: 180,className: 'text-center'},
|
||||||
{ title: '银行类型', index: 'bankTypeLabel', width: 100 },
|
{ title: '银行类型', index: 'bankType', width: 100,className: 'text-center' },
|
||||||
{ title: '网络货运人', index: 'enterpriseInfoName', width: 220 },
|
{ title: '网络货运人', index: 'enterpriseInfoName', width: 220,className: 'text-center' },
|
||||||
{
|
{
|
||||||
title: '开票金额(元)',
|
title: '开票金额', // TODO
|
||||||
index: 'invoiceAmount',
|
index: 'vatmoney',
|
||||||
width: 120,
|
width: 120,
|
||||||
type: 'widget',
|
type: 'widget',
|
||||||
className: 'text-right',
|
className: 'text-center',
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoiceAmount }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoiceAmount }) }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '总费用(元)',
|
title: '总费用',
|
||||||
index: 'totalAmount',
|
index: 'totalAmount',
|
||||||
width: 120,
|
width: 120,
|
||||||
type: 'widget',
|
type: 'widget',
|
||||||
className: 'text-right',
|
className: 'text-center',
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.totalAmount }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.totalAmount }) }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '运输费(元)',
|
title: '运输费',
|
||||||
index: 'shippingFee',
|
index: 'price',
|
||||||
width: 120,
|
width: 120,
|
||||||
type: 'widget',
|
type: 'widget',
|
||||||
className: 'text-right',
|
className: 'text-center',
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.shippingFee }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.shippingFee }) }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '技术服务费(元)',
|
title: '技术服务费',
|
||||||
index: 'invoiceAmount',
|
index: 'insurancePremium',
|
||||||
width: 120,
|
width: 120,
|
||||||
type: 'widget',
|
type: 'widget',
|
||||||
className: 'text-right',
|
className: 'text-center',
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoiceAmount }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invoiceAmount }) }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '附加费(元)',
|
title: '附加费',
|
||||||
index: 'aliasFee',
|
index: 'surcharge',
|
||||||
width: 120,
|
width: 120,
|
||||||
type: 'widget',
|
type: 'widget',
|
||||||
className: 'text-right',
|
className: 'text-center',
|
||||||
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.aliasFee }) }
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.aliasFee }) }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '附加费率',
|
title: '附加费率',
|
||||||
className: 'text-right',
|
className: 'text-center',
|
||||||
index: 'aliasFeeRatio',
|
index: 'paymentMethodRate',
|
||||||
width: 130,
|
width: 130,
|
||||||
format: record => `${record.aliasFeeRatio}%`
|
format: record => `${record.paymentMethodRate}%`
|
||||||
},
|
},
|
||||||
{ title: '货主名称', index: 'enterpriseName', className: 'text-center', width: '200px' },
|
{ title: '货主名称', index: 'shipperAppUserName',width: '180px', className: 'text-center' },
|
||||||
{ title: '所属项目', index: 'projectName', width: 100 },
|
{ title: '所属项目', index: 'enterpriseProjectName',width: '180px', className: 'text-center', },
|
||||||
{
|
{
|
||||||
title: '服务类型',
|
title: '服务类型',
|
||||||
index: 'serviceTypeLabel',
|
index: 'serviceType',
|
||||||
width: 150
|
width: '180px',
|
||||||
|
className: 'text-center'
|
||||||
},
|
},
|
||||||
{ title: '装货地', index: 'loadingAddressArr', width: '120px', className: 'text-left' },
|
{ title: '装货地', index: 'consignor',width: '180px', className: 'text-center' },
|
||||||
{ title: '卸货地', index: 'dischargeAddress', className: 'text-center'},
|
{ title: '卸货地', index: 'consignee',width: '180px', className: 'text-center' },
|
||||||
{ title: '货物信息', index: 'goodsName', className: 'text-center', width: '180px' },
|
{ title: '货物信息', index: 'goodsName', className: 'text-center',width: '180px' },
|
||||||
{ title: '车牌号', index: 'carNo', width: 100 },
|
{ title: '车牌号', index: 'carNo',className: 'text-center',width: '180px' },
|
||||||
{
|
{
|
||||||
title: '承运司机',
|
title: '承运司机',
|
||||||
className: 'text-right',
|
className: 'text-center',
|
||||||
width: '150px',
|
width: '180px',
|
||||||
render: 'driverName'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '车队长',
|
title: '车队长',
|
||||||
className: 'text-left',
|
className: 'text-center',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
index: 'payeeName',
|
index: 'carCaptainName',
|
||||||
render: 'payeeName'
|
|
||||||
},
|
},
|
||||||
{ title: '业务员',width: '100px', index: 'salesmanName',className: 'text-center', },
|
{ title: '业务员', width: '100px', index: 'salesmanName', className: 'text-center', },
|
||||||
{ title: '录单时间', index: 'recordTime',type: 'date', className: 'text-center', width: '150px' },
|
// { title: '录单时间', index: 'recordTime', type: 'date', className: 'text-center', width: '150px' }, //TODO
|
||||||
{ title: '装货时间', index: 'loadingTime', type: 'date', width: '150px',className: 'text-center', },
|
{ title: '装货时间', index: 'loadTime', type: 'date', width: '150px', className: 'text-center', },
|
||||||
{ title: '卸货时间', index: 'unloadingTime', type: 'date', width: '150px',className: 'text-center', },
|
{ title: '卸货时间', index: 'unloadTime', type: 'date', width: '150px', className: 'text-center', },
|
||||||
{ title: '订单完成时间', index: 'billfinTime', type: 'date', width: 150,className: 'text-center', },
|
{ title: '订单完成时间', index: 'orderReceivingTime', type: 'date', width: 150, className: 'text-center', },
|
||||||
{ title: '支付完成时间', index: 'payfinTime', type: 'date', width: 150,className: 'text-center', },
|
{ title: '支付完成时间', index: 'overallPaymentTime', type: 'date', width: 150, className: 'text-center', },
|
||||||
{ title: '开票状态', index: 'approvalStatus2', className: 'text-center', width: 180 },
|
{ title: '开票状态', index: 'sts', render: 'sts', className: 'text-center', width: 180 },
|
||||||
{ title: '申请开票时间', index: 'approvalInvoiceTime',type: 'date', className: 'text-center', width: 180 },
|
{ title: '申请开票时间', index: 'vatappdate', type: 'date', className: 'text-center', width: 180 },
|
||||||
{ title: '申请开票编号', index: 'approvalInvoiceNO', className: 'text-center', width: 180 },
|
{ title: '申请开票编号', index: 'vatappcode', className: 'text-center', width: 180 },
|
||||||
{ title: '分票编号', index: 'vatinvcode',className: 'text-center', },
|
{ title: '分票编号', index: 'vatinvcode',width: '180px', className: 'text-center', },
|
||||||
{ title: '发票号码', index: 'invoiceNum', width: 100,className: 'text-center', },
|
{ title: '发票号码', index: 'invoiceno', width: 100, className: 'text-center', },
|
||||||
{ title: '发票代码', index: 'invoiceCode', width: 130 },
|
{ title: '发票代码', index: 'invoiceno2', width: 130,className: 'text-center' },
|
||||||
{ title: '审核时间', index: 'approveTime',type: 'date', width: 130 },
|
{ title: '开票日期', index: 'invoicedate', type: 'date', width: 150,className: 'text-center' },
|
||||||
{ title: '开票日期', index: 'invoiceMakeTime', type: 'date', width: 150 },
|
// { title: '作废日期', index: 'invalidTime', type: 'date', width: 150 }, // TODO
|
||||||
{ title: '作废日期', index: 'invalidTime', type: 'date', width: 150 },
|
{ title: 'ETC开票金额', render: 'vatmoney', className: 'text-center', width: 200 }
|
||||||
{ title: 'ETC开票金额', render: 'vatmoney', className: 'text-left', width: 200 }
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -146,6 +146,9 @@ export class TicketService extends ShipperBaseService {
|
|||||||
// ETC白名单(车辆)导出接口
|
// ETC白名单(车辆)导出接口
|
||||||
$api_get_ficoCarWhiteList_asyncExport = '/api/fcc/ficoEtcInvoiceL/asyncExportCarWhiteList';
|
$api_get_ficoCarWhiteList_asyncExport = '/api/fcc/ficoEtcInvoiceL/asyncExportCarWhiteList';
|
||||||
|
|
||||||
|
// 可开票订单list查询
|
||||||
|
$api_invoicedBillInfo_page = '/api/fcc/invoicedBillInfo/findInvoicedBillInfoPage';
|
||||||
|
|
||||||
constructor(public injector: Injector) {
|
constructor(public injector: Injector) {
|
||||||
super(injector);
|
super(injector);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user