fix bug
This commit is contained in:
@ -46,27 +46,27 @@ export class PayableOrderDetailComponent implements OnInit {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf?.value,
|
||||
billTime: {
|
||||
start: this.sf?.value.billTime?.[0] || null,
|
||||
end: this.sf?.value.billTime?.[1] || null
|
||||
start: this.sf?.value.billTime?.[0] || '',
|
||||
end: this.sf?.value.billTime?.[1] || ''
|
||||
},
|
||||
feedate: {
|
||||
start: this.sf?.value.feedate?.[0] || null,
|
||||
end: this.sf?.value.feedate?.[1] || null
|
||||
start: this.sf?.value.feedate?.[0] || '',
|
||||
end: this.sf?.value.feedate?.[1] || ''
|
||||
}
|
||||
});
|
||||
if (this.sf?.value.billTime) {
|
||||
Object.assign(requestOptions.body, {
|
||||
billTime: {
|
||||
start: this.sf?.value.billTime?.[0] || null,
|
||||
end: this.sf?.value.billTime?.[1] || null
|
||||
start: this.sf?.value.billTime?.[0] || '',
|
||||
end: this.sf?.value.billTime?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
if (this.sf?.value.feedate) {
|
||||
Object.assign(requestOptions.body, {
|
||||
feedate: {
|
||||
start: this.sf?.value.feedate?.[0] || null,
|
||||
end: this.sf?.value.feedate?.[1] || null
|
||||
start: this.sf?.value.feedate?.[0] || '',
|
||||
end: this.sf?.value.feedate?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -134,9 +134,6 @@ export class PayableOrderDetailComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'sl-from-to-search',
|
||||
format: 'yyyy-MM-dd',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
} as SFDateWidgetSchema
|
||||
},
|
||||
billTime: {
|
||||
|
||||
Reference in New Issue
Block a user