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
shenshaokai
jinfa-platform
Commits
da5ecfd3
Commit
da5ecfd3
authored
Oct 08, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(营销能力): 修复bug
parent
e76a0bc9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
22 deletions
+73
-22
index.tsx
.../components/detailLayout/components/recordLyout/index.tsx
+1
-0
constants.tsx
src/pages/transaction/marketingAbility/common/constants.tsx
+7
-6
index.tsx
...n/marketingAbility/components/collocationLayout/index.tsx
+1
-1
index.tsx
...ransaction/marketingAbility/paltformSign/detail/index.tsx
+1
-1
add.tsx
.../marketingAbility/paltformSign/readySubmitExamine/add.tsx
+58
-9
index.tsx
...nsaction/marketingAbility/selfManagement/detail/index.tsx
+4
-4
index.tsx
...readySubmitExamine/components/partakeUserLayout/index.tsx
+1
-1
No files found.
src/pages/transaction/components/detailLayout/components/recordLyout/index.tsx
View file @
da5ecfd3
...
...
@@ -29,6 +29,7 @@ const RecordLayout: React.FC<ProgressProps> = (props: any) => {
useEffect
(()
=>
{
if
(
!
isEmpty
(
context
))
{
console
.
log
(
context
,
10086
)
setLogStatus
(
context
.
externalLogs
?
LOGSTATESTYPE
.
EXTERNALSTATES
:
LOGSTATESTYPE
.
INTERIORSTATES
)
setData
(
context
)
}
...
...
src/pages/transaction/marketingAbility/common/constants.tsx
View file @
da5ecfd3
...
...
@@ -65,6 +65,7 @@ const lotteryNumType = {
}
/** 活动类型 */
export
const
GeneralEffect
=
(
int
,
data
)
=>
{
const
allowActivity
=
(
data
?.
allowActivity
?
data
.
allowActivity
:
[]);
switch
(
Number
(
int
))
{
case
1
:
case
2
:
...
...
@@ -73,7 +74,7 @@ export const GeneralEffect = (int, data) => {
{
col
:
[
{
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
data
.
allowActivity
.
map
((
item
,
index
)
=>
(
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
allowActivity
.
map
((
item
,
index
)
=>
(
<
StatusTag
key=
{
`default_key_${index}`
}
type=
"default"
title=
{
ACTIVITYTYPENAME
[
item
]
}
/>
))
}
</
Space
>
...
...
@@ -129,7 +130,7 @@ export const GeneralEffect = (int, data) => {
</>
},
{
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
data
.
allowActivity
.
map
((
item
,
index
)
=>
(
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
allowActivity
.
map
((
item
,
index
)
=>
(
<
StatusTag
key=
{
`default_key_${index}`
}
type=
"default"
title=
{
ACTIVITYTYPENAME
[
item
]
}
/>
))
}
</
Space
>
...
...
@@ -159,7 +160,7 @@ export const GeneralEffect = (int, data) => {
</>
},
{
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
data
.
allowActivity
&&
data
.
allowActivity
.
map
((
item
,
index
)
=>
(
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
allowActivity
.
map
((
item
,
index
)
=>
(
<
StatusTag
key=
{
`default_key_${index}`
}
type=
"default"
title=
{
ACTIVITYTYPENAME
[
item
]
}
/>
))
}
</
Space
>
...
...
@@ -194,7 +195,7 @@ export const GeneralEffect = (int, data) => {
</
Space
>
},
{
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
data
.
allowActivity
.
map
((
item
,
index
)
=>
(
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
allowActivity
.
map
((
item
,
index
)
=>
(
<
StatusTag
key=
{
`default_key_${index}`
}
type=
"default"
title=
{
ACTIVITYTYPENAME
[
item
]
}
/>
))
}
</
Space
>
...
...
@@ -219,7 +220,7 @@ export const GeneralEffect = (int, data) => {
col
:
[
{
label
:
'优惠规则'
,
extra
:
`任选
${
data
.
num
}
件, 付
${
data
.
price
}
元`
},
{
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
data
.
allowActivity
.
map
((
item
,
index
)
=>
(
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
allowActivity
.
map
((
item
,
index
)
=>
(
<
StatusTag
key=
{
`default_key_${index}`
}
type=
"default"
title=
{
ACTIVITYTYPENAME
[
item
]
}
/>
))
}
</
Space
>
...
...
@@ -319,7 +320,7 @@ export const GeneralEffect = (int, data) => {
</>
},
{
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
data
.
allowActivity
.
map
((
item
,
index
)
=>
(
label
:
'叠加活动类型'
,
extra
:
<
Space
wrap
>
{
allowActivity
.
map
((
item
,
index
)
=>
(
<
StatusTag
key=
{
`default_key_${index}`
}
type=
"default"
title=
{
ACTIVITYTYPENAME
[
item
]
}
/>
))
}
</
Space
>
...
...
src/pages/transaction/marketingAbility/components/collocationLayout/index.tsx
View file @
da5ecfd3
...
...
@@ -76,7 +76,7 @@ const CollocationLayout: React.FC<CollocationLayoutProps> = (props: any) => {
status
:
5
,
productImgUrl
:
item
.
mainPic
,
unit
:
item
.
unitName
,
price
:
item
.
unitPrice
[
'0-0'
]
price
:
item
.
unitPrice
&&
item
.
unitPrice
[
'0-0'
]
}
})
})
...
...
src/pages/transaction/marketingAbility/paltformSign/detail/index.tsx
View file @
da5ecfd3
...
...
@@ -65,8 +65,8 @@ const DetialLayout = () => {
}
const
handleGeneralEffect
=
(
data
:
any
,
int
?:
number
)
=>
{
console
.
log
(
data
,
10086
)
if
(
!
isEmpty
(
data
))
{
console
.
log
(
GeneralEffect
(
int
,
data
))
setGeneralEffect
(
GeneralEffect
(
int
,
data
))
}
}
...
...
src/pages/transaction/marketingAbility/paltformSign/readySubmitExamine/add.tsx
View file @
da5ecfd3
...
...
@@ -84,16 +84,65 @@ const DetialLayout = () => {
}
let
{
data
}
=
res
;
let
externalLogStates
:
any
=
[]
data
.
outerTaskStepList
.
forEach
((
item
:
any
)
=>
{
externalLogStates
.
push
({
state
:
item
.
step
,
stateName
:
null
,
isExecute
:
item
.
isExecute
,
operationalProcess
:
item
.
taskName
,
roleName
:
item
.
roleName
,
let
interiorLogStates
:
any
=
[];
let
externalLogs
:
any
=
[];
let
interiorLogs
:
any
=
[];
if
(
data
.
outerTaskStepList
)
{
data
.
outerTaskStepList
.
forEach
((
item
:
any
)
=>
{
externalLogStates
.
push
({
state
:
item
.
step
,
stateName
:
null
,
isExecute
:
item
.
isExecute
,
operationalProcess
:
item
.
taskName
,
roleName
:
item
.
roleName
,
})
})
})
data
.
externalLogStates
=
externalLogStates
;
data
.
externalLogStates
=
externalLogStates
;
}
if
(
data
.
innerTaskStepList
)
{
data
.
innerTaskStepList
.
forEach
((
item
:
any
)
=>
{
interiorLogStates
.
push
({
state
:
item
.
step
,
stateName
:
null
,
isExecute
:
item
.
isExecute
,
operationalProcess
:
item
.
taskName
,
roleName
:
item
.
roleName
,
})
})
data
.
interiorLogStates
=
interiorLogStates
;
}
if
(
data
.
outerRecordDOList
)
{
data
.
outerRecordDOList
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
externalLogs
.
push
({
operation
:
item
.
operate
,
createTime
:
item
.
operateTime
,
roleName
:
item
.
roleName
,
auditOpinion
:
item
.
opinion
,
stateName
:
item
.
statusName
,
id
:
index
+
1
,
state
:
item
.
status
,
step
:
index
,
})
})
data
.
externalLogs
=
externalLogs
;
}
if
(
data
.
innerRecordDOList
)
{
data
.
innerRecordDOList
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
interiorLogs
.
push
({
department
:
item
.
department
,
position
:
item
.
jobTitle
,
operation
:
item
.
operate
,
createTime
:
item
.
operateTime
,
roleName
:
item
.
operator
,
auditOpinion
:
item
.
opinion
,
stateName
:
item
.
statusName
,
id
:
index
+
1
,
state
:
item
.
status
,
step
:
index
,
})
})
data
.
interiorLogs
=
interiorLogs
;
}
setValue
(
data
.
activityType
)
setDataSource
(
data
);
handleBasicEffect
(
data
);
...
...
src/pages/transaction/marketingAbility/selfManagement/detail/index.tsx
View file @
da5ecfd3
...
...
@@ -92,6 +92,7 @@ const DetialLayout = () => {
operationalProcess
:
item
.
taskName
,
roleName
:
item
.
roleName
,
})
data
.
externalLogStates
=
externalLogStates
;
})
data
.
innerTaskList
.
forEach
((
item
:
any
)
=>
{
interiorLogStates
.
push
({
...
...
@@ -101,6 +102,7 @@ const DetialLayout = () => {
operationalProcess
:
item
.
taskName
,
roleName
:
item
.
roleName
,
})
data
.
interiorLogStates
=
interiorLogStates
;
})
data
.
outerRecordDOList
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
externalLogs
.
push
({
...
...
@@ -113,6 +115,7 @@ const DetialLayout = () => {
state
:
item
.
status
,
step
:
index
,
})
data
.
externalLogs
=
externalLogs
;
})
data
.
innerRecordDOList
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
interiorLogs
.
push
({
...
...
@@ -132,11 +135,8 @@ const DetialLayout = () => {
state
:
item
.
step
,
step
:
item
.
step
,
})
data
.
interiorLogs
=
interiorLogs
;
})
data
.
externalLogStates
=
externalLogStates
;
data
.
interiorLogStates
=
interiorLogStates
;
data
.
externalLogs
=
externalLogs
;
data
.
interiorLogs
=
interiorLogs
;
setAllusers
([
{
title
:
'适用用户'
,
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmitExamine/components/partakeUserLayout/index.tsx
View file @
da5ecfd3
...
...
@@ -59,7 +59,7 @@ const PartakeUserLayout: React.FC<PartakeUserLayoutProps> = (props: any) => {
}
const
levelConfigPage
=
(
memberTypes
)
=>
{
PublicApi
.
getMemberManageMarketingSuitableLevelConfigPage
({
levelConfigIds
:
''
,
roleIds
:
''
,
memberTypes
,
current
:
'1'
,
pageSize
:
'999'
}).
then
(
res
=>
{
PublicApi
.
getMemberManageMarketingSuitableLevelConfigPage
({
levelConfigIds
:
''
,
roleIds
:
''
,
memberTypes
:
''
,
current
:
'1'
,
pageSize
:
'999'
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
}
...
...
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