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
59476d62
Commit
59476d62
authored
Jun 23, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 投标报名接口修改
parent
9146f0bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
index.ts
...pages/procurement/tender/addBidRegister/constant/index.ts
+11
-11
index.tsx
src/pages/procurement/tender/addBidRegister/index.tsx
+1
-1
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+5
-1
No files found.
src/pages/procurement/tender/addBidRegister/constant/index.ts
View file @
59476d62
...
...
@@ -4,17 +4,17 @@ import { unixChangeRender } from "@/pages/procurement/callForBids/addNewBid/cons
/** 参数字段转换为form数据 */
export
const
fieldTransformRender
=
(
params
)
=>
{
let
result
:
any
=
{}
result
[
'inviteTenderId'
]
=
params
.
i
nviteTender
.
i
d
result
[
'inviteTenderCode'
]
=
params
.
inviteTender
.
code
result
[
'remark'
]
=
params
.
inviteTender
.
remark
result
[
'memberName'
]
=
params
.
inviteTender
.
memberName
result
[
'inviteTenderArea'
]
=
params
.
inviteTender
.
inviteTender
AreaList
.
map
(
item
=>
item
.
provinceName
+
''
+
item
.
cityName
).
join
(
'/'
)
result
[
'createTime'
]
=
unixChangeRender
(
params
.
inviteTender
.
createTime
)
result
[
'registerStartTime'
]
=
unixChangeRender
(
params
.
inviteTender
.
registerStartTime
)
result
[
'registerEndTime'
]
=
unixChangeRender
(
params
.
inviteTender
.
registerEndTime
)
result
[
'registerRequirement'
]
=
params
.
inviteTender
.
registerRequirement
result
[
'registerNeedFile'
]
=
params
.
inviteTender
.
registerFile
result
[
'inviteTenderMember'
]
=
params
.
m
emberName
result
[
'inviteTenderId'
]
=
params
.
id
result
[
'inviteTenderCode'
]
=
params
.
code
result
[
'remark'
]
=
params
.
remark
result
[
'memberName'
]
=
params
.
memberName
result
[
'inviteTenderArea'
]
=
params
.
inviteTenderAreaList
.
map
(
item
=>
item
.
provinceName
+
''
+
item
.
cityName
).
join
(
'/'
)
result
[
'createTime'
]
=
unixChangeRender
(
params
.
createTime
)
result
[
'registerStartTime'
]
=
unixChangeRender
(
params
.
registerStartTime
)
result
[
'registerEndTime'
]
=
unixChangeRender
(
params
.
registerEndTime
)
result
[
'registerRequirement'
]
=
params
.
registerRequirement
result
[
'registerNeedFile'
]
=
params
.
registerFile
result
[
'inviteTenderMember'
]
=
params
.
submitTenderM
emberName
result
[
'submitTenderOutStatus'
]
=
TenderOutStateTexts
[
params
.
submitTenderOutStatus
]
result
[
'submitTenderInStatus'
]
=
TenderInStateTexts
[
params
.
submitTenderInStatus
]
...
...
src/pages/procurement/tender/addBidRegister/index.tsx
View file @
59476d62
...
...
@@ -34,7 +34,7 @@ const AddBidRegister:React.FC<AddBidRegisterProps> = (props) => {
useEffect
(()
=>
{
if
(
id
)
{
PublicApi
.
getPurchase
SubmitTenderGetInviteTend
er
({
inviteTenderId
:
id
}).
then
(
res
=>
{
PublicApi
.
getPurchase
InviteTenderGetInviteTenderRegist
er
({
inviteTenderId
:
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
// 转换字段渲染
const
fixedData
=
fieldTransformRender
(
res
.
data
)
...
...
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
59476d62
...
...
@@ -178,12 +178,16 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
id
}).
then
(
res
=>
{
const
{
data
}
=
res
const
_orderProductRequests
=
data
.
orderModel
>
30
?
procurementRenderField
(
data
.
orderProductRequests
)
:
data
.
orderProductRequests
setInitFormValue
({
...
data
,
// 判断是否合同下单
orderProductRequests
:
data
.
orderModel
>
30
?
procurementRenderField
(
data
.
orderProductRequests
)
:
data
.
orderProductRequests
,
orderProductRequests
:
_
orderProductRequests
,
deliveryTime
:
formatTimeString
(
data
.
deliveryTime
)
})
setTimeout
(()
=>
{
addSchemaAction
.
setFieldValue
(
'orderProductRequests'
,
_orderProductRequests
)
},
500
)
setFormLoading
(
false
)
})
}
...
...
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