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
e7218407
authored
2020-12-01 19:33:11 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
宗地表单保存前判断宗地代码和不动产单元号前14位是否和底盘代码一致
1 parent
05eb8c3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
35 deletions
src/views/zd/zddcb/index.vue
src/views/zd/zddcb/index.vue
View file @
e721840
...
...
@@ -454,7 +454,7 @@ export default {
})
}
//权利性质数据传给子组件
this
.
$refs
.
qlxzModule
.
countList
=
res
.
result
.
list
this
.
$refs
.
qlxzModule
.
countList
=
res
.
result
.
list
;
}
}
})
...
...
@@ -485,7 +485,6 @@ export default {
this
.
dpdm
=
this
.
dpdm
+
item
.
dm
;
}
});
console
.
log
(
this
.
dpdm
)
},
//不动产单元号再次生成提示框
...
...
@@ -540,37 +539,45 @@ export default {
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
;
//判断宗地代码和不动产单元号是否手动修改过(宗地代码和不动产单元号的前14位是否和底盘代码一致)
if
(
this
.
formData
.
zddm
.
substring
(
0
,
14
)
!=
this
.
dpdm
||
this
.
formData
.
bdcdyh
.
substring
(
0
,
14
)
!=
this
.
dpdm
){
this
.
$message
({
message
:
'宗地代码或不动产单元号有误,请核对后再试一次'
,
type
:
"warning"
,
});
}
else
{
// FIXME:表单验证错误
/* this.$refs['ruleForm'].validate((valid) => {
debugger
if (valid) {
alert('submit!');
} else {
alert("error submit")
return false;
}
});*/
updateQjZdjbxx
(
this
.
formData
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
);
this
.
$message
({
message
:
'保存成功'
,
type
:
"success"
,
});
// 保存成功再次查询
this
.
getZdjbxxData
(
this
.
$store
.
state
.
zdbsm
);
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"warning"
,
});
}
})
.
catch
((
error
)
=>
{});
}
// FIXME:表单验证错误
/* this.$refs['ruleForm'].validate((valid) => {
debugger
if (valid) {
alert('submit!');
} else {
alert("error submit")
return false;
}
});*/
updateQjZdjbxx
(
this
.
formData
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
);
this
.
$message
({
message
:
'保存成功'
,
type
:
"success"
,
});
// 保存成功再次查询
this
.
getZdjbxxData
(
this
.
$store
.
state
.
zdbsm
);
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"warning"
,
});
}
})
.
catch
((
error
)
=>
{});
},
//提交宗地基本信息
...
...
@@ -629,14 +636,17 @@ export default {
this
.
$store
.
state
.
xzqList
=
res
.
result
;
})
.
catch
((
error
)
=>
{});
getListByXzqbsm
(
xzqdm
)
.
then
((
res
)
=>
{
this
.
$store
.
state
.
djqList
=
res
.
result
;
})
.
catch
((
error
)
=>
{});
getListByPbsm
(
djqdm
)
.
then
((
res
)
=>
{
this
.
$store
.
state
.
djzqList
=
res
.
result
;
getListByXzqbsm
(
xzqdm
)
.
then
((
res
)
=>
{
this
.
$store
.
state
.
djqList
=
res
.
result
;
//生成底盘代码
this
.
generatorDpdm
();
})
.
catch
((
error
)
=>
{});
})
.
catch
((
error
)
=>
{});
}
...
...
Please
register
or
sign in
to post a comment