Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c8663000
authored
Nov 09, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
代码覆盖处理
1 parent
f9164b13
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
379 additions
and
271 deletions
src/views/profitManagement/profitList/cpns/ProfitSearch.vue
src/views/profitManagement/profitList/index.vue
src/views/task/analyseTask/cpns/TaskDetails.vue
src/views/task/observeTask/cpns/taskPlan.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalSearch.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalTable.vue
src/views/profitManagement/profitList/cpns/ProfitSearch.vue
View file @
c866300
<
template
>
<
template
>
<el-form
<el-form
size=
'small'
size=
"small"
inline
inline
ref=
'withdrawalForm'
ref=
"withdrawalForm"
:model=
'profitSearchForm'
:model=
"profitSearchForm"
label-width=
'120px'
label-width=
"120px"
class=
'demo-form-inline'
class=
"demo-form-inline"
>
>
<el-form-item
label=
'员工名称'
>
<el-form-item
label=
"员工名称"
>
<el-input
<el-input
clearable
clearable
v-model=
'profitSearchForm.staffName'
v-model=
"profitSearchForm.staffName"
placeholder=
'请输入员工名称'
placeholder=
"请输入员工名称"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'员工手机号'
>
<el-form-item
label=
"员工手机号"
>
<el-input
<el-input
clearable
clearable
v-model=
'profitSearchForm.staffPhone'
v-model=
"profitSearchForm.staffPhone"
placeholder=
'请输入员工手机号'
placeholder=
"请输入员工手机号"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'所属业务场景'
>
<el-form-item
label=
"所属业务场景"
>
<el-select
v-model=
'profitSearchForm.businessScene'
placeholder=
'所属业务场景'
>
<el-select
<el-option
label=
'全部'
value=
''
></el-option>
v-model=
"profitSearchForm.businessScene"
<el-option
label=
'1.0 新车权益销售'
value=
'0'
></el-option>
placeholder=
"所属业务场景"
<el-option
label=
'1.1 次新车精品升级'
value=
'1'
></el-option>
>
<el-option
label=
'1.2 次新车线上转化'
value=
'2'
></el-option>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
'1.3 存量用户众筹'
value=
'3'
></el-option>
<el-option
label=
"1.0 新车权益升级"
value=
"0"
></el-option>
<el-option
label=
"1.1 新车精品升级"
value=
"1"
></el-option>
<el-option
label=
"1.2 新车膨胀金活动"
value=
"2"
></el-option>
<el-option
label=
"1.3 售后直播众筹活动"
value=
"3"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
'所属商户:'
>
<el-form-item
label=
"所属商户:"
>
<el-input
<el-input
clearable
clearable
v-model=
'profitSearchForm.merchantName'
v-model=
"profitSearchForm.merchantName"
placeholder=
'请输入所属商户'
placeholder=
"请输入所属商户"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'所属活动/产品:'
>
<el-form-item
label=
"所属活动/产品:"
>
<el-input
<el-input
clearable
clearable
v-model=
'profitSearchForm.activityName'
v-model=
"profitSearchForm.activityName"
placeholder=
'请输入所属活动/产品'
placeholder=
"请输入所属活动/产品"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'发放渠道:'
>
<el-form-item
label=
"发放渠道:"
>
<el-select
v-model=
'profitSearchForm.channel'
placeholder=
'请选择发放渠道'
>
<el-select
<el-option
label=
'全部'
value=
''
></el-option>
v-model=
"profitSearchForm.channel"
<el-option
label=
'广联'
value=
'1'
></el-option>
placeholder=
"请选择发放渠道"
<el-option
label=
'门店'
value=
'2'
></el-option>
>
<el-option
label=
'服务商'
value=
'3'
></el-option>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"广联"
value=
"1"
></el-option>
<el-option
label=
"门店"
value=
"2"
></el-option>
<el-option
label=
"服务商"
value=
"3"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
'关联任务:'
>
<el-form-item
label=
"关联任务:"
>
<el-input
<el-input
clearable
clearable
v-model=
'profitSearchForm.missionName'
v-model=
"profitSearchForm.missionName"
placeholder=
'请输入关联任务'
placeholder=
"请输入关联任务"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'奖励时间'
>
<el-form-item
label=
"奖励时间"
>
<el-date-picker
<el-date-picker
value-format=
'yyyy-MM-dd'
value-format=
"yyyy-MM-dd"
v-model=
'profitSearchForm.rewardTime'
v-model=
"profitSearchForm.rewardTime"
type=
'daterange'
type=
"daterange"
range-separator=
'至'
range-separator=
"至"
start-placeholder=
'开始日期'
start-placeholder=
"开始日期"
end-placeholder=
'结束日期'
>
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
'primary'
@
click=
'handleSearch'
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
>
查询
<el-button
@
click=
"reset"
>
重置
</el-button>
</el-button
>
<el-button
@
click=
'reset'
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</
template
>
</
template
>
...
@@ -83,12 +87,12 @@
...
@@ -83,12 +87,12 @@
import
{
nearlyAMonth
}
from
'@/mixin/nearlyAMonth'
import
{
nearlyAMonth
}
from
'@/mixin/nearlyAMonth'
export
default
{
export
default
{
name
:
'ProfitSearch'
,
name
:
'ProfitSearch'
,
mixins
:[
nearlyAMonth
],
mixins
:
[
nearlyAMonth
],
data
()
{
data
()
{
return
{
return
{
profitSearchForm
:
{
profitSearchForm
:
{
businessScene
:
''
,
businessScene
:
''
,
channel
:
''
channel
:
''
,
},
},
}
}
},
},
...
@@ -100,21 +104,25 @@ export default {
...
@@ -100,21 +104,25 @@ export default {
Object
.
keys
(
this
.
profitSearchForm
).
forEach
((
key
)
=>
{
Object
.
keys
(
this
.
profitSearchForm
).
forEach
((
key
)
=>
{
this
.
profitSearchForm
[
key
]
=
''
this
.
profitSearchForm
[
key
]
=
''
})
})
this
.
$set
(
this
.
profitSearchForm
,
'rewardTime'
,
[
this
.
defalutStartTime
,
this
.
defalutEndTime
])
this
.
$set
(
this
.
profitSearchForm
,
'rewardTime'
,
[
this
.
defalutStartTime
,
this
.
defalutEndTime
,
])
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleSearch
()
this
.
handleSearch
()
})
})
}
}
,
},
},
created
()
{
created
()
{
this
.
$set
(
this
.
profitSearchForm
,
'rewardTime'
,
[
this
.
defalutStartTime
,
this
.
defalutEndTime
])
this
.
$set
(
this
.
profitSearchForm
,
'rewardTime'
,
[
this
.
defalutStartTime
,
this
.
defalutEndTime
,
])
},
},
mounted
()
{
mounted
()
{
this
.
handleSearch
()
this
.
handleSearch
()
}
}
,
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
></
style
>
</
style
>
src/views/profitManagement/profitList/index.vue
View file @
c866300
<
template
>
<
template
>
<div
style=
'margin: 16px'
>
<div
style=
"margin: 16px"
>
<ProfitSearch
@
sendSearchForm=
'getSearchForm'
/>
<ProfitSearch
@
sendSearchForm=
"getSearchForm"
/>
<el-button
type=
'primary'
size=
'small'
@
click=
'handleOutput'
>
导出
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleOutput"
<div
class=
'cumulativeAward'
>
累计发放奖励:
{{
totalScore
}}
</div>
>
导出
</el-button
>
<div
class=
"cumulativeAward"
>
累计发放奖励:
{{
totalScore
}}
</div>
<d2-table
<d2-table
class=
'my-row-height'
class=
"my-row-height"
ref=
'profitTable'
ref=
"profitTable"
:hasNum=
'true'
:hasNum=
"true"
@
sendAlldata
=
'getTotalScore'
@
sendAlldata
=
"getTotalScore"
:tableParams=
'profitTableParams'
:tableParams=
"profitTableParams"
:searchForm=
'profitSearchForm'
:searchForm=
"profitSearchForm"
:getListApi=
'getListApi'
:getListApi=
"getListApi"
:pageConf=
'pageConf'
:pageConf=
"pageConf"
>
>
<div
slot=
"businessScene"
slot-scope=
"scope"
>
<div
slot=
"businessScene"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.businessScene == '0'"
>
1.0 新车权益销售
</span>
<span
v-if=
"scope.scope.businessScene == '0'"
>
1.0 新车权益升级
</span>
<span
v-if=
"scope.scope.businessScene == '1'"
>
1.1 次新车精品升级
</span>
<span
v-if=
"scope.scope.businessScene == '1'"
>
1.1 新车精品升级
</span>
<span
v-if=
"scope.scope.businessScene == '2'"
>
1.2 次新车线上转化
</span>
<span
v-if=
"scope.scope.businessScene == '2'"
>
1.2 新车膨胀金活动
</span>
<span
v-if=
"scope.scope.businessScene == '3'"
>
1.3 存量用户众筹
</span>
<span
v-if=
"scope.scope.businessScene == '3'"
>
1.3 售后直播众筹活动
</span
>
</div>
</div>
<div
slot=
"channel"
slot-scope=
"scope"
>
<div
slot=
"channel"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.channel == '1'"
>
广联
</span>
<span
v-if=
"scope.scope.channel == '1'"
>
广联
</span>
<span
v-if=
"scope.scope.channel == '2'"
>
门店
</span>
<span
v-if=
"scope.scope.channel == '2'"
>
门店
</span>
<span
v-if=
"scope.scope.channel == '3'"
>
服务商
</span>
<span
v-if=
"scope.scope.channel == '3'"
>
服务商
</span>
</div>
</div>
</d2-table>
</d2-table>
</div>
</div>
</
template
>
</
template
>
...
@@ -37,16 +40,16 @@ import { profitApi } from '@/api/profitManagement'
...
@@ -37,16 +40,16 @@ import { profitApi } from '@/api/profitManagement'
export
default
{
export
default
{
name
:
'WithdrawalSearch'
,
name
:
'WithdrawalSearch'
,
components
:
{
components
:
{
ProfitSearch
ProfitSearch
,
},
},
data
()
{
data
()
{
return
{
return
{
profitSearchForm
:{},
profitSearchForm
:
{},
totalScore
:
''
,
totalScore
:
''
,
pageConf
:
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.count'
totalCount
:
'data.count'
,
},
},
getListApi
:
profitApi
.
searchProfitList
,
getListApi
:
profitApi
.
searchProfitList
,
profitTableParams
:
{
profitTableParams
:
{
...
@@ -54,44 +57,44 @@ export default {
...
@@ -54,44 +57,44 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'员工名称'
,
label
:
'员工名称'
,
prop
:
'staffName'
prop
:
'staffName'
,
},
},
{
{
label
:
'员工手机号'
,
label
:
'员工手机号'
,
prop
:
'staffPhone'
prop
:
'staffPhone'
,
},
},
{
{
label
:
'奖励积分值'
,
label
:
'奖励积分值'
,
prop
:
'rewardScore'
prop
:
'rewardScore'
,
},
},
{
{
label
:
'关联任务'
,
label
:
'关联任务'
,
prop
:
'missionName'
prop
:
'missionName'
,
},
},
{
{
label
:
'发放渠道'
,
label
:
'发放渠道'
,
prop
:
'channel'
,
prop
:
'channel'
,
addHtml
:
'channel'
addHtml
:
'channel'
,
},
},
{
{
label
:
'所属活动/产品'
,
label
:
'所属活动/产品'
,
prop
:
'activityName'
prop
:
'activityName'
,
},
},
{
{
label
:
'所属商户'
,
label
:
'所属商户'
,
prop
:
'merchantName'
prop
:
'merchantName'
,
},
},
{
{
label
:
'所属业务场景'
,
label
:
'所属业务场景'
,
prop
:
'businessScene'
,
prop
:
'businessScene'
,
addHtml
:
'businessScene'
addHtml
:
'businessScene'
,
},
},
{
{
label
:
'奖励时间'
,
label
:
'奖励时间'
,
prop
:
'rewardTime'
prop
:
'rewardTime'
,
}
}
,
]
]
,
}
}
,
}
}
},
},
methods
:
{
methods
:
{
...
@@ -99,41 +102,43 @@ export default {
...
@@ -99,41 +102,43 @@ export default {
handleOutput
()
{
handleOutput
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
profitSearchForm
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
profitSearchForm
))
let
pageConfig
=
{
let
pageConfig
=
{
pageSize
:
9999
,
pageNum
:
1
pageSize
:
9999
,
pageNum
:
1
,
}
}
profitApi
.
exportProfitList
({
...
params
,...
pageConfig
}).
then
(
res
=>
{
profitApi
.
exportProfitList
({
...
params
,
...
pageConfig
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
$Utils
.
exportFn
(
res
.
data
)
this
.
$Utils
.
exportFn
(
res
.
data
)
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
message
:
'导出失败!'
message
:
'导出失败!'
,
})
})
}
}
})
})
},
},
getSearchForm
(
val
){
getSearchForm
(
val
)
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
if
(
params
&&
params
.
rewardTime
)
{
if
(
params
&&
params
.
rewardTime
)
{
params
.
rewardBeginTime
=
params
.
rewardTime
[
0
]
params
.
rewardBeginTime
=
params
.
rewardTime
[
0
]
params
.
rewardEndTime
=
params
.
rewardTime
[
1
]
params
.
rewardEndTime
=
params
.
rewardTime
[
1
]
}
}
if
(
params
.
rewardTime
&&
params
.
rewardTime
.
length
)
delete
params
.
rewardTime
if
(
params
.
rewardTime
&&
params
.
rewardTime
.
length
)
delete
params
.
rewardTime
this
.
profitSearchForm
=
params
this
.
profitSearchForm
=
params
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$refs
.
profitTable
.
refreshTable
(
false
,
true
)
this
.
$refs
.
profitTable
.
refreshTable
(
false
,
true
)
},
500
)
},
500
)
},
},
getTotalScore
(
val
){
getTotalScore
(
val
)
{
let
{
totalScore
}
=
val
let
{
totalScore
}
=
val
this
.
totalScore
=
totalScore
this
.
totalScore
=
totalScore
}
},
},
},
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.cumulativeAward
{
.cumulativeAward
{
margin
:
16px
0
;
margin
:
16px
0
;
}
}
.my-row-height
>>>
.el-table__body-wrapper
.el-table__row
{
.my-row-height
>>>
.el-table__body-wrapper
.el-table__row
{
...
...
src/views/task/analyseTask/cpns/TaskDetails.vue
View file @
c866300
<
template
>
<
template
>
<div>
<div>
<div
class=
'taskDetails'
v-for=
'(item,index) in taskDetails'
:key=
'index'
>
<div
class=
"taskDetails"
v-for=
"(item, index) in taskDetails"
:key=
"index"
>
<div
class=
'leftContent'
>
<div
class=
"leftContent"
>
<p>
{{
item
.
missonTypeName
}}
</p>
<p>
{{
item
.
missonTypeName
}}
</p>
<p>
{{
item
.
missionName
}}
</p>
<p>
{{
item
.
missionName
}}
</p>
<p>
{{
item
.
missonDesc
}}
</p>
<p>
{{
item
.
missonDesc
}}
</p>
<template
v-if=
'item.platformMerchantMissionMaterialResponseList && item.platformMerchantMissionMaterialResponseList.length'
>
<template
<div
v-for=
'(sub,idx,) in item.platformMerchantMissionMaterialResponseList'
:key=
'idx'
>
v-if=
"
item.platformMerchantMissionMaterialResponseList &&
item.platformMerchantMissionMaterialResponseList.length
"
>
<div
v-for=
"(
sub, idx
) in item.platformMerchantMissionMaterialResponseList"
:key=
"idx"
>
<template
v-if=
"sub.materialType == '1'"
>
<template
v-if=
"sub.materialType == '1'"
>
<p
v-html=
'tramWord(sub.materialContent)'
></p>
<p
v-html=
"tramWord(sub.materialContent)"
></p>
</
template
>
</
template
>
<
template
v-if=
"sub.materialType == '2'"
>
<
template
v-if=
"sub.materialType == '2'"
>
<img
class=
'displayImg'
:src=
'sub.materialContent'
>
<img
class=
"displayImg"
:src=
"sub.materialContent"
/
>
</
template
>
</
template
>
<
template
v-if=
"sub.materialType == '3'"
>
<
template
v-if=
"sub.materialType == '3'"
>
<video
class=
'displayImg'
:src=
'sub.materialContent'
/>
<video
class=
"displayImg"
:src=
"sub.materialContent"
/>
</
template
>
</
template
>
<
template
v-if=
"sub.materialType == '4'"
>
<
template
v-if=
"sub.materialType == '4'"
>
<p
class=
'content'
>
{{
sub
.
materialContent
}}
</p>
<p
class=
"content"
>
{{
sub
.
materialContent
}}
</p>
</
template
>
</
template
>
</div>
</div>
</template>
</template>
<div
class=
'taskAward'
>
<div
class=
"taskAward"
>
<div
class=
'showInfoForm'
>
<div
class=
"showInfoForm"
>
<span
v-if=
'item.rewardTypeName'
>
奖励模式:{{ item.rewardTypeName }}
</span>
<span
v-if=
"item.rewardTypeName"
<span
v-if=
'item.rewardCountName'
>
奖励次数:{{ item.rewardCountName }}
</span>
>
奖励模式:{{ item.rewardTypeName }}
</span
>
<span
v-if=
"item.rewardCountName"
>
奖励次数:{{ item.rewardCountName }}
</span
>
<span
v-if=
"item.rewardCountName == '重复累计'"
>
<span
v-if=
"item.rewardCountName == '重复累计'"
>
重复次数:{{ item.repeatCount == '-1' ? '无限制' : item.repeatCount }}
重复次数:{{
item.repeatCount == '-1' ? '无限制' : item.repeatCount
}}
</span>
</span>
<span
v-if=
'item.triggerValue'
>
触发值:{{ item.triggerValue }}
</span>
<span
v-if=
"item.triggerValue"
<span
v-if=
'item.rewardScore'
>
奖励积分值:{{ item.rewardScore }}
</span>
>
触发值:{{ item.triggerValue }}
</span
>
<span
v-if=
"item.rewardScore"
>
奖励积分值:{{ item.rewardScore }}
</span
>
<span
v-if=
"item.minTriggerValue"
>
最低指标:{{ item.minTriggerValue }}
</span
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
v-if=
"item.missonType != '1'"
class=
'copyLine'
id=
'copy'
v-on:click=
'copy(item.id)'
>
<div
v-if=
"item.missonType != '1'"
class=
"copyLine"
id=
"copy"
v-on:click=
"copy(item.id)"
>
复制任务提醒链接
复制任务提醒链接
</div>
</div>
</div>
</div>
...
@@ -48,43 +76,48 @@ export default {
...
@@ -48,43 +76,48 @@ export default {
props
:
{
props
:
{
taskDetails
:
{
taskDetails
:
{
type
:
Array
,
type
:
Array
,
default
:
[]
default
:
[]
,
}
}
,
},
},
data
()
{
data
()
{
return
{}
return
{}
},
},
methods
:
{
methods
:
{
tramWord
(
val
)
{
tramWord
(
val
)
{
let
htm
=
val
.
replace
(
/
\[([\u
4E00-
\u
9FA56
]{1,4}
|OK|NO|666
)
]/gi
,
function
(
res
)
{
let
htm
=
val
.
replace
(
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
/
\[([\u
4E00-
\u
9FA56
]{1,4}
|OK|NO|666
)
]/gi
,
const
list
=
emoji
.
flat
(
Infinity
)
function
(
res
)
{
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
if
(
index
<
10
)
{
const
list
=
emoji
.
flat
(
Infinity
)
index
=
'00'
+
index
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
}
else
if
(
index
>=
10
&&
index
<
100
)
{
if
(
index
<
10
)
{
index
=
'0'
+
index
index
=
'00'
+
index
}
else
if
(
index
>=
10
&&
index
<
100
)
{
index
=
'0'
+
index
}
return
`<img style='width:25px;height:25px' src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png">`
}
}
return
`<img style='width:25px;height:25px' src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png">`
)
})
return
htm
return
htm
},
},
async
copy
(
id
)
{
async
copy
(
id
)
{
await
taskManagementApi
.
getStaffMissionLink
({
missionId
:
id
}).
then
(
res
=>
{
await
taskManagementApi
if
(
res
.
code
==
'0'
&&
res
.
data
)
{
.
getStaffMissionLink
({
missionId
:
id
})
var
input
=
document
.
createElement
(
'input'
)
.
then
((
res
)
=>
{
input
.
value
=
res
.
data
if
(
res
.
code
==
'0'
&&
res
.
data
)
{
document
.
body
.
appendChild
(
input
)
var
input
=
document
.
createElement
(
'input'
)
input
.
select
()
input
.
value
=
res
.
data
document
.
execCommand
(
'copy'
)
document
.
body
.
appendChild
(
input
)
this
.
$message
.
success
(
'复制成功!'
)
input
.
select
()
document
.
body
.
removeChild
(
input
)
document
.
execCommand
(
'copy'
)
}
else
{
this
.
$message
.
success
(
'复制成功!'
)
this
.
$message
.
error
(
'复制失败!'
)
document
.
body
.
removeChild
(
input
)
}
}
else
{
})
this
.
$message
.
error
(
'复制失败!'
)
}
}
}
})
},
},
}
}
</
script
>
</
script
>
...
@@ -97,10 +130,10 @@ export default {
...
@@ -97,10 +130,10 @@ export default {
padding
:
20px
;
padding
:
20px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.leftContent
{
.leftContent
{
width
:
70%
;
width
:
70%
;
}
}
.content
{
.content
{
height
:
auto
;
height
:
auto
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
word-break
:
break-all
;
word-break
:
break-all
;
...
@@ -110,7 +143,6 @@ export default {
...
@@ -110,7 +143,6 @@ export default {
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.showInfoForm
{
.showInfoForm
{
margin-top
:
10px
;
margin-top
:
10px
;
width
:
700px
;
width
:
700px
;
...
@@ -122,10 +154,10 @@ export default {
...
@@ -122,10 +154,10 @@ export default {
width
:
50%
;
width
:
50%
;
}
}
.copyLine
{
.copyLine
{
color
:
#409
EFF
;
color
:
#409
eff
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.displayImg
{
.displayImg
{
width
:
500px
;
width
:
500px
;
height
:
300px
;
height
:
300px
;
}
}
...
...
src/views/task/observeTask/cpns/taskPlan.vue
View file @
c866300
<
template
>
<
template
>
<div
class=
'taskPlan'
>
<div
class=
"taskPlan"
>
<div
class=
'headline'
>
任务计划
</div>
<div
class=
"headline"
>
任务计划
</div>
<el-tabs
v-model=
'activeName'
type=
'card'
>
<el-tabs
v-model=
"activeName"
type=
"card"
>
<el-tab-pane
v-for=
'(item,index) in taskPlanList'
:key=
'index'
<el-tab-pane
:label=
"item.activityTime =='-1'?'完整周期' : item.activityTime"
:name=
'item.activityTime'
>
v-for=
"(item, index) in taskPlanList"
<div
class=
'taskInfo'
v-for=
'(displayList,idx) in item.platformMerchantMissionResponseList'
:key=
'idx'
>
:key=
"index"
<p
class=
'taskType'
>
{{
displayList
.
missonTypeName
}}
</p>
:label=
"item.activityTime == '-1' ? '完整周期' : item.activityTime"
:name=
"item.activityTime"
>
<div
class=
"taskInfo"
v-for=
"(displayList, idx) in item.platformMerchantMissionResponseList"
:key=
"idx"
>
<p
class=
"taskType"
>
{{
displayList
.
missonTypeName
}}
</p>
<p>
{{
displayList
.
missionName
}}
</p>
<p>
{{
displayList
.
missionName
}}
</p>
<p>
{{
displayList
.
missonDesc
}}
</p>
<p>
{{
displayList
.
missonDesc
}}
</p>
<template
<template
v-if=
'displayList.platformMerchantMissionMaterialResponseList && displayList.platformMerchantMissionMaterialResponseList.length'
>
v-if=
"
<div
v-for=
'(sub,idx,) in displayList.platformMerchantMissionMaterialResponseList'
:key=
'idx'
>
displayList.platformMerchantMissionMaterialResponseList &&
displayList.platformMerchantMissionMaterialResponseList.length
"
>
<div
v-for=
"(
sub, idx
) in displayList.platformMerchantMissionMaterialResponseList"
:key=
"idx"
>
<template
v-if=
"sub.materialType == '1'"
>
<template
v-if=
"sub.materialType == '1'"
>
<p
v-html=
'tramWord(sub.materialContent)'
></p>
<p
v-html=
"tramWord(sub.materialContent)"
></p>
</
template
>
</
template
>
<
template
v-if=
"sub.materialType == '2'"
>
<
template
v-if=
"sub.materialType == '2'"
>
<img
class=
'displayImg'
:src=
'sub.materialContent'
>
<img
class=
"displayImg"
:src=
"sub.materialContent"
/
>
</
template
>
</
template
>
<
template
v-if=
"sub.materialType == '3'"
>
<
template
v-if=
"sub.materialType == '3'"
>
<video
class=
'displayImg'
:src=
'sub.materialContent'
/>
<video
class=
"displayImg"
:src=
"sub.materialContent"
/>
</
template
>
</
template
>
<
template
v-if=
"sub.materialType == '4'"
>
<
template
v-if=
"sub.materialType == '4'"
>
<p>
{{
sub
.
materialContent
}}
</p>
<p>
{{
sub
.
materialContent
}}
</p>
</
template
>
</
template
>
</div>
</div>
</template>
</template>
<div
class=
'showInfoForm'
>
<div
class=
"showInfoForm"
>
<span
v-if=
'displayList.rewardTypeName'
>
奖励模式:{{ displayList.rewardTypeName }}
</span>
<span
v-if=
"displayList.rewardTypeName"
<span
v-if=
'displayList.rewardCountName'
>
奖励次数:{{ displayList.rewardCountName }}
</span>
>
奖励模式:{{ displayList.rewardTypeName }}
</span
>
<span
v-if=
"displayList.rewardCountName"
>
奖励次数:{{ displayList.rewardCountName }}
</span
>
<span
v-if=
"displayList.rewardCountName == '重复累计'"
>
<span
v-if=
"displayList.rewardCountName == '重复累计'"
>
重复次数:{{ displayList.repeatCount == '-1' ? '无限制' : displayList.repeatCount }}
重复次数:{{
displayList.repeatCount == '-1'
? '无限制'
: displayList.repeatCount
}}
</span>
</span>
<span
v-if=
'displayList.triggerValue'
>
触发值:{{ displayList.triggerValue }}
</span>
<span
v-if=
"displayList.triggerValue"
<span
v-if=
'displayList.rewardScore'
>
奖励积分值:{{ displayList.rewardScore }}
</span>
>
触发值:{{ displayList.triggerValue }}
</span
>
<span
v-if=
"displayList.rewardScore"
>
奖励积分值:{{ displayList.rewardScore }}
</span
>
<span
v-if=
"displayList.minTriggerValue"
>
最低指标:{{ displayList.minTriggerValue }}
</span
>
</div>
</div>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
...
@@ -49,47 +81,50 @@ export default {
...
@@ -49,47 +81,50 @@ export default {
props
:
{
props
:
{
taskPlanList
:
{
taskPlanList
:
{
type
:
Array
,
type
:
Array
,
default
:
[]
default
:
[]
,
}
}
,
},
},
data
()
{
data
()
{
return
{
return
{
activeName
:
''
activeName
:
''
,
}
}
},
},
watch
:
{
watch
:
{
taskPlanList
:{
taskPlanList
:
{
handler
(
newVal
,
oldVal
)
{
handler
(
newVal
,
oldVal
)
{
if
(
!
oldVal
||
newVal
!==
oldVal
)
{
if
(
!
oldVal
||
newVal
!==
oldVal
)
{
this
.
activeName
=
newVal
&&
newVal
[
0
].
activityTime
this
.
activeName
=
newVal
&&
newVal
[
0
].
activityTime
this
.
taskPlanList
=
newVal
this
.
taskPlanList
=
newVal
}
}
},
},
immediate
:
true
,
immediate
:
true
,
deep
:
true
deep
:
true
,
}
}
,
},
},
methods
:{
methods
:
{
tramWord
(
val
)
{
tramWord
(
val
)
{
let
htm
=
val
.
replace
(
/
\[([\u
4E00-
\u
9FA56
]{1,4}
|OK|NO|666
)
]/gi
,
function
(
res
)
{
let
htm
=
val
.
replace
(
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
/
\[([\u
4E00-
\u
9FA56
]{1,4}
|OK|NO|666
)
]/gi
,
const
list
=
emoji
.
flat
(
Infinity
)
function
(
res
)
{
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
if
(
index
<
10
)
{
const
list
=
emoji
.
flat
(
Infinity
)
index
=
'00'
+
index
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
}
else
if
(
index
>=
10
&&
index
<
100
)
{
if
(
index
<
10
)
{
index
=
'0'
+
index
index
=
'00'
+
index
}
else
if
(
index
>=
10
&&
index
<
100
)
{
index
=
'0'
+
index
}
return
`<img style='width:25px;height:25px' src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png">`
}
}
return
`<img style='width:25px;height:25px' src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png">`
)
})
return
htm
return
htm
},
},
}
}
,
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.taskPlan
{
.taskPlan
{
margin-top
:
20px
;
margin-top
:
20px
;
}
}
.headline
{
.headline
{
...
@@ -98,7 +133,7 @@ export default {
...
@@ -98,7 +133,7 @@ export default {
}
}
.taskInfo
{
.taskInfo
{
border
:
1px
solid
#
E4E7ED
;
border
:
1px
solid
#
e4e7ed
;
padding-left
:
20px
;
padding-left
:
20px
;
padding-right
:
20px
;
padding-right
:
20px
;
margin-bottom
:
16px
;
margin-bottom
:
16px
;
...
@@ -110,7 +145,7 @@ export default {
...
@@ -110,7 +145,7 @@ export default {
.displayImg
{
.displayImg
{
width
:
500px
;
width
:
500px
;
height
:
300px
height
:
300px
;
}
}
.showInfoForm
{
.showInfoForm
{
...
...
src/views/withdrawalManagement/withdrawalList/components/WithdrawalSearch.vue
View file @
c866300
<
template
>
<
template
>
<div
style=
'margin: 16px'
>
<div
style=
"margin: 16px"
>
<el-form
<el-form
size=
'small'
size=
"small"
inline
inline
ref=
'withdrawalForm'
ref=
"withdrawalForm"
:model=
'withdrawalSearchForm'
:model=
"withdrawalSearchForm"
label-width=
'100px'
label-width=
"100px"
class=
'demo-form-inline'
class=
"demo-form-inline"
>
>
<el-form-item
label=
'员工名称'
>
<el-form-item
label=
"员工名称"
>
<el-input
<el-input
clearable
clearable
v-model=
'withdrawalSearchForm.staffName'
v-model=
"withdrawalSearchForm.staffName"
placeholder=
'请输入员工名称'
placeholder=
"请输入员工名称"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'员工手机号'
>
<el-form-item
label=
"员工手机号"
>
<el-input
<el-input
clearable
clearable
v-model=
'withdrawalSearchForm.staffPhone'
v-model=
"withdrawalSearchForm.staffPhone"
placeholder=
'请输入员工手机号'
placeholder=
"请输入员工手机号"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'状态'
>
<el-form-item
label=
"门店名称"
>
<el-select
v-model=
'withdrawalSearchForm.status'
placeholder=
'请选择状态'
>
<el-input
<el-option
label=
'全部'
value=
''
></el-option>
clearable
<el-option
label=
'待审核'
value=
'1'
></el-option>
v-model=
"withdrawalSearchForm.merchantName"
<el-option
label=
'到账中'
value=
'2'
></el-option>
placeholder=
"请输入门店名称"
<el-option
label=
'已到账'
value=
'3'
></el-option>
></el-input>
<el-option
label=
'到账失败'
value=
'4'
></el-option>
</el-form-item>
<el-form-item
label=
"状态"
>
<el-select
v-model=
"withdrawalSearchForm.status"
placeholder=
"请选择状态"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"待审核"
value=
"1"
></el-option>
<el-option
label=
"到账中"
value=
"2"
></el-option>
<el-option
label=
"已到账"
value=
"3"
></el-option>
<el-option
label=
"到账失败"
value=
"4"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
'提现时间'
>
<el-form-item
label=
"提现时间"
>
<el-date-picker
<el-date-picker
value-format=
'yyyy-MM-dd'
value-format=
"yyyy-MM-dd"
v-model=
'withdrawalSearchForm.withdrawalTime'
v-model=
"withdrawalSearchForm.withdrawalTime"
type=
'daterange'
type=
"daterange"
range-separator=
'至'
range-separator=
"至"
start-placeholder=
'开始日期'
start-placeholder=
"开始日期"
end-placeholder=
'结束日期'
>
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
'审核时间'
>
<el-form-item
label=
"审核时间"
>
<el-date-picker
<el-date-picker
value-format=
'yyyy-MM-dd'
value-format=
"yyyy-MM-dd"
v-model=
'withdrawalSearchForm.reviewTime'
v-model=
"withdrawalSearchForm.reviewTime"
type=
'daterange'
type=
"daterange"
range-separator=
'至'
range-separator=
"至"
start-placeholder=
'开始日期'
start-placeholder=
"开始日期"
end-placeholder=
'结束日期'
>
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
'primary'
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
@
click=
'handleSearch'
<el-button
@
click=
"reset"
>
重置
</el-button>
>
查询
</el-button
>
<el-button
@
click=
'reset'
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -72,15 +80,18 @@ export default {
...
@@ -72,15 +80,18 @@ export default {
data
()
{
data
()
{
return
{
return
{
withdrawalSearchForm
:
{
withdrawalSearchForm
:
{
status
:
''
status
:
''
,
}
}
,
}
}
},
},
created
()
{
created
()
{
this
.
$set
(
this
.
withdrawalSearchForm
,
'withdrawalTime'
,
[
this
.
defalutStartTime
,
this
.
defalutEndTime
])
this
.
$set
(
this
.
withdrawalSearchForm
,
'withdrawalTime'
,
[
this
.
defalutStartTime
,
this
.
defalutEndTime
,
])
},
},
mounted
()
{
mounted
()
{
this
.
handleSearch
()
this
.
handleSearch
()
},
},
methods
:
{
methods
:
{
handleSearch
()
{
handleSearch
()
{
...
@@ -90,15 +101,16 @@ export default {
...
@@ -90,15 +101,16 @@ export default {
Object
.
keys
(
this
.
withdrawalSearchForm
).
forEach
((
key
)
=>
{
Object
.
keys
(
this
.
withdrawalSearchForm
).
forEach
((
key
)
=>
{
this
.
withdrawalSearchForm
[
key
]
=
''
this
.
withdrawalSearchForm
[
key
]
=
''
})
})
this
.
$set
(
this
.
withdrawalSearchForm
,
'withdrawalTime'
,
[
this
.
defalutStartTime
,
this
.
defalutEndTime
])
this
.
$set
(
this
.
withdrawalSearchForm
,
'withdrawalTime'
,
[
this
.
defalutStartTime
,
this
.
defalutEndTime
,
])
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleSearch
()
this
.
handleSearch
()
})
})
}
}
,
}
}
,
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
></
style
>
</
style
>
src/views/withdrawalManagement/withdrawalList/components/WithdrawalTable.vue
View file @
c866300
<
template
>
<
template
>
<d2-table
<d2-table
class=
'my-row-height'
class=
"my-row-height"
ref=
'withdrawalTable'
ref=
"withdrawalTable"
:hasNum=
'true'
:hasNum=
"true"
:tableParams=
'withdrawalTableParams'
:tableParams=
"withdrawalTableParams"
:searchForm=
'searchForm'
:searchForm=
"searchForm"
:getListApi=
'getListApi'
:getListApi=
"getListApi"
:pageConf=
'pageConf'
:pageConf=
"pageConf"
@
sendAlldata
=
'getAmountCollection'
@
sendAlldata
=
"getAmountCollection"
>
>
<div
slot=
"status"
slot-scope=
"scope"
>
<div
slot=
"status"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.status == '1'"
>
待审核
</span>
<span
v-if=
"scope.scope.status == '1'"
>
待审核
</span>
...
@@ -22,18 +22,18 @@
...
@@ -22,18 +22,18 @@
import
{
withdrawalApi
}
from
'@/api/withdrawalManagement'
import
{
withdrawalApi
}
from
'@/api/withdrawalManagement'
export
default
{
export
default
{
name
:
'WithdrawalTable'
,
name
:
'WithdrawalTable'
,
props
:{
props
:
{
searchForm
:{
searchForm
:
{
type
:
Object
,
type
:
Object
,
default
:
{}
default
:
{},
}
}
,
},
},
data
()
{
data
()
{
return
{
return
{
pageConf
:
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.count'
totalCount
:
'data.count'
,
},
},
withdrawalTableParams
:
{
withdrawalTableParams
:
{
mutiSelectUniqueKey
:
'id'
,
mutiSelectUniqueKey
:
'id'
,
...
@@ -42,66 +42,82 @@ export default {
...
@@ -42,66 +42,82 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'员工名称'
,
label
:
'员工名称'
,
prop
:
'staffName'
prop
:
'staffName'
,
},
},
{
{
label
:
'员工手机号'
,
label
:
'员工手机号'
,
prop
:
'staffPhone'
prop
:
'staffPhone'
,
},
{
label
:
'门店名称'
,
prop
:
'merchantName'
,
},
},
{
{
label
:
'积分值'
,
label
:
'积分值'
,
prop
:
'withdrawalScore'
prop
:
'withdrawalScore'
,
},
},
{
{
label
:
'提现金额(元)'
,
label
:
'提现金额(元)'
,
prop
:
'withdrawalAmount'
prop
:
'withdrawalAmount'
,
},
},
{
{
label
:
'提现时间'
,
label
:
'提现时间'
,
prop
:
'withdrawalTime'
prop
:
'withdrawalTime'
,
},
},
{
{
label
:
'微信昵称'
,
label
:
'微信昵称'
,
prop
:
'wechatNickName'
prop
:
'wechatNickName'
,
},
},
{
{
label
:
'微信手机号'
,
label
:
'微信手机号'
,
prop
:
'wechatPhone'
prop
:
'wechatPhone'
,
},
},
{
{
label
:
'微信openid'
,
label
:
'微信openid'
,
prop
:
'wechatOpenId'
prop
:
'wechatOpenId'
,
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'status'
,
prop
:
'status'
,
addHtml
:
'status'
addHtml
:
'status'
,
},
},
{
{
label
:
'审核人'
,
label
:
'审核人'
,
prop
:
'reviewer'
prop
:
'reviewer'
,
},
},
{
{
label
:
'审核时间'
,
label
:
'审核时间'
,
prop
:
'reviewTime'
prop
:
'reviewTime'
,
},
},
{
{
label
:
'到账时间'
,
label
:
'到账时间'
,
prop
:
'successTime'
prop
:
'successTime'
,
}
}
,
]
]
,
},
},
getListApi
:
withdrawalApi
.
withdrawalListApi
,
getListApi
:
withdrawalApi
.
withdrawalListApi
,
}
}
},
},
methods
:{
methods
:
{
getAmountCollection
(
val
){
getAmountCollection
(
val
)
{
let
{
receivedAmount
,
receivingAmount
,
reviewingAmount
,
totalAmount
,
failureAmount
}
=
val
let
{
let
amountCollection
=
{
receivedAmount
,
receivingAmount
,
reviewingAmount
,
totalAmount
,
failureAmount
}
receivedAmount
,
this
.
$emit
(
'sendCollection'
,
amountCollection
)
receivingAmount
,
reviewingAmount
,
totalAmount
,
failureAmount
,
}
=
val
let
amountCollection
=
{
receivedAmount
,
receivingAmount
,
reviewingAmount
,
totalAmount
,
failureAmount
,
}
}
}
this
.
$emit
(
'sendCollection'
,
amountCollection
)
}
},
},
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment