Browse Source

修改自动计算为数据监听

develop
王健 4 years ago
parent
commit
c1a5016abc
  1. 18
      src/views/land/handLand/newLand.vue
  2. 23
      src/views/land/noneHandLand/newLand.vue

18
src/views/land/handLand/newLand.vue

@ -1865,15 +1865,29 @@ export default {
this.editForm.landTransferSquare &&
this.editForm.landTransferSquare != 0
) {
this.editForm.landTransferMu =
(this.editForm.landTransferSquare / 2000) * 3;
//
this.editForm.landTransferMu = (
(this.editForm.landTransferSquare / 2000) *
3
).toFixed(2);
//
this.editForm.plotRatio = (
this.editForm.totalConsArea / this.editForm.landTransferSquare
).toFixed(2);
}
if (this.editForm.totalConsArea && this.editForm.totalConsArea != 0) {
//%
this.editForm.bizCommerceRate = (
((this.editForm.bizSpace + this.editForm.commerceSpace) /
this.editForm.totalConsArea) *
100
).toFixed(2);
//
this.editForm.startingFloorPrice = (
(this.editForm.transferPrice * 10000) /
this.editForm.totalConsArea
).toFixed(2);
}
},
deep: true,

23
src/views/land/noneHandLand/newLand.vue

@ -1692,30 +1692,33 @@ export default {
watch: {
editForm: {
handler(newValue, oldValue) {
//
if (
this.editForm.landTransferSquare &&
this.editForm.landTransferSquare != 0
) {
this.editForm.landTransferMu =
(this.editForm.landTransferSquare / 2000) * 3;
}
//
if (
this.editForm.landTransferSquare &&
this.editForm.landTransferSquare != 0
) {
//
this.editForm.landTransferMu = (
(this.editForm.landTransferSquare / 2000) *
3
).toFixed(2);
//
this.editForm.plotRatio = (
this.editForm.totalConsArea / this.editForm.landTransferSquare
).toFixed(2);
}
//%
if (this.editForm.totalConsArea && this.editForm.totalConsArea != 0) {
//%
this.editForm.bizCommerceRate = (
((this.editForm.bizSpace + this.editForm.commerceSpace) /
this.editForm.totalConsArea) *
100
).toFixed(2);
//
this.editForm.startingFloorPrice = (
(this.editForm.transferPrice * 10000) /
this.editForm.totalConsArea
).toFixed(2);
}
},
deep: true,

Loading…
Cancel
Save