This commit is contained in:
Taric Xin
2022-04-11 10:15:16 +08:00
parent 6e5b2fd9b5
commit d2c5eedfce
2 changed files with 12 additions and 12 deletions

View File

@ -40,16 +40,16 @@ export class PayableOrderComponent implements OnInit {
if (this.sf.value?.createTime) {
Object.assign(requestOptions.body, {
createTime: {
start: this.sf.value.createTime?.[0] || null,
end: this.sf.value.createTime?.[1] || null
start: this.sf.value.createTime?.[0] || '',
end: this.sf.value.createTime?.[1] || ''
}
});
}
if (this.sf.value?.phxdate) {
Object.assign(requestOptions.body, {
phxdate: {
start: this.sf.value.phxdate?.[0] || null,
end: this.sf.value.phxdate?.[1] || null
start: this.sf.value.phxdate?.[0] || '',
end: this.sf.value.phxdate?.[1] || ''
}
});
}

View File

@ -23,23 +23,23 @@ export class PaymentOrderComponent implements OnInit {
_$expand = false;
selectedRows: any[] = [];
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) { }
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
ngOnInit(): void { }
ngOnInit(): void {}
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
let params = { ...this.sf.value };
if (params.payDate) {
const payDate = { start: this.sf?.value?.payDate?.[0], end: this.sf?.value?.payDate?.[1] }
const payDate = { start: this.sf?.value?.payDate?.[0], end: this.sf?.value?.payDate?.[1] };
params.payDate = payDate;
}
if (params.payDate2) {
const payDate2 = { start: this.sf?.value?.payDate2?.[0], end: this.sf?.value?.payDate2?.[1] }
const payDate2 = { start: this.sf?.value?.payDate2?.[0], end: this.sf?.value?.payDate2?.[1] };
params.payDate2 = payDate2;
}
if (params.createTime) {
const createTime = { start: this.sf?.value?.createTime?.[0], end: this.sf?.value?.createTime?.[1] }
const createTime = { start: this.sf?.value?.createTime?.[0] || '', end: this.sf?.value?.createTime?.[1] || '' };
params.createTime = createTime;
}
Object.assign(requestOptions.body, params);
@ -95,7 +95,7 @@ export class PaymentOrderComponent implements OnInit {
},
paycode: {
type: 'string',
title: '付款单号',
title: '付款单号'
},
ltdId: {
type: 'string',
@ -125,7 +125,7 @@ export class PaymentOrderComponent implements OnInit {
widget: 'dict-select',
containsAllLabel: true,
params: { dictKey: 'pay:type' },
placeholder: '请选择',
placeholder: '请选择'
}
},
paymode: {
@ -264,7 +264,7 @@ export class PaymentOrderComponent implements OnInit {
{
text: '浏览',
click: item => this.router.navigate(['/financial-management/payment-order/detail/' + item.id])
},
}
// {
// text: '修改',
// }