|
@@ -67,6 +67,12 @@ export default {
|
|
|
params.premium_rate = ((Number(params.final_price) - Number(params.start_total_price)) / Number(params.start_total_price) * 100).toFixed(2)
|
|
|
}
|
|
|
}
|
|
|
+ if (str === 'floor_price') {
|
|
|
+ params = {...this.$refs.ruleForm.baseForm}
|
|
|
+ if (params.floor_price && params.plot_ratio) {
|
|
|
+ params.final_price = ((666.6666666667 * Number(params.plot_ratio)) * Number(params.floor_price) / 10000).toFixed(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
if (str === 'start_total_price') {
|
|
|
params = {...this.$refs.ruleForm.baseForm}
|
|
|
if (params.start_total_price && params.plot_ratio) {
|
|
@@ -76,6 +82,12 @@ export default {
|
|
|
params.premium_rate = ((Number(params.final_price) - Number(params.start_total_price)) / Number(params.start_total_price) * 100).toFixed(2)
|
|
|
}
|
|
|
}
|
|
|
+ if (str === 'start_unit_price') {
|
|
|
+ params = {...this.$refs.ruleForm.baseForm}
|
|
|
+ if (params.start_unit_price && params.plot_ratio) {
|
|
|
+ params.start_total_price = ((666.6666666667 * Number(params.plot_ratio)) * Number(params.start_unit_price) / 10000).toFixed(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
this.formData = [
|
|
|
{ label: '地块编号', key: 'no', class: 'c-2' },
|
|
|
{ label: '区域', key: 'area_type', type: 'select', class: 'c-2', options: this.$dictData.area_type },
|
|
@@ -84,9 +96,9 @@ export default {
|
|
|
{ label: '容积率', key: 'plot_ratio', class: 'c-2' },
|
|
|
{ label: '用途', key: 'purpose', class: 'c-2' },
|
|
|
{ label: '成交价', key: 'final_price', class: 'c-2', type: 'inputFont', appendFont: '万元/亩', changeHandle: this.finalPriceChange},
|
|
|
- { label: '成交楼面价', key: 'floor_price', class: 'c-2', type: 'inputFont', appendFont: '元' },
|
|
|
+ { label: '成交楼面价', key: 'floor_price', class: 'c-2', type: 'inputFont', appendFont: '元', changeHandle: this.floorPriceChange },
|
|
|
{ label: '起拍价', key: 'start_total_price', class: 'c-2', type: 'inputFont', appendFont: '万元/亩', changeHandle: this.startTotalPriceChange },
|
|
|
- { label: '起拍楼面价', key: 'start_unit_price', class: 'c-2', type: 'inputFont', appendFont: '元' },
|
|
|
+ { label: '起拍楼面价', key: 'start_unit_price', class: 'c-2', type: 'inputFont', appendFont: '元', changeHandle: this.startUnitPriceChange },
|
|
|
{ label: '溢价率', key: 'premium_rate', class: 'c-2', type: 'inputFont', appendFont: '%' },
|
|
|
{ label: '出让年限', key: 'sell_ownership', class: 'c-2', type: 'inputFont', appendFont: '年' },
|
|
|
{ label: '出让面积', key: 'sell_area', class: 'c-2', type: 'inputFont', appendFont: '亩'},
|
|
@@ -96,12 +108,18 @@ export default {
|
|
|
]
|
|
|
this.setDefaultValue(params)
|
|
|
},
|
|
|
- finalPriceChange (val) {
|
|
|
+ finalPriceChange () {
|
|
|
this.getDef('final_price')
|
|
|
},
|
|
|
- startTotalPriceChange (val) {
|
|
|
+ floorPriceChange () {
|
|
|
+ this.getDef('floor_price')
|
|
|
+ },
|
|
|
+ startTotalPriceChange () {
|
|
|
this.getDef('start_total_price')
|
|
|
},
|
|
|
+ startUnitPriceChange () {
|
|
|
+ this.getDef('start_unit_price')
|
|
|
+ },
|
|
|
close(str) {
|
|
|
if (str === 'confirm') {
|
|
|
this.$refs['ruleForm'].$refs['baseForm'].validate((valid) => {
|