133 lines
6.0 KiB
Plaintext
133 lines
6.0 KiB
Plaintext
@using WX.CRM.WebHelper;
|
||
@{
|
||
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
||
}
|
||
<style>
|
||
.txt-expand {
|
||
width: 16px;
|
||
height: 16px;
|
||
display: inline-block;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.expand-activity {
|
||
background: url("/Content/Images/tools.png") no-repeat scroll 0 0;
|
||
}
|
||
|
||
.close-activity {
|
||
background: url("/Content/Images/icon/edit_remove.png") no-repeat;
|
||
}
|
||
</style>
|
||
|
||
<div class="mvctool">
|
||
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
||
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
||
</div>
|
||
<div class="bas_datagrid">
|
||
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
||
<ul class="toolBar_ul">
|
||
<li>@Html.Action("UserSSOComBox", "Control", new { currentRight = WX.CRM.WebHelper.InitRights.CONST_分配历史资源统计 })</li>
|
||
<li>
|
||
分配时间:@Html.WdatePickerText("txt_stime", DateTime.Now.ToString("yyyy-MM-dd"))-@Html.WdatePickerText("txt_etime", DateTime.Now.ToString("yyyy-MM-dd"))
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.gridTable)
|
||
</div>
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
$('#tablist').tablegrid({
|
||
url: 'DistributeHisCount',
|
||
height: $(window).height() - 110,
|
||
loadNow: false,
|
||
data: GetControlValue
|
||
});
|
||
function GetControlValue() {
|
||
return { saleDeptId: $("#txt_deptId").val(), groupId: $("#txt_groupIds").val(), userId: $("#txt_userId").val() };
|
||
}
|
||
$("#btnQuery").click(function () {
|
||
$('#tablist').tablegrid("Search");
|
||
});
|
||
$(window).resize(function () {
|
||
$('#tablist').tablegrid('resize', {
|
||
height: $(window).height() - 110
|
||
});
|
||
});
|
||
$(".txt-expand").live("click", function () {
|
||
if ($(this).hasClass("expand-activity")) {
|
||
$(this).removeClass("expand-activity").addClass("close-activity");
|
||
$("[typeName='" + $(this).attr("title") + "']").css("display", "");
|
||
}
|
||
else {
|
||
$(this).removeClass("close-activity").addClass("expand-activity");
|
||
$("[typeName='" + $(this).attr("title") + "']").css("display", "none");
|
||
}
|
||
});
|
||
|
||
/*
|
||
回收数量:中被回收到共享池的资源数量
|
||
呼出数:被呼出资源数量
|
||
未接通:未接通资源数量
|
||
非有效接通:未有效接通的资源(通话小于60s)
|
||
有效接通:有效接通的资源(通话大于60s)
|
||
呼通率:有效接通/呼出数*100%
|
||
工单数:填写了工单的资源数量
|
||
服务:销售再次沟通工单
|
||
加微信:客户意向工单
|
||
讲解:已经讲解软件工单
|
||
意向:已添加微信/企微工单
|
||
注册资源分配:来源
|
||
活动报名分配数:来源
|
||
诊股推广分配数:来源
|
||
活动报名收藏数:来源
|
||
开单资源:按照订单个人分成计算
|
||
开单率:个人开单资源/区间内全部开单资源*100%
|
||
*/
|
||
|
||
var rowTh = $("#tablist th");
|
||
|
||
$.each(rowTh, function (i, j) {
|
||
var td = $(j).attr("field");
|
||
switch (td) {
|
||
case 'recycleCount': $(j).attr('title', '被回收到共享池的资源数量'); break;
|
||
case 'ALLCALL': $(j).attr('title', '被呼出资源数量'); break;
|
||
case 'uncancall': $(j).attr('title', '未接通资源数量'); break;
|
||
case 'allcancall': $(j).attr('title', '未有效接通的资源(通话小于60s)'); break;
|
||
case 'cancall': $(j).attr('title', '有效接通的资源(通话大于60s)'); break;
|
||
case 'htl': $(j).attr('title', '有效接通/呼出数*100%'); break;
|
||
case 'memo': $(j).attr('title', '填写了工单的资源数量'); break;
|
||
case 'fuwu': $(j).attr('title', '销售再次沟通工单'); break;
|
||
case 'weixinnew': $(j).attr('title', '已添加微信/企微工单'); break;//weixin
|
||
case 'jiangjie': $(j).attr('title', '已经讲解软件工单'); break;
|
||
case 'yixiang': $(j).attr('title', '客户意向工单'); break;
|
||
case 'regnum': $(j).attr('title', '来源'); break;
|
||
case 'activenum': $(j).attr('title', '来源'); break;
|
||
case 'tgnum': $(j).attr('title', '来源'); break;
|
||
case 'collectnum': $(j).attr('title', '来源'); break;
|
||
case 'ordernum': $(j).attr('title', '按照订单个人分成计算'); break;
|
||
case 'orderrate': $(j).attr('title', '个人开单资源/区间内全部开单资源*100%'); break;
|
||
}
|
||
});
|
||
|
||
});
|
||
|
||
function onLoadSucced() {
|
||
$('#tablist').tablegrid("Search");
|
||
}
|
||
|
||
function frameReturnByClose()
|
||
{
|
||
$("#modalwindow").window('close');
|
||
}
|
||
function frameReturnByReload(flag)
|
||
{
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
function frameReturnByMes(mes)
|
||
{
|
||
$.messageBox5s('提示', mes);
|
||
}
|
||
|
||
function ShowResDetial(url) {
|
||
window.parent.ChildAddTab("客户详细", url, "");
|
||
}
|
||
|
||
</script>
|
||
<script type="text/javascript">
|
||
//获取datagrid头部及字段
|
||
function getDataGridHeader() {
|
||
var columns = $('#tablist').tablegrid("getHead");
|
||
return columns;
|
||
}
|
||
function GetIframeHtml(src) {
|
||
return "<iframe id='ifymbc' width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
||
}
|
||
function ExportHis_Click() {
|
||
var qls = "&saleDeptId=" + $("#nb1_uc_org_depts").val() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val();
|
||
window.open("/Res/Distribute/ExportDistributeHisCount?Ieguid=" + GetGuid() + qls + "&" + GetQueryStr());
|
||
}
|
||
</script> |