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
82c581e5
Commit
82c581e5
authored
May 13, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理招投标文件上传错误和修改id传参异常问题
parent
303322b7
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
35 deletions
+29
-35
MultAddress.tsx
src/components/NiceForm/components/MultAddress.tsx
+1
-4
index.ts
src/constants/index.ts
+4
-4
index.tsx
...ages/procurement/callForBids/addNewBid/constant/index.tsx
+4
-5
index.tsx
src/pages/procurement/callForBids/addNewBid/index.tsx
+1
-4
index.tsx
...pages/procurement/callForBids/callForBidsSearch/index.tsx
+3
-2
useSelfTable.tsx
...ment/callForBids/callForBidsSearch/model/useSelfTable.tsx
+4
-4
index.tsx
src/pages/procurement/callForBids/firstCheckedBid/index.tsx
+1
-1
index.ts
...s/procurement/callForBids/firstCheckedBid/schema/index.ts
+1
-1
index.tsx
src/pages/procurement/tender/addTender/constant/index.tsx
+10
-10
No files found.
src/components/NiceForm/components/MultAddress.tsx
View file @
82c581e5
...
...
@@ -110,21 +110,18 @@ const MultAddress = (props) => {
}
else
if
(
num
===
2
)
{
renderCity
(
result
,
val
,
idx
)
}
console
.
log
(
result
,
'mutators'
)
mutators
.
change
(
result
)
}
// 渲染省份option
const
renderProvice
=
async
(
result
,
val
,
idx
)
=>
{
// console.log(result, val, idx
)
console
.
log
(
result
,
val
,
idx
,
result
[
idx
]
)
await
province
.
forEach
(
item
=>
{
if
(
item
.
code
===
val
)
{
PublicApi
.
getManageAreaByPcodeAll
({
pcode
:
val
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
1000
)
{
result
[
idx
].
provinceCode
=
val
;
result
[
idx
].
province
=
item
.
name
;
// 重新set下id值
result
[
idx
][
'id'
]
?
result
[
idx
][
'id'
]
=
result
[
idx
][
'id'
]
:
null
// @todo 编辑情况下 result[idx]存在id ?第一次渲染回填值的时候不清空
// if(result[idx]?.id&& ) {
// console.log(cityAfterRef.current, 1, item)
...
...
src/constants/index.ts
View file @
82c581e5
...
...
@@ -2070,7 +2070,7 @@ export enum BidInsideWorkState {
Not_Submitted_Check_Invite_Tender
=
1
,
/** 待审核招标 */
Not_Tender_Check
=
2
,
/**
招标审核通过
*/
/**
待提交招标
*/
Tender_Check_Pass
=
3
,
/** 招标审核不通过 */
Tender_Check_Not_Pass
=
4
,
...
...
@@ -2110,7 +2110,7 @@ export enum BidInsideWorkState {
export
const
BidInStateTexts
=
{
1
:
"待提交审核招标"
,
2
:
"待审核招标"
,
3
:
'
招标审核通过
'
,
3
:
'
待提交招标
'
,
4
:
'招标审核不通过'
,
5
:
'已提交招标'
,
6
:
'报名审核通过'
,
...
...
@@ -2224,7 +2224,7 @@ export const BidOutOpeartTexts = {
export
enum
TenderInsideWorkState
{
/** 待招标报名 */
NotSubmitted_Invite_Tender_Register
=
1
,
/**
已提交招标
报名 */
/**
待审核
报名 */
Submitted_Invite_Tender_Register
=
2
,
/** 待提交资格预审 */
Not_Submitted_Qualifications_Check
=
3
,
...
...
@@ -2247,7 +2247,7 @@ export enum TenderInsideWorkState {
/** 投标 内部状态 */
export
const
TenderInStateTexts
=
{
1
:
"待招标报名"
,
2
:
"
已提交招标
报名"
,
2
:
"
待审核
报名"
,
3
:
"待提交资格预审"
,
4
:
'已提交资格预审'
,
5
:
'待新增投标'
,
...
...
src/pages/procurement/callForBids/addNewBid/constant/index.tsx
View file @
82c581e5
...
...
@@ -18,7 +18,7 @@ export const fileChangeStringArray = (arr) => arr.map(item => {
name
:
item
.
name
.
split
(
'/'
).
pop
(),
url
:
item
.
url
}
if
(
pageStatus
===
PageStatus
.
ADD
||
!
item
?.
id
)
{
delete
param
.
id
}
if
(
pageStatus
===
PageStatus
.
ADD
)
{
delete
param
.
id
}
return
param
})
...
...
@@ -54,7 +54,7 @@ export const paramsConversionFn = (value) => {
name
:
_item
.
name
.
split
(
'/'
).
pop
(),
url
:
_item
[
'url'
]
}
if
(
pageStatus
===
PageStatus
.
ADD
||
!
_item
?.
id
)
{
delete
param
.
id
}
if
(
pageStatus
===
PageStatus
.
ADD
)
{
delete
param
.
id
}
return
param
})
}
...
...
@@ -71,8 +71,7 @@ export const paramsConversionFn = (value) => {
memberRoleName
:
item
.
roleName
,
...
item
,
}
if
(
pageStatus
===
PageStatus
.
ADD
||
!
item
?.
id
)
{
console
.
log
(
'delelet'
)
if
(
pageStatus
===
PageStatus
.
ADD
)
{
delete
param
.
id
}
return
param
...
...
@@ -90,7 +89,7 @@ export const paramsConversionFn = (value) => {
cityName
:
item
.
city
,
isAllCity
:
item
?.
cityCode
?
false
:
true
}
if
(
pageStatus
===
PageStatus
.
ADD
||
!
item
?.
id
)
{
delete
param
.
id
}
if
(
pageStatus
===
PageStatus
.
ADD
)
{
delete
param
.
id
}
return
param
})
}
else
{
...
...
src/pages/procurement/callForBids/addNewBid/index.tsx
View file @
82c581e5
...
...
@@ -67,7 +67,6 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => {
}).
then
(
res
=>
{
const
{
data
}
=
res
setInitFormValue
(
paramsRenderFn
(
data
))
console
.
log
(
paramsRenderFn
(
data
),
'67'
)
setFormLoading
(
false
)
})
}
...
...
@@ -76,7 +75,6 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => {
PublicApi
.
postPurchaseInviteTenderCopyInviteTender
({
id
:
currentCopyId
}).
then
(
res
=>
{
const
{
data
}
=
res
setInitFormValue
(
paramsRenderFn
(
data
))
console
.
log
(
paramsRenderFn
(
data
),
'特例 复制'
)
})
}
return
()
=>
sessionStorage
.
removeItem
(
'currentCopyId'
)
...
...
@@ -97,9 +95,8 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => {
const
handleSubmit
=
async
(
value
)
=>
{
setBtnLoading
(
true
)
console
.
log
(
value
,
'vvv'
)
const
params
=
paramsConversionFn
(
value
)
console
.
log
(
params
,
'ppp'
)
console
.
log
(
params
,
value
,
'ppp'
)
if
(
!
params
.
isQualificationCheck
)
{
delete
params
.
preCheckStartTime
delete
params
.
preCheckEndTime
...
...
src/pages/procurement/callForBids/callForBidsSearch/index.tsx
View file @
82c581e5
...
...
@@ -42,7 +42,8 @@ const callForBidsSearch: React.FC<{}> = () => {
align
:
'left'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
width
:
240
,
// width: 240,
// fixed: 'right',
render
:
(
text
,
record
)
=>
<>
<
Button
type=
'link'
onClick=
{
()
=>
handleCopy
(
record
.
id
)
}
>
复制
</
Button
>
{
...
...
@@ -89,11 +90,11 @@ const callForBidsSearch: React.FC<{}> = () => {
// 修改开标时间
const
handleChangeTime
=
(
record
)
=>
{
modifyActions
.
setFieldValue
(
'id'
,
record
.
id
)
setInviteTenderEndTime
(
record
.
inviteTenderEndTime
)
setEvaluationStartTime
(
record
.
evaluationStartTime
)
setTimeout
(()
=>
{
modifyActions
.
setFieldValue
(
'openTenderTime'
,
moment
(
record
.
openTenderTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
))
modifyActions
.
setFieldValue
(
'id'
,
record
.
id
)
},
500
)
modifyRef
.
current
.
setVisible
(
true
)
}
...
...
src/pages/procurement/callForBids/callForBidsSearch/model/useSelfTable.tsx
View file @
82c581e5
...
...
@@ -16,6 +16,7 @@ export const useSelfTable = () => {
align
:
'left'
,
dataIndex
:
'id'
,
key
:
'id'
,
// width: 60,
render
:
(
text
,
record
,
index
)
=>
index
+
1
},
{
...
...
@@ -50,7 +51,7 @@ export const useSelfTable = () => {
dataIndex
:
'createTime'
,
key
:
'createTime'
,
render
:
(
text
,
record
)
=>
formatTimeString
(
record
.
createTime
),
width
:
180
//
width: 180
},
{
title
:
'报名开始/截止时间'
,
...
...
@@ -61,7 +62,7 @@ export const useSelfTable = () => {
<
div
><
PlayCircleOutlined
/>
{
formatTimeString
(
record
.
registerStartTime
)
}
</
div
>
<
div
><
PoweroffOutlined
/>
{
formatTimeString
(
record
.
registerEndTime
)
}
</
div
>
</>,
width
:
180
//
width: 180
},
{
title
:
'资格预审开始/截止时间'
,
...
...
@@ -72,7 +73,7 @@ export const useSelfTable = () => {
{
record
.
preCheckStartTime
?
<
div
><
PlayCircleOutlined
/>
{
formatTimeString
(
record
.
preCheckStartTime
)
}
</
div
>
:
null
}
{
record
.
preCheckEndTime
?
<
div
><
PoweroffOutlined
/>
{
formatTimeString
(
record
.
preCheckEndTime
)
}
</
div
>
:
null
}
</>,
width
:
180
//
width: 180
},
{
title
:
'投标开始/截止时间'
,
...
...
@@ -83,7 +84,6 @@ export const useSelfTable = () => {
<
div
><
PlayCircleOutlined
/>
{
formatTimeString
(
record
.
inviteTenderStartTime
)
}
</
div
>
<
div
><
PoweroffOutlined
/>
{
formatTimeString
(
record
.
inviteTenderEndTime
)
}
</
div
>
</>,
width
:
180
},
{
title
:
'外部状态'
,
...
...
src/pages/procurement/callForBids/firstCheckedBid/index.tsx
View file @
82c581e5
...
...
@@ -72,7 +72,7 @@ const FirstCheckedBid:React.FC<FirstCheckedBidProps> = (props) => {
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'
c
ode'
,
'
inviteTenderC
ode'
,
FORM_FILTER_PATH
,
);
},
...
...
src/pages/procurement/callForBids/firstCheckedBid/schema/index.ts
View file @
82c581e5
...
...
@@ -7,7 +7,7 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
export
const
tableListSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
c
ode
:
{
inviteTenderC
ode
:
{
type
:
'string'
,
"x-component"
:
'SearchFilter'
,
'x-component-props'
:
{
...
...
src/pages/procurement/tender/addTender/constant/index.tsx
View file @
82c581e5
...
...
@@ -100,53 +100,53 @@ export const productInfoColumns: any[] = [
{
title
:
'ID'
,
dataIndex
:
'id'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'id'
,
className
:
'commonHide'
,
},
{
title
:
'物料编号/名称'
,
dataIndex
:
'code'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'code'
,
render
:
(
t
,
r
)
=>
<><
div
>
{
t
}
</
div
><
div
>
{
r
.
name
}
</
div
></>
},
{
title
:
'规格'
,
dataIndex
:
'type'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'type'
,
},
{
title
:
'品类'
,
dataIndex
:
'categoryName'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'categoryName'
,
},
{
title
:
'品牌'
,
dataIndex
:
'brandName'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'brandName'
,
},
{
title
:
'采购数量/单位'
,
dataIndex
:
'count'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'count'
,
render
:
(
t
,
r
)
=>
<><
div
>
{
t
}
</
div
><
div
>
{
r
.
unitName
}
</
div
></>
},
{
title
:
'含税'
,
dataIndex
:
'isTax'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'isTax'
,
render
:
(
t
,
r
)
=>
t
?
'是'
:
'否'
},
{
title
:
'税率'
,
dataIndex
:
'taxRate'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'taxRate'
,
formItem
:
'input'
,
editable
:
true
,
...
...
@@ -170,13 +170,13 @@ export const productInfoColumns: any[] = [
{
title
:
'金额(含税)'
,
dataIndex
:
'money'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'money'
,
},
{
title
:
'操作'
,
dataIndex
:
'ctl'
,
align
:
'
center
'
,
align
:
'
left
'
,
key
:
'ctl'
,
},
]
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