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 00f9d689
authored
Oct 19, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.12.0' of
http://192.168.3.233:8090/glsx-web/glsx-oss-task
into kyq_dev
2 parents
5b95b4c4
6865d575
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
256 additions
and
142 deletions
src/api/task.js
src/components/GLEditor/index.vue
src/components/GLEditor/tag-textarea.vue
src/views/profitManagement/profitList/cpns/ProfitSearch.vue
src/views/profitManagement/profitList/index.vue
src/views/task/addTask/components/activityDia.vue
src/views/task/addTask/index.vue
src/views/task/analyseTask/cpns/TaskDetails.vue
src/views/task/analyseTask/index.vue
src/views/task/observeTask/cpns/taskPlan.vue
src/views/task/observeTask/index.vue
src/views/task/taskList/index.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalDialog.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalSearch.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalTable.vue
src/views/withdrawalManagement/withdrawalList/index.vue
src/api/task.js
View file @
00f9d68
...
...
@@ -26,10 +26,10 @@ const taskApi = {
},
// 获取所有未结束活动
getActivityBypage
(
data
)
{
data
.
method
=
'scrm.api.
shopmall
.crowd.activity.page'
data
.
method
=
'scrm.api.
assistant
.crowd.activity.page'
return
request
(
data
,
'scrm.api.
shopmall
.crowd.activity.page'
,
'scrm.api.
assistant
.crowd.activity.page'
,
[],
Vue
.
prototype
.
otherUrl
)
...
...
src/components/GLEditor/index.vue
View file @
00f9d68
...
...
@@ -347,7 +347,7 @@ export default {
props
:
{
btnList
:
Array
,
form
:
String
,
preview
List
:
{
preview
Data
:
{
type
:
Array
,
default
:
()
=>
[],
},
...
...
@@ -371,7 +371,7 @@ export default {
loading
:
false
,
emotionStatus
:
false
,
guestForm
:
{},
// previewList: []
,
previewList
:
this
.
previewData
,
sendType
:
''
,
sendTime
:
''
,
sendDate
:
''
,
...
...
src/components/GLEditor/tag-textarea.vue
View file @
00f9d68
<
template
>
<div
class=
"w-textarea"
ref=
"wTextarea"
v-bind=
"$attr"
>
<div
contenteditable=
"true"
class=
"w-textarea_input"
ref=
"wTextareaContent"
:id=
"contentId"
@
keydown=
"textareaKeydown($event)"
@
click=
"inputClick($event)"
@
focus=
"onFocus"
@
blur=
"onBlur"
@
keydown
.
delete=
"handleDelete($event)"
@
input=
"handleInput($event.target)"
></div>
</div>
</
template
>
<
script
>
<div
class=
"w-textarea"
ref=
"wTextarea"
>
<div
contenteditable=
"true"
class=
"w-textarea_input"
ref=
"wTextareaContent"
:id=
"contentId"
@
keydown=
"textareaKeydown($event)"
@
click=
"inputClick($event)"
@
focus=
"onFocus"
@
blur=
"onBlur"
@
keydown
.
delete=
"handleDelete($event)"
@
input=
"handleInput($event.target)"
></div>
</div>
</
template
>
<
script
>
import
emoji
from
'../../utils/emo'
export
default
{
name
:
'wTextarea'
,
...
...
@@ -19,20 +30,20 @@ export default {
// 记录当前选中tag的ID
currentTagId
:
null
,
// 当前光标位置
savedRange
:
{}
savedRange
:
{}
,
}
},
props
:
{
value
:
{
type
:
String
,
default
:
''
default
:
''
,
},
tag
:
{
// 自定义模版标签的标签名
type
:
String
,
// 默认使用wise作为标签名,并添加了默认样式
// 当使用其他标签名的时候,需要另写标签样式
default
:
'wise'
default
:
'wise'
,
},
tools
:
{
// 自定义扩展功能:超链接'link',模版标签'tag'
...
...
@@ -40,15 +51,15 @@ export default {
default
()
{
return
[
{
type
:
'link'
,
text
:
'添加超链接'
},
{
type
:
'tag'
,
text
:
'添加模版标签'
}
{
type
:
'tag'
,
text
:
'添加模版标签'
}
,
]
}
}
,
},
maxlength
:
{
// 最大输入长度
type
:
[
String
,
Number
],
default
:
''
}
default
:
''
,
}
,
},
computed
:
{
count
()
{
...
...
@@ -57,7 +68,7 @@ export default {
let
text
=
num
<
0
?
`已超出
${
Math
.
abs
(
num
)}
个字符`
:
`还可以输入
${
num
}
个字符`
return
{
num
,
text
}
}
}
,
},
mounted
()
{
// 初始化数据
...
...
@@ -199,7 +210,7 @@ export default {
)
.
replace
(
/<wise.+
?
>
(
.+
?)(?:
<
\/
wise>
)
/g
,
'$1'
)
.
replace
(
/<br>/g
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
})
...
...
@@ -296,7 +307,7 @@ export default {
)
{
this
.
savedRange
=
range
}
}
}
,
},
watch
:
{
value
(
val
)
{
...
...
@@ -304,11 +315,11 @@ export default {
if
(
!
this
.
isLocked
)
{
this
.
$refs
.
wTextareaContent
.
innerHTML
=
val
}
}
}
}
,
}
,
}
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.w-textarea
{
wise
{
user-select
:
none
;
...
...
@@ -338,7 +349,7 @@ export default {
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
$
borderColor
:
#e5e5e5
;
$
bgColor
:
#f5f7fa
;
$
textColor
:
#666
;
...
...
src/views/profitManagement/profitList/cpns/ProfitSearch.vue
View file @
00f9d68
...
...
@@ -48,8 +48,8 @@
<el-select
v-model=
'profitSearchForm.channel'
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=
'2'
></el-option>
<el-option
label=
'
服务商
'
value=
'3'
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
'关联任务:'
>
...
...
src/views/profitManagement/profitList/index.vue
View file @
00f9d68
...
...
@@ -5,7 +5,7 @@
<div
class=
'cumulativeAward'
>
累计发放奖励:
{{
totalScore
}}
</div>
<d2-table
class=
'my-row-height'
ref=
'
withdrawal
Table'
ref=
'
profit
Table'
:hasNum=
'true'
@
sendAlldata =
'getTotalScore'
:tableParams=
'profitTableParams'
...
...
@@ -13,6 +13,18 @@
:getListApi=
'getListApi'
:pageConf=
'pageConf'
>
<div
slot=
"businessScene"
slot-scope=
"scope"
>
<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 == '2'"
>
1.2 次新车线上转化
</span>
<span
v-if=
"scope.scope.businessScene == '3'"
>
1.3 存量用户众筹
</span>
</div>
<div
slot=
"channel"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.channel == '1'"
>
广联
</span>
<span
v-if=
"scope.scope.channel == '2'"
>
门店
</span>
<span
v-if=
"scope.scope.channel == '3'"
>
服务商
</span>
</div>
</d2-table>
</div>
</
template
>
...
...
@@ -58,7 +70,8 @@ export default {
},
{
label
:
'发放渠道'
,
prop
:
'channel'
prop
:
'channel'
,
addHtml
:
'channel'
},
{
label
:
'所属活动/产品'
,
...
...
@@ -70,7 +83,8 @@ export default {
},
{
label
:
'所属业务场景'
,
prop
:
'businessScene'
prop
:
'businessScene'
,
addHtml
:
'businessScene'
},
{
label
:
'奖励时间'
,
...
...
@@ -106,7 +120,9 @@ export default {
}
if
(
params
.
rewardTime
&&
params
.
rewardTime
.
length
)
delete
params
.
rewardTime
this
.
profitSearchForm
=
params
this
.
$refs
.
withdrawalTable
.
refreshTable
()
setTimeout
(()
=>
{
this
.
$refs
.
profitTable
.
refreshTable
()
},
500
)
},
getTotalScore
(
val
){
let
{
totalScore
}
=
val
...
...
src/views/task/addTask/components/activityDia.vue
View file @
00f9d68
...
...
@@ -7,13 +7,18 @@
:before-close=
"handleClose"
>
<div
class=
"activity-box"
>
<span>
系统中已存在活动不可选择;
</span>
<span
v-if=
"isClone"
>
复制功能,活动天数不一致的活动不可选择
</span>
<div
class=
"model-item-panel"
v-if=
"activityData.length"
>
<div
class=
"model-item"
:class=
"
{ checked: selectItem == item }"
:class=
"
{
checked: selectItem == item
&&
item.taskStatus != 1,
abandon: item.taskStatus == 1,
}"
v-for="(item, index) in activityData"
:key="index"
@click="handleSelectItem(item)"
@click="
!item.taskStatus
&&
handleSelectItem(item)"
>
<img
class=
"model-item-img"
:src=
"item.activityImg"
alt=
""
/>
<div
class=
"model-item-title"
:title=
"item.activityName"
>
...
...
@@ -63,6 +68,8 @@ export default {
return
{
activityDiaVisible
:
false
,
loading
:
false
,
isClone
:
false
,
taskDateNum
:
0
,
activityData
:
[],
selectItem
:
{},
pageParam
:
{
...
...
@@ -73,8 +80,10 @@ export default {
}
},
methods
:
{
init
(
merchantId
)
{
init
(
merchantId
,
isClone
,
taskDateNum
)
{
this
.
activityDiaVisible
=
true
this
.
isClone
=
isClone
this
.
taskDateNum
=
taskDateNum
this
.
getActivityData
(
merchantId
)
},
getActivityData
(
merchantId
)
{
...
...
@@ -91,10 +100,26 @@ export default {
this
.
activityData
.
map
((
item
)
=>
{
item
.
startTime
=
dayjs
(
item
.
startTime
).
format
(
'YYYY-MM-DD'
)
item
.
endTime
=
dayjs
(
item
.
endTime
).
format
(
'YYYY-MM-DD'
)
if
(
this
.
isClone
)
{
console
.
log
(
this
.
taskDateNum
)
let
activityDays
=
this
.
getDateByDays
(
item
.
startTime
,
item
.
endTime
)
if
(
activityDays
!=
this
.
taskDateNum
)
{
item
.
taskStatus
=
1
}
}
})
console
.
log
(
this
.
activityData
,
'this.activityData'
)
})
},
// 根据日期获取天数
getDateByDays
(
startDate
,
endDdate
)
{
let
d1
=
Date
.
parse
(
new
Date
(
startDate
))
let
d2
=
Date
.
parse
(
new
Date
(
endDdate
))
// 时间戳相减 / 天数
let
day
=
parseInt
((
d2
-
d1
)
/
(
1000
*
60
*
60
*
24
))
+
1
return
day
},
handleSelectItem
(
item
)
{
console
.
log
(
item
)
this
.
selectItem
=
item
...
...
@@ -156,6 +181,9 @@ export default {
&.checked
{
border
:
2px
solid
#5850ff
;
}
&
.abandon
{
cursor
:
not-allowed
;
}
&
:nth-child
(
4n
)
{
margin-right
:
0px
;
}
...
...
src/views/task/addTask/index.vue
View file @
00f9d68
...
...
@@ -15,7 +15,7 @@
placeholder=
"请选择业务场景"
size=
"small"
>
<el-option
label=
"1.3存量用户众筹"
:value=
"
4
"
></el-option>
<el-option
label=
"1.3存量用户众筹"
:value=
"
3
"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"商户:"
prop=
"merchantId"
>
...
...
@@ -26,7 +26,6 @@
:remote-method=
"remoteMethod"
placeholder=
"请选择商户"
size=
"small"
@
focus=
"selectMerchant"
@
change=
"changeMerchant"
>
<el-option
...
...
@@ -166,7 +165,7 @@
:form=
"'customer'"
style=
"line-height: 12px"
:btnList=
"btnList"
:preview
List
=
"itm.missionMaterialList"
:preview
Data
=
"itm.missionMaterialList"
@
getEditor=
"getEditor(item, index, itm, index1)"
@
shareMatrial=
"shareMatrial"
></GLEditor>
...
...
@@ -303,7 +302,7 @@ export default {
return
{
// 基础信息表单
basicForm
:
{
businessScene
:
4
,
businessScene
:
3
,
merchantId
:
''
,
merchantName
:
''
,
activityId
:
''
,
...
...
@@ -325,6 +324,8 @@ export default {
isClone
:
false
,
// 活动弹框
activityDiaVisible
:
false
,
// 活动日期天数
taskDateNum
:
0
,
btnList
:
[
{
name
:
'表情'
,
...
...
@@ -460,15 +461,17 @@ export default {
this
.
isEditor
=
true
// this.taskList = params.task.missionDateList
this
.
findMissionDeail
(
params
.
task
.
id
)
this
.
getEditTaskList
()
//
this.getEditTaskList()
this
.
taskId
=
params
.
task
.
id
console
.
log
(
this
.
taskList
,
'88888'
)
}
// 判断是否是复制
if
(
params
&&
params
.
id
)
{
this
.
getCloneTaskList
(
params
.
missionDateList
)
this
.
isClone
=
true
this
.
findMissionDeail
(
params
.
id
)
}
})
this
.
selectMerchant
()
},
methods
:
{
// 点击选择活动/任务
...
...
@@ -488,7 +491,11 @@ export default {
return
}
this
.
activityDiaVisible
=
true
this
.
$refs
.
activityDia
.
init
(
this
.
basicForm
.
merchantId
)
this
.
$refs
.
activityDia
.
init
(
this
.
basicForm
.
merchantId
,
this
.
isClone
,
this
.
taskDateNum
)
// this.$refs.activityDia.init(44209390)
},
// 选择商户
...
...
@@ -501,18 +508,22 @@ export default {
return
}
let
params
=
{}
// params.sceneCode = 'SC00' + this.basicForm.businessScene
params
.
sceneCode
=
'SC003'
params
.
sceneCode
=
'SC00'
+
this
.
basicForm
.
businessScene
params
.
merchantName
=
query
taskApi
.
findMerchantByScene
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
,
'selectMerchant'
)
this
.
merchantList
=
res
.
data
.
data
})
},
// 商户改变
// 商户改变
获取商户名
changeMerchant
(
val
)
{
console
.
log
(
val
)
this
.
basicForm
.
merchantName
=
val
&&
this
.
merchantList
.
find
((
item
)
=>
item
.
merchantId
==
val
).
merchantName
console
.
log
(
this
.
basicForm
)
},
// 根据商户名搜索商户
remoteMethod
(
query
)
{
if
(
query
!==
''
)
{
this
.
selectMerchant
(
query
)
...
...
@@ -532,15 +543,13 @@ export default {
// 任务tab切换
handleClick
()
{},
// 任务克隆获取克隆任务计划
getCloneTaskList
(
taskListData
)
{
this
.
taskList
=
taskListData
// 处理克隆数据
this
.
taskList
.
map
((
item
,
index
)
=>
{
if
(
taskListData
.
length
!=
index
+
1
)
{
getCloneTaskList
()
{
// 处理克隆日期数据
this
.
taskList
.
map
((
item
)
=>
{
if
(
item
.
activityTime
!=
-
1
)
{
item
.
activityTime
=
''
}
})
this
.
isClone
=
true
console
.
log
(
this
.
taskList
)
},
// 任务编辑处理任务计划数据
...
...
@@ -559,10 +568,11 @@ export default {
},
// 遍历日期
setHouseRatesColumn
(
startTime
,
endTime
)
{
console
.
log
(
this
.
taskList
,
'clone'
)
this
.
taskList
=
[]
startTime
=
new
Date
(
startTime
)
endTime
=
new
Date
(
endTime
)
let
num
=
0
let
editList
=
[]
while
(
endTime
.
getTime
()
-
startTime
.
getTime
()
>=
0
)
{
const
year
=
startTime
.
getFullYear
()
const
month
=
...
...
@@ -573,44 +583,51 @@ export default {
startTime
.
getDate
().
toString
().
length
==
1
?
'0'
+
startTime
.
getDate
()
:
startTime
.
getDate
()
// 判断是否为复制页面
if
(
!
this
.
isClone
)
{
this
.
taskList
.
push
({
activityTime
:
`
${
year
}
-
${
month
}
-
${
day
}
`
,
missionList
:
[],
})
}
else
{
this
.
$set
(
this
.
taskList
[
num
],
'activityTime'
,
`
${
month
}
-
${
day
}
`
)
}
num
++
console
.
log
(
num
)
startTime
.
setDate
(
startTime
.
getDate
()
+
1
)
}
console
.
log
(
editList
,
'editList'
)
// 非复制页面,多添加一个完整周期tab
if
(
!
this
.
isClone
)
{
this
.
taskList
.
push
({
activityTime
:
'-1'
,
activityTime
:
`
${
year
}
-
${
month
}
-
${
day
}
`
,
missionList
:
[],
})
num
++
console
.
log
(
num
)
startTime
.
setDate
(
startTime
.
getDate
()
+
1
)
}
// 如果是编辑页面,任务计划回显
if
(
this
.
isEditor
)
{
for
(
var
i
=
0
;
i
<
this
.
taskList
.
length
;
i
++
)
{
for
(
var
j
=
0
;
j
<
this
.
taskEditList
.
missionDateList
.
length
;
j
++
)
{
console
.
log
(
this
.
taskEditList
.
missionDateList
[
j
],
'123123'
)
if
(
this
.
taskList
[
i
].
activityTime
==
this
.
taskEditList
.
missionDateList
[
j
].
activityTime
)
{
this
.
taskList
[
i
].
missionList
=
this
.
taskEditList
.
missionDateList
[
j
].
missionList
}
console
.
log
(
this
.
taskList
,
'clone11'
)
// 多添加一个完整周期tab
this
.
taskList
.
push
({
activityTime
:
'-1'
,
missionList
:
[],
})
// 如果是编辑/复制页面,任务计划回显
if
(
this
.
isEditor
||
this
.
isClone
)
this
.
dealEcho
()
// 如果是编辑,还需处理是否可编辑处理
if
(
this
.
isEditor
)
this
.
getEditTaskList
()
// 如果是克隆,还需处理克隆时间
if
(
this
.
isClone
)
this
.
getCloneTaskList
()
console
.
log
(
this
.
taskList
,
'this.taskList'
)
return
this
.
taskList
},
// 处理任务计划回显
dealEcho
()
{
for
(
var
i
=
0
;
i
<
this
.
taskList
.
length
;
i
++
)
{
for
(
var
j
=
0
;
j
<
this
.
taskEditList
.
missionDateList
.
length
;
j
++
)
{
console
.
log
(
this
.
taskEditList
.
missionDateList
[
j
],
'123123'
)
if
(
this
.
taskList
[
i
].
activityTime
==
this
.
taskEditList
.
missionDateList
[
j
].
activityTime
)
{
this
.
taskList
[
i
].
missionList
=
this
.
taskEditList
.
missionDateList
[
j
].
missionList
}
}
}
console
.
log
(
this
.
taskList
,
'this.taskList'
)
return
this
.
taskList
},
// 根据日期获取天数
getDateByDays
(
startDate
,
endDdate
)
{
let
d1
=
Date
.
parse
(
new
Date
(
startDate
))
let
d2
=
Date
.
parse
(
new
Date
(
endDdate
))
// 时间戳相减 / 天数
let
day
=
parseInt
((
d2
-
d1
)
/
(
1000
*
60
*
60
*
24
))
+
1
return
day
},
// 添加任务
addTaskType
(
item
,
index
)
{
...
...
@@ -725,21 +742,27 @@ export default {
crowd
,
remark
,
merchantId
,
merchantName
,
startTime
,
endTime
,
}
=
res
.
data
this
.
basicForm
.
activityId
=
activityId
this
.
basicForm
.
activityName
=
activityName
this
.
basicForm
.
activityId
=
this
.
isEditor
?
activityId
:
''
this
.
basicForm
.
activityName
=
this
.
isEditor
?
activityName
:
''
this
.
basicForm
.
businessScene
=
businessScene
this
.
basicForm
.
channel
=
channel
this
.
basicForm
.
crowd
=
crowd
.
split
(
','
)
this
.
basicForm
.
remark
=
remark
this
.
basicForm
.
merchantId
=
merchantId
this
.
basicForm
.
merchantName
=
merchantName
this
.
startTime
=
startTime
this
.
endTime
=
endTime
this
.
taskEditList
=
res
.
data
// this.taskList = res.data.missionDateList
this
.
setHouseRatesColumn
(
startTime
,
endTime
)
if
(
this
.
isClone
)
{
this
.
taskDateNum
=
this
.
getDateByDays
(
startTime
,
endTime
)
console
.
log
(
this
.
taskDateNum
,
'taskDateNum'
)
}
console
.
log
(
this
.
taskList
)
}
})
...
...
@@ -819,7 +842,16 @@ export default {
}
// 编辑
taskApi
.
updateMission
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
,
'update'
)
if
(
res
&&
res
.
code
==
0
)
{
this
.
$root
.
close
(
'*添加任务模板'
)
this
.
$root
.
to
([
'任务中心'
,
'任务平台'
,
'任务管理'
,
'任务模板管理'
,
'任务管理列表'
,
])
}
})
},
// 取消
...
...
src/views/task/analyseTask/cpns/TaskDetails.vue
View file @
00f9d68
...
...
@@ -5,8 +5,22 @@
<p>
{{
item
.
missonTypeName
}}
</p>
<p>
{{
item
.
missionName
}}
</p>
<p>
{{
item
.
missonDesc
}}
</p>
<p>
{{
item
.
text
}}
</p>
<img
:src=
'item.img'
>
<template
v-if=
" item.platformMerchantMissionMaterialResponseList && item.platformMerchantMissionMaterialResponseList[0].materialType == '1'"
>
<p>
{{
item
.
platformMerchantMissionMaterialResponseList
[
0
].
materialContent
}}
</p>
</
template
>
<
template
v-if=
"item.platformMerchantMissionMaterialResponseList &&item.platformMerchantMissionMaterialResponseList[0].materialType == '2'"
>
<img
:src=
'item.platformMerchantMissionMaterialResponseList[0].materialContent'
>
</
template
>
<
template
v-if=
"item.platformMerchantMissionMaterialResponseList &&item.platformMerchantMissionMaterialResponseList[0].materialType == '3'"
>
<video
:src=
'item.platformMerchantMissionMaterialResponseList[0].materialContent'
/>
</
template
>
<
template
v-if=
"item.platformMerchantMissionMaterialResponseList && item.platformMerchantMissionMaterialResponseList[0].materialType == '4'"
>
<p>
{{
item
.
platformMerchantMissionMaterialResponseList
[
0
].
materialContent
}}
</p>
</
template
>
<div
class=
'taskAward'
>
<div
class=
'awardMode'
>
<p>
奖励模式:{{ item.rewardTypeName }}
</p>
...
...
@@ -18,7 +32,7 @@
</div>
</div>
</div>
<div
class=
'copyLine'
id=
"copy"
v-on:click=
"copy(item.id)"
>
<div
class=
'copyLine'
id=
'copy'
v-on:click=
'copy(item.id)'
>
复制任务提醒链接
</div>
</div>
...
...
@@ -27,35 +41,34 @@
<
script
>
import
{
taskManagementApi
}
from
'@/api/taskManagement'
export
default
{
name
:
'TaskDetails'
,
props
:
{
taskDetails
:
{
type
:
Object
,
default
:
{}
type
:
Array
,
default
:
[]
}
},
data
()
{
return
{
}
return
{}
},
methods
:{
async
copy
(
id
)
{
await
taskManagementApi
.
getStaffMissionLink
({
missionId
:
id
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
&&
res
.
data
)
{
methods
:
{
async
copy
(
id
)
{
await
taskManagementApi
.
getStaffMissionLink
({
missionId
:
id
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
&&
res
.
data
)
{
var
input
=
document
.
createElement
(
'input'
)
input
.
value
=
res
.
data
;
input
.
value
=
res
.
data
document
.
body
.
appendChild
(
input
)
input
.
select
()
document
.
execCommand
(
'copy'
)
this
.
$message
.
success
(
'复制成功!'
)
document
.
body
.
removeChild
(
input
)
}
else
{
}
else
{
this
.
$message
.
error
(
'复制失败!'
)
}
})
}
,
}
}
}
</
script
>
...
...
src/views/task/analyseTask/index.vue
View file @
00f9d68
...
...
@@ -15,7 +15,7 @@
</el-select>
</el-form-item>
</el-form>
<TaskDetails
:taskDetails=
'taskDetails'
></TaskDetails>
<TaskDetails
v-if=
'hasTaskDetails'
:taskDetails=
'taskDetails'
></TaskDetails>
<TaskTable
ref=
'taskTable'
:taskTableSearchForm=
'searchForm'
></TaskTable>
<div
class=
'footer'
>
<el-button
@
click=
'backUp'
>
返回
</el-button>
...
...
@@ -40,6 +40,7 @@ export default {
data
()
{
return
{
hastaskInfo
:
false
,
hasTaskDetails
:
false
,
searchForm
:
{},
taskInfo
:
{},
taskSelect
:
[],
...
...
@@ -48,7 +49,7 @@ export default {
taskDetails
:
[]
}
},
mounted
()
{
mounted
()
{
this
.
$root
.
eventBus
.
$on
(
'params'
,
params
=>
{
let
taskId
=
params
.
taskId
this
.
primaryInfo
(
taskId
)
...
...
@@ -57,8 +58,8 @@ export default {
methods
:
{
primaryInfo
(
id
){
taskManagementApi
.
findMissionDeail
({
id
}).
then
(
res
=>
{
primaryInfo
(
id
)
{
taskManagementApi
.
findMissionDeail
({
id
}).
then
(
res
=>
{
let
copeWithRes
=
res
.
data
.
platformMerchantMissionDateResponseList
let
{
businessSceneName
,
merchantName
,
activityName
,
crowdName
,
channelName
}
=
res
.
data
this
.
taskInfo
=
{
businessSceneName
,
merchantName
,
activityName
,
crowdName
,
channelName
}
...
...
@@ -69,7 +70,7 @@ export default {
this
.
taskTime
.
missonTypeName
=
copeWithRes
[
0
].
platformMerchantMissionResponseList
[
0
].
missonTypeName
this
.
taskSelectItem
=
copeWithRes
[
0
].
platformMerchantMissionResponseList
this
.
changeactivityTask
(
this
.
taskTime
.
missonTypeName
)
})
})
},
changeactivityTime
(
val
)
{
this
.
taskSelectMap
.
forEach
(
item
=>
{
...
...
@@ -82,10 +83,12 @@ export default {
this
.
changeactivityTask
(
this
.
taskTime
.
missonTypeName
)
},
changeactivityTask
(
val
)
{
let
selectItem
=
this
.
taskSelectItem
.
filter
(
item
=>
{
let
selectItem
=
this
.
taskSelectItem
&&
this
.
taskSelectItem
.
filter
(
item
=>
{
return
item
.
missonTypeName
==
val
})
this
.
taskDetails
=
selectItem
this
.
hasTaskDetails
=
this
.
taskDetails
&&
this
.
taskDetails
.
length
?
'true'
:
'false'
let
id
=
selectItem
[
0
].
id
this
.
searchForm
=
{
missionId
:
id
}
this
.
$nextTick
(()
=>
{
...
...
src/views/task/observeTask/cpns/taskPlan.vue
View file @
00f9d68
<
template
>
<div
class=
'taskPlan'
>
<div
class=
'headline'
>
任务计划
</div>
<el-tabs
v-model=
'activeName'
type=
'card'
@
tab-click=
'handleClick'
>
<el-tabs
v-model=
'activeName'
type=
'card'
>
<el-tab-pane
v-for=
'(item,index) in taskPlanList'
:key=
'index'
:label=
'item.activityTime'
:name=
'item.activityTime'
>
<div
class=
'taskInfo'
v-for=
'(displayList,idx) in item.platformMerchantMissionResponseList'
:key=
'idx'
>
<p
class=
'taskType'
>
{{
displayList
.
missonTypeName
}}
</p>
...
...
@@ -29,7 +29,7 @@ export default {
}
},
created
()
{
this
.
activeName
=
this
.
taskPlanList
[
0
].
activityTime
this
.
activeName
=
this
.
taskPlanList
&&
this
.
taskPlanList
[
0
].
activityTime
}
}
</
script
>
...
...
src/views/task/observeTask/index.vue
View file @
00f9d68
...
...
@@ -36,8 +36,8 @@ export default {
'任务管理列表'
])
},
async
primaryInfo
(
id
)
{
await
taskManagementApi
.
findMissionDeail
(
id
).
then
(
res
=>
{
primaryInfo
(
id
)
{
taskManagementApi
.
findMissionDeail
({
id
}
).
then
(
res
=>
{
let
{
businessScene
,
merchantName
,
activityName
,
crowdName
,
channelName
,
remark
}
=
res
.
data
this
.
basicInfo
=
{
businessScene
,
merchantName
,
activityName
,
crowdName
,
channelName
,
remark
}
this
.
hasbasicInfo
=
Object
.
values
(
this
.
basicInfo
).
length
>
0
?
'true'
:
'false'
...
...
src/views/task/taskList/index.vue
View file @
00f9d68
...
...
@@ -58,6 +58,12 @@
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<div
slot=
"businessScene"
slot-scope=
"scope"
>
<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 == 2"
>
1.2次新车线上转化
</span>
<span
v-if=
"scope.scope.businessScene == 3"
>
1.3存量用户众筹
</span>
</div>
<div
slot=
"activityStatus"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.activityStatus == statusNum.UNPUBLISH"
>
未发布
</span
...
...
@@ -185,7 +191,8 @@ export default {
tableColumns
:
[
{
label
:
'业务场景'
,
prop
:
'businessSceneName'
,
prop
:
'businessScene'
,
addHtml
:
'businessScene'
,
width
:
150
,
},
{
...
...
@@ -271,7 +278,7 @@ export default {
[
'任务中心'
,
'任务平台'
,
'任务管理'
,
'任务模板管理'
,
'*添加任务模板'
],
para
)
//
this.$root.close('任务模板管理列表')
this
.
$root
.
close
(
'任务模板管理列表'
)
},
// 删除
handleDelete
(
scope
)
{
...
...
@@ -306,6 +313,7 @@ export default {
[
'任务中心'
,
'任务平台'
,
'任务管理'
,
'任务模板管理'
,
'*添加任务模板'
],
scope
)
this
.
$root
.
close
(
'任务模板管理列表'
)
},
// 跳转查看详情
handleViewDetail
(
scope
)
{
...
...
src/views/withdrawalManagement/withdrawalList/components/WithdrawalDialog.vue
View file @
00f9d68
...
...
@@ -35,6 +35,8 @@ export default {
}
else
{
this
.
$message
.
error
(
'审核失败'
)
}
}).
catch
(
err
=>
{
this
.
$message
.
error
(
'审核失败'
)
})
}
}
...
...
src/views/withdrawalManagement/withdrawalList/components/WithdrawalSearch.vue
View file @
00f9d68
...
...
@@ -78,7 +78,7 @@ export default {
this
.
$set
(
this
.
withdrawalSearchForm
,
'withdrawalTime'
,
[
this
.
defalutStartTime
,
this
.
defalutEndTime
])
},
mounted
()
{
this
.
handleSearch
()
this
.
handleSearch
()
},
methods
:
{
handleSearch
()
{
...
...
src/views/withdrawalManagement/withdrawalList/components/WithdrawalTable.vue
View file @
00f9d68
...
...
@@ -2,7 +2,6 @@
<d2-table
class=
'my-row-height'
ref=
'withdrawalTable'
:tableData=
'tableData'
:hasNum=
'true'
:tableParams=
'withdrawalTableParams'
:searchForm=
'searchForm'
...
...
src/views/withdrawalManagement/withdrawalList/index.vue
View file @
00f9d68
...
...
@@ -9,14 +9,14 @@
>
批量审核
</el-button
>
<!--
<el-button-->
<!-- size='small'-->
<!-- type='primary'-->
<!-- @click="handleDialog('transfer')"-->
<!-- >-->
<!-- 批量重新发起转账-->
<!--
</el-button-->
<!-- >-->
<!--
<el-button-->
<!-- size='small'-->
<!-- type='primary'-->
<!-- @click="handleDialog('transfer')"-->
<!-- >-->
<!-- 批量重新发起转账-->
<!--
</el-button-->
<!-- >-->
<el-button
size=
'small'
type=
'primary'
...
...
@@ -31,8 +31,8 @@
<p>
到账中:
{{
collectionCash
.
receivingAmount
}}
;
</p>
<p>
已到账:
{{
collectionCash
.
receivedAmount
}}
</p>
</div>
<WithdrawalTable
ref=
'
withdrawalT
able'
:searchForm=
'searchForm'
@
sendCollection=
'getCollection'
/>
<WithdrawalDialog
:textTooltip=
'textTooltip'
:auditId=
'auditId'
ref=
'dialogRef'
/>
<WithdrawalTable
ref=
'
t
able'
:searchForm=
'searchForm'
@
sendCollection=
'getCollection'
/>
<WithdrawalDialog
:textTooltip=
'textTooltip'
:auditId=
'auditId'
ref=
'dialogRef'
/>
</div>
</
template
>
<
script
>
...
...
@@ -55,11 +55,11 @@ export default {
searchForm
:
{},
choiceStatus
:
[],
auditId
:
[],
collectionCash
:{}
collectionCash
:
{}
}
},
methods
:
{
getCollection
(
val
){
getCollection
(
val
)
{
this
.
collectionCash
=
val
},
getSearchForm
(
val
)
{
...
...
@@ -68,30 +68,30 @@ export default {
params
.
withdrawalBeginTime
=
params
.
withdrawalTime
[
0
]
params
.
withdrawalEndTime
=
params
.
withdrawalTime
[
1
]
}
if
(
params
.
withdrawalTime
&&
params
.
withdrawalTime
.
length
)
delete
params
.
withdrawalTime
if
(
params
.
withdrawalTime
&&
params
.
withdrawalTime
.
length
)
delete
params
.
withdrawalTime
if
(
params
&&
params
.
reviewTime
)
{
params
.
reviewBeginTime
=
params
.
reviewTime
[
0
]
params
.
reviewEndTime
=
params
.
reviewTime
[
1
]
}
if
(
params
.
reviewTime
&&
params
.
reviewTime
.
length
)
delete
params
.
reviewTime
if
(
params
.
reviewTime
&&
params
.
reviewTime
.
length
)
delete
params
.
reviewTime
this
.
searchForm
=
params
this
.
$nextTick
(()
=>
{
this
.
$refs
.
withdrawalT
able
.
$refs
.
withdrawalTable
.
refreshTable
()
})
setTimeout
(()
=>
{
this
.
$refs
.
t
able
.
$refs
.
withdrawalTable
.
refreshTable
()
}
,
500
)
},
getSeletedData
()
{
this
.
choiceStatus
=
this
.
$refs
.
withdrawalT
able
.
$children
[
0
].
mutiSelectArr
.
list
&&
this
.
$refs
.
withdrawalT
able
.
$children
[
0
].
mutiSelectArr
.
list
.
map
(
item
=>
{
let
{
status
,
id
,...
params
}
=
item
return
{
status
,
id
}
})
this
.
choiceStatus
=
this
.
$refs
.
t
able
.
$children
[
0
].
mutiSelectArr
.
list
&&
this
.
$refs
.
t
able
.
$children
[
0
].
mutiSelectArr
.
list
.
map
(
item
=>
{
let
{
status
,
id
,
...
params
}
=
item
return
{
status
,
id
}
})
},
handleOutput
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
let
pageConfig
=
{
pageSize
:
9999
,
pageNum
:
1
pageSize
:
9999
,
pageNum
:
1
}
withdrawalApi
.
exportList
({
...
params
,...
pageConfig
}).
then
(
res
=>
{
withdrawalApi
.
exportList
({
...
params
,
...
pageConfig
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
$Utils
.
exportFn
(
res
.
data
)
}
else
{
...
...
@@ -105,13 +105,13 @@ export default {
vertify
(
selectType
,
status
)
{
this
.
getSeletedData
()
let
errMsg
=
selectType
==
'check'
?
'请选择待审核的提现记录!'
:
'请选择到账失败的提现记录'
if
((
selectType
&&
(
this
.
choiceStatus
&&
!
this
.
choiceStatus
.
length
)
)
||
!
(
selectType
&&
(
this
.
choiceStatus
&&
this
.
choiceStatus
.
every
(
item
=>
item
.
status
==
status
))))
{
if
((
selectType
&&
(
this
.
choiceStatus
&&
!
this
.
choiceStatus
.
length
)
)
||
!
(
selectType
&&
(
this
.
choiceStatus
&&
this
.
choiceStatus
.
every
(
item
=>
item
.
status
==
status
))))
{
this
.
$message
({
type
:
'error'
,
message
:
errMsg
})
return
false
}
else
{
}
else
{
return
true
}
},
...
...
@@ -124,10 +124,10 @@ export default {
vertifycheck
=
this
.
vertify
(
'transfer'
,
'4'
)
}
if
(
vertifycheck
)
{
this
.
auditId
=
this
.
choiceStatus
.
map
(
item
=>
item
.
id
)
this
.
auditId
=
this
.
choiceStatus
.
map
(
item
=>
item
.
id
)
const
checkText
=
`<p>审核通过, 系统将自动转账至员工的微信零钱中</p><p>是否确定审核?</p>`
const
transferText
=
`<p>手动发起转账,系统将重新发起转账至员工的微信零钱中</p><p>是否确定发起?</p>`
this
.
textTooltip
=
type
==
'check'
?
checkText
:
transferText
this
.
textTooltip
=
type
==
'check'
?
checkText
:
transferText
this
.
$refs
.
dialogRef
.
dialogVisible
=
true
}
}
...
...
@@ -153,10 +153,12 @@ export default {
.btnOptons
{
margin-bottom
:
10px
;
}
.account
{
.account
{
display
:
flex
;
}
.account
>
p
{
.account
>
p
{
margin-right
:
10px
;
}
...
...
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