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
bc533da4
Commit
bc533da4
authored
May 19, 2022
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huaguohao/crm
parents
6bfd325d
7e43fc76
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
210 additions
and
99 deletions
+210
-99
Home.vue
src/components/Home.vue
+15
-95
clueComponent.vue
src/components/clueManagement/clueComponent.vue
+7
-1
ManageConfiguration.vue
src/components/customerManage/ManageConfiguration.vue
+167
-0
customerConfiguration.vue
src/components/customerManage/customerConfiguration.vue
+10
-2
distributionRules.vue
src/components/customerManage/distributionRules.vue
+3
-0
orderList.vue
src/components/customerManage/orderList.vue
+1
-0
guestManagement.vue
src/components/guestManagement/guestManagement.vue
+7
-1
No files found.
src/components/Home.vue
View file @
bc533da4
...
...
@@ -355,7 +355,6 @@
</el-row>
</div>
<div
style=
"width:100%;height:100%;"
>
<!--
<sjld
:MYdata=
"[]"
/>
-->
<div
v-if=
"RankingList.length
<
1
"
class=
"nodata font-color-info"
>
<p>
努力开发中
</p>
</div>
...
...
@@ -386,104 +385,25 @@
TotalPrice
:
0
}
},
rankMsg
:
{
RankType
:
1
,
//排行类型(1-引流排行,2-销售排行,3-利润排行)
QueryType
:
2
,
//查询类型(1-按天查询,2-按月查询,3-按年查询)
StartDay
:
"2022-05-01"
,
//开始时间
EndDay
:
"2022-05-31"
,
//结束时间
StartMonth
:
'2022-04'
,
//开始月份
EndMonth
:
'2022-05'
,
//结束月份
StartYear
:
'2022'
,
//开始年份
EndYear
:
'2022'
,
//结束年份
},
};
},
mounted
()
{
this
.
GetRankingList
();
this
.
GetBriefing
();
this
.
createClue
();
this
.
doanLoadFile
();
},
methods
:
{
createClue
()
{
var
url
=
""
;
var
msg
=
{};
//生成线索数据
// url = "/api/ClueStatic/CreateClue";
// msg={};
//每日数据统计
// url = "/api/ClueStatic/GetClueDay";
// msg = {
// YearStr: 2022,
// MonthStr: 5
// }
//每月数据统计
// url = "/api/ClueStatic/GetClueMonth";
// msg = {
// YearStr: 2022,
// }
//每月数据成长率统计
// url = "/api/ClueStatic/GetClueMonthRate";
// msg = {
// YearStr: 2022,
// }
//年度线索数据统计
// url = "/api/ClueStatic/GetClueYear";
// msg = {
// }
//年度线索成长率数据统计
// url = "/api/ClueStatic/GetClueYearRate";
// msg = {
// }
if
(
url
&&
url
!=
""
)
{
this
.
apipost
(
url
,
msg
,
(
res
)
=>
{
console
.
log
(
"res.data"
,
res
.
data
);
});
}
},
doanLoadFile
()
{
var
url
=
""
;
var
msg
=
{};
//下载每日数据统计
// url = "/api/ClueStatic/DownLoadClueDay";
// msg = {
// YearStr: 2022,
// MonthStr: 5
// }
//下载每月数据统计
// url = "/api/ClueStatic/DownLoadClueMonth";
// msg = {
// YearStr: 2022,
// }
//下载每月数据成长率统计
// url = "/api/ClueStatic/DownLoadClueMonthRate";
// msg = {
// YearStr: 2022,
// }
//下载年度线索数据统计
// url = "/api/ClueStatic/DownLoadClueYear";
// msg = {
// }
//年度线索成长率数据统计
// url = "/api/ClueStatic/DownLoadClueYearRate";
// msg = {
// }
if
(
url
&&
url
!=
""
)
{
this
.
GetLocalFile
(
url
,
msg
,
'数据统计.xls'
,
res
=>
{
console
.
log
(
"res"
,
res
);
});
}
},
//客户简报
GetBriefing
()
{
this
.
apipost
(
"/api/CustomerDashboard/GetBriefing"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -491,13 +411,13 @@
}
});
},
//排行榜
GetRankingList
()
{
this
.
apipost
(
"/api/CustomerDashboard/GetRankingList"
,
{
rankType
:
this
.
rankType
},
"/api/CustomerDashboard/GetRankingList"
,
this
.
rankMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
"rankData"
,
"res.data.data"
)
this
.
RankingList
=
res
.
data
.
data
;
}
}
...
...
src/components/clueManagement/clueComponent.vue
View file @
bc533da4
...
...
@@ -203,7 +203,7 @@
<el-drawer
:with-header=
"false"
size=
'70%'
:visible
.
sync=
"isShowCustomerInfo"
direction=
"rtl"
:before-close=
"handleClose"
>
<customerInfoBox
:CustomerId=
"CustomerId"
@
transferS=
"transfer"
@
deleteClue=
"deleteClue"
@
watersS=
"waters"
@
editCustS=
"editCust"
@
getList=
"getList"
/>
@
editCustS=
"editCust"
@
getList=
"getList"
:activeNameNum=
"activeNameNum"
:receiptType=
"receiptType"
/>
</el-drawer>
<el-drawer
:with-header=
"false"
size=
'70%'
:visible
.
sync=
"isShowGuestInfo"
direction=
"rtl"
:before-close=
"handleClose"
>
...
...
@@ -281,6 +281,12 @@
},
data
()
{
return
{
receiptType
:{
ReFinanceId
:
""
,
ReFinanceId2
:
""
,
//单据类型
RelevanceFrId
:
""
,
//1机票 2签证 3地接 4套餐 5其他
},
activeNameNum
:
"1"
,
ruleList
:
[],
guestDialogBoxShow
:
false
,
isShowGuestInfo
:
false
,
//是否显示直客弹窗
...
...
src/components/customerManage/ManageConfiguration.vue
0 → 100644
View file @
bc533da4
<
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
src/components/customerManage/customerConfiguration.vue
View file @
bc533da4
...
...
@@ -33,6 +33,8 @@
<div
v-for=
"(item,index) in headerList"
:key=
"index"
:class=
"selectTitle==item.id?'active':''"
@
click=
"clickTitle(item)"
>
{{
item
.
title
}}
</div>
</div>
<!-- 管理配置 -->
<ManageConfiguration
v-if=
"selectTitle==4"
></ManageConfiguration>
<!-- 客户来源 -->
<customerSource
v-if=
"selectTitle==1"
></customerSource>
<!-- 分配规则 -->
...
...
@@ -45,16 +47,22 @@
import
customerSource
from
"./customerSource"
;
import
distributionRules
from
"./distributionRules"
;
import
rankConfig
from
"./rankConfig"
;
import
ManageConfiguration
from
"./ManageConfiguration"
;
export
default
{
components
:
{
customerSource
,
distributionRules
,
rankConfig
,
ManageConfiguration
},
data
()
{
return
{
selectTitle
:
1
,
headerList
:
[{
selectTitle
:
4
,
headerList
:
[
{
title
:
'管理配置'
,
id
:
4
},{
title
:
'客户来源'
,
id
:
1
},
...
...
src/components/customerManage/distributionRules.vue
View file @
bc533da4
...
...
@@ -45,6 +45,9 @@
display
:
flex
;
align-items
:
center
;
}
/
deep
/
.el-radio-group
{
margin-bottom
:
0
!important
;
}
</
style
>
<
template
>
<div
class=
"customerManage"
>
...
...
src/components/customerManage/orderList.vue
View file @
bc533da4
...
...
@@ -861,6 +861,7 @@ export default {
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
MsgBus
.
$emit
(
"closeGetList"
);
this
.
emptyMore
()
this
.
$message
.
success
(
res
.
data
.
message
);
}
...
...
src/components/guestManagement/guestManagement.vue
View file @
bc533da4
...
...
@@ -257,7 +257,7 @@
</el-pagination>
</div>
<el-drawer
:with-header=
"false"
size=
'70%'
:visible
.
sync=
"drawer"
direction=
"rtl"
:before-close=
"handleClose"
>
<customerInfoBox
:CustomerId=
"CustomerId"
@
transferS=
"transfer"
@
editCustS=
"editCust"
/>
<customerInfoBox
:CustomerId=
"CustomerId"
@
transferS=
"transfer"
@
editCustS=
"editCust"
:activeNameNum=
"activeNameNum"
:receiptType=
"receiptType"
/>
</el-drawer>
<div
v-if=
"dialogTableVisible"
>
<customerDialogBox
@
getList=
"getList"
:name=
"dialogTableVisibleName"
:CustomerId=
"CustomerId"
/>
...
...
@@ -298,6 +298,12 @@
},
data
()
{
return
{
receiptType
:{
ReFinanceId
:
""
,
ReFinanceId2
:
""
,
//单据类型
RelevanceFrId
:
""
,
//1机票 2签证 3地接 4套餐 5其他
},
activeNameNum
:
"1"
,
transactionStatusList
:
[{
Name
:
"全部"
,
Id
:
"0"
...
...
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