Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
aa4e2e55
authored
2020-12-15 14:21:59 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(sxdr):属性导入
1 parent
08c74968
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
237 additions
and
225 deletions
src/components/sxdr/sxdr.vue
src/views/zd/zddcb/index.vue
src/components/sxdr/sxdr.vue
View file @
aa4e2e5
...
...
@@ -52,53 +52,37 @@
sxdrData
:
{
bsm
:
''
},
errorData
:[]
errorData
:
[]
}
},
mounted
(){
this
.
$store
.
state
.
sxdrType
=
''
;
mounted
()
{
this
.
$store
.
state
.
sxdrType
=
''
;
},
methods
:
{
loading
(){
debugger
switch
(
this
.
dylx
)
{
case
"zd"
:
this
.
$store
.
state
.
sxdrType
=
'zd'
;
break
;
case
"dz"
:
this
.
$store
.
state
.
sxdrType
=
'dz'
;
break
;
case
"zrz"
:
this
.
$store
.
state
.
sxdrType
=
'zrz'
;
break
;
case
"h"
:
this
.
$store
.
state
.
sxdrType
=
"h"
;
break
;
default
:
break
;
}
loading
()
{
this
.
$store
.
state
.
sxdrType
=
this
.
dylx
;
},
reset
(){
this
.
errorData
=
[];
this
.
uploadUrl
=
''
;
this
.
sxdrData
=
{
bsm
:
''
};
this
.
$store
.
state
.
sxdrType
=
''
;
reset
()
{
this
.
errorData
=
[];
this
.
uploadUrl
=
''
;
this
.
sxdrData
=
{
bsm
:
''
};
},
close
()
{
this
.
$emit
(
'close'
)
this
.
reset
();
},
downloadTemplate
()
{
window
.
open
(
`/api/tx/excelGeo/zdTemplate?type=`
+
this
.
dylx
);
window
.
open
(
`/api/tx/excelGeo/zdTemplate?type=`
+
this
.
dylx
);
},
uploadSuccess
(
res
,
file
,
fileList
)
{
if
(
res
.
success
)
{
this
.
$message
.
success
(
"上传成功"
)
debugger
this
.
loading
();
this
.
close
()
}
else
{
this
.
$message
.
error
(
"上传失败"
)
this
.
errorData
=
res
.
result
this
.
errorData
=
res
.
result
}
}
},
...
...
@@ -123,15 +107,16 @@
</
script
>
<
style
scoped
lang=
"less"
>
.main-button
{
.main-button
{
display
:
-webkit-flex
;
display
:
flex
;
flex-direction
:
column-reverse
;
flex-wrap
:
nowrap
;
flex-wrap
:
nowrap
;
}
ul
{
ul
{
margin-top
:
20px
;
li{
li
{
line-height
:
15px
;
color
:
red
;
}
...
...
src/views/zd/zddcb/index.vue
View file @
aa4e2e5
...
...
@@ -81,7 +81,8 @@
</td>
<td
colspan=
"2"
>
宗地特征码
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"4"
>
<el-select
class=
"formSelect"
ref=
"zdtzm"
:disabled=
"formData.qszt!='0'"
v-model=
"formData.zdtzmbsm"
>
<el-select
class=
"formSelect"
ref=
"zdtzm"
:disabled=
"formData.qszt!='0'"
v-model=
"formData.zdtzmbsm"
>
<el-option
v-for=
"item in $store.state.zdtzmList"
:key=
"item.bsm"
...
...
@@ -112,7 +113,8 @@
class=
"formInput percent80"
v-model=
"formData.zddm"
/>
<el-button
type=
"warning"
:disabled=
"formData.qszt!='0'"
class=
"createBtn"
@
click=
"generatorCode"
<el-button
type=
"warning"
:disabled=
"formData.qszt!='0'"
class=
"createBtn"
@
click=
"generatorCode"
>
生成
</el-button>
</td>
...
...
@@ -120,13 +122,14 @@
<tr>
<td
colspan=
"2"
>
地籍号
</td>
<td
colspan=
"4"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.djh"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.djh"
/>
</td>
<td
colspan=
"2"
>
不动产单元号
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"4"
class=
"psr"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
@
blur=
"inputBlur($event)"
ref=
"bdcdyh"
maxlength=
"28"
type=
"text"
:disabled=
"formData.qszt!='0'"
@
blur=
"inputBlur($event)"
ref=
"bdcdyh"
maxlength=
"28"
class=
"formInput"
v-model=
"formData.bdcdyh"
/>
...
...
@@ -136,7 +139,8 @@
<tr>
<td
colspan=
"2"
>
坐落
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"4"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
@
blur=
"inputBlur($event)"
ref=
"zl"
class=
"formInput"
v-model=
"formData.zl"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
@
blur=
"inputBlur($event)"
ref=
"zl"
class=
"formInput"
v-model=
"formData.zl"
/>
</td>
<td
colspan=
"2"
>
项目名称
</td>
<td
colspan=
"4"
class=
"psr"
>
...
...
@@ -162,20 +166,20 @@
</td>
<td
colspan=
"2"
>
价格(元)
</td>
<td
colspan=
"4"
class=
"psr"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.jg"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.jg"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
rowspan=
"2"
>
所在图幅号
</td>
<td
colspan=
"2"
>
比例尺
</td>
<td
colspan=
"8"
class=
"psr"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.blc"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.blc"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
图幅号
</td>
<td
colspan=
"8"
class=
"psr"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.tfh"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.tfh"
/>
</td>
</tr>
<tr>
...
...
@@ -207,7 +211,7 @@
</td>
<td
colspan=
"2"
>
容积说明
</td>
<td
colspan=
"4"
class=
"psr"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.rjlsm"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.rjlsm"
/>
</td>
</tr>
<tr>
...
...
@@ -239,7 +243,7 @@
</td>
<td
colspan=
"2"
>
建筑密度说明
</td>
<td
colspan=
"4"
class=
"psr"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.jzmdsm"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.jzmdsm"
/>
</td>
</tr>
<tr>
...
...
@@ -271,32 +275,36 @@
</td>
<td
colspan=
"2"
>
建筑限高说明
</td>
<td
colspan=
"4"
class=
"psr"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.jzxgsm"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.jzxgsm"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
rowspan=
"4"
>
宗地四至
</td>
<td
colspan=
"2"
>
北至
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"8"
class=
"psr"
>
<input
type=
"text"
@
blur=
"inputBlur($event)"
ref=
"zdszb"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.zdszb"
/>
<input
type=
"text"
@
blur=
"inputBlur($event)"
ref=
"zdszb"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.zdszb"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
东至
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"8"
class=
"psr"
>
<input
type=
"text"
@
blur=
"inputBlur($event)"
ref=
"zdszd"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.zdszd"
/>
<input
type=
"text"
@
blur=
"inputBlur($event)"
ref=
"zdszd"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.zdszd"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
南至
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"8"
class=
"psr"
>
<input
type=
"text"
@
blur=
"inputBlur($event)"
ref=
"zdszn"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.zdszn"
/>
<input
type=
"text"
@
blur=
"inputBlur($event)"
ref=
"zdszn"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.zdszn"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
西至
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"8"
class=
"psr"
>
<input
type=
"text"
@
blur=
"inputBlur($event)"
ref=
"zdszx"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.zdszx"
/>
<input
type=
"text"
@
blur=
"inputBlur($event)"
ref=
"zdszx"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.zdszx"
/>
</td>
</tr>
<tr>
...
...
@@ -307,33 +315,38 @@
<tr>
<td
colspan=
"2"
rowspan=
"2"
>
批准面积(㎡)
</td>
<td
colspan=
"2"
rowspan=
"2"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
onkeyup=
"value=value.replace(/[^\d\.]/g,'')"
class=
"formInput"
v-model=
"formData.pzmj"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
onkeyup=
"value=value.replace(/[^\d\.]/g,'')"
class=
"formInput"
v-model=
"formData.pzmj"
/>
</td>
<td
colspan=
"2"
rowspan=
"2"
>
宗地面积(㎡)
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"2"
rowspan=
"2"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
@
blur=
"inputBlur($event)"
ref=
"zdmj"
onkeyup=
"value=value.replace(/[^\d\.]/g,'')"
class=
"formInput"
v-model=
"formData.zdmj"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
@
blur=
"inputBlur($event)"
ref=
"zdmj"
onkeyup=
"value=value.replace(/[^\d\.]/g,'')"
class=
"formInput"
v-model=
"formData.zdmj"
/>
</td>
<td
colspan=
"2"
>
建筑占地总面积
</td>
<td
colspan=
"2"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
onkeyup=
"value=value.replace(/[^\d\.]/g,'')"
class=
"formInput"
v-model=
"formData.jzzdzmj"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
onkeyup=
"value=value.replace(/[^\d\.]/g,'')"
class=
"formInput"
v-model=
"formData.jzzdzmj"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
建筑面积(㎡)
</td>
<td
colspan=
"2"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
onkeyup=
"value=value.replace(/[^\d\.]/g,'')"
class=
"formInput"
v-model=
"formData.jzzmj"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
onkeyup=
"value=value.replace(/[^\d\.]/g,'')"
class=
"formInput"
v-model=
"formData.jzzmj"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
共有/共用权利人情况
</td>
<td
colspan=
"10"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.gygyqlrqk"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.gygyqlrqk"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
rowspan=
"2"
>
说明
</td>
<td
colspan=
"10"
rowspan=
"2"
>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.sm"
/>
<input
type=
"text"
:disabled=
"formData.qszt!='0'"
class=
"formInput"
v-model=
"formData.sm"
/>
</td>
</tr>
</table>
...
...
@@ -356,10 +369,10 @@
</
template
>
<
script
>
import
Qlr
from
"../../../components/formMenu/qlr"
;
import
Qlxz
from
"../../../components/formMenu/qlxz"
;
import
geoUtils
from
"@components/lineTree/tx/js/geoUtils"
;
import
{
import
Qlr
from
"../../../components/formMenu/qlr"
;
import
Qlxz
from
"../../../components/formMenu/qlxz"
;
import
geoUtils
from
"@components/lineTree/tx/js/geoUtils"
;
import
{
getAllList
,
getDdicByMC
,
getListByXzqbsm
,
...
...
@@ -367,15 +380,15 @@ import {
submit
,
getTree
,
registerCall
}
from
"../../../api/common"
;
import
{
}
from
"../../../api/common"
;
import
{
getBdcdyh
,
getQjZdjbxxDetailById
,
updateQjZdjbxx
,
}
from
"../../../api/zd"
;
}
from
"../../../api/zd"
;
export
default
{
inject
:
[
'getRightTree'
],
export
default
{
inject
:
[
'getRightTree'
],
name
:
""
,
components
:
{
Qlr
,
...
...
@@ -385,69 +398,69 @@ export default {
data
()
{
return
{
rules
:
[],
rjl
:
''
,
jzmd
:
''
,
jzxg
:
''
,
rjl
:
''
,
jzmd
:
''
,
jzxg
:
''
,
compareList
:
[
{
label
:
"<"
,
value
:
"<"
},
{
label
:
">"
,
value
:
">"
},
{
label
:
"="
,
value
:
"="
},
{
label
:
"<="
,
value
:
"<="
},
{
label
:
">="
,
value
:
">="
},
{
label
:
"-"
,
value
:
"-"
},
{
label
:
"<"
,
value
:
"<"
},
{
label
:
">"
,
value
:
">"
},
{
label
:
"="
,
value
:
"="
},
{
label
:
"<="
,
value
:
"<="
},
{
label
:
">="
,
value
:
">="
},
{
label
:
"-"
,
value
:
"-"
},
],
formData
:
{},
dpdm
:
''
,
//宗地底盘代码
curZdbsm
:
''
,
mainBoxWidth
:
0
,
geoAttributes
:
{
OBJECTID
:
""
,
BSM
:
""
,
YSDM
:
""
,
ZDDM
:
""
,
BDCDYH
:
""
,
ZDTZM
:
""
,
ZL
:
""
,
ZDMJ
:
0
,
MJDW
:
""
,
YT
:
""
,
DJ
:
""
,
JG
:
0
,
QLLX
:
""
,
QLXZ
:
""
,
QLSDFS
:
""
,
RJL
:
0
,
JZMD
:
0
,
JZXG
:
0
,
ZDSZD
:
""
,
ZDSZN
:
""
,
ZDSZX
:
""
,
ZDSZB
:
""
,
TFH
:
""
,
DJH
:
""
,
DAH
:
""
,
BZ
:
""
,
ZT
:
""
,
YWZT
:
""
,
BLID
:
""
,
XMMC
:
""
,
XMID
:
""
,
BGRQ
:
""
,
BGID
:
""
,
BGZT
:
""
,
TDZH
:
""
,
QSZT
:
0
,
BBLX
:
0
,
SFDB
:
0
,
QLR
:
""
,
CUTID
:
""
,
BHQKID
:
""
,
DJZQDM
:
""
,
SYQLXID
:
""
,
dpdm
:
''
,
//宗地底盘代码
curZdbsm
:
''
,
mainBoxWidth
:
0
,
geoAttributes
:
{
OBJECTID
:
""
,
BSM
:
""
,
YSDM
:
""
,
ZDDM
:
""
,
BDCDYH
:
""
,
ZDTZM
:
""
,
ZL
:
""
,
ZDMJ
:
0
,
MJDW
:
""
,
YT
:
""
,
DJ
:
""
,
JG
:
0
,
QLLX
:
""
,
QLXZ
:
""
,
QLSDFS
:
""
,
RJL
:
0
,
JZMD
:
0
,
JZXG
:
0
,
ZDSZD
:
""
,
ZDSZN
:
""
,
ZDSZX
:
""
,
ZDSZB
:
""
,
TFH
:
""
,
DJH
:
""
,
DAH
:
""
,
BZ
:
""
,
ZT
:
""
,
YWZT
:
""
,
BLID
:
""
,
XMMC
:
""
,
XMID
:
""
,
BGRQ
:
""
,
BGID
:
""
,
BGZT
:
""
,
TDZH
:
""
,
QSZT
:
0
,
BBLX
:
0
,
SFDB
:
0
,
QLR
:
""
,
CUTID
:
""
,
BHQKID
:
""
,
DJZQDM
:
""
,
SYQLXID
:
""
,
}
};
},
mixins
:
[
geoUtils
],
mixins
:
[
geoUtils
],
created
()
{
this
.
curZdbsm
=
this
.
$route
.
query
.
bsm
;
},
...
...
@@ -458,12 +471,12 @@ export default {
})
},
methods
:
{
registerCall
()
{
let
data
=
{
type
:
'zd'
,
bsm
:
this
.
$store
.
state
.
zdbsm
registerCall
()
{
let
data
=
{
type
:
'zd'
,
bsm
:
this
.
$store
.
state
.
zdbsm
}
registerCall
(
data
).
then
(
res
=>
{
registerCall
(
data
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$message
.
success
(
"登记成功"
)
this
.
getRightTree
(
this
.
$store
.
state
.
zdbsm
)
...
...
@@ -476,8 +489,8 @@ export default {
.
then
((
res
)
=>
{
if
(
res
.
result
)
{
this
.
formData
=
res
.
result
;
console
.
log
(
res
.
result
,
'res.result'
);
this
.
getXzqData
(
res
.
result
.
xzqbsm
,
res
.
result
.
djqbsm
);
console
.
log
(
res
.
result
,
'res.result'
);
this
.
getXzqData
(
res
.
result
.
xzqbsm
,
res
.
result
.
djqbsm
);
//如果没有宗地代码,自动生成
// if(res.result.zddm == null){
// this.generatorCode()
...
...
@@ -489,8 +502,8 @@ export default {
this
.
formData
.
jyjzmd
=
this
.
isInterval
(
this
.
formData
.
jyjzmd
)
?
'-'
:
this
.
formData
.
jyjzmd
;
this
.
jzxg
=
this
.
isInterval
(
this
.
formData
.
jyjzxg
)
?
this
.
formData
.
jyjzxg
:
''
;
this
.
formData
.
jyjzxg
=
this
.
isInterval
(
this
.
formData
.
jyjzxg
)
?
'-'
:
this
.
formData
.
jyjzxg
;
if
(
res
.
result
.
list
.
length
>
0
)
{
if
(
res
.
result
.
list
[
0
].
list
.
length
<
1
)
{
if
(
res
.
result
.
list
.
length
>
0
)
{
if
(
res
.
result
.
list
[
0
].
list
.
length
<
1
)
{
res
.
result
.
list
[
0
].
list
.
push
({
"pzdjbsm"
:
""
,
"pzdjmc"
:
""
,
...
...
@@ -509,12 +522,12 @@ export default {
"tdzh"
:
""
})
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
//权利性质数据传给子组件
this
.
$refs
.
qlxzModule
.
countList
=
res
.
result
.
list
;
})
}
else
{
this
.
$nextTick
(()
=>
{
}
else
{
this
.
$nextTick
(()
=>
{
//权利性质数据传给子组件
this
.
$refs
.
qlxzModule
.
countList
=
[
{
...
...
@@ -550,30 +563,31 @@ export default {
}
}
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{
});
},
//构造底盘代码,前6位是xzqbsm,接着3位djqbsm,3位djzqbsm,最后2位是syqlxbsm 860101555888GB
generatorDpdm
()
{
this
.
$store
.
state
.
xzqList
.
forEach
((
item
)
=>
{
if
(
item
.
bsm
===
this
.
formData
.
xzqbsm
)
{
this
.
$store
.
state
.
xzqList
.
forEach
((
item
)
=>
{
if
(
item
.
bsm
===
this
.
formData
.
xzqbsm
)
{
this
.
dpdm
=
item
.
dm
;
}
});
this
.
$store
.
state
.
djqList
.
forEach
((
item
)
=>
{
if
(
item
.
bsm
===
this
.
formData
.
djqbsm
)
{
this
.
$store
.
state
.
djqList
.
forEach
((
item
)
=>
{
if
(
item
.
bsm
===
this
.
formData
.
djqbsm
)
{
this
.
dpdm
=
this
.
dpdm
+
item
.
dm
;
}
});
this
.
$store
.
state
.
djzqList
.
forEach
((
item
)
=>
{
if
(
item
.
bsm
===
this
.
formData
.
djzqbsm
)
{
this
.
$store
.
state
.
djzqList
.
forEach
((
item
)
=>
{
if
(
item
.
bsm
===
this
.
formData
.
djzqbsm
)
{
this
.
dpdm
=
this
.
dpdm
+
item
.
dm
;
}
});
this
.
dpdm
=
this
.
dpdm
+
this
.
formData
.
syqlxbsm
;
this
.
$store
.
state
.
zdtzmList
.
forEach
((
item
)
=>
{
if
(
item
.
bsm
===
this
.
formData
.
zdtzmbsm
)
{
this
.
$store
.
state
.
zdtzmList
.
forEach
((
item
)
=>
{
if
(
item
.
bsm
===
this
.
formData
.
zdtzmbsm
)
{
this
.
dpdm
=
this
.
dpdm
+
item
.
dm
;
}
});
...
...
@@ -593,7 +607,8 @@ export default {
this
.
formData
.
zddm
=
res
.
result
.
substring
(
0
,
19
);
this
.
formData
.
bdcdyh
=
res
.
result
;
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{
});
this
.
$message
({
type
:
'success'
,
message
:
'生成成功!'
...
...
@@ -609,7 +624,7 @@ export default {
//生成宗地代码
generatorCode
()
{
if
((
this
.
formData
.
zddm
!=
null
&&
this
.
formData
.
zddm
!==
''
)
||
(
this
.
formData
.
bdcdyh
!=
null
&&
this
.
formData
.
bdcdyh
!==
''
))
{
if
((
this
.
formData
.
zddm
!=
null
&&
this
.
formData
.
zddm
!==
''
)
||
(
this
.
formData
.
bdcdyh
!=
null
&&
this
.
formData
.
bdcdyh
!==
''
))
{
this
.
open
();
return
;
}
...
...
@@ -621,82 +636,83 @@ export default {
this
.
formData
.
zddm
=
res
.
result
.
substring
(
0
,
19
);
this
.
formData
.
bdcdyh
=
res
.
result
;
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{
});
},
//修改宗地基本信息
updateZDxx
(
formData
)
{
//获取权利性质数据
this
.
formData
.
list
=
this
.
$refs
.
qlxzModule
.
getQlxzDataList
();
console
.
log
(
this
.
$refs
.
qlxzModule
.
getRulesResult
(),
'this.$refs.qlxzModule.getRules()'
);
console
.
log
(
this
.
$refs
.
qlxzModule
.
getRulesResult
(),
'this.$refs.qlxzModule.getRules()'
);
//判断容密高是否为区间值,如果是区间值,则将输入框的值赋予
this
.
formData
.
jyrjl
=
this
.
isInterval
(
this
.
formData
.
jyrjl
)
?
this
.
rjl
:
this
.
formData
.
jyrjl
;
this
.
formData
.
jyjzmd
=
this
.
isInterval
(
this
.
formData
.
jyjzmd
)
?
this
.
jzmd
:
this
.
formData
.
jyjzmd
;
this
.
formData
.
jyjzxg
=
this
.
isInterval
(
this
.
formData
.
jyjzxg
)
?
this
.
jzxg
:
this
.
formData
.
jyjzxg
;
this
.
rules
=
[
this
.
rules
=
[
{
data
:
this
.
formData
.
zdtzmbsm
,
name
:
'宗地特征码'
,
dom
:
this
.
$refs
.
zdtzm
,
data
:
this
.
formData
.
zdtzmbsm
,
name
:
'宗地特征码'
,
dom
:
this
.
$refs
.
zdtzm
,
rule
:
/^
\s
*$/g
,
//非空
},
{
data
:
this
.
formData
.
zddm
,
name
:
'宗地代码'
,
dom
:
this
.
$refs
.
zddm
,
data
:
this
.
formData
.
zddm
,
name
:
'宗地代码'
,
dom
:
this
.
$refs
.
zddm
,
rule
:
/^
\s
*$/g
,
//非空
},
{
data
:
this
.
formData
.
bdcdyh
,
name
:
'不动产单元号'
,
dom
:
this
.
$refs
.
bdcdyh
,
data
:
this
.
formData
.
bdcdyh
,
name
:
'不动产单元号'
,
dom
:
this
.
$refs
.
bdcdyh
,
rule
:
/^
\s
*$/g
,
//非空
},
{
data
:
this
.
formData
.
zl
,
name
:
'坐落'
,
dom
:
this
.
$refs
.
zl
,
data
:
this
.
formData
.
zl
,
name
:
'坐落'
,
dom
:
this
.
$refs
.
zl
,
rule
:
/^
\s
*$/g
,
//非空
},
{
data
:
this
.
formData
.
zdszd
,
name
:
'宗地东至'
,
dom
:
this
.
$refs
.
zdszd
,
data
:
this
.
formData
.
zdszd
,
name
:
'宗地东至'
,
dom
:
this
.
$refs
.
zdszd
,
rule
:
/^
\s
*$/g
,
//非空
},
{
data
:
this
.
formData
.
zdszb
,
name
:
'宗地北至'
,
dom
:
this
.
$refs
.
zdszb
,
data
:
this
.
formData
.
zdszb
,
name
:
'宗地北至'
,
dom
:
this
.
$refs
.
zdszb
,
rule
:
/^
\s
*$/g
,
//非空
},
{
data
:
this
.
formData
.
zdszx
,
name
:
'宗地西至'
,
dom
:
this
.
$refs
.
zdszx
,
data
:
this
.
formData
.
zdszx
,
name
:
'宗地西至'
,
dom
:
this
.
$refs
.
zdszx
,
rule
:
/^
\s
*$/g
,
//非空
},
{
data
:
this
.
formData
.
zdszn
,
name
:
'宗地南至'
,
dom
:
this
.
$refs
.
zdszn
,
data
:
this
.
formData
.
zdszn
,
name
:
'宗地南至'
,
dom
:
this
.
$refs
.
zdszn
,
rule
:
/^
\s
*$/g
,
//非空
},
{
data
:
this
.
formData
.
zdmj
,
name
:
'宗地面积'
,
dom
:
this
.
$refs
.
zdmj
,
data
:
this
.
formData
.
zdmj
,
name
:
'宗地面积'
,
dom
:
this
.
$refs
.
zdmj
,
rule
:
/^
\s
*$/g
,
//非空
},
]
// console.log(this.rules,'rules');
this
.
$refs
.
qlxzModule
.
getRules
();
let
flag
=
true
;
this
.
rules
.
forEach
(
item
=>
{
if
(
item
.
rule
.
test
(
item
.
data
)
||
item
.
data
==
null
)
{
if
(
item
.
dom
.
$el
)
{
this
.
rules
.
forEach
(
item
=>
{
if
(
item
.
rule
.
test
(
item
.
data
)
||
item
.
data
==
null
)
{
if
(
item
.
dom
.
$el
)
{
item
.
dom
.
$el
.
style
.
border
=
'1px solid red'
;
item
.
dom
.
$el
.
style
.
boxSizing
=
'border-box'
;
}
else
{
}
else
{
item
.
dom
.
style
.
border
=
'1px solid red'
;
item
.
dom
.
style
.
boxSizing
=
'border-box'
;
}
...
...
@@ -709,18 +725,18 @@ export default {
return
false
}
})
this
.
$nextTick
(()
=>
{
if
(
flag
&&
this
.
$refs
.
qlxzModule
.
getRulesResult
())
{
this
.
$nextTick
(()
=>
{
if
(
flag
&&
this
.
$refs
.
qlxzModule
.
getRulesResult
())
{
//宗地面积处理
// console.log(this.formData.zdmj,'this.formData.zdmj');
// this.formData.zdmj = this.formData.zdmj.replace(/[^\d\.]/g,'')
//判断宗地代码和不动产单元号是否手动修改过(宗地代码和不动产单元号的前14位是否和底盘代码一致)
if
(
this
.
formData
.
zddm
.
substring
(
0
,
14
)
!=
this
.
dpdm
||
this
.
formData
.
bdcdyh
.
substring
(
0
,
14
)
!=
this
.
dpdm
)
{
if
(
this
.
formData
.
zddm
.
substring
(
0
,
14
)
!=
this
.
dpdm
||
this
.
formData
.
bdcdyh
.
substring
(
0
,
14
)
!=
this
.
dpdm
)
{
this
.
$message
({
message
:
'宗地代码或不动产单元号有误,请核对后再试一次'
,
type
:
"warning"
,
});
}
else
{
}
else
{
updateQjZdjbxx
(
this
.
formData
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
...
...
@@ -738,28 +754,29 @@ export default {
});
}
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{
});
//保存到空间库里面
var
self
=
this
;
for
(
var
key
in
this
.
geoAttributes
)
{
if
(
key
==
"BSM"
)
{
for
(
var
key
in
this
.
geoAttributes
)
{
if
(
key
==
"BSM"
)
{
self
.
geoAttributes
[
key
]
=
this
.
$store
.
state
.
zdbsm
}
else
if
(
key
==
'QLSDFS'
)
{
var
qlsdfsList
=
self
.
$store
.
state
.
qlsdfsList
,
value
=
self
.
formData
.
qlsdfs
;
}
else
if
(
key
==
'QLSDFS'
)
{
var
qlsdfsList
=
self
.
$store
.
state
.
qlsdfsList
,
value
=
self
.
formData
.
qlsdfs
;
var
qlsdfs
=
qlsdfsList
.
filter
(
item
=>
{
return
item
.
bsm
==
value
;
})
self
.
geoAttributes
[
key
]
=
qlsdfs
[
0
]
?
qlsdfs
[
0
].
mc
:
""
;
}
else
{
self
.
geoAttributes
[
key
]
=
qlsdfs
[
0
]
?
qlsdfs
[
0
].
mc
:
""
;
}
else
{
var
formKay
=
key
.
toLowerCase
();
self
.
geoAttributes
[
key
]
=
self
.
formData
[
formKay
];
}
}
self
.
updAttributes
(
this
.
$store
.
state
.
zdbsm
,
'zd'
,
this
.
geoAttributes
,
function
(
res
)
{
self
.
updAttributes
(
this
.
$store
.
state
.
zdbsm
,
'zd'
,
this
.
geoAttributes
,
function
(
res
)
{
console
.
log
(
"属性保存完成!!"
);
});
}
}
else
{
}
else
{
this
.
$message
({
// message: item.name+'不能为空',
message
:
'请完善表单后再继续操作'
,
...
...
@@ -769,23 +786,23 @@ export default {
})
},
inputBlur
(
e
)
{
if
(
e
.
target
.
value
!=
''
)
{
e
.
target
.
style
.
border
=
""
}
else
{
e
.
target
.
style
.
border
=
"1px solid red"
;
inputBlur
(
e
)
{
if
(
e
.
target
.
value
!=
''
)
{
e
.
target
.
style
.
border
=
""
}
else
{
e
.
target
.
style
.
border
=
"1px solid red"
;
e
.
target
.
style
.
boxSizing
=
'border-box'
;
}
},
//提交宗地基本信息
submitZDxx
()
{
let
data
=
{
glbsm
:
this
.
$store
.
state
.
zdbsm
,
status
:
1
,
type
:
"zd"
}
submit
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
submitZDxx
()
{
let
data
=
{
glbsm
:
this
.
$store
.
state
.
zdbsm
,
status
:
1
,
type
:
"zd"
}
submit
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"提交成功!"
)
this
.
getZdjbxxData
(
this
.
curZdbsm
);
getTree
(
this
.
curZdbsm
).
then
((
res
)
=>
{
...
...
@@ -813,7 +830,8 @@ export default {
this
.
djqList
=
res
.
result
;
this
.
$store
.
state
.
djqList
=
res
.
result
;
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{
});
},
changeDjq
(
item
)
{
getListByPbsm
(
item
)
...
...
@@ -822,23 +840,25 @@ export default {
this
.
djzqList
=
res
.
result
;
this
.
$store
.
state
.
djzqList
=
res
.
result
;
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{
});
},
//判断容密高是否为区间
isInterval
(
val
)
{
if
(
val
==
'>'
||
val
==
'<'
||
val
==
'='
||
val
==
'>='
||
val
==
'<='
||
val
==
null
)
{
isInterval
(
val
)
{
if
(
val
==
'>'
||
val
==
'<'
||
val
==
'='
||
val
==
'>='
||
val
==
'<='
||
val
==
null
)
{
return
false
}
else
{
}
else
{
return
true
;
}
},
//根据宗地信息的行政区代码查询行政区地籍区地籍子区的字典数据
getXzqData
(
xzqdm
,
djqdm
)
{
getXzqData
(
xzqdm
,
djqdm
)
{
getAllList
()
.
then
((
res
)
=>
{
this
.
$store
.
state
.
xzqList
=
res
.
result
;
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{
});
getListByPbsm
(
djqdm
)
.
then
((
res
)
=>
{
...
...
@@ -849,9 +869,11 @@ export default {
//生成底盘代码
this
.
generatorDpdm
();
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{
});
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{
});
}
},
computed
:
{
...
...
@@ -869,41 +891,46 @@ export default {
},
},
watch
:
{
zl
:
function
(
val
)
{
zl
:
function
(
val
)
{
this
.
$store
.
state
.
zdzl
=
val
;
},
mj
:
function
(
val
)
{
mj
:
function
(
val
)
{
this
.
$store
.
state
.
zdmj
=
val
;
},
zddm
:
function
(
val
)
{
zddm
:
function
(
val
)
{
this
.
$store
.
state
.
zddm
=
val
;
},
zdbsm
:
function
(
val
)
{
zdbsm
:
function
(
val
)
{
this
.
getZdjbxxData
(
val
)
this
.
curZdbsm
=
val
;
},
"formData.bdcdyh"
:
function
(
val
)
{
"formData.bdcdyh"
:
function
(
val
)
{
if
(
val
!=
''
)
{
this
.
$refs
.
bdcdyh
.
style
.
border
=
''
;
}
},
"formData.zddm"
:
function
(
val
)
{
"formData.zddm"
:
function
(
val
)
{
if
(
val
!=
''
)
{
this
.
$refs
.
zddm
.
style
.
border
=
''
;
}
}
},
"$store.state.sxdrType"
:
function
(
val
)
{
debugger
this
.
$message
.
success
(
val
);
if
(
val
===
'zd'
){
"$store.state.sxdrType"
:
{
handler
(
n
)
{
this
.
$message
.
success
(
n
)
this
.
$nextTick
(()
=>
{
if
(
n
===
'zd'
)
{
this
.
getZdjbxxData
(
this
.
$store
.
state
.
zdbsm
)
}
})
},
};
immediate
:
true
,
deep
:
true
,
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.main
{
.main
{
box-sizing
:
border-box
;
padding
:
18px
;
height
:
auto
;
...
...
@@ -972,7 +999,7 @@ export default {
right
:
6px
;
text-align
:
center
;
background-color
:
#ffffff
;
.el-button
{
.el-button
{
padding
:
10px
30px
;
margin-top
:
8px
;
}
...
...
@@ -985,5 +1012,5 @@ export default {
border-color
:
rgba
(
0
,
202
,
205
,
.8
);
}
}
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment