Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
5 changed files
with
70 additions
and
5 deletions
... | @@ -83,4 +83,16 @@ export function getTreeByZrzbsm(zrzbsm) { | ... | @@ -83,4 +83,16 @@ export function getTreeByZrzbsm(zrzbsm) { |
83 | zrzbsm | 83 | zrzbsm |
84 | } | 84 | } |
85 | }) | 85 | }) |
86 | } | ||
87 | |||
88 | |||
89 | /**x | ||
90 | *修改 宗地,自然幢,户的权属状态 | ||
91 | */ | ||
92 | export function updateQsztByBsm(data){ | ||
93 | return request({ | ||
94 | url: '/gz/updateByBsm', | ||
95 | method: 'post', | ||
96 | data: data | ||
97 | }) | ||
86 | } | 98 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -46,4 +46,16 @@ export function getZrzDetailByBsm (data) { | ... | @@ -46,4 +46,16 @@ export function getZrzDetailByBsm (data) { |
46 | id:data | 46 | id:data |
47 | } | 47 | } |
48 | }) | 48 | }) |
49 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
49 | } | ||
50 | |||
51 | /** | ||
52 | * 保存自然幢信息 | ||
53 | */ | ||
54 | export function submit (data) { | ||
55 | return request({ | ||
56 | url: '/system/submit/submitInfo', | ||
57 | method: 'get', | ||
58 | data:data | ||
59 | }) | ||
60 | } | ||
61 | ... | ... |
... | @@ -174,8 +174,23 @@ export default { | ... | @@ -174,8 +174,23 @@ export default { |
174 | }, | 174 | }, |
175 | deleteByBsm(){ | 175 | deleteByBsm(){ |
176 | var zdBsm = this.zdData.zdbsm; | 176 | var zdBsm = this.zdData.zdbsm; |
177 | var type; | ||
177 | console.log(zdBsm); | 178 | console.log(zdBsm); |
178 | deleteZdInfoByBsm(zdBsm) | 179 | switch (this.zdData.type){ |
180 | case "zd": | ||
181 | type="0"; | ||
182 | break; | ||
183 | case "zrz": | ||
184 | type="1"; | ||
185 | break; | ||
186 | case "h": | ||
187 | type="2"; | ||
188 | break; | ||
189 | default: | ||
190 | break; | ||
191 | } | ||
192 | var params={"id":zdBsm,"type":type} | ||
193 | deleteZdInfoByBsm(params) | ||
179 | .then((res) => { | 194 | .then((res) => { |
180 | if(res.code=200){ | 195 | if(res.code=200){ |
181 | this.$message({ | 196 | this.$message({ | ... | ... |
... | @@ -52,6 +52,7 @@ | ... | @@ -52,6 +52,7 @@ |
52 | <script> | 52 | <script> |
53 | import SearchHead from "../../../components/searchHead/searchHead"; | 53 | import SearchHead from "../../../components/searchHead/searchHead"; |
54 | import {getSearchList} from "../../../api/search"; | 54 | import {getSearchList} from "../../../api/search"; |
55 | import {updateQsztByBsm} from "../../../api/common"; | ||
55 | 56 | ||
56 | export default { | 57 | export default { |
57 | name: "", | 58 | name: "", |
... | @@ -113,17 +114,32 @@ | ... | @@ -113,17 +114,32 @@ |
113 | }, | 114 | }, |
114 | //点击办理 | 115 | //点击办理 |
115 | handleClick(row) { | 116 | handleClick(row) { |
117 | console.log(row); | ||
116 | let path = ""; | 118 | let path = ""; |
117 | switch (row.lx) { | 119 | var type; |
120 | var id = row.glbsm; | ||
121 | switch (row.dylx) { | ||
118 | case "自然幢": | 122 | case "自然幢": |
119 | path = "/zrz"; | 123 | path = "/zrz"; |
124 | type = "1"; | ||
120 | break; | 125 | break; |
121 | case "宗地": | 126 | case "zd": |
122 | path = "/zd"; | 127 | path = "/zd"; |
128 | type = "0"; | ||
123 | break; | 129 | break; |
130 | case "户": | ||
131 | path = "h"; | ||
132 | type = "2"; | ||
124 | default: | 133 | default: |
125 | break; | 134 | break; |
126 | } | 135 | } |
136 | var data={"id":id,"type":type}; | ||
137 | updateQsztByBsm(data) | ||
138 | .then((res =>{ | ||
139 | if(res.code==200){ | ||
140 | console.log(res); | ||
141 | } | ||
142 | })) | ||
127 | this.$router.push(path); | 143 | this.$router.push(path); |
128 | }, | 144 | }, |
129 | }, | 145 | }, | ... | ... |
... | @@ -270,7 +270,7 @@ | ... | @@ -270,7 +270,7 @@ |
270 | <script> | 270 | <script> |
271 | import Qlr from "../../../components/formMenu/qlr"; | 271 | import Qlr from "../../../components/formMenu/qlr"; |
272 | import Qlxz from "../../../components/formMenu/qlxz"; | 272 | import Qlxz from "../../../components/formMenu/qlxz"; |
273 | import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm} from "../../../api/zrz" | 273 | import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm,submit} from "../../../api/zrz" |
274 | import {getQjZdjbxxDetailById} from "../../../api/zd" | 274 | import {getQjZdjbxxDetailById} from "../../../api/zd" |
275 | export default { | 275 | export default { |
276 | name:'zrz', | 276 | name:'zrz', |
... | @@ -412,6 +412,16 @@ | ... | @@ -412,6 +412,16 @@ |
412 | } | 412 | } |
413 | }, | 413 | }, |
414 | onSubmit(){ | 414 | onSubmit(){ |
415 | let data={ | ||
416 | glbsm:this.bsm, | ||
417 | status:1, | ||
418 | type:"zrz" | ||
419 | } | ||
420 | submit(data).then((res)=>{ | ||
421 | if(res.code===200){ | ||
422 | this.$message.success("提交完成!") | ||
423 | } | ||
424 | }) | ||
415 | }, | 425 | }, |
416 | generatorCode(){ | 426 | generatorCode(){ |
417 | getBdcdyh(this.form.zddm,"zrz") | 427 | getBdcdyh(this.form.zddm,"zrz") | ... | ... |
-
Please register or sign in to post a comment