08119aa7 by 杨威
2 parents 9a828b6d cae5820f
......@@ -80,9 +80,9 @@ export function getLpbTj (data) {
}
/**
* 楼盘表 批量实预测转换
* 楼盘表 批量不动产单元号生成
* zrzbsm 自然幢标识码 ,
* scyclx 实测预测类型 0预测,1实测
* dpdm 自然幢号 ,
*/
export function batchGeneratorBdcdyh (dpdm,zrzbsm) {
return request({
......
......@@ -8,51 +8,65 @@
:modal-append-to-body="false"
>
<div class="content">
<el-form :label-position="right">
<el-form-item label="宗地:">
<el-input
placeholder="请选择宗地" v-model="zdxx" :disabled="true"
/>
<div @click="xzzdVisible = true">选择宗地</div>
<!-- <el-button type="primary" @click="xzzdVisible = true">选择宗地</el-button>-->
</el-form-item>
<el-form-item label="自然幢:">
<el-select v-model="hcxlzData.zrzbsm" filterable placeholder="请选择" @change="zrzChange">
<el-option
v-for="item in zrzList"
:key="item.xmmc"
:label="item.label"
:value="item.bsm">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="逻辑幢:">
<el-select v-model="hcxlzData.ljzbsm" filterable placeholder="请选择" @change="ljzChange">
<el-option
v-for="item in ljzList"
:key="item.bsm"
:label="item.ljzmc"
:value="item.bsm">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="幢单元:">
<el-select v-model="hcxlzData.zdybsm" filterable placeholder="请选择">
<el-option
v-for="item in zdyList"
:key="item.bsm"
:label="item.zdymc"
:value="item.bsm">
</el-option>
</el-select>
</el-form-item>
</el-form>
<table>
<tr>
<td class="label">宗地:</td>
<td class="input">
<el-input
placeholder="请选择宗地" v-model="zdxx" :disabled="true"
></el-input>
</td>
<td>
<el-button type="primary" @click="xzzdVisible = true">选择宗地</el-button>
</td>
</tr>
<tr>
<td class="label">自然幢:</td>
<td class="input">
<el-select v-model="hcxlzData.zrzbsm" filterable placeholder="请选择" @change="zrzChange">
<el-option
v-for="item in zrzList"
:key="item.xmmc"
:label="item.label"
:value="item.bsm">
</el-option>
</el-select>
</td>
</tr>
<tr>
<td class="label">逻辑幢:</td>
<td class="input">
<el-select v-model="hcxlzData.ljzbsm" filterable placeholder="请选择" @change="ljzChange">
<el-option
v-for="item in ljzList"
:key="item.bsm"
:label="item.ljzmc"
:value="item.bsm">
</el-option>
</el-select>
</td>
</tr>
<tr>
<td class="lable">幢单元:</td>
<td class="input">
<el-select v-model="hcxlzData.zdybsm" filterable placeholder="请选择">
<el-option
v-for="item in zdyList"
:key="item.bsm"
:label="item.zdymc"
:value="item.bsm">
</el-option>
</el-select>
</td>
</tr>
</table>
</div>
<div class="footer">
<el-button type="primary" @click="save">保存</el-button>
<el-button type="primary" @click="cancel">取消</el-button>
</div>
<query-data :centerDialogVisible="xzzdVisible" @close="xzzdClose" @getData="getZdxx"></query-data>
<query-data :centerDialogVisible="xzzdVisible" @close="xzzdClose" @getData="getZdxx"
isZdClose="true"></query-data>
</el-dialog>
</div>
</template>
......@@ -125,7 +139,11 @@
},
getZrz: function (bsm) {
zdXlcd(bsm).then(res => {
this.zrzList = res.result;
if (res.success){
this.zrzList = res.result;
} else {
Message.error(res.message)
}
})
},
getZdxx: function (val) {
......@@ -195,6 +213,22 @@
text-align: center;
}
table {
border-collapse: separate;
border-spacing: 10px;
display: inline-block;
text-align: center;
.label {
width: 80px;
}
.input {
width: 300px;
.el-select {
width: 300px;
}
}
}
.footer {
margin-top: 20px;
text-align: center;
......
......@@ -130,6 +130,10 @@
default: function () {
return ['zd']
}
},
isZdClose:{
type:Boolean,
default:false
}
},
mounted() {
......@@ -168,6 +172,9 @@
},
addData: function (val) {
this.$emit("getData", val)
if (this.isZdClose) {
this.close();
}
},
close: function () {
this.$emit('close')
......