diff --git a/pages/order/detail/detail.js b/pages/order/detail/detail.js index e833383..27bbf12 100644 --- a/pages/order/detail/detail.js +++ b/pages/order/detail/detail.js @@ -423,7 +423,7 @@ Page({ var numberNumber = detail.SecondNumber / detail.LeftRatio * detail.RightRatio; if (detail.Goods_UnitConvertDirection == 0 || detail.Goods_UnitConvertDirection == 2) { - detail.UnitNum = numberNumber / (Goods_SecondUnitRatio) * (Goods_MainUnitRatio); + detail.UnitNum = numberNumber / (detail.Goods_SecondUnitRatio) * (detail.Goods_MainUnitRatio); } } this.setData({ diff --git a/pages/order/newBill/newBill.js b/pages/order/newBill/newBill.js index 268c60c..8c2a42d 100644 --- a/pages/order/newBill/newBill.js +++ b/pages/order/newBill/newBill.js @@ -368,7 +368,7 @@ Page({ var numberNumber = detail.SecondNumber / detail.LeftRatio * detail.RightRatio; if (detail.Goods_UnitConvertDirection == 0 || detail.Goods_UnitConvertDirection == 2) { - detail.UnitNum = numberNumber / (Goods_SecondUnitRatio) * (Goods_MainUnitRatio); + detail.UnitNum = numberNumber / (detail.Goods_SecondUnitRatio) * (detail.Goods_MainUnitRatio); } } this.setData({