From 724f350955be20311a5292e80c7b0557421b4f1f Mon Sep 17 00:00:00 2001 From: wangshiming Date: Tue, 14 Dec 2021 20:30:33 +0800 Subject: [PATCH] fix bug --- .../bulk-publish/bulk-publish.component.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/app/routes/supply-management/components/bulk-publish/bulk-publish.component.ts b/src/app/routes/supply-management/components/bulk-publish/bulk-publish.component.ts index 5909c7da..b57eb0b4 100644 --- a/src/app/routes/supply-management/components/bulk-publish/bulk-publish.component.ts +++ b/src/app/routes/supply-management/components/bulk-publish/bulk-publish.component.ts @@ -492,16 +492,6 @@ export class SupplyManagementBulkPublishComponent implements OnInit { } submit(): void { console.log(this.startInfo) - // Object.keys(this.validateForm1.controls).forEach(key => { - // this.validateForm1.controls[key].markAsDirty(); - // this.validateForm1.controls[key].updateValueAndValidity(); - // }); - // this.sf1.validator({ emitError: true }); - // this.sf3.validator({ emitError: true }); - // this.sf4.validator({ emitError: true }); - // if (this.validateForm1.invalid || !this.sf1.valid || !this.sf3.valid || !this.sf4.valid || !this.sf6.valid) { - // return; - // } if(typeof(this.validateForm1.value.modifyTime) !== 'string' ) { var c = new Date(this.validateForm1.value.modifyTime); this.validateForm1.value.modifyTime = c.getFullYear() + '-' + (c.getMonth() + 1) + '-' + c.getDate() + ' ' + c.getHours() + ':' + c.getMinutes() + ':' + c.getSeconds() @@ -513,12 +503,9 @@ export class SupplyManagementBulkPublishComponent implements OnInit { // if (this.validateForm1.invalid) { // return; // } - if(this.validateForm1?.value?.createTime) { - this.startInfo.createTime = this.validateForm1?.value?.createTime - this.startInfo.modifyTime = this.validateForm1?.value?.modifyTime - } const params: any = { ...this.sf1.value, + ...this.sf7.value, unLoadingPlaceDTOList: [...this.startInfo, ...this.endInfo,], goodsInfoDTOList: [ {