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
7591115b
Commit
7591115b
authored
May 07, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 采购竞价&在线竞价对接部分接口
parent
2368dfa9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
196 additions
and
60 deletions
+196
-60
index.tsx
...ts/detail/components/bidCommonLayout/resultItem/index.tsx
+1
-1
index.less
...ents/detail/components/purchaseBidDemandLayout/index.less
+12
-0
index.tsx
...nents/detail/components/purchaseBidDemandLayout/index.tsx
+159
-0
index.tsx
...es/transaction/purchaseAbility/components/table/index.tsx
+2
-2
index.tsx
.../transaction/purchaseAbility/onlineBid/readyBid/index.tsx
+1
-16
index.tsx
...ansaction/purchaseAbility/onlineBid/readySignUp/index.tsx
+2
-17
index.tsx
...es/transaction/purchaseAbility/onlineBid/search/index.tsx
+2
-19
index.tsx
...y/purchaseBid/components/quotationDetailsDrawer/index.tsx
+5
-5
index.tsx
...ion/purchaseAbility/purchaseBid/readyExamineOne/index.tsx
+6
-0
index.tsx
...ion/purchaseAbility/purchaseBid/readyExamineTwo/index.tsx
+6
-0
detail.tsx
...transaction/purchaseAbility/purchaseBid/search/detail.tsx
+0
-0
No files found.
src/pages/transaction/purchaseAbility/components/detail/components/bidCommonLayout/resultItem/index.tsx
View file @
7591115b
...
...
@@ -38,7 +38,7 @@ const ResultItem: React.FC<ResultItemPrpos> = (props: any) => {
</
div
>
<
div
className=
{
styles
.
resultItemRow
}
>
<
div
className=
{
styles
.
money
}
>
¥
{
detail
.
price
}
<
span
>
(含税)
</
span
></
div
>
<
Button
type=
'link'
onClick=
{
checkDetailFunc
}
>
查看报价明细
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
{
checkDetailFunc
(
detail
.
id
)}
}
>
查看报价明细
</
Button
>
</
div
>
<
Divider
dashed
style=
{
{
color
:
'#EBECF0'
,
margin
:
'6px 0'
}
}
/>
<
div
className=
{
styles
.
resultItemRow
}
><
div
className=
{
styles
.
label
}
>
联系人姓名:
</
div
><
div
className=
{
styles
.
title
}
>
{
detail
.
contacts
}
</
div
></
div
>
...
...
src/pages/transaction/purchaseAbility/components/detail/components/purchaseBidDemandLayout/index.less
0 → 100644
View file @
7591115b
.list {
display: flex;
h5 {
margin-bottom: 2em;
}
.listLable {
flex: 0 0 25%;
color: #909399;
}
}
\ No newline at end of file
src/pages/transaction/purchaseAbility/components/detail/components/purchaseBidDemandLayout/index.tsx
0 → 100644
View file @
7591115b
import
React
,
{
useContext
,
useRef
}
from
'react'
;
import
{
Row
,
Col
,
Image
,
Tag
,
Tooltip
,
Switch
,
Typography
}
from
'antd'
;
import
{
StandardTable
}
from
'god'
;
import
Card
from
'../../../card'
;
import
{
Context
}
from
'../context'
;
import
style
from
'./index.less'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
const
TYPE
=
{
1
:
'发布至平台'
,
2
:
'系统匹配'
,
3
:
'邀请会员'
,
}
const
ColStyle
=
{
display
:
'flex'
,
alignItems
:
'center'
,
border
:
'1px solid #1fbf87'
,
paddingTop
:
' 6px'
,
paddingBottom
:
'6px'
,
margin
:
'5px'
,
borderRadius
:
'4px'
,
}
const
TextStyle
=
{
color
:
'#1fbf87'
,
marginLeft
:
'10px'
,
}
export
interface
DemandLayoutIProps
{
storeList
?:
any
,
title
?:
string
,
bidId
:
number
,
number
:
string
,
fetch
?:
()
=>
Promise
<
unknown
>
}
const
DemandLayout
:
React
.
FC
<
DemandLayoutIProps
>
=
(
props
:
any
)
=>
{
const
{
storeList
,
title
,
bidId
,
number
,
fetch
}
=
props
;
const
tableRef
=
useRef
<
any
>
({});
const
context
=
useContext
(
Context
);
const
columns
=
[
{
title
:
'序号'
,
key
:
'number'
,
dataIndex
:
'number'
,
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<>
{
index
+
1
}
</>
},
{
title
:
'会员名称'
,
key
:
'memberName'
,
dataIndex
:
'memberName'
,
},
{
title
:
'会员类型'
,
key
:
'memberTypeName'
,
dataIndex
:
'memberTypeName'
,
},
{
title
:
'会员角色'
,
key
:
'roleName'
,
dataIndex
:
'roleName'
,
},
{
title
:
'会员等级'
,
key
:
'levelTag'
,
dataIndex
:
'levelTag'
,
},
{
title
:
'是否归属会员'
,
key
:
'membershipOrNot'
,
dataIndex
:
'membershipOrNot'
,
render
:
(
text
:
any
)
=>
(<
Tag
color=
{
text
?
'success'
:
'error'
}
>
{
text
?
'是'
:
'否'
}
</
Tag
>)
},
{
title
:
(
<>
<
span
>
需求发送
</
span
>
<
Tooltip
placement=
"top"
title=
'打开开关,审核通过后,将发送需求至选择的归属会员'
>
<
QuestionCircleOutlined
style=
{
{
marginLeft
:
'5px'
,
fontSize
:
'14px'
,
color
:
'#909399'
}
}
/>
</
Tooltip
>
</>
),
key
:
'state'
,
dataIndex
:
'state'
,
render
:
(
text
:
any
)
=>
(
<
Switch
checked=
{
text
}
disabled=
{
true
}
/>
)
},
{
title
:
'操作'
,
key
:
'operate'
,
dataIndex
:
'operate'
,
render
:
(
_text
:
any
,
_record
:
any
)
=>
(
<
Typography
.
Link
href=
{
`/shop?shopId=${btoa(JSON.stringify({ roleId: _record.roleId, memberId: _record.memberId }))}`
}
target=
"_blank"
>
进入店铺
</
Typography
.
Link
>
)
},
]
/** 列表数据 */
const
fetchData
=
(
params
?:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
fetch
({
id
:
bidId
,
number
:
number
,
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
})
}
return
(
<
Card
id=
'demandLayout'
title=
'需求对接'
>
<
div
className=
{
style
.
list
}
>
<
h5
className=
{
style
.
listLable
}
style=
{
{
flex
:
'0 0 100px'
}
}
>
{
title
}
:
</
h5
>
<
h5
className=
{
style
.
listContent
}
>
{
TYPE
[
context
.
type
]
}
</
h5
>
</
div
>
{
context
.
type
===
1
&&
(
<
Row
gutter=
{
[
16
,
16
]
}
>
{
storeList
.
map
(
item
=>
(
<
Col
span=
{
6
}
key=
{
item
.
id
}
style=
{
ColStyle
}
>
<
Image
width=
{
32
}
height=
{
32
}
src=
{
item
.
logoUrl
}
/>
<
span
style=
{
TextStyle
}
>
{
item
.
name
}
</
span
>
</
Col
>
))
}
</
Row
>
)
}
{
context
.
type
!==
1
&&
(
<
StandardTable
currentRef=
{
tableRef
}
columns=
{
columns
}
tableProps=
{
{
rowKew
:
'id'
}
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
/>
)
}
</
Card
>
)
}
DemandLayout
.
defaultProps
=
{
title
:
'发布方式'
}
export
default
DemandLayout
;
src/pages/transaction/purchaseAbility/components/table/index.tsx
View file @
7591115b
...
...
@@ -60,8 +60,8 @@ interface Iprops {
effects
?:
string
,
selectedRow
?:
boolean
,
reload
?:
any
,
externalStatusFetch
?:
any
,
interiorStatusFetch
?:
any
,
externalStatusFetch
?:
Promise
<
unknown
>
,
interiorStatusFetch
?:
Promise
<
unknown
>
,
}
const
formActions
=
createFormActions
();
const
Table
:
React
.
FC
<
Iprops
>
=
(
props
:
any
)
=>
{
...
...
src/pages/transaction/purchaseAbility/onlineBid/readyBid/index.tsx
View file @
7591115b
...
...
@@ -9,7 +9,6 @@ import EyePreview from '@/components/EyePreview';
import
{
PublicApi
}
from
'@/services/api'
;
import
Table
from
'../../components/table'
import
ModalOperate
from
'../../components/modalOperate'
;
import
{
BID_EXTERNALSTATE_COLOR
,
...
...
@@ -92,29 +91,15 @@ const ReadyBid = () => {
</>
}];
const
handleSubmit
=
()
=>
{
setVisible
(
false
);
ref
.
current
.
reload
();
}
return
(
<>
<
Table
schemaType=
"ONLINEBIDREADYBID_SCHEMA"
columns=
{
columns
}
effects=
"biddingNo"
fetch=
{
PublicApi
.
getOnlineBiddingStayBiddingList
}
fetch=
{
PublicApi
.
get
Purchase
OnlineBiddingStayBiddingList
}
reload=
{
ref
}
/>
<
ModalOperate
id=
{
id
}
title=
"作废原因"
visible=
{
visible
}
modalType=
'abandon'
onOk=
{
()
=>
handleSubmit
()
}
onCancel=
{
()
=>
setVisible
(
false
)
}
fetch=
{
PublicApi
.
postPurchaseBiddingDiscard
}
/>
</>
)
}
...
...
src/pages/transaction/purchaseAbility/onlineBid/readySignUp/index.tsx
View file @
7591115b
...
...
@@ -9,7 +9,6 @@ import EyePreview from '@/components/EyePreview';
import
{
PublicApi
}
from
'@/services/api'
;
import
Table
from
'../../components/table'
import
ModalOperate
from
'../../components/modalOperate'
;
import
{
BID_EXTERNALSTATE_COLOR
,
...
...
@@ -57,7 +56,7 @@ const ReadySignUp = () => {
</>,
width
:
180
},
{
title
:
'
竞价
开始/结束时间'
,
title
:
'
报名
开始/结束时间'
,
key
:
'startSignUp'
,
dataIndex
:
'startSignUp'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<>
...
...
@@ -92,29 +91,15 @@ const ReadySignUp = () => {
</>
}];
const
handleSubmit
=
()
=>
{
setVisible
(
false
);
ref
.
current
.
reload
();
}
return
(
<>
<
Table
schemaType=
"ONLINEBIDREADYSIGN_SCHEMA"
columns=
{
columns
}
effects=
"biddingNo"
fetch=
{
PublicApi
.
getOnlineBiddingStayExamineBiddingSignup
}
fetch=
{
PublicApi
.
get
Purchase
OnlineBiddingStayExamineBiddingSignup
}
reload=
{
ref
}
/>
<
ModalOperate
id=
{
id
}
title=
"作废原因"
visible=
{
visible
}
modalType=
'abandon'
onOk=
{
()
=>
handleSubmit
()
}
onCancel=
{
()
=>
setVisible
(
false
)
}
fetch=
{
PublicApi
.
postPurchaseBiddingDiscard
}
/>
</>
)
}
...
...
src/pages/transaction/purchaseAbility/onlineBid/search/index.tsx
View file @
7591115b
...
...
@@ -9,7 +9,6 @@ import EyePreview from '@/components/EyePreview';
import
{
PublicApi
}
from
'@/services/api'
;
import
Table
from
'../../components/table'
import
ModalOperate
from
'../../components/modalOperate'
;
import
{
BID_EXTERNALSTATE_COLOR
,
...
...
@@ -20,8 +19,6 @@ const { Text } = Typography;
const
Search
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
[
id
,
setId
]
=
useState
<
number
>
();
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
false
);
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'序号'
,
align
:
'center'
,
...
...
@@ -67,7 +64,7 @@ const Search = () => {
key
:
'isPrize'
,
dataIndex
:
'isPrize'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<>
{
(
text
!==
1
||
text
!==
0
)
?
null
:
<
Tag
color=
{
BID_EXTERNALSTATE_COLOR
[
text
]
}
>
{
record
.
externalStateName
}
</
Tag
>
}
{
(
text
!==
1
&&
text
!==
0
)
?
null
:
<
Tag
color=
{
text
?
'success'
:
'warning'
}
>
{
text
?
'是'
:
'否'
}
</
Tag
>
}
</>,
width
:
180
},
{
...
...
@@ -82,29 +79,15 @@ const Search = () => {
render
:
(
text
:
any
,
record
:
any
)
=>
<
Badge
status=
{
BID_INTERNALSTATE_COLOR
[
text
]
}
text=
{
record
.
interiorStateName
}
/>
}];
const
handleSubmit
=
()
=>
{
setVisible
(
false
);
ref
.
current
.
reload
();
}
return
(
<>
<
Table
schemaType=
"ONLINEBIDORDER_SCHEMA"
columns=
{
columns
}
effects=
"biddingNo"
fetch=
{
PublicApi
.
getOnlineBiddingList
}
fetch=
{
PublicApi
.
get
Purchase
OnlineBiddingList
}
reload=
{
ref
}
/>
<
ModalOperate
id=
{
id
}
title=
"作废原因"
visible=
{
visible
}
modalType=
'abandon'
onOk=
{
()
=>
handleSubmit
()
}
onCancel=
{
()
=>
setVisible
(
false
)
}
fetch=
{
PublicApi
.
postPurchaseBiddingDiscard
}
/>
</>
)
}
...
...
src/pages/transaction/purchaseAbility/purchaseBid/components/quotationDetailsDrawer/index.tsx
View file @
7591115b
...
...
@@ -16,7 +16,7 @@ const { Text } = Typography;
const
formActions
=
createFormActions
();
const
QuotationDetailsDrawer
=
(
props
:
any
)
=>
{
const
{
visible
,
onClose
,
schemaType
,
effects
,
reload
}
=
props
;
const
{
visible
,
onClose
,
schemaType
,
effects
,
reload
,
fetch
,
quotationDetailsId
,
number
}
=
props
;
const
tableRef
=
useRef
<
any
>
({});
const
columns
:
ColumnType
<
any
>
[]
=
[{
title
:
'序号'
,
...
...
@@ -74,7 +74,7 @@ const QuotationDetailsDrawer = (props: any) => {
/** 列表数据 */
const
fetchData
=
(
params
?:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
fetch
({
...
params
}).
then
(
res
=>
{
fetch
({
id
:
quotationDetailsId
,
number
:
number
,
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
})
...
...
@@ -120,9 +120,9 @@ const QuotationDetailsDrawer = (props: any) => {
searchSelectGetSelectCategoryOptionEffect
(
actions
,
'category'
)
})
}
}
schema=
{
schemaType
&&
SchemaRender
()
}
//
schema=
{
//
schemaType && SchemaRender()
//
}
>
</
NiceForm
>
}
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyExamineOne/index.tsx
View file @
7591115b
...
...
@@ -88,6 +88,11 @@ const ReadyExamineOne = () => {
setVisible
(
!
visible
);
}
const
handleSubmit
=
()
=>
{
setVisible
(
false
);
ref
.
current
.
reload
();
}
return
(
<>
<
Table
...
...
@@ -119,6 +124,7 @@ const ReadyExamineOne = () => {
modalType=
"audit"
visible=
{
visible
}
fetch=
{
PublicApi
.
postPurchaseBiddingExamine1
}
onOk=
{
()
=>
handleSubmit
()
}
onCancel=
{
()
=>
setVisible
(
false
)
}
/>
</>
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyExamineTwo/index.tsx
View file @
7591115b
...
...
@@ -87,6 +87,11 @@ const ReadyExamineTwo = () => {
setVisible
(
!
visible
);
}
const
handleSubmit
=
()
=>
{
setVisible
(
false
);
ref
.
current
.
reload
();
}
return
(
<>
<
Table
...
...
@@ -118,6 +123,7 @@ const ReadyExamineTwo = () => {
modalType=
"audit"
visible=
{
visible
}
fetch=
{
PublicApi
.
postPurchaseBiddingExamine2
}
onOk=
{
()
=>
handleSubmit
()
}
onCancel=
{
()
=>
setVisible
(
false
)
}
/>
</>
...
...
src/pages/transaction/purchaseAbility/purchaseBid/search/detail.tsx
View file @
7591115b
This diff is collapsed.
Click to expand it.
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