fix bug
This commit is contained in:
		| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2021-12-24 16:58:02 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-03-08 14:55:05 | ||||
|  * @LastEditTime : 2022-03-08 19:31:50 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail-change\\bulk-detail-change.component.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| @ -473,6 +473,20 @@ loadTime: any; // 货源单设置回显 | ||||
|   } | ||||
|   // 保存修改 | ||||
|   save() { | ||||
|     Object.keys(this.validateForm1.controls).forEach(key => { | ||||
|       this.validateForm1.controls[key].markAsDirty(); | ||||
|       this.validateForm1.controls[key].updateValueAndValidity(); | ||||
|     }); | ||||
|     this.sf3.validator({ emitError: true }); | ||||
|     this.sf4.validator({ emitError: true }); | ||||
|     if (this.validateForm1.invalid || !this.sf3.valid || !this.sf4.valid ) { | ||||
|       this.service.msgSrv.warning('请完善必填项!'); | ||||
|       return; | ||||
|     } | ||||
|     if ((this.sf4.value?.acceptWeight > this.i?.goodsInfoList?.[0]?.weight) || (this.sf4.value?.settlementWeight.settlementWeight > this.i?.goodsInfoList?.[0]?.weight) ) { | ||||
|       this.service.msgSrv.warning('装货重量/卸货重量不能大于货物重量!'); | ||||
|       return; | ||||
|     } | ||||
|     let imgList : any= []; | ||||
|     if(this.listImagUrls.length > 0) { | ||||
|       this.listImagUrls?.forEach((res :any) => { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user