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
7c1d79e4
Commit
7c1d79e4
authored
Jan 14, 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
7227497e
160bd7ba
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
10 deletions
+28
-10
shop.ts
src/locales/zh-CN/shop.ts
+2
-2
index.tsx
src/pages/classAndProperty/categoryAttributes/index.tsx
+9
-2
index.tsx
src/pages/classAndProperty/propertyValue/index.tsx
+7
-2
checkProduct.tsx
src/pages/commodity/products/checkProduct.tsx
+2
-2
checkProductDetail.tsx
src/pages/commodity/products/checkProductDetail.tsx
+1
-1
viewProducts.tsx
src/pages/commodity/products/viewProducts.tsx
+7
-1
No files found.
src/locales/zh-CN/shop.ts
View file @
7c1d79e4
...
@@ -100,8 +100,8 @@ export default {
...
@@ -100,8 +100,8 @@ export default {
'channel.member.relieve.confirm'
:
'确定要解除吗'
,
'channel.member.relieve.confirm'
:
'确定要解除吗'
,
'channel.member.relieve'
:
'解除绑定关系'
,
'channel.member.relieve'
:
'解除绑定关系'
,
'channel.member.relieve.batch'
:
'批量解除绑定关系'
,
'channel.member.relieve.batch'
:
'批量解除绑定关系'
,
'channel.member.select'
:
'请先选择业务员'
,
'channel.member.select'
:
'请先选择业务员'
,
'channel.member.wait.bind.select'
:
'选择待绑定渠道
会员'
,
'channel.member.wait.bind.select'
:
'选择待绑定
会员'
,
'channel.form.salesman'
:
'业务员'
,
'channel.form.salesman'
:
'业务员'
,
'channel.modal.member.select'
:
'选择渠道会员'
,
'channel.modal.member.select'
:
'选择渠道会员'
,
'channel.form.name.placeholder'
:
'输入姓名'
,
'channel.form.name.placeholder'
:
'输入姓名'
,
...
...
src/pages/classAndProperty/categoryAttributes/index.tsx
View file @
7c1d79e4
...
@@ -88,6 +88,7 @@ const CategoryAttributes: React.FC<{}> = () => {
...
@@ -88,6 +88,7 @@ const CategoryAttributes: React.FC<{}> = () => {
const
[
selectedTableRowKeys
,
setSelectedTableRowKeys
]
=
useState
<
Array
<
number
>>
([])
//表格选择
const
[
selectedTableRowKeys
,
setSelectedTableRowKeys
]
=
useState
<
Array
<
number
>>
([])
//表格选择
const
[
linkTableRowData
,
setLinkTableRowData
]
=
useState
<
any
[]
>
([])
const
[
linkTableRowData
,
setLinkTableRowData
]
=
useState
<
any
[]
>
([])
const
[
goodsRowSelection
,
goodsRowCtl
]
=
useRowSelectionTable
()
const
[
goodsRowSelection
,
goodsRowCtl
]
=
useRowSelectionTable
()
const
flag
=
useRef
<
boolean
>
(
false
)
// 标识 初始点击品类不执行effect的重载表格
const
{
const
{
treeStatus
,
treeStatus
,
...
@@ -107,12 +108,17 @@ const CategoryAttributes: React.FC<{}> = () => {
...
@@ -107,12 +108,17 @@ const CategoryAttributes: React.FC<{}> = () => {
// 获取选中项的关联属性列表
// 获取选中项的关联属性列表
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
selectKey
)
if
(
selectKey
&&
flag
.
current
)
{
ref
.
current
.
reload
()
ref
.
current
.
reload
()
// ref.current.reload({ current: 1, pageSize: 10, name: '', categoryId: selectKey, isByCategory: true })
}
else
if
(
!
selectKey
)
{
flag
.
current
=
false
}
else
{
flag
.
current
=
true
}
},
[
selectKey
])
},
[
selectKey
])
const
fetchLinkAttributeData
=
(
params
:
any
)
=>
{
const
fetchLinkAttributeData
=
(
params
:
any
)
=>
{
console
.
log
(
1
)
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getProductCustomerGetCustomerCategoryAttributeList
({
getProductCustomerGetCustomerCategoryAttributeList
({
...
params
,
...
params
,
...
@@ -128,6 +134,7 @@ const CategoryAttributes: React.FC<{}> = () => {
...
@@ -128,6 +134,7 @@ const CategoryAttributes: React.FC<{}> = () => {
// 获取所有属性列表
// 获取所有属性列表
const
fetchAttributeData
=
(
params
:
any
)
=>
{
const
fetchAttributeData
=
(
params
:
any
)
=>
{
console
.
log
(
2
)
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getProductCustomerGetCustomerCategoryAttributeList
({
getProductCustomerGetCustomerCategoryAttributeList
({
...
params
,
...
params
,
...
...
src/pages/classAndProperty/propertyValue/index.tsx
View file @
7c1d79e4
...
@@ -95,6 +95,7 @@ const PropertyValue: React.FC<{}> = () => {
...
@@ -95,6 +95,7 @@ const PropertyValue: React.FC<{}> = () => {
// const [selectRow, setSelectRow] = useState<any[]>([]) // 模态框选择的行数据
// const [selectRow, setSelectRow] = useState<any[]>([]) // 模态框选择的行数据
// const [selectedRowKeys, setSelectedRowKeys] = useState<Array<string>>([])
// const [selectedRowKeys, setSelectedRowKeys] = useState<Array<string>>([])
const
[
rowSelection
,
rowSelectionCtl
]
=
useRowSelectionTable
({
customKey
:
'id'
})
const
[
rowSelection
,
rowSelectionCtl
]
=
useRowSelectionTable
({
customKey
:
'id'
})
const
flag
=
useRef
<
boolean
>
(
false
)
// 标识 初始点击品类不执行effect的重载表格
const
{
const
{
treeData
,
treeData
,
...
@@ -119,8 +120,12 @@ const PropertyValue: React.FC<{}> = () => {
...
@@ -119,8 +120,12 @@ const PropertyValue: React.FC<{}> = () => {
},
[])
},
[])
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
selectKey
)
{
if
(
selectKey
&&
flag
.
current
)
{
ref
.
current
.
reload
({
current
:
1
,
pageSize
:
10
,
name
:
''
,
customerAttributeId
:
selectKey
})
ref
.
current
.
reload
({
current
:
1
,
pageSize
:
10
,
name
:
''
,
customerAttributeId
:
selectKey
})
}
else
if
(
!
selectKey
)
{
flag
.
current
=
false
}
else
{
flag
.
current
=
true
}
}
},
[
selectKey
])
},
[
selectKey
])
...
@@ -217,7 +222,7 @@ const PropertyValue: React.FC<{}> = () => {
...
@@ -217,7 +222,7 @@ const PropertyValue: React.FC<{}> = () => {
type=
'link'
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/classAndProperty/propertyValue/edit?attrId=${selectKey}&attrName=${record.customerAttribute.name}&attrValueId=${record.id}`
)
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/classAndProperty/propertyValue/edit?attrId=${selectKey}&attrName=${record.customerAttribute.name}&attrValueId=${record.id}`
)
}
>
>
{
intl
.
formatMessage
({
id
:
'classAndProperty.propertyValue.columns.
option.
button.1'
})
}
{
intl
.
formatMessage
({
id
:
'classAndProperty.propertyValue.columns.button.1'
})
}
</
Button
>
</
Button
>
<
Popconfirm
<
Popconfirm
title=
{
intl
.
formatMessage
({
id
:
'classAndProperty.propertyValue.columns.button.2.popconfirm.title'
})
}
title=
{
intl
.
formatMessage
({
id
:
'classAndProperty.propertyValue.columns.button.2.popconfirm.title'
})
}
...
...
src/pages/commodity/products/checkProduct.tsx
View file @
7c1d79e4
...
@@ -12,7 +12,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
...
@@ -12,7 +12,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
import
{
searchBrandOptionEffect
,
searchCustomerCategoryOptionEffect
}
from
'./effect'
import
{
searchBrandOptionEffect
,
searchCustomerCategoryOptionEffect
}
from
'./effect'
import
{
getProductCommodityGet
Platform
CommodityList
}
from
'@/services/ProductV2Api'
import
{
getProductCommodityGet
UnCheck
CommodityList
}
from
'@/services/ProductV2Api'
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
...
@@ -142,7 +142,7 @@ const CheckProduct: React.FC<{}> = () => {
...
@@ -142,7 +142,7 @@ const CheckProduct: React.FC<{}> = () => {
const
fetchData
=
(
params
)
=>
{
const
fetchData
=
(
params
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getProductCommodityGet
PlatformCommodityList
({
...
params
,
status
:
2
}
).
then
(
res
=>
{
getProductCommodityGet
UnCheckCommodityList
(
params
).
then
(
res
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
resolve
(
data
)
resolve
(
data
)
})
})
...
...
src/pages/commodity/products/checkProductDetail.tsx
View file @
7c1d79e4
...
@@ -451,7 +451,7 @@ const CheckProductDetail: React.FC<{}> = () => {
...
@@ -451,7 +451,7 @@ const CheckProductDetail: React.FC<{}> = () => {
<
Steps
progressDot
current=
{
fixStep
}
>
<
Steps
progressDot
current=
{
fixStep
}
>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.title.1'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.description.1'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.title.1'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.description.1'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.title.2'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.description.2'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.title.2'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.description.2'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.title.3'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.description.
3
'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.title.3'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.description.
2
'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.title.4'
})
}
description=
""
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.checkProductDetail.step.title.4'
})
}
description=
""
/>
</
Steps
>
</
Steps
>
</
Card
>
</
Card
>
...
...
src/pages/commodity/products/viewProducts.tsx
View file @
7c1d79e4
...
@@ -274,7 +274,13 @@ const viewProducts: React.FC<{}> = () => {
...
@@ -274,7 +274,13 @@ const viewProducts: React.FC<{}> = () => {
<
Steps
progressDot
current=
{
fixStep
}
>
<
Steps
progressDot
current=
{
fixStep
}
>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.1'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.1.description'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.1'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.1.description'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.2'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.2.description'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.2'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.2.description'
})
}
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.3'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.3.description'
})
}
/>
{
productDetail
?.
checkType
===
1
?
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.3'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.2.description'
})
}
/>
:
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.3'
})
}
description=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.3.description'
})
}
/>
}
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.4'
})
}
description=
""
/>
<
Step
title=
{
intl
.
formatMessage
({
id
:
'commodity.products.viewProducts.card.1.step.4'
})
}
description=
""
/>
</
Steps
>
</
Steps
>
</
Card
>
</
Card
>
...
...
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