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
linweijiong
jinfa-platform
Commits
3a6da9bf
Commit
3a6da9bf
authored
May 20, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat: 采购计划管理页面完善
parent
8240db9c
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
294 additions
and
84 deletions
+294
-84
purchasePlan.ts
config/routes/procurementRoute/purchasePlan.ts
+16
-0
index.tsx
...saction/purchaseAbility/components/modalOperate/index.tsx
+17
-4
index.tsx
...tion/purchaseAbility/demandPlan/demandPlanAdded/index.tsx
+1
-1
index.tsx
...action/purchaseAbility/demandPlan/demandPlanOne/index.tsx
+3
-3
index.tsx
...ion/purchaseAbility/demandPlan/demandPlanSearch/index.tsx
+3
-3
index.tsx
...ion/purchaseAbility/demandPlan/demandPlanSubmit/index.tsx
+3
-3
index.tsx
...action/purchaseAbility/demandPlan/demandPlanTwo/index.tsx
+3
-3
index.tsx
...transaction/purchaseAbility/purchasePlan/demand/index.tsx
+159
-0
index.tsx
.../purchaseAbility/purchasePlan/demandPlanSummary/index.tsx
+58
-17
index.tsx
...on/purchaseAbility/purchasePlan/purchasePlanOne/index.tsx
+6
-7
index.tsx
...urchaseAbility/purchasePlan/purchasePlanPerform/index.tsx
+6
-7
index.tsx
...purchaseAbility/purchasePlan/purchasePlanSearch/index.tsx
+7
-22
index.tsx
...purchaseAbility/purchasePlan/purchasePlanSubmit/index.tsx
+6
-7
index.tsx
...on/purchaseAbility/purchasePlan/purchasePlanTwo/index.tsx
+6
-7
No files found.
config/routes/procurementRoute/purchasePlan.ts
View file @
3a6da9bf
...
@@ -17,6 +17,22 @@ export const purchasePlanRoute = [
...
@@ -17,6 +17,22 @@ export const purchasePlanRoute = [
component
:
'@/pages/transaction/purchaseAbility/purchasePlan/demandPlanSummary'
component
:
'@/pages/transaction/purchaseAbility/purchasePlan/demandPlanSummary'
},
},
{
{
/** 待汇总需求计划 - 详情 */
path
:
'/memberCenter/procurementAbility/purchasePlan/demandPlanSummary/preview'
,
name
:
'待新增需求计划'
,
component
:
'@/pages/transaction/purchaseAbility/purchasePlan/demand'
,
hideInMenu
:
true
,
noMargin
:
true
,
},
{
/** 待汇总需求计划 - 详情 */
path
:
'/memberCenter/procurementAbility/purchasePlan/demandPlanSummary/detail'
,
name
:
'待新增需求计划'
,
component
:
'@/pages/transaction/purchaseAbility/purchasePlan/demand'
,
hideInMenu
:
true
,
noMargin
:
true
,
},
{
/** 采购计划查询 */
/** 采购计划查询 */
path
:
'/memberCenter/procurementAbility/purchasePlan/purchasePlanSearch'
,
path
:
'/memberCenter/procurementAbility/purchasePlan/purchasePlanSearch'
,
name
:
'采购计划查询'
,
name
:
'采购计划查询'
,
...
...
src/pages/transaction/purchaseAbility/components/modalOperate/index.tsx
View file @
3a6da9bf
...
@@ -14,7 +14,7 @@ export interface IProps {
...
@@ -14,7 +14,7 @@ export interface IProps {
title
:
string
,
title
:
string
,
visible
:
boolean
,
visible
:
boolean
,
id
:
number
,
id
:
number
,
modalType
:
'audit'
|
'abandon'
|
'date'
|
'next'
|
'key'
|
'discard'
|
'planAudit'
,
modalType
:
'audit'
|
'abandon'
|
'date'
|
'next'
|
'key'
|
'discard'
|
'planAudit'
|
'billBack'
,
onCancel
?:
()
=>
void
,
onCancel
?:
()
=>
void
,
onOk
?:
()
=>
void
,
onOk
?:
()
=>
void
,
fetch
?:
()
=>
Promise
<
unknown
>
,
fetch
?:
()
=>
Promise
<
unknown
>
,
...
@@ -72,7 +72,17 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
...
@@ -72,7 +72,17 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
return
current
&&
current
<=
moment
().
startOf
(
'day'
);
return
current
&&
current
<=
moment
().
startOf
(
'day'
);
}
}
const
modalText
=
modalType
===
'audit'
?
'审核不通过原因'
:
'作废原因'
;
const
modalText
=
()
=>
{
switch
(
modalType
)
{
case
'audit'
:
case
'planAudit'
:
return
'审核不通过原因'
;
case
'billBack'
:
return
'退回原因'
;
default
:
return
'作废原因'
;
}
}
const
modalNode
=
()
=>
{
const
modalNode
=
()
=>
{
switch
(
modalType
)
{
switch
(
modalType
)
{
case
'audit'
:
case
'audit'
:
...
@@ -204,6 +214,9 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
...
@@ -204,6 +214,9 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
}
else
if
(
modalType
===
'planAudit'
)
{
}
else
if
(
modalType
===
'planAudit'
)
{
params
.
status
=
value
.
status
;
params
.
status
=
value
.
status
;
value
.
status
!==
1
&&
(
params
.
cause
=
value
.
cause
);
value
.
status
!==
1
&&
(
params
.
cause
=
value
.
cause
);
}
else
if
(
modalType
===
'billBack'
)
{
params
.
status
=
0
;
params
.
cause
=
value
.
cause
;
}
else
{
}
else
{
params
.
password
=
value
.
password
;
params
.
password
=
value
.
password
;
}
}
...
@@ -259,9 +272,9 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
...
@@ -259,9 +272,9 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
}
}
}
}
>
>
{
modalNode
()
}
{
modalNode
()
}
{
(
modalType
===
'audit'
||
modalType
===
'abandon'
||
modalType
===
'discard'
||
modalType
===
'planAudit'
)
{
(
modalType
===
'audit'
||
modalType
===
'abandon'
||
modalType
===
'discard'
||
modalType
===
'planAudit'
||
modalType
===
'billBack'
)
&&
(<
Field
&&
(<
Field
title=
{
modalText
}
title=
{
modalText
()
}
name=
{
causeName
(
modalType
)
}
name=
{
causeName
(
modalType
)
}
x
-
component=
"TextArea"
x
-
component=
"TextArea"
required
required
...
...
src/pages/transaction/purchaseAbility/demandPlan/demandPlanAdded/index.tsx
View file @
3a6da9bf
...
@@ -15,7 +15,7 @@ const { Text } = Typography;
...
@@ -15,7 +15,7 @@ const { Text } = Typography;
const
DemandPlanAdded
=
()
=>
{
const
DemandPlanAdded
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'需求计划编号/摘要'
,
title
:
'需求计划编号/摘要'
,
...
...
src/pages/transaction/purchaseAbility/demandPlan/demandPlanOne/index.tsx
View file @
3a6da9bf
...
@@ -15,7 +15,7 @@ const { Text } = Typography;
...
@@ -15,7 +15,7 @@ const { Text } = Typography;
const
DemandPlanOne
=
()
=>
{
const
DemandPlanOne
=
()
=>
{
console
.
log
(
'待新增采购需求单'
);
console
.
log
(
'待新增采购需求单'
);
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'需求计划编号/摘要'
,
title
:
'需求计划编号/摘要'
,
...
@@ -33,8 +33,8 @@ const DemandPlanOne = () => {
...
@@ -33,8 +33,8 @@ const DemandPlanOne = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
...
src/pages/transaction/purchaseAbility/demandPlan/demandPlanSearch/index.tsx
View file @
3a6da9bf
...
@@ -15,7 +15,7 @@ const { Text } = Typography;
...
@@ -15,7 +15,7 @@ const { Text } = Typography;
const
DemandPlanSearch
=
()
=>
{
const
DemandPlanSearch
=
()
=>
{
console
.
log
(
'待新增采购需求单'
);
console
.
log
(
'待新增采购需求单'
);
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'需求计划编号/摘要'
,
title
:
'需求计划编号/摘要'
,
...
@@ -33,8 +33,8 @@ const DemandPlanSearch = () => {
...
@@ -33,8 +33,8 @@ const DemandPlanSearch = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
...
src/pages/transaction/purchaseAbility/demandPlan/demandPlanSubmit/index.tsx
View file @
3a6da9bf
...
@@ -14,7 +14,7 @@ const { Text } = Typography;
...
@@ -14,7 +14,7 @@ const { Text } = Typography;
const
DemandPlanSubmit
=
()
=>
{
const
DemandPlanSubmit
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'需求计划编号/摘要'
,
title
:
'需求计划编号/摘要'
,
...
@@ -32,8 +32,8 @@ const DemandPlanSubmit = () => {
...
@@ -32,8 +32,8 @@ const DemandPlanSubmit = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
...
src/pages/transaction/purchaseAbility/demandPlan/demandPlanTwo/index.tsx
View file @
3a6da9bf
...
@@ -15,7 +15,7 @@ const { Text } = Typography;
...
@@ -15,7 +15,7 @@ const { Text } = Typography;
const
DemanPlanTwo
=
()
=>
{
const
DemanPlanTwo
=
()
=>
{
console
.
log
(
'待新增采购需求单'
);
console
.
log
(
'待新增采购需求单'
);
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'需求计划编号/摘要'
,
title
:
'需求计划编号/摘要'
,
...
@@ -33,8 +33,8 @@ const DemanPlanTwo = () => {
...
@@ -33,8 +33,8 @@ const DemanPlanTwo = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
...
src/pages/transaction/purchaseAbility/purchasePlan/demand/index.tsx
0 → 100644
View file @
3a6da9bf
import
React
,
{
Fragment
,
useEffect
,
useState
}
from
'react'
;
import
{
Badge
,
Button
}
from
'antd'
;
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Context
}
from
'../../components/detail/components/context'
;
import
PeripheralLayout
from
'../../components/detail'
;
import
ProgressLayout
from
'../../components/detail/components/progressLayout'
;
import
BasicLayout
from
'../../components/detail/components/basicLayout'
;
import
RecordLyout
from
'../../components/detail/components/recordLyout'
;
import
moment
from
'moment'
;
import
{
OFFTER_INTERNALSTATE_COLOR
}
from
'../../constants'
;
import
{
MinusCircleOutlined
}
from
'@ant-design/icons'
;
import
ModalOperate
from
'../../components/modalOperate'
;
import
DemandPlanMaterialLayout
from
'../../components/detail/components/demandPlanMaterialLayout'
;
const
TABLINK
=
[
{
id
:
'progressLayout'
,
title
:
'流转进度'
},
{
id
:
'basicLayout'
,
title
:
'基本信息'
},
{
id
:
'materialLayout'
,
title
:
'采购物料'
},
{
id
:
'recordLyout'
,
title
:
'流转记录'
},
]
const
DemandDetailed
=
()
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
</>
}
const
{
query
:
{
id
},
pathname
,
}
=
history
.
location
;
const
[
path
]
=
useState
(
pathname
.
split
(
'/'
)[
pathname
.
split
(
'/'
).
length
-
1
]);
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
false
);
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
({});
const
[
basicEffect
,
setBasicEffect
]
=
useState
<
any
>
([]);
const
handleBasicEffect
=
(
data
:
any
)
=>
{
setBasicEffect
([
{
col
:
[
{
label
:
'需求计划编号'
,
extra
:
data
.
needPlanNo
},
{
label
:
'需求计划摘要'
,
extra
:
data
.
summary
},
{
label
:
'内部状态'
,
extra
:
<
Badge
status=
{
OFFTER_INTERNALSTATE_COLOR
[
data
.
innerStatus
]
}
text=
{
data
.
innerStatusName
}
/>
},
]
},
{
col
:
[
{
label
:
'需求计划开始'
,
extra
:
format
(
data
.
startTime
)
},
{
label
:
'需求计划截止'
,
extra
:
format
(
data
.
endTime
)
},
]
},
{
col
:
[
{
label
:
'编制部门'
,
extra
:
data
.
department
},
{
label
:
'编制人'
,
extra
:
data
.
userName
},
{
label
:
'编制时间'
,
extra
:
format
(
data
.
createTime
)
},
]
},
])
}
const
fetchDataSource
=
async
()
=>
{
const
params
=
{
id
,
}
await
PublicApi
.
getPurchaseNeedPlanDetails
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
history
.
goBack
();
return
;
}
let
{
data
}
=
res
;
let
interiorLogs
:
any
=
[]
let
interiorLogStates
:
any
=
[]
data
.
innerTaskList
.
forEach
((
item
:
any
)
=>
{
interiorLogStates
.
push
({
state
:
item
.
step
,
stateName
:
null
,
isExecute
:
item
.
isExecute
,
operationalProcess
:
item
.
taskName
,
roleName
:
item
.
roleName
,
})
})
data
.
innerRecords
.
forEach
((
item
:
any
)
=>
{
interiorLogs
.
push
({
auditOpinion
:
item
.
opinion
,
createMemberId
:
item
.
memberId
,
createRoleId
:
item
.
needPlanId
,
createTime
:
item
.
operateTime
,
department
:
item
.
department
,
id
:
item
.
id
,
memberId
:
null
,
memberRoleId
:
null
,
operation
:
item
.
operate
,
position
:
''
,
purchaseInquiryId
:
null
,
roleName
:
item
.
operator
,
state
:
item
.
step
+
1
,
step
:
item
.
step
,
})
})
data
.
interiorLogs
=
interiorLogs
;
data
.
interiorLogStates
=
interiorLogStates
;
setDataSource
(
data
);
handleBasicEffect
(
data
);
})
}
useEffect
(()
=>
{
fetchDataSource
();
},
[])
return
(
<
Context
.
Provider
value=
{
dataSource
}
>
<
PeripheralLayout
no=
{
dataSource
.
needPlanNo
}
detail=
{
dataSource
.
summary
}
tabLink=
{
TABLINK
}
effect=
{
<>
{
path
===
'detail'
&&
(
<
Button
onClick=
{
()
=>
setVisible
(
true
)
}
type=
'primary'
>
<
MinusCircleOutlined
/>
单据退回
</
Button
>
)
}
</>
}
components=
{
<
Fragment
>
<
ProgressLayout
/>
<
BasicLayout
effect=
{
basicEffect
}
/>
<
DemandPlanMaterialLayout
id=
{
id
}
fetch=
{
PublicApi
.
getPurchaseNeedPlanNeedPlanDetail
}
/>
<
RecordLyout
/>
</
Fragment
>
}
/>
<
ModalOperate
id=
{
id
}
title=
"单据退回"
modalType=
"billBack"
visible=
{
visible
}
fetch=
{
PublicApi
.
postPurchaseNeedPlanSendBack
}
onCancel=
{
()
=>
setVisible
(
false
)
}
onOk=
{
()
=>
history
.
goBack
()
}
/>
</
Context
.
Provider
>
)
}
export
default
DemandDetailed
;
src/pages/transaction/purchaseAbility/purchasePlan/demandPlanSummary/index.tsx
View file @
3a6da9bf
import
React
from
'react'
;
import
React
,
{
useState
,
useRef
}
from
'react'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
Table
from
'../../components/table'
import
Table
from
'../../components/table'
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
Row
,
Col
,
Button
,
Badge
,
Space
,
Typography
}
from
'antd'
;
import
{
Row
,
Col
,
Button
,
Badge
,
Space
,
Typography
,
Modal
,
message
}
from
'antd'
;
import
{
import
{
OFFTER_INTERNALSTATE_COLOR
,
OFFTER_INTERNALSTATE_COLOR
,
}
from
'../../constants'
;
}
from
'../../constants'
;
import
{
PlayCircleOutlined
,
PlusOutlined
,
PoweroffOutlined
}
from
'@ant-design/icons'
;
import
{
PlayCircleOutlined
,
PoweroffOutlined
}
from
'@ant-design/icons'
;
import
{
isEmpty
}
from
'lodash'
;
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
const
DemandPlanSummary
=
()
=>
{
const
DemandPlanSummary
=
()
=>
{
console
.
log
(
'待新增采购需求单'
);
const
ref
=
useRef
<
any
>
({});
const
[
idList
,
setIdList
]
=
useState
<
Array
<
number
>>
([]);
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
false
);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
<
boolean
>
(
false
);
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'需求计划编号/摘要'
,
title
:
'需求计划编号/摘要'
,
...
@@ -23,8 +27,8 @@ const DemandPlanSummary = () => {
...
@@ -23,8 +27,8 @@ const DemandPlanSummary = () => {
dataIndex
:
'needPlanNo'
,
dataIndex
:
'needPlanNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/
offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn
}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/
purchasePlan/demandPlanSummary/preview?id=${record.id
}`
}
>
{
text
}
</
EyePreview
>
<
Text
type=
'secondary'
>
{
record
.
summary
}
</
Text
>
<
Text
>
{
record
.
summary
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -33,8 +37,8 @@ const DemandPlanSummary = () => {
...
@@ -33,8 +37,8 @@ const DemandPlanSummary = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
type=
'secondary'
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
type=
'secondary'
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -49,7 +53,7 @@ const DemandPlanSummary = () => {
...
@@ -49,7 +53,7 @@ const DemandPlanSummary = () => {
title
:
'编制时间'
,
title
:
'编制时间'
,
key
:
'createTime'
,
key
:
'createTime'
,
dataIndex
:
'createTime'
,
dataIndex
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
type=
'secondary'
>
{
format
(
text
)
}
</
Text
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
>
{
format
(
text
)
}
</
Text
>
},
{
},
{
title
:
'内部状态'
,
title
:
'内部状态'
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
...
@@ -63,34 +67,71 @@ const DemandPlanSummary = () => {
...
@@ -63,34 +67,71 @@ const DemandPlanSummary = () => {
<>
<>
<
Button
<
Button
type=
'link'
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/
offter/auditOffterOne/detail?id=${record.id}&number=${record.quotedPriceNo
}`
)
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/
purchasePlan/demandPlanSummary/detail?id=${record.id
}`
)
}
>
>
审核
退回
</
Button
>
</
Button
>
</>
</>
)
)
}];
}];
const
handleCancel
=
()
=>
{
setVisible
(
false
)
}
const
fetchSubmitBatch
=
async
()
=>
{
if
(
isEmpty
(
idList
))
{
message
.
warning
(
'请勾选要汇总生成订单'
);
return
;
}
setConfirmLoading
(
true
);
await
PublicApi
.
postPurchaseNeedPlanCollect
({
idList
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
setConfirmLoading
(
false
);
return
}
ref
.
current
.
reload
();
setIdList
([]);
setVisible
(
false
);
setConfirmLoading
(
false
);
})
}
return
(
return
(
<>
<
Table
<
Table
selectedRow
reload=
{
ref
}
fetchRowkeys=
{
(
e
)
=>
setIdList
(
e
)
}
schemaType=
"DEMANDPLANADDED_SECHEMA"
schemaType=
"DEMANDPLANADDED_SECHEMA"
columns=
{
columns
}
columns=
{
columns
}
effects=
"needPlanNo"
effects=
"needPlanNo"
fetch=
{
PublicApi
.
getPurchaseNeedPlan
List
}
fetch=
{
PublicApi
.
getPurchaseNeedPlanToBeCollect
List
}
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
<
Button
<
Button
onClick=
{
()
=>
history
.
push
(
'/memberCenter/procurementAbility/purchaseInquiry/add'
)
}
disabled=
{
idList
.
length
===
0
}
type=
"primary"
onClick=
{
()
=>
setVisible
(
true
)
}
icon=
{
<
PlusOutlined
/>
}
>
>
新建
汇总生成采购计划
</
Button
>
</
Button
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
}
}
/>
/>
<
Modal
title=
"汇总生成采购计划"
visible=
{
visible
}
onOk=
{
fetchSubmitBatch
}
confirmLoading=
{
confirmLoading
}
onCancel=
{
handleCancel
}
>
<
p
>
是否将选择的需求计划汇总生成采购计划?生成采购计划后如需重新生成,需要先删除已生成的采购计划
</
p
>
</
Modal
>
</>
)
)
}
}
export
default
DemandPlanSummary
export
default
DemandPlanSummary
src/pages/transaction/purchaseAbility/purchasePlan/purchasePlanOne/index.tsx
View file @
3a6da9bf
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
const
PurchasePlanOne
=
()
=>
{
const
PurchasePlanOne
=
()
=>
{
console
.
log
(
'待新增采购需求单'
);
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'采购计划编号/摘要'
,
title
:
'采购计划编号/摘要'
,
...
@@ -24,7 +23,7 @@ const PurchasePlanOne = () => {
...
@@ -24,7 +23,7 @@ const PurchasePlanOne = () => {
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
Text
type=
'secondary'
>
{
record
.
summary
}
</
Text
>
<
Text
>
{
record
.
summary
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -33,8 +32,8 @@ const PurchasePlanOne = () => {
...
@@ -33,8 +32,8 @@ const PurchasePlanOne = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
type=
'secondary'
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
type=
'secondary'
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -49,7 +48,7 @@ const PurchasePlanOne = () => {
...
@@ -49,7 +48,7 @@ const PurchasePlanOne = () => {
title
:
'编制时间'
,
title
:
'编制时间'
,
key
:
'createTime'
,
key
:
'createTime'
,
dataIndex
:
'createTime'
,
dataIndex
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
type=
'secondary'
>
{
format
(
text
)
}
</
Text
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
>
{
format
(
text
)
}
</
Text
>
},
{
},
{
title
:
'内部状态'
,
title
:
'内部状态'
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
...
@@ -76,7 +75,7 @@ const PurchasePlanOne = () => {
...
@@ -76,7 +75,7 @@ const PurchasePlanOne = () => {
schemaType=
"PURCHASEPLAN_SECHEMA"
schemaType=
"PURCHASEPLAN_SECHEMA"
columns=
{
columns
}
columns=
{
columns
}
effects=
"purchasePlanNo"
effects=
"purchasePlanNo"
fetch=
{
PublicApi
.
getPurchasePurchasePlanList
}
fetch=
{
PublicApi
.
getPurchasePurchasePlan
ToBeFirstExam
List
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/purchaseAbility/purchasePlan/purchasePlanPerform/index.tsx
View file @
3a6da9bf
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
const
PurchasePlanPerform
=
()
=>
{
const
PurchasePlanPerform
=
()
=>
{
console
.
log
(
'待新增采购需求单'
);
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'采购计划编号/摘要'
,
title
:
'采购计划编号/摘要'
,
...
@@ -24,7 +23,7 @@ const PurchasePlanPerform = () => {
...
@@ -24,7 +23,7 @@ const PurchasePlanPerform = () => {
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
Text
type=
'secondary'
>
{
record
.
summary
}
</
Text
>
<
Text
>
{
record
.
summary
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -33,8 +32,8 @@ const PurchasePlanPerform = () => {
...
@@ -33,8 +32,8 @@ const PurchasePlanPerform = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
type=
'secondary'
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
type=
'secondary'
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -49,7 +48,7 @@ const PurchasePlanPerform = () => {
...
@@ -49,7 +48,7 @@ const PurchasePlanPerform = () => {
title
:
'编制时间'
,
title
:
'编制时间'
,
key
:
'createTime'
,
key
:
'createTime'
,
dataIndex
:
'createTime'
,
dataIndex
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
type=
'secondary'
>
{
format
(
text
)
}
</
Text
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
>
{
format
(
text
)
}
</
Text
>
},
{
},
{
title
:
'内部状态'
,
title
:
'内部状态'
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
...
@@ -76,7 +75,7 @@ const PurchasePlanPerform = () => {
...
@@ -76,7 +75,7 @@ const PurchasePlanPerform = () => {
schemaType=
"PURCHASEPLAN_SECHEMA"
schemaType=
"PURCHASEPLAN_SECHEMA"
columns=
{
columns
}
columns=
{
columns
}
effects=
"purchasePlanNo"
effects=
"purchasePlanNo"
fetch=
{
PublicApi
.
getPurchasePurchasePlanList
}
fetch=
{
PublicApi
.
getPurchasePurchasePlan
ToBeExecute
List
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/purchaseAbility/purchasePlan/purchasePlanSearch/index.tsx
View file @
3a6da9bf
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
const
PurchasePlanSearch
=
()
=>
{
const
PurchasePlanSearch
=
()
=>
{
console
.
log
(
'待新增采购需求单'
);
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'采购计划编号/摘要'
,
title
:
'采购计划编号/摘要'
,
...
@@ -24,7 +23,7 @@ const PurchasePlanSearch = () => {
...
@@ -24,7 +23,7 @@ const PurchasePlanSearch = () => {
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
Text
type=
'secondary'
>
{
record
.
summary
}
</
Text
>
<
Text
>
{
record
.
summary
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -33,8 +32,8 @@ const PurchasePlanSearch = () => {
...
@@ -33,8 +32,8 @@ const PurchasePlanSearch = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
type=
'secondary'
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
type=
'secondary'
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -49,34 +48,20 @@ const PurchasePlanSearch = () => {
...
@@ -49,34 +48,20 @@ const PurchasePlanSearch = () => {
title
:
'编制时间'
,
title
:
'编制时间'
,
key
:
'createTime'
,
key
:
'createTime'
,
dataIndex
:
'createTime'
,
dataIndex
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
type=
'secondary'
>
{
format
(
text
)
}
</
Text
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
>
{
format
(
text
)
}
</
Text
>
},
{
},
{
title
:
'内部状态'
,
title
:
'内部状态'
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Badge
status=
{
OFFTER_INTERNALSTATE_COLOR
[
text
]
}
text=
{
record
.
innerStatusName
}
/>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Badge
status=
{
OFFTER_INTERNALSTATE_COLOR
[
text
]
}
text=
{
record
.
innerStatusName
}
/>
},
{
},];
title
:
'操作'
,
key
:
'operate'
,
dataIndex
:
'operate'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/offter/auditOffterOne/detail?id=${record.id}&number=${record.quotedPriceNo}`
)
}
>
审核
</
Button
>
</>
)
}];
return
(
return
(
<
Table
<
Table
schemaType=
"DEMANDPLAN_SECHEMA"
schemaType=
"DEMANDPLAN_SECHEMA"
columns=
{
columns
}
columns=
{
columns
}
effects=
"needPlanNo"
effects=
"needPlanNo"
fetch=
{
PublicApi
.
getPurchasePurchasePlanList
}
fetch=
{
PublicApi
.
getPurchasePurchasePlan
All
List
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/purchaseAbility/purchasePlan/purchasePlanSubmit/index.tsx
View file @
3a6da9bf
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
const
PurchasePlanSubmit
=
()
=>
{
const
PurchasePlanSubmit
=
()
=>
{
console
.
log
(
'待新增采购需求单'
);
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'采购计划编号/摘要'
,
title
:
'采购计划编号/摘要'
,
...
@@ -24,7 +23,7 @@ const PurchasePlanSubmit = () => {
...
@@ -24,7 +23,7 @@ const PurchasePlanSubmit = () => {
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
Text
type=
'secondary'
>
{
record
.
summary
}
</
Text
>
<
Text
>
{
record
.
summary
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -33,8 +32,8 @@ const PurchasePlanSubmit = () => {
...
@@ -33,8 +32,8 @@ const PurchasePlanSubmit = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
type=
'secondary'
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
type=
'secondary'
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -49,7 +48,7 @@ const PurchasePlanSubmit = () => {
...
@@ -49,7 +48,7 @@ const PurchasePlanSubmit = () => {
title
:
'编制时间'
,
title
:
'编制时间'
,
key
:
'createTime'
,
key
:
'createTime'
,
dataIndex
:
'createTime'
,
dataIndex
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
type=
'secondary'
>
{
format
(
text
)
}
</
Text
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
>
{
format
(
text
)
}
</
Text
>
},
{
},
{
title
:
'内部状态'
,
title
:
'内部状态'
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
...
@@ -76,7 +75,7 @@ const PurchasePlanSubmit = () => {
...
@@ -76,7 +75,7 @@ const PurchasePlanSubmit = () => {
schemaType=
"PURCHASEPLAN_SECHEMA"
schemaType=
"PURCHASEPLAN_SECHEMA"
columns=
{
columns
}
columns=
{
columns
}
effects=
"purchasePlanNo"
effects=
"purchasePlanNo"
fetch=
{
PublicApi
.
getPurchasePurchasePlanList
}
fetch=
{
PublicApi
.
getPurchasePurchasePlan
ToBeSubmitExam
List
}
/>
/>
)
)
}
}
...
...
src/pages/transaction/purchaseAbility/purchasePlan/purchasePlanTwo/index.tsx
View file @
3a6da9bf
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
...
@@ -13,9 +13,8 @@ import { PlayCircleOutlined, PoweroffOutlined } from '@ant-design/icons';
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
const
PurchasePlanTwo
=
()
=>
{
const
PurchasePlanTwo
=
()
=>
{
console
.
log
(
'待新增采购需求单'
);
const
format
=
(
text
)
=>
{
const
format
=
(
text
)
=>
{
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</>
return
<>
{
moment
(
text
).
format
(
"YYYY-MM-DD"
)
}
</>
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[{
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'采购计划编号/摘要'
,
title
:
'采购计划编号/摘要'
,
...
@@ -24,7 +23,7 @@ const PurchasePlanTwo = () => {
...
@@ -24,7 +23,7 @@ const PurchasePlanTwo = () => {
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
url=
{
`/memberCenter/procurementAbility/offter/auditOffterOne/view?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`
}
>
{
text
}
</
EyePreview
>
<
Text
type=
'secondary'
>
{
record
.
summary
}
</
Text
>
<
Text
>
{
record
.
summary
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -33,8 +32,8 @@ const PurchasePlanTwo = () => {
...
@@ -33,8 +32,8 @@ const PurchasePlanTwo = () => {
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
Space
direction=
'vertical'
>
<
Text
type=
'secondary'
><
PlayCircleOutlined
/>
{
format
(
text
)
}
</
Text
>
<
Text
><
PlayCircleOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
text
)
}
</
Text
>
<
Text
type=
'secondary'
><
PoweroffOutlined
/>
{
format
(
record
.
endTime
)
}
</
Text
>
<
Text
><
PoweroffOutlined
style=
{
{
marginRight
:
5
}
}
/>
{
format
(
record
.
endTime
)
}
</
Text
>
</
Space
>
</
Space
>
)
)
},
{
},
{
...
@@ -49,7 +48,7 @@ const PurchasePlanTwo = () => {
...
@@ -49,7 +48,7 @@ const PurchasePlanTwo = () => {
title
:
'编制时间'
,
title
:
'编制时间'
,
key
:
'createTime'
,
key
:
'createTime'
,
dataIndex
:
'createTime'
,
dataIndex
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
type=
'secondary'
>
{
format
(
text
)
}
</
Text
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
>
{
format
(
text
)
}
</
Text
>
},
{
},
{
title
:
'内部状态'
,
title
:
'内部状态'
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
...
@@ -76,7 +75,7 @@ const PurchasePlanTwo = () => {
...
@@ -76,7 +75,7 @@ const PurchasePlanTwo = () => {
schemaType=
"PURCHASEPLAN_SECHEMA"
schemaType=
"PURCHASEPLAN_SECHEMA"
columns=
{
columns
}
columns=
{
columns
}
effects=
"purchasePlanNo"
effects=
"purchasePlanNo"
fetch=
{
PublicApi
.
getPurchasePurchasePlanList
}
fetch=
{
PublicApi
.
getPurchasePurchasePlan
ToBeSecondExam
List
}
/>
/>
)
)
}
}
...
...
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