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
9de56809
Commit
9de56809
authored
May 19, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理新增招标资格预审/在线评标/目标价初始值问题,处理新增采购订单自提物流方式没有显示地址问题
parent
788b8752
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
11 deletions
+68
-11
index.tsx
src/pages/procurement/callForBids/addNewBid/index.tsx
+6
-0
index.ts
src/pages/procurement/callForBids/addNewBid/schema/index.ts
+5
-5
index.tsx
...d/components/bidConfirm/components/givenBidItem/index.tsx
+5
-0
index.tsx
...llForBids/readyConfirmBid/components/bidConfirm/index.tsx
+1
-1
index.tsx
...Order/orderCollect/components/materialTableCell/index.tsx
+48
-3
index.tsx
...Order/orderCollect/components/productModalTable/index.tsx
+1
-1
index.tsx
...transaction/purchaseOrder/orderCollect/constant/index.tsx
+2
-1
No files found.
src/pages/procurement/callForBids/addNewBid/index.tsx
View file @
9de56809
...
@@ -205,6 +205,12 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => {
...
@@ -205,6 +205,12 @@ const AddNewBid:React.FC<AddNewBidProps> = (props) => {
state
.
props
.
enum
=
addressRes
.
data
.
map
(
item
=>
({
label
:
item
.
fullAddress
,
value
:
item
.
id
}))
state
.
props
.
enum
=
addressRes
.
data
.
map
(
item
=>
({
label
:
item
.
fullAddress
,
value
:
item
.
id
}))
})
})
if
(
pageStatus
===
PageStatus
.
ADD
)
{
ctx
.
setFieldValue
(
'hasAimPrice'
,
true
)
ctx
.
setFieldValue
(
'isQualificationCheck'
,
true
)
ctx
.
setFieldValue
(
'isOnlineEvaluation'
,
true
)
}
$
(
'onFieldValueChange'
,
'inviteTenderType'
).
subscribe
(
state
=>
{
$
(
'onFieldValueChange'
,
'inviteTenderType'
).
subscribe
(
state
=>
{
if
(
state
.
value
===
PUBLIC_BID
)
{
if
(
state
.
value
===
PUBLIC_BID
)
{
if
(
pageStatus
===
PageStatus
.
EDIT
&&
!
publicFlag
.
current
)
{
if
(
pageStatus
===
PageStatus
.
EDIT
&&
!
publicFlag
.
current
)
{
...
...
src/pages/procurement/callForBids/addNewBid/schema/index.ts
View file @
9de56809
...
@@ -292,7 +292,7 @@ const bidRequestInfo: ISchema = {
...
@@ -292,7 +292,7 @@ const bidRequestInfo: ISchema = {
}
}
},
},
hasAimPrice
:
{
hasAimPrice
:
{
type
:
'number
'
,
// type: 'boolean
',
"x-component"
:
'CheckboxSingle'
,
"x-component"
:
'CheckboxSingle'
,
"x-component-props"
:
{
"x-component-props"
:
{
children
:
'是否有目标价'
,
children
:
'是否有目标价'
,
...
@@ -301,7 +301,7 @@ const bidRequestInfo: ISchema = {
...
@@ -301,7 +301,7 @@ const bidRequestInfo: ISchema = {
}
}
},
},
title
:
'{{help("目标价", "招标项目期望成交价格")}}'
,
title
:
'{{help("目标价", "招标项目期望成交价格")}}'
,
default
:
0
,
default
:
true
,
"x-linkages"
:
[
"x-linkages"
:
[
{
{
type
:
'value:visible'
,
type
:
'value:visible'
,
...
@@ -452,7 +452,7 @@ const qualificationNeedInfo: ISchema = {
...
@@ -452,7 +452,7 @@ const qualificationNeedInfo: ISchema = {
},
},
properties
:
{
properties
:
{
isQualificationCheck
:
{
isQualificationCheck
:
{
type
:
'boolean'
,
//
type: 'boolean',
"x-component"
:
'CheckboxSingle'
,
"x-component"
:
'CheckboxSingle'
,
"x-component-props"
:
{
"x-component-props"
:
{
children
:
'需要资格预审'
,
children
:
'需要资格预审'
,
...
@@ -586,7 +586,7 @@ const evaluationNeedInfo: ISchema = {
...
@@ -586,7 +586,7 @@ const evaluationNeedInfo: ISchema = {
description
:
'一次上传一个文件,每个附件大小不能超过20M'
,
description
:
'一次上传一个文件,每个附件大小不能超过20M'
,
},
},
isOnlineEvaluation
:
{
isOnlineEvaluation
:
{
type
:
'number
'
,
// type: 'boolean
',
required
:
true
,
required
:
true
,
"x-component"
:
'CheckboxSingle'
,
"x-component"
:
'CheckboxSingle'
,
"x-component-props"
:
{
"x-component-props"
:
{
...
@@ -596,7 +596,7 @@ const evaluationNeedInfo: ISchema = {
...
@@ -596,7 +596,7 @@ const evaluationNeedInfo: ISchema = {
}
}
},
},
title
:
'{{help("是否在线评标", "在线进行评标打分")}}'
,
title
:
'{{help("是否在线评标", "在线进行评标打分")}}'
,
default
:
1
,
default
:
true
,
// "x-linkages": [
// "x-linkages": [
// {
// {
// type: 'value:visible',
// type: 'value:visible',
...
...
src/pages/procurement/callForBids/readyConfirmBid/components/bidConfirm/components/givenBidItem/index.tsx
View file @
9de56809
...
@@ -63,6 +63,8 @@ export const GivenBidItem:React.FC<GivenBidItemProps> = ({
...
@@ -63,6 +63,8 @@ export const GivenBidItem:React.FC<GivenBidItemProps> = ({
}
}
return
<
div
className=
{
style
.
throwBidInfo
}
>
return
<
div
className=
{
style
.
throwBidInfo
}
>
{
currentData
[
currentColumn
.
dataIndex
]
?
<>
<
div
className=
{
style
[
'card-list'
]
}
>
<
div
className=
{
style
[
'card-list'
]
}
>
<
Row
>
<
Row
>
<
Col
span=
{
8
}
><
p
className=
{
style
[
'card-list_title'
]
}
>
含税单价:
</
p
></
Col
>
<
Col
span=
{
8
}
><
p
className=
{
style
[
'card-list_title'
]
}
>
含税单价:
</
p
></
Col
>
...
@@ -106,6 +108,9 @@ export const GivenBidItem:React.FC<GivenBidItemProps> = ({
...
@@ -106,6 +108,9 @@ export const GivenBidItem:React.FC<GivenBidItemProps> = ({
</
Col
>
</
Col
>
</
Row
>
</
Row
>
</
div
>
</
div
>
</>
:
null
}
</
div
>
</
div
>
}
}
...
...
src/pages/procurement/callForBids/readyConfirmBid/components/bidConfirm/index.tsx
View file @
9de56809
...
@@ -138,7 +138,7 @@ const BidConfirm: React.FC<BidConfirmProps> = ({cardTitle}) => {
...
@@ -138,7 +138,7 @@ const BidConfirm: React.FC<BidConfirmProps> = ({cardTitle}) => {
{
{
tableColumns
.
map
((
_item
,
_index
)
=>
{
tableColumns
.
map
((
_item
,
_index
)
=>
{
const
{
title
,
dataIndex
}
=
_item
const
{
title
,
dataIndex
}
=
_item
if
(
title
===
'采购物料'
)
{
if
(
title
===
'采购物料'
&&
item
[
dataIndex
]
)
{
return
(<
Col
span=
{
4
}
style=
{
{
paddingTop
:
0
,
marginTop
:
0
}
}
>
return
(<
Col
span=
{
4
}
style=
{
{
paddingTop
:
0
,
marginTop
:
0
}
}
>
<
div
className=
{
style
.
materialInfo
}
>
<
div
className=
{
style
.
materialInfo
}
>
<
span
className=
{
style
.
rankNumber
}
>
{
index
+
1
}
</
span
>
<
span
className=
{
style
.
rankNumber
}
>
{
index
+
1
}
</
span
>
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/materialTableCell/index.tsx
View file @
9de56809
import
React
,
{
useState
,
useRef
,
useContext
,
useEffect
}
from
'react'
import
React
,
{
useState
,
useRef
,
useContext
,
useEffect
,
useCallback
}
from
'react'
import
{
Form
,
Input
,
Select
}
from
'antd'
;
import
{
Form
,
Input
,
Select
,
Popover
,
Row
}
from
'antd'
;
import
{
EnvironmentOutlined
}
from
'@ant-design/icons'
;
import
{
PublicApi
}
from
'@/services/api'
;
export
interface
MaterialTableCellProps
{
export
interface
MaterialTableCellProps
{
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
...
@@ -46,6 +48,19 @@ export const MaterialTableCell:React.FC<MaterialTableCellProps> = ({
...
@@ -46,6 +48,19 @@ export const MaterialTableCell:React.FC<MaterialTableCellProps> = ({
const
formItemRef
=
useRef
<
any
>
();
const
formItemRef
=
useRef
<
any
>
();
const
{
form
}
=
useContext
(
EditableContext
);
const
{
form
}
=
useContext
(
EditableContext
);
// 是否显示地址
const
[
showAddress
,
setShowAddress
]
=
useState
<
boolean
>
(
false
)
// 地址信息
const
[
receiveInfo
,
setReceiveInfo
]
=
useState
<
any
>
()
const
getReceiveInfo
=
async
()
=>
{
const
{
data
:
deliveryAddress
}
=
await
PublicApi
.
getLogisticsSelectListMemberShipperAddress
({
memberId
:
record
.
memberId
,
roleId
:
record
.
memberRoleId
})
setReceiveInfo
(()
=>
deliveryAddress
.
filter
(
item
=>
item
.
isDefault
)[
0
])
}
const
save
=
async
e
=>
{
const
save
=
async
e
=>
{
try
{
try
{
const
values
=
await
form
.
validateFields
();
const
values
=
await
form
.
validateFields
();
...
@@ -59,6 +74,13 @@ export const MaterialTableCell:React.FC<MaterialTableCellProps> = ({
...
@@ -59,6 +74,13 @@ export const MaterialTableCell:React.FC<MaterialTableCellProps> = ({
// select的change
// select的change
const
change
=
async
(
va
,
op
,
idx
)
=>
{
const
change
=
async
(
va
,
op
,
idx
)
=>
{
console
.
log
(
va
,
op
,
idx
)
console
.
log
(
va
,
op
,
idx
)
// 自提情况下 显示地址
if
(
va
===
2
)
{
setShowAddress
(
true
)
getReceiveInfo
()
}
else
{
setShowAddress
(
false
)
}
try
{
try
{
const
values
=
await
form
.
validateFields
();
const
values
=
await
form
.
validateFields
();
values
[
idx
]
=
op
[
'label'
]
values
[
idx
]
=
op
[
'label'
]
...
@@ -113,10 +135,11 @@ export const MaterialTableCell:React.FC<MaterialTableCellProps> = ({
...
@@ -113,10 +135,11 @@ export const MaterialTableCell:React.FC<MaterialTableCellProps> = ({
callback
(
err
)
callback
(
err
)
}
}
}
}
console
.
log
(
record
,
'cell rrr'
)
let
childNode
=
children
;
let
childNode
=
children
;
if
(
editable
)
{
if
(
editable
)
{
childNode
=
childNode
=
<>
<
Form
.
Item
<
Form
.
Item
style=
{
{
margin
:
0
}
}
style=
{
{
margin
:
0
}
}
name=
{
dataIndex
}
name=
{
dataIndex
}
...
@@ -142,6 +165,28 @@ export const MaterialTableCell:React.FC<MaterialTableCellProps> = ({
...
@@ -142,6 +165,28 @@ export const MaterialTableCell:React.FC<MaterialTableCellProps> = ({
>
>
{
chooseFormItem
(
formItem
,
record
[
dataIndex
]
||
''
)
}
{
chooseFormItem
(
formItem
,
record
[
dataIndex
]
||
''
)
}
</
Form
.
Item
>
</
Form
.
Item
>
{
showAddress
?
<
Popover
content=
{
<
Row
>
<
div
>
<
h3
><
EnvironmentOutlined
/>
自提地址
</
h3
>
{
receiveInfo
&&
<>
<
p
>
{
receiveInfo
.
shipperName
}
/
{
receiveInfo
.
phone
}
</
p
>
<
p
>
{
receiveInfo
.
provinceName
+
receiveInfo
.
cityName
+
receiveInfo
.
districtName
+
receiveInfo
.
address
||
receiveInfo
.
fullAddress
}
</
p
>
</>
}
</
div
>
</
Row
>
}
>
<
span
style=
{
{
position
:
'absolute'
,
right
:
0
,
top
:
'42%'
,
}
}
><
EnvironmentOutlined
/></
span
>
</
Popover
>
:
null
}
</>
}
}
return
<
td
{
...
restProps
}
>
{
childNode
}
</
td
>;
return
<
td
{
...
restProps
}
>
{
childNode
}
</
td
>;
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/productModalTable/index.tsx
View file @
9de56809
...
@@ -76,7 +76,7 @@ const orderProductShopTypeMaps = {
...
@@ -76,7 +76,7 @@ const orderProductShopTypeMaps = {
export
const
AddressPop
=
(
props
)
=>
{
export
const
AddressPop
=
(
props
)
=>
{
const
{
pickInfo
=
null
,
children
}
=
props
const
{
pickInfo
=
null
,
children
}
=
props
let
receiveInfo
=
pickInfo
?.
render
&&
JSON
.
parse
(
pickInfo
.
render
)
let
receiveInfo
=
pickInfo
?.
render
&&
typeof
pickInfo
.
render
===
'object'
?
pickInfo
.
render
:
JSON
.
parse
(
pickInfo
.
render
)
return
pickInfo
&&
pickInfo
.
deliveryType
===
2
?
<
Space
>
return
pickInfo
&&
pickInfo
.
deliveryType
===
2
?
<
Space
>
<
EnvironmentOutlined
style=
{
{
marginRight
:
8
}
}
/>
<
EnvironmentOutlined
style=
{
{
marginRight
:
8
}
}
/>
<
Popover
content=
{
<
Popover
content=
{
...
...
src/pages/transaction/purchaseOrder/orderCollect/constant/index.tsx
View file @
9de56809
...
@@ -5,6 +5,7 @@ import { DELIVERY_TYPE, OrderModalType, PurchaseOrderOutWorkStateTexts } from '@
...
@@ -5,6 +5,7 @@ import { DELIVERY_TYPE, OrderModalType, PurchaseOrderOutWorkStateTexts } from '@
import
{
EnvironmentOutlined
,
MediumOutlined
}
from
'@ant-design/icons'
import
{
EnvironmentOutlined
,
MediumOutlined
}
from
'@ant-design/icons'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
moment
from
'moment'
import
moment
from
'moment'
import
{
AddressPop
}
from
'../components/productModalTable'
// 简单控制价格区间的组件
// 简单控制价格区间的组件
// @todo 后续需要优化, 样式,目录文件等。
// @todo 后续需要优化, 样式,目录文件等。
...
@@ -462,7 +463,7 @@ export const productInfoColumns: any[] = [
...
@@ -462,7 +463,7 @@ export const productInfoColumns: any[] = [
if
(
r
.
logistics
?.
deliveryType
===
1
)
if
(
r
.
logistics
?.
deliveryType
===
1
)
return
"物流(默认)"
return
"物流(默认)"
else
if
(
r
.
logistics
?.
deliveryType
===
2
)
else
if
(
r
.
logistics
?.
deliveryType
===
2
)
return
"自提"
return
<
AddressPop
pickInfo=
{
t
}
>
{
DELIVERY_TYPE
[
t
.
deliveryType
]
}
</
AddressPop
>
else
if
(
r
.
logistics
?.
deliveryType
===
3
)
else
if
(
r
.
logistics
?.
deliveryType
===
3
)
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