From 1f806432d109767ab19b687f7ddd596d4ad9804a Mon Sep 17 00:00:00 2001 From: wangshiming Date: Fri, 4 Mar 2022 09:47:58 +0800 Subject: [PATCH] fix bug --- .../vehicle/sure-arrive/sure-arrive.component.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts b/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts index e0e8f6e3..eee67218 100644 --- a/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts +++ b/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts @@ -422,7 +422,10 @@ export class VehicleSureArriveComponent implements OnInit { }; } save(value: any): void { + console.log('444'); if(this.Status === 1) { + console.log('555'); + if(!value.time) { this.service.msgSrv.warning('必填项为空!') return; @@ -449,11 +452,11 @@ export class VehicleSureArriveComponent implements OnInit { console.log(this.i) const params = { id: this.i?.id, - imgUrl1: value.imgUrl1.data.fullFilePath, - imgUrl2: value.imgUrl2.data.fullFilePath, - time: value.time, - volume: this.data.volume, - weight: this.data.weight + imgUrl1: value?.imgUrl1?.data?.fullFilePath, + imgUrl2: value?.imgUrl2?.data?.fullFilePath, + time: value?.time, + volume: this.data?.volume, + weight: this.data?.weight } params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ') console.log(params)