fix bug
This commit is contained in:
@ -492,16 +492,6 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
submit(): void {
|
submit(): void {
|
||||||
console.log(this.startInfo)
|
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' ) {
|
if(typeof(this.validateForm1.value.modifyTime) !== 'string' ) {
|
||||||
var c = new Date(this.validateForm1.value.modifyTime);
|
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()
|
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) {
|
// if (this.validateForm1.invalid) {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
if(this.validateForm1?.value?.createTime) {
|
|
||||||
this.startInfo.createTime = this.validateForm1?.value?.createTime
|
|
||||||
this.startInfo.modifyTime = this.validateForm1?.value?.modifyTime
|
|
||||||
}
|
|
||||||
const params: any = {
|
const params: any = {
|
||||||
...this.sf1.value,
|
...this.sf1.value,
|
||||||
|
...this.sf7.value,
|
||||||
unLoadingPlaceDTOList: [...this.startInfo, ...this.endInfo,],
|
unLoadingPlaceDTOList: [...this.startInfo, ...this.endInfo,],
|
||||||
goodsInfoDTOList: [
|
goodsInfoDTOList: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user