124 lines
5.9 KiB
Plaintext
124 lines
5.9 KiB
Plaintext
@using WX.CRM.WebHelper
|
||
|
||
@{
|
||
ViewBag.Title = "投诉客户管理";
|
||
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
||
}
|
||
<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("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = "", currentRight = WX.CRM.WebHelper.InitRights.CONST_投诉客户列表 })*@</li>
|
||
<li>@Html.Action("UserSSOComBox", "Control", new { currentRight = WX.CRM.WebHelper.InitRights.CONST_投诉客户列表 })</li>
|
||
<li>投诉等级:@Html.DropDownList("slt_ComplainLevel", new WX.CRM.WEB.Handler.ControlResource().GetComplainCustomerLevelList(1), new { style = "width:130px" }) </li>
|
||
<li>投诉来源:@Html.DropDownList("slt_ComplainFromType", new List<SelectListItem>() { new SelectListItem() { Text="全部", Value="" }, new SelectListItem() { Text="电话投诉", Value="1" }, new SelectListItem() { Text="微信投诉", Value="2" } }, new { style = "width:130px" }) </li>
|
||
<li>投诉时间:@Html.WdatePickerText("txt_STime", DateTime.Now.ToString("yyyy-MM") + "-01")-@Html.WdatePickerText("txt_ETime", DateTime.Now.ToString("yyyy-MM-dd"))</li>
|
||
<li>
|
||
状态:@Html.DropDownList("slt_status", new List<SelectListItem>() {
|
||
new SelectListItem(){ Text="全部",Value="",Selected=true},
|
||
new SelectListItem(){ Text="未处理",Value="-1"},
|
||
new SelectListItem(){ Text="已处理",Value="1"},
|
||
new SelectListItem(){ Text="处理中",Value="0"}
|
||
})
|
||
</li>
|
||
<li>客户ID:<input type="text" name="txt_ResId" style="width:130px" /></li>
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.List)
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
$('#tablist').tablegrid({
|
||
url: '/Quality/ComplainCustomer/GetHtmlList',
|
||
height: $(window).height() - 130,
|
||
loadNow: true,
|
||
isPage: false,
|
||
data: GetControlValue
|
||
});
|
||
function GetControlValue() {
|
||
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val(), dayType: $("#txt_Daytype").val() };
|
||
}
|
||
$("#btnQuery").click(function () {
|
||
$('#tablist').tablegrid("Search");
|
||
});
|
||
});
|
||
function onLoadSucced() {
|
||
$("#tablist").tablegrid("Search");
|
||
}
|
||
function frameReturnByClose() {
|
||
$("#modalwindow").window('close');
|
||
}
|
||
function frameReturnByReload(flag) {
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
function frameReturnByMes(mes) {
|
||
$.messageBox5s('提示', mes);
|
||
}
|
||
</script>
|
||
<script type="text/javascript">
|
||
function getDataGridHeader() {
|
||
var columns = $('#tablist').tablegrid("getAllHead");
|
||
return columns;
|
||
}
|
||
|
||
function GetIframeHtml(src) {
|
||
return "<iframe width='100%' height='98%' scrolling='yes' frameborder='0' src='" + src + "'></iframe>";
|
||
}
|
||
|
||
function btnFlag_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$.r_post('/Quality/ComplainCustomer/FlagStatus', { id: row.PKID }, function (ret) {
|
||
if (ret.type == 1) {
|
||
$.messager.alert("警告", "操作成功!", "suceess");
|
||
}
|
||
else {
|
||
$.messager.alert("警告", ret.message, "error");
|
||
}
|
||
});
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
|
||
function btnUpdate_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$("#modalwindow").html(GetIframeHtml("/Quality/ComplainCustomer/Edit?tag=flow&id="+row.PKID));
|
||
$("#modalwindow").window({ title: '处理过程', width: 800, height: 650, iconCls: 'icon-check' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
|
||
function btnCheck_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$("#modalwindow").html(GetIframeHtml("/Quality/ComplainCustomer/Check?id=" + row.PKID));
|
||
$("#modalwindow").window({ title: '审核', width: 1024, height: 650, iconCls: 'icon-check' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
|
||
@*function btnDelete_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$.messager.confirm('提示', '@Suggestion.YouWantToDeleteTheSelectedRecords', function (r) {
|
||
if (r) {
|
||
$.r_post("/Quality/ComplainCustomer/Delete?pkid=" + row.PKID, function (data) {
|
||
if (data.type == 1) {
|
||
$("#tablist").tablegrid('Load');
|
||
}
|
||
$.messageBox5s('提示', data.message);
|
||
}, "json");
|
||
}
|
||
});
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}*@
|
||
|
||
function btnExport_Click() {
|
||
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Quality/ComplainCustomer/Export?" + GetQueryStr() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val())));
|
||
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
||
}
|
||
</script>
|