fix bug
This commit is contained in:
@ -27,14 +27,14 @@ export class ETCInvoicedLogsComponent implements OnInit {
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
exTime: {
|
||||
start: this.sf.value.exTime?.[0] || '',
|
||||
end: this.sf.value.exTime?.[1] || ''
|
||||
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] || ''
|
||||
start: this.sf?.value.invoiceMakeTime?.[0] || '',
|
||||
end: this.sf?.value.invoiceMakeTime?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -66,7 +66,7 @@ export class ETCInvoicedLogsComponent implements OnInit {
|
||||
const params = { listSource: 1, pageSize: -1 };
|
||||
if (this.sf) {
|
||||
Object.assign(params, {
|
||||
...this.sf.value
|
||||
...this.sf?.value
|
||||
});
|
||||
}
|
||||
this.service.downloadFile(this.service.$api_export_invoice_logs_page, params);
|
||||
|
||||
Reference in New Issue
Block a user