'fixbug'
This commit is contained in:
		@ -407,7 +407,7 @@ export class VehicleSureArriveComponent implements OnInit {
 | 
				
			|||||||
          } as SFUploadWidgetSchema,
 | 
					          } as SFUploadWidgetSchema,
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      required: ['time' ]
 | 
					      required: ['time','weight','volume' ]
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
    this.ui = {
 | 
					    this.ui = {
 | 
				
			||||||
@ -434,6 +434,7 @@ export class VehicleSureArriveComponent implements OnInit {
 | 
				
			|||||||
        time: value?.time,
 | 
					        time: value?.time,
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
 | 
					      params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ')
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
      this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe((res) => {
 | 
					      this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe((res) => {
 | 
				
			||||||
        if(res) {
 | 
					        if(res) {
 | 
				
			||||||
          this.service.msgSrv.success('确认到车成功!')
 | 
					          this.service.msgSrv.success('确认到车成功!')
 | 
				
			||||||
@ -441,8 +442,8 @@ export class VehicleSureArriveComponent implements OnInit {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      if(!value.time ) {
 | 
					      if(!value.time || !this.data?.volume || !this.data?.weight) {
 | 
				
			||||||
        this.service.msgSrv.warning('卸货时间为空!')
 | 
					        this.service.msgSrv.warning('卸货时间或卸货重量为空!')
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
       }
 | 
					       }
 | 
				
			||||||
        const params = {
 | 
					        const params = {
 | 
				
			||||||
 | 
				
			|||||||
@ -249,7 +249,7 @@ export class VehicleSureDepartComponent implements OnInit {
 | 
				
			|||||||
            } as SFUploadWidgetSchema,
 | 
					            } as SFUploadWidgetSchema,
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        required: ['time']
 | 
					        required: ['time','weight', 'volume']
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
@ -282,8 +282,8 @@ export class VehicleSureDepartComponent implements OnInit {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      if(!value?.time) {
 | 
					      if(!value?.time || !this.data?.volume || !this.data?.weight) {
 | 
				
			||||||
        this.service.msgSrv.warning('装货时间为空!')
 | 
					        this.service.msgSrv.warning('装货时间或装货重量为空!')
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
       }
 | 
					       }
 | 
				
			||||||
        console.log(value)
 | 
					        console.log(value)
 | 
				
			||||||
 | 
				
			|||||||
@ -283,8 +283,7 @@ tabs = {
 | 
				
			|||||||
        width: '200px',
 | 
					        width: '200px',
 | 
				
			||||||
        className: 'text-left',
 | 
					        className: 'text-left',
 | 
				
			||||||
        format: (item: any) =>
 | 
					        format: (item: any) =>
 | 
				
			||||||
          `${item.settlementWeight || '0'}吨/
 | 
					          `${item.settlementWeight || ''}`
 | 
				
			||||||
           ${item.settlementVolume || '0'}方`
 | 
					 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        title: '承运司机',
 | 
					        title: '承运司机',
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user