This commit is contained in:
wangshiming
2022-05-13 10:42:27 +08:00
parent b4dfcd43ef
commit 1b42d9347e
3 changed files with 55 additions and 20 deletions

View File

@ -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);
}
});
}
}