浏览代码

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

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