fix bug
This commit is contained in:
@ -38,7 +38,15 @@ export class ETCInvoicedListComponent extends BasicTableComponent implements OnI
|
||||
}
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
afterRes = (data: any[], rawData?: any) => {
|
||||
return data.map(item => ({
|
||||
...item,
|
||||
disabled: item.invoicingStatus !== '1' || item.invoicingStatus !== '9'
|
||||
}));
|
||||
};
|
||||
get selectedRows() {
|
||||
return this.st?.list.filter(item => item.checked) || [];
|
||||
}
|
||||
showDetail(item: any) {
|
||||
const modal = this.nzModalService.create({
|
||||
nzTitle: '运单交易明细',
|
||||
@ -129,6 +137,7 @@ export class ETCInvoicedListComponent extends BasicTableComponent implements OnI
|
||||
|
||||
private initST(): STColumn[] {
|
||||
return [
|
||||
{ title: '', type: 'checkbox', fixed: 'left', width: '50px', className: 'text-center' },
|
||||
{ title: '运单号', index: 'wayBillCode', width: 200 },
|
||||
{ title: '订单号', index: 'billCode', width: 200 },
|
||||
{
|
||||
@ -177,4 +186,19 @@ export class ETCInvoicedListComponent extends BasicTableComponent implements OnI
|
||||
exprot() {
|
||||
this.service.exportStart({ ...this.sf?.value, pageSize: -1 }, this.service.$api_get_asyncExportEtcApplyRecordList);
|
||||
}
|
||||
sureInvoice() {
|
||||
if (this.selectedRows.length <= 0) {
|
||||
this.service.msgSrv.error('请选择订单!');
|
||||
return;
|
||||
}
|
||||
let params: any[] = [];
|
||||
this.selectedRows.forEach(item => {
|
||||
params.push(item.id);
|
||||
});
|
||||
this.service.request(this.service.$api_updateEtcRecordStatus, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.st.load(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user