构筑物
Showing
10 changed files
with
137 additions
and
2 deletions
src/api/gzw.js
0 → 100644
1 | import request from '@/plugin/axios' | ||
2 | |||
3 | /** | ||
4 | * 新增构筑物基本信息 | ||
5 | */ | ||
6 | export function insertGzwjbxx(data) { | ||
7 | return request({ | ||
8 | url: '/system/qjGzw/insertQjGzw', | ||
9 | method: 'post', | ||
10 | data: data, | ||
11 | }) | ||
12 | } | ||
13 | |||
14 | /** | ||
15 | * 生成不动产单元号 | ||
16 | */ | ||
17 | export function getBdcdyh(dpdm, dptype) { | ||
18 | return request({ | ||
19 | url: '/system/generator/getBdcdyh', | ||
20 | method: 'get', | ||
21 | params: { | ||
22 | dpdm: dpdm, | ||
23 | dptype: dptype | ||
24 | } | ||
25 | }) | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * 更新构筑物基本信息 | ||
30 | */ | ||
31 | export function updateGzwjbxx(data) { | ||
32 | return request({ | ||
33 | url: '/system/qjGzw/updateQjGzw', | ||
34 | method: 'put', | ||
35 | data: data, | ||
36 | }) | ||
37 | } | ||
38 | |||
39 | /** | ||
40 | * 获取构筑物基本信息 | ||
41 | */ | ||
42 | export function getQjGzwDetailInfo(data) { | ||
43 | return request({ | ||
44 | url: '/system/qjGzw/getQjGzwDetailById', | ||
45 | method: 'get', | ||
46 | params: { | ||
47 | id: data | ||
48 | } | ||
49 | }) | ||
50 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -74,6 +74,7 @@ | ... | @@ -74,6 +74,7 @@ |
74 | <el-checkbox label="zd" name="type">宗地</el-checkbox> | 74 | <el-checkbox label="zd" name="type">宗地</el-checkbox> |
75 | <el-checkbox label="dz" name="type">多幢</el-checkbox> | 75 | <el-checkbox label="dz" name="type">多幢</el-checkbox> |
76 | <el-checkbox label="zrz" name="type">自然幢</el-checkbox> | 76 | <el-checkbox label="zrz" name="type">自然幢</el-checkbox> |
77 | <el-checkbox label="gzw" name="type">构筑物</el-checkbox> | ||
77 | <el-checkbox label="h" name="type" v-show="type !== 'add'">户</el-checkbox> | 78 | <el-checkbox label="h" name="type" v-show="type !== 'add'">户</el-checkbox> |
78 | <!-- <el-checkbox label="gzw" name="type">构筑物</el-checkbox> | 79 | <!-- <el-checkbox label="gzw" name="type">构筑物</el-checkbox> |
79 | <el-checkbox label="lq" name="type">林权</el-checkbox> | 80 | <el-checkbox label="lq" name="type">林权</el-checkbox> | ... | ... |
... | @@ -45,5 +45,9 @@ let bdcLxArray = [ | ... | @@ -45,5 +45,9 @@ let bdcLxArray = [ |
45 | label: "多幢", | 45 | label: "多幢", |
46 | value: "dz", | 46 | value: "dz", |
47 | }, | 47 | }, |
48 | { | ||
49 | label: "构筑物", | ||
50 | value: "gzw", | ||
51 | }, | ||
48 | ]; | 52 | ]; |
49 | createFilter("bdcLxFilter", bdcLxArray); | 53 | createFilter("bdcLxFilter", bdcLxArray); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -77,6 +77,12 @@ const constantRoutes = [ | ... | @@ -77,6 +77,12 @@ const constantRoutes = [ |
77 | component: () => import("@/views/systemH/index"), | 77 | component: () => import("@/views/systemH/index"), |
78 | }, | 78 | }, |
79 | { | 79 | { |
80 | path: "/gzw", | ||
81 | name: "构筑物", | ||
82 | code: "1-7", | ||
83 | component: () => import("@/views/gzw/index"), | ||
84 | }, | ||
85 | { | ||
80 | path: "/viewMap", | 86 | path: "/viewMap", |
81 | name: "地图", | 87 | name: "地图", |
82 | code: "0-6", | 88 | code: "0-6", | ... | ... |
... | @@ -41,6 +41,7 @@ const store = new Vuex.Store({ | ... | @@ -41,6 +41,7 @@ const store = new Vuex.Store({ |
41 | jgOptions:[], | 41 | jgOptions:[], |
42 | gmjjhyflbsmList:[], | 42 | gmjjhyflbsmList:[], |
43 | fwytList:[], | 43 | fwytList:[], |
44 | gzwlxList:[], | ||
44 | //创建自然幢时需要用到的临时存储信息 | 45 | //创建自然幢时需要用到的临时存储信息 |
45 | zrzbsm: '', | 46 | zrzbsm: '', |
46 | zjlxList: [], | 47 | zjlxList: [], | ... | ... |
... | @@ -272,6 +272,7 @@ export default { | ... | @@ -272,6 +272,7 @@ export default { |
272 | s.hxList = s.hxList.length == 0 ?await this.getDicData("户型") : s.hxList; | 272 | s.hxList = s.hxList.length == 0 ?await this.getDicData("户型") : s.hxList; |
273 | s.hxjgList = s.hxjgList.length == 0 ?await this.getDicData("户型结构") : s.hxjgList; | 273 | s.hxjgList = s.hxjgList.length == 0 ?await this.getDicData("户型结构") : s.hxjgList; |
274 | s.fwjgList = s.fwjgList.length == 0 ?await this.getDicData("户型结构") : s.fwjgList; | 274 | s.fwjgList = s.fwjgList.length == 0 ?await this.getDicData("户型结构") : s.fwjgList; |
275 | s.gzwlxList = s.gzwlxList.length == 0 ?await this.getDicData("构(建)筑物类型") : s.gzwlxList; | ||
275 | 276 | ||
276 | s.fwxzOptions = s.fwxzOptions.length == 0 ?await this.getDicData("房屋性质") : s.fwxzOptions; | 277 | s.fwxzOptions = s.fwxzOptions.length == 0 ?await this.getDicData("房屋性质") : s.fwxzOptions; |
277 | s.cbOptions = s.cbOptions.length == 0 ?await this.getDicData("房屋产别") : s.cbOptions; | 278 | s.cbOptions = s.cbOptions.length == 0 ?await this.getDicData("房屋产别") : s.cbOptions; | ... | ... |
src/views/gzw/index.vue
0 → 100644
src/views/gzw/jbxx/index.vue
0 → 100644
This diff is collapsed.
Click to expand it.
... | @@ -133,10 +133,18 @@ | ... | @@ -133,10 +133,18 @@ |
133 | <el-button type="primary" class="w98 cancel" @click="close">取消</el-button> | 133 | <el-button type="primary" class="w98 cancel" @click="close">取消</el-button> |
134 | </div> | 134 | </div> |
135 | </el-tab-pane> | 135 | </el-tab-pane> |
136 | <el-tab-pane class="eltabspane" v-if="!createZrz" label="构筑物" name="gzw"> | 136 | <el-tab-pane class="eltabspane" label="构筑物" name="gzw"> |
137 | <el-form :inline="true" :rules="rules4" :model="ruleForm4" ref="ruleForm4" class="demo-form-inline"> | ||
138 | <el-form-item label="项目名称" class="w100" prop="xmmc"> | ||
139 | <el-input | ||
140 | v-model="ruleForm4.xmmc" | ||
141 | placeholder="项目名称" | ||
142 | ></el-input> | ||
143 | </el-form-item> | ||
144 | </el-form> | ||
137 | <div class="handleBtn"> | 145 | <div class="handleBtn"> |
138 | <el-button type="primary" class="w98 import">导入图形</el-button> | 146 | <el-button type="primary" class="w98 import">导入图形</el-button> |
139 | <el-button type="primary" class="w98 creat" @click="todo">创建</el-button> | 147 | <el-button type="primary" class="w98 creat" @click="newGzw">创建</el-button> |
140 | <el-button type="primary" class="w98 cancel" @click="close">取消</el-button> | 148 | <el-button type="primary" class="w98 cancel" @click="close">取消</el-button> |
141 | </div> | 149 | </div> |
142 | </el-tab-pane> | 150 | </el-tab-pane> |
... | @@ -152,6 +160,7 @@ import { | ... | @@ -152,6 +160,7 @@ import { |
152 | import { insertQjZdjbxx } from "@api/zd"; | 160 | import { insertQjZdjbxx } from "@api/zd"; |
153 | import { insertZrzjbxx } from "@api/zrz"; | 161 | import { insertZrzjbxx } from "@api/zrz"; |
154 | import { insertDzjbxx } from "@api/dz"; | 162 | import { insertDzjbxx } from "@api/dz"; |
163 | import { insertGzwjbxx } from "@api/gzw"; | ||
155 | 164 | ||
156 | export default { | 165 | export default { |
157 | name: "", | 166 | name: "", |
... | @@ -199,6 +208,11 @@ export default { | ... | @@ -199,6 +208,11 @@ export default { |
199 | xmmc:'', | 208 | xmmc:'', |
200 | userbsm:'' | 209 | userbsm:'' |
201 | }, | 210 | }, |
211 | ruleForm4:{ | ||
212 | zdzhbsm:'', | ||
213 | xmmc:'', | ||
214 | userbsm:'' | ||
215 | }, | ||
202 | rules: { | 216 | rules: { |
203 | xzqbsm: [ | 217 | xzqbsm: [ |
204 | { required: true, message: '请选择行政区', trigger: 'change' } | 218 | { required: true, message: '请选择行政区', trigger: 'change' } |
... | @@ -229,6 +243,11 @@ export default { | ... | @@ -229,6 +243,11 @@ export default { |
229 | { required: true, message: '请输入项目名称', trigger: 'blur' }, | 243 | { required: true, message: '请输入项目名称', trigger: 'blur' }, |
230 | ], | 244 | ], |
231 | }, | 245 | }, |
246 | rules4: { | ||
247 | xmmc: [ | ||
248 | { required: true, message: '请输入项目名称', trigger: 'blur' }, | ||
249 | ], | ||
250 | }, | ||
232 | syqlx: [ | 251 | syqlx: [ |
233 | { | 252 | { |
234 | label: "国家所有", | 253 | label: "国家所有", |
... | @@ -341,6 +360,37 @@ export default { | ... | @@ -341,6 +360,37 @@ export default { |
341 | }); | 360 | }); |
342 | 361 | ||
343 | }, | 362 | }, |
363 | newGzw(){ | ||
364 | this.$refs['ruleForm4'].validate((valid) => { | ||
365 | if (valid) { | ||
366 | if(1>0){ | ||
367 | this.ruleForm4.zdzhbsm = this.$store.state.zdbsm != '' ? this.$store.state.zdbsm : ''; | ||
368 | insertGzwjbxx(this.ruleForm4) | ||
369 | .then((res)=>{ | ||
370 | if(res.code === 200){ | ||
371 | this.close(); | ||
372 | this.$router.push({ | ||
373 | path: '/gzw', query:{ | ||
374 | source: 1, | ||
375 | bsm:res.result.bsm, | ||
376 | auth: '0,1,2' | ||
377 | } | ||
378 | }); | ||
379 | } | ||
380 | }) | ||
381 | }else { | ||
382 | this.close(); | ||
383 | this.$router.push({ | ||
384 | path: '/gzw', query:{ | ||
385 | source: 1, | ||
386 | bsm:"12345678901234567890", | ||
387 | auth: '0,1,2' | ||
388 | } | ||
389 | }); | ||
390 | } | ||
391 | } | ||
392 | }) | ||
393 | }, | ||
344 | newDz() { | 394 | newDz() { |
345 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm | 395 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm |
346 | this.$refs['ruleForm2'].validate((valid) => { | 396 | this.$refs['ruleForm2'].validate((valid) => { | ... | ... |
... | @@ -152,6 +152,11 @@ | ... | @@ -152,6 +152,11 @@ |
152 | this.$store.state.hbsm=row.glbsm | 152 | this.$store.state.hbsm=row.glbsm |
153 | this.getTreeByBsm(row.glbsm,'h','0,1,2'); | 153 | this.getTreeByBsm(row.glbsm,'h','0,1,2'); |
154 | break; | 154 | break; |
155 | case "gzw": | ||
156 | this.$store.state.gzwbsm = row.glbsm; | ||
157 | this.getTreeByBsm(row.glbsm,"gzw",'0,1,2'); | ||
158 | path = "/gzw"; | ||
159 | break; | ||
155 | default: | 160 | default: |
156 | break; | 161 | break; |
157 | } | 162 | } | ... | ... |
-
Please register or sign in to post a comment