Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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-admin
Commits
193a2661
Commit
193a2661
authored
Jun 18, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 采购竞价单审核 替换状态类型组件
parent
3d130f5e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
18 deletions
+23
-18
index.tsx
...nents/detail/components/purchaseBidDemandLayout/index.tsx
+4
-2
index.tsx
...components/detail/components/recordCommonLayout/index.tsx
+5
-3
purchaseBid.ts
src/pages/purchaseAbility/constants/purchaseBid.ts
+5
-5
index.tsx
src/pages/purchaseAbility/purchaseBid/detail/index.tsx
+3
-2
index.tsx
...pages/purchaseAbility/purchaseBid/examineSearch/index.tsx
+3
-3
index.tsx
src/pages/purchaseAbility/purchaseBid/search/index.tsx
+3
-3
No files found.
src/pages/purchaseAbility/components/detail/components/purchaseBidDemandLayout/index.tsx
View file @
193a2661
import
React
,
{
useContext
,
useRef
}
from
'react'
;
import
React
,
{
useContext
,
useRef
}
from
'react'
;
import
{
Row
,
Col
,
Image
,
T
ag
,
T
ooltip
,
Switch
,
Typography
}
from
'antd'
;
import
{
Row
,
Col
,
Image
,
Tooltip
,
Switch
,
Typography
}
from
'antd'
;
import
{
StandardTable
}
from
'god'
;
import
{
StandardTable
}
from
'god'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
Card
from
'../../../card'
;
import
Card
from
'../../../card'
;
import
{
Context
}
from
'../context'
;
import
{
Context
}
from
'../context'
;
import
style
from
'./index.less'
;
import
style
from
'./index.less'
;
...
@@ -70,7 +72,7 @@ const DemandLayout: React.FC<DemandLayoutIProps> = (props: any) => {
...
@@ -70,7 +72,7 @@ const DemandLayout: React.FC<DemandLayoutIProps> = (props: any) => {
title
:
'是否归属会员'
,
title
:
'是否归属会员'
,
key
:
'membershipOrNot'
,
key
:
'membershipOrNot'
,
dataIndex
:
'membershipOrNot'
,
dataIndex
:
'membershipOrNot'
,
render
:
(
text
:
any
)
=>
(<
Tag
color=
{
text
?
'success'
:
'error'
}
>
{
text
?
'是'
:
'否'
}
</
Tag
>)
render
:
(
text
:
any
)
=>
(<
StatusTag
type=
{
text
?
'success'
:
'danger'
}
title=
{
text
?
'是'
:
'否'
}
/
>)
},
},
{
{
title
:
(
title
:
(
...
...
src/pages/purchaseAbility/components/detail/components/recordCommonLayout/index.tsx
View file @
193a2661
/** 详情通用 - 流转进度 */
/** 详情通用 - 流转进度 */
import
React
,
{
useContext
,
useState
,
useMemo
}
from
'react'
;
import
React
,
{
useContext
,
useState
,
useMemo
}
from
'react'
;
import
{
Radio
,
Table
,
Typography
,
Tag
}
from
'antd'
;
import
{
Radio
,
Table
,
Typography
}
from
'antd'
;
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
import
StatusTag
from
'@/components/StatusTag'
;
import
{
formatTimeString
}
from
'@/utils'
import
{
formatTimeString
}
from
'@/utils'
...
@@ -45,7 +47,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => {
...
@@ -45,7 +47,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => {
title
:
'状态'
,
title
:
'状态'
,
key
:
'state'
,
key
:
'state'
,
dataIndex
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_text
:
any
,
_record
:
any
)
=>
<
Tag
color=
{
externalColors
(
_text
)
}
>
{
_record
.
stateName
}
</
Tag
>
render
:
(
_text
:
any
,
_record
:
any
)
=>
<
StatusTag
type=
{
externalColors
(
_text
)
}
title=
{
_record
.
stateName
}
/
>
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
...
@@ -94,7 +96,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => {
...
@@ -94,7 +96,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => {
title
:
'状态'
,
title
:
'状态'
,
key
:
'state'
,
key
:
'state'
,
dataIndex
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_text
:
any
,
_record
:
any
)
=>
<
Tag
color=
{
internalColors
(
_text
)
}
>
{
_record
.
stateName
}
</
Tag
>
render
:
(
_text
:
any
,
_record
:
any
)
=>
<
StatusTag
type=
{
internalColors
(
_text
)
}
title=
{
_record
.
stateName
}
/
>
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
...
...
src/pages/purchaseAbility/constants/purchaseBid.ts
View file @
193a2661
...
@@ -4,13 +4,13 @@ export const BID_EXTERNALSTATE_COLOR = (text) => {
...
@@ -4,13 +4,13 @@ export const BID_EXTERNALSTATE_COLOR = (text) => {
case
-
1
:
case
-
1
:
case
7
:
case
7
:
case
8
:
case
8
:
return
'
erro
r'
;
return
'
dange
r'
;
case
2
:
case
2
:
case
3
:
case
3
:
case
4
:
case
4
:
return
'warning'
;
return
'warn
n
ing'
;
case
6
:
case
6
:
return
'pr
ocessing
'
;
return
'pr
imary
'
;
case
99
:
case
99
:
return
'success'
;
return
'success'
;
default
:
default
:
...
@@ -42,10 +42,10 @@ export const BID_INTERNALSTATE_COLOR = (text) => {
...
@@ -42,10 +42,10 @@ export const BID_INTERNALSTATE_COLOR = (text) => {
case
13
:
case
13
:
case
14
:
case
14
:
case
15
:
case
15
:
return
'warning'
;
return
'warn
n
ing'
;
case
4
:
case
4
:
case
12
:
case
12
:
return
'pr
ocessing
'
;
return
'pr
imary
'
;
case
99
:
case
99
:
return
'success'
;
return
'success'
;
default
:
default
:
...
...
src/pages/purchaseAbility/purchaseBid/detail/index.tsx
View file @
193a2661
import
React
,
{
Fragment
,
useEffect
,
useState
,
useMemo
}
from
'react'
;
import
React
,
{
Fragment
,
useEffect
,
useState
,
useMemo
}
from
'react'
;
import
{
Tag
,
Button
}
from
'antd'
;
import
{
Button
}
from
'antd'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
CheckCircleOutlined
}
from
'@ant-design/icons'
;
import
{
CheckCircleOutlined
}
from
'@ant-design/icons'
;
...
@@ -7,6 +7,7 @@ import { PublicApi } from '@/services/api';
...
@@ -7,6 +7,7 @@ import { PublicApi } from '@/services/api';
import
{
GlobalConfig
}
from
'@/global/config'
import
{
GlobalConfig
}
from
'@/global/config'
import
{
formatTimeString
}
from
'@/utils'
import
{
formatTimeString
}
from
'@/utils'
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
{
Context
}
from
'../../components/detail/components/context'
;
import
{
Context
}
from
'../../components/detail/components/context'
;
import
PeripheralLayout
from
'../../components/detail'
;
import
PeripheralLayout
from
'../../components/detail'
;
...
@@ -103,7 +104,7 @@ const SearchDetail = () => {
...
@@ -103,7 +104,7 @@ const SearchDetail = () => {
col
:
[
col
:
[
{
label
:
'竞价编号'
,
extra
:
data
.
biddingNo
,
type
:
'text'
},
{
label
:
'竞价编号'
,
extra
:
data
.
biddingNo
,
type
:
'text'
},
{
label
:
'竞价摘要'
,
extra
:
data
.
details
,
type
:
'text'
},
{
label
:
'竞价摘要'
,
extra
:
data
.
details
,
type
:
'text'
},
{
label
:
'外部状态'
,
extra
:
<
Tag
color=
{
BID_EXTERNALSTATE_COLOR
(
data
.
externalState
)
}
>
{
data
.
externalStateName
}
</
Tag
>,
type
:
'text'
},
{
label
:
'外部状态'
,
extra
:
<
StatusTag
type=
{
BID_EXTERNALSTATE_COLOR
(
data
.
externalState
)
}
title=
{
data
.
externalStateName
}
/
>,
type
:
'text'
},
// { label: '内部状态', extra: <Badge status={BID_INTERNALSTATE_COLOR[data.interiorState]} text={data.interiorStateName} />, type: 'text' },
// { label: '内部状态', extra: <Badge status={BID_INTERNALSTATE_COLOR[data.interiorState]} text={data.interiorStateName} />, type: 'text' },
]
]
},
},
...
...
src/pages/purchaseAbility/purchaseBid/examineSearch/index.tsx
View file @
193a2661
import
React
,
{
useRef
,
useState
}
from
'react'
;
import
React
,
{
useRef
,
useState
}
from
'react'
;
import
{
T
ag
,
T
ypography
,
Space
,
Row
,
Col
,
Button
}
from
'antd'
;
import
{
Typography
,
Space
,
Row
,
Col
,
Button
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
PlayCircleOutlined
,
PoweroffOutlined
}
from
'@ant-design/icons'
import
{
PlayCircleOutlined
,
PoweroffOutlined
}
from
'@ant-design/icons'
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
{
formatTimeString
}
from
'@/utils'
import
{
formatTimeString
}
from
'@/utils'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
...
@@ -14,7 +15,6 @@ import ModalOperate from '../../components/modalOperate';
...
@@ -14,7 +15,6 @@ import ModalOperate from '../../components/modalOperate';
import
{
import
{
BID_EXTERNALSTATE_COLOR
,
BID_EXTERNALSTATE_COLOR
,
BID_INTERNALSTATE_COLOR
}
from
'../../constants/purchaseBid'
;
}
from
'../../constants/purchaseBid'
;
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
...
@@ -58,7 +58,7 @@ const ExamineSearch = () => {
...
@@ -58,7 +58,7 @@ const ExamineSearch = () => {
title
:
'外部状态'
,
title
:
'外部状态'
,
key
:
'externalState'
,
key
:
'externalState'
,
dataIndex
:
'externalState'
,
dataIndex
:
'externalState'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Tag
color=
{
BID_EXTERNALSTATE_COLOR
(
text
)
}
>
{
record
.
externalStateName
}
</
Tag
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
StatusTag
type=
{
BID_EXTERNALSTATE_COLOR
(
text
)
}
title=
{
record
.
externalStateName
}
/
>
},
{
},
{
title
:
'操作'
,
title
:
'操作'
,
key
:
'operate'
,
key
:
'operate'
,
...
...
src/pages/purchaseAbility/purchaseBid/search/index.tsx
View file @
193a2661
import
React
,
{
useRef
}
from
'react'
;
import
React
,
{
useRef
}
from
'react'
;
import
{
T
ag
,
T
ypography
,
Space
}
from
'antd'
;
import
{
Typography
,
Space
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
PlayCircleOutlined
,
PoweroffOutlined
}
from
'@ant-design/icons'
import
{
PlayCircleOutlined
,
PoweroffOutlined
}
from
'@ant-design/icons'
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
{
formatTimeString
}
from
'@/utils'
import
{
formatTimeString
}
from
'@/utils'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
...
@@ -12,7 +13,6 @@ import Table from '../../components/table';
...
@@ -12,7 +13,6 @@ import Table from '../../components/table';
import
{
import
{
BID_EXTERNALSTATE_COLOR
,
BID_EXTERNALSTATE_COLOR
,
BID_INTERNALSTATE_COLOR
}
from
'../../constants/purchaseBid'
;
}
from
'../../constants/purchaseBid'
;
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
...
@@ -53,7 +53,7 @@ const Search = () => {
...
@@ -53,7 +53,7 @@ const Search = () => {
title
:
'外部状态'
,
title
:
'外部状态'
,
key
:
'externalState'
,
key
:
'externalState'
,
dataIndex
:
'externalState'
,
dataIndex
:
'externalState'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Tag
color=
{
BID_EXTERNALSTATE_COLOR
(
text
)
}
>
{
record
.
externalStateName
}
</
Tag
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
StatusTag
type=
{
BID_EXTERNALSTATE_COLOR
(
text
)
}
title=
{
record
.
externalStateName
}
/
>
}];
}];
return
(
return
(
...
...
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