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
f11d79c9
Commit
f11d79c9
authored
2 years ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '优化工单移交交互,关联表单控制规则接入组件,修复web搭建界面滚动条样式bug'
parent
be1adf3e
Pipeline
#63026
passed with stages
Changes
9
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
135 additions
and
35 deletions
+135
-35
index.jsx
src/components/RuleConfig/index.jsx
+20
-15
fieldEditor.jsx
...s/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
+0
-0
filedConfig.jsx
...s/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
+34
-1
flowNode.jsx
src/pages/bsmanager/workOrder/workFlow/flowNode/flowNode.jsx
+2
-2
NodeEdit.jsx
...rkOrder/workFlow/flowNode/flowNodeComponents/NodeEdit.jsx
+62
-12
NodeModal.jsx
...Edit/workFlowComponents/flowChartComponents/NodeModal.jsx
+1
-0
index.jsx
src/pages/productCenter/webConfig/index.jsx
+13
-1
sortModal.jsx
src/pages/productCenter/webConfig/sortModal.jsx
+2
-2
sortModal.less
src/pages/productCenter/webConfig/sortModal.less
+1
-2
No files found.
src/components/RuleConfig/index.jsx
View file @
f11d79c9
...
...
@@ -12,7 +12,7 @@ import styles from './index.less';
import
Tree
from
'@/components/ExpendableTree'
;
const
{
TextArea
}
=
Input
;
const
RuleConfig
=
props
=>
{
const
{
visible
,
handleCancel
,
fieldList
,
onSubumit
,
RuleContent
}
=
props
;
const
{
visible
,
handleCancel
,
fieldList
,
onSubumit
,
RuleContent
,
flag
}
=
props
;
const
[
rule
,
setRule
]
=
useState
([]);
const
[
expandedKey
,
setExpandedKey
]
=
useState
(
''
);
// 默认展开项
const
[
currentSelectId
,
setCurrentSelectId
]
=
useState
(
''
);
// 选中得节点
...
...
@@ -34,16 +34,14 @@ const RuleConfig = props => {
onSubumit
(
rule
);
};
// 处理树数据
const
mapTree
=
(
val
,
index
)
=>
{
return
{
title
:
val
.
TableName
,
key
:
val
.
TableName
,
children
:
val
.
TableFieldNames
.
map
(
item
=>
({
title
:
item
,
key
:
`
${
val
.
TableName
}
.
${
item
}
`
,
})),
};
};
const
mapTree
=
(
val
,
index
)
=>
({
title
:
val
.
TableName
,
key
:
val
.
TableName
,
children
:
val
.
TableFieldNames
.
map
(
item
=>
({
title
:
item
,
key
:
`
${
val
.
TableName
}
.
${
item
}
`
,
})),
});
const
onSelect
=
(
prop
,
treeNode
)
=>
{
console
.
log
(
prop
,
treeNode
);
if
(
!
treeNode
.
node
.
children
)
{
...
...
@@ -76,7 +74,7 @@ const RuleConfig = props => {
/>
</
div
>
<
div
className=
{
styles
.
rightContent
}
>
<
div
className=
{
styles
.
title
}
>
符合以下条件时工单扭转到对应的节点
</
div
>
{
flag
==
1
&&
<
div
className=
{
styles
.
title
}
>
符合以下条件时工单扭转到对应的节点
</
div
>
}
<
div
className=
{
styles
.
textAreaBox
}
>
<
TextArea
autoSize=
{
{
minRows
:
19
,
maxRows
:
19
}
}
...
...
@@ -89,9 +87,16 @@ const RuleConfig = props => {
<
div
className=
{
styles
.
tipBox
}
>
<
p
>
请从左侧面板选择字段或选项
</
p
>
<
p
>
{
'支持英文模式下运算符(+、-、*、/、>、<、==、!=、<=、>=)及函数'
}
</
p
>
<
p
>
参考场景:
</
p
>
<
p
>
当报销金额大于10000时,才能进入所选节点,则可将流转条件设置为:
</
p
>
<
p
>
{
'报销金额>10000'
}
</
p
>
{
flag
==
1
?
(
<>
{
' '
}
<
p
>
参考场景:
</
p
>
<
p
>
当报销金额大于10000时,才能进入所选节点,则可将流转条件设置为:
</
p
>
<
p
>
{
'报销金额>10000'
}
</
p
>
</>
)
:
(
<
p
>
{
`示例:{表名.是否缴费} = ‘是’ and {表名.缴费金额} > 1000`
}
</
p
>
)
}
</
div
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
View file @
f11d79c9
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
View file @
f11d79c9
...
...
@@ -63,6 +63,7 @@ const AddModal = props => {
const
[
checkStrictly
,
setCheckStrictly
]
=
useState
(
false
);
const
[
selectGroup
,
setSelectGroup
]
=
useState
([]);
const
[
keepStandingBook
,
setKeepStandingBook
]
=
useState
([]);
const
[
keepTreeData
,
setKeepTreeData
]
=
useState
([]);
const
editor
=
record
=>
{
console
.
log
(
record
);
...
...
@@ -328,6 +329,16 @@ const AddModal = props => {
}).
then
(
res
=>
{
setTreeLoading
(
false
);
if
(
res
.
msg
===
'Ok'
)
{
let
arrlist
=
[];
let
data
=
{};
let
listArr
=
[];
res
.
data
.
root
.
map
(
i
=>
{
arrlist
.
push
(
i
.
name
);
});
data
.
TableFieldNames
=
arrlist
;
data
.
TableName
=
treeSelectValue
.
substring
(
0
,
treeSelectValue
.
lastIndexOf
(
'@'
));
listArr
.
push
(
data
);
setKeepTreeData
(
listArr
);
let
arr
=
formateArrDataA
(
res
.
data
.
root
,
'group'
);
let
newArr
=
[];
Object
.
keys
(
arr
).
map
((
item
,
index
)
=>
{
...
...
@@ -357,6 +368,16 @@ const AddModal = props => {
}).
then
(
res
=>
{
setTreeLoading
(
false
);
if
(
res
.
msg
===
'Ok'
)
{
let
arrlist
=
[];
let
data
=
{};
let
listArr
=
[];
res
.
data
.
root
.
map
(
i
=>
{
arrlist
.
push
(
i
.
name
);
});
data
.
TableFieldNames
=
arrlist
;
data
.
TableName
=
props
.
location
.
state
.
id
;
listArr
.
push
(
data
);
setKeepTreeData
(
listArr
);
let
arr
=
formateArrDataA
(
res
.
data
.
root
,
'group'
);
let
newArr
=
[];
Object
.
keys
(
arr
).
map
((
item
,
index
)
=>
{
...
...
@@ -563,6 +584,17 @@ const AddModal = props => {
}).
then
(
res
=>
{
setTreeLoading
(
false
);
if
(
res
.
msg
===
'Ok'
)
{
let
arrlist
=
[];
let
data
=
{};
let
listArr
=
[];
res
.
data
.
root
.
map
(
i
=>
{
arrlist
.
push
(
i
.
name
);
});
data
.
TableFieldNames
=
arrlist
;
data
.
TableName
=
e
.
substring
(
0
,
e
.
lastIndexOf
(
'@'
));
listArr
.
push
(
data
);
setKeepTreeData
(
listArr
);
console
.
log
(
res
.
data
.
root
);
let
arr
=
formateArrDataA
(
res
.
data
.
root
,
'group'
);
let
newArr
=
[];
Object
.
keys
(
arr
).
map
((
item
,
index
)
=>
{
...
...
@@ -606,7 +638,7 @@ const AddModal = props => {
onChange
:
(
selectedRowKeys
,
selectedRows
)
=>
{
let
aa
=
[];
selectedRowKeys
.
map
(
i
=>
{
if
(
typeof
i
!=
'number'
)
{
if
(
typeof
i
!=
=
'number'
)
{
aa
.
push
(
i
);
}
});
...
...
@@ -729,6 +761,7 @@ const AddModal = props => {
</
Modal
>
<
FieldEditor
isVisible=
{
isVisible
}
keepTreeData=
{
keepTreeData
}
isType=
{
isType
}
itemData=
{
itemData
}
formObj1=
{
formObj
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workFlow/flowNode/flowNode.jsx
View file @
f11d79c9
...
...
@@ -222,7 +222,7 @@ const FlowNode = () => {
// ),
// },
{
title
:
'
平级移交
'
,
title
:
'
转办
'
,
dataIndex
:
'tranferable'
,
align
:
'center'
,
width
:
80
,
...
...
@@ -379,7 +379,7 @@ const FlowNode = () => {
// width: 80,
// },
{
title
:
'
平级移交
'
,
title
:
'
转办
'
,
align
:
'center'
,
width
:
80
,
},
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workFlow/flowNode/flowNodeComponents/NodeEdit.jsx
View file @
f11d79c9
...
...
@@ -20,6 +20,7 @@ import {
Drawer
,
Space
,
Tooltip
,
Switch
,
}
from
'antd'
;
import
{
PlusOutlined
,
InfoCircleOutlined
}
from
'@ant-design/icons'
;
import
Fieldselection
from
'./nodeEditComponents/Fieldselection'
;
...
...
@@ -37,6 +38,9 @@ const NodeEdit = props => {
const
[
isDisable
,
setIsDisable
]
=
useState
();
// 允许回退是否可选择
const
[
filedData
,
setFiledData
]
=
useState
([]);
// 已选字段列表
const
[
filedList
,
setFiledList
]
=
useState
([]);
// 当前选择表的所有字段
const
[
visibleChecked
,
setVisibleChecked
]
=
useState
(
true
);
const
[
visibleChecked1
,
setVisibleChecked1
]
=
useState
(
true
);
const
[
visibleChecked2
,
setVisibleChecked2
]
=
useState
(
true
);
const
[
form
]
=
Form
.
useForm
();
useEffect
(()
=>
{
...
...
@@ -67,6 +71,13 @@ const NodeEdit = props => {
setIsDisable
(
true
);
}
changTable
(
obj
.
TableName
);
console
.
log
(
obj
);
obj
.
Transferable
=
obj
.
Transferable
==
1
;
obj
.
EventsInformation
=
obj
.
EventsInformation
==
1
;
obj
.
IsSendMessage
=
obj
.
IsSendMessage
==
1
;
setVisibleChecked
(
obj
.
Transferable
==
1
);
setVisibleChecked1
(
obj
.
EventsInformation
==
1
);
setVisibleChecked2
(
obj
.
IsSendMessage
==
1
);
form
.
setFieldsValue
(
obj
);
}
});
...
...
@@ -193,6 +204,11 @@ const NodeEdit = props => {
const
onFinish
=
()
=>
{
form
.
validateFields
().
then
(
validate
=>
{
if
(
validate
)
{
console
.
log
(
validate
);
validate
.
Transferable
=
validate
.
Transferable
?
1
:
0
;
validate
.
EventsInformation
=
validate
.
EventsInformation
?
1
:
0
;
validate
.
IsSendMessage
=
validate
.
IsSendMessage
?
1
:
0
;
console
.
log
(
validate
);
editFlowNodeExtend
({
...
validate
,
flowNodeId
:
msg
.
ID
})
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
...
...
@@ -279,6 +295,18 @@ const NodeEdit = props => {
}
return
externalLength
;
};
const
change
=
e
=>
{
console
.
log
(
e
);
setVisibleChecked
(
e
);
};
const
change1
=
e
=>
{
console
.
log
(
e
);
setVisibleChecked1
(
e
);
};
const
change2
=
e
=>
{
console
.
log
(
e
);
setVisibleChecked2
(
e
);
};
return
(
<
Drawer
title=
"流程节点配置"
...
...
@@ -355,16 +383,20 @@ const NodeEdit = props => {
</
Select
>
</
Form
.
Item
>
<
Form
.
Item
label=
"移交方式"
name=
"Handover"
>
<
Select
>
<
Option
value=
"移交选择人"
>
移交选择人
</
Option
>
<
Radio
.
Group
>
<
Radio
value=
"移交选择人"
>
移交选择人
</
Radio
>
<
Radio
value=
"自处理"
>
自处理
</
Radio
>
<
Radio
value=
"移交默认人"
>
移交默认人
</
Radio
>
<
Radio
value=
"移交发起人"
>
移交发起人
</
Radio
>
{
/* <Option value="移交选择人">移交选择人</Option>
<Option value="自处理">自处理</Option>
<Option value="自处理或者移交选择人">自处理或者移交选择人</Option>
<Option value="移交默认人">移交默认人</Option>
<Option value="移交发起人">移交发起人</Option>
<Option value="跨站移交">跨站移交</Option>
<Option value="处理站点移交">处理站点移交</Option>
<
Option
value=
"本人站点移交"
>
本人站点移交
</
Option
>
<
Option
value=
"移交上报人"
>
移交上报人
</
Option
>
</
Select
>
<Option value="本人站点移交">本人站点移交</Option> */
}
</
Radio
.
Group
>
</
Form
.
Item
>
{
/* <Form.Item label="检查前面在办" name="aheadHandle">
<Select>
...
...
@@ -379,23 +411,41 @@ const NodeEdit = props => {
<Option value={2}>一人接收,一人办理</Option>
</Select>
</Form.Item> */
}
<
Form
.
Item
label=
"平级移交"
name=
"Transferable"
>
<
Radio
.
Group
>
<
Form
.
Item
label=
"转办"
name=
"Transferable"
>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
checked=
{
visibleChecked
}
onChange=
{
change
}
/>
{
/* <Radio.Group>
<Radio value="0">否</Radio>
<Radio value="1">是</Radio>
</
Radio
.
Group
>
</Radio.Group>
*/
}
</
Form
.
Item
>
<
Form
.
Item
label=
"显示事件信息"
name=
"EventsInformation"
>
<
Radio
.
Group
>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
checked=
{
visibleChecked1
}
onChange=
{
change1
}
/>
{
/* <Radio.Group>
<Radio value="0">否</Radio>
<Radio value="1">是</Radio>
</
Radio
.
Group
>
</Radio.Group>
*/
}
</
Form
.
Item
>
<
Form
.
Item
label=
"是否发送短信"
name=
"IsSendMessage"
>
<
Radio
.
Group
>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
checked=
{
visibleChecked2
}
onChange=
{
change2
}
/>
{
/* <Radio.Group>
<Radio value={0}>否</Radio>
<Radio value={1}>是</Radio>
</
Radio
.
Group
>
</Radio.Group>
*/
}
</
Form
.
Item
>
<
Form
.
Item
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/NodeModal.jsx
View file @
f11d79c9
...
...
@@ -684,6 +684,7 @@ const NodeModal = props => {
visible=
{
showRule
}
handleCancel=
{
()
=>
setShowRule
(
false
)
}
onSubumit=
{
e
=>
saveRule
(
e
)
}
flag=
{
1
}
/>
</>
);
...
...
This diff is collapsed.
Click to expand it.
src/pages/productCenter/webConfig/index.jsx
View file @
f11d79c9
...
...
@@ -414,12 +414,24 @@ const WebConfigPage = props => {
<
PageContainer
>
<
div
className=
{
styles
.
webConfigContainer
}
>
<
Spin
spinning=
{
loading
||
submitting
}
>
<
div
style=
{
{
display
:
'flex'
,
alignContent
:
'center'
,
justifyContent
:
'flex-start'
}
}
>
<
div
style=
{
{
display
:
'flex'
,
alignContent
:
'center'
,
justifyContent
:
'flex-start'
,
}
}
>
<
Tabs
type=
"editable-card"
onEdit=
{
onEdit
}
onChange=
{
handleTabChange
}
activeKey=
{
curWeb
.
id
}
style=
{
{
display
:
'flex'
,
alignContent
:
'center'
,
justifyContent
:
'flex-start'
,
width
:
'97% '
,
}
}
>
{
/* <TabPane key={99} tab="产品配置" closable={false}>
<ProductConfig />
...
...
This diff is collapsed.
Click to expand it.
src/pages/productCenter/webConfig/sortModal.jsx
View file @
f11d79c9
...
...
@@ -74,7 +74,7 @@ const SortModal = props => {
cancelText=
"取消"
>
<
div
className=
{
styles
.
cardContent
}
style=
{
{
width
:
'90%'
,
marginLeft
:
'24px'
}
}
>
<
div
style=
{
{
minHeight
:
'2
00px'
}
}
>
<
div
style=
{
{
height
:
'5
00px'
}
}
>
<
DragTable
bordered
style=
{
{
marginBottom
:
'10px'
}
}
...
...
@@ -87,7 +87,7 @@ const SortModal = props => {
dragCallBack=
{
dragCallBack
}
ItemTypes=
"flowOrder"
scroll=
{
{
y
:
50
0
,
y
:
45
0
,
}
}
/>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/pages/productCenter/webConfig/sortModal.less
View file @
f11d79c9
.cardContent {
height: 30rem;
overflow-y: scroll;
overflow-x: scroll;
width: 100%;
.ant-checkbox-group {
...
...
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