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
66f68798
Commit
66f68798
authored
Mar 02, 2022
by
Bill
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
d7486625
d91000ae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
35 additions
and
24 deletions
+35
-24
paltformSign.ts
src/locales/en-US/marketingAbility/paltformSign.ts
+0
-0
paltformSign.ts
src/locales/ko-KR/marketingAbility/paltformSign.ts
+0
-0
paltformSign.ts
src/locales/zh-CN/marketingAbility/paltformSign.ts
+0
-0
constants.tsx
src/pages/transaction/marketingAbility/common/constants.tsx
+4
-4
index.tsx
...ents/couponsListLayout/components/productLayout/index.tsx
+6
-6
index.tsx
...onents/listModalLayout/components/productLayout/index.tsx
+2
-2
remind.ts
...readySubmitExamine/components/productListLayout/remind.ts
+4
-4
index.tsx
...ement/readySubmitExamine/components/rulesLayout/index.tsx
+1
-1
index.tsx
...ansaction/purchaseAbility/confirmOffer/contrast/index.tsx
+2
-2
ruleSetting.tsx
...s/transaction/transactionRules/components/ruleSetting.tsx
+2
-2
index.tsx
...tion/transactionRules/components/selectProcesss/index.tsx
+0
-1
type.ts
src/utils/type.ts
+14
-2
No files found.
src/locales/en-US/marketingAbility/paltformSign.ts
View file @
66f68798
This diff is collapsed.
Click to expand it.
src/locales/ko-KR/marketingAbility/paltformSign.ts
View file @
66f68798
This diff is collapsed.
Click to expand it.
src/locales/zh-CN/marketingAbility/paltformSign.ts
View file @
66f68798
This diff is collapsed.
Click to expand it.
src/pages/transaction/marketingAbility/common/constants.tsx
View file @
66f68798
...
...
@@ -194,7 +194,7 @@ export const GeneralEffect = (int, data) => {
col
:
[
{
label
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.preferentialRules'
})}
`
,
extra
:
<
Space
direction=
'vertical'
>
{
!
isEmpty
(
data
.
ladderList
)
&&
data
.
ladderList
.
map
(
item
=>
(<
div
>
{
`${intl.formatMessage({ id: '
marketingAbility.man' })} ${item.num} ${intl.formatMessage({ id: 'marketingAbility.jiandelete
' })}, ${intl.formatMessage({ id: 'marketingAbility.da' })} ${item.discount / 10} ${intl.formatMessage({ id: 'marketingAbility.zhe' })}`
}
</
div
>))
}
{
!
isEmpty
(
data
.
ladderList
)
&&
data
.
ladderList
.
map
(
item
=>
(<
div
>
{
`${intl.formatMessage({ id: '
selfManagement.di' })} ${item.num} ${intl.formatMessage({ id: 'marketingAbility.jian
' })}, ${intl.formatMessage({ id: 'marketingAbility.da' })} ${item.discount / 10} ${intl.formatMessage({ id: 'marketingAbility.zhe' })}`
}
</
div
>))
}
</
Space
>
},
{
...
...
@@ -346,18 +346,18 @@ export const GeneralEffect = (int, data) => {
return
[
{
col
:
[
{
label
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.theDepositPaymentTime'
})}
`
,
extra
:
''
},
{
label
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.theDepositPaymentTime'
})}
`
,
extra
:
<>
{
format
(
data
.
depositPayStartTime
,
'HH:mm:ss'
)
}
~
{
format
(
data
.
depositPayEndTime
,
'HH:mm:ss'
)
}
</>
},
{
label
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.activityDescription'
})}
`
,
extra
:
data
.
describe
},
]
},
{
col
:
[
{
label
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.balancePaymentPaymentTime'
})}
`
,
extra
:
''
},
{
label
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.balancePaymentPaymentTime'
})}
`
,
extra
:
<>
{
format
(
data
.
balancePaymentPayStartTime
,
'HH:mm:ss'
)
}
~
{
format
(
data
.
balancePaymentPayEndTime
,
'HH:mm:ss'
)
}
</>
},
]
},
{
col
:
[
{
label
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.startTheDeliveryTime'
})}
`
,
extra
:
''
},
{
label
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.startTheDeliveryTime'
})}
`
,
extra
:
format
(
data
.
deliverTime
,
'HH:mm:ss'
)
},
]
}
]
...
...
src/pages/transaction/marketingAbility/components/couponsListLayout/components/productLayout/index.tsx
View file @
66f68798
...
...
@@ -93,7 +93,7 @@ const ProductLayout: React.FC<ProductLayoutProps> = (props: any) => {
return
Promise
.
reject
(
new
Error
(
remind
.
message
[
4
]));
}
if
(
!
pattern
.
test
(
value
)
&&
remind
.
label
[
2
]
!==
'元'
)
{
return
Promise
.
reject
(
new
Error
(
remind
.
label
[
1
]
+
`${intl.formatMessage({ id: 'selfManagement.bixudayu0zuiduobaoliu3wei'})}`
));
activityPage
.
yuan
return
Promise
.
reject
(
new
Error
(
remind
.
label
[
1
]
+
`${intl.formatMessage({ id: 'selfManagement.bixudayu0zuiduobaoliu3wei'})}`
));
}
if
(
!
pattern1
.
test
(
value
)
&&
remind
.
label
[
2
]
===
'元'
)
{
return
Promise
.
reject
(
new
Error
(
remind
.
label
[
1
]
+
`${intl.formatMessage({ id: 'marketingAbility.bixudayu0zuiduobaoliu2weixiaoshu'})}`
));
...
...
@@ -129,10 +129,10 @@ const ProductLayout: React.FC<ProductLayoutProps> = (props: any) => {
<
Col
flex=
'auto'
>
<
div
className=
{
style
.
productLayout_item_title
}
>
{
_item
.
productName
}
</
div
>
<
div
className=
{
style
.
productLayout_item_price
}
>
<
span
>
¥
{
_item
.
price
.
toFixed
(
2
)
}
</
span
>
/
{
_item
.
unit
}
<
span
>
{
intl
.
formatMessage
({
id
:
'common.money'
,
defaultMessage
:
'¥'
})
}
{
_item
.
price
.
toFixed
(
2
)
}
</
span
>
/
{
_item
.
unit
}
</
div
>
<
div
className=
{
style
.
productLayout_item_info
}
>
品类
:
{
_item
.
category
}
</
div
>
<
div
className=
{
style
.
productLayout_item_info
}
>
品牌
:
{
_item
.
brand
}
L
</
div
>
<
div
className=
{
style
.
productLayout_item_info
}
>
{
intl
.
formatMessage
({
id
:
'paltformSign.category'
,
defaultMessage
:
'品类'
})
}
:
{
_item
.
category
}
</
div
>
<
div
className=
{
style
.
productLayout_item_info
}
>
{
intl
.
formatMessage
({
id
:
'paltformSign.brand'
,
defaultMessage
:
'品牌'
})
}
:
{
_item
.
brand
}
L
</
div
>
</
Col
>
</
Row
>
</
div
>
...
...
@@ -142,8 +142,8 @@ const ProductLayout: React.FC<ProductLayoutProps> = (props: any) => {
<
Row
style=
{
{
height
:
'100%'
,
marginLeft
:
10
}
}
wrap=
{
false
}
>
<
Col
flex=
'none'
>
<
div
className=
{
style
.
couponLayout_item_left
}
>
<
p
>
¥
<
span
>
{
_item
.
denomination
}
</
span
></
p
>
<
p
>
满
{
_item
.
useConditionMoney
}{
intl
.
formatMessage
({
id
:
'marketingAbility.yuankeyong'
})
}
</
p
>
<
p
>
{
intl
.
formatMessage
({
id
:
'common.money'
,
defaultMessage
:
'¥'
})
}
<
span
>
{
_item
.
denomination
}
</
span
></
p
>
<
p
>
{
intl
.
formatMessage
({
id
:
'paltformSign.full'
,
defaultMessage
:
'满'
})
}
{
_item
.
useConditionMoney
}{
intl
.
formatMessage
({
id
:
'marketingAbility.yuankeyong'
})
}
</
p
>
</
div
>
</
Col
>
<
Col
flex=
'auto'
style=
{
{
overflow
:
'hidden'
}
}
>
...
...
src/pages/transaction/marketingAbility/components/listModalLayout/components/productLayout/index.tsx
View file @
66f68798
...
...
@@ -102,7 +102,7 @@ const ProductLayout: React.FC<ProductLayoutProps> = (props: any) => {
<
div
key=
{
`list_${_index + 1}`
}
>
<
div
className=
{
style
.
productLayout_title
}
>
<
span
className=
{
style
.
productLayout_arrow
}
>
{
remind
.
label
[
3
]
}
{
_index
+
1
}
{
remind
.
label
[
3
]
}
</
span
>
{
!
isPreview
&&
<
DeleteOutlined
onClick=
{
()
=>
onDeletion
(
_index
)
}
/>
}
</
div
>
...
...
@@ -141,7 +141,7 @@ const ProductLayout: React.FC<ProductLayoutProps> = (props: any) => {
<
Col
flex=
'auto'
>
<
div
className=
{
style
.
productLayout_item_title
}
>
{
_item
.
productName
}
</
div
>
<
div
className=
{
style
.
productLayout_item_price
}
>
<
span
>
¥
{
_item
.
price
.
toFixed
(
2
)
}
</
span
>
/
{
_item
.
unit
}
<
span
>
{
intl
.
formatMessage
({
id
:
'common.money'
,
defaultMessage
:
'¥'
})
}
{
_item
.
price
.
toFixed
(
2
)
}
</
span
>
/
{
_item
.
unit
}
</
div
>
<
div
className=
{
style
.
productLayout_item_info
}
>
{
intl
.
formatMessage
({
id
:
'marketingAbility.category'
})
}
:
{
_item
.
category
}
</
div
>
<
div
className=
{
style
.
productLayout_item_info
}
>
{
intl
.
formatMessage
({
id
:
'marketingAbility.brand'
})
}
:
{
_item
.
brand
}
L
</
div
>
...
...
src/pages/transaction/marketingAbility/paltformSign/readySubmitExamine/components/productListLayout/remind.ts
View file @
66f68798
...
...
@@ -30,8 +30,8 @@ export const remindLayout = (int, giveType?, giftType?) => {
name
:
'giveValue'
,
value
:
giftType
,
type
:
'limitValue'
,
modalTitle
:
`设置赠品-
${
give
}
赠
${
gift
}
`
,
buttonTitle
:
`添加赠送
${
gift
}
`
,
modalTitle
:
intl
.
formatMessage
({
id
:
'paltformSign.MANE_ZENG'
,
defaultMessage
:
`设置赠品-
${
give
}
赠
${
gift
}
`
},
{
data1
:
give
,
data2
:
gift
})
,
buttonTitle
:
intl
.
formatMessage
({
id
:
'paltformSign.MANE_ZENG1'
,
defaultMessage
:
`添加赠送
${
gift
}
`
},
{
data
:
gift
})
,
listTitle
:
`
${
give
}${
gift
}
`
,
label
:
{
1
:
`
${
intl
.
formatMessage
({
id
:
'paltformSign.preferentialThreshold'
})}
`
,
...
...
@@ -54,9 +54,9 @@ export const remindLayout = (int, giveType?, giftType?) => {
name
:
'swapValue'
,
value
:
FULL_EXCHANGE
,
type
:
'limitValue'
,
modalTitle
:
`设置换购商品-
${
give
}
换购商品`
,
modalTitle
:
intl
.
formatMessage
({
id
:
'paltformSign.FULL_EXCHANGE'
,
defaultMessage
:
`设置换购商品-
${
give
}
换购商品`
},
{
data
:
give
})
,
buttonTitle
:
`
${
intl
.
formatMessage
({
id
:
'paltformSign.addBuyGoods'
})}
`
,
listTitle
:
`
${
give
}
换购商品`
,
listTitle
:
intl
.
formatMessage
({
id
:
'paltformSign.FULL_EXCHANGE1'
,
defaultMessage
:
`
${
give
}
换购商品`
},
{
data
:
give
})
,
label
:
{
1
:
`
${
intl
.
formatMessage
({
id
:
'paltformSign.redemptionThreshold'
})}
`
,
2
:
giveType
===
FULL_EXCHANGE
?
`
${
intl
.
formatMessage
({
id
:
'paltformSign.yuan'
})}
`
:
`
${
intl
.
formatMessage
({
id
:
'paltformSign.a'
})}
`
,
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmitExamine/components/rulesLayout/index.tsx
View file @
66f68798
...
...
@@ -344,7 +344,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
required
>
{
fields
.
map
(({
key
,
name
,
fieldKey
,
...
restField
})
=>
(
<
Space
key=
{
key
}
style=
{
{
display
:
'flex'
,
marginBottom
:
8
}
}
align=
"center"
>
{
int
l
.
formatMessage
({
id
:
'selfManagement.di
'
})
}
<
Form
.
Item
<
Space
key=
{
key
}
style=
{
{
display
:
'flex'
,
marginBottom
:
8
}
}
align=
"center"
>
{
int
===
ACTIVITY_TYPE_7
?
intl
.
formatMessage
({
id
:
'selfManagement.di'
})
:
intl
.
formatMessage
({
id
:
'selfManagement.full
'
})
}
<
Form
.
Item
{
...
restField
}
style=
{
{
margin
:
0
}
}
name=
{
[
name
,
`${int === ACTIVITY_TYPE_7 ? 'num' : 'key'}`
]
}
...
...
src/pages/transaction/purchaseAbility/confirmOffer/contrast/index.tsx
View file @
66f68798
...
...
@@ -57,8 +57,8 @@ const ContrastPrice = () => {
col
:
[
{
label
:
intl
.
formatMessage
({
id
:
'table.purchase.dementNo'
}),
extra
:
data
.
purchaseInquiryNo
},
{
label
:
intl
.
formatMessage
({
id
:
'table.purchase.details'
}),
extra
:
data
.
details
},
{
label
:
intl
.
formatMessage
({
id
:
'table.purchase.externalStatus'
}),
extra
:
<
Tag
color=
{
OFFTER_EXTERNALSTATE_COLOR
[
data
.
externalState
]
}
>
{
OFFTER_EXTERNALSTATE
[
data
.
externalState
]
}
</
Tag
>
},
{
label
:
intl
.
formatMessage
({
id
:
'detail.purchase.innerStatus'
}),
extra
:
<
Badge
status=
{
OFFTER_INTERNALSTATE_COLOR
[
data
.
interiorState
]
}
text=
{
OFFTER_INTERNALSTATE
[
data
.
interiorState
]
}
/>
},
{
label
:
intl
.
formatMessage
({
id
:
'table.purchase.externalStatus'
}),
extra
:
<
Tag
color=
{
OFFTER_EXTERNALSTATE_COLOR
[
data
.
externalState
]
}
>
{
data
.
externalStateName
}
</
Tag
>
},
{
label
:
intl
.
formatMessage
({
id
:
'detail.purchase.innerStatus'
}),
extra
:
<
Badge
status=
{
OFFTER_INTERNALSTATE_COLOR
[
data
.
interiorState
]
}
text=
{
data
?.
interiorStateName
}
/>
},
]
},
{
...
...
src/pages/transaction/transactionRules/components/ruleSetting.tsx
View file @
66f68798
...
...
@@ -18,7 +18,7 @@ import Submit from '@/components/NiceForm/components/Submit'
import
SelectProcesss
from
'./selectProcesss'
import
{
usePaymentTable
}
from
'../model/usePaymentTable'
import
{
help
}
from
'../../common'
import
{
fectchShopListsSource
}
from
'@/utils/type'
import
{
fectchShopListsSource
TradeRule
}
from
'@/utils/type'
import
{
getProductCommodityCommonGetCommodityListBySeller
,
getProductSelectGetSelectBrand
,
getProductSelectGetSelectCustomerCategory
}
from
'@/services/ProductV2Api'
import
{
getOrderTradeProcessGet
,
getOrderTradeProcessProductPage
}
from
'@/services/OrderNewV2Api'
import
{
useIntl
}
from
'umi'
...
...
@@ -382,7 +382,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
}
}
effects=
{
(
$
,
{
setFieldState
,
setFieldValue
})
=>
{
$
(
'onFormMount'
).
subscribe
(
async
()
=>
{
const
data
=
await
fectchShopListsSource
()
const
data
=
await
fectchShopListsSource
TradeRule
()
if
(
data
&&
data
.
length
)
{
setFieldState
(
'shopIds'
,
state
=>
{
state
.
props
[
"x-component-props"
].
dataSource
=
data
.
sort
((
a
,
b
)
=>
a
.
type
-
b
.
type
)
...
...
src/pages/transaction/transactionRules/components/selectProcesss/index.tsx
View file @
66f68798
...
...
@@ -78,7 +78,6 @@ const SelectProcesss = (props: ISchemaFieldComponentProps) => {
}
const
renderProcessType
=
(
v
:
any
)
=>
{
console
.
log
(
v
)
return
<
Tag
color=
{
ProcessTagColor
[
v
.
processType
-
1
]
}
>
{
v
[
"processTypeName"
]
}
</
Tag
>
...
...
src/utils/type.ts
View file @
66f68798
import
{
GlobalConfig
}
from
'@/global/config'
;
import
{
postManageWebShopWebAll
}
from
'@/services/ManageV2Api'
;
import
{
postManageWebShopWebAll
,
postManageWebShopWebAllShop
}
from
'@/services/ManageV2Api'
;
export
function
isString
(
str
:
any
):
str
is
string
{
return
typeof
str
===
'string'
...
...
@@ -42,8 +42,20 @@ interface getShopListsParmasProps {
* @param params 接口参数
*/
export
const
fectchShopListsSource
=
async
(
params
?:
getShopListsParmasProps
)
=>
{
if
(
postManageWebShopWebAll
)
{
if
(
postManageWebShopWebAll
Shop
)
{
const
{
data
}
=
await
postManageWebShopWebAll
({
...
params
,
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
},
{
ctlType
:
'none'
})
return
data
}
}
/**
* 同上 仅限交规规则模块适用
* @param params 接口参数
*/
export
const
fectchShopListsSourceTradeRule
=
async
(
params
?:
getShopListsParmasProps
)
=>
{
if
(
postManageWebShopWebAllShop
)
{
const
{
data
}
=
await
postManageWebShopWebAllShop
({
...
params
,
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
},
{
ctlType
:
'none'
})
return
data
}
}
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