Merge remote-tracking branch 'origin/master'
Showing
2 changed files
with
324 additions
and
0 deletions
| ... | @@ -83,6 +83,12 @@ const constantRoutes = [ | ... | @@ -83,6 +83,12 @@ const constantRoutes = [ |
| 83 | code: "1-5", | 83 | code: "1-5", |
| 84 | component: () => import("@/views/systemZD/index"), | 84 | component: () => import("@/views/systemZD/index"), |
| 85 | }, | 85 | }, |
| 86 | { | ||
| 87 | path: "/ljz", | ||
| 88 | name: "宗地", | ||
| 89 | code: "1-5", | ||
| 90 | component: () => import("@/views/basic/ljz/index"), | ||
| 91 | }, | ||
| 86 | ], | 92 | ], |
| 87 | }, | 93 | }, |
| 88 | ]; | 94 | ]; | ... | ... |
src/views/basic/ljz/index.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div class="main"> | ||
| 3 | <div class="formMenu"> | ||
| 4 | <el-form ref="form" :model="form" label-width="160px"> | ||
| 5 | <table class="zdjbxxTable" cellspacing="0" cellpadding="0" border="1"> | ||
| 6 | <tr> | ||
| 7 | <th colspan="12">逻辑幢基本信息</th> | ||
| 8 | </tr> | ||
| 9 | <tr> | ||
| 10 | <td colspan="2">逻辑幢号</td> | ||
| 11 | <td colspan="4"> | ||
| 12 | <input type="text" class="formInput" /> | ||
| 13 | </td> | ||
| 14 | <td colspan="2">自然幢号</td> | ||
| 15 | <td colspan="4"> | ||
| 16 | <input type="text" class="formInput" /> | ||
| 17 | </td> | ||
| 18 | </tr> | ||
| 19 | <tr> | ||
| 20 | <td colspan="2">逻辑幢顺序号</td> | ||
| 21 | <td colspan="4"> | ||
| 22 | <input type="text" class="formInput" /> | ||
| 23 | </td> | ||
| 24 | <td colspan="2">不动产单元号</td> | ||
| 25 | <td colspan="4" class="psr"> | ||
| 26 | <input type="text" class="formInput percent78" /> | ||
| 27 | <el-button type="primary" class="createBtn">生成</el-button> | ||
| 28 | </td> | ||
| 29 | </tr> | ||
| 30 | <tr> | ||
| 31 | <td colspan="2">门牌号</td> | ||
| 32 | <td colspan="4"> | ||
| 33 | <input type="text" class="formInput" /> | ||
| 34 | </td> | ||
| 35 | <td colspan="2" align="center">竣工日期</td> | ||
| 36 | <td colspan="4" > | ||
| 37 | <!-- <el-date-picker--> | ||
| 38 | <!-- v-model="jgrq"--> | ||
| 39 | <!-- type="date"--> | ||
| 40 | <!-- placeholder="选择日期"--> | ||
| 41 | <!-- >--> | ||
| 42 | <!-- </el-date-picker>--> | ||
| 43 | </td> | ||
| 44 | </tr> | ||
| 45 | <tr> | ||
| 46 | <td colspan="2">预测建筑面积(㎡)</td> | ||
| 47 | <td colspan="4"> | ||
| 48 | <input type="text" class="formInput" /> | ||
| 49 | </td> | ||
| 50 | <td colspan="2">实测建筑面积(㎡)</td> | ||
| 51 | <td colspan="4" class="psr"> | ||
| 52 | <input type="text" class="formInput" /> | ||
| 53 | |||
| 54 | </td> | ||
| 55 | </tr> | ||
| 56 | <tr> | ||
| 57 | <td colspan="2">预测地下面积(㎡)</td> | ||
| 58 | <td colspan="4"> | ||
| 59 | <input type="text" class="formInput" /> | ||
| 60 | </td> | ||
| 61 | <td colspan="2">实测地下面积(㎡)</td> | ||
| 62 | <td colspan="4" class="psr"> | ||
| 63 | <input type="text" class="formInput " /> | ||
| 64 | </td> | ||
| 65 | </tr> | ||
| 66 | <tr> | ||
| 67 | <td colspan="2">预测其他面积(㎡)</td> | ||
| 68 | <td colspan="4"> | ||
| 69 | <input type="text" class="formInput" /> | ||
| 70 | </td> | ||
| 71 | <td colspan="2">实测其他面积(㎡)</td> | ||
| 72 | <td colspan="4" class="psr"> | ||
| 73 | <input type="text" class="formInput" /> | ||
| 74 | </td> | ||
| 75 | </tr> | ||
| 76 | |||
| 77 | <tr height="30" v-for="(item1,index) in form.ytList" :key="index"> | ||
| 78 | <td v-if="index===0" colspan="2" :rowspan="ytTitleRowspan" align="center" id="ytTitle"> | ||
| 79 | <el-button type="primary" size="mini" style="margin-right: 10px" @click="addYtInfo">添加</el-button> | ||
| 80 | <span>用途</span> | ||
| 81 | </td> | ||
| 82 | |||
| 83 | <td width="30" colspan="2" align="center" > | ||
| 84 | <el-button type="info" size="mini" style="" @click="deleteYtInfo(index)" circle>删除</el-button> | ||
| 85 | 规划用途 | ||
| 86 | </td> | ||
| 87 | <td width="30" colspan="4" align="center" > | ||
| 88 | <el-select v-model="item1.fwytzdbsm" placeholder="请选择" > | ||
| 89 | <el-option | ||
| 90 | v-for="item in options" | ||
| 91 | :key="item.value" | ||
| 92 | :label="item.label" | ||
| 93 | :value="item.value"> | ||
| 94 | </el-option> | ||
| 95 | </el-select> | ||
| 96 | </td> | ||
| 97 | <td width="30" colspan="2" align="center" >用途</td> | ||
| 98 | <td width="30" colspan="4" align="center" > | ||
| 99 | <el-select v-model="item1.fwsjytbsm" placeholder="请选择" > | ||
| 100 | <el-option | ||
| 101 | v-for="item in options" | ||
| 102 | :key="item.value" | ||
| 103 | :label="item.label" | ||
| 104 | :value="item.value"> | ||
| 105 | </el-option> | ||
| 106 | </el-select> | ||
| 107 | </td> | ||
| 108 | </tr> | ||
| 109 | |||
| 110 | <tr height="30" v-for="(item1,index) in form.fwjgList" :key="'jg'+index"> | ||
| 111 | <td colspan="2" v-if="index===0" :rowspan="fwjgTitleRowspan" align="center" > | ||
| 112 | <el-button type="primary" size="mini" style="margin-right: 10px" @click="addFwjgInfo">添加</el-button> | ||
| 113 | <span>房屋结构</span> | ||
| 114 | </td> | ||
| 115 | <td colspan="2" align="center" > | ||
| 116 | <span @click="deleteFwjgInfo(index)">删除</span> | ||
| 117 | </td> | ||
| 118 | <td colspan="9" > | ||
| 119 | <el-select v-model="item1.fwjgzdbsm" placeholder="请选择" > | ||
| 120 | <el-option | ||
| 121 | v-for="item in options" | ||
| 122 | :key="item.value" | ||
| 123 | :label="item.label" | ||
| 124 | :value="item.value"> | ||
| 125 | </el-option> | ||
| 126 | </el-select> | ||
| 127 | </td> | ||
| 128 | </tr> | ||
| 129 | |||
| 130 | <tr> | ||
| 131 | <td colspan="2">地下层数</td> | ||
| 132 | <td colspan="4"> | ||
| 133 | <input type="text" class="formInput" /> | ||
| 134 | </td> | ||
| 135 | <td colspan="2">地上层数</td> | ||
| 136 | <td colspan="4" class="psr"> | ||
| 137 | <input type="text" class="formInput" /> | ||
| 138 | </td> | ||
| 139 | </tr> | ||
| 140 | <tr> | ||
| 141 | <td colspan="2">总层数</td> | ||
| 142 | <td colspan="4"> | ||
| 143 | <input type="text" class="formInput" /> | ||
| 144 | </td> | ||
| 145 | <td colspan="2">建筑物状态</td> | ||
| 146 | <td colspan="4" class="psr"> | ||
| 147 | <input type="text" class="formInput" /> | ||
| 148 | </td> | ||
| 149 | </tr> | ||
| 150 | <tr> | ||
| 151 | <td colspan="2">备注</td> | ||
| 152 | <td colspan="10"> | ||
| 153 | <input type="text" class="formInput" /> | ||
| 154 | </td> | ||
| 155 | </tr> | ||
| 156 | <tr> | ||
| 157 | <th colspan="12" class="save"> | ||
| 158 | <el-button type="primary" >保存</el-button> | ||
| 159 | </th> | ||
| 160 | </tr> | ||
| 161 | </table> | ||
| 162 | </el-form> | ||
| 163 | </div> | ||
| 164 | </div> | ||
| 165 | </template> | ||
| 166 | |||
| 167 | <script> | ||
| 168 | export default { | ||
| 169 | name:"", | ||
| 170 | components:{}, | ||
| 171 | props:{}, | ||
| 172 | data(){ | ||
| 173 | return { | ||
| 174 | jgrq:'', | ||
| 175 | form: { | ||
| 176 | ytList: [{ | ||
| 177 | glbsm: '', //关联标识码 | ||
| 178 | fwytzdbsm: '', //房屋用途字典标识码 | ||
| 179 | sx: '', //顺序 | ||
| 180 | fwsjytbsm: '', //房屋实际用途字典标识码 | ||
| 181 | }], | ||
| 182 | fwjgList: [{ | ||
| 183 | fwjgzdbsm: '', //房屋结构字典标识码 | ||
| 184 | glbsm: '', //关联标识码 | ||
| 185 | sx: '', //顺序 | ||
| 186 | }], | ||
| 187 | }, | ||
| 188 | options: [{ | ||
| 189 | value: '选项1', | ||
| 190 | label: '黄金糕' | ||
| 191 | }, { | ||
| 192 | value: '选项2', | ||
| 193 | label: '双皮奶' | ||
| 194 | }, { | ||
| 195 | value: '选项3', | ||
| 196 | label: '蚵仔煎' | ||
| 197 | }, { | ||
| 198 | value: '选项4', | ||
| 199 | label: '龙须面' | ||
| 200 | }, { | ||
| 201 | value: '选项5', | ||
| 202 | label: '北京烤鸭' | ||
| 203 | }], | ||
| 204 | value: '', | ||
| 205 | ytTitleRowspan:1, //用途的单元格垂直合并数量 | ||
| 206 | fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量 | ||
| 207 | } | ||
| 208 | }, | ||
| 209 | created(){}, | ||
| 210 | mounted(){}, | ||
| 211 | methods:{ | ||
| 212 | addYtInfo(){ | ||
| 213 | this.form.ytList.push({ | ||
| 214 | glbsm:'', | ||
| 215 | fwytzdbsm:'', | ||
| 216 | fwsjytbsm:'', | ||
| 217 | sx:'', | ||
| 218 | }); | ||
| 219 | this.ytTitleRowspan=this.form.ytList.length; | ||
| 220 | }, | ||
| 221 | deleteYtInfo(index){ | ||
| 222 | if(this.form.ytList.length<=1){ | ||
| 223 | this.$message({ | ||
| 224 | message: '不能删除,最少含有一条用途信息', | ||
| 225 | type: 'warning' | ||
| 226 | }); | ||
| 227 | }else{ | ||
| 228 | this.form.ytList.splice(index,1); | ||
| 229 | this.ytTitleRowspan=this.form.ytList.length; | ||
| 230 | } | ||
| 231 | }, | ||
| 232 | addFwjgInfo(){ | ||
| 233 | this.form.fwjgList.push({ | ||
| 234 | fwjgzdbsm:'', //房屋结构字典标识码 | ||
| 235 | glbsm:'', //关联标识码 | ||
| 236 | sx:'', //顺序 | ||
| 237 | }); | ||
| 238 | this.fwjgTitleRowspan=this.form.fwjgList.length; | ||
| 239 | }, | ||
| 240 | deleteFwjgInfo(index){ | ||
| 241 | if(this.form.fwjgList.length<=1){ | ||
| 242 | this.$message({ | ||
| 243 | message: '不能删除,最少含有一条房屋结构信息', | ||
| 244 | type: 'warning' | ||
| 245 | }); | ||
| 246 | }else{ | ||
| 247 | this.form.fwjgList.splice(index,1); | ||
| 248 | this.fwjgTitleRowspan=this.form.fwjgList.length; | ||
| 249 | } | ||
| 250 | }, | ||
| 251 | }, | ||
| 252 | computed: {}, | ||
| 253 | watch: {}, | ||
| 254 | } | ||
| 255 | </script> | ||
| 256 | |||
| 257 | <style lang="less" scoped> | ||
| 258 | .main { | ||
| 259 | box-sizing: border-box; | ||
| 260 | padding: 18px; | ||
| 261 | height: auto; | ||
| 262 | .formMenu { | ||
| 263 | width: 1000px; | ||
| 264 | } | ||
| 265 | .zdjbxxTable { | ||
| 266 | margin-top: 10px; | ||
| 267 | background-color: #fff; | ||
| 268 | font-size: 14px; | ||
| 269 | width: 100%; | ||
| 270 | th { | ||
| 271 | height: 36px; | ||
| 272 | line-height: 36px; | ||
| 273 | font-size: 16px; | ||
| 274 | } | ||
| 275 | td { | ||
| 276 | width: 60px; | ||
| 277 | text-align: center; | ||
| 278 | height: 36px; | ||
| 279 | } | ||
| 280 | /deep/.el-input__inner { | ||
| 281 | margin: 0; | ||
| 282 | height: 36px; | ||
| 283 | border: none; | ||
| 284 | color: #606764; | ||
| 285 | overflow: visible; | ||
| 286 | text-align: center; | ||
| 287 | cursor: text; | ||
| 288 | } | ||
| 289 | .percent78 { | ||
| 290 | width: 78%; | ||
| 291 | float: left; | ||
| 292 | } | ||
| 293 | .percent68 { | ||
| 294 | width: 68%; | ||
| 295 | float: left; | ||
| 296 | position: relative; | ||
| 297 | top: 7px; | ||
| 298 | } | ||
| 299 | .percent30 { | ||
| 300 | width: 30%; | ||
| 301 | float: left; | ||
| 302 | } | ||
| 303 | .createBtn { | ||
| 304 | position: absolute; | ||
| 305 | width: 50px; | ||
| 306 | padding: 6px 4px; | ||
| 307 | right: 4px; | ||
| 308 | top: 4px; | ||
| 309 | } | ||
| 310 | .el-input__icon { | ||
| 311 | line-height: 37px; | ||
| 312 | } | ||
| 313 | .save{ | ||
| 314 | height:80px | ||
| 315 | } | ||
| 316 | } | ||
| 317 | } | ||
| 318 | </style> |
-
Please register or sign in to post a comment