|
@@ -1116,6 +1116,7 @@ import existPNG from '@/assets/images/exist.png'
|
|
|
import emptyPNG from '@/assets/images/empty.png'
|
|
|
import { POBrowser } from 'js-pageoffice'
|
|
|
import utils from '@/utils/utils'
|
|
|
+import Decimal from 'decimal.js';
|
|
|
|
|
|
export default {
|
|
|
name: 'personalTodoDetail',
|
|
@@ -1186,7 +1187,11 @@ export default {
|
|
|
target: {
|
|
|
handler(newVal, oldVal) {
|
|
|
if (newVal.acreage != null && newVal.price != null && newVal.price !=null && newVal.price != 0) {
|
|
|
- newVal.amount = utils.roundToDecimalPlace((newVal.acreage * newVal.price/10000),2)
|
|
|
+ let acrege = Decimal(newVal.acreage);
|
|
|
+ let price = Decimal(newVal.price);
|
|
|
+ let wan = Decimal(10000);
|
|
|
+ let amount = acrege.mul(price).div(wan);
|
|
|
+ newVal.amount = utils.roundToDecimalPlace(amount,2)
|
|
|
}
|
|
|
if (newVal.id) {
|
|
|
this.getProductions();
|