From d2c5eedfce49d20f25e45fc6496ffbcf82571900 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Mon, 11 Apr 2022 10:15:16 +0800 Subject: [PATCH] edit --- .../payable-order/payable-order.component.ts | 8 ++++---- .../payment-order/payment-order.component.ts | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/app/routes/financial-management/components/payable-order/payable-order.component.ts b/src/app/routes/financial-management/components/payable-order/payable-order.component.ts index c42174ca..703c57de 100644 --- a/src/app/routes/financial-management/components/payable-order/payable-order.component.ts +++ b/src/app/routes/financial-management/components/payable-order/payable-order.component.ts @@ -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] || '' } }); } diff --git a/src/app/routes/financial-management/components/payment-order/payment-order.component.ts b/src/app/routes/financial-management/components/payment-order/payment-order.component.ts index 93bb090b..9c15fa53 100644 --- a/src/app/routes/financial-management/components/payment-order/payment-order.component.ts +++ b/src/app/routes/financial-management/components/payment-order/payment-order.component.ts @@ -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: '修改', // }