Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 8a6c2391
authored
Mar 17, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop编辑
1 parent
1f72cf51
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
src/api/modules/sop.js
src/views/sop/editSop/baseInfo.vue
src/api/modules/sop.js
View file @
8a6c239
...
@@ -102,8 +102,20 @@ const endSopEventApi = params => {
...
@@ -102,8 +102,20 @@ const endSopEventApi = params => {
}
}
// 事件进行中,修改sop事件列表
// 事件进行中,修改sop事件列表
const
insertOrUpdateSopEventApi
=
params
=>
{
// const insertOrUpdateSopEventApi = params => {
params
.
method
=
'scrm.api.sop.sopEvent.insertOrUpdate'
// params.method = 'scrm.api.sop.sopEvent.insertOrUpdate'
// return http({
// url: 'rop-scrm-sop/router',
// method: 'POST',
// data: params,
// sign: true,
// returnAll: true
// })
// }
// 事件进行中,批量编辑sop
const
batchEditSopEventApi
=
params
=>
{
params
.
method
=
'scrm.api.sop.sopEvent.batchEdit'
return
http
({
return
http
({
url
:
'rop-scrm-sop/router'
,
url
:
'rop-scrm-sop/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -135,4 +147,4 @@ const getSopInfoDetailApi = params => {
...
@@ -135,4 +147,4 @@ const getSopInfoDetailApi = params => {
})
})
}
}
export
default
{
getCustomerByTagListApi
,
getSopInfoListApi
,
getSopBaseInfoApi
,
getEventListApi
,
getSopCustomerStatisticsListApi
,
getSopStaffTaskListApi
,
parseEventCountApi
,
deleteSopEventApi
,
endSopEventApi
,
insertOrUpdate
SopEventApi
,
insertOrUpdateSopApi
,
getSopInfoDetailApi
}
export
default
{
getCustomerByTagListApi
,
getSopInfoListApi
,
getSopBaseInfoApi
,
getEventListApi
,
getSopCustomerStatisticsListApi
,
getSopStaffTaskListApi
,
parseEventCountApi
,
deleteSopEventApi
,
endSopEventApi
,
batchEdit
SopEventApi
,
insertOrUpdateSopApi
,
getSopInfoDetailApi
}
src/views/sop/editSop/baseInfo.vue
View file @
8a6c239
...
@@ -83,6 +83,7 @@ export default {
...
@@ -83,6 +83,7 @@ export default {
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
editStatus
:
false
,
editStatus
:
false
,
editDisabled
:
false
,
editDisabled
:
false
,
deleteIdList
:
[],
labelWidth
:
'144px'
,
labelWidth
:
'144px'
,
condLimitObj
:
{
condLimitObj
:
{
// 1-有;0-无
// 1-有;0-无
...
@@ -262,6 +263,8 @@ export default {
...
@@ -262,6 +263,8 @@ export default {
type
:
'warning'
,
type
:
'warning'
,
callback
:
action
=>
{
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
let
obj
=
this
.
editForm
.
eventList
[
idx
]
obj
.
id
&&
this
.
deleteIdList
.
push
(
obj
.
id
)
this
.
editForm
.
eventList
.
splice
(
idx
,
1
)
this
.
editForm
.
eventList
.
splice
(
idx
,
1
)
}
}
}
}
...
@@ -326,8 +329,13 @@ export default {
...
@@ -326,8 +329,13 @@ export default {
console
.
log
(
params
)
console
.
log
(
params
)
// var apiName = this.editDisabled ? 'insertOrUpdateSopEventApi' : 'insertOrUpdateSopApi'
// var apiName = this.editDisabled ? 'insertOrUpdateSopEventApi' : 'insertOrUpdateSopApi'
if
(
this
.
editDisabled
)
{
if
(
this
.
editDisabled
)
{
// 事件进行时
var
batchEditParams
=
{
this
.
$apis
.
sop
.
insertOrUpdateSopEventApi
(
params
).
then
(
res
=>
{
sopId
:
params
.
id
,
deleteIdList
:
this
.
deleteIdList
,
editList
:
params
.
eventList
}
// 事件进行时,批量编辑sop事件
this
.
$apis
.
sop
.
batchEditSopEventApi
(
batchEditParams
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
...
@@ -337,7 +345,7 @@ export default {
...
@@ -337,7 +345,7 @@ export default {
}
}
})
})
}
else
{
}
else
{
// 新增
/
事件未开始,调这里
// 新增
事件或者
事件未开始,调这里
this
.
$apis
.
sop
.
insertOrUpdateSopApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
sop
.
insertOrUpdateSopApi
(
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
...
...
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