Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 b7e3f4de
authored
Dec 24, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交群发
1 parent
f7c597c1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
37 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/selectEmp.vue
src/views/customerTransform/components/selectMembers.vue
src/views/customerTransform/addCustomer.vue
View file @
b7e3f4d
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
style=
"width: 320px;"
style=
"width: 320px;"
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标签筛选"
>
<
!--
<
el-form-item
label=
"标签筛选"
>
<el-button
size=
"small"
@
click=
"openLabel"
>
<el-button
size=
"small"
@
click=
"openLabel"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
标签筛选
标签筛选
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
<el-input
size=
"small"
style=
"outline: none; border: none"
></el-input>
<el-input
size=
"small"
style=
"outline: none; border: none"
></el-input>
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
-->
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
@@ -345,7 +345,21 @@ export default {
...
@@ -345,7 +345,21 @@ export default {
},
},
timeOptions
:
{
timeOptions
:
{
selectableRange
:
'00:00:00 - 23:59:59'
selectableRange
:
'00:00:00 - 23:59:59'
}
},
editStatus
:
false
,
firstFlag
:
true
}
},
watch
:
{
basicForm
:
{
handler
(
val
)
{
if
(
this
.
firstFlag
)
{
this
.
firstFlag
=
false
}
else
{
this
.
editStatus
=
true
}
},
deep
:
true
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -359,8 +373,19 @@ export default {
...
@@ -359,8 +373,19 @@ export default {
this
.
membersVisible
=
!
this
.
membersVisible
this
.
membersVisible
=
!
this
.
membersVisible
},
},
handleCancel
()
{
handleCancel
()
{
this
.
$router
.
push
(
'/customerTransform/index'
)
if
(
this
.
editStatus
||
this
.
$refs
.
welcome
.
previewList
.
length
>
0
)
{
// this.$router.go(-1)
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$router
.
push
(
'/customerTransform/index'
)
})
.
catch
(()
=>
{})
}
else
{
this
.
$router
.
push
(
'/customerTransform/index'
)
}
},
},
// 成员弹窗
// 成员弹窗
handleConfirm
()
{
handleConfirm
()
{
...
@@ -368,6 +393,7 @@ export default {
...
@@ -368,6 +393,7 @@ export default {
this
.
basicForm
.
userList
=
this
.
$refs
.
membersForm
.
innerTags
this
.
basicForm
.
userList
=
this
.
$refs
.
membersForm
.
innerTags
this
.
openMembers
()
this
.
openMembers
()
this
.
isUpdate
=
true
this
.
isUpdate
=
true
this
.
editStatus
=
true
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
b7e3f4d
...
@@ -242,7 +242,16 @@ export default {
...
@@ -242,7 +242,16 @@ export default {
selectableRange
:
'00:00:00 - 23:59:59'
selectableRange
:
'00:00:00 - 23:59:59'
},
},
footerLeft
:
0
,
footerLeft
:
0
,
footerWidth
:
0
footerWidth
:
0
,
editStatus
:
false
}
},
watch
:
{
basicForm
:
{
handler
(
val
)
{
this
.
editStatus
=
true
},
deep
:
true
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -257,7 +266,19 @@ export default {
...
@@ -257,7 +266,19 @@ export default {
},
},
handleCancel
()
{
handleCancel
()
{
// this.$router.go(-1)
// this.$router.go(-1)
this
.
$router
.
push
(
'/customerTransform/index'
)
if
(
this
.
editStatus
||
this
.
$refs
.
welcome
.
previewList
.
length
>
0
)
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$router
.
push
(
'/customerTransform/index'
)
})
.
catch
(()
=>
{})
}
else
{
this
.
$router
.
push
(
'/customerTransform/index'
)
}
},
},
// 成员弹窗
// 成员弹窗
handleConfirm
()
{
handleConfirm
()
{
...
...
src/views/customerTransform/components/selectEmp.vue
View file @
b7e3f4d
...
@@ -82,10 +82,11 @@ export default {
...
@@ -82,10 +82,11 @@ export default {
if
(
this
.
islord
)
{
if
(
this
.
islord
)
{
params
.
islord
=
this
.
islord
params
.
islord
=
this
.
islord
}
}
params
.
isHavCustomer
=
true
this
.
$apis
.
customerTransform
.
listDepartmentTree
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
listDepartmentTree
(
params
).
then
(
res
=>
{
this
.
listTree
=
res
this
.
listTree
=
res
this
.
loading
=
false
this
.
loading
=
false
//
this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
this
.
listTree
[
0
].
entmicroStaffResponses
=
this
.
getEmployee
(
this
.
listTree
)
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
this
.
listTree
[
0
].
entmicroStaffResponses
)
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
this
.
listTree
[
0
].
entmicroStaffResponses
)
this
.
selectData
.
forEach
(
i
=>
{
this
.
selectData
.
forEach
(
i
=>
{
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
id
==
i
.
staffId
)
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
id
==
i
.
staffId
)
...
@@ -106,7 +107,7 @@ export default {
...
@@ -106,7 +107,7 @@ export default {
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
this
.
departmentId
=
data
.
id
this
.
departmentId
=
data
.
id
this
.
tableEmpData
=
data
.
entmicroStaffResponses
this
.
tableEmpData
=
data
.
entmicroStaffResponses
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
data
.
entmicroStaffResponses
)
//
this.currentArr = this.$common.utils.deepClone(data.entmicroStaffResponses)
// this.listEntmicroStaff()
// this.listEntmicroStaff()
},
},
getEmployee
(
d
,
arr
=
[])
{
getEmployee
(
d
,
arr
=
[])
{
...
@@ -131,7 +132,6 @@ export default {
...
@@ -131,7 +132,6 @@ export default {
}
}
})
})
}
}
this
.
tableEmpData
=
arr
this
.
tableEmpData
=
arr
}
}
// listEntmicroStaff(staffName) {
// listEntmicroStaff(staffName) {
...
...
src/views/customerTransform/components/selectMembers.vue
View file @
b7e3f4d
...
@@ -6,10 +6,9 @@
...
@@ -6,10 +6,9 @@
<div
class=
"el-input-tag input-tag-wrapper"
@
click=
"foucusTagInput"
>
<div
class=
"el-input-tag input-tag-wrapper"
@
click=
"foucusTagInput"
>
<div
class=
"tag-box"
>
<div
class=
"tag-box"
>
<el-tag
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in innerTags"
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
:key=
"idx"
type=
"info"
closable
closable
:disable-transitions=
"false"
:disable-transitions=
"false"
@
close=
"remove(tag)"
@
close=
"remove(tag)"
...
@@ -17,15 +16,7 @@
...
@@ -17,15 +16,7 @@
<i
class=
"el-icon-user-solid"
></i>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
.
staffName
}}
{{
tag
.
staffName
}}
</el-tag>
</el-tag>
<!--
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag)"
>
{{
tag
.
staffName
}}
</el-tag>
-->
</div>
</div>
<el-input
<el-input
size=
"small"
size=
"small"
v-model
.
trim=
"newTag"
v-model
.
trim=
"newTag"
...
@@ -170,15 +161,10 @@ export default {
...
@@ -170,15 +161,10 @@ export default {
}
}
}
}
.tag-box
{
.tag-box
{
max-height
:
6
0
px
;
max-height
:
6
6
px
;
overflow
:
auto
;
overflow
:
auto
;
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
}
}
.input-tag-wrapper
{
.input-tag-wrapper
{
//
max-height
:
68px
;
//
overflow
:
auto
;
position
:
relative
;
position
:
relative
;
font-size
:
14px
;
font-size
:
14px
;
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -186,17 +172,21 @@ export default {
...
@@ -186,17 +172,21 @@ export default {
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
solid
#dcdfe6
;
border
:
1px
solid
#dcdfe6
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
color
:
#666
;
color
:
#6
062
66
;
display
:
inline-block
;
display
:
inline-block
;
outline
:
none
;
outline
:
none
;
padding
:
5px
5px
0px
5px
;
padding
:
0
0
0
5px
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
line-height
:
32px
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
450px
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
6px
;
i
{
font-size
:
14px
;
color
:
#75acff
;
margin-right
:
3px
;
font-size
:
14px
;
}
/
deep
/
input
{
/
deep
/
input
{
/* input { */
/* input { */
/* background-color: red!important; 调试用的样式 */
/* background-color: red!important; 调试用的样式 */
...
@@ -208,17 +198,11 @@ export default {
...
@@ -208,17 +198,11 @@ export default {
width
:
auto
;
width
:
auto
;
flex
:
1
;
flex
:
1
;
}
}
i
{
color
:
#75acff
;
margin-right
:
3px
;
font-size
:
14px
;
}
}
}
.el-tag
{
.el-tag
{
margin-right
:
4px
;
margin-right
:
4px
;
height
:
26px
;
height
:
26px
;
line-height
:
24px
;
line-height
:
24px
;
margin-bottom
:
5px
;
}
}
.tag-input
{
.tag-input
{
background
:
transparent
;
background
:
transparent
;
...
@@ -241,4 +225,15 @@ export default {
...
@@ -241,4 +225,15 @@ export default {
height
:
32px
;
height
:
32px
;
line-height
:
32px
;
line-height
:
32px
;
}
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0.3
);
}
</
style
>
</
style
>
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