Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
华国豪
CRM
Commits
ea7dbc4c
Commit
ea7dbc4c
authored
May 19, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e403d6d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
167 additions
and
0 deletions
+167
-0
ManageConfiguration.vue
src/components/customerManage/ManageConfiguration.vue
+167
-0
No files found.
src/components/customerManage/ManageConfiguration.vue
0 → 100644
View file @
ea7dbc4c
<
style
scoped
>
.distributionRules
{}
.distributionRules_title
{
font-weight
:
bold
;
font-size
:
18px
;
font-family
:
perfectFont
;
padding
:
20px
0
;
}
.page-content
{
background-color
:
#fff
;
padding
:
20px
;
}
.distributionRules_text
{
padding
:
0
0
20px
0
;
}
.text-negative
{
color
:
#f5576c
}
.distributionRules_num
{
display
:
flex
;
justify-content
:
space-between
;
}
.distributionRules_num
div
{
flex
:
1
;
}
.dataText
{
display
:
flex
;
flex-wrap
:
wrap
;
padding
:
10px
0
;
}
.dataText_text
{
margin-right
:
10px
;
margin-bottom
:
10px
;
}
.select-radio
{
display
:
flex
;
align-items
:
center
;
}
/
deep
/
.el-radio-group
{
margin-bottom
:
0
!important
;
}
</
style
>
<
template
>
<div
class=
"customerManage"
>
<h1
class=
"distributionRules_title"
>
分配给以下部门/成员
</h1>
<div
class=
"page-content"
>
<div
class=
"distributionRules_text"
>
<span>
使用部门/成员
</span>
<span
class=
"text-negative"
>
*
</span>
</div>
<div
class=
"distributionRules_num"
>
<div>
<el-button
@
click=
"clickSelectPeople"
>
选择部门/成员
</el-button>
</div>
<div><span>
已选择:
{{
list
.
length
}}
人
</span></div>
</div>
<div
class=
"dataText"
>
<el-tag
v-for=
"(item,index) in list"
:key=
"index"
class=
"dataText_text"
>
{{
item
.
EmName
}}
</el-tag>
</div>
<h1
class=
"distributionRules_title"
>
设置分配规则
</h1>
<div
class=
"select-radio"
>
<span>
选择设置分配:
</span>
<el-radio-group
v-model=
"msg.SNO"
>
<el-radio
v-for=
"(item,index) in radioList"
:key=
"index"
:label=
"item.id"
>
{{
item
.
name
}}
</el-radio>
</el-radio-group>
</div>
<br
/><br
/>
<el-button
class=
"add-box-btn add-box-cancel"
@
click=
"saveNow"
:disabled=
"disabledOff"
>
立即保存
</el-button>
</div>
<!-- 添加账号弹窗 -->
<div
v-if=
"addDistributionRulesShow"
>
<addDistributionRules
:obj=
"newObj"
@
addCustomerOk=
"addCustomerOk"
/>
</div>
</div>
</
template
>
<
script
>
import
addDistributionRules
from
"../dialogModel/addDistributionRules"
;
export
default
{
components
:
{
addDistributionRules
},
data
()
{
return
{
disabledOff
:
false
,
newObj
:
{},
radioList
:
[{
name
:
'顺序分配'
,
id
:
1
},
{
name
:
'随机分配'
,
id
:
2
},
],
list
:
[],
addDistributionRulesShow
:
false
,
loading
:
false
,
tableData
:
[],
msg
:
{
SNO
:
0
,
Content
:
''
}
};
},
mounted
()
{
this
.
GetCustomerAllotRule
()
let
$this
=
this
this
.
MsgBus
.
$on
(
'closeaaddDistributionRules'
,
function
()
{
$this
.
addDistributionRulesShow
=
false
})
},
beforeDestroy
()
{
this
.
MsgBus
.
$off
(
'sceneSave'
);
this
.
MsgBus
.
$off
(
'editScene'
);
},
methods
:
{
saveNow
()
{
return
let
ids
=
[]
this
.
list
.
forEach
(
item
=>
{
ids
.
push
(
item
.
EmployeeId
)
})
this
.
msg
.
Content
=
ids
.
join
(
','
)
this
.
disabledOff
=
true
this
.
apipost
(
'/api/Customer/SetCustomerAllotRule'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
disabledOff
=
false
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
disabledOff
=
false
}
})
},
addCustomerOk
()
{
this
.
addDistributionRulesShow
=
false
},
clickSelectPeople
()
{
this
.
addDistributionRulesShow
=
true
},
// 获取规则详情
GetCustomerAllotRule
()
{
this
.
apipost
(
'/api/Customer/GetCustomerAllotRule'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
=
{
SNO
:
res
.
data
.
data
.
SNO
,
Content
:
res
.
data
.
data
.
Content
};
this
.
list
=
res
.
data
.
data
.
EmpList
this
.
newObj
=
res
.
data
.
data
}
})
},
}
};
</
script
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment