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
1311e185
authored
2023-08-30 14:05:09 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:申请单元列表
1 parent
f324b9ce
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
158 additions
and
187 deletions
src/views/workflow/components/leftmenu/ordinaryMenu.vue
src/views/workflow/workFrame.vue
src/views/ywbl/mixin/index.js
src/views/ywbl/slsqxx/ygdy/slxx.vue
src/views/workflow/components/leftmenu/ordinaryMenu.vue
View file @
1311e18
<!--
* @Description: workFrame左侧菜单列表-普通
* @Autor: renchao
* @LastEditTime: 2023-08-
28 08:44:31
* @LastEditTime: 2023-08-
30 13:59:09
-->
<
template
>
<div
class=
"leftmenu"
:class=
"
{ 'animation-map-drawer': isShowdrawer }">
...
...
@@ -194,7 +194,6 @@
});
});
},
//批量按钮点击事件
/**
* @description: 批量按钮点击事件
* @author: renchao
...
...
@@ -203,9 +202,7 @@
this
.
currentSelectProps
.
batchOperation
=
true
;
this
.
activeIndex
=
"-1"
;
this
.
$parent
.
stepForm
(
0
);
},
//批量操作
/**
* @description: 批量操作
* @author: renchao
...
...
@@ -216,7 +213,6 @@
dataList
:
this
.
unitData
,
},
'50%'
,
true
)
},
//申请单元点击事件
/**
* @description: 申请单元点击事件
* @param {*} index
...
...
src/views/workflow/workFrame.vue
View file @
1311e18
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-
09 14:54:20
* @LastEditTime: 2023-08-
30 14:03:05
-->
<
template
>
<div
class=
"container"
>
...
...
@@ -132,7 +132,6 @@
* @author: renchao
*/
getCurrentSelectProps
(
val
)
{
console
.
log
(
val
,
'valvalvalval'
);
this
.
currentSelectProps
=
val
getZdInfo
(
val
.
bdcdyid
).
then
(
res
=>
{
this
.
bsmZd
=
res
?.
result
[
0
]?.
bsmZd
...
...
@@ -158,7 +157,6 @@
unClaimTask
(
this
.
bsmSlsq
,
this
.
bestepid
);
}
},
//申请单元点击事件
/**
* @description: 申请单元点击事件
* @param {*} index
...
...
@@ -167,7 +165,7 @@
stepForm
(
index
)
{
getStepFormInfo
(
this
.
currentSelectProps
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
fresh
++
;
//
this.fresh++;
//获取单元对应的所有表单信息
this
.
tabList
=
res
.
result
;
//默认加载第一个表单信息
...
...
src/views/ywbl/mixin/index.js
View file @
1311e18
...
...
@@ -2,13 +2,9 @@
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-
02 14:08:27
* @LastEditTime: 2023-08-
30 13:51:05
*/
export
default
{
data
()
{
return
{
}
},
watch
:
{
'ruleForm.sldy.gyfs'
:
{
handler
:
function
(
val
,
oldVal
)
{
...
...
@@ -22,5 +18,5 @@ export default {
},
immediate
:
true
}
}
,
}
}
...
...
src/views/ywbl/slsqxx/ygdy/slxx.vue
View file @
1311e18
...
...
@@ -8,8 +8,7 @@
ref=
"ruleForm"
:label-position=
"flag ? 'top' : ''"
:inline=
"flag"
label-width=
"120px"
>
label-width=
"120px"
>
<div
class=
"slxx_con"
:class=
"flag ? 'formMarginBot0' : ''"
>
<div
class=
"slxx_title title-block"
>
申请业务信息
...
...
@@ -135,8 +134,7 @@
<el-form-item
label=
"是否存在禁止或限制:"
>
<el-input
v-model=
"ruleForm.ygdj.sfczjzhxz"
:disabled=
"ruleForm.sldy.djlx == '300' && !viewEdit"
></el-input>
:disabled=
"ruleForm.sldy.djlx == '300' && !viewEdit"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -144,19 +142,16 @@
<div
class=
"flex"
>
<el-input
v-model=
"ruleForm.ygdj.qdjg"
:disabled=
"!viewEdit"
></el-input>
:disabled=
"!viewEdit"
></el-input>
<el-select
v-model=
"ruleForm.ygdj.jedw"
:disabled=
"!viewEdit"
style=
"width: 68px"
>
style=
"width: 68px"
>
<el-option
v-for=
"item in dictData['A57']"
:key=
"item.dcode"
:label=
"item.dname"
:value=
"item.dcode"
></el-option>
:value=
"item.dcode"
></el-option>
</el-select>
</div>
</el-form-item>
...
...
@@ -166,8 +161,7 @@
<el-date-picker
v-model=
"ruleForm.ygdj.zwlxqssj"
:disabled=
"!viewEdit"
type=
"date"
></el-date-picker>
type=
"date"
></el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -175,8 +169,7 @@
<el-date-picker
v-model=
"ruleForm.ygdj.zwlxjssj"
:disabled=
"!viewEdit"
type=
"date"
></el-date-picker>
type=
"date"
></el-date-picker>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -185,8 +178,7 @@
<el-form-item
label=
"担保范围:"
>
<el-input
v-model=
"ruleForm.ygdj.dbfw"
:disabled=
"ruleForm.sldy.djlx == '300' && !viewEdit"
></el-input>
:disabled=
"ruleForm.sldy.djlx == '300' && !viewEdit"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -198,8 +190,7 @@
maxlength=
"500"
show-word-limit
v-model=
"ruleForm.ygdj.fj"
:disabled=
"!viewEdit"
></el-input>
:disabled=
"!viewEdit"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -212,8 +203,7 @@
<el-form-item
label=
"共有方式:"
>
<el-radio-group
:disabled=
"!viewEdit"
v-model=
"ruleForm.sldy.gyfs"
>
v-model=
"ruleForm.sldy.gyfs"
>
<el-radio
label=
"0"
>
单独所有
</el-radio>
<el-radio
label=
"1"
>
共同共有
</el-radio>
<el-radio
label=
"2"
>
按份所有
</el-radio>
...
...
@@ -226,8 +216,7 @@
<el-radio-group
v-model=
"ruleForm.sldy.sqfbcz"
:disabled=
"!viewEdit"
@
input=
"updaterow()"
>
@
input=
"updaterow()"
>
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"0"
>
否
</el-radio>
</el-radio-group>
...
...
@@ -235,20 +224,17 @@
</el-col>
<el-col
:span=
"6"
v-show=
"ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"
>
v-show=
"ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"
>
<el-form-item
label=
"持证人:"
>
<el-select
v-model=
"czr"
placeholder=
"持证人"
:disabled=
"!viewEdit"
>
:disabled=
"!viewEdit"
>
<el-option
v-for=
"item in czrOptions"
:key=
"item.zjh"
:label=
"item.sqrmc"
:value=
"item.zjh"
></el-option>
:value=
"item.zjh"
></el-option>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -257,8 +243,7 @@
@
upDateQlrxxList=
"upDateQlrxxList"
:tableData=
"ruleForm.qlrList"
:disabled=
"viewEdit"
:gyfs=
"ruleForm.sldy.gyfs"
/>
:gyfs=
"ruleForm.sldy.gyfs"
/>
<div
class=
"slxx_title title-block"
>
义务人信息
<div
class=
"triangle"
></div>
...
...
@@ -267,8 +252,7 @@
@
upDateQlrxxList=
"upDateYwrxxList"
:tableData=
"ruleForm.ywrList"
:disabled=
"viewEdit"
:gyfs=
"ruleForm.sldy.gyfs"
/>
:gyfs=
"ruleForm.sldy.gyfs"
/>
<div
class=
"slxx_title title-block"
>
登记原因
<div
class=
"triangle"
></div>
...
...
@@ -282,8 +266,7 @@
maxlength=
"500"
show-word-limit
:disabled=
"!viewEdit"
v-model=
"ruleForm.ygdj.djyy"
></el-input>
v-model=
"ruleForm.ygdj.djyy"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -297,163 +280,161 @@
</div>
</
template
>
<
script
>
import
ywmix
from
"@/views/ywbl/mixin/index"
;
import
qlrCommonTable
from
"@/views/workflow/components/qlrCommonTable"
;
import
{
Init
,
saveData
}
from
"@/api/workflow/ygdyFlow.js"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
mixins
:
[
ywmix
],
created
()
{
this
.
viewEdit
=
this
.
$parent
.
currentSelectTab
.
ableOperation
;
this
.
propsParam
=
this
.
$attrs
;
var
formdata
=
new
FormData
();
let
that
=
this
;
this
.
loading
=
true
;
formdata
.
append
(
"bsmSldy"
,
this
.
propsParam
.
bsmSldy
);
formdata
.
append
(
"bsmSlsq"
,
this
.
$route
.
query
.
bsmSlsq
);
formdata
.
append
(
"djlx"
,
this
.
propsParam
.
djlx
);
formdata
.
append
(
"isEdit"
,
this
.
viewEdit
);
Init
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
that
.
ruleForm
=
res
.
result
;
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
this
.
ruleForm
.
qlrList
.
forEach
((
item
)
=>
{
if
(
item
.
sfczr
==
1
)
{
this
.
czr
=
item
.
sqrmc
;
}
});
setTimeout
(()
=>
{
that
.
loading
=
false
;
},
300
);
}
});
},
components
:
{
qlrCommonTable
},
computed
:
{
...
mapGetters
([
"dictData"
,
"flag"
]),
},
data
()
{
return
{
//表单是否可操作
viewEdit
:
true
,
loading
:
false
,
disabled
:
true
,
tdytOption
:
[],
czrOptions
:
[],
czr
:
""
,
ruleForm
:
{},
//传递参数
propsParam
:
this
.
$attrs
,
rules
:
{},
};
},
methods
:
{
/**
* @description: 更新权利人信息
* @param {*} val
* @author: renchao
*/
upDateQlrxxList
(
val
)
{
this
.
ruleForm
.
qlrList
=
_
.
cloneDeep
(
val
);
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
},
/**
* @description: 义务人信息
* @param {*} val
* @author: renchao
*/
upDateYwrxxList
(
val
)
{
this
.
ruleForm
.
ywrList
=
_
.
cloneDeep
(
val
);
},
// 是否持证人变化
/**
* @description: 是否持证人变化
* @param {*} val
* @author: renchao
*/
updaterow
()
{
this
.
czr
=
""
;
},
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit
()
{
import
ywmix
from
"@/views/ywbl/mixin/index"
;
import
qlrCommonTable
from
"@/views/workflow/components/qlrCommonTable"
;
import
{
Init
,
saveData
}
from
"@/api/workflow/ygdyFlow.js"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
mixins
:
[
ywmix
],
created
()
{
this
.
viewEdit
=
this
.
$parent
.
currentSelectTab
.
ableOperation
;
this
.
propsParam
=
this
.
$attrs
;
var
formdata
=
new
FormData
();
let
that
=
this
;
if
(
this
.
ruleForm
.
qlrList
.
length
==
0
)
{
this
.
$message
({
showClose
:
true
,
message
:
"请确认权利人信息"
,
type
:
"error"
,
});
return
false
;
}
if
(
this
.
ruleForm
.
sldy
.
gyfs
==
"0"
)
{
if
(
this
.
ruleForm
.
qlrList
.
length
>
1
)
{
this
.
$message
({
showClose
:
true
,
message
:
"共有方式:单独所有,权利人只能是一个人"
,
type
:
"error"
,
this
.
loading
=
true
;
formdata
.
append
(
"bsmSldy"
,
this
.
propsParam
.
bsmSldy
);
formdata
.
append
(
"bsmSlsq"
,
this
.
$route
.
query
.
bsmSlsq
);
formdata
.
append
(
"djlx"
,
this
.
propsParam
.
djlx
);
formdata
.
append
(
"isEdit"
,
this
.
viewEdit
);
Init
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
console
.
log
(
res
.
result
,
'res.result'
);
that
.
ruleForm
=
res
.
result
;
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
this
.
ruleForm
.
qlrList
.
forEach
((
item
)
=>
{
if
(
item
.
sfczr
==
1
)
{
this
.
czr
=
item
.
sqrmc
;
}
});
return
false
;
that
.
loading
=
false
}
this
.
ruleForm
.
qlrList
[
0
].
sfczr
=
"1"
;
}
else
{
if
(
this
.
ruleForm
.
qlrList
.
length
<=
1
)
{
})
},
components
:
{
qlrCommonTable
},
computed
:
{
...
mapGetters
([
"dictData"
,
"flag"
])
},
data
()
{
return
{
//表单是否可操作
viewEdit
:
true
,
loading
:
false
,
disabled
:
true
,
tdytOption
:
[],
czrOptions
:
[],
czr
:
""
,
ruleForm
:
{},
//传递参数
propsParam
:
this
.
$attrs
,
rules
:
{}
}
},
methods
:
{
/**
* @description: 更新权利人信息
* @param {*} val
* @author: renchao
*/
upDateQlrxxList
(
val
)
{
this
.
ruleForm
.
qlrList
=
_
.
cloneDeep
(
val
);
this
.
czrOptions
=
this
.
ruleForm
.
qlrList
;
},
/**
* @description: 义务人信息
* @param {*} val
* @author: renchao
*/
upDateYwrxxList
(
val
)
{
this
.
ruleForm
.
ywrList
=
_
.
cloneDeep
(
val
);
},
/**
* @description: 是否持证人变化
* @param {*} val
* @author: renchao
*/
updaterow
()
{
this
.
czr
=
""
;
},
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit
()
{
let
that
=
this
;
if
(
this
.
ruleForm
.
qlrList
.
length
==
0
)
{
this
.
$message
({
showClose
:
true
,
message
:
"共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上"
,
message
:
"请确认权利人信息"
,
type
:
"error"
,
});
return
false
;
}
//是否分别持证
if
(
this
.
ruleForm
.
sldy
.
sqfbcz
==
"1"
)
{
//是
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
item
.
sfczr
=
"1"
;
});
if
(
this
.
ruleForm
.
sldy
.
gyfs
==
"0"
)
{
if
(
this
.
ruleForm
.
qlrList
.
length
>
1
)
{
this
.
$message
({
showClose
:
true
,
message
:
"共有方式:单独所有,权利人只能是一个人"
,
type
:
"error"
,
});
return
false
;
}
this
.
ruleForm
.
qlrList
[
0
].
sfczr
=
"1"
;
}
else
{
if
(
!
that
.
czr
)
{
th
at
.
$message
({
if
(
this
.
ruleForm
.
qlrList
.
length
<=
1
)
{
th
is
.
$message
({
showClose
:
true
,
message
:
"请选择持证人"
,
message
:
"共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上"
,
type
:
"error"
,
});
return
false
;
}
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
zjh
==
this
.
czr
)
{
//是否分别持证
if
(
this
.
ruleForm
.
sldy
.
sqfbcz
==
"1"
)
{
//是
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
item
.
sfczr
=
"1"
;
}
else
{
item
.
sfczr
=
"0"
;
});
}
else
{
if
(
!
that
.
czr
)
{
that
.
$message
({
showClose
:
true
,
message
:
"请选择持证人"
,
type
:
"error"
,
});
return
false
;
}
});
this
.
ruleForm
.
qlrList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
zjh
==
this
.
czr
)
{
item
.
sfczr
=
"1"
;
}
else
{
item
.
sfczr
=
"0"
;
}
});
}
}
saveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
showClose
:
true
,
message
:
"保存成功!"
,
type
:
"success"
,
});
this
.
$store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
res
.
message
,
type
:
"error"
})
}
})
}
saveData
(
this
.
ruleForm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
showClose
:
true
,
message
:
"保存成功!"
,
type
:
"success"
,
});
this
.
$store
.
dispatch
(
"user/refreshPage"
,
true
);
}
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
>
...
...
Please
register
or
sign in
to post a comment