115 lines
5.1 KiB
Plaintext
115 lines
5.1 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@using WX.CRM.Model
|
|
@{
|
|
Layout = null;
|
|
}
|
|
<div class="group content_title_width">
|
|
<span class="csicon dunpai"></span>
|
|
<span>客户质检信息</span>
|
|
<span class="righttitle">
|
|
<a href="javascript:void(0)" onclick="TS('@Request.QueryString["resid"]')" id="Button3">提交投诉</a>
|
|
<a style="padding-left:20px" href="javascript:void(0)" onclick="SetTag('@Request.QueryString["resid"]')">标记风险客户</a>
|
|
@*<a style="padding-left:20px" href="javascript:void(0)" onclick="SetTag('delete', '@Request.QueryString["resid"]')">取消风险客户</a>*@
|
|
</span>
|
|
</div>
|
|
<div style="display:none;">
|
|
|
|
</div>
|
|
<div class="content_div">
|
|
@using (Html.BeginForm("CustomerCheckUC", "CustomerInfo", null, FormMethod.Post, new { Id = "CreateForm" }))
|
|
{
|
|
var item2 = ViewBag.customerComplain as List<WX.CRM.Model.Entity.QC_CUSTOMERCOMPLAIN_Extend>;
|
|
if (item2 != null)
|
|
{
|
|
<table class="layui-table content_width">
|
|
<thead>
|
|
<tr>
|
|
<td>客户投诉</td>
|
|
<td>投诉级别</td>
|
|
<td>投诉时间</td>
|
|
<td>状态</td>
|
|
@if (ViewBag.isSH)
|
|
{
|
|
<td colspan="5">投诉内容</td>
|
|
<td> </td>
|
|
}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var m in item2)
|
|
{
|
|
<tr>
|
|
<td>@m.customerComplain.RESID</td>
|
|
@if (ViewBag.isSH)
|
|
{
|
|
<td style=@(string.IsNullOrWhiteSpace(m.LEVELNAME) ? "" : m.LEVELNAME.Contains("高危") ? "color:red;font-weight:bold" : "color:blue;font-weight:bold")>
|
|
@m.LEVELNAME
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td>
|
|
@m.LEVELNAME
|
|
</td>
|
|
}
|
|
<td>@m.customerComplain.CTIME.Value.ToString("yyyy-MM-dd")</td>
|
|
<td>@(m.customerComplain.STATUS == 1 ? "已处理" : (m.customerComplain.STATUS == 0 ? "处理中" : "未处理"))</td>
|
|
@if (ViewBag.isSH)
|
|
{
|
|
<td colspan="5" style=@(string.IsNullOrWhiteSpace(m.LEVELNAME) ? "" : m.LEVELNAME.Contains("高危") ? "color:red;font-weight:bold" : "color:blue;font-weight:bold" )>
|
|
@(!string.IsNullOrWhiteSpace(m.customerComplain.REASON) ? (m.customerComplain.REASON.Length > 30 ? m.customerComplain.REASON.Substring(1, 30) + "..." : m.customerComplain.REASON) : "")
|
|
</td>
|
|
<td><a href="javascript:ComplainLinkClick('@ViewBag.customerId')">投诉明细</a> <a href="javascript:getComplainServiceDetail('@m.customerComplain.PKID')">处理明细</a></td>
|
|
}
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
|
|
}
|
|
</div>
|
|
<script type="text/javascript">
|
|
function ComplainLinkClick(obj) {
|
|
var windowUrl = " /Quality/ComplainCustomer/Detail?customerId=" + obj;
|
|
if (top.location != location) {
|
|
window.parent.ChildAddTab("客户投诉明细", windowUrl, "");
|
|
} else {
|
|
window.open(windowUrl);
|
|
}
|
|
}
|
|
function TS(resid) {
|
|
var src = "/Quality/ComplainCustomer/Add?resid=" + resid;
|
|
var width = 1000;
|
|
var height = 600;
|
|
$("#modalwindow").html(GetIframeHtml(src));
|
|
$("#modalwindow").window({ title: '编辑', width: width, height: height, iconCls: 'icon-edit' }).window('open');
|
|
}
|
|
|
|
function SetTag(resid) {
|
|
if (resid == '') {
|
|
alert("参数错误");
|
|
return;
|
|
}
|
|
$("#modalwindow").html(GetIframeHtml("/Res/CustomerLabel/Set?resid=" + resid));
|
|
$("#modalwindow").window({ title: '风险客户', width: 450, height: 400, iconCls: 'icon-add' }).window('open');
|
|
//$.r_post("/Quality/ComplainCustomer/SetTag", { evt: event, resid: resid }, function (rsp) {
|
|
// if (rsp.ret) {
|
|
// $.messager.alert("警告", "操作成功!", "suceess", function () { window.location.reload(); });
|
|
// }
|
|
// else {
|
|
// $.messager.alert("警告", rsp.message, "error");
|
|
// }
|
|
//});
|
|
}
|
|
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='yes' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
|
|
function getComplainServiceDetail(id) {
|
|
$("#modalwindow").html(GetIframeHtml("/Quality/ComplainCustomer/ComplainServiceDetail?complainId=" + id));
|
|
$("#modalwindow").window({ title: '投诉服务工单列表', width: 850, height: 400, iconCls: 'icon-add' }).window('open');
|
|
}
|
|
</script>
|