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
5743a556
authored
2023-05-08 10:00:18 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:登记
1 parent
d2dc1f37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
96 deletions
public/index.html
src/views/workflow/components/qlrCommonTable.vue
src/views/ywbl/slsqxx/jsydsyq/slxx.vue
public/index.html
View file @
5743a55
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-06 10:
03:44
* @LastEditTime: 2023-05-06 10:
24:46
-->
<!DOCTYPE html>
<html>
...
...
@@ -18,11 +18,10 @@
</title>
</head>
<script>
const
appConfig
=
fetch
(
'<%= BASE_URL %>config.json'
)
fetch
(
'<%= BASE_URL %>config.json'
)
.
then
(
response
=>
response
.
json
())
.
then
(
config
=>
{
window
.
config
=
config
console
.
log
(
window
.
config
,
'1111111111111111111111'
);
});
</script>
...
...
src/views/workflow/components/qlrCommonTable.vue
View file @
5743a55
<
template
>
<div>
<lb-table
:column=
"column"
:pagination=
"false"
:key=
"key"
:data=
"tableDataList"
>
<lb-table
:column=
"column"
:pagination=
"false"
:key=
"key"
:heightNumSetting=
"true"
:minHeight=
"150"
:data=
"tableDataList"
>
</lb-table>
<addQlr
v-model=
"dialog"
:details=
"details"
:showButton=
"showButton"
@
updateDetail=
"handleupdateDetail"
/>
</div>
...
...
src/views/ywbl/slsqxx/jsydsyq/slxx.vue
View file @
5743a55
...
...
@@ -138,8 +138,8 @@
<el-col
:span=
"6"
v-show=
"ruleForm.slywxx.gyfs == '1'"
>
<el-form-item
label=
"是否分别持证:"
>
<el-radio-group
v-model=
"ruleForm.slywxx.sqfbcz"
>
<el-radio
:label
=
1
>
是
</el-radio>
<el-radio
:label
=
0
>
否
</el-radio>
<el-radio
:label
=
1
>
是
</el-radio>
<el-radio
:label
=
0
>
否
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
...
...
@@ -152,16 +152,15 @@
</el-form-item>
</el-col>
</el-row>
<qlrCommonTable
:tableData=
"ruleForm.qlrList"
@
upDateQlrxxList=
"upDateQlrxxList"
<qlrCommonTable
:tableData=
"ruleForm.qlrList"
@
upDateQlrxxList=
"upDateQlrxxList"
:key=
"key"
:viewtype=
"$route.query.viewtype"
:gyfs=
"ruleForm.slywxx.gyfs"
/>
<div
v-if=
"ruleForm.ywrList && ruleForm.ywrList.length > 0"
>
<div
class=
"slxx_title title-block"
>
义务人信息
<div
class=
"triangle"
></div>
</div>
<qlrCommonTable
v-if=
"ruleForm.ywrList"
:tableData=
"ruleForm.ywrList"
@
upDateQlrxxList=
"upDateYwrxxList"
<qlrCommonTable
v-if=
"ruleForm.ywrList"
:tableData=
"ruleForm.ywrList"
:key=
"key"
@
upDateQlrxxList=
"upDateYwrxxList"
:viewtype=
"$route.query.viewtype"
/>
</div>
...
...
@@ -188,53 +187,56 @@
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
"vuex"
import
{
Init
,
saveData
}
from
"@/api/workflow/jsydsyqFlow.js"
import
qlrCommonTable
from
"@/views/workflow/components/qlrCommonTable"
export
default
{
mounted
()
{
this
.
propsParam
=
this
.
$attrs
;
var
formdata
=
new
FormData
();
let
that
=
this
this
.
$startLoading
();
formdata
.
append
(
"bsmSldy"
,
this
.
propsParam
.
bsmSldy
);
formdata
.
append
(
"djlx"
,
this
.
propsParam
.
djlx
);
Init
(
formdata
).
then
((
res
)
=>
{
this
.
$nextTick
(()
=>
{
that
.
ruleForm
=
res
.
result
;
that
.
$endLoading
();
that
.
isShow
=
true
;
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
import
{
mapGetters
}
from
"vuex"
import
{
Init
,
saveData
}
from
"@/api/workflow/jsydsyqFlow.js"
import
qlrCommonTable
from
"@/views/workflow/components/qlrCommonTable"
export
default
{
mounted
()
{
this
.
propsParam
=
this
.
$attrs
;
var
formdata
=
new
FormData
();
let
that
=
this
this
.
$startLoading
();
formdata
.
append
(
"bsmSldy"
,
this
.
propsParam
.
bsmSldy
);
formdata
.
append
(
"djlx"
,
this
.
propsParam
.
djlx
);
Init
(
formdata
).
then
((
res
)
=>
{
this
.
$nextTick
(()
=>
{
that
.
ruleForm
=
res
.
result
;
that
.
$endLoading
();
that
.
isShow
=
true
;
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
})
})
})
},
components
:
{
qlrCommonTable
},
computed
:
{
...
mapGetters
([
"dictData"
,
"flag"
])
},
data
()
{
return
{
isShow
:
false
,
disabled
:
true
,
czrOptions
:
[],
ruleForm
:
{},
//传递参数
propsParam
:
{},
rules
:
{}
}
},
methods
:
{
// 更新权利人信息
upDateQlrxxList
(
val
)
{
this
.
ruleForm
.
qlrList
&&
(
this
.
ruleForm
.
qlrList
=
_
.
cloneDeep
(
val
))
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
},
// 更新义务人信息
upDateYwrxxList
(
val
)
{
this
.
ruleForm
.
ywrList
&&
(
this
.
ruleForm
.
ywrList
=
_
.
cloneDeep
(
val
))
components
:
{
qlrCommonTable
},
computed
:
{
...
mapGetters
([
"dictData"
,
"flag"
])
},
data
()
{
return
{
key
:
0
,
isShow
:
false
,
disabled
:
true
,
czrOptions
:
[],
ruleForm
:
{},
//传递参数
propsParam
:
{},
rules
:
{}
}
},
onSubmit
()
{
if
(
this
.
ruleForm
.
qlrList
.
length
==
0
)
{
methods
:
{
// 更新权利人信息
upDateQlrxxList
(
val
)
{
this
.
ruleForm
.
qlrList
&&
(
this
.
ruleForm
.
qlrList
=
_
.
cloneDeep
(
val
))
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
this
.
key
++
},
// 更新义务人信息
upDateYwrxxList
(
val
)
{
this
.
ruleForm
.
ywrList
&&
(
this
.
ruleForm
.
ywrList
=
_
.
cloneDeep
(
val
))
this
.
key
++
},
onSubmit
()
{
if
(
this
.
ruleForm
.
qlrList
.
length
==
0
)
{
this
.
$message
({
showClose
:
true
,
message
:
"请确认权利人信息"
,
...
...
@@ -242,53 +244,53 @@ export default {
});
return
false
;
}
if
(
this
.
ruleForm
.
slywxx
.
gyfs
==
"0"
)
{
if
(
this
.
ruleForm
.
qlrList
.
length
>
1
)
{
this
.
$message
({
showClose
:
true
,
message
:
"共有方式:单独所有,权利人只能是一个人"
,
type
:
"error"
,
});
return
false
;
if
(
this
.
ruleForm
.
slywxx
.
gyfs
==
"0"
)
{
if
(
this
.
ruleForm
.
qlrList
.
length
>
1
)
{
this
.
$message
({
showClose
:
true
,
message
:
"共有方式:单独所有,权利人只能是一个人"
,
type
:
"error"
,
});
return
false
;
}
this
.
ruleForm
.
qlrList
[
0
].
sfczr
=
"1"
;
}
this
.
ruleForm
.
qlrList
[
0
].
sfczr
=
"1"
;
}
if
(
this
.
ruleForm
.
slywxx
.
gyfs
==
"1"
)
{
//是否分别持证
if
(
this
.
ruleForm
.
slywxx
.
sqfbcz
==
'1'
){
//是
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
item
.
sfczr
=
"1"
;
});
}
else
{
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
zjh
==
this
.
ruleForm
.
czr
){
if
(
this
.
ruleForm
.
slywxx
.
gyfs
==
"1"
)
{
//是否分别持证
if
(
this
.
ruleForm
.
slywxx
.
sqfbcz
==
'1'
)
{
//是
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
item
.
sfczr
=
"1"
;
}
});
}
}
saveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
showClose
:
true
,
message
:
"保存成功!"
,
type
:
"success"
,
});
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
res
.
message
,
type
:
"error"
,
});
});
}
else
{
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
zjh
==
this
.
ruleForm
.
czr
)
{
item
.
sfczr
=
"1"
;
}
});
}
}
});
saveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
showClose
:
true
,
message
:
"保存成功!"
,
type
:
"success"
,
});
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
res
.
message
,
type
:
"error"
,
});
}
});
},
},
},
};
};
</
script
>
<
style
scoped
lang=
'scss'
>
@import
"~@/styles/public.scss"
;
@import
"~@/styles/slxx/slxx.scss"
;
@import
"~@/styles/public.scss"
;
@import
"~@/styles/slxx/slxx.scss"
;
</
style
>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment