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
5fdba405
Commit
5fdba405
authored
May 28, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 招标报名/资格审核筛选字段变更,处理新增编辑招标id传参异常
parent
e10a9591
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
index.tsx
...ages/procurement/callForBids/addNewBid/constant/index.tsx
+8
-3
index.tsx
...es/procurement/callForBids/readyCheckedRegister/index.tsx
+1
-1
index.tsx
...s/procurement/callForBids/readyQualifityChecked/index.tsx
+1
-1
useSelfTable.tsx
...ocurement/callForBids/tenderSearch/model/useSelfTable.tsx
+1
-1
No files found.
src/pages/procurement/callForBids/addNewBid/constant/index.tsx
View file @
5fdba405
import
React
from
'react'
import
{
history
}
from
'umi'
import
moment
from
'moment'
import
{
BidInStateTexts
,
BidOutStateTexts
}
from
'@/constants'
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
const
{
pageStatus
,
id
}
=
usePageStatus
()
/** 时间转时间戳 */
export
const
dataChangeUnix
=
(
t
)
=>
moment
(
t
).
valueOf
()
...
...
@@ -13,6 +12,7 @@ export const unixChangeRender = (t) => t ? moment(t).format('YYYY-MM-DD HH:mm:ss
/** 文件数组转url字符串数组 */
export
const
fileChangeStringArray
=
(
arr
)
=>
arr
.
map
(
item
=>
{
const
{
pageStatus
}
=
usePageStatus
()
let
param
=
{
id
:
item
.
id
,
name
:
item
.
name
.
split
(
'/'
).
pop
(),
...
...
@@ -25,6 +25,7 @@ export const fileChangeStringArray = (arr) => arr.map(item => {
/** 传参 数据转换 id:判断是否编辑 */
export
const
paramsConversionFn
=
(
value
)
=>
{
const
{
pageStatus
}
=
usePageStatus
()
const
_value
=
{...
value
}
value
[
'evaluationStartTime'
]
=
dataChangeUnix
(
_value
[
'evaluationStartTime'
])
value
[
'evaluationEndTime'
]
=
dataChangeUnix
(
_value
[
'evaluationEndTime'
])
...
...
@@ -71,6 +72,7 @@ export const paramsConversionFn = (value) => {
memberRoleName
:
item
.
roleName
,
...
item
,
}
console
.
log
(
pageStatus
,
'gan'
)
if
(
pageStatus
===
PageStatus
.
ADD
)
{
delete
param
.
id
}
...
...
@@ -89,7 +91,10 @@ export const paramsConversionFn = (value) => {
cityName
:
item
.
city
,
isAllCity
:
item
?.
cityCode
?
false
:
true
}
if
(
pageStatus
===
PageStatus
.
ADD
)
{
delete
param
.
id
}
console
.
log
(
pageStatus
,
'gan'
)
if
(
pageStatus
===
PageStatus
.
ADD
)
{
delete
param
.
id
}
return
param
})
}
else
{
...
...
src/pages/procurement/callForBids/readyCheckedRegister/index.tsx
View file @
5fdba405
...
...
@@ -19,7 +19,7 @@ export interface ReadyCheckedRegisterProps {}
const
fetchTableData
=
async
(
params
)
=>
{
const
{
data
}
=
await
PublicApi
.
postPurchaseInviteTenderGetSubmitTenderList
({
...
params
,
submitTenderOutStatusList
:
[
TenderOut
WorkState
.
Not_Check_Register_Check
]
inviteTenderOutStatusList
:
[
BidOuter
WorkState
.
Not_Check_Register_Check
]
},
{
ctlType
:
"none"
})
return
data
}
...
...
src/pages/procurement/callForBids/readyQualifityChecked/index.tsx
View file @
5fdba405
...
...
@@ -19,7 +19,7 @@ export interface ReadyQualifityCheckedProps {}
const
fetchTableData
=
async
(
params
)
=>
{
const
{
data
}
=
await
PublicApi
.
postPurchaseInviteTenderGetSubmitTenderList
({
...
params
,
submitTenderOutStatusList
:
[
TenderOut
WorkState
.
Not_Qualifications_Check
],
inviteTenderOutStatusList
:
[
BidOuter
WorkState
.
Not_Qualifications_Check
],
},
{
ctlType
:
"none"
})
return
data
}
...
...
src/pages/procurement/callForBids/tenderSearch/model/useSelfTable.tsx
View file @
5fdba405
...
...
@@ -67,7 +67,7 @@ export const useSelfTable = () => {
align
:
'left'
,
dataIndex
:
'inviteTender'
,
key
:
'inviteTender'
,
render
:
(
text
,
record
)
=>
<
CustomTag
status=
{
record
.
inviteTender
.
inviteTenderOutStatus
}
type=
'o
ut'
/>
render
:
(
text
,
record
)
=>
<
CustomTag
status=
{
record
.
submitTenderOutStatus
}
type=
'tenderO
ut'
/>
},
// {
// title: '内部状态',
...
...
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