|
@@ -189,245 +189,248 @@
|
|
custom-class="tagdialog"
|
|
custom-class="tagdialog"
|
|
@open="dlgOpen"
|
|
@open="dlgOpen"
|
|
>
|
|
>
|
|
- <el-form ref="houseForm" :model="houseForm" style="width: 100%;padding: 5px" :rules="commitRules">
|
|
|
|
- <el-row>
|
|
|
|
- <el-col style="padding-bottom: 10px">
|
|
|
|
- <!-- <span class="card_title">基本信息</span>-->
|
|
|
|
- <el-card shadow="always" style="padding-top: 10px">
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>*父级</span></el-col>
|
|
|
|
- <el-col :span="22" class="col-input">
|
|
|
|
- <el-form-item prop="findids">
|
|
|
|
- <el-cascader
|
|
|
|
- v-model="houseForm.findids"
|
|
|
|
- :append-to-body="false"
|
|
|
|
- :disabled="isView"
|
|
|
|
- style="width: 100%;"
|
|
|
|
- :options="options"
|
|
|
|
- @change="buildChange"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>*户室号</span></el-col>
|
|
|
|
- <el-col :span="10" class="col-input">
|
|
|
|
- <el-form-item prop="roomNo">
|
|
|
|
- <el-input v-model="houseForm.roomNo" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>*所在层</span></el-col>
|
|
|
|
- <el-col :span="10" class="col-input">
|
|
|
|
- <el-form-item prop="floor">
|
|
|
|
- <el-input v-model="houseForm.floor" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="3" class="col-txt"><span>*预测套内面积(㎡)</span></el-col>
|
|
|
|
- <el-col :span="9" class="col-input">
|
|
|
|
- <el-form-item prop="roomNo">
|
|
|
|
- <el-input v-model="houseForm.predictionInternalArea" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ <div v-loading="loadingFlag">
|
|
|
|
+ <el-form ref="houseForm" :model="houseForm" style="width: 100%;padding: 5px" :rules="commitRules">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col style="padding-bottom: 10px">
|
|
|
|
+ <!-- <span class="card_title">基本信息</span>-->
|
|
|
|
+ <el-card shadow="always" style="padding-top: 10px">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>*父级</span></el-col>
|
|
|
|
+ <el-col :span="22" class="col-input">
|
|
|
|
+ <el-form-item prop="findids">
|
|
|
|
+ <el-cascader
|
|
|
|
+ v-model="houseForm.findids"
|
|
|
|
+ :append-to-body="false"
|
|
|
|
+ :disabled="isView"
|
|
|
|
+ style="width: 100%;"
|
|
|
|
+ :options="options"
|
|
|
|
+ @change="buildChange"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>*户室号</span></el-col>
|
|
|
|
+ <el-col :span="10" class="col-input">
|
|
|
|
+ <el-form-item prop="roomNo">
|
|
|
|
+ <el-input v-model="houseForm.roomNo" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>*所在层</span></el-col>
|
|
|
|
+ <el-col :span="10" class="col-input">
|
|
|
|
+ <el-form-item prop="floor">
|
|
|
|
+ <el-input v-model="houseForm.floor" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="3" class="col-txt"><span>*预测套内面积(㎡)</span></el-col>
|
|
|
|
+ <el-col :span="9" class="col-input">
|
|
|
|
+ <el-form-item prop="roomNo">
|
|
|
|
+ <el-input v-model="houseForm.predictionInternalArea" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :span="3" class="col-txt"><span>*预测分摊面积(㎡)</span></el-col>
|
|
|
|
- <el-col :span="9" class="col-input">
|
|
|
|
- <el-form-item prop="roomNo">
|
|
|
|
- <el-input v-model="houseForm.predictionShareArea" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="3" class="col-txt"><span>*预测建筑面积(㎡)</span></el-col>
|
|
|
|
- <el-col :span="9" class="col-input">
|
|
|
|
- <el-form-item prop="roomNo">
|
|
|
|
- <el-input v-model="houseForm.predictionBuildArea" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="3" class="col-txt"><span>*预测土地面积(㎡)</span></el-col>
|
|
|
|
- <el-col :span="9" class="col-input">
|
|
|
|
- <el-form-item prop="roomNo">
|
|
|
|
- <el-input v-model="houseForm.predictionLandArea" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="3" class="col-txt"><span>*实测套内面积(㎡)</span></el-col>
|
|
|
|
- <el-col :span="9" class="col-input">
|
|
|
|
- <el-form-item prop="actualInternalArea">
|
|
|
|
- <el-input v-model="houseForm.actualInternalArea" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="3" class="col-txt"><span>*实测分摊面积(㎡)</span></el-col>
|
|
|
|
- <el-col :span="9" class="col-input">
|
|
|
|
- <el-form-item prop="actualShareArea">
|
|
|
|
- <el-input v-model="houseForm.actualShareArea" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="3" class="col-txt"><span>*实测建筑面积(㎡)</span></el-col>
|
|
|
|
- <el-col :span="9" class="col-input">
|
|
|
|
- <el-form-item prop="actualBuildArea">
|
|
|
|
- <el-input v-model="houseForm.actualBuildArea" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="3" class="col-txt"><span>*实测土地面积(㎡)</span></el-col>
|
|
|
|
- <el-col :span="9" class="col-input">
|
|
|
|
- <el-form-item prop="actualLandArea">
|
|
|
|
- <el-input v-model="houseForm.actualLandArea" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>*用途:</span></el-col>
|
|
|
|
- <el-col :span="10" class="col-input">
|
|
|
|
- <el-form-item prop="roomUse">
|
|
|
|
- <el-select
|
|
|
|
- v-model="houseForm.roomUse"
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- popper-class="statistic_base"
|
|
|
|
- placeholder=""
|
|
|
|
- filterable
|
|
|
|
- :disabled="isView"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in dc_data.HOUSE_USAGE"
|
|
|
|
- :key="item.value"
|
|
|
|
- popper-class="statistic_base"
|
|
|
|
|
|
+ <el-col :span="3" class="col-txt"><span>*预测分摊面积(㎡)</span></el-col>
|
|
|
|
+ <el-col :span="9" class="col-input">
|
|
|
|
+ <el-form-item prop="roomNo">
|
|
|
|
+ <el-input v-model="houseForm.predictionShareArea" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="3" class="col-txt"><span>*预测建筑面积(㎡)</span></el-col>
|
|
|
|
+ <el-col :span="9" class="col-input">
|
|
|
|
+ <el-form-item prop="roomNo">
|
|
|
|
+ <el-input v-model="houseForm.predictionBuildArea" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="3" class="col-txt"><span>*预测土地面积(㎡)</span></el-col>
|
|
|
|
+ <el-col :span="9" class="col-input">
|
|
|
|
+ <el-form-item prop="roomNo">
|
|
|
|
+ <el-input v-model="houseForm.predictionLandArea" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="3" class="col-txt"><span>*实测套内面积(㎡)</span></el-col>
|
|
|
|
+ <el-col :span="9" class="col-input">
|
|
|
|
+ <el-form-item prop="actualInternalArea">
|
|
|
|
+ <el-input v-model="houseForm.actualInternalArea" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="3" class="col-txt"><span>*实测分摊面积(㎡)</span></el-col>
|
|
|
|
+ <el-col :span="9" class="col-input">
|
|
|
|
+ <el-form-item prop="actualShareArea">
|
|
|
|
+ <el-input v-model="houseForm.actualShareArea" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="3" class="col-txt"><span>*实测建筑面积(㎡)</span></el-col>
|
|
|
|
+ <el-col :span="9" class="col-input">
|
|
|
|
+ <el-form-item prop="actualBuildArea">
|
|
|
|
+ <el-input v-model="houseForm.actualBuildArea" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="3" class="col-txt"><span>*实测土地面积(㎡)</span></el-col>
|
|
|
|
+ <el-col :span="9" class="col-input">
|
|
|
|
+ <el-form-item prop="actualLandArea">
|
|
|
|
+ <el-input v-model="houseForm.actualLandArea" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>*用途:</span></el-col>
|
|
|
|
+ <el-col :span="10" class="col-input">
|
|
|
|
+ <el-form-item prop="roomUse">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="houseForm.roomUse"
|
|
:popper-append-to-body="false"
|
|
:popper-append-to-body="false"
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>*户编号</span></el-col>
|
|
|
|
- <el-col :span="10" class="col-input">
|
|
|
|
- <el-form-item prop="roomNumber">
|
|
|
|
- <el-input v-model="houseForm.roomNumber" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>装修情况:</span></el-col>
|
|
|
|
- <el-col :span="10" class="col-input">
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-select
|
|
|
|
- v-model="houseForm.decorationSituation"
|
|
|
|
- placeholder=""
|
|
|
|
- filterable
|
|
|
|
- :disabled="isView"
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- popper-class="statistic_base"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in dc_data.DECORATION_SITUATION"
|
|
|
|
- :key="item.value"
|
|
|
|
|
|
+ popper-class="statistic_base"
|
|
|
|
+ placeholder=""
|
|
|
|
+ filterable
|
|
|
|
+ :disabled="isView"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in dc_data.HOUSE_USAGE"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ popper-class="statistic_base"
|
|
|
|
+ :popper-append-to-body="false"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>*户编号</span></el-col>
|
|
|
|
+ <el-col :span="10" class="col-input">
|
|
|
|
+ <el-form-item prop="roomNumber">
|
|
|
|
+ <el-input v-model="houseForm.roomNumber" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>装修情况:</span></el-col>
|
|
|
|
+ <el-col :span="10" class="col-input">
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="houseForm.decorationSituation"
|
|
|
|
+ placeholder=""
|
|
|
|
+ filterable
|
|
|
|
+ :disabled="isView"
|
|
:popper-append-to-body="false"
|
|
:popper-append-to-body="false"
|
|
popper-class="statistic_base"
|
|
popper-class="statistic_base"
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>2.2M以</span></el-col>
|
|
|
|
- <el-col :span="10" class="col-input">
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-input v-model="houseForm.twoPointTwo" :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>户型</span></el-col>
|
|
|
|
- <el-col :span="10" class="col-input">
|
|
|
|
- <el-form-item :disabled="isView">
|
|
|
|
- <el-select
|
|
|
|
- v-model="houseForm.houseTypeId"
|
|
|
|
- placeholder=""
|
|
|
|
- filterable
|
|
|
|
- :disabled="isView"
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- popper-class="statistic_base"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in houseTypeOption"
|
|
|
|
- :key="item.value"
|
|
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in dc_data.DECORATION_SITUATION"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :popper-append-to-body="false"
|
|
|
|
+ popper-class="statistic_base"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>2.2M以</span></el-col>
|
|
|
|
+ <el-col :span="10" class="col-input">
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-input v-model="houseForm.twoPointTwo" :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>户型</span></el-col>
|
|
|
|
+ <el-col :span="10" class="col-input">
|
|
|
|
+ <el-form-item :disabled="isView">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="houseForm.houseTypeId"
|
|
|
|
+ placeholder=""
|
|
|
|
+ filterable
|
|
|
|
+ :disabled="isView"
|
|
:popper-append-to-body="false"
|
|
:popper-append-to-body="false"
|
|
popper-class="statistic_base"
|
|
popper-class="statistic_base"
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>户型图:</span></el-col>
|
|
|
|
- <el-col :span="20" class="col-input">
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-upload
|
|
|
|
- ref="upload"
|
|
|
|
- action
|
|
|
|
- accept="image/png,image/gif,image/jpg,image/jpeg"
|
|
|
|
- list-type="picture-card"
|
|
|
|
- :file-list="fileList"
|
|
|
|
- :limit="9"
|
|
|
|
- :http-request="uploadHouseTypePicture"
|
|
|
|
- :on-preview="handlePictureCardPreview"
|
|
|
|
- :on-remove="handleRemove"
|
|
|
|
- :on-exceed="handleExceed"
|
|
|
|
- :disabled="isView"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-plus" />
|
|
|
|
- <div slot="tip" class="el-upload__tip">
|
|
|
|
- 只能上传jpg/png文件,限制上传9张
|
|
|
|
- </div>
|
|
|
|
- </el-upload>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>备注:</span></el-col>
|
|
|
|
- <el-col :span="22" class="col-input">
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-input v-model="houseForm.remark" type="textarea" maxlength="2000" show-word-limit :disabled="isView" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="2" class="col-txt"><span>可售状态:</span></el-col>
|
|
|
|
- <el-col :span="22" class="col-input">
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-select
|
|
|
|
- v-model="houseForm.saleStatus"
|
|
|
|
- placeholder="请选择"
|
|
|
|
- size="small"
|
|
|
|
- :disabled="isView"
|
|
|
|
- :popper-append-to-body="false"
|
|
|
|
- popper-class="statistic_base"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in dc_data.SALE_STATUS"
|
|
|
|
- :key="item.value"
|
|
|
|
|
|
+ @change="houseTypeChange"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in houseTypeOption"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :popper-append-to-body="false"
|
|
|
|
+ popper-class="statistic_base"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>户型图:</span></el-col>
|
|
|
|
+ <el-col :span="20" class="col-input">
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-upload
|
|
|
|
+ ref="upload"
|
|
|
|
+ action
|
|
|
|
+ accept="image/png,image/gif,image/jpg,image/jpeg"
|
|
|
|
+ list-type="picture-card"
|
|
|
|
+ :file-list="fileList"
|
|
|
|
+ :limit="9"
|
|
|
|
+ :http-request="uploadHouseTypePicture"
|
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
|
+ :on-remove="handleRemove"
|
|
|
|
+ :on-exceed="handleExceed"
|
|
|
|
+ disabled
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-plus" />
|
|
|
|
+ <div slot="tip" class="el-upload__tip">
|
|
|
|
+ 只能上传jpg/png文件,限制上传9张
|
|
|
|
+ </div>
|
|
|
|
+ </el-upload>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>备注:</span></el-col>
|
|
|
|
+ <el-col :span="22" class="col-input">
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-input v-model="houseForm.remark" type="textarea" maxlength="2000" show-word-limit :disabled="isView" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="2" class="col-txt"><span>可售状态:</span></el-col>
|
|
|
|
+ <el-col :span="22" class="col-input">
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="houseForm.saleStatus"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ size="small"
|
|
|
|
+ :disabled="isView"
|
|
:popper-append-to-body="false"
|
|
:popper-append-to-body="false"
|
|
popper-class="statistic_base"
|
|
popper-class="statistic_base"
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </el-card>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </el-form>
|
|
|
|
- <div slot="footer">
|
|
|
|
- <el-button @click="dialogChose">取 消</el-button>
|
|
|
|
- <el-button type="primary" @click="confirmSubmit()">确 定</el-button>
|
|
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in dc_data.SALE_STATUS"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :popper-append-to-body="false"
|
|
|
|
+ popper-class="statistic_base"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-card>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer">
|
|
|
|
+ <el-button @click="dialogChose">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="confirmSubmit()">确 定</el-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
@@ -457,9 +460,9 @@
|
|
import Base from '@/views/base/base'
|
|
import Base from '@/views/base/base'
|
|
import BaseData from '@/views/base/baseData'
|
|
import BaseData from '@/views/base/baseData'
|
|
import BaseDept from '@/views/base/baseDept'
|
|
import BaseDept from '@/views/base/baseDept'
|
|
-import Constant from '@/static/utils/constant'
|
|
|
|
import { upload } from '@/static/utils/channel'
|
|
import { upload } from '@/static/utils/channel'
|
|
import uploadCost from '@/views/parkAssets/component/uploadCost.vue'
|
|
import uploadCost from '@/views/parkAssets/component/uploadCost.vue'
|
|
|
|
+import constant from '@/static/utils/constant'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'User',
|
|
name: 'User',
|
|
@@ -514,7 +517,8 @@ export default {
|
|
importVisible: false,
|
|
importVisible: false,
|
|
importType: '',
|
|
importType: '',
|
|
importTitle: '',
|
|
importTitle: '',
|
|
- uploadTitle: []
|
|
|
|
|
|
+ uploadTitle: [],
|
|
|
|
+ loadingFlag: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -627,8 +631,10 @@ export default {
|
|
this.isView = false
|
|
this.isView = false
|
|
this.urlStr = 'edit'
|
|
this.urlStr = 'edit'
|
|
this.houseForm = val
|
|
this.houseForm = val
|
|
|
|
+ this.fileList = []
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
this.dialogTitle = '编辑房间'
|
|
this.dialogTitle = '编辑房间'
|
|
|
|
+ this.loadingFlag = true
|
|
},
|
|
},
|
|
handleView: function(val) {
|
|
handleView: function(val) {
|
|
this.isView = true
|
|
this.isView = true
|
|
@@ -659,9 +665,18 @@ export default {
|
|
this.houseForm.discId = ids[1]
|
|
this.houseForm.discId = ids[1]
|
|
this.houseForm.buildId = ids[2]
|
|
this.houseForm.buildId = ids[2]
|
|
}
|
|
}
|
|
- const extraData = {}
|
|
|
|
|
|
+ // let houseTypePicture = ''
|
|
|
|
+ // this.fileList.forEach(v => {
|
|
|
|
+ // if (houseTypePicture) {
|
|
|
|
+ // houseTypePicture = houseTypePicture + ',' + v.id
|
|
|
|
+ // } else {
|
|
|
|
+ // houseTypePicture = v.id
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ const extraData = {
|
|
|
|
+ // houseTypePicture: houseTypePicture
|
|
|
|
+ }
|
|
const postData = Object.assign({}, this.houseForm, extraData)
|
|
const postData = Object.assign({}, this.houseForm, extraData)
|
|
-
|
|
|
|
this.baseRequest(this.urlStr, postData).then((res) => {
|
|
this.baseRequest(this.urlStr, postData).then((res) => {
|
|
this.houseForm = {}
|
|
this.houseForm = {}
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
@@ -723,8 +738,36 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
// 回显户型
|
|
// 回显户型
|
|
- _this.getHouseTypeList({ discId: _this.houseForm.discId })
|
|
|
|
-
|
|
|
|
|
|
+ _this.houseTypeOption = []
|
|
|
|
+ _this.baseHouseTypeRequest('listAll', { discId: _this.houseForm.discId }).then(res => {
|
|
|
|
+ if (res.data) {
|
|
|
|
+ res.data.forEach(item => {
|
|
|
|
+ _this.houseTypeOption.push({
|
|
|
|
+ label: item.name + ',建筑面积' + item.buildArea + ',使用面积' + item.useArea,
|
|
|
|
+ value: item.id,
|
|
|
|
+ files: item.fileList
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ // 回显户型图片
|
|
|
|
+ const obj = _this.houseTypeOption.find(item =>
|
|
|
|
+ item.value === _this.houseForm.houseTypeId
|
|
|
|
+ )
|
|
|
|
+ if (obj !== undefined) {
|
|
|
|
+ this.fileList = []
|
|
|
|
+ const files = JSON.parse(obj.files)
|
|
|
|
+ files.forEach(v => {
|
|
|
|
+ if (v) {
|
|
|
|
+ this.fileList.push({
|
|
|
|
+ url: constant.BASE_URI + '/FileController/download/' + v.data,
|
|
|
|
+ id: v.data
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ _this.houseForm.houseTypeId = ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
// 填充父级
|
|
// 填充父级
|
|
this.houseForm.findids = []
|
|
this.houseForm.findids = []
|
|
if (undefined != this.houseForm.groupId && this.houseForm.groupId != null &&
|
|
if (undefined != this.houseForm.groupId && this.houseForm.groupId != null &&
|
|
@@ -739,21 +782,12 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // if (res.data.planPicture) {
|
|
|
|
- // res.data.planPicture.split(',').forEach(v => {
|
|
|
|
- // if (v) {
|
|
|
|
- // this.fileList.push({
|
|
|
|
- // url:
|
|
|
|
- // Constant.BASE_URI + '/FileController/download/' + v,
|
|
|
|
- // id: v
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
}
|
|
}
|
|
|
|
+ _this.loadingFlag = false
|
|
})
|
|
})
|
|
.catch(() => {})
|
|
.catch(() => {})
|
|
}
|
|
}
|
|
|
|
+
|
|
},
|
|
},
|
|
// 上传相关,包括图片、文件
|
|
// 上传相关,包括图片、文件
|
|
handlePictureCardPreview: function(file) {
|
|
handlePictureCardPreview: function(file) {
|
|
@@ -764,7 +798,6 @@ export default {
|
|
this.dialogImageVisible = true
|
|
this.dialogImageVisible = true
|
|
},
|
|
},
|
|
uploadHouseTypePicture: function(param) {
|
|
uploadHouseTypePicture: function(param) {
|
|
- console.log('param', param)
|
|
|
|
upload(param, true).then((res) => {
|
|
upload(param, true).then((res) => {
|
|
this.fileList.push(res)
|
|
this.fileList.push(res)
|
|
})
|
|
})
|
|
@@ -782,8 +815,9 @@ export default {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
res.data.forEach(item => {
|
|
res.data.forEach(item => {
|
|
_this.houseTypeOption.push({
|
|
_this.houseTypeOption.push({
|
|
- label: item.name,
|
|
|
|
- value: item.id
|
|
|
|
|
|
+ label: item.name + ',建筑面积' + item.buildArea + ',使用面积' + item.useArea,
|
|
|
|
+ value: item.id,
|
|
|
|
+ files: item.fileList
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -829,6 +863,31 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ houseTypeChange(val) {
|
|
|
|
+ const obj = this.houseTypeOption.find(item =>
|
|
|
|
+ item.value === val
|
|
|
|
+ )
|
|
|
|
+ if (obj !== undefined) {
|
|
|
|
+ this.fileList = []
|
|
|
|
+ const files = JSON.parse(obj.files)
|
|
|
|
+ files.forEach(v => {
|
|
|
|
+ if (v) {
|
|
|
|
+ this.fileList.push({
|
|
|
|
+ url: constant.BASE_URI + '/FileController/download/' + v.data,
|
|
|
|
+ id: v.data
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ handleExceed: function() {
|
|
|
|
+ this.$message.info('超过文件个数限制')
|
|
|
|
+ },
|
|
|
|
+ handleRemove: function(item) {
|
|
|
|
+ const id = item.id
|
|
|
|
+ const idx = this.fileList.findIndex(item => item.id === id)
|
|
|
|
+ this.fileList.splice(idx, 1)
|
|
|
|
+ },
|
|
// 请求封装,继承类中调用,必须存在
|
|
// 请求封装,继承类中调用,必须存在
|
|
baseRequest: function(opUrl, postData) {
|
|
baseRequest: function(opUrl, postData) {
|
|
return this.$channel.baseRequest('ParkRoomController', opUrl, postData, 'User')
|
|
return this.$channel.baseRequest('ParkRoomController', opUrl, postData, 'User')
|