fix bug
This commit is contained in:
@ -892,7 +892,11 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
||||
this.service.msgSrv.warning('起终点相同,请重新选择装卸货地址!');
|
||||
return;
|
||||
}
|
||||
if (this.validateForm1.value.loadingTime < new Date()) {
|
||||
let date1 = this.validateForm1.value.loadingTime
|
||||
let date2 = new Date()
|
||||
let min = date1.getMinutes()
|
||||
date1.setMinutes(min+10)
|
||||
if (date1 < date2 ) {
|
||||
this.service.msgSrv.warning('装货时间必须大于当前时间!');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user