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
a041bf8c
Commit
a041bf8c
authored
Apr 02, 2022
by
前端-许冠华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220418-fixPurchaseBid' into 'v2-220418'
V2 220418 fix purchase bid See merge request linkseeks-design/pro-platform!119
parents
3e279f70
6e665639
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
12 deletions
+31
-12
bidRequirement.tsx
...bility/purchaseBid/readyAdd/components/bidRequirement.tsx
+2
-2
bidRules.tsx
...chaseAbility/purchaseBid/readyAdd/components/bidRules.tsx
+3
-3
index.tsx
...ransaction/purchaseAbility/purchaseBid/readyAdd/index.tsx
+21
-2
index.tsx
...action/purchaseAbility/purchaseBid/readyConfirm/index.tsx
+1
-1
index.tsx
...rchaseAbility/purchaseBid/readyExamineResultOne/index.tsx
+1
-1
index.tsx
...rchaseAbility/purchaseBid/readyExamineResultTwo/index.tsx
+1
-1
index.tsx
.../purchaseAbility/purchaseBid/readyExamineSignUp/index.tsx
+1
-1
index.tsx
...aseAbility/purchaseBid/readySubmitExamineResult/index.tsx
+1
-1
No files found.
src/pages/transaction/purchaseAbility/purchaseBid/readyAdd/components/bidRequirement.tsx
View file @
a041bf8c
...
...
@@ -126,10 +126,10 @@ const BidRequirement: React.FC<Iprops> = (props: any) => {
{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'detail.purchase.message45'
})
},
()
=>
({
async
validator
(
_
,
value
)
{
let
_exVal
=
await
exRef
.
current
.
biddingTime
();
if
(
_exVal
[
0
]
&&
moment
(
value
[
1
]).
isAfter
(
_exVal
[
0
]))
{
if
(
_exVal
?.[
0
]
&&
value
?.[
1
]
&&
moment
(
value
?.[
1
]).
isAfter
(
_exVal
?.
[
0
]))
{
return
Promise
.
reject
(
new
Error
(
intl
.
formatMessage
({
id
:
'detail.purchase.message46'
})));
}
if
(
!
value
[
0
]
||
!
value
[
1
])
{
if
(
!
value
?.[
0
]
||
!
value
?.
[
1
])
{
return
Promise
.
reject
(
new
Error
(
intl
.
formatMessage
({
id
:
'detail.purchase.message45'
})));
}
else
{
return
Promise
.
resolve
();
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyAdd/components/bidRules.tsx
View file @
a041bf8c
...
...
@@ -116,10 +116,10 @@ const BidRules: React.FC<Iprops> = (props: any) => {
{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'detail.purchase.message47'
})
},
()
=>
({
async
validator
(
_
,
value
)
{
let
_exVal
=
await
exRef
.
current
.
signUpTime
();
if
(
_exVal
[
1
]
&&
moment
(
value
[
0
]).
isBefore
(
_exVal
[
1
]))
{
if
(
_exVal
?.[
1
]
&&
value
?.[
0
]
&&
moment
(
value
?.[
0
]).
isBefore
(
_exVal
?.
[
1
]))
{
return
Promise
.
reject
(
new
Error
(
intl
.
formatMessage
({
id
:
'detail.purchase.message48'
})));
}
if
(
!
value
[
0
]
||
!
value
[
1
])
{
if
(
!
value
?.[
0
]
||
!
value
?.
[
1
])
{
return
Promise
.
reject
(
new
Error
(
intl
.
formatMessage
({
id
:
'detail.purchase.message47'
})));
}
else
{
return
Promise
.
resolve
();
...
...
@@ -139,7 +139,7 @@ const BidRules: React.FC<Iprops> = (props: any) => {
</
Form
.
Item
>
<
Form
.
Item
name=
'isStartingPrice'
label=
{
<
Tooltip
placement=
"right"
title=
{
intl
.
formatMessage
({
id
:
'd
d
etail.purchase.tips9'
})
}
>
{
intl
.
formatMessage
({
id
:
'detail.purchase.startingPrice'
})
}
<
QuestionCircleOutlined
style=
{
{
marginLeft
:
'5px'
}
}
/></
Tooltip
>
}
label=
{
<
Tooltip
placement=
"right"
title=
{
intl
.
formatMessage
({
id
:
'detail.purchase.tips9'
})
}
>
{
intl
.
formatMessage
({
id
:
'detail.purchase.startingPrice'
})
}
<
QuestionCircleOutlined
style=
{
{
marginLeft
:
'5px'
}
}
/></
Tooltip
>
}
>
<
Checkbox
checked=
{
isStartingPrice
}
onChange=
{
(
e
)
=>
{
onCheckboxChange
(
e
,
setIsStartingPrice
,
'startingPrice'
)
}
}
>
{
intl
.
formatMessage
({
id
:
'detail.purchase.isStartingPrice'
})
}
</
Checkbox
>
</
Form
.
Item
>
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyAdd/index.tsx
View file @
a041bf8c
import
React
,
{
useRef
,
useState
,
useEffect
,
useCallback
}
from
'react'
;
import
{
getIntl
,
history
}
from
'umi'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
Row
,
Col
,
Space
,
Button
,
Typography
,
Popconfirm
,
Badge
,
Menu
,
Dropdown
}
from
'antd'
;
import
{
Row
,
Col
,
Space
,
Button
,
Typography
,
Popconfirm
,
Badge
,
Menu
,
Dropdown
,
message
,
Modal
}
from
'antd'
;
import
{
PlusOutlined
,
PlayCircleOutlined
,
PoweroffOutlined
,
CaretDownOutlined
}
from
'@ant-design/icons'
;
import
{
formatTimeString
}
from
'@/utils'
import
EyePreview
from
'@/components/EyePreview'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
{
postPurchaseBiddingExamine
,
postPurchaseBiddingExamineBatch
,
postPurchaseBiddingDelete
,
postPurchaseBiddingDeleteBatch
,
getPurchaseBiddingAwaitNewList
,
getPurchaseBiddingAwaitShopNewList
}
from
'@/services/PurchaseV2Api'
;
import
{
getTemplateWebMemberPurchaseWebFindCurrMemberPurchase
}
from
'@/services/TemplateV2Api'
;
import
Table
from
'../../components/table'
...
...
@@ -174,6 +175,24 @@ const ReadyAdd = () => {
}
},[
isShop
])
const
addFn
=
async
()
=>
{
await
getTemplateWebMemberPurchaseWebFindCurrMemberPurchase
().
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
message
.
error
(
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
}));
return
}
if
(
!
res
.
data
)
{
Modal
.
warning
({
title
:
intl
.
formatMessage
({
id
:
'table.purchase.moduleWarning'
}),
content
:
intl
.
formatMessage
({
id
:
'table.purchase.moduleWarning1'
}),
okText
:
intl
.
formatMessage
({
id
:
'detail.purchase.confirm'
}),
onOk
:
()
=>
history
.
push
(
'/memberCenter/procurementAbility/purchasDoor/purchasInfo'
),
})
return
}
history
.
push
(
`/memberCenter/procurementAbility/purchaseBid/
${
isShop
?
'readyAddShop'
:
'readyAdd'
}
/add`
)
})
}
return
(
...
...
@@ -191,7 +210,7 @@ const ReadyAdd = () => {
<
Space
size=
{
16
}
>
<
AuthButton
btnCode=
'readyAdd.add'
>
<
Button
onClick=
{
()
=>
history
.
push
(
`/memberCenter/procurementAbility/purchaseBid/${isShop ? 'readyAddShop' : 'readyAdd'}/add`
)
}
onClick=
{
addFn
}
type=
"primary"
icon=
{
<
PlusOutlined
/>
}
>
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyConfirm/index.tsx
View file @
a041bf8c
...
...
@@ -49,7 +49,7 @@ const ReadyConfirm = () => {
key
:
'memberName'
,
dataIndex
:
'memberName'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
EyePreview
url=
{
`/shop?shopId=${btoa(JSON.stringify({ shopId: record.memberShopId, memberId: record.memberId }))}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
type=
'button'
class
>
{
text
}
</
EyePreview
>
)
},
{
title
:
intl
.
formatMessage
({
id
:
'table.purchase.biddingStartTime'
}),
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyExamineResultOne/index.tsx
View file @
a041bf8c
...
...
@@ -43,7 +43,7 @@ const ReadyExamineResultOne = () => {
key
:
'memberName'
,
dataIndex
:
'memberName'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
EyePreview
url=
{
`/shop?shopId=${btoa(JSON.stringify({ shopId: record.memberShopId, memberId: record.memberId }))}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
type=
'button'
class
>
{
text
}
</
EyePreview
>
)
},
{
title
:
intl
.
formatMessage
({
id
:
'table.purchase.biddingStartTime'
}),
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyExamineResultTwo/index.tsx
View file @
a041bf8c
...
...
@@ -43,7 +43,7 @@ const ReadyExamineResultTwo = () => {
key
:
'memberName'
,
dataIndex
:
'memberName'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
EyePreview
url=
{
`/shop?shopId=${btoa(JSON.stringify({ shopId: record.memberShopId, memberId: record.memberId }))}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
type=
'button'
class
>
{
text
}
</
EyePreview
>
)
},
{
title
:
intl
.
formatMessage
({
id
:
'table.purchase.biddingStartTime'
}),
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyExamineSignUp/index.tsx
View file @
a041bf8c
...
...
@@ -49,7 +49,7 @@ const ReadyExamineSignUp = () => {
dataIndex
:
'signUpTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
Space
direction=
'vertical'
>
<
EyePreview
url=
{
`/shop?shopId=${btoa(JSON.stringify({ shopId: record.memberShopId, memberId: record.memberId }))}`
}
>
{
record
.
createMemberName
}
</
EyePreview
>
<
EyePreview
type=
'button'
class
>
{
record
.
createMemberName
}
</
EyePreview
>
<
Text
type=
'secondary'
>
{
formatTimeString
(
record
.
signUpTime
)
}
</
Text
>
</
Space
>
)
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readySubmitExamineResult/index.tsx
View file @
a041bf8c
...
...
@@ -45,7 +45,7 @@ const ReadySubmitExamineResult = () => {
key
:
'memberName'
,
dataIndex
:
'memberName'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
EyePreview
url=
{
`/shop?shopId=${btoa(JSON.stringify({ shopId: record.memberShopId, memberId: record.memberId }))}`
}
>
{
text
}
</
EyePreview
>
<
EyePreview
type=
'button'
class
>
{
text
}
</
EyePreview
>
)
},
{
title
:
intl
.
formatMessage
({
id
:
'table.purchase.biddingStartTime'
}),
...
...
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