Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
shenshaokai
jinfa-platform
Commits
bdfb53fd
Commit
bdfb53fd
authored
Apr 26, 2022
by
前端-许冠华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220518' into 'v2-220518'
feat: 完善请款单流程规则 See merge request linkseeks-design/pro-platform!559
parents
652f0cce
cb8e9637
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
17 deletions
+94
-17
authConfigRoute.ts
config/routes/authConfigRoute.ts
+57
-3
index.tsx
src/components/FormProgress/index.tsx
+1
-1
add.tsx
src/pages/systemSetting/processEng/invoiceProcessEng/add.tsx
+34
-13
index.less
src/pages/transaction/components/detailLayout/index.less
+2
-0
No files found.
config/routes/authConfigRoute.ts
View file @
bdfb53fd
...
...
@@ -111,18 +111,72 @@ const AuthConfigRoute: RouterChild = {
},
// 流程引擎
{
path
:
'/memberCenter/systemSetting/process
Eng
'
,
path
:
'/memberCenter/systemSetting/process
Management
'
,
name
:
'流程引擎'
,
routes
:
[
{
// 交易流程规则配置
path
:
'/memberCenter/systemSetting/processManagement/transactionRules'
,
name
:
'交易流程规则配置'
,
component
:
'@/pages/transaction/transactionRules'
,
},
{
// 新增交易流程规则
path
:
'/memberCenter/systemSetting/processManagement/transactionRules/add'
,
name
:
'新增交易流程规则'
,
component
:
'@/pages/transaction/transactionRules/addRule'
,
hideInMenu
:
true
,
},
{
// 编辑交易流程规则
path
:
'/memberCenter/systemSetting/processManagement/transactionRules/edit'
,
name
:
'编辑交易流程规则'
,
component
:
'@/pages/transaction/transactionRules/addRule'
,
hideInMenu
:
true
,
},
{
// 交易流程规则详情
path
:
'/memberCenter/systemSetting/processManagement/transactionRules/detail'
,
name
:
'交易流程规则详情'
,
component
:
'@/pages/transaction/transactionRules/addRule'
,
hideInMenu
:
true
,
},
{
// 采购流程规则配置
path
:
'/memberCenter/systemSetting/processManagement/purchaseRules'
,
name
:
'采购流程规则配置'
,
component
:
'@/pages/transaction/purchaseRules'
,
},
{
// 新增交易流程规则
path
:
'/memberCenter/systemSetting/processManagement/purchaseRules/add'
,
name
:
'新增采购流程规则'
,
component
:
'@/pages/transaction/purchaseRules/addRule'
,
hideInMenu
:
true
,
},
{
// 编辑采购流程规则
path
:
'/memberCenter/systemSetting/processManagement/purchaseRules/edit'
,
name
:
'编辑采购流程规则'
,
component
:
'@/pages/transaction/purchaseRules/addRule'
,
hideInMenu
:
true
,
},
{
// 采购流程规则详情
path
:
'/memberCenter/systemSetting/processManagement/purchaseRules/detail'
,
name
:
'采购流程规则详情'
,
component
:
'@/pages/transaction/purchaseRules/addRule'
,
hideInMenu
:
true
,
},
{
// 请款单流程规则配置
path
:
'/memberCenter/systemSetting/process
Eng
/invoiceProcessEng'
,
path
:
'/memberCenter/systemSetting/process
Management
/invoiceProcessEng'
,
name
:
'请款单流程规则配置'
,
component
:
'@/pages/systemSetting/processEng/invoiceProcessEng'
,
},
{
// 新增请款单流程规则
path
:
'/memberCenter/systemSetting/process
Eng
/invoiceProcessEng/add'
,
path
:
'/memberCenter/systemSetting/process
Management
/invoiceProcessEng/add'
,
name
:
'新增请款单流程规则'
,
component
:
'@/pages/systemSetting/processEng/invoiceProcessEng/add'
,
hideInMenu
:
true
,
...
...
src/components/FormProgress/index.tsx
View file @
bdfb53fd
...
...
@@ -25,7 +25,7 @@ const COLOR: ColorType = {
success
:
{
bg
:
'#E4F7EF'
,
text
:
'#00A98F'
},
}
const
getColor
=
(
scale
:
number
)
=>
{
export
const
getColor
=
(
scale
:
number
)
=>
{
if
(
scale
<
60
)
{
return
COLOR
.
error
}
...
...
src/pages/systemSetting/processEng/invoiceProcessEng/add.tsx
View file @
bdfb53fd
...
...
@@ -5,6 +5,7 @@ import { SaveOutlined } from '@ant-design/icons';
import
ProcessEngLayout
from
'./components/processEng'
;
import
ProcessSelectLayout
from
'./components/processSelect'
;
import
InvoiceTypeLayout
from
'./components/invoiceType'
;
import
{
getColor
}
from
'@/components/FormProgress'
;
export
const
layout
:
any
=
{
colon
:
false
,
...
...
@@ -12,25 +13,45 @@ export const layout: any = {
labelAlign
:
"left"
};
const
progress
=
{
display
:
'flex'
,
alignItems
:
'center'
,
width
:
'240px'
,
height
:
'16px'
,
marginLeft
:
'8px'
,
padding
:
'0 8px'
,
borderRadius
:
'8px'
,
fontSize
:
'12px'
,
fontWeight
:
'normal'
,
}
const
AddInvoiceProcessEng
:
React
.
FC
<
{}
>
=
()
=>
{
const
[
percent
,
setPercent
]
=
useState
<
number
>
(
0
);
/**计算输入框输入了百分之多少 */
const
onValuesChange
=
(
allValues
)
=>
{
const
values
=
Object
.
values
(
allValues
);
let
num
=
0
;
values
.
forEach
(
_item
=>
{
if
(
_item
)
{
num
+=
1
}
})
console
.
log
(((
num
/
values
.
length
)
*
100
).
toFixed
(
0
)
+
'%'
)
}
const
[
percent
,
setPercent
]
=
useState
<
number
>
(
0
);
/**计算输入框输入了百分之多少 */
const
onFieldsChange
=
(
allValues
)
=>
{
const
values
=
Object
.
values
(
allValues
);
let
num
=
0
;
values
.
forEach
(
_item
=>
{
if
(
_item
)
{
num
+=
1
}
})
setPercent
(
Number
(((
num
/
values
.
length
)
*
100
)))
}
return
(
<
Fragment
>
<
PeripheralLayout
hideBreak
detail=
'新增请款单流程规则'
no=
{
<
div
style=
{
{
...
progress
,
backgroundColor
:
getColor
(
percent
).
bg
,
color
:
getColor
(
percent
).
text
}
}
>
信息完整度
{
percent
.
toFixed
(
0
)
}
%
</
div
>
}
tabLink=
{
[
{
title
:
'流程规则'
,
id
:
'processEng'
},
{
title
:
'流程选择'
,
id
:
'processSelect'
},
...
...
@@ -45,7 +66,7 @@ const onValuesChange = (allValues) => {
</
Button
>
}
components=
{
<
Form
{
...
layout
}
on
ValuesChange=
{
(
_
,
allValues
)
=>
onValuesChange
(
allValues
)
}
>
<
Form
{
...
layout
}
on
FieldsChange=
{
(
_
,
allValues
)
=>
onFieldsChange
(
allValues
)
}
>
<
ProcessEngLayout
/>
<
ProcessSelectLayout
/>
<
InvoiceTypeLayout
/>
...
...
src/pages/transaction/components/detailLayout/index.less
View file @
bdfb53fd
...
...
@@ -16,6 +16,8 @@
font-size: 16px;
font-weight: 500;
margin-left: 8px;
display: flex;
align-items: center;
}
}
}
...
...
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