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
3e41d090
Commit
3e41d090
authored
Jun 17, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改考评bug
parent
5bf0a9d0
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
301 additions
and
76 deletions
+301
-76
index.ts
config/routes/index.ts
+10
-10
memberRoute.ts
config/routes/memberRoute.ts
+6
-0
index.tsx
src/pages/member/memberEvaluate/allQuery/index.tsx
+8
-3
schema.tsx
src/pages/member/memberEvaluate/allQuery/schema.tsx
+191
-0
index.tsx
...ember/memberEvaluate/components/EvaluateProject/index.tsx
+6
-4
schema.tsx
.../memberEvaluate/components/FormilySelectMember/schema.tsx
+3
-3
add.tsx
src/pages/member/memberEvaluate/createEvaluate/add.tsx
+19
-8
index.tsx
src/pages/member/memberEvaluate/createEvaluate/index.tsx
+4
-2
useEvaluateColumn.tsx
src/pages/member/memberEvaluate/hooks/useEvaluateColumn.tsx
+3
-3
useGetDetailCommon.tsx
src/pages/member/memberEvaluate/hooks/useGetDetailCommon.tsx
+2
-4
index.tsx
src/pages/member/memberEvaluate/schema/index.tsx
+15
-15
schema.tsx
src/pages/member/memberEvaluate/tobeEvaluate/schema.tsx
+2
-2
detail.tsx
src/pages/member/memberEvaluate/tobeSubmitSummary/detail.tsx
+5
-3
index.tsx
src/pages/member/memberEvaluate/tobeSubmitSummary/index.tsx
+6
-7
schema.tsx
src/pages/member/memberEvaluate/tobeSubmitSummary/schema.tsx
+14
-4
add.tsx
src/pages/member/memberInspection/add.tsx
+1
-2
userColumns.tsx
...es/member/memberInspection/common/columns/userColumns.tsx
+2
-2
add.tsx
src/pages/member/memberInspection/common/schema/add.tsx
+3
-3
useGetDetailCommon.tsx
...r/memberRectification/common/hooks/useGetDetailCommon.tsx
+1
-1
No files found.
config/routes/index.ts
View file @
3e41d090
...
@@ -58,13 +58,13 @@ const memberCenterRoute = {
...
@@ -58,13 +58,13 @@ const memberCenterRoute = {
noMargin
:
true
,
noMargin
:
true
,
name
:
'修改个人信息'
name
:
'修改个人信息'
},
},
//
{
{
//
path: `/memberCenter/home`,
path
:
`/memberCenter/home`
,
//
name: 'home',
name
:
'home'
,
//
icon: 'home',
icon
:
'home'
,
//
key: 'home',
key
:
'home'
,
//
component: '@/pages/home',
component
:
'@/pages/home'
,
//
},
},
// ShopRoute,
// ShopRoute,
// CommodityRoute,
// CommodityRoute,
// srm开发临时使用...
// srm开发临时使用...
...
@@ -75,9 +75,9 @@ const memberCenterRoute = {
...
@@ -75,9 +75,9 @@ const memberCenterRoute = {
// contracRoute,
// contracRoute,
//...
//...
// AuthConfigRoute,
// AuthConfigRoute,
//
MemberRoute,
MemberRoute
,
//
HandlingRoute,
HandlingRoute
,
...
asyncRoutes
,
//
...asyncRoutes,
{
{
path
:
'/memberCenter/noAuth'
,
path
:
'/memberCenter/noAuth'
,
auth
:
false
,
auth
:
false
,
...
...
config/routes/memberRoute.ts
View file @
3e41d090
...
@@ -581,6 +581,12 @@ const MemberRoute: RouterChild = {
...
@@ -581,6 +581,12 @@ const MemberRoute: RouterChild = {
hideInMenu
:
true
,
hideInMenu
:
true
,
},
},
{
{
path
:
'/memberCenter/memberAbility/memberEvaluate/createEvaluate/view'
,
name
:
'修改考评单'
,
component
:
'@/pages/member/memberEvaluate/createEvaluate/add'
,
hideInMenu
:
true
,
},
{
path
:
'/memberCenter/memberAbility/memberEvaluate/createEvaluate/edit'
,
path
:
'/memberCenter/memberAbility/memberEvaluate/createEvaluate/edit'
,
name
:
'修改考评单'
,
name
:
'修改考评单'
,
component
:
'@/pages/member/memberEvaluate/createEvaluate/add'
,
component
:
'@/pages/member/memberEvaluate/createEvaluate/add'
,
...
...
src/pages/member/memberEvaluate/allQuery/index.tsx
View file @
3e41d090
...
@@ -3,7 +3,7 @@ import { Card, Space, Button } from 'antd'
...
@@ -3,7 +3,7 @@ import { Card, Space, Button } from 'antd'
import
{
StandardTable
}
from
'god'
;
import
{
StandardTable
}
from
'god'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
useEvaluateColumn
,
{
setColumnsByLinks
}
from
'../hooks/useEvaluateColumn'
;
import
useEvaluateColumn
,
{
setColumnsByLinks
}
from
'../hooks/useEvaluateColumn'
;
import
{
evaluationListSchema
}
from
'.
./schema'
;
import
{
querySchema
}
from
'
./schema'
;
import
useFetchList
from
'../hooks/useFetchList'
;
import
useFetchList
from
'../hooks/useFetchList'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
...
@@ -24,7 +24,12 @@ interface Iprops {};
...
@@ -24,7 +24,12 @@ interface Iprops {};
const
List
:
React
.
FC
<
Iprops
>
=
(
props
:
Iprops
)
=>
{
const
List
:
React
.
FC
<
Iprops
>
=
(
props
:
Iprops
)
=>
{
const
{
fetchListData
}
=
useFetchList
();
const
{
fetchListData
}
=
useFetchList
();
const
{
columns
,
fetchStatusOptions
}
=
useEvaluateColumn
<
GetMemberAppraisalSummaryPageResponseDetail
>
(
defaultColumns
,
[])
const
{
columns
,
fetchStatusOptions
}
=
useEvaluateColumn
<
GetMemberAppraisalSummaryPageResponseDetail
>
(
defaultColumns
,
[
{
title
:
"考评最终分"
,
dataIndex
:
"totalScore"
}
])
const
controllerBtns
=
(
const
controllerBtns
=
(
<
div
>
<
div
>
...
@@ -45,7 +50,7 @@ const List: React.FC<Iprops> = (props: Iprops) => {
...
@@ -45,7 +50,7 @@ const List: React.FC<Iprops> = (props: Iprops) => {
<
Card
>
<
Card
>
<
CustomizeQueryList
<
CustomizeQueryList
columns=
{
columns
}
columns=
{
columns
}
schema=
{
evaluationList
Schema
}
schema=
{
query
Schema
}
fetchListData=
{
handleFetch
}
fetchListData=
{
handleFetch
}
expressionScope=
{
{
expressionScope=
{
{
controllerBtns
,
controllerBtns
,
...
...
src/pages/member/memberEvaluate/allQuery/schema.tsx
0 → 100644
View file @
3e41d090
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
/**
* 会员考评页scheam
*/
export
const
querySchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
megaLayout
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
properties
:
{
name
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
'搜索会员名称'
,
align
:
'flex-left'
,
tip
:
'输入会员名称进行搜索'
,
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
full
:
true
,
autoRow
:
true
,
columns
:
6
,
},
properties
:
{
subject
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'考评主题'
,
allowClear
:
true
,
style
:
{
width
:
145
,
},
},
},
'[appraisalDayStart,appraisalDayEnd]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
'考评范围开始时间'
,
'考评范围结束时间'
],
allowClear
:
true
,
style
:
{
width
:
260
,
},
},
},
status
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'内部状态(全部)'
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
'查询'
,
},
},
},
},
},
},
},
};
export
const
scoringSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
items
:
{
"type"
:
"array"
,
"x-component"
:
"arraytable"
,
"x-component-props"
:
{
// operations: false,
renderAddition
:
()
=>
null
,
renderRemove
:
()
=>
null
,
renderMoveDown
:
()
=>
null
,
renderMoveUp
:
()
=>
null
,
operations
:
false
,
},
items
:
{
type
:
"object"
,
properties
:
{
id
:
{
title
:
"序号"
,
editable
:
false
,
type
:
'string'
,
"x-props"
:
{
width
:
65
,
},
},
name
:
{
title
:
'考评项目'
,
type
:
'string'
,
"x-component-props"
:
{},
editable
:
false
,
"x-props"
:
{
width
:
160
,
}
},
content
:
{
title
:
'考评内容'
,
type
:
'textarea'
,
editable
:
false
,
'x-props'
:
{
width
:
424
,
},
'x-component-props'
:
{
row
:
1
,
style
:
{
height
:
32
,
}
}
},
'userName'
:
{
title
:
"考评人"
,
type
:
'string'
,
editable
:
false
,
'x-props'
:
{
width
:
128
,
},
// "x-component": "FormilySelectMember",
// "x-component-props": {
// children: '选择考评人'
// }
},
templates
:
{
title
:
'考评模板'
,
type
:
"object"
,
'x-component'
:
'FormilyUploadFiles'
,
'x-component-props'
:
{
mode
:
'link'
,
buttonText
:
'上传'
,
fileContainerClassName
:
'customizeFileContainer'
},
editable
:
false
,
"x-props"
:
{
width
:
180
,
}
},
reports
:
{
title
:
'考评报告'
,
type
:
"object"
,
'x-component'
:
'FormilyUploadFiles'
,
'x-component-props'
:
{
mode
:
'link'
,
buttonText
:
'上传'
,
fileContainerClassName
:
'customizeFileContainer'
},
"x-props"
:
{
width
:
180
,
}
},
scoring
:
{
title
:
'考评计分'
,
type
:
'string'
,
"x-props"
:
{
width
:
95
,
},
'x-rules'
:
[
{
required
:
true
,
message
:
'请填写考评计分'
},
{
pattern
:
/^
(?!
0+
(?:\.
0+
)?
$
)(?:[
1-9
]\d
*|0
)(?:\.\d{1,2})?
$/
,
message
:
'请填写数字,可保留两位小数'
}
],
"x-component-props"
:
{}
},
}
}
}
}
}
src/pages/member/memberEvaluate/components/EvaluateProject/index.tsx
View file @
3e41d090
...
@@ -10,6 +10,7 @@ interface Iprops {
...
@@ -10,6 +10,7 @@ interface Iprops {
// handleFetch
// handleFetch
// onOk: (selectRowKeys: string[] | number[], selectRowRecord: any[]) => void;
// onOk: (selectRowKeys: string[] | number[], selectRowRecord: any[]) => void;
// fetchData: (params: any) => Promise<any>,
// fetchData: (params: any) => Promise<any>,
editable
:
boolean
,
mutators
:
{
mutators
:
{
change
:
(
params
:
any
[])
=>
void
change
:
(
params
:
any
[])
=>
void
},
},
...
@@ -21,7 +22,7 @@ const DEFAULT_RETURN_DATA = {
...
@@ -21,7 +22,7 @@ const DEFAULT_RETURN_DATA = {
}
}
const
EvaluateProject
:
React
.
FC
<
Iprops
>
&
{
isFieldComponent
:
boolean
}
=
(
props
:
Iprops
)
=>
{
const
EvaluateProject
:
React
.
FC
<
Iprops
>
&
{
isFieldComponent
:
boolean
}
=
(
props
:
Iprops
)
=>
{
const
{
value
,
mutators
}
=
props
;
const
{
value
,
mutators
,
editable
}
=
props
;
const
{
visible
,
toggle
}
=
useModal
();
const
{
visible
,
toggle
}
=
useModal
();
const
columns
=
useMemo
(()
=>
[
const
columns
=
useMemo
(()
=>
[
...
@@ -46,7 +47,7 @@ const EvaluateProject: React.FC<Iprops> & { isFieldComponent: boolean } = (props
...
@@ -46,7 +47,7 @@ const EvaluateProject: React.FC<Iprops> & { isFieldComponent: boolean } = (props
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'搜索'
,
placeholder
:
'搜索
评估项目
'
,
tip
:
'输入 评估项目 进行搜索'
,
tip
:
'输入 评估项目 进行搜索'
,
advanced
:
false
,
advanced
:
false
,
},
},
...
@@ -89,16 +90,17 @@ const EvaluateProject: React.FC<Iprops> & { isFieldComponent: boolean } = (props
...
@@ -89,16 +90,17 @@ const EvaluateProject: React.FC<Iprops> & { isFieldComponent: boolean } = (props
mode=
{
"checkbox"
}
mode=
{
"checkbox"
}
value=
{
value
}
value=
{
value
}
/>
/>
<
div
<
div
style=
{
{
style=
{
{
display
:
editable
?
'flex'
:
'none'
,
cursor
:
'pointer'
,
cursor
:
'pointer'
,
width
:
'100%'
,
width
:
'100%'
,
background
:
'#fbfbfb'
,
background
:
'#fbfbfb'
,
padding
:
'8px 0px'
,
padding
:
'8px 0px'
,
display
:
"flex"
,
flexDirection
:
"row"
,
flexDirection
:
"row"
,
justifyContent
:
"center"
,
justifyContent
:
"center"
,
alignItems
:
"center"
alignItems
:
"center"
,
}
}
}
}
onClick=
{
()
=>
toggle
(
true
)
}
onClick=
{
()
=>
toggle
(
true
)
}
>
>
...
...
src/pages/member/memberEvaluate/components/FormilySelectMember/schema.tsx
View file @
3e41d090
...
@@ -12,9 +12,9 @@ const memberSchema: ISchema = {
...
@@ -12,9 +12,9 @@ const memberSchema: ISchema = {
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'搜索'
,
placeholder
:
'搜索
姓名
'
,
align
:
'flex-left'
,
align
:
'flex-left'
,
tip
:
'输入
用户
名进行搜索'
,
tip
:
'输入
姓
名进行搜索'
,
},
},
},
},
[
FORM_FILTER_PATH
]:
{
[
FORM_FILTER_PATH
]:
{
...
@@ -24,7 +24,7 @@ const memberSchema: ISchema = {
...
@@ -24,7 +24,7 @@ const memberSchema: ISchema = {
grid
:
true
,
grid
:
true
,
full
:
true
,
full
:
true
,
autoRow
:
true
,
autoRow
:
true
,
columns
:
3
,
columns
:
4
,
},
},
properties
:
{
properties
:
{
orgName
:
{
orgName
:
{
...
...
src/pages/member/memberEvaluate/createEvaluate/add.tsx
View file @
3e41d090
...
@@ -83,11 +83,14 @@ type SubmitDataType = {
...
@@ -83,11 +83,14 @@ type SubmitDataType = {
}[],
}[],
}
}
const
EvaluateAdd
=
()
=>
{
const
EvaluateAdd
=
(
props
)
=>
{
const
{
location
}
=
props
;
const
{
visible
,
toggle
}
=
useModal
()
const
{
visible
,
toggle
}
=
useModal
()
const
{
id
}
=
usePageStatus
();
const
{
id
}
=
usePageStatus
();
const
isEdit
=
useMemo
(()
=>
id
&&
typeof
id
===
'string'
,
[
id
]);
const
isEdit
=
useMemo
(()
=>
id
&&
typeof
id
===
'string'
,
[
id
]);
const
params
=
useMemo
(()
=>
{
return
id
?
{
id
:
id
.
toString
()
}
:
null
},
[
id
]);
const
params
=
useMemo
(()
=>
{
return
id
?
{
id
:
id
.
toString
()
}
:
null
},
[
id
]);
const
isPreview
=
location
.
pathname
.
includes
(
'/memberCenter/memberAbility/memberEvaluate/createEvaluate/view'
);
const
{
loading
,
initialValue
}
=
useInitialValue
<
GetMemberAppraisalWaitPublishGetResponse
,
{
id
:
string
}
>
(
PublicApi
.
getMemberAppraisalWaitPublishGet
,
params
)
const
{
loading
,
initialValue
}
=
useInitialValue
<
GetMemberAppraisalWaitPublishGetResponse
,
{
id
:
string
}
>
(
PublicApi
.
getMemberAppraisalWaitPublishGet
,
params
)
const
[
submibtloading
,
setSubmibtloading
]
=
useState
<
boolean
>
(
false
);
const
[
submibtloading
,
setSubmibtloading
]
=
useState
<
boolean
>
(
false
);
const
{
memberColumns
,
memberSchema
,
handleFetchData
}
=
useGetCommonSubMember
(
PublicApi
.
getMemberInspectMembers
)
const
{
memberColumns
,
memberSchema
,
handleFetchData
}
=
useGetCommonSubMember
(
PublicApi
.
getMemberInspectMembers
)
...
@@ -95,8 +98,6 @@ const EvaluateAdd = () => {
...
@@ -95,8 +98,6 @@ const EvaluateAdd = () => {
const
onSubmit
=
async
(
values
:
SubmitDataType
)
=>
{
const
onSubmit
=
async
(
values
:
SubmitDataType
)
=>
{
const
{
items
,
appraisalDayStart
,
appraisalDayEnd
,
attachments
,
selectedProject
,
verifySteps
,
history
:
anyHistory
,
currentStep
,
...
rest
}
=
values
const
{
items
,
appraisalDayStart
,
appraisalDayEnd
,
attachments
,
selectedProject
,
verifySteps
,
history
:
anyHistory
,
currentStep
,
...
rest
}
=
values
// console.log(values);
// return ;
const
projectList
=
items
.
map
((
_item
)
=>
{
const
projectList
=
items
.
map
((
_item
)
=>
{
const
{
sendAppraisal
,
memberName
,
score
,
templates
,
reports
,
type
,
...
otherProps
}
=
_item
;
const
{
sendAppraisal
,
memberName
,
score
,
templates
,
reports
,
type
,
...
otherProps
}
=
_item
;
return
{
return
{
...
@@ -279,13 +280,23 @@ const EvaluateAdd = () => {
...
@@ -279,13 +280,23 @@ const EvaluateAdd = () => {
}
}
},
[
initialValue
])
},
[
initialValue
])
const
titleRender
=
()
=>
{
if
(
isPreview
)
{
return
"查看考评单单"
}
if
(
isEdit
)
{
return
"修改考评单"
}
return
"新增考评单"
}
return
(
return
(
<
PageHeaderWrapper
<
PageHeaderWrapper
onBack=
{
()
=>
history
.
goBack
()
}
onBack=
{
()
=>
history
.
goBack
()
}
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
backIcon=
{
<
ReutrnEle
description=
"返回"
/>
}
title=
{
isEdit
?
"修改整改通知单"
:
"新建整改通知单"
}
title=
{
titleRender
()
}
extra=
{
extra=
{
(
!
isPreview
&&
(
<
Button
<
Button
type=
"primary"
type=
"primary"
icon=
{
<
SaveOutlined
/>
}
icon=
{
<
SaveOutlined
/>
}
...
@@ -299,7 +310,7 @@ const EvaluateAdd = () => {
...
@@ -299,7 +310,7 @@ const EvaluateAdd = () => {
>
>
<
Card
className=
{
styles
.
card
}
>
<
Card
className=
{
styles
.
card
}
>
<
NiceForm
<
NiceForm
editable=
{
true
}
editable=
{
!
isPreview
}
onSubmit=
{
onSubmit
}
onSubmit=
{
onSubmit
}
initialValues=
{
formatedInitialValue
}
initialValues=
{
formatedInitialValue
}
schema=
{
evaluateAddSchema
}
schema=
{
evaluateAddSchema
}
...
@@ -314,12 +325,12 @@ const EvaluateAdd = () => {
...
@@ -314,12 +325,12 @@ const EvaluateAdd = () => {
}
}
}
}
expressionScope=
{
{
expressionScope=
{
{
renderAddition
:
renderAddition
,
renderAddition
:
renderAddition
,
connectMember
:
(
connectMember
:
!
isPreview
?
(
<
div
onClick=
{
()
=>
toggle
(
true
)
}
>
<
div
onClick=
{
()
=>
toggle
(
true
)
}
>
<
LinkOutlined
/>
<
LinkOutlined
/>
<
span
style=
{
{
marginLeft
:
4
}
}
>
选择
</
span
>
<
span
style=
{
{
marginLeft
:
4
}
}
>
选择
</
span
>
</
div
>
</
div
>
),
)
:
null
,
renderListTableRemove
,
renderListTableRemove
,
fetchUserData
:
fetchUserData
fetchUserData
:
fetchUserData
}
}
}
}
...
...
src/pages/member/memberEvaluate/createEvaluate/index.tsx
View file @
3e41d090
...
@@ -12,11 +12,13 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
...
@@ -12,11 +12,13 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
CustomizeQueryList
from
'../../components/CustomizeQueryList'
;
import
CustomizeQueryList
from
'../../components/CustomizeQueryList'
;
import
{
Link
}
from
'react-router-dom'
;
import
{
Link
}
from
'react-router-dom'
;
import
{
GetMemberAppraisalWaitPublishPageRequest
,
GetMemberAppraisalWaitPublishPageResponse
,
GetMemberAppraisalWaitPublishPageResponseDetail
}
from
'@/services/MemberV2Api
/id9028
'
;
import
{
GetMemberAppraisalWaitPublishPageRequest
,
GetMemberAppraisalWaitPublishPageResponse
,
GetMemberAppraisalWaitPublishPageResponseDetail
}
from
'@/services/MemberV2Api'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
;
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
;
const
defaultColumns
=
setColumnsByLinks
();
const
defaultColumns
=
setColumnsByLinks
({
detail
:
"/memberCenter/memberAbility/memberEvaluate/createEvaluate/view"
});
interface
Iprops
{};
interface
Iprops
{};
const
List
:
React
.
FC
<
Iprops
>
=
(
props
:
Iprops
)
=>
{
const
List
:
React
.
FC
<
Iprops
>
=
(
props
:
Iprops
)
=>
{
...
...
src/pages/member/memberEvaluate/hooks/useEvaluateColumn.tsx
View file @
3e41d090
...
@@ -63,7 +63,7 @@ export const setColumnsByLinks = (link?: { [key: string]: string }) => {
...
@@ -63,7 +63,7 @@ export const setColumnsByLinks = (link?: { [key: string]: string }) => {
<
div
style=
{
{
display
:
'flex'
,
flexDirection
:
'column'
,
}
}
>
<
div
style=
{
{
display
:
'flex'
,
flexDirection
:
'column'
,
}
}
>
{
{
link
?.[
'detail'
]
&&
(
link
?.[
'detail'
]
&&
(
<
Link
to=
{
`${link?.['detail']}?id=${record.id}`
}
>
{
record
.
id
}
</
Link
>
<
Link
to=
{
`${link?.['detail']}?id=${record.id}`
}
>
{
record
.
appraisalNo
}
</
Link
>
)
||
(
)
||
(
<
span
>
{
record
.
id
}
</
span
>
<
span
>
{
record
.
id
}
</
span
>
)
)
...
@@ -83,9 +83,9 @@ function useEvaluateColumn<T extends { [key: string]: any } = any>(defaultColumn
...
@@ -83,9 +83,9 @@ function useEvaluateColumn<T extends { [key: string]: any } = any>(defaultColumn
const
[
statusOptions
,
setStatusOptions
]
=
useState
<
OptionType
[]
>
([]);
const
[
statusOptions
,
setStatusOptions
]
=
useState
<
OptionType
[]
>
([]);
const
fetchStatusOptions
=
useCallback
(
async
()
=>
{
const
fetchStatusOptions
=
useCallback
(
async
()
=>
{
const
{
code
,
data
}
=
await
PublicApi
.
getMember
InspectTypes
();
const
{
code
,
data
}
=
await
PublicApi
.
getMember
AppraisalStatusList
();
if
(
code
===
1000
)
{
if
(
code
===
1000
)
{
const
formatedData
=
data
.
map
((
_item
)
=>
({
label
:
_item
.
text
,
value
:
_item
.
id
}));
const
formatedData
=
data
.
map
((
_item
)
=>
({
label
:
_item
.
message
,
value
:
_item
.
code
}));
setStatusOptions
(
formatedData
)
setStatusOptions
(
formatedData
)
return
formatedData
return
formatedData
}
}
...
...
src/pages/member/memberEvaluate/hooks/useGetDetailCommon.tsx
View file @
3e41d090
...
@@ -42,7 +42,7 @@ function useGetDetailCommon(options: Options) {
...
@@ -42,7 +42,7 @@ function useGetDetailCommon(options: Options) {
return
[
return
[
{
{
title
:
'考评单号'
,
title
:
'考评单号'
,
value
:
initialValue
?.
id
,
value
:
initialValue
?.
appraisalNo
,
},
},
{
{
title
:
'会员名称'
,
title
:
'会员名称'
,
...
@@ -78,9 +78,7 @@ function useGetDetailCommon(options: Options) {
...
@@ -78,9 +78,7 @@ function useGetDetailCommon(options: Options) {
},
},
{
{
title
:
"内部状态"
,
title
:
"内部状态"
,
value
:
<
div
>
value
:
initialValue
?.
statusName
一通报考评结果
</
div
>
},
},
{
{
title
:
"考评完成时间"
,
title
:
"考评完成时间"
,
...
...
src/pages/member/memberEvaluate/schema/index.tsx
View file @
3e41d090
...
@@ -31,7 +31,7 @@ export const evaluationListSchema: ISchema = {
...
@@ -31,7 +31,7 @@ export const evaluationListSchema: ISchema = {
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'搜索'
,
placeholder
:
'搜索
会员名称
'
,
tip
:
'输入 会员名称 进行搜索'
,
tip
:
'输入 会员名称 进行搜索'
,
},
},
},
},
...
@@ -59,25 +59,25 @@ export const evaluationListSchema: ISchema = {
...
@@ -59,25 +59,25 @@ export const evaluationListSchema: ISchema = {
'[appraisalDayStart,appraisalDayEnd]'
:
{
'[appraisalDayStart,appraisalDayEnd]'
:
{
type
:
'daterange'
,
type
:
'daterange'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
[
'考评
开始时间'
,
'考评完成
时间'
],
placeholder
:
[
'考评
范围开始时间'
,
'考评范围结束
时间'
],
allowClear
:
true
,
allowClear
:
true
,
style
:
{
style
:
{
width
:
240
,
width
:
260
,
},
},
},
status
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'内部状态(全部)'
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
},
},
},
// status: {
// type: 'string',
// default: undefined,
// enum: [],
// 'x-component-props': {
// placeholder: '内部状态(全部)',
// allowClear: true,
// style: {
// width: 160,
// },
// },
// },
submit
:
{
submit
:
{
'x-component'
:
'Submit'
,
'x-component'
:
'Submit'
,
...
...
src/pages/member/memberEvaluate/tobeEvaluate/schema.tsx
View file @
3e41d090
...
@@ -43,10 +43,10 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
...
@@ -43,10 +43,10 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
'[appraisalDayStart,appraisalDayEnd]'
:
{
'[appraisalDayStart,appraisalDayEnd]'
:
{
type
:
'daterange'
,
type
:
'daterange'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
[
'考评
开始时间'
,
'考评完成
时间'
],
placeholder
:
[
'考评
范围开始时间'
,
'考评范围结束
时间'
],
allowClear
:
true
,
allowClear
:
true
,
style
:
{
style
:
{
width
:
2
4
0
,
width
:
2
6
0
,
},
},
},
},
},
},
...
...
src/pages/member/memberEvaluate/tobeSubmitSummary/detail.tsx
View file @
3e41d090
...
@@ -137,10 +137,10 @@ const TobeEvaluateDetail = () => {
...
@@ -137,10 +137,10 @@ const TobeEvaluateDetail = () => {
templates
:
_row
.
templates
,
templates
:
_row
.
templates
,
reports
:
_row
.
appraisalReport
reports
:
_row
.
appraisalReport
})),
})),
resultAttachments
:
value
.
resultAttachments
.
map
((
_item
)
=>
({
resultAttachments
:
value
.
resultAttachments
?
.
map
((
_item
)
=>
({
name
:
_item
.
name
,
name
:
_item
.
name
,
url
:
_item
.
url
url
:
_item
.
url
}))
}))
||
[]
}
}
const
{
code
,
data
}
=
await
PublicApi
.
postMemberAppraisalWaitSubmitSubmit
(
postData
as
any
);
const
{
code
,
data
}
=
await
PublicApi
.
postMemberAppraisalWaitSubmitSubmit
(
postData
as
any
);
setSubmitLoading
(
false
)
setSubmitLoading
(
false
)
...
@@ -237,7 +237,9 @@ const TobeEvaluateDetail = () => {
...
@@ -237,7 +237,9 @@ const TobeEvaluateDetail = () => {
>
>
<
NiceForm
<
NiceForm
onSubmit=
{
resultOnSubmit
}
onSubmit=
{
resultOnSubmit
}
// initialValues={initialValue}
initialValues=
{
{
notifyMember
:
1
}
}
expressionScope=
{
createRichTextUtils
()
}
expressionScope=
{
createRichTextUtils
()
}
schema=
{
evaluateScoreRes
}
schema=
{
evaluateScoreRes
}
actions=
{
resultForm
}
actions=
{
resultForm
}
...
...
src/pages/member/memberEvaluate/tobeSubmitSummary/index.tsx
View file @
3e41d090
...
@@ -25,13 +25,12 @@ const List: React.FC<Iprops> = (props: Iprops) => {
...
@@ -25,13 +25,12 @@ const List: React.FC<Iprops> = (props: Iprops) => {
{
{
title
:
'操作'
,
title
:
'操作'
,
render
:
(
_text
,
_record
)
=>
(
render
:
(
_text
,
_record
)
=>
(
<
Space
>
_record
.
submitOrUpdate
&&
(
{
<
Space
>
_record
.
submit
&&
(
<
Link
to=
{
`/memberCenter/memberAbility/memberEvaluate/tobeSubmitSummary/detail?id=${_record.id}`
}
>
提交
</
Link
>
<
Link
to=
{
`/memberCenter/memberAbility/memberEvaluate/tobeSubmitSummary/detail?id=${_record.id}`
}
>
提交
</
Link
>
<
Link
to=
{
`/memberCenter/memberAbility/memberEvaluate/tobeSubmitSummary/detail?id=${_record.id}`
}
>
修改
</
Link
>
)
</
Space
>
}
)
</
Space
>
)
)
}
}
])
])
...
...
src/pages/member/memberEvaluate/tobeSubmitSummary/schema.tsx
View file @
3e41d090
...
@@ -73,7 +73,7 @@ export const modifyEvaluateScore: ISchema = {
...
@@ -73,7 +73,7 @@ export const modifyEvaluateScore: ISchema = {
* 考评结果
* 考评结果
*/
*/
export
const
evaluateScoreRes
=
{
export
const
evaluateScoreRes
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
layout
:
{
layout
:
{
...
@@ -88,18 +88,28 @@ export const evaluateScoreRes = {
...
@@ -88,18 +88,28 @@ export const evaluateScoreRes = {
totalScore
:
{
totalScore
:
{
title
:
'考评最终分'
,
title
:
'考评最终分'
,
type
:
'string'
,
type
:
'string'
,
require
:
true
,
// require: true,
'x-rules'
:
[
{
required
:
true
,
message
:
"请填写考评最终分"
,
}
]
},
},
result
:
{
result
:
{
title
:
'考评结果'
,
title
:
'考评结果'
,
type
:
'textarea'
,
type
:
'textarea'
,
require
:
true
,
'x-rules'
:
[
{
required
:
true
,
message
:
"请填写考评结果"
,
}
]
},
},
notifyMember
:
{
notifyMember
:
{
title
:
"{{ text('通知考评结果',help('将考评结果通知给考察对象')) }}"
,
title
:
"{{ text('通知考评结果',help('将考评结果通知给考察对象')) }}"
,
type
:
"string"
,
type
:
"string"
,
'x-component'
:
'FormilyCheckbox'
,
'x-component'
:
'FormilyCheckbox'
,
require
:
true
,
},
},
resultAttachments
:
{
resultAttachments
:
{
title
:
'考评模板'
,
title
:
'考评模板'
,
...
...
src/pages/member/memberInspection/add.tsx
View file @
3e41d090
...
@@ -169,7 +169,6 @@ const InspectionAdd = () => {
...
@@ -169,7 +169,6 @@ const InspectionAdd = () => {
}
}
},
[
initialValue
])
},
[
initialValue
])
console
.
log
(
memberModalValue
);
return
(
return
(
<
PageHeaderWrapper
<
PageHeaderWrapper
onBack=
{
()
=>
history
.
goBack
()
}
onBack=
{
()
=>
history
.
goBack
()
}
...
@@ -227,7 +226,7 @@ const InspectionAdd = () => {
...
@@ -227,7 +226,7 @@ const InspectionAdd = () => {
mode=
{
"radio"
}
mode=
{
"radio"
}
value=
{
memberModalValue
}
value=
{
memberModalValue
}
/>
/>
<
TableModal
<
TableModal
visible=
{
userModalVisible
}
visible=
{
userModalVisible
}
onClose=
{
()
=>
userModalToggle
(
false
)
}
onClose=
{
()
=>
userModalToggle
(
false
)
}
title=
{
"选择用户"
}
title=
{
"选择用户"
}
...
...
src/pages/member/memberInspection/common/columns/userColumns.tsx
View file @
3e41d090
...
@@ -2,11 +2,11 @@ import { ColumnsType } from 'antd/es/table';
...
@@ -2,11 +2,11 @@ import { ColumnsType } from 'antd/es/table';
export
const
userColumns
:
ColumnsType
<
any
>
=
[
export
const
userColumns
:
ColumnsType
<
any
>
=
[
{
{
title
:
'
用户id
'
,
title
:
'
序号
'
,
dataIndex
:
'userId'
,
dataIndex
:
'userId'
,
},
},
{
{
title
:
'
会员名称
'
,
title
:
'
姓名
'
,
dataIndex
:
'name'
,
dataIndex
:
'name'
,
},
},
{
{
...
...
src/pages/member/memberInspection/common/schema/add.tsx
View file @
3e41d090
...
@@ -96,7 +96,7 @@ export const InspectionAddSchema: ISchema = {
...
@@ -96,7 +96,7 @@ export const InspectionAddSchema: ISchema = {
],
],
},
},
userName
:
{
userName
:
{
title
:
'
会员
代表'
,
title
:
'
考察
代表'
,
type
:
'string'
,
type
:
'string'
,
"x-component-props"
:
{
"x-component-props"
:
{
// disabled: true,
// disabled: true,
...
@@ -162,7 +162,7 @@ export const InspectionAddSchema: ISchema = {
...
@@ -162,7 +162,7 @@ export const InspectionAddSchema: ISchema = {
],
],
},
},
reports
:
{
reports
:
{
title
:
<
div
>
考察
要求附件
<
span
style=
{
{
color
:
"#ff4d4f"
}
}
>
*
</
span
></
div
>,
title
:
<
div
>
考察
报告
<
span
style=
{
{
color
:
"#ff4d4f"
}
}
>
*
</
span
></
div
>,
type
:
'object'
,
type
:
'object'
,
required
:
true
,
required
:
true
,
'x-component'
:
'FormilyUploadFiles'
,
'x-component'
:
'FormilyUploadFiles'
,
...
@@ -194,7 +194,7 @@ export const memberSchema: ISchema = {
...
@@ -194,7 +194,7 @@ export const memberSchema: ISchema = {
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'搜索'
,
placeholder
:
'搜索
会员名称
'
,
tip
:
'输入 会员名称 进行搜索'
,
tip
:
'输入 会员名称 进行搜索'
,
advanced
:
false
,
advanced
:
false
,
},
},
...
...
src/pages/member/memberRectification/common/hooks/useGetDetailCommon.tsx
View file @
3e41d090
...
@@ -58,7 +58,7 @@ function useGetDetailCommon({ initialValue }: { initialValue: GetMemberRectifyWa
...
@@ -58,7 +58,7 @@ function useGetDetailCommon({ initialValue }: { initialValue: GetMemberRectifyWa
value
:
(
value
:
(
<
div
>
<
div
>
{
{
initialValue
&&
initialValue
?.
outer
VerifySteps
?.[
initialValue
.
currentOuterStep
]?.[
'stepName'
]
initialValue
&&
initialValue
?.
outer
StatusName
}
}
</
div
>
</
div
>
)
)
...
...
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