Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
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
d6414224
authored
2024-03-25 16:18:15 +0800
by
tianhaohao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1111
1 parent
9b80dfd7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
39 deletions
src/views/workflow/main/slsqxx/fdcq2/slxx.vue
src/views/workflow/main/slsqxx/fdcq2/slxxValidate.js
src/views/workflow/main/slsqxx/fdcq2/slxx.vue
View file @
d641422
...
...
@@ -83,16 +83,16 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"坐落:"
>
<el-input
maxlength=
"100"
:disabled=
"!viewEdit"
v-model=
"ruleForm.sldy.zl"
></el-input>
<el-form-item
label=
"坐落:"
prop=
"sldy.zl"
>
<el-input
maxlength=
"100"
:disabled=
"!viewEdit"
v-model=
"ruleForm.sldy.zl"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"10"
v-if=
"ruleForm.fdcq2"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"宗地面积:"
>
<el-form-item
label=
"宗地面积:"
prop=
"zdjbxx.zdmj"
>
<div
class=
"flex"
>
<el-input
:disabled=
"!viewEdit"
v-model=
"ruleForm.zdjbxx.zdmj"
></el-input>
<el-input
:disabled=
"!viewEdit"
v-model=
"ruleForm.zdjbxx.zdmj"
></el-input>
<el-select
disabled
v-model=
"ruleForm.zdjbxx.mjdw"
...
...
@@ -113,7 +113,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"土地性质:"
>
<el-form-item
label=
"土地性质:"
prop=
"fdcq2.tdxz"
>
<treeselect
:disabled=
"!viewEdit"
v-model=
"ruleForm.fdcq2.tdxz"
...
...
@@ -166,7 +166,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"房屋性质:"
>
<el-form-item
label=
"房屋性质:"
prop=
"fdcq2.fwxz"
>
<el-select
v-model=
"ruleForm.fdcq2.fwxz"
:disabled=
"!viewEdit"
>
<el-option
v-for=
"item in dictData['A19']"
...
...
@@ -180,7 +180,7 @@
</el-row>
<el-row
:gutter=
"10"
v-if=
"ruleForm.qlxx"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"房屋用途:"
>
<el-form-item
label=
"房屋用途:"
prop=
"fdcq2.ghyt"
>
<treeselect
v-model=
"ruleForm.fdcq2.ghyt"
:disabled=
"!viewEdit"
...
...
@@ -192,7 +192,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"房屋结构:"
>
<el-form-item
label=
"房屋结构:"
prop=
"fdcq2.fwjg"
>
<el-select
v-model=
"ruleForm.fdcq2.fwjg"
:disabled=
"!viewEdit"
>
<el-option
v-for=
"item in dictData['A46']"
...
...
@@ -217,7 +217,7 @@
</el-row>
<el-row
:gutter=
"10"
v-if=
"ruleForm.qlxx"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"所在层:"
>
<el-form-item
label=
"所在层:"
prop=
"fdcq2.szc"
>
<el-input
maxlength=
"20"
v-model=
"ruleForm.fdcq2.szc"
...
...
@@ -225,7 +225,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"总层数:"
>
<el-form-item
label=
"总层数:"
prop=
"fdcq2.zcs"
>
<el-input
maxlength=
"4"
:disabled=
"!viewEdit"
...
...
@@ -234,7 +234,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"房地产交易价格:"
>
<el-form-item
label=
"房地产交易价格:"
prop=
"fdcq2.fdcjyjg"
>
<div
class=
"flex"
>
<el-input
maxlength=
"11"
...
...
@@ -256,7 +256,7 @@
</el-row>
<el-row
:gutter=
"10"
v-if=
"ruleForm.fdcq2"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"建筑面积:"
>
<el-form-item
label=
"建筑面积:"
prop=
"fdcq2.jzmj"
>
<div
class=
"flex"
>
<el-input
maxlength=
"12"
...
...
@@ -461,7 +461,8 @@
}
})
that
.
czrOptions
=
that
.
ruleForm
.
qlrList
;
that
.
isSave
=
that
.
viewEdit
that
.
isSave
=
that
.
viewEdit
;
this
.
rules
=
formValidate
(
this
.
ruleForm
.
sldy
.
djlx
);
}
else
{
that
.
isSave
=
false
that
.
$confirm
(
res
.
message
,
'提示'
,
{
...
...
@@ -548,11 +549,7 @@
},
//传递参数
propsParam
:
{},
rules
:
{
'fdcq2.djyy'
:
[
{
required
:
true
,
message
:
'请输入登记原因'
,
trigger
:
'blur'
}
]
}
rules
:
{}
}
},
methods
:
{
...
...
src/views/workflow/main/slsqxx/fdcq2/slxxValidate.js
View file @
d641422
...
...
@@ -4,22 +4,45 @@
* @author: renchao
*/
export
function
formValidate
(
djlx
)
{
switch
(
djlx
)
{
case
"100"
:
return
fristValidate
();
case
"200"
:
return
transferValidate
();
case
"300"
:
return
changeValidate
();
case
"400"
:
return
logoutValidate
();
case
"500"
:
return
riviseValidate
();
case
"901"
:
return
renewalValidate
();
case
"902"
:
return
replaceValidate
();
var
formRules
=
{
'sldy.zl'
:
[
{
required
:
true
,
message
:
'坐落:'
,
trigger
:
'blur'
}
],
'zdjbxx.zdmj'
:
[
{
required
:
true
,
message
:
'宗地面积:'
,
trigger
:
'blur'
}
],
'fdcq2.tdxz'
:
[
{
required
:
false
,
message
:
'土地性质:'
,
trigger
:
'blur'
}
],
'fdcq2.fwxz'
:
[
{
required
:
true
,
message
:
'房屋性质:'
,
trigger
:
'blur'
}
],
'fdcq2.ghyt'
:
[
{
required
:
true
,
message
:
'房屋用途:'
,
trigger
:
'blur'
}
],
'fdcq2.fwjg'
:
[
{
required
:
true
,
message
:
'房屋结构:'
,
trigger
:
'blur'
}
],
'fdcq2.szc'
:
[
{
required
:
true
,
message
:
'所在层:'
,
trigger
:
'blur'
}
],
'fdcq2.zcs'
:
[
{
required
:
true
,
message
:
'总层数:'
,
trigger
:
'blur'
}
],
'fdcq2.jzmj'
:
[
{
required
:
true
,
message
:
'建筑面积:'
,
trigger
:
'blur'
}
],
'fdcq2.djyy'
:
[
{
required
:
true
,
message
:
'登记原因:'
,
trigger
:
'blur'
}
],
'fdcq2.fdcjyjg'
:
[
{
required
:
false
,
message
:
'房地产交易价格:'
,
trigger
:
'blur'
}
]
}
if
(
djlx
==
"200"
)
{
formRules
[
"cfdj.fdcjyjg"
][
0
].
required
=
true
;
}
return
formRules
;
}
/**
...
...
@@ -28,12 +51,6 @@ export function formValidate (djlx) {
* @author: renchao
*/
export
function
fristValidate
()
{
var
formRules
=
{
'diyaq.djyy'
:
[
{
required
:
true
,
message
:
'请输入登记原因'
,
trigger
:
'blur'
}
]
}
return
formRules
;
}
...
...
Please
register
or
sign in
to post a comment