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
21de64ed
Commit
21de64ed
authored
Nov 30, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理品类属性价格管理代码合并异常
parent
19f0c420
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
addAttribute.tsx
src/pages/classAndProperty/attribute/addAttribute.tsx
+1
-2
index.tsx
src/pages/classAndProperty/attribute/index.tsx
+1
-2
index.tsx
src/pages/classAndProperty/propertyValue/index.tsx
+1
-2
index.tsx
src/pages/priceManage/effect/index.tsx
+2
-1
priceSetting.tsx
...ages/priceManage/priceStrategy/component/priceSetting.tsx
+1
-0
No files found.
src/pages/classAndProperty/attribute/addAttribute.tsx
View file @
21de64ed
...
...
@@ -11,7 +11,7 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
import
Search
from
'@/components/NiceForm/components/Search'
import
Submit
from
'@/components/NiceForm/components/Submit'
import
ModalTable
from
'@/components/ModalTable'
;
import
{
getProductCustomerGetCustomerAttribute
,
postProductCustomerSaveOrUpdateCustomerAttribute
}
from
'@/services/ProductV2Api'
;
import
{
getProductCustomerGetCustomerAttribute
,
getProductPlatformGetAttributeList
,
postProductCustomerSaveOrUpdateCustomerAttribute
}
from
'@/services/ProductV2Api'
;
const
{
Option
}
=
Select
;
...
...
@@ -90,7 +90,6 @@ const AddAtttribute: React.FC<{}> = () => {
const
fetchData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
//@ts-ignore
getProductPlatformGetAttributeList
({
...
params
,
name
:
params
.
name
||
''
,
groupName
:
params
.
groupName
||
''
,
isEnable
:
true
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
...
...
src/pages/classAndProperty/attribute/index.tsx
View file @
21de64ed
...
...
@@ -23,7 +23,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import
ModalTable
from
'@/components/ModalTable'
import
{
clearModalParams
}
from
'@/utils'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
{
getProductCustomerGetCustomerAttributeList
,
getProductPlatformGetAttributeList
,
postProductCustomerDeleteCustomerAttribute
,
postProductCustomerUpdateCustomerAttributeStatus
}
from
'@/services/ProductV2Api'
import
{
getProductCustomerGetCustomerAttributeList
,
getProductPlatformGetAttributeList
,
postProductCustomerDeleteCustomerAttribute
,
postProductCustomer
SyncAttribute
,
postProductCustomer
UpdateCustomerAttributeStatus
}
from
'@/services/ProductV2Api'
// import styles from './index.less'
const
formActions
=
createFormActions
();
...
...
@@ -214,7 +214,6 @@ const Attribute: React.FC<{}> = () => {
const
handleAsyncOk
=
()
=>
{
setSyncLoading
(
true
)
if
(
rowSelectionCtl
.
selectedRowKeys
.
length
)
{
// @ts-ignore
postProductCustomerSyncAttribute
({
idList
:
rowSelectionCtl
.
selectedRowKeys
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
()
...
...
src/pages/classAndProperty/propertyValue/index.tsx
View file @
21de64ed
...
...
@@ -21,12 +21,11 @@ import Submit from '@/components/NiceForm/components/Submit'
import
{
ISchema
}
from
'@formily/antd'
;
import
{
clearModalParams
}
from
'@/utils'
;
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
;
import
{
getProductCustomerGetCustomerAttributeValueList
,
getProductPlatformGetSyncAttributeValueList
,
postProductCustomerDeleteCustomerAttributeValue
,
postProductCustomerUpdateCustomerAttributeValueStatus
}
from
'@/services/ProductV2Api'
;
import
{
getProductCustomerGetCustomerAttribute
Tree
,
getProductCustomerGetCustomerAttribute
ValueList
,
getProductPlatformGetSyncAttributeValueList
,
postProductCustomerDeleteCustomerAttributeValue
,
postProductCustomerUpdateCustomerAttributeValueStatus
}
from
'@/services/ProductV2Api'
;
const
treeActions
=
createTreeActions
()
const
fetchAttributeTreeData
=
async
(
params
?)
=>
{
// @ts-ignore
const
res
=
await
getProductCustomerGetCustomerAttributeTree
({
filterInput
:
true
})
return
res
}
...
...
src/pages/priceManage/effect/index.tsx
View file @
21de64ed
...
...
@@ -98,7 +98,7 @@ export const transformParamsForApi = (data: any, ctx: ISchemaFormActions | ISche
let
_params
:
any
=
{}
_params
[
"name"
]
=
data
.
name
_params
[
"priceType"
]
=
data
.
priceType
let
shopInfo
=
ctx
.
getFieldState
(
"shopId"
)[
'values'
][
1
]
let
shopInfo
=
data
?.
shopId
?
{
id
:
data
.
shopId
}
:
ctx
.
getFieldState
(
"shopId"
)[
'values'
][
1
]
_params
[
"shopId"
]
=
shopInfo
[
"id"
]
_params
[
"type"
]
=
shopInfo
[
"type"
]
...
...
@@ -131,6 +131,7 @@ export const transformDataForNiceForm = (value: any, ctx: ISchemaFormActions | I
initValue
[
"priceType"
]
=
value
.
priceType
initValue
[
"productId"
]
=
value
.
commodity
.
id
initValue
[
"productName"
]
=
value
.
commodity
.
name
initValue
[
"minOrder"
]
=
value
.
commodity
.
minOrder
initValue
[
"commodityMemberList"
]
=
value
.
commodityMemberList
.
map
(
item
=>
({
memberId
:
item
.
memberId
,
name
:
item
.
memberName
,
...
...
src/pages/priceManage/priceStrategy/component/priceSetting.tsx
View file @
21de64ed
...
...
@@ -63,6 +63,7 @@ const PriceSetting: React.FC<PriceSettingProps> = (props) => {
addSchemaAction
.
setFieldState
(
'commodityMemberList'
,
state
=>
{
state
.
dataSource
=
initValue
.
commodityMemberList
})
addSchemaAction
.
setFieldValue
(
'minOrder'
,
initValue
.
minOrder
)
})
}
},
[])
...
...
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