Explorar o código

fix(库存管理): 修复单重计算中totalCount变量引用错误

yusheng hai 5 meses
pai
achega
e2dfc3970d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/BIZComponents/setProduct.js

+ 1 - 1
src/BIZComponents/setProduct.js

@@ -101,7 +101,7 @@ function setSingleWeight(row, countObj, endIndex) {
     // console.log(totalWeight, 'totalWeight');
     row['singleWeight'] = Number(totalWeight/row[countObj.countKey]).toFixed(2);
   } else if (row.totalWeight && row[countObj.countKey]) {
-    row['singleWeight'] = (row.totalWeight / totalCount).toFixed(2);
+    row['singleWeight'] = (row.totalWeight / row.totalCount).toFixed(2);
   } else {
     row['singleWeight'] = 0;
   }