Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 ceb19374
authored
Mar 01, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新客自动拉群
1 parent
41b1c321
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
37 deletions
linkwe-ui/src/api/communityOperating/newCustomer.js
linkwe-ui/src/components/SelectQrCode.vue
linkwe-ui/src/views/communityOperating/newCustomer/aev.vue
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
linkwe-ui/src/api/communityOperating/newCustomer.js
View file @
ceb1937
...
@@ -116,3 +116,27 @@ export function remove(ids) {
...
@@ -116,3 +116,27 @@ export function remove(ids) {
method
:
'DELETE'
,
method
:
'DELETE'
,
})
})
}
}
/**
* 批量下载
* @param {*} 员工活码ids,多个逗号隔开
*/
export
function
downloadBatch
(
ids
)
{
return
request
({
url
:
service
+
'/downloadBatch'
,
params
:
{
ids
,
},
responseType
:
'blob'
,
})
}
export
function
download
(
id
)
{
return
request
({
url
:
service
+
'/download'
,
params
:
{
id
,
},
responseType
:
'blob'
,
})
}
linkwe-ui/src/components/SelectQrCode.vue
View file @
ceb1937
...
@@ -44,14 +44,6 @@ export default {
...
@@ -44,14 +44,6 @@ export default {
this
.
$emit
(
'update:visible'
,
val
)
this
.
$emit
(
'update:visible'
,
val
)
},
},
},
},
Ptype
:
{
get
()
{
return
this
.
type
},
set
(
val
)
{
this
.
$emit
(
'update:type'
,
val
)
},
},
},
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
...
@@ -167,12 +159,7 @@ export default {
...
@@ -167,12 +159,7 @@ export default {
<el-table-column
label=
"实际群码总数"
align=
"center"
>
<el-table-column
label=
"实际群码总数"
align=
"center"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<el-button
{{
(
row
.
actualList
&&
row
.
actualList
.
length
)
||
0
}}
type=
"text"
@
click=
"handleRealCodeDialogOpen(row.id, -1)"
>
{{
(
row
.
actualList
&&
row
.
actualList
.
length
)
||
0
}}
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -192,9 +179,7 @@ export default {
...
@@ -192,9 +179,7 @@ export default {
<i
slot=
"reference"
class=
"el-icon-warning expire-icon"
></i>
<i
slot=
"reference"
class=
"el-icon-warning expire-icon"
></i>
</el-popover>
</el-popover>
<el-button
type=
"text"
@
click=
"handleRealCodeDialogOpen(row.id, 0)"
>
{{
row
.
availableCodes
}}
{{
row
.
availableCodes
}}
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
linkwe-ui/src/views/communityOperating/newCustomer/aev.vue
View file @
ceb1937
<
script
>
<
script
>
import
{
getDetail
,
add
,
update
,
getQrcode
}
from
'@/api/drainageCode/staff
'
import
{
getDetail
,
add
,
update
}
from
'@/api/communityOperating/newCustomer
'
import
{
getList
}
from
'@/api/drainageCode/welcome'
//
import { getList } from '@/api/drainageCode/welcome'
import
PhoneDialog
from
'@/components/PhoneDialog'
import
PhoneDialog
from
'@/components/PhoneDialog'
import
SelectUser
from
'@/components/SelectUser'
import
SelectUser
from
'@/components/SelectUser'
import
SelectTag
from
'@/components/SelectTag'
import
SelectTag
from
'@/components/SelectTag'
...
@@ -76,21 +76,15 @@ export default {
...
@@ -76,21 +76,15 @@ export default {
},
},
// 选择人员变化事件
// 选择人员变化事件
selectedUser
(
users
)
{
selectedUser
(
users
)
{
let
params
=
{
userIds
:
[],
departmentIds
:
[]
}
// debugger
this
.
form
.
weEmpleCodeUseScops
=
users
.
map
((
d
)
=>
{
this
.
form
.
weEmpleCodeUseScops
=
users
.
map
((
d
)
=>
{
d
.
userId
&&
params
.
userIds
.
push
(
d
.
userId
)
d
.
id
&&
params
.
departmentIds
.
push
(
d
.
id
)
return
{
return
{
businessId
:
d
.
id
||
d
.
userId
,
businessId
:
d
.
id
||
d
.
userId
,
businessName
:
d
.
name
,
businessName
:
d
.
name
,
businessIdType
:
d
.
userId
?
2
:
1
,
businessIdType
:
d
.
userId
?
2
:
1
,
mobile
:
d
.
mobile
,
}
}
})
})
params
.
userIds
+=
''
params
.
departmentIds
+=
''
getQrcode
(
params
).
then
(({
data
})
=>
{
this
.
$set
(
this
.
form
,
'qrCode'
,
data
.
qr_code
)
})
},
},
submitSelectTag
(
data
)
{
submitSelectTag
(
data
)
{
this
.
form
.
weEmpleCodeTags
=
data
.
map
((
d
)
=>
({
this
.
form
.
weEmpleCodeTags
=
data
.
map
((
d
)
=>
({
...
@@ -99,10 +93,8 @@ export default {
...
@@ -99,10 +93,8 @@ export default {
}))
}))
},
},
// 选择二维码确认按钮
// 选择二维码确认按钮
submitSelectQrCode
(
text
,
image
,
file
)
{
submitSelectQrCode
(
data
)
{
this
.
form
.
mediaId
=
image
.
id
this
.
form
.
qrCode
=
data
.
codeUrl
this
.
materialSelected
=
image
.
materialUrl
this
.
dialogVisibleSelectQrCode
=
false
},
},
removeMaterial
()
{
removeMaterial
()
{
this
.
form
.
mediaId
=
''
this
.
form
.
mediaId
=
''
...
...
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
View file @
ceb1937
<
script
>
<
script
>
import
{
getList
,
remove
}
from
'@/api/communityOperating/newCustomer'
import
{
getList
,
remove
,
download
,
downloadBatch
,
}
from
'@/api/communityOperating/newCustomer'
export
default
{
export
default
{
components
:
{},
components
:
{},
...
@@ -9,7 +14,7 @@ export default {
...
@@ -9,7 +14,7 @@ export default {
query
:
{
query
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
activityScen
e
:
''
,
empleCodeNam
e
:
''
,
createBy
:
''
,
createBy
:
''
,
beginTime
:
''
,
// "开始时间",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
endTime
:
''
,
// "结束时间"
...
@@ -91,8 +96,8 @@ export default {
...
@@ -91,8 +96,8 @@ export default {
})
})
.
catch
(
function
()
{})
.
catch
(
function
()
{})
},
},
download
(
id
,
userName
,
activityScen
e
)
{
download
(
id
,
userName
,
empleCodeNam
e
)
{
let
name
=
userName
+
'-'
+
activityScen
e
+
'.png'
let
name
=
userName
+
'-'
+
empleCodeNam
e
+
'.png'
download
(
id
).
then
((
res
)
=>
{
download
(
id
).
then
((
res
)
=>
{
if
(
res
!=
null
)
{
if
(
res
!=
null
)
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
...
@@ -143,8 +148,8 @@ export default {
...
@@ -143,8 +148,8 @@ export default {
class=
"top-search"
class=
"top-search"
size=
"small"
size=
"small"
>
>
<el-form-item
label=
"活码名称"
prop=
"name"
>
<el-form-item
label=
"活码名称"
>
<el-input
v-model=
"query.
n
ame"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"query.
empleCodeN
ame"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"创建人"
>
<el-form-item
label=
"创建人"
>
<el-input
v-model=
"query.createBy"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"query.createBy"
placeholder=
"请输入"
></el-input>
...
...
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