|
|
@@ -18,17 +18,22 @@
|
|
|
placeholder="请选择所属区域"> </en-select>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="sys-background-fff r-20 m-t20 p-lr30" v-if="propertyData.modelType===1">
|
|
|
+ <view class="m-t20 m-lr30 text-color-12">
|
|
|
+ <view class="sys-background-fff r-20 m-t20 p-lr30" v-if="propertyData.modelType*1===1">
|
|
|
<en-select v-model="propertyData.houseType" :local-data="houseTypeOption" label="房屋类型"
|
|
|
placeholder="请选择房屋类型"></en-select>
|
|
|
</view>
|
|
|
- <view class="sys-background-fff r-20 m-t20 p-lr30" v-if="propertyData.modelType===2">
|
|
|
+ </view>
|
|
|
+ <view class="m-t20 m-lr30 text-color-12">
|
|
|
+ <view class="sys-background-fff r-20 m-t20 p-lr30" v-if="propertyData.modelType*1===2">
|
|
|
<EnRadio v-model="propertyData.is_rent" label="是否出租" :list="statusOption"> </EnRadio>
|
|
|
<EnRadio v-model="propertyData.is_morgaged" label="是否抵押" :list="statusOption"> </EnRadio>
|
|
|
<EnRadio v-model="propertyData.is_occupied" label="是否占用" :list="statusOption"> </EnRadio>
|
|
|
<EnRadio v-model="propertyData.is_seizured" label="是否查封" :list="statusOption"> </EnRadio>
|
|
|
</view>
|
|
|
- <view class="sys-background-fff r-20 m-t20 p-lr30" v-if="propertyData.modelType===3">
|
|
|
+ </view>
|
|
|
+ <view class="m-t20 m-lr30 text-color-12">
|
|
|
+ <view class="sys-background-fff r-20 m-t20 p-lr30" v-if="propertyData.modelType*1===3">
|
|
|
<en-select v-model="propertyData.level_id" :local-data="levelOption" :label="'土地等级'"
|
|
|
placeholder="请选择土地等级"> </en-select>
|
|
|
<en-select v-model="propertyData.transfer_method" :local-data="transferMethodOption" :label="'出让方式'"
|
|
|
@@ -46,6 +51,7 @@
|
|
|
<en-input v-model="propertyData.height_mix" :label="'最小高度'" placeholder="请输入最小建筑高度"> </en-input>
|
|
|
<en-input v-model="propertyData.height_max" :label="'最大高度'" placeholder="请输入最大建筑高度"> </en-input>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<EnButton :text="'评估'" @onSubmit="onSubmit"></EnButton>
|
|
|
<uni-popup ref="consentObj">
|
|
|
@@ -60,9 +66,10 @@
|
|
|
import EnSelect from "@/components/en-from/en-select/en-select.vue";
|
|
|
import EnRadio from "@/components/en-from/en-radio/en-radio.vue";
|
|
|
import EnInput from "@/components/en-from/en-input/en-input.vue";
|
|
|
- import {
|
|
|
- predictProperty
|
|
|
- } from "@/api/valuation.js"
|
|
|
+ import {
|
|
|
+ getValuationOption,
|
|
|
+ predictProperty
|
|
|
+ } from "@/api/valuation.js"
|
|
|
export default {
|
|
|
components: {
|
|
|
EnInput,
|
|
|
@@ -168,7 +175,13 @@
|
|
|
},
|
|
|
onLoad(options) {},
|
|
|
onShow() {},
|
|
|
- watch: {},
|
|
|
+ watch: {
|
|
|
+ 'propertyData.modelType':function(){
|
|
|
+ if(this.propertyData.modelType>0){
|
|
|
+ this.getValuationOption()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
async inputBut() {
|
|
|
@@ -177,6 +190,7 @@
|
|
|
// 选择位置
|
|
|
uni.chooseLocation({
|
|
|
success: function(res) {
|
|
|
+ console.log(res)
|
|
|
// 更新数据
|
|
|
that.propertyData.lng = res.longitude;
|
|
|
that.propertyData.lat = res.latitude;
|
|
|
@@ -307,21 +321,21 @@
|
|
|
if (this.propertyData.houseType === "") {
|
|
|
this.propertyData.houseType = 0
|
|
|
}
|
|
|
- getValuationOption({
|
|
|
- "modelType": this.propertyData.modelType
|
|
|
- }).then(res => {
|
|
|
- if (res.code === 0) {
|
|
|
- if (this.propertyData.modelType === 1) {
|
|
|
- this.houseTypeOption = res.data.houseTypeOption
|
|
|
- } else if (this.propertyData.modelType === 3) {
|
|
|
- this.levelOption = res.data.levelOption
|
|
|
- this.transferMethodOption = res.data.transferMethodOption
|
|
|
- this.landUseOption = res.data.landUseOption
|
|
|
- this.landSourceOption = res.data.landSourceOption
|
|
|
- this.propertyData.land_source = this.landSourceOption[0].id
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ getValuationOption({
|
|
|
+ "modelType": this.propertyData.modelType*1
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ if (this.propertyData.modelType*1 === 1) {
|
|
|
+ this.houseTypeOption = res.data.houseTypeOption
|
|
|
+ } else if (this.propertyData.modelType*1 === 3) {
|
|
|
+ this.levelOption = res.data.levelOption
|
|
|
+ this.transferMethodOption = res.data.transferMethodOption
|
|
|
+ this.landUseOption = res.data.landUseOption
|
|
|
+ this.landSourceOption = res.data.landSourceOption
|
|
|
+ this.propertyData.land_source = this.landSourceOption[0].id
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
onSubmit() {
|
|
|
console.log('提交评估数据', this.propertyData)
|
|
|
@@ -440,4 +454,4 @@
|
|
|
margin: 0 75rpx;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|