zxz 2 年之前
父节点
当前提交
60ab888065
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      src/views/warehousenew/warehousingOrder.vue

+ 4 - 5
src/views/warehousenew/warehousingOrder.vue

@@ -871,11 +871,11 @@ export default {
       item.summation = 0
       item.summation = 0
       for (let i = 0; i < val.length; i++) {
       for (let i = 0; i < val.length; i++) {
         if (val[i].surplusWeight) {
         if (val[i].surplusWeight) {
-          item.summation += val[i].surplusWeight
+          item.summation += Number(val[i].surplusWeight)
         }
         }
 
 
       }
       }
-      item.summation = item.summation.toFixed(2)
+      item.summation = item.summation.toFixed(3)
       this.$forceUpdate()
       this.$forceUpdate()
       // console.log(val,item.summation,1111111111)
       // console.log(val,item.summation,1111111111)
       this.multipleSelection1[item.id] = val
       this.multipleSelection1[item.id] = val
@@ -1144,7 +1144,7 @@ export default {
       console.log(this.currectdata)
       console.log(this.currectdata)
       this.fieldrationsList.warehousingOrderList = this.currectdata
       this.fieldrationsList.warehousingOrderList = this.currectdata
       this.fieldrationsList.baseId = this.currectdata[0].baseId
       this.fieldrationsList.baseId = this.currectdata[0].baseId
-      this.fieldrationsList.beforeWeight = weight.toFixed(2)
+      this.fieldrationsList.beforeWeight = weight.toFixed(3)
       getbyname({ warehouseId: this.currectdata[0].baseId, goodsName: this.currectdata[0].goodsName }).toPromise()
       getbyname({ warehouseId: this.currectdata[0].baseId, goodsName: this.currectdata[0].goodsName }).toPromise()
         .then((response) => {
         .then((response) => {
           if (response) {
           if (response) {
@@ -1157,7 +1157,7 @@ export default {
               weight2 += ((deductWeight / 100) * this.currectdata[i].surplusWeight)
               weight2 += ((deductWeight / 100) * this.currectdata[i].surplusWeight)
             }
             }
             console.log(this.currectdata)
             console.log(this.currectdata)
-            this.fieldrationsList.afterWeight = weight2.toFixed(2)
+            this.fieldrationsList.afterWeight = weight2.toFixed(3)
             this.fieldrationsshow = true
             this.fieldrationsshow = true
           }
           }
         })
         })
@@ -1185,7 +1185,6 @@ export default {
         });
         });
         return
         return
       }
       }
-
       if (currectData.length == 0) {
       if (currectData.length == 0) {
         this.$message({
         this.$message({
           message: '请选择一条数据!',
           message: '请选择一条数据!',