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
813a0f37
Commit
813a0f37
authored
Aug 26, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
e2a14177
f09355eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
productQuote.tsx
...ity/inquiryOffer/waitAddOffer/components/productQuote.tsx
+10
-4
No files found.
src/pages/transaction/dealAbility/inquiryOffer/waitAddOffer/components/productQuote.tsx
View file @
813a0f37
import
React
,
{
useCallback
,
useEffect
,
useState
}
from
'react'
;
import
{
Form
,
Button
,
Table
,
Input
,
Image
,
Drawer
}
from
'antd'
;
import
{
Form
,
Button
,
Table
,
Input
,
Image
,
Drawer
,
Typography
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
Card
from
'@/pages/transaction/components/card'
;
import
{
isEmpty
}
from
'@/components/NiceForm/components/AntUpload/shared'
;
...
...
@@ -7,6 +7,7 @@ import EyePreview from '@/components/EyePreview';
import
{
ENTERPRISE_CENTER_URL
}
from
'@/constants'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
StandardTable
}
from
'god'
;
import
moment
from
'moment'
;
interface
ProductQuoteLayoutProps
{
/** 回显 */
...
...
@@ -14,6 +15,9 @@ interface ProductQuoteLayoutProps {
}
const
ProductQuoteLayout
:
React
.
FC
<
ProductQuoteLayoutProps
>
=
(
props
:
any
)
=>
{
const
format
=
(
text
,
fmt
?:
string
)
=>
{
return
<>
{
moment
(
text
).
format
(
fmt
||
"YYYY-MM-DD HH:mm:ss"
)
}
</>
}
const
{
setProductQuote
}
=
props
;
const
[
dataSource
,
setDataSource
]
=
useState
<
any
[]
>
([]);
const
[
commoditySkuId
,
setCommoditySkuId
]
=
useState
();
...
...
@@ -113,8 +117,9 @@ const ProductQuoteLayout: React.FC<ProductQuoteLayoutProps> = (props: any) => {
const
hitoryColumns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'商品ID'
,
key
:
'productId'
,
dataIndex
:
'productId'
key
:
'commodityId'
,
dataIndex
:
'commodityId'
,
render
:
(
commodityId
,
data
)
=>
<
Typography
.
Link
target=
"_blank"
href=
{
`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/inquiry/detail/${data.commodityId}`
}
>
{
commodityId
}
</
Typography
.
Link
>
},
{
title
:
'商品名称'
,
...
...
@@ -159,7 +164,8 @@ const ProductQuoteLayout: React.FC<ProductQuoteLayoutProps> = (props: any) => {
{
title
:
'报价时间'
,
key
:
'createTime'
,
dataIndex
:
'createTime'
dataIndex
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
format
(
text
)
},
{
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