'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 = {
|
||||
|
||||
@ -249,7 +249,7 @@ export class VehicleSureDepartComponent implements OnInit {
|
||||
} as SFUploadWidgetSchema,
|
||||
}
|
||||
},
|
||||
required: ['time']
|
||||
required: ['time','weight', 'volume']
|
||||
};
|
||||
}
|
||||
|
||||
@ -282,8 +282,8 @@ export class VehicleSureDepartComponent implements OnInit {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
if(!value?.time) {
|
||||
this.service.msgSrv.warning('装货时间为空!')
|
||||
if(!value?.time || !this.data?.volume || !this.data?.weight) {
|
||||
this.service.msgSrv.warning('装货时间或装货重量为空!')
|
||||
return;
|
||||
}
|
||||
console.log(value)
|
||||
|
||||
@ -283,8 +283,7 @@ tabs = {
|
||||
width: '200px',
|
||||
className: 'text-left',
|
||||
format: (item: any) =>
|
||||
`${item.settlementWeight || '0'}吨/
|
||||
${item.settlementVolume || '0'}方`
|
||||
`${item.settlementWeight || ''}`
|
||||
},
|
||||
{
|
||||
title: '承运司机',
|
||||
|
||||
Reference in New Issue
Block a user