|
@@ -2459,7 +2459,7 @@ const Task = React.createClass({
|
|
|
if (!totalCui) {
|
|
|
totalCui = 0
|
|
|
}
|
|
|
- totalCui = (Math.round(totalCui * 10000) / 10000).toFixed(4)
|
|
|
+ totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6)
|
|
|
this.setState({
|
|
|
jiedianNew: theArr,
|
|
|
totalCui,
|
|
@@ -2702,7 +2702,7 @@ const Task = React.createClass({
|
|
|
calculatedAmount() {
|
|
|
let currentTotalPrice
|
|
|
currentTotalPrice = this.state.thirdUnitPrice * this.state.thirdQuantity
|
|
|
- currentTotalPrice = currentTotalPrice.toFixed(4)
|
|
|
+ currentTotalPrice = currentTotalPrice.toFixed(6)
|
|
|
this.setState({
|
|
|
currentTotalPrice: currentTotalPrice,
|
|
|
})
|
|
@@ -2722,7 +2722,7 @@ const Task = React.createClass({
|
|
|
this.state.thirdInfoList.forEach((item) => {
|
|
|
if (item.companyName === this.state.thirdCompanyName) {
|
|
|
currentTotalPrice = num ? item.unitPrice * num : item.quantity * item.unitPrice;
|
|
|
- currentTotalPrice = currentTotalPrice.toFixed(4);
|
|
|
+ currentTotalPrice = currentTotalPrice.toFixed(6);
|
|
|
quantity = num ? num : item.quantity;
|
|
|
unitPrice = item.unitPrice;
|
|
|
}
|