'fixbug'
This commit is contained in:
@ -407,7 +407,7 @@ export class VehicleSureArriveComponent implements OnInit {
|
||||
} as SFUploadWidgetSchema,
|
||||
}
|
||||
},
|
||||
required: ['time' ]
|
||||
required: ['time','weight','volume' ]
|
||||
};
|
||||
}
|
||||
this.ui = {
|
||||
@ -434,6 +434,7 @@ export class VehicleSureArriveComponent implements OnInit {
|
||||
time: value?.time,
|
||||
}
|
||||
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
|
||||
|
||||
this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe((res) => {
|
||||
if(res) {
|
||||
this.service.msgSrv.success('确认到车成功!')
|
||||
@ -441,8 +442,8 @@ export class VehicleSureArriveComponent implements OnInit {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
if(!value.time ) {
|
||||
this.service.msgSrv.warning('卸货时间为空!')
|
||||
if(!value.time || !this.data?.volume || !this.data?.weight) {
|
||||
this.service.msgSrv.warning('卸货时间或卸货重量为空!')
|
||||
return;
|
||||
}
|
||||
const params = {
|
||||
|
||||
Reference in New Issue
Block a user