Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
4a754bef
Commit
4a754bef
authored
Dec 29, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '工单抄送,按照条件抄送'
parent
8905faae
Pipeline
#83647
passed with stages
Changes
7
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
364 additions
and
9 deletions
+364
-9
index.jsx
src/components/PeopleSelector/index.jsx
+0
-0
index.less
src/components/PeopleSelector/index.less
+274
-2
index.jsx
src/components/RuleConfig/index.jsx
+26
-2
FlowChart.jsx
...r/workOrder/workflowEdit/workFlowComponents/FlowChart.jsx
+26
-0
FlowChartRt.jsx
...workOrder/workflowEdit/workFlowComponents/FlowChartRt.jsx
+30
-3
NodeModal.jsx
...Edit/workFlowComponents/flowChartComponents/NodeModal.jsx
+8
-2
ConfigCopyPerson.jsx
...wChartComponents/nodeModalComponents/ConfigCopyPerson.jsx
+0
-0
No files found.
src/components/PeopleSelector/index.jsx
View file @
4a754bef
This diff is collapsed.
Click to expand it.
src/components/PeopleSelector/index.less
View file @
4a754bef
.pushTestContent {
display: flex;
position: relative;
width: 900px;
.ant-modal-header {
border-bottom: none;
}
.ant-modal-title {
margin-top: 10px;
}
.ant-modal-body {
padding-bottom: 0;
}
:global {
::-webkit-scrollbar-thumb {
border-radius: 0;
}
::-webkit-scrollbar {
display: none;
}
}
.content {
display: flex;
}
.searchHeader {
display: flex;
align-items: flex-end;
background-color: #f2f1f1;
height: 40px;
margin-left: -15px;
margin-right: -15px;
line-height: 40px;
.people {
width: 62px;
height: 38px;
color: #666666;
display: flex;
align-items: center;
justify-content: center;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.peoplePick {
background: #fff;
width: 62px;
height: 38px;
color: #50a9f1;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.list {
height: 40px;
line-height: 40px;
margin-left: 45px;
font-weight: 700;
font-size: 14px;
color: #00070d;
}
.searchInput {
width: 200px;
z-index: 1;
.ant-input,
.ant-input-affix-wrapper {
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
}
.ant-input-group-addon {
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
}
.ant-input-search-button {
width: 40px;
border-top-right-radius: 20px !important;
border-bottom-right-radius: 20px !important;
}
}
.checkList {
display: flex;
align-items: center;
.person {
width: 10px;
height: 3px;
margin-right: 5px;
background-color: #87e8de;
margin-left: 20px;
}
.role {
width: 10px;
height: 3px;
margin-right: 5px;
background-color: #a785dd;
margin-left: 20px;
}
}
.person {
width: 10px;
height: 3px;
margin-right: 5px;
background-color: #87e8de;
margin-left: 20px;
}
.role {
width: 10px;
height: 3px;
margin-right: 5px;
background-color: #a785dd;
margin-left: 20px;
}
}
.checkContainer {
height: 500px;
width: 500px;
overflow-y: scroll;
margin:
2
0px 0;
margin:
0 0 1
0px 0;
padding-right: 5px;
.checkContent {
display: flex;
...
...
@@ -34,6 +145,7 @@
.ant-checkbox-wrapper {
min-width: 150px;
margin-left: 0;
margin-bottom: 5px;
}
// .ant-checkbox-group-item {
// min-width: 150px !important;
...
...
@@ -48,7 +160,167 @@
}
}
}
.checkContainer1 {
height: 500px;
overflow-y: scroll;
.checkContents {
.list {
border: 1px solid #c2cdfd;
border-radius: 5px;
margin-top: 20px;
.parent {
margin: -20px 0 0 20px;
height: 38px;
line-height: 38px;
transition: all 0.3s;
overflow: hidden;
span {
color: grey;
font-size: 12px;
background: #fff;
}
.imgDown {
display: inline-block;
position: relative;
top: -2px;
margin-right: 5px;
&:hover {
cursor: pointer;
}
}
}
.childs {
overflow: hidden;
width: 490px;
transition: all 0.3s;
.child {
overflow: hidden;
height: 38px;
line-height: 38px;
padding-left: 30px;
border-bottom: 1px solid #f2f2f2;
&:hover {
color: #0087f7;
cursor: pointer;
}
&[active='true'] {
color: #0087f7;
}
}
}
}
.checkContent1 {
display: flex;
flex-wrap: wrap;
margin-left: 15px;
width: 475px;
margin-top: 0px;
flex-direction: row;
// border: 1px solid #c2cdfd;
// border-radius: 5px;
min-height: 50px;
padding: 10px 10px 0px 6px;
.check {
width: 130px;
margin-bottom: 10px;
margin-right: 10px;
.ant-checkbox-wrapper span {
max-width: 130px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
.checkGroupContent {
display: flex;
flex-wrap: wrap;
width: 460px;
flex-direction: row;
border: 1px solid #c2cdfd;
border-radius: 5px;
margin: 10px 15px;
margin-right: 5px;
min-height: 50px;
padding: 0 10px 10px 16px;
.ant-checkbox-wrapper {
background-color: #fff;
}
.topCheckbox {
height: 20px;
margin: -10px 0 0 20px;
line-height: 20px;
> span {
background-color: white;
}
}
.topCheckbox > label :hover {
font-weight: 600;
}
.bottomCheckbox {
display: flex;
flex-wrap: wrap;
margin-left: -88px;
margin-top: 15px;
.ant-checkbox-wrapper {
display: flex;
margin-left: 0;
width: 130px;
margin-right: 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-top: 10px;
.ant-checkbox + span {
display: flex;
}
}
.fontlabel {
display: inline-block;
width: 130px;
overflow: hidden;
text-overflow: ellipsis;
// white-space: nowrap;
}
// .ant-checkbox-group-item {
// min-width: 150px !important;
// }
// .ant-checkbox-wrapper {
// min-width: 150px !important;
// }
}
.checkdiv {
display: flex;
flex-wrap: wrap;
}
}
}
}
.tableRight {
margin-left: 10px;
padding: 10px 0px 10px 10px;
border-left: 1px solid #f0f0f0;
height: 510px;
width: 370px;
overflow-y: scroll;
.selectContent {
display: flex;
flex-wrap: wrap;
flex-direction: row;
.selectValue {
margin-bottom: 15px;
}
}
}
}
src/components/RuleConfig/index.jsx
View file @
4a754bef
/* eslint-disable no-else-return */
import
React
,
{
useEffect
,
useState
,
useRef
}
from
'react'
;
import
{
RuleValidation
,
RuleValidationPost
}
from
'@/services/workflow/workflow'
;
import
{
Modal
,
Input
,
Form
,
message
,
Dropdown
,
Menu
}
from
'antd'
;
...
...
@@ -9,6 +10,7 @@ const fnList = [
{
label
:
'是否为工作时间'
,
value
:
'$fn.isWorkTime()'
},
{
label
:
'上报人工单统计'
,
value
:
'$fn.caseNum()'
},
];
const
RuleConfig
=
props
=>
{
const
{
visible
,
...
...
@@ -26,6 +28,22 @@ const RuleConfig = props => {
const
ruleText
=
useRef
();
const
chooseIndex
=
useRef
(
0
);
const
[
form
]
=
Form
.
useForm
();
const
options
=
val
=>
{
if
(
val
===
'撤回'
)
{
return
`$action.nodeAction='撤回'`
;
}
else
if
(
val
===
'回退'
)
{
return
`$action.nodeAction='回退'`
;
}
else
if
(
val
===
'转办'
)
{
return
`$action.nodeAction='转办'`
;
}
else
if
(
val
===
'移交'
)
{
return
`$action.nextNodeName`
;
}
else
if
(
val
===
'挂起'
)
{
return
`$action.nodeAction='挂起'`
;
}
else
if
(
val
===
'解挂'
)
{
return
`$action.nodeAction='解挂'`
;
}
};
useEffect
(()
=>
{
if
(
visible
)
{
setExpandedKey
(
fieldList
?.[
0
]?.
TableName
);
...
...
@@ -68,7 +86,13 @@ const RuleConfig = props => {
});
const
onSelect
=
(
prop
,
treeNode
)
=>
{
if
(
!
treeNode
.
node
.
children
)
{
insert
(
`{
${
treeNode
.
node
.
key
}
}`
);
let
name
=
treeNode
.
node
.
key
.
split
(
'.'
)[
0
];
if
(
name
===
'操作动作'
)
{
let
aa
=
treeNode
.
node
.
title
;
insert
(
options
(
aa
));
}
else
{
insert
(
`{
${
treeNode
.
node
.
key
}
}`
);
}
}
setCurrentSelectId
(
prop
[
0
]);
};
...
...
@@ -115,7 +139,7 @@ const RuleConfig = props => {
/>
</
div
>
<
div
className=
{
styles
.
rightContent
}
>
{
flag
==
1
&&
<
div
className=
{
styles
.
title
}
>
符合以下条件时工单扭转到对应的节点
</
div
>
}
{
/* {flag == 1 && <div className={styles.title}>符合以下条件时工单扭转到对应的节点</div>} */
}
<
div
className=
{
styles
.
textAreaBox
}
>
{
flag
==
1
&&
(
<
Dropdown
overlay=
{
fnListRender
}
placement=
"bottom"
arrow
>
...
...
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/FlowChart.jsx
View file @
4a754bef
...
...
@@ -222,6 +222,31 @@ const FlowChart = props => {
label
:
ele
.
userName
,
value
:
ele
.
userID
,
}));
if
(
obj
.
CCRuleList
?.
length
>
0
)
{
obj
.
CCRuleList
.
map
(
i
=>
{
if
(
i
.
UserIds
?.
length
>
0
)
{
i
.
UserList
=
i
.
UserIds
.
map
(
ele
=>
({
label
:
ele
.
UserName
,
value
:
ele
.
UserID
,
}));
i
.
UserIds
=
i
.
UserIds
.
map
(
ele
=>
ele
.
UserID
).
toString
();
}
else
{
i
.
UserList
=
[];
i
.
UserIds
=
''
;
}
if
(
i
.
RoleIds
?.
length
>
0
)
{
i
.
RoleList
=
i
.
RoleIds
.
map
(
ele
=>
({
label
:
ele
.
UserName
,
value
:
ele
.
UserID
,
}));
i
.
RoleIds
=
i
.
RoleIds
.
map
(
ele
=>
ele
.
UserID
).
toString
();
}
else
{
i
.
RoleList
=
[];
i
.
RoleIds
=
''
;
}
i
.
PersonList
=
[...
i
.
UserList
,
...
i
.
RoleList
];
});
}
if
(
obj
.
points
===
''
)
{
if
(
obj
.
NodeType
===
'1'
)
{
obj
.
points
=
`
${(
index
*
200
).
toString
()}
" 100"`
;
...
...
@@ -344,6 +369,7 @@ const FlowChart = props => {
RuleList
:
[],
roleList
:
[],
CarbonCopyPeopleList
:
[],
CCRuleList
:
[],
ExtendPageList
:
[],
FlowNodeBackfillConfigs
:
[],
FlowTimerList
:
[],
...
...
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/FlowChartRt.jsx
View file @
4a754bef
...
...
@@ -267,6 +267,31 @@ const FlowChart = props => {
label
:
ele
.
userName
,
value
:
ele
.
userID
,
}));
if
(
obj
.
CCRuleList
?.
length
>
0
)
{
obj
.
CCRuleList
.
map
(
i
=>
{
if
(
i
.
UserIds
?.
length
>
0
)
{
i
.
UserList
=
i
.
UserIds
.
map
(
ele
=>
({
label
:
ele
.
UserName
,
value
:
ele
.
UserID
.
toString
(),
}));
i
.
UserIds
=
i
.
UserIds
.
map
(
ele
=>
ele
.
UserID
).
toString
();
}
else
{
i
.
UserList
=
[];
i
.
UserIds
=
''
;
}
if
(
i
.
RoleIds
?.
length
>
0
)
{
i
.
RoleList
=
i
.
RoleIds
.
map
(
ele
=>
({
label
:
ele
.
UserName
,
value
:
ele
.
UserID
,
}));
i
.
RoleIds
=
i
.
RoleIds
.
map
(
ele
=>
ele
.
UserID
).
toString
();
}
else
{
i
.
RoleList
=
[];
i
.
RoleIds
=
''
;
}
i
.
PersonList
=
[...
i
.
UserList
,
...
i
.
RoleList
];
});
}
if
(
obj
.
points
===
''
)
{
if
(
obj
.
NodeType
===
'1'
)
{
obj
.
points
=
`
${(
index
*
200
).
toString
()}
" 100"`
;
...
...
@@ -418,12 +443,12 @@ const FlowChart = props => {
RuleList
:
[],
roleList
:
[],
CarbonCopyPeopleList
:
[],
CCRuleList
:
[],
ExtendPageList
:
[],
FlowNodeBackfillConfigs
:
[],
FlowTimerList
:
[],
TurnOnCc
:
1
,
NodeAliasName
:
''
,
TableName
:
''
,
Fields
:
''
,
WebPage
:
''
,
...
...
@@ -1270,9 +1295,13 @@ const FlowChart = props => {
// });
// return;
// }
let
list
=
new
Set
([]);
let
errorList
=
new
Set
();
diagramObj
.
nodeDataArray
.
forEach
(
item
=>
{
if
((
item
.
NodeType
!==
'20'
||
item
.
NodeType
!==
'21'
)
&&
item
.
RuleList
)
{
item
.
RuleList
=
[];
}
if
(
item
.
NodeType
===
'1'
||
item
.
NodeType
===
'1'
||
item
.
NodeType
===
'1'
)
{
if
(
!
item
.
TableName
||
!
item
.
Fields
)
{
errorList
.
add
(
item
.
NodeName
);
...
...
@@ -1282,12 +1311,10 @@ const FlowChart = props => {
item
.
RuleList
.
forEach
(
ele
=>
{
if
(
!
ele
.
RuleName
)
{
list
.
add
(
item
.
NodeName
);
return
;
}
if
(
!
ele
.
NextNodeId
&&
ele
.
NextNodeId
!==
0
)
{
list
.
add
(
item
.
NodeName
);
return
;
}
if
(
!
ele
.
RuleContent
)
{
...
...
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/NodeModal.jsx
View file @
4a754bef
...
...
@@ -70,7 +70,7 @@ const NodeModal = props => {
return
;
}
if
(
!
obj
.
Fields
&&
editMsg
.
NodeType
==
1
)
{
if
(
!
obj
.
Fields
&&
editMsg
.
NodeType
==
1
)
{
message
.
error
(
'请选择编辑字段'
);
return
;
}
...
...
@@ -252,7 +252,13 @@ const NodeModal = props => {
{
/* 承办管理 */
}
<
ConfgUndertake
ref=
{
refConfgUndertake
}
nodeChage=
{
nodeChage
}
editMsg=
{
editMsg
}
/>
{
/* 节点抄送人 */
}
<
ConfigCopyPerson
ref=
{
refConfigCopyPerson
}
nodeChage=
{
nodeChage
}
editMsg=
{
editMsg
}
/>
<
ConfigCopyPerson
ref=
{
refConfigCopyPerson
}
nodeChage=
{
nodeChage
}
flowID=
{
flowID
}
editMsg=
{
editMsg
}
flowData=
{
flowData
}
/>
</
div
>
{
/* 子流程配置 */
}
{
editMsg
.
NodeType
===
'30'
&&
(
...
...
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/ConfigCopyPerson.jsx
View file @
4a754bef
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment