Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
15 changed files
with
389 additions
and
152 deletions
public/fileTemplate/exceltemplet.xlsx
0 → 100644
No preview for this file type
public/fileTemplate/txttemplet.txt
0 → 100644
1 | [属性描述] | ||
2 | 格式版本号=1.0 | ||
3 | 数据产生单位=国土资源信息中心 | ||
4 | 数据产生日期=2013-06-06 | ||
5 | 坐标系=80国家大地坐标系 | ||
6 | 几度分带=3 | ||
7 | 投影类型=高斯克吕格 | ||
8 | 计量单位=米 | ||
9 | 带号=36 | ||
10 | 精度=0.01 | ||
11 | 转换参数=0,0,0,0,0,0,0 | ||
12 | [地块坐标] | ||
13 | 24,0.2208,1,南州村0076地块,面,,土地开垦,,@ | ||
14 | J1,1,2463703.8585,36531532.3508 | ||
15 | J2,1,2463702.9272,36531526.0600 | ||
16 | J3,1,2463703.0435,36531520.8176 | ||
17 | J4,1,2463705.0225,36531515.5752 | ||
18 | J5,1,2463711.3086,36531507.3037 | ||
19 | J6,1,2463721.4852,36531497.3517 | ||
20 | J7,1,2463734.8724,36531483.0222 | ||
21 | J8,1,2463742.5555,36531476.2652 | ||
22 | J9,1,2463753.2985,36531471.8972 | ||
23 | J10,1,2463761.7966,36531467.0041 | ||
24 | J11,1,2463762.1610,36531466.5756 | ||
25 | J12,1,2463761.8898,36531473.4882 | ||
26 | J13,1,2463758.4897,36531483.3309 | ||
27 | J14,1,2463754.5525,36531495.4999 | ||
28 | J15,1,2463753.2146,36531498.4235 | ||
29 | J16,1,2463738.9903,36531524.8811 | ||
30 | J17,1,2463732.0653,36531534.9303 | ||
31 | J18,1,2463730.6173,36531539.4498 | ||
32 | J19,1,2463725.3825,36531545.7865 | ||
33 | J20,1,2463723.4140,36531550.0816 | ||
34 | J21,1,2463722.7101,36531553.4604 | ||
35 | J22,1,2463721.4368,36531552.6210 | ||
36 | J23,1,2463710.3776,36531540.9715 | ||
37 | J24,1,2463703.8585,36531532.3508 | ||
38 | 12,0.0190,2,南洲林场0003地块,面,,土地开垦,,@ | ||
39 | J1,1,2463808.0212,36532005.7911 | ||
40 | J2,1,2463804.6898,36532002.0500 | ||
41 | J3,1,2463806.2514,36531991.6196 | ||
42 | J4,1,2463805.5426,36531984.8565 | ||
43 | J5,1,2463807.0018,36531981.6012 | ||
44 | J6,1,2463809.2139,36531978.2832 | ||
45 | J7,1,2463813.1225,36531974.6382 | ||
46 | J8,1,2463813.1224,36531990.7858 | ||
47 | J9,1,2463812.7449,36532000.9968 | ||
48 | J10,1,2463812.3011,36532002.5509 | ||
49 | J11,1,2463810.1033,36532005.2700 | ||
50 | J12,1,2463808.0212,36532005.7911 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -217,6 +217,13 @@ export function exportShp(data) { | ... | @@ -217,6 +217,13 @@ export function exportShp(data) { |
217 | }) | 217 | }) |
218 | } | 218 | } |
219 | 219 | ||
220 | export function exportExcel(data) { | ||
221 | return request({ | ||
222 | url:"/tx/excelGeo/exportExcelp", | ||
223 | method:"post", | ||
224 | params:data | ||
225 | }) | ||
226 | } | ||
220 | 227 | ||
221 | /** | 228 | /** |
222 | * 获取该宗地上的所有自然幢 | 229 | * 获取该宗地上的所有自然幢 |
... | @@ -241,3 +248,4 @@ export function ZdHb(data) { | ... | @@ -241,3 +248,4 @@ export function ZdHb(data) { |
241 | data:data | 248 | data:data |
242 | }) | 249 | }) |
243 | } | 250 | } |
251 | ... | ... |
src/assets/json/exportTemplate.json
0 → 100644
... | @@ -58,13 +58,13 @@ | ... | @@ -58,13 +58,13 @@ |
58 | > | 58 | > |
59 | <li @click="postionToMap">定位</li> | 59 | <li @click="postionToMap">定位</li> |
60 | <li @click="importGeo">导入图形</li> | 60 | <li @click="importGeo">导入图形</li> |
61 | <li @click="exportToShp"> | 61 | <li> |
62 | 导出图形 | 62 | 导出图形 |
63 | <ul class="contextmenu childUl"> | 63 | <ul class="contextmenu childUl"> |
64 | <li>文本</li> | 64 | <li @click="exportText">文本</li> |
65 | <li>CAD</li> | 65 | <li @click="exportCad">CAD</li> |
66 | <li>Excel</li> | 66 | <li @click="exportExcel">Excel</li> |
67 | <li>ESRI Shape</li> | 67 | <li @click="exportToShp">ESRI Shape</li> |
68 | </ul> | 68 | </ul> |
69 | </li> | 69 | </li> |
70 | <li v-show="isZD">导入属性</li> | 70 | <li v-show="isZD">导入属性</li> |
... | @@ -112,12 +112,13 @@ | ... | @@ -112,12 +112,13 @@ |
112 | </template> | 112 | </template> |
113 | <script> | 113 | <script> |
114 | import lineItem from "./lineItem.vue"; | 114 | import lineItem from "./lineItem.vue"; |
115 | import {deleteZdInfoByBsm,exportShp} from "../../api/zd"; | 115 | import {deleteZdInfoByBsm,exportShp,exportExcel} from "../../api/zd"; |
116 | import Create from "../../views/panel/create/index"; | 116 | import Create from "../../views/panel/create/index"; |
117 | import ImportGeo from './tx/importGeo' | 117 | import ImportGeo from './tx/importGeo' |
118 | import geoUtils from "@components/lineTree/tx/js/geoUtils"; | 118 | import geoUtils from "@components/lineTree/tx/js/geoUtils"; |
119 | import featureUpdate from "@libs/map/featureUpdate"; | 119 | import featureUpdate from "@libs/map/featureUpdate"; |
120 | import {deleteLjz,deleteZdy} from "./../../api/lpb" | 120 | import {deleteLjz,deleteZdy} from "./../../api/lpb" |
121 | import exportTemJson from '@/assets/json/exportTemplate.json' | ||
121 | export default { | 122 | export default { |
122 | inheritAttrs: false, | 123 | inheritAttrs: false, |
123 | props: { | 124 | props: { |
... | @@ -456,25 +457,96 @@ export default { | ... | @@ -456,25 +457,96 @@ export default { |
456 | } | 457 | } |
457 | }); | 458 | }); |
458 | }, | 459 | }, |
459 | //导出 | 460 | //导出文本文件 |
461 | exportText(){ | ||
462 | var self = this; | ||
463 | var BSM = this.zdData.zdbsm; | ||
464 | var type = this.zdData.type; | ||
465 | this.queryGeoByBsm(BSM,type,function (features){ | ||
466 | if(features && features.length > 0){ | ||
467 | var data = features[0]; | ||
468 | var jzdInfo = self.craetJZPoint(data); | ||
469 | var textCotent = ""; | ||
470 | textCotent += exportTemJson.exprotTextAttr; | ||
471 | textCotent += "[地块坐标]\n"; | ||
472 | var dkMc = "",dkYt = ""; | ||
473 | if(type == 'zd'){ | ||
474 | dkMc = data.attributes.ZL; | ||
475 | dkYt = data.attributes.YT; | ||
476 | }else { | ||
477 | dkMc = data.attributes.XMMC + data.attributes.JZWMC ; | ||
478 | dkYt = "建设用地"; | ||
479 | } | ||
480 | textCotent += ",,,"+dkMc+",面,,"+dkYt+",,@\n"; | ||
481 | for(var i = 0;i < jzdInfo.length;i++){ | ||
482 | textCotent += jzdInfo[i].jzdh +","+jzdInfo[i].sxh+"," + | ||
483 | jzdInfo[i].x+","+jzdInfo[i].y+"\n" | ||
484 | } | ||
485 | self.downloadTxt(textCotent,"outPut.txt"); | ||
486 | } | ||
487 | }); | ||
488 | }, | ||
489 | //导出shp文件 | ||
460 | exportToShp(){ | 490 | exportToShp(){ |
461 | var self = this; | 491 | var self = this; |
462 | var BSM = this.zdData.zdbsm; | 492 | var BSM = this.zdData.zdbsm; |
463 | var type = this.zdData.type; | 493 | var type = this.zdData.type; |
464 | this.queryGeoByBsm(BSM,type,function (features){ | 494 | this.queryGeoByBsm(BSM,type,function (features){ |
465 | var data = JSON.stringify(features[0]); | ||
466 | if(features && features.length > 0){ | 495 | if(features && features.length > 0){ |
496 | var data = JSON.stringify(features[0]); | ||
467 | window.location.href = "/api/tx/shpUtils/writeShp?strObj="+encodeURI(data) | 497 | window.location.href = "/api/tx/shpUtils/writeShp?strObj="+encodeURI(data) |
468 | /*exportShp({ | 498 | /* exportShp({ |
469 | "strObj":encodeURI(data) | 499 | "strObj":encodeURI(data) |
470 | }).then(res => { | 500 | }).then(res => { |
471 | debugger | 501 | debugger |
472 | });*/ | 502 | });*/ |
503 | |||
473 | }else{ | 504 | }else{ |
474 | self.$message.warning("暂无空间信息!!!!"); | 505 | self.$message.warning("暂无空间信息!!!!"); |
475 | } | 506 | } |
476 | }); | 507 | }); |
477 | }, | 508 | }, |
509 | //导出excel | ||
510 | exportExcel(){ | ||
511 | var self = this; | ||
512 | var BSM = this.zdData.zdbsm; | ||
513 | var type = this.zdData.type; | ||
514 | this.queryGeoByBsm(BSM,type,function (features) { | ||
515 | if (features && features.length > 0) { | ||
516 | var data = features[0]; | ||
517 | var jzdInfo = self.craetJZPoint(data); | ||
518 | var submitData = []; | ||
519 | for (var i = 0; i < jzdInfo.length; i++) { | ||
520 | var obj = { | ||
521 | jzdHao: jzdInfo[i].jzdh, | ||
522 | x: jzdInfo[i].x, | ||
523 | y: jzdInfo[i].y, | ||
524 | diKuaiQuanHao: jzdInfo.sxh | ||
525 | } | ||
526 | submitData.push(obj); | ||
527 | } | ||
528 | exportExcel(submitData).then((res) => { | ||
529 | if (res.status == 200) { | ||
530 | var path = res.data.result; | ||
531 | window.location.href = "/api/tx/excelGeo/download?filePath=" + encodeURI(path); | ||
532 | } | ||
533 | }); | ||
534 | }else { | ||
535 | self.$message.warning("还没有空间信息!!!!") | ||
536 | } | ||
537 | }) | ||
538 | }, | ||
539 | //导出CAD | ||
540 | exportCad(){ | ||
541 | //TODO | ||
542 | }, | ||
543 | downloadTxt(text, fileName){ | ||
544 | let element = document.createElement('a') | ||
545 | element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)) | ||
546 | element.setAttribute('download', fileName) | ||
547 | element.style.display = 'none' | ||
548 | element.click() | ||
549 | }, | ||
478 | //图形定位 | 550 | //图形定位 |
479 | postionToMap(){ | 551 | postionToMap(){ |
480 | var curretRouterInfo = { | 552 | var curretRouterInfo = { | ... | ... |
1 | <template> | 1 | <template> |
2 | <div > | 2 | <div > |
3 | <div v-if="!resultDialog" class="importDiv"> | 3 | <div v-if="!resultDialog && !txtResultDialog" class="importDiv"> |
4 | <el-upload | 4 | <el-upload |
5 | class="upload-demo" | 5 | class="upload-demo" |
6 | action="#" | 6 | action="#" |
7 | accept=".txt" | 7 | accept=".txt" |
8 | :auto-upload="false" | ||
8 | :show-file-list="false" | 9 | :show-file-list="false" |
9 | :on-change="txtFileChange" | 10 | :on-change="txtFileChange" |
10 | > | 11 | > |
11 | <!-- <el-button size="small" type="primary">点击上传</el-button>--> | 12 | <!-- <el-button size="small" type="primary">点击上传</el-button>--> |
12 | <div class="fileUpload"> | 13 | <div class="fileUpload"> |
13 | <div slot="trigger" class="uploadLeft"> | 14 | <div slot="trigger" class="uploadLeft"> |
14 | <i class="iconfont iconwenbenwendang"></i> | 15 | <i class="iconfont icontxt"></i> |
15 | </div> | 16 | </div> |
16 | <div solt="tip" class="uploadRight"> | 17 | <div solt="tip" class="uploadRight"> |
17 | <div solt="tip" class="title">TXT文本格式</div> | 18 | <div solt="tip" class="title">TXT文本格式</div> |
18 | <div slot="tip" class="el-upload__tip">支持TXT文本格式,点击查看详情<a href="">文本详情</a></div> | 19 | <div class="el-upload__tip" slot="tip">支持TXT文本格式,点击查看详情<a class="down" href="#" @click.stop="downloadFile('./fileTemplate/txttemplet.txt','txttemplet.txt')" >文本详情</a></div> |
19 | </div> | 20 | </div> |
20 | </div> | 21 | </div> |
21 | </el-upload> | 22 | </el-upload> |
... | @@ -29,7 +30,7 @@ | ... | @@ -29,7 +30,7 @@ |
29 | <!--<el-button size="small" type="primary">点击上传</el-button>--> | 30 | <!--<el-button size="small" type="primary">点击上传</el-button>--> |
30 | <div class="fileUpload"> | 31 | <div class="fileUpload"> |
31 | <div slot="trigger" class="uploadLeft"> | 32 | <div slot="trigger" class="uploadLeft"> |
32 | <i class="iconfont iconuploadicon03"></i> | 33 | <i class="iconfont iconzip"></i> |
33 | </div> | 34 | </div> |
34 | <div solt="tip" class="uploadRight"> | 35 | <div solt="tip" class="uploadRight"> |
35 | <div solt="tip" class="title">ESRI Shape文件格式</div> | 36 | <div solt="tip" class="title">ESRI Shape文件格式</div> |
... | @@ -47,7 +48,7 @@ | ... | @@ -47,7 +48,7 @@ |
47 | <!-- <el-button size="small" type="primary">点击上传</el-button>--> | 48 | <!-- <el-button size="small" type="primary">点击上传</el-button>--> |
48 | <div solt="tip" class="fileUpload"> | 49 | <div solt="tip" class="fileUpload"> |
49 | <div slot="trigger" class="uploadLeft"> | 50 | <div slot="trigger" class="uploadLeft"> |
50 | <i class="iconfont icontubiao_daoruCAD"></i> | 51 | <i class="iconfont icondaoruCAD"></i> |
51 | </div> | 52 | </div> |
52 | <div solt="tip" class="uploadRight"> | 53 | <div solt="tip" class="uploadRight"> |
53 | <div solt="tip" class="title">CAD文件</div> | 54 | <div solt="tip" class="title">CAD文件</div> |
... | @@ -69,7 +70,7 @@ | ... | @@ -69,7 +70,7 @@ |
69 | </div> | 70 | </div> |
70 | <div solt="tip" class="uploadRight"> | 71 | <div solt="tip" class="uploadRight"> |
71 | <div slot="tip" class="title">Excel文件格式</div> | 72 | <div slot="tip" class="title">Excel文件格式</div> |
72 | <div slot="tip" class="el-upload__tip">.xls、.xlsx版本,点击查看详情<a href="">Excel格式</a></div> | 73 | <div class="el-upload__tip" slot="tip">.xls、.xlsx版本,点击查看详情<a class="downloadFile" @click.stop="downloadFile('./fileTemplate/exceltemplet.xlsx','exceltemplet.xlsx')" href="#">Excel格式</a></div> |
73 | </div> | 74 | </div> |
74 | </div> | 75 | </div> |
75 | </el-upload> | 76 | </el-upload> |
... | @@ -98,6 +99,30 @@ | ... | @@ -98,6 +99,30 @@ |
98 | </el-form-item> | 99 | </el-form-item> |
99 | </el-form> | 100 | </el-form> |
100 | </div> | 101 | </div> |
102 | <div v-if="txtResultDialog"> | ||
103 | <el-form :model="txtZd" ref="txtZdForm" label-width="100px" size="small" @submit.native.prevent class="demo-ruleForm"> | ||
104 | <el-form-item | ||
105 | label="地块名称" | ||
106 | prop="name" | ||
107 | :rules="[ | ||
108 | { required: true, message: '请选择地块', trigger: 'change' }, | ||
109 | ]" | ||
110 | > | ||
111 | <el-select v-model="txtZd.name" filterable placeholder="请选择"> | ||
112 | <el-option | ||
113 | v-for="(item,index) in txtResult" | ||
114 | :key="index" | ||
115 | :label="item.attributes.name" | ||
116 | :value="item.attributes.name"> | ||
117 | </el-option> | ||
118 | </el-select> | ||
119 | </el-form-item> | ||
120 | <el-form-item> | ||
121 | <el-button type="primary" @click="submitTxtForm('txtZdForm')">导入</el-button> | ||
122 | <el-button @click="cancelTxtForm('txtZdForm')">取消</el-button> | ||
123 | </el-form-item> | ||
124 | </el-form> | ||
125 | </div> | ||
101 | </div> | 126 | </div> |
102 | </template> | 127 | </template> |
103 | <script> | 128 | <script> |
... | @@ -123,7 +148,12 @@ export default { | ... | @@ -123,7 +148,12 @@ export default { |
123 | zdForm:{ | 148 | zdForm:{ |
124 | zdBsm: "" | 149 | zdBsm: "" |
125 | }, | 150 | }, |
126 | currentClickZd:null | 151 | currentClickZd:null, |
152 | txtResult:[], | ||
153 | txtResultDialog:null, | ||
154 | txtZd:{ | ||
155 | name:"" | ||
156 | } | ||
127 | } | 157 | } |
128 | }, | 158 | }, |
129 | methods:{ | 159 | methods:{ |
... | @@ -133,9 +163,63 @@ export default { | ... | @@ -133,9 +163,63 @@ export default { |
133 | fileReader.readAsText(file.raw); | 163 | fileReader.readAsText(file.raw); |
134 | fileReader.onload = function (res){ | 164 | fileReader.onload = function (res){ |
135 | var content = this.result; | 165 | var content = this.result; |
136 | self.$emit("closeImportDialog"); | 166 | if(!content || content.length == 0){ |
167 | self.$message.warning("文件内容为空!!!"); | ||
168 | return; | ||
169 | } | ||
170 | self.analysisTextFile(content); | ||
137 | } | 171 | } |
138 | }, | 172 | }, |
173 | analysisTextFile(content){ | ||
174 | var index = content.indexOf("[地块坐标]"), | ||
175 | geoInfos = content.substr(index), | ||
176 | geoList = geoInfos.split("\n"); | ||
177 | if(geoList.length < 1){ | ||
178 | this.$message.warning("文本内容格式有误,请效验文本内容格式!!!"); | ||
179 | return; | ||
180 | } | ||
181 | //this.$emit("closeImportDialog"); | ||
182 | var features = [],attributes = {},points = []; | ||
183 | for(var i =1;i < geoList.length;i++){ | ||
184 | var rowData = geoList[i]; | ||
185 | if(rowData.indexOf("J") != -1 && rowData.indexOf("J") == 0){ | ||
186 | //解析坐标点信息 | ||
187 | var pointInfo = rowData.split(","); | ||
188 | var point = [parseFloat(pointInfo[2]),parseFloat(pointInfo[3])]; | ||
189 | points.push(point); | ||
190 | }else { | ||
191 | if(points.length > 0){ | ||
192 | var graphic = { | ||
193 | attributes:JSON.parse(JSON.stringify(attributes)), | ||
194 | geometry:{ | ||
195 | rings:[[points.concat()]] | ||
196 | } | ||
197 | } | ||
198 | features.push(graphic); | ||
199 | } | ||
200 | //新建一个信息 坐标名称 类型 | ||
201 | attributes = {}; | ||
202 | points = [] | ||
203 | var info = rowData.split(","); | ||
204 | attributes.name = info[3]; | ||
205 | } | ||
206 | } | ||
207 | if(points.length > 0){ | ||
208 | var graphic = { | ||
209 | attributes:JSON.parse(JSON.stringify(attributes)), | ||
210 | geometry:{ | ||
211 | rings:[[points.concat()]] | ||
212 | } | ||
213 | } | ||
214 | features.push(graphic); | ||
215 | } | ||
216 | //新建一个信息 坐标名称 类型 | ||
217 | attributes = {}; | ||
218 | points = [] | ||
219 | this.txtResult = features; | ||
220 | this.txtZd.name = ""; | ||
221 | this.txtResultDialog = true; | ||
222 | }, | ||
139 | shpFileSuccess(response, file, fileList){ | 223 | shpFileSuccess(response, file, fileList){ |
140 | var self = this; | 224 | var self = this; |
141 | if(response.success){ | 225 | if(response.success){ |
... | @@ -180,6 +264,49 @@ export default { | ... | @@ -180,6 +264,49 @@ export default { |
180 | this.$message.warning(response.message); | 264 | this.$message.warning(response.message); |
181 | } | 265 | } |
182 | }, | 266 | }, |
267 | //文本文档导入 | ||
268 | submitTxtForm(formName){ | ||
269 | var self = this; | ||
270 | this.$refs[formName].validate((valid) => { | ||
271 | if(valid){ | ||
272 | var wkt = "PROJCS[\"XADFZBX\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]"; | ||
273 | var graphics = self.txtResult.filter(item => { | ||
274 | return item.attributes.name == self.txtZd.name; | ||
275 | }) | ||
276 | var graphic = graphics[0]; | ||
277 | graphic.geometry.type = "polygon"; | ||
278 | graphic.geometry.spatialReference = { | ||
279 | wkt:wkt | ||
280 | } | ||
281 | //校验完整性 直接调用空间方法 提交空间表 | ||
282 | self.geoJoint(geometry,function (isJoint,message) { | ||
283 | if(isJoint){ | ||
284 | self.$message.warning(message) | ||
285 | return; | ||
286 | }else { | ||
287 | if(self.propertyInfo.type == "zd"){ | ||
288 | self.saveZd(graphic); | ||
289 | }else{ | ||
290 | self.saveZRZ(graphic); | ||
291 | } | ||
292 | } | ||
293 | }); | ||
294 | }else{ | ||
295 | console.log('error submit!!'); | ||
296 | return false; | ||
297 | } | ||
298 | }) | ||
299 | }, | ||
300 | //下载文档模板 | ||
301 | downloadFile(url,fileName){ | ||
302 | let link = document.createElement("a"); | ||
303 | link.style.display = "none"; | ||
304 | link.href = url; | ||
305 | link.setAttribute("download", fileName); | ||
306 | document.body.appendChild(link); | ||
307 | link.click(); | ||
308 | document.body.removeChild(link); | ||
309 | }, | ||
183 | //导入 | 310 | //导入 |
184 | submitForm(formName){ | 311 | submitForm(formName){ |
185 | //校验完整性 直接调用空间方法 提交空间表 | 312 | //校验完整性 直接调用空间方法 提交空间表 |
... | @@ -370,13 +497,18 @@ export default { | ... | @@ -370,13 +497,18 @@ export default { |
370 | cancel(){ | 497 | cancel(){ |
371 | this.zdForm.zdBsm = ""; | 498 | this.zdForm.zdBsm = ""; |
372 | this.currentClickZd = null; | 499 | this.currentClickZd = null; |
500 | this.resultDialog = false; | ||
501 | }, | ||
502 | //取消文本选择的弹出框 | ||
503 | cancelTxtForm(){ | ||
504 | this.txtZd.name = ""; | ||
505 | this.txtResultDialog = false; | ||
373 | }, | 506 | }, |
374 | //宗地选择发生改变 | 507 | //宗地选择发生改变 |
375 | zdChange(value){ | 508 | zdChange(value){ |
376 | this.zdForm.zdBsm = value.XMMC; | 509 | this.zdForm.zdBsm = value.XMMC; |
377 | this.currentClickZd = value; | 510 | this.currentClickZd = value; |
378 | } | 511 | } |
379 | |||
380 | } | 512 | } |
381 | } | 513 | } |
382 | </script> | 514 | </script> | ... | ... |
src/components/lineTree/tx/js/exportUtils.js
0 → 100644
1 | | ||
2 | export default { | ||
3 | methods:{ | ||
4 | downloadTxt(text, fileName){ | ||
5 | let element = document.createElement('a') | ||
6 | element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)) | ||
7 | element.setAttribute('download', fileName) | ||
8 | element.style.display = 'none' | ||
9 | element.click() | ||
10 | }, | ||
11 | createTextContent(jzdInfo){ | ||
12 | var textContent = ""; | ||
13 | for(var i = 0;i < jzdInfo.length;i++){ | ||
14 | textContent += jzdInfo[i].jzdh +","+jzdInfo[i].sxh+"," + | ||
15 | jzdInfo[i].x+","+jzdInfo[i].y+"\n" | ||
16 | } | ||
17 | return textContent; | ||
18 | }, | ||
19 | |||
20 | } | ||
21 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -38,11 +38,6 @@ | ... | @@ -38,11 +38,6 @@ |
38 | <el-tooltip class="item" effect="light" content="定位" placement="top"> | 38 | <el-tooltip class="item" effect="light" content="定位" placement="top"> |
39 | <i class="iconfont icondingwei iconfontEdit" @click="postionToMap(scope.row)"></i> | 39 | <i class="iconfont icondingwei iconfontEdit" @click="postionToMap(scope.row)"></i> |
40 | </el-tooltip> | 40 | </el-tooltip> |
41 | <!-- <el-button type="text" size="small" | ||
42 | >办理 | ||
43 | </el-button | ||
44 | > | ||
45 | <el-button type="text" size="small">定位</el-button> --> | ||
46 | </template> | 41 | </template> |
47 | </el-table-column> | 42 | </el-table-column> |
48 | </el-table> | 43 | </el-table> |
... | @@ -52,15 +47,6 @@ | ... | @@ -52,15 +47,6 @@ |
52 | </el-pagination> | 47 | </el-pagination> |
53 | </div> | 48 | </div> |
54 | 49 | ||
55 | <el-dialog title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="70%" center> | ||
56 | <hbj ref="hbj" :bsm="hbsm" :key="hbsm"></hbj> | ||
57 | <div class="btnGroup"> | ||
58 | <el-button type="primary" @click="hbjSaveInfo">保存</el-button> | ||
59 | <el-button type="primary" @click="hbjSubmitInfo">提交</el-button> | ||
60 | <el-button type="primary" @click="hbjResetInfo">重置</el-button> | ||
61 | <el-button type="primary" @click="hbjVisible = false">取消</el-button> | ||
62 | </div> | ||
63 | </el-dialog> | ||
64 | </div> | 50 | </div> |
65 | </div> | 51 | </div> |
66 | </template> | 52 | </template> |
... | @@ -68,11 +54,10 @@ | ... | @@ -68,11 +54,10 @@ |
68 | <script> | 54 | <script> |
69 | import SearchHead from "../../../components/searchHead/searchHead"; | 55 | import SearchHead from "../../../components/searchHead/searchHead"; |
70 | import {getSearchList} from "../../../api/search"; | 56 | import {getSearchList} from "../../../api/search"; |
71 | import hbj from "./../../zrz/lpb/bjlp/hbj/index"; | ||
72 | 57 | ||
73 | export default { | 58 | export default { |
74 | name: "", | 59 | name: "", |
75 | components: {SearchHead,hbj}, | 60 | components: {SearchHead}, |
76 | props: {}, | 61 | props: {}, |
77 | data() { | 62 | data() { |
78 | return { | 63 | return { |
... | @@ -82,9 +67,6 @@ | ... | @@ -82,9 +67,6 @@ |
82 | tableData: [], | 67 | tableData: [], |
83 | tableHeight: 0, | 68 | tableHeight: 0, |
84 | queryData: {}, | 69 | queryData: {}, |
85 | hbjVisible: false, | ||
86 | hbsm:'', | ||
87 | tabPosition: "1", //1是实测 0是预测 | ||
88 | }; | 70 | }; |
89 | }, | 71 | }, |
90 | created() { | 72 | created() { |
... | @@ -106,20 +88,6 @@ | ... | @@ -106,20 +88,6 @@ |
106 | return ""; | 88 | return ""; |
107 | } | 89 | } |
108 | }, | 90 | }, |
109 | //户保存 | ||
110 | hbjSaveInfo() { | ||
111 | this.$refs.hbj.onSave(this.hbsm, this.tabPosition); | ||
112 | this.getData({pageSize:15}); | ||
113 | }, | ||
114 | //户提交 | ||
115 | hbjSubmitInfo() { | ||
116 | this.$refs.hbj.onSubmit(this.hbsm, this.tabPosition); | ||
117 | this.getData({pageSize:15}); | ||
118 | }, | ||
119 | //户编辑表单重置 | ||
120 | hbjResetInfo() { | ||
121 | this.$refs.hbj.onReset(); | ||
122 | }, | ||
123 | handleCurrentChange(val) { | 91 | handleCurrentChange(val) { |
124 | this.pageNo = val; | 92 | this.pageNo = val; |
125 | this.queryData.pageNo = val; | 93 | this.queryData.pageNo = val; |
... | @@ -159,17 +127,6 @@ | ... | @@ -159,17 +127,6 @@ |
159 | case "h": | 127 | case "h": |
160 | case "h0": | 128 | case "h0": |
161 | case "h1": | 129 | case "h1": |
162 | this.hbsm = row.glbsm; | ||
163 | this.hbjVisible = true; | ||
164 | if(row.dylx === "h0"){ | ||
165 | this.tabPosition = 0; | ||
166 | }else { | ||
167 | this.tabPosition = 1; | ||
168 | } | ||
169 | this.$nextTick(()=>{ | ||
170 | console.log(this.$refs.hbj); | ||
171 | this.$refs.hbj.getHInfo(this.hbsm); | ||
172 | }); | ||
173 | path="/h"; | 130 | path="/h"; |
174 | this.$store.state.hbsm=row.glbsm | 131 | this.$store.state.hbsm=row.glbsm |
175 | break; | 132 | break; | ... | ... |
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | <div class="content_box"> | 2 | <div class="content_box"> |
3 | <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick"> | 3 | <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick"> |
4 | <el-tab-pane label="户基本信息表" name="hjbxx"> | 4 | <el-tab-pane label="户基本信息表" name="hjbxx"> |
5 | <hbj ></hbj> | 5 | <hbj :bsm="hbsm"></hbj> |
6 | </el-tab-pane> | 6 | </el-tab-pane> |
7 | <el-tab-pane label="登记簿" name="djb"> | 7 | <el-tab-pane label="登记簿" name="djb"> |
8 | <djb v-if="djbVisible"></djb> | 8 | <djb v-if="djbVisible"></djb> |
... | @@ -26,6 +26,7 @@ | ... | @@ -26,6 +26,7 @@ |
26 | }, | 26 | }, |
27 | data() { | 27 | data() { |
28 | return { | 28 | return { |
29 | hbsm:this.$store.state.hbsm, | ||
29 | activeName: "hjbxx", | 30 | activeName: "hjbxx", |
30 | djbVisible: false, | 31 | djbVisible: false, |
31 | fjclVisible: false, | 32 | fjclVisible: false, | ... | ... |
... | @@ -133,8 +133,9 @@ export default { | ... | @@ -133,8 +133,9 @@ export default { |
133 | doSearch(){ | 133 | doSearch(){ |
134 | var self = this; | 134 | var self = this; |
135 | if(!this.inputBsm){ | 135 | if(!this.inputBsm){ |
136 | this.$message.warning(" 请输入标识码!!!"); | ||
136 | return; | 137 | return; |
137 | }else if(this.inputBsm.length != 19){ | 138 | }else if(this.inputBsm.length != 32){ |
138 | this.$message.warning("标识码格式输入有误!!!"); | 139 | this.$message.warning("标识码格式输入有误!!!"); |
139 | return; | 140 | return; |
140 | } | 141 | } |
... | @@ -242,7 +243,7 @@ export default { | ... | @@ -242,7 +243,7 @@ export default { |
242 | position: absolute; | 243 | position: absolute; |
243 | top: 12px; | 244 | top: 12px; |
244 | left: 7px; | 245 | left: 7px; |
245 | width: 35%; | 246 | width: 30%; |
246 | max-height: 100%; | 247 | max-height: 100%; |
247 | /deep/ .el-input-group__append{ | 248 | /deep/ .el-input-group__append{ |
248 | background-color: #409eff; | 249 | background-color: #409eff; | ... | ... |
1 | <template> | 1 | <template> |
2 | <div class="tools"> | 2 | <div class="tools"> |
3 | <el-button-group> | 3 | <el-button-group> |
4 | <el-button type="primary" title="全图" icon="iconfont icondiqiu" @click="fullMap"></el-button> | 4 | <el-button type="primary" title="全图" icon="iconfont iconquantu" @click="fullMap"></el-button> |
5 | <el-button type="primary" title="测面" icon="iconfont iconmianceliang" @click="measureMent('area')"></el-button> | 5 | <el-button type="primary" title="测面" icon="iconfont iconcemianji" @click="measureMent('area')"></el-button> |
6 | <el-button type="primary" title="测距" icon="iconfont iconceju" @click="measureMent('distance')"></el-button> | 6 | <el-button type="primary" title="测距" icon="iconfont iconceju" @click="measureMent('distance')"></el-button> |
7 | <el-button type="primary" title="放大" icon="iconfont iconfangda" @click="zoomOut"></el-button> | 7 | <el-button type="primary" title="放大" icon="iconfont iconlakuangfangda" @click="zoomOut"></el-button> |
8 | <el-button type="primary" title="缩小" icon="iconfont iconsuoxiao" @click="zoomIn"></el-button> | 8 | <el-button type="primary" title="缩小" icon="iconfont iconlakuangsuoxiao" @click="zoomIn"></el-button> |
9 | <el-button type="primary" title="点选" icon="iconfont iconshuxing" @click="info"></el-button> | 9 | <el-button type="primary" title="点选" icon="iconfont iconchaxunshuxing" @click="info"></el-button> |
10 | <el-button type="primary" title="清除" icon="el-icon-delete" @click="clear"></el-button> | 10 | <el-button type="primary" title="清除" icon="iconfont iconqingchu" @click="clear"></el-button> |
11 | </el-button-group> | 11 | </el-button-group> |
12 | 12 | ||
13 | </div> | 13 | </div> | ... | ... |
... | @@ -95,8 +95,8 @@ export default { | ... | @@ -95,8 +95,8 @@ export default { |
95 | ); | 95 | ); |
96 | 96 | ||
97 | const tooltip = new G6.Tooltip({ | 97 | const tooltip = new G6.Tooltip({ |
98 | offsetX: 210, | 98 | offsetX: 10, |
99 | offsetY: 210, | 99 | offsetY: 10, |
100 | itemTypes: ['node', 'edge'], | 100 | itemTypes: ['node', 'edge'], |
101 | getContent: (e) => { | 101 | getContent: (e) => { |
102 | const outDiv = document.createElement('div'); | 102 | const outDiv = document.createElement('div'); | ... | ... |
... | @@ -21,7 +21,7 @@ | ... | @@ -21,7 +21,7 @@ |
21 | <td colspan="2" align="center" >不动产单元号<i class="requisite">*</i></td> | 21 | <td colspan="2" align="center" >不动产单元号<i class="requisite">*</i></td> |
22 | <!-- todo 此处暂时存放的是不动产单元号标识码,而不是不动产单元号--> | 22 | <!-- todo 此处暂时存放的是不动产单元号标识码,而不是不动产单元号--> |
23 | <td colspan="4" class="psr"> | 23 | <td colspan="4" class="psr"> |
24 | <el-input v-model="form.bdcdyh" class="percent80"></el-input> | 24 | <el-input v-model="form.bdcdyh" class="percent80" :disabled="disableFlag"></el-input> |
25 | <el-button @click.prevent="generatorCode" size="mini" class="createBtn" type="warning">生成</el-button> | 25 | <el-button @click.prevent="generatorCode" size="mini" class="createBtn" type="warning">生成</el-button> |
26 | </td> | 26 | </td> |
27 | <td colspan="2" align="center" >原不动产单元</td> | 27 | <td colspan="2" align="center" >原不动产单元</td> |
... | @@ -37,36 +37,36 @@ | ... | @@ -37,36 +37,36 @@ |
37 | </td> | 37 | </td> |
38 | <td colspan="2" align="center" >层号</td> | 38 | <td colspan="2" align="center" >层号</td> |
39 | <td colspan="4" > | 39 | <td colspan="4" > |
40 | <el-input v-model="form.ch"></el-input> | 40 | <el-input v-model="form.ch" :disabled="disableFlag"></el-input> |
41 | </td> | 41 | </td> |
42 | </tr> | 42 | </tr> |
43 | 43 | ||
44 | <tr height="30"> | 44 | <tr height="30"> |
45 | <td colspan="2" align="center" >实际层数</td> | 45 | <td colspan="2" align="center" >实际层数</td> |
46 | <td colspan="4" > | 46 | <td colspan="4" > |
47 | <el-input v-model="form.sjcs"></el-input> | 47 | <el-input v-model="form.sjcs" :disabled="disableFlag"></el-input> |
48 | </td> | 48 | </td> |
49 | <td colspan="2" align="center" >实际层</td> | 49 | <td colspan="2" align="center" >实际层</td> |
50 | <td colspan="4" > | 50 | <td colspan="4" > |
51 | <el-input v-model="form.sjc"></el-input> | 51 | <el-input v-model="form.sjc" :disabled="disableFlag"></el-input> |
52 | </td> | 52 | </td> |
53 | </tr> | 53 | </tr> |
54 | 54 | ||
55 | <tr height="30"> | 55 | <tr height="30"> |
56 | <td colspan="2" align="center" >所在单元</td> | 56 | <td colspan="2" align="center" >所在单元</td> |
57 | <td colspan="4" > | 57 | <td colspan="4" > |
58 | <el-input v-model="form.zdymc"></el-input> | 58 | <el-input v-model="form.zdymc" :disabled="disableFlag"></el-input> |
59 | </td> | 59 | </td> |
60 | <td colspan="2" align="center" >房屋编号</td> | 60 | <td colspan="2" align="center" >房屋编号</td> |
61 | <td colspan="4" > | 61 | <td colspan="4" > |
62 | <el-input v-model="form.fwbh"></el-input> | 62 | <el-input v-model="form.fwbh" :disabled="disableFlag"></el-input> |
63 | </td> | 63 | </td> |
64 | </tr> | 64 | </tr> |
65 | 65 | ||
66 | <tr height="30"> | 66 | <tr height="30"> |
67 | <td colspan="2" align="center" >房屋类型<i class="requisite">*</i></td> | 67 | <td colspan="2" align="center" >房屋类型<i class="requisite">*</i></td> |
68 | <td colspan="4" > | 68 | <td colspan="4" > |
69 | <el-select v-model="form.fwlxbsm" placeholder="请选择" > | 69 | <el-select v-model="form.fwlxbsm" placeholder="请选择" :disabled="disableFlag"> |
70 | <el-option | 70 | <el-option |
71 | v-for="item in $store.state.fwlxList" | 71 | v-for="item in $store.state.fwlxList" |
72 | :key="item.bsm" | 72 | :key="item.bsm" |
... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
77 | </td> | 77 | </td> |
78 | <td colspan="2" align="center" >房屋性质<i class="requisite">*</i></td> | 78 | <td colspan="2" align="center" >房屋性质<i class="requisite">*</i></td> |
79 | <td colspan="4" > | 79 | <td colspan="4" > |
80 | <el-select v-model="form.fwxzbsm" placeholder="请选择" > | 80 | <el-select v-model="form.fwxzbsm" placeholder="请选择" :disabled="disableFlag"> |
81 | <el-option | 81 | <el-option |
82 | v-for="item in $store.state.fwxzOptions" | 82 | v-for="item in $store.state.fwxzOptions" |
83 | :key="item.bsm" | 83 | :key="item.bsm" |
... | @@ -91,18 +91,18 @@ | ... | @@ -91,18 +91,18 @@ |
91 | <tr height="30"> | 91 | <tr height="30"> |
92 | <td colspan="2" align="center" >户号</td> | 92 | <td colspan="2" align="center" >户号</td> |
93 | <td colspan="4" > | 93 | <td colspan="4" > |
94 | <el-input v-model="form.hh"></el-input> | 94 | <el-input v-model="form.hh" :disabled="disableFlag"></el-input> |
95 | </td> | 95 | </td> |
96 | <td colspan="2" align="center" >室号</td> | 96 | <td colspan="2" align="center" >室号</td> |
97 | <td colspan="4" > | 97 | <td colspan="4" > |
98 | <el-input v-model="form.shbw"></el-input> | 98 | <el-input v-model="form.shbw" :disabled="disableFlag"></el-input> |
99 | </td> | 99 | </td> |
100 | </tr> | 100 | </tr> |
101 | 101 | ||
102 | <tr height="30"> | 102 | <tr height="30"> |
103 | <td colspan="2" align="center" >户型</td> | 103 | <td colspan="2" align="center" >户型</td> |
104 | <td colspan="4" > | 104 | <td colspan="4" > |
105 | <el-select v-model="form.hxbsm" placeholder="请选择" > | 105 | <el-select v-model="form.hxbsm" placeholder="请选择" :disabled="disableFlag"> |
106 | <el-option | 106 | <el-option |
107 | v-for="item in $store.state.hxList" | 107 | v-for="item in $store.state.hxList" |
108 | :key="item.bsm" | 108 | :key="item.bsm" |
... | @@ -113,7 +113,7 @@ | ... | @@ -113,7 +113,7 @@ |
113 | </td> | 113 | </td> |
114 | <td colspan="2" align="center" >户型结构</td> | 114 | <td colspan="2" align="center" >户型结构</td> |
115 | <td colspan="4" > | 115 | <td colspan="4" > |
116 | <el-select v-model="form.hxjgbsm" placeholder="请选择" > | 116 | <el-select v-model="form.hxjgbsm" placeholder="请选择" :disabled="disableFlag"> |
117 | <el-option | 117 | <el-option |
118 | v-for="item in $store.state.hxjgList" | 118 | v-for="item in $store.state.hxjgList" |
119 | :key="item.bsm" | 119 | :key="item.bsm" |
... | @@ -127,7 +127,7 @@ | ... | @@ -127,7 +127,7 @@ |
127 | <tr height="30"> | 127 | <tr height="30"> |
128 | <td colspan="2" align="center" >产别<i class="requisite">*</i></td> | 128 | <td colspan="2" align="center" >产别<i class="requisite">*</i></td> |
129 | <td colspan="4" > | 129 | <td colspan="4" > |
130 | <el-select v-model="form.fwcbbsm" placeholder="请选择" > | 130 | <el-select v-model="form.fwcbbsm" placeholder="请选择" :disabled="disableFlag"> |
131 | <el-option | 131 | <el-option |
132 | v-for="item in $store.state.cbOptions" | 132 | v-for="item in $store.state.cbOptions" |
133 | :key="item.bsm" | 133 | :key="item.bsm" |
... | @@ -138,7 +138,7 @@ | ... | @@ -138,7 +138,7 @@ |
138 | </td> | 138 | </td> |
139 | <td colspan="2" align="center" >产权来源<i class="requisite">*</i></td> | 139 | <td colspan="2" align="center" >产权来源<i class="requisite">*</i></td> |
140 | <td colspan="4" > | 140 | <td colspan="4" > |
141 | <el-select v-model="form.fwcqlybsm" placeholder="请选择" > | 141 | <el-select v-model="form.fwcqlybsm" placeholder="请选择" :disabled="disableFlag"> |
142 | <el-option | 142 | <el-option |
143 | v-for="item in $store.state.cqlyOptions" | 143 | v-for="item in $store.state.cqlyOptions" |
144 | :key="item.bsm" | 144 | :key="item.bsm" |
... | @@ -153,62 +153,62 @@ | ... | @@ -153,62 +153,62 @@ |
153 | <td colspan="2" rowspan="6" align="center" >预测</td> | 153 | <td colspan="2" rowspan="6" align="center" >预测</td> |
154 | <td colspan="2" align="center" >建筑面积(㎡) </td> | 154 | <td colspan="2" align="center" >建筑面积(㎡) </td> |
155 | <td colspan="2" align="center" > | 155 | <td colspan="2" align="center" > |
156 | <el-input v-model="form.ycjzmj" :disabled="form.scyclx==='1'"></el-input> | 156 | <el-input v-model="form.ycjzmj" :disabled="form.scyclx==='1'||disableFlag"></el-input> |
157 | </td> | 157 | </td> |
158 | <td colspan="2" rowspan="6" align="center" >实测</td> | 158 | <td colspan="2" rowspan="6" align="center" >实测</td> |
159 | <td colspan="2" align="center" >建筑面积(㎡)</td> | 159 | <td colspan="2" align="center" >建筑面积(㎡)</td> |
160 | <td colspan="2" align="center" > | 160 | <td colspan="2" align="center" > |
161 | <el-input v-model="form.scjzmj" :disabled="form.scyclx==='0'"></el-input> | 161 | <el-input v-model="form.scjzmj" :disabled="form.scyclx==='0'||disableFlag"></el-input> |
162 | </td> | 162 | </td> |
163 | </tr> | 163 | </tr> |
164 | <tr height="30"> | 164 | <tr height="30"> |
165 | <td colspan="2" align="center" >套内建筑面积(㎡))</td> | 165 | <td colspan="2" align="center" >套内建筑面积(㎡))</td> |
166 | <td colspan="2" align="center" > | 166 | <td colspan="2" align="center" > |
167 | <el-input v-model="form.yctnjzmj" :disabled="form.scyclx==='1'"></el-input> | 167 | <el-input v-model="form.yctnjzmj" :disabled="form.scyclx==='1'||disableFlag"></el-input> |
168 | </td> | 168 | </td> |
169 | <td colspan="2" align="center" >套内建筑面积(㎡)</td> | 169 | <td colspan="2" align="center" >套内建筑面积(㎡)</td> |
170 | <td colspan="2" align="center" > | 170 | <td colspan="2" align="center" > |
171 | <el-input v-model="form.sctnjzmj" :disabled="form.scyclx==='0'"></el-input> | 171 | <el-input v-model="form.sctnjzmj" :disabled="form.scyclx==='0'||disableFlag"></el-input> |
172 | </td> | 172 | </td> |
173 | </tr> | 173 | </tr> |
174 | <tr height="30"> | 174 | <tr height="30"> |
175 | <td colspan="2" align="center" >分摊建筑面积(㎡)</td> | 175 | <td colspan="2" align="center" >分摊建筑面积(㎡)</td> |
176 | <td colspan="2" align="center" > | 176 | <td colspan="2" align="center" > |
177 | <el-input v-model="form.ycftjzmj" :disabled="form.scyclx==='1'"></el-input> | 177 | <el-input v-model="form.ycftjzmj" :disabled="form.scyclx==='1'||disableFlag"></el-input> |
178 | </td> | 178 | </td> |
179 | <td colspan="2" align="center" >分摊建筑面积(㎡)</td> | 179 | <td colspan="2" align="center" >分摊建筑面积(㎡)</td> |
180 | <td colspan="2" align="center" > | 180 | <td colspan="2" align="center" > |
181 | <el-input v-model="form.scftjzmj" :disabled="form.scyclx==='0'"></el-input> | 181 | <el-input v-model="form.scftjzmj" :disabled="form.scyclx==='0'||disableFlag"></el-input> |
182 | </td> | 182 | </td> |
183 | </tr> | 183 | </tr> |
184 | <tr height="30"> | 184 | <tr height="30"> |
185 | <td colspan="2" align="center" >地下部分建筑面积(㎡)</td> | 185 | <td colspan="2" align="center" >地下部分建筑面积(㎡)</td> |
186 | <td colspan="2" align="center" > | 186 | <td colspan="2" align="center" > |
187 | <el-input v-model="form.ycdxbfjzmj" :disabled="form.scyclx==='1'"></el-input> | 187 | <el-input v-model="form.ycdxbfjzmj" :disabled="form.scyclx==='1'||disableFlag"></el-input> |
188 | </td> | 188 | </td> |
189 | <td colspan="2" align="center" >地下部分建筑面积(㎡)</td> | 189 | <td colspan="2" align="center" >地下部分建筑面积(㎡)</td> |
190 | <td colspan="2" align="center" > | 190 | <td colspan="2" align="center" > |
191 | <el-input v-model="form.scdxbfjzmj" :disabled="form.scyclx==='0'"></el-input> | 191 | <el-input v-model="form.scdxbfjzmj" :disabled="form.scyclx==='0'||disableFlag"></el-input> |
192 | </td> | 192 | </td> |
193 | </tr> | 193 | </tr> |
194 | <tr height="30"> | 194 | <tr height="30"> |
195 | <td colspan="2" align="center" >其它建筑面积(㎡)</td> | 195 | <td colspan="2" align="center" >其它建筑面积(㎡)</td> |
196 | <td colspan="2" align="center" > | 196 | <td colspan="2" align="center" > |
197 | <el-input v-model="form.ycqtjzmj" :disabled="form.scyclx==='1'"></el-input> | 197 | <el-input v-model="form.ycqtjzmj" :disabled="form.scyclx==='1'||disableFlag"></el-input> |
198 | </td> | 198 | </td> |
199 | <td colspan="2" align="center" >其它建筑面积(㎡)</td> | 199 | <td colspan="2" align="center" >其它建筑面积(㎡)</td> |
200 | <td colspan="2" align="center" > | 200 | <td colspan="2" align="center" > |
201 | <el-input v-model="form.scqtjzmj" :disabled="form.scyclx==='0'"></el-input> | 201 | <el-input v-model="form.scqtjzmj" :disabled="form.scyclx==='0'||disableFlag"></el-input> |
202 | </td> | 202 | </td> |
203 | </tr> | 203 | </tr> |
204 | <tr height="30"> | 204 | <tr height="30"> |
205 | <td colspan="2" align="center" >分摊系数</td> | 205 | <td colspan="2" align="center" >分摊系数</td> |
206 | <td colspan="2" align="center" > | 206 | <td colspan="2" align="center" > |
207 | <el-input v-model="form.ycftxs" :disabled="form.scyclx==='1'"></el-input> | 207 | <el-input v-model="form.ycftxs" :disabled="form.scyclx==='1'||disableFlag"></el-input> |
208 | </td> | 208 | </td> |
209 | <td colspan="2" align="center" >分摊系数</td> | 209 | <td colspan="2" align="center" >分摊系数</td> |
210 | <td colspan="2" align="center" > | 210 | <td colspan="2" align="center" > |
211 | <el-input v-model="form.scftxs" :disabled="form.scyclx==='0'"></el-input> | 211 | <el-input v-model="form.scftxs" :disabled="form.scyclx==='0'||disableFlag"></el-input> |
212 | </td> | 212 | </td> |
213 | </tr> | 213 | </tr> |
214 | 214 | ||
... | @@ -240,7 +240,7 @@ | ... | @@ -240,7 +240,7 @@ |
240 | :default-expand-all="defaultExpandAll" | 240 | :default-expand-all="defaultExpandAll" |
241 | :multiple="multiple" | 241 | :multiple="multiple" |
242 | :placeholder="placeholder" | 242 | :placeholder="placeholder" |
243 | :disabled="disabled" | 243 | :disabled="disableFlag" |
244 | :data="$store.state.fwytList" | 244 | :data="$store.state.fwytList" |
245 | :props="treeProps" | 245 | :props="treeProps" |
246 | :check-strictly="checkStrictly" | 246 | :check-strictly="checkStrictly" |
... | @@ -255,7 +255,7 @@ | ... | @@ -255,7 +255,7 @@ |
255 | :default-expand-all="defaultExpandAll" | 255 | :default-expand-all="defaultExpandAll" |
256 | :multiple="multiple" | 256 | :multiple="multiple" |
257 | :placeholder="placeholder" | 257 | :placeholder="placeholder" |
258 | :disabled="disabled" | 258 | :disabled="disableFlag" |
259 | :data="$store.state.fwytList" | 259 | :data="$store.state.fwytList" |
260 | :props="treeProps" | 260 | :props="treeProps" |
261 | :check-strictly="checkStrictly" | 261 | :check-strictly="checkStrictly" |
... | @@ -281,7 +281,7 @@ | ... | @@ -281,7 +281,7 @@ |
281 | <span @click="deleteFwjgInfo(index)">删除</span> | 281 | <span @click="deleteFwjgInfo(index)">删除</span> |
282 | </td> | 282 | </td> |
283 | <td colspan="9" > | 283 | <td colspan="9" > |
284 | <el-select v-model="item1.fwjgzdbsm" placeholder="请选择" > | 284 | <el-select v-model="item1.fwjgzdbsm" placeholder="请选择" :disabled="disableFlag"> |
285 | <el-option | 285 | <el-option |
286 | v-for="item in $store.state.fwjgList" | 286 | v-for="item in $store.state.fwjgList" |
287 | :key="item.bsm" | 287 | :key="item.bsm" |
... | @@ -295,15 +295,15 @@ | ... | @@ -295,15 +295,15 @@ |
295 | <tr height="30"> | 295 | <tr height="30"> |
296 | <td colspan="2" align="center" >共有土地面积(㎡)</td> | 296 | <td colspan="2" align="center" >共有土地面积(㎡)</td> |
297 | <td colspan="2" > | 297 | <td colspan="2" > |
298 | <el-input v-model="form.gytdmj"></el-input> | 298 | <el-input v-model="form.gytdmj" :disabled="disableFlag"></el-input> |
299 | </td> | 299 | </td> |
300 | <td colspan="2" align="center" >分摊土地面积(㎡)</td> | 300 | <td colspan="2" align="center" >分摊土地面积(㎡)</td> |
301 | <td colspan="2" > | 301 | <td colspan="2" > |
302 | <el-input v-model="form.fttdmj"></el-input> | 302 | <el-input v-model="form.fttdmj" :disabled="disableFlag"></el-input> |
303 | </td> | 303 | </td> |
304 | <td colspan="2" align="center" >多幢独用土地面积(㎡)</td> | 304 | <td colspan="2" align="center" >多幢独用土地面积(㎡)</td> |
305 | <td colspan="2" > | 305 | <td colspan="2" > |
306 | <el-input v-model="form.dytdmj"></el-input> | 306 | <el-input v-model="form.dytdmj" :disabled="disableFlag"></el-input> |
307 | </td> | 307 | </td> |
308 | </tr> | 308 | </tr> |
309 | 309 | ||
... | @@ -324,29 +324,29 @@ | ... | @@ -324,29 +324,29 @@ |
324 | <span>坐落<i class="requisite">*</i></span> | 324 | <span>坐落<i class="requisite">*</i></span> |
325 | </td> | 325 | </td> |
326 | <td colspan="10" > | 326 | <td colspan="10" > |
327 | <el-input v-model="form.zl"></el-input> | 327 | <el-input v-model="form.zl" :disabled="disableFlag"></el-input> |
328 | </td> | 328 | </td> |
329 | </tr> | 329 | </tr> |
330 | 330 | ||
331 | <tr height="30"> | 331 | <tr height="30"> |
332 | <td colspan="2" align="center" >东墙体归属</td> | 332 | <td colspan="2" align="center" >东墙体归属</td> |
333 | <td colspan="4" > | 333 | <td colspan="4" > |
334 | <el-input v-model="form.dqtgs"></el-input> | 334 | <el-input v-model="form.dqtgs" :disabled="disableFlag"></el-input> |
335 | </td> | 335 | </td> |
336 | <td colspan="2" align="center" >南墙体归属</td> | 336 | <td colspan="2" align="center" >南墙体归属</td> |
337 | <td colspan="4" > | 337 | <td colspan="4" > |
338 | <el-input v-model="form.nqtgs"></el-input> | 338 | <el-input v-model="form.nqtgs" :disabled="disableFlag"></el-input> |
339 | </td> | 339 | </td> |
340 | </tr> | 340 | </tr> |
341 | 341 | ||
342 | <tr height="30"> | 342 | <tr height="30"> |
343 | <td colspan="2" align="center" >西墙体归属</td> | 343 | <td colspan="2" align="center" >西墙体归属</td> |
344 | <td colspan="4" > | 344 | <td colspan="4" > |
345 | <el-input v-model="form.xqtgs"></el-input> | 345 | <el-input v-model="form.xqtgs" :disabled="disableFlag"></el-input> |
346 | </td> | 346 | </td> |
347 | <td colspan="2" align="center" >北墙体归属</td> | 347 | <td colspan="2" align="center" >北墙体归属</td> |
348 | <td colspan="4" > | 348 | <td colspan="4" > |
349 | <el-input v-model="form.bqtgs"></el-input> | 349 | <el-input v-model="form.bqtgs" :disabled="disableFlag"></el-input> |
350 | </td> | 350 | </td> |
351 | </tr> | 351 | </tr> |
352 | 352 | ||
... | @@ -355,7 +355,7 @@ | ... | @@ -355,7 +355,7 @@ |
355 | <span>附加说明</span> | 355 | <span>附加说明</span> |
356 | </td> | 356 | </td> |
357 | <td colspan="10" rowspan="2" > | 357 | <td colspan="10" rowspan="2" > |
358 | <el-input v-model="form.bz" type="textarea"></el-input> | 358 | <el-input v-model="form.bz" type="textarea" :disabled="disableFlag"></el-input> |
359 | </td> | 359 | </td> |
360 | </tr> | 360 | </tr> |
361 | <tr height="30"> | 361 | <tr height="30"> |
... | @@ -366,7 +366,7 @@ | ... | @@ -366,7 +366,7 @@ |
366 | <span>调查意见</span> | 366 | <span>调查意见</span> |
367 | </td> | 367 | </td> |
368 | <td colspan="10" > | 368 | <td colspan="10" > |
369 | <el-input v-model="form.name"></el-input> | 369 | <el-input v-model="form.name" :disabled="disableFlag"></el-input> |
370 | </td> | 370 | </td> |
371 | </tr> | 371 | </tr> |
372 | 372 | ||
... | @@ -375,7 +375,7 @@ | ... | @@ -375,7 +375,7 @@ |
375 | <span>审查员</span> | 375 | <span>审查员</span> |
376 | </td> | 376 | </td> |
377 | <td colspan="2" > | 377 | <td colspan="2" > |
378 | <el-input v-model="form.name"></el-input> | 378 | <el-input v-model="form.name" :disabled="disableFlag"></el-input> |
379 | </td> | 379 | </td> |
380 | <td colspan="2" rowspan="2" align="right" style="width:8.33%;padding-right:10px"> | 380 | <td colspan="2" rowspan="2" align="right" style="width:8.33%;padding-right:10px"> |
381 | <span>审查日期</span> | 381 | <span>审查日期</span> |
... | @@ -391,6 +391,11 @@ | ... | @@ -391,6 +391,11 @@ |
391 | </tbody> | 391 | </tbody> |
392 | </table> | 392 | </table> |
393 | </el-form> | 393 | </el-form> |
394 | <div class="btnGroup"> | ||
395 | <el-button type="primary" @click="onSave">保存</el-button> | ||
396 | <el-button type="primary" @click="onSubmit">提交</el-button> | ||
397 | <el-button type="primary" @click="registerCall">登记调用</el-button> | ||
398 | </div> | ||
394 | <!-- <div style="min-height: 40px;text-align: center;margin-top: 10px"> | 399 | <!-- <div style="min-height: 40px;text-align: center;margin-top: 10px"> |
395 | <el-button type="success" @click="onSave">保存</el-button> | 400 | <el-button type="success" @click="onSave">保存</el-button> |
396 | <el-button type="primary" @click="onSubmit">提交</el-button> | 401 | <el-button type="primary" @click="onSubmit">提交</el-button> |
... | @@ -404,7 +409,7 @@ | ... | @@ -404,7 +409,7 @@ |
404 | import Qlxz from "./../../../../../components/formMenu/qlxz_simple"; | 409 | import Qlxz from "./../../../../../components/formMenu/qlxz_simple"; |
405 | import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h"; | 410 | import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h"; |
406 | import {getBdcdyh} from "./../../../../../api/zrz"; | 411 | import {getBdcdyh} from "./../../../../../api/zrz"; |
407 | import {submit} from "./../../../../../api/common" | 412 | import {submit,registerCall} from "./../../../../../api/common" |
408 | export default { | 413 | export default { |
409 | name:'zrz', | 414 | name:'zrz', |
410 | components:{ | 415 | components:{ |
... | @@ -421,6 +426,8 @@ | ... | @@ -421,6 +426,8 @@ |
421 | data () { | 426 | data () { |
422 | return { | 427 | return { |
423 | 428 | ||
429 | disableFlag:false, | ||
430 | |||
424 | //树型结构 | 431 | //树型结构 |
425 | show:true, | 432 | show:true, |
426 | clearable: true, | 433 | clearable: true, |
... | @@ -524,6 +531,18 @@ | ... | @@ -524,6 +531,18 @@ |
524 | this.getHInfo(bsm); | 531 | this.getHInfo(bsm); |
525 | }, | 532 | }, |
526 | methods: { | 533 | methods: { |
534 | registerCall(){ | ||
535 | let data={ | ||
536 | type:'h', | ||
537 | bsm:this.$store.state.hbsm | ||
538 | } | ||
539 | registerCall(data).then(res=>{ | ||
540 | if (res.success) { | ||
541 | this.$message.success("登记成功") | ||
542 | this.getRightTree(this.$store.state.zdbsm) | ||
543 | } | ||
544 | }) | ||
545 | }, | ||
527 | addYtInfo(){ | 546 | addYtInfo(){ |
528 | this.form.fwytList.push({ | 547 | this.form.fwytList.push({ |
529 | glbsm:'', | 548 | glbsm:'', |
... | @@ -570,6 +589,9 @@ | ... | @@ -570,6 +589,9 @@ |
570 | getQjHDetailByBsm(hbsm).then((res)=>{ | 589 | getQjHDetailByBsm(hbsm).then((res)=>{ |
571 | if(res.code===200){ | 590 | if(res.code===200){ |
572 | this.form = res.result; | 591 | this.form = res.result; |
592 | if(res.result.qszt !== '0'){ | ||
593 | this.disableFlag = true; | ||
594 | } | ||
573 | if(this.form.scyclx==='0'){ | 595 | if(this.form.scyclx==='0'){ |
574 | this.$set(this.form,"ycjzmj", this.form.jzmj) | 596 | this.$set(this.form,"ycjzmj", this.form.jzmj) |
575 | this.$set(this.form,"yctnjzmj", this.form.tnjzmj) | 597 | this.$set(this.form,"yctnjzmj", this.form.tnjzmj) |
... | @@ -675,10 +697,8 @@ | ... | @@ -675,10 +697,8 @@ |
675 | }) | 697 | }) |
676 | }, | 698 | }, |
677 | //保存户信息 | 699 | //保存户信息 |
678 | onSave(bsm,yclx){ | 700 | onSave(){ |
679 | console.log(bsm); | 701 | this.form.bsm=this.$store.state.hbsm; |
680 | console.log(yclx) | ||
681 | this.form.bsm=bsm; | ||
682 | this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList(); | 702 | this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList(); |
683 | if(this.form.scyclx==='0'){ | 703 | if(this.form.scyclx==='0'){ |
684 | this.form.jzmj = this.form.ycjzmj; | 704 | this.form.jzmj = this.form.ycjzmj; |
... | @@ -703,9 +723,9 @@ | ... | @@ -703,9 +723,9 @@ |
703 | } | 723 | } |
704 | }) | 724 | }) |
705 | }, | 725 | }, |
706 | onSubmit(bsm,yclx){ | 726 | onSubmit(){ |
707 | let data={ | 727 | let data={ |
708 | glbsm:bsm, | 728 | glbsm:this.$store.state.hbsm, |
709 | status:1, | 729 | status:1, |
710 | type:"h" | 730 | type:"h" |
711 | } | 731 | } |
... | @@ -879,4 +899,8 @@ | ... | @@ -879,4 +899,8 @@ |
879 | height: 30px !important; | 899 | height: 30px !important; |
880 | } | 900 | } |
881 | } | 901 | } |
902 | .btnGroup{ | ||
903 | text-align: center; | ||
904 | margin-top: 20px; | ||
905 | } | ||
882 | </style> | 906 | </style> | ... | ... |
... | @@ -257,13 +257,6 @@ | ... | @@ -257,13 +257,6 @@ |
257 | <!-- 双击户的弹出框 --> | 257 | <!-- 双击户的弹出框 --> |
258 | <el-dialog title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="70%" center> | 258 | <el-dialog title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="70%" center> |
259 | <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx"></hbj> | 259 | <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx"></hbj> |
260 | <div class="btnGroup"> | ||
261 | <el-button type="primary" @click="hbjSaveInfo">保存</el-button> | ||
262 | <el-button type="primary" @click="hbjSubmitInfo">提交</el-button> | ||
263 | <el-button type="primary" @click="hbjResetInfo">重置</el-button> | ||
264 | <el-button type="primary" @click="hbjVisible = false">取消</el-button> | ||
265 | <el-button type="primary" @click="registerCall">登记调用</el-button> | ||
266 | </div> | ||
267 | </el-dialog> | 260 | </el-dialog> |
268 | </div> | 261 | </div> |
269 | </template> | 262 | </template> |
... | @@ -281,7 +274,6 @@ import addZdy from "./zdy/index"; | ... | @@ -281,7 +274,6 @@ import addZdy from "./zdy/index"; |
281 | import addCh from "./ch/index"; | 274 | import addCh from "./ch/index"; |
282 | import hbj from "./hbj/index"; | 275 | import hbj from "./hbj/index"; |
283 | import lpbContent from "./lpbContent/index"; | 276 | import lpbContent from "./lpbContent/index"; |
284 | import {registerCall} from "../../../../api/common"; | ||
285 | import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "../../../../api/lpb"; | 277 | import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "../../../../api/lpb"; |
286 | 278 | ||
287 | export default { | 279 | export default { |
... | @@ -406,18 +398,6 @@ export default { | ... | @@ -406,18 +398,6 @@ export default { |
406 | }, 100); | 398 | }, 100); |
407 | }, | 399 | }, |
408 | methods: { | 400 | methods: { |
409 | registerCall(){ | ||
410 | let data={ | ||
411 | type:'h', | ||
412 | bsm:this.hbsm | ||
413 | } | ||
414 | registerCall(data).then(res=>{ | ||
415 | if (res.success) { | ||
416 | this.$message.success("登记成功") | ||
417 | this.getRightTree(this.$store.state.zdbsm) | ||
418 | } | ||
419 | }) | ||
420 | }, | ||
421 | batchCommit(){ | 401 | batchCommit(){ |
422 | if (this.bsms.length <= 0) { | 402 | if (this.bsms.length <= 0) { |
423 | Message.warning("请选择操作户") | 403 | Message.warning("请选择操作户") |
... | @@ -604,18 +584,6 @@ export default { | ... | @@ -604,18 +584,6 @@ export default { |
604 | }); | 584 | }); |
605 | } | 585 | } |
606 | }, | 586 | }, |
607 | //户保存 | ||
608 | hbjSaveInfo() { | ||
609 | this.$refs.hbj.onSave(this.bsms[this.bsms.length - 1], this.tabPosition); | ||
610 | }, | ||
611 | //户保存 | ||
612 | hbjSubmitInfo() { | ||
613 | this.$refs.hbj.onSubmit(this.bsms[this.bsms.length - 1], this.tabPosition); | ||
614 | }, | ||
615 | //户编辑表单重置 | ||
616 | hbjResetInfo() { | ||
617 | this.$refs.hbj.onReset(); | ||
618 | }, | ||
619 | //调用楼盘表信息查询接口 | 587 | //调用楼盘表信息查询接口 |
620 | getlpbData() { | 588 | getlpbData() { |
621 | this.$refs.lpbContent.getLpb(this.$store.state.zrzbsm); | 589 | this.$refs.lpbContent.getLpb(this.$store.state.zrzbsm); | ... | ... |
-
Please register or sign in to post a comment