소스 검색

修改入库完善入库 净重小数点问题

wangchao 3 년 전
부모
커밋
68f228437e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      pages/erp/improvedWrehousing/improvedWrehousingDetail.vue
  2. 1 1
      pages/erp/warehousing/warehousing.vue

+ 1 - 1
pages/erp/improvedWrehousing/improvedWrehousingDetail.vue

@@ -468,7 +468,7 @@
 				}
 			},
 			calculate() {
-				this.netWeight = this.detailData.grossWeight - this.detailData.tare - this.detailData.deductionWeight
+				this.netWeight = (this.detailData.grossWeight - this.detailData.tare - this.detailData.deductionWeight).toFixed(2)
 			},
 			getImgUrl(res) {
 				this.detailData.addressUrl = res

+ 1 - 1
pages/erp/warehousing/warehousing.vue

@@ -459,7 +459,7 @@
 				}
 			},
 			calculate() {
-				this.netWeight = this.detailData.grossWeight - this.detailData.tare - this.detailData.deductionWeight
+				this.netWeight = (this.detailData.grossWeight - this.detailData.tare - this.detailData.deductionWeight).toFixed(2)
 			},
 			getImgUrl(res) {
 				this.detailData.addressUrl = res