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 523c7dc5
authored
Oct 20, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商户调整
1 parent
33fb1f12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
21 deletions
src/api/task.js
src/views/task/addTask/index.vue
src/api/task.js
View file @
523c7dc
...
@@ -16,13 +16,8 @@ const taskApi = {
...
@@ -16,13 +16,8 @@ const taskApi = {
},
},
// 通过业务场景获取商户
// 通过业务场景获取商户
findMerchantByScene
(
data
)
{
findMerchantByScene
(
data
)
{
data
.
method
=
'scrm.api.busassistant.merchant.byscene'
data
.
method
=
'merchants.api.open.findMerchantNoListByMerAccTypeId'
return
request
(
return
request
(
data
,
'post'
)
data
,
'scrm.api.busassistant.merchant.byscene'
,
[],
Vue
.
prototype
.
businessURL
)
},
},
// 获取所有未结束活动
// 获取所有未结束活动
getActivityBypage
(
data
)
{
getActivityBypage
(
data
)
{
...
...
src/views/task/addTask/index.vue
View file @
523c7dc
...
@@ -212,16 +212,19 @@
...
@@ -212,16 +212,19 @@
:rules=
"taskFormRules.repeatCount"
:rules=
"taskFormRules.repeatCount"
>
>
<el-input
<el-input
v-model=
"itm.repeatCount"
:disabled=
"itm.repeatFlag"
v-model
.
trim=
"itm.repeatCount"
@
blur=
"handleBlur(itm)"
oninput=
"value=value.replace(/^(0+)|[^\d]+/g,'')"
oninput=
"value=value.replace(/^(0+)|[^\d]+/g,'')"
size=
"small"
size=
"small"
:disabled=
"repeatChecked"
></el-input>
></el-input>
<el-checkbox
<el-checkbox
:disabled=
"
itm.repeatCount != '' && itm.repeatCount != -1
"
style=
"margin-left: 8px"
style=
"margin-left: 8px"
v-model=
"repeatChecked"
v-model=
"itm.repeatFlag"
:disabled=
"itm.repeatCount.length"
@
change=
"repeatChange(itm, itm.repeatFlag)"
@
change=
"repeatChange(item, index, itm, index1)"
>
不限制
</el-checkbox
>
不限制
</el-checkbox
>
>
</el-form-item>
</el-form-item>
...
@@ -472,6 +475,7 @@ export default {
...
@@ -472,6 +475,7 @@ export default {
if
(
this
.
isClone
||
this
.
isEditor
)
this
.
selectMerchant
()
if
(
this
.
isClone
||
this
.
isEditor
)
this
.
selectMerchant
()
})
})
},
},
computed
:
{},
methods
:
{
methods
:
{
// 点击选择活动/任务
// 点击选择活动/任务
openActivityDia
()
{
openActivityDia
()
{
...
@@ -507,10 +511,11 @@ export default {
...
@@ -507,10 +511,11 @@ export default {
return
return
}
}
let
params
=
{}
let
params
=
{}
params
.
sceneCode
=
'SC004'
params
.
merchantAccountType
=
4
params
.
merchantName
=
query
params
.
merchantName
=
query
taskApi
.
findMerchantByScene
(
params
).
then
((
res
)
=>
{
taskApi
.
findMerchantByScene
(
params
).
then
((
res
)
=>
{
this
.
merchantList
=
res
.
data
.
data
console
.
log
(
res
)
this
.
merchantList
=
res
.
data
})
})
},
},
// 商户改变获取商户名
// 商户改变获取商户名
...
@@ -697,15 +702,59 @@ export default {
...
@@ -697,15 +702,59 @@ export default {
// taskIndex -- 具体任务索引
// taskIndex -- 具体任务索引
this
.
taskList
[
dateTaskIndex
].
missionList
.
splice
(
taskIndex
,
1
)
this
.
taskList
[
dateTaskIndex
].
missionList
.
splice
(
taskIndex
,
1
)
},
},
handleBlur
(
dateTask
)
{
console
.
log
(
dateTask
.
repeatCount
)
if
(
dateTask
.
repeatCount
)
{
dateTask
.
repeatFlag
=
false
}
},
// 重复次数选择框改变
// 重复次数选择框改变
repeatChange
(
dateTask
,
dateTaskIndex
,
task
,
taskIndex
)
{
repeatChange
(
dateTask
,
type
)
{
// dateTask -- 具体哪一天的任务对象
console
.
log
(
dateTask
,
type
)
// dateTaskIndex -- 具体哪一天的任务对象索引
// dateTask.repeatFlag = !dateTask.repeatFlag
// task -- 具体哪个任务
// this.$nextTick(() => {
// taskIndex -- 具体任务索引
if
(
type
)
{
if
(
this
.
repeatChange
)
{
dateTask
.
repeatCount
=
-
1
this
.
taskList
[
dateTaskIndex
].
missionList
[
taskIndex
].
repeatCount
=
-
1
}
else
{
// this.$nextTick(() => {
// dateTask.repeatCount = ''
// dateTask.repeatFlag = false
// })
console
.
log
(
111
)
this
.
$nextTick
(()
=>
{
dateTask
.
repeatCount
=
''
this
.
$set
(
dateTask
,
'repeatFlag'
,
false
)
})
}
}
console
.
log
(
dateTask
)
// })
// console.log(task, task.repeatCount)
// console.log(task.repeatCount == '-1')
// // dateTask -- 具体哪一天的任务对象
// // dateTaskIndex -- 具体哪一天的任务对象索引
// // task -- 具体哪个任务
// // taskIndex -- 具体任务索引
// if (task.repeatCount) {
// // this.taskList[dateTaskIndex].missionList[taskIndex].repeatCount = ''
// console.log(111)
// this.$set(
// this.taskList[dateTaskIndex].missionList[taskIndex],
// 'repeatCount',
// ''
// )
// } else {
// // this.taskList[dateTaskIndex].missionList[taskIndex].repeatCount = -1
// this.$set(
// this.taskList[dateTaskIndex].missionList[taskIndex],
// 'repeatCount',
// -1
// )
// }
// console.log(
// this.taskList[dateTaskIndex].missionList[taskIndex].repeatCount
// )
},
},
// 获取任务信息详情
// 获取任务信息详情
findMissionDeail
(
taskId
)
{
findMissionDeail
(
taskId
)
{
...
@@ -741,6 +790,10 @@ export default {
...
@@ -741,6 +790,10 @@ export default {
if
(
!
itm
.
missionMaterialList
)
{
if
(
!
itm
.
missionMaterialList
)
{
delete
itm
.
missionMaterialList
delete
itm
.
missionMaterialList
}
}
if
(
itm
.
repeatCount
&&
itm
.
repeatCount
==
-
1
)
{
this
.
$set
(
itm
,
'repeatFlag'
,
true
)
itm
.
repeatCount
=
''
}
})
})
})
})
// this.taskList = res.data.missionDateList
// this.taskList = res.data.missionDateList
...
...
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