|
|
|
@ -92,6 +92,8 @@ Component({
|
|
|
|
|
{label:'是',value:'1'}, |
|
|
|
|
], |
|
|
|
|
measureDataId:'', |
|
|
|
|
parking_sale_rate:'', |
|
|
|
|
finance_rate:'', |
|
|
|
|
measureData:{ |
|
|
|
|
"landListedId":null, |
|
|
|
|
"businessPrice": 0,//商务定价
|
|
|
|
@ -151,7 +153,8 @@ Component({
|
|
|
|
|
}) |
|
|
|
|
if(this.data.orgiData&&this.data.orgiData.measureType===1){ |
|
|
|
|
let data=JSON.parse(JSON.stringify(this.data.orgiData)) |
|
|
|
|
this.data.measureDataId=data.measureDataId |
|
|
|
|
this.data.measureDataId=data.measureDataId; |
|
|
|
|
this.data.isMeasure=true; |
|
|
|
|
this.setData({ |
|
|
|
|
params:{ |
|
|
|
|
selfHousingSale:data.selfHousingSale===1?'是':'否', |
|
|
|
@ -196,12 +199,14 @@ Component({
|
|
|
|
|
//车位配比
|
|
|
|
|
$api.getDict('parking_sale_rate').then(res=>{ |
|
|
|
|
this.setData({ |
|
|
|
|
parking_sale_rate:res.data[0].value, |
|
|
|
|
'priceData.parkingSaleRate':res.data[0].value |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
//财务费率
|
|
|
|
|
$api.getDict('finance_rate').then(res=>{ |
|
|
|
|
this.setData({ |
|
|
|
|
finance_rate:res.data[0].value, |
|
|
|
|
'priceData.financialRate':res.data[0].value |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
@ -294,6 +299,14 @@ Component({
|
|
|
|
|
}) |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if(this.data.orgiData&&this.data.orgiData.statusCd=='1100'){ |
|
|
|
|
wx.showToast({ |
|
|
|
|
title: '该测算数据已被保存', |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}) |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
let data=JSON.parse(JSON.stringify(this.data.measureData)) |
|
|
|
|
if(this.data.measureDataId){ |
|
|
|
|
data.measureDataId=this.data.measureDataId |
|
|
|
@ -301,10 +314,16 @@ Component({
|
|
|
|
|
data.landListedId=this.data.dataInfo.landListedId; |
|
|
|
|
data.statusCd=1100; |
|
|
|
|
data.measureType=1; |
|
|
|
|
// $api.measureData(data).then(res=>{
|
|
|
|
|
// console.log(res)
|
|
|
|
|
// })
|
|
|
|
|
// console.log(this.data.measureData)
|
|
|
|
|
$api.measureData(data).then(res=>{ |
|
|
|
|
if(res.msg=='ok'){ |
|
|
|
|
wx.showToast({ |
|
|
|
|
title: '保存成功', |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
console.log(this.data.measureData) |
|
|
|
|
}, |
|
|
|
|
submit(){ |
|
|
|
|
if(!this.data.isMeasure){ |
|
|
|
@ -315,6 +334,14 @@ Component({
|
|
|
|
|
}) |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if(this.data.orgiData&&this.data.orgiData.statusCd=='1100'){ |
|
|
|
|
wx.showToast({ |
|
|
|
|
title: '该测算数据已被保存', |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}) |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
let data=JSON.parse(JSON.stringify(this.data.measureData)) |
|
|
|
|
if(this.data.measureDataId){ |
|
|
|
|
data.measureDataId=this.data.measureDataId |
|
|
|
@ -332,6 +359,65 @@ Component({
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//重做
|
|
|
|
|
clearData(){ |
|
|
|
|
this.setData({ |
|
|
|
|
priceData:{ |
|
|
|
|
housingPrice:null, |
|
|
|
|
commercePrice:null, |
|
|
|
|
businessPrice:null, |
|
|
|
|
parkingPrice:null, |
|
|
|
|
parkingAllocation:null, |
|
|
|
|
singleIndicator:null, |
|
|
|
|
parkingSaleRate:this.data.parking_sale_rate, |
|
|
|
|
singlePrimeCost:null, |
|
|
|
|
commerceRate:(parseFloat(this.data.dataInfo.bizSpace)/parseFloat(this.data.dataInfo.totalConsArea)).toFixed(3), |
|
|
|
|
businessRate:(parseFloat(this.data.dataInfo.bizSpace)/parseFloat(this.data.dataInfo.totalConsArea)).toFixed(3), |
|
|
|
|
manageFeeRate:null, |
|
|
|
|
salesRate:null, |
|
|
|
|
financialRate:this.data.finance_rate, |
|
|
|
|
financingRate:null, |
|
|
|
|
loansRate:null, |
|
|
|
|
financingInterest:null, |
|
|
|
|
loansInterest:null, |
|
|
|
|
financingPeriod:null, |
|
|
|
|
loansPeriod:null, |
|
|
|
|
freeHousingRate:null, |
|
|
|
|
freeCommerceRate:null, |
|
|
|
|
freeBusinessRate:null, |
|
|
|
|
selfHousingRate:null, |
|
|
|
|
selfHousingPrice:null, |
|
|
|
|
selfCommerceRate:null, |
|
|
|
|
selfCommercePrice:null, |
|
|
|
|
selfBusinessRate:null, |
|
|
|
|
selfBusinessPrice:null, |
|
|
|
|
selfBusinessSale:null, |
|
|
|
|
selfCommerceSale:null, |
|
|
|
|
selfHousingSale:null, |
|
|
|
|
forecastFloorPrice:null,//预测楼面价
|
|
|
|
|
}, |
|
|
|
|
rowData: [{ |
|
|
|
|
Tprice: '起拍价', |
|
|
|
|
Lprice: this.data.dataInfo.floorPrice?parseFloat(this.data.dataInfo.floorPrice).toFixed(3):0,//transferPrice,
|
|
|
|
|
AllPrice: parseFloat(this.data.dataInfo.transferPrice).toFixed(3), |
|
|
|
|
Interest: 0, |
|
|
|
|
PremiumRate: 0 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
Tprice: '预测成交价', |
|
|
|
|
Lprice: null, |
|
|
|
|
AllPrice: parseFloat(this.data.dataInfo.transferPrice).toFixed(3), |
|
|
|
|
Interest: 0, |
|
|
|
|
PremiumRate: 0 |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
isMeasure:false, |
|
|
|
|
params:{selfHousingSale:'', |
|
|
|
|
selfCommerceSale:'', |
|
|
|
|
selfBusinessSale:'', |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|