|
@@ -892,6 +892,8 @@ import SellingAbilityInfo from '@/components/personalForms/sellingAbilityInfo'
|
|
|
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',
|
|
@@ -963,11 +965,7 @@ export default {
|
|
|
let price = Decimal(newVal.price);
|
|
|
let wan = Decimal(10000);
|
|
|
let amount = acrege.mul(price).div(wan);
|
|
|
- // console.log(acrege.toString())
|
|
|
- // console.log(price.toString())
|
|
|
- // console.log(amount.toString())
|
|
|
newVal.amount = utils.roundToDecimalPlace(amount,2)
|
|
|
- // console.log(newVal.amount)
|
|
|
}
|
|
|
if (newVal.id) {
|
|
|
this.getProductions();
|
|
@@ -1329,6 +1327,7 @@ export default {
|
|
|
if (this.personalId) {
|
|
|
this.$api.personalTarget.detail(this.personalId).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
+ res.data.amount = utils.roundToDecimalPlace(new Decimal(res.data.amount).div(10000),2)
|
|
|
this.target = res.data;
|
|
|
this.linkAttributes.acreage = this.target.acreage;
|
|
|
if (res.data.isOnline) {
|