This commit is contained in:
wangshiming
2021-12-14 20:30:33 +08:00
parent 7bbd8a8bc9
commit 724f350955

View File

@ -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: [
{