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
黄庭坚
jinfa-platform
Commits
8d6ae809
Commit
8d6ae809
authored
Jan 07, 2022
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
1fac668b
8d39e2c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
188 additions
and
38 deletions
+188
-38
index.tsx
...ction/marketingAbility/platformexeCution/detail/index.tsx
+93
-18
index.tsx
...tion/marketingAbility/selfbuiltexeCution/detail/index.tsx
+95
-20
No files found.
src/pages/transaction/marketingAbility/platformexeCution/detail/index.tsx
View file @
8d6ae809
...
...
@@ -143,22 +143,91 @@ const DetialLayout = () => {
dataIndex
:
'operation'
,
render
:
(
_text
,
_record
)
=>
<
Button
type=
'link'
style=
{
{
padding
:
0
}
}
onClick=
{
()
=>
toggle
(
true
,
_record
)
}
>
执行明细
</
Button
>
}])
}
else
{
return
columns
.
concat
([{
title
:
'参与客户数'
,
key
:
'customerCount'
,
dataIndex
:
'customerCount'
},
{
title
:
'实购数量'
,
key
:
'salesNum'
,
dataIndex
:
'salesNum'
},
{
title
:
'实购金额'
,
key
:
'amount'
,
dataIndex
:
'amount'
}])
}
else
if
(
value
===
ACTIVITY_TYPE_6
||
value
===
ACTIVITY_TYPE_13
||
value
===
ACTIVITY_TYPE_15
)
{
return
[
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.productID'
})}
`
,
key
:
'productId'
,
dataIndex
:
'productId'
,
render
:
(
text
)
=>
<
Typography
.
Link
target=
"_blank"
href=
{
`/memberCenter/commodityAbility/commodity/products/detail?id=${text}`
}
>
{
text
}
</
Typography
.
Link
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.commodityImages'
})}
`
,
key
:
'productImgUrl'
,
dataIndex
:
'productImgUrl'
,
render
:
(
text
)
=>
<
Image
width=
{
32
}
height=
{
32
}
src=
{
text
}
/>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.nameOfCommodity'
})}
`
,
key
:
'productName'
,
dataIndex
:
'productName'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.category'
})}
`
,
key
:
'category'
,
dataIndex
:
'category'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.brand'
})}
`
,
key
:
'brand'
,
dataIndex
:
'brand'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.unit'
})}
`
,
key
:
'unit'
,
dataIndex
:
'unit'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.commodityPrices'
})}
`
,
key
:
'price'
,
dataIndex
:
'price'
,
render
:
(
text
)
=>
`¥
${
Number
(
text
).
toFixed
(
2
)}
`
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.individualPurchaseQuantity'
})}
`
,
key
:
'restrictNum'
,
dataIndex
:
'restrictNum'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.numberPurchasingActivities'
})}
`
,
key
:
'restrictTotalNum'
,
dataIndex
:
'restrictTotalNum'
,
},
{
title
:
'参与客户数'
,
key
:
'customerCount'
,
dataIndex
:
'customerCount'
},
{
title
:
'实购数量'
,
key
:
'salesNum'
,
dataIndex
:
'salesNum'
},
{
title
:
'实购金额'
,
key
:
'amount'
,
dataIndex
:
'amount'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.operation'
})}
`
,
key
:
'operation'
,
dataIndex
:
'operation'
,
render
:
(
_text
,
_record
)
=>
(
<>
{
(
value
===
6
)
&&
(
<
Button
type=
'link'
onClick=
{
()
=>
handlCollocation
(
_record
)
}
>
{
intl
.
formatMessage
({
id
:
'marketingAbility.viewTheGift'
})
}
</
Button
>
)
}
{
(
value
===
13
)
&&
(
<
Button
type=
'link'
onClick=
{
()
=>
handlCollocation
(
_record
)
}
>
{
intl
.
formatMessage
({
id
:
'marketingAbility.checkForGoods'
})
}
</
Button
>
)
}
{
(
value
===
15
)
&&
(
<
Button
type=
'link'
onClick=
{
()
=>
handlCollocation
(
_record
)
}
>
{
intl
.
formatMessage
({
id
:
'marketingAbility.viewTheCollocationOfGoods'
})
}
</
Button
>
)
}
{
showExecution
&&
<
Button
type=
'link'
style=
{
{
padding
:
0
}
}
onClick=
{
()
=>
toggle
(
true
,
_record
)
}
>
执行明细
</
Button
>
}
</>
)
},
]
}
},
[
value
])
...
...
@@ -166,7 +235,13 @@ const DetialLayout = () => {
{
title
:
'单据号'
,
key
:
'orderId'
,
dataIndex
:
'orderId'
dataIndex
:
'orderId'
,
render
:
(
_text
,
_r
)
=>
(
<>
{
_r
.
recordType
===
1
&&
<
Button
type=
'link'
target=
'_blank'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/tranactionAbility/saleOrder/orderList/preview?id=${_r.skuId}`
)
}
>
{
_r
.
skuId
}
</
Button
>
}
{
_r
.
recordType
===
2
&&
<
Button
type=
'link'
target=
'_blank'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/afterService/returnManage/returnQuery/detail?id=${_text}`
)
}
>
{
_r
.
orderNo
}
</
Button
>
}
</>
)
},
{
title
:
'单据类型'
,
...
...
@@ -373,7 +448,7 @@ const DetialLayout = () => {
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
`${intl.formatMessage({ id: '
marketingAbility.kaopingkaishishijian' })}`
,
`${intl.formatMessage({ id: 'marketingAbility.kaopingwanchengshijian
' })}`
],
placeholder
:
[
`${intl.formatMessage({ id: '
paltformSign.theStartTime' })}`
,
`${intl.formatMessage({ id: 'paltformSign.theEndOfTime
' })}`
],
allowClear
:
true
,
style
:
{
width
:
240
,
...
...
src/pages/transaction/marketingAbility/selfbuiltexeCution/detail/index.tsx
View file @
8d6ae809
import
{
useIntl
}
from
'umi'
;
import
React
,
{
Fragment
,
useCallback
,
useMemo
,
useState
}
from
'react'
;
import
{
Badge
,
Button
}
from
'antd'
;
import
{
Badge
,
Button
,
Typography
,
Image
}
from
'antd'
;
import
{
history
}
from
'umi'
;
import
{
Context
}
from
'@/pages/transaction/components/detailLayout/components/context'
;
import
PeripheralLayout
from
'@/pages/transaction/components/detailLayout'
;
...
...
@@ -141,22 +141,91 @@ const DetialLayout = () => {
dataIndex
:
'operation'
,
render
:
(
_text
,
_record
)
=>
<
Button
type=
'link'
style=
{
{
padding
:
0
}
}
onClick=
{
()
=>
toggle
(
true
,
_record
)
}
>
执行明细
</
Button
>
}])
}
else
{
return
columns
.
concat
([{
title
:
'参与客户数'
,
key
:
'customerCount'
,
dataIndex
:
'customerCount'
},
{
title
:
'实购数量'
,
key
:
'salesNum'
,
dataIndex
:
'salesNum'
},
{
title
:
'实购金额'
,
key
:
'amount'
,
dataIndex
:
'amount'
}])
}
else
if
(
value
===
ACTIVITY_TYPE_6
||
value
===
ACTIVITY_TYPE_13
||
value
===
ACTIVITY_TYPE_15
)
{
return
[
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.productID'
})}
`
,
key
:
'productId'
,
dataIndex
:
'productId'
,
render
:
(
text
)
=>
<
Typography
.
Link
target=
"_blank"
href=
{
`/memberCenter/commodityAbility/commodity/products/detail?id=${text}`
}
>
{
text
}
</
Typography
.
Link
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.commodityImages'
})}
`
,
key
:
'productImgUrl'
,
dataIndex
:
'productImgUrl'
,
render
:
(
text
)
=>
<
Image
width=
{
32
}
height=
{
32
}
src=
{
text
}
/>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.nameOfCommodity'
})}
`
,
key
:
'productName'
,
dataIndex
:
'productName'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.category'
})}
`
,
key
:
'category'
,
dataIndex
:
'category'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.brand'
})}
`
,
key
:
'brand'
,
dataIndex
:
'brand'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.unit'
})}
`
,
key
:
'unit'
,
dataIndex
:
'unit'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.commodityPrices'
})}
`
,
key
:
'price'
,
dataIndex
:
'price'
,
render
:
(
text
)
=>
`¥
${
Number
(
text
).
toFixed
(
2
)}
`
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.individualPurchaseQuantity'
})}
`
,
key
:
'restrictNum'
,
dataIndex
:
'restrictNum'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.numberPurchasingActivities'
})}
`
,
key
:
'restrictTotalNum'
,
dataIndex
:
'restrictTotalNum'
,
},
{
title
:
'参与客户数'
,
key
:
'customerCount'
,
dataIndex
:
'customerCount'
},
{
title
:
'实购数量'
,
key
:
'salesNum'
,
dataIndex
:
'salesNum'
},
{
title
:
'实购金额'
,
key
:
'amount'
,
dataIndex
:
'amount'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.operation'
})}
`
,
key
:
'operation'
,
dataIndex
:
'operation'
,
render
:
(
_text
,
_record
)
=>
(
<>
{
(
value
===
6
)
&&
(
<
Button
type=
'link'
onClick=
{
()
=>
handlCollocation
(
_record
)
}
>
{
intl
.
formatMessage
({
id
:
'marketingAbility.viewTheGift'
})
}
</
Button
>
)
}
{
(
value
===
13
)
&&
(
<
Button
type=
'link'
onClick=
{
()
=>
handlCollocation
(
_record
)
}
>
{
intl
.
formatMessage
({
id
:
'marketingAbility.checkForGoods'
})
}
</
Button
>
)
}
{
(
value
===
15
)
&&
(
<
Button
type=
'link'
onClick=
{
()
=>
handlCollocation
(
_record
)
}
>
{
intl
.
formatMessage
({
id
:
'marketingAbility.viewTheCollocationOfGoods'
})
}
</
Button
>
)
}
{
showExecution
&&
<
Button
type=
'link'
style=
{
{
padding
:
0
}
}
onClick=
{
()
=>
toggle
(
true
,
_record
)
}
>
执行明细
</
Button
>
}
</>
)
},
]
}
},
[
value
])
...
...
@@ -164,7 +233,13 @@ const DetialLayout = () => {
{
title
:
'单据号'
,
key
:
'orderId'
,
dataIndex
:
'orderId'
dataIndex
:
'orderId'
,
render
:
(
_text
,
_r
)
=>
(
<>
{
_r
.
recordType
===
1
&&
<
Button
type=
'link'
target=
'_blank'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/tranactionAbility/saleOrder/orderList/preview?id=${_r.skuId}`
)
}
>
{
_r
.
skuId
}
</
Button
>
}
{
_r
.
recordType
===
2
&&
<
Button
type=
'link'
target=
'_blank'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/afterService/returnManage/returnQuery/detail?id=${_text}`
)
}
>
{
_r
.
orderNo
}
</
Button
>
}
</>
)
},
{
title
:
'单据类型'
,
...
...
@@ -179,7 +254,7 @@ const DetialLayout = () => {
{
title
:
'客户名称'
,
key
:
'memberName'
,
dataIndex
:
'memberName'
dataIndex
:
'memberName'
,
},
{
title
:
'单据时间'
,
...
...
@@ -371,7 +446,7 @@ const DetialLayout = () => {
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
`${intl.formatMessage({ id: '
marketingAbility.kaopingkaishishijian' })}`
,
`${intl.formatMessage({ id: 'marketingAbility.kaopingwanchengshijian
' })}`
],
placeholder
:
[
`${intl.formatMessage({ id: '
paltformSign.theStartTime' })}`
,
`${intl.formatMessage({ id: 'paltformSign.theEndOfTime
' })}`
],
allowClear
:
true
,
style
:
{
width
:
240
,
...
...
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