ComplianceServer/oldcode/WEB/Views/Quality/ComplainCustomer/Add.cshtml

284 lines
13 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model WX.CRM.Model.Entity.QC_CUSTOMERCOMPLAIN_Extend
@using WX.CRM.WebHelper
@Styles.Render("~/Content/data_grid_list.css")
@{
ViewBag.Title = "客户投诉列表修改";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<style type="text/css">
.complainInfo table{
}
.complainInfo table .td1 {
width: 200px;
color: red;
font-weight: bold;
font-size:30px;
padding-left:10px;
}
.complainInfo table .td2 {
width: 250px;
color: orange;
font-weight: bold;
font-size: 18px;
padding-left: 10px;
}
.complainInfo table .td3 {
width:500px;
color: blue;
font-weight: bold;
font-size: 15px;
padding-left: 10px;
}
.complainInfo table tr{
}
.complainInfo table tr td {
border-bottom: 1px solid #ccc;
}
.complainInfo table p{
height:30px;
line-height:30px;
}
</style>
<script type="text/javascript">
$(function () {
var contentData = [
{ "level": "QW01", "content": ["客户觉得自己上当了;", "客户反映虚假宣传,与预期不符;", "客户对服务不满意,要求尽快处理;", "客户情绪激动,爆粗口,很难沟通;", "行情大涨,出现亏损,对老师操作不满意;"]}
, { "level": "PT01", "content": ["不说原因,就是想退;", "没有资金了,要退款;", "不再做股票,要求退费;", "不及预期,要求解除合同;", "收益不理想,要申请退款;", "客户说自己要用钱,不准备操作了;", "家人不同意购买公司产品,要求退款;", "亏损严重,影响到生活,要求退出服务;", "对服务不认可,认为与营销不符,诉求退款;","服务不满意,觉得还不如自己操作的好,想要退款;"] }
, { "level": "YZ01", "content": ["客户年龄过大,超过 70 岁;", "身体不好,生病住院,急需用钱:", "借钱操作、套现信用卡,资金紧张等情形;", "和其它机构合作过,投诉过证监会,退过款;", "明确提出投诉有关部门,证监会、工商、报警、找律师、找维权;"] }
]
$("#btnSave").click(function () {
var memoId = $('#memoId').val();
var reComplainLevel = $('#reComplainLevel').val();
var memo = $('#memo').val();
var userIds = $("#userIds").val();
if (memoId === '' || memoId === 'undefined') {
$.messager.alert("警告", '服务单号不能为空', "error");
return;
}
if (reComplainLevel === '' || reComplainLevel === 'undefined') {
$.messager.alert("警告", '处理后投诉客户等级', "error");
return;
}
if (memo === '' || memo === 'undefined') {
$.messager.alert("警告", '处理结果不能为空', "error");
return;
}
var fromType = $("#customerComplain_map_FROMTYPE").val();
if (fromType == 1) {
var recordId = $("#recordId").val();
if (recordId == '') {
$.messager.alert("警告", '电话投诉录音ID不能为空', "error");
return;
}
}
if (userIds === '' || userIds === 'undefined') {
$.messager.alert("警告", '请选择要通知的员工', "error");
return;
}
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/Quality/ComplainCustomer/Add",
type: "Post",
data: $("#CreateForm").serialize(),
dataType: "json",
loading: true,
success: function (data) {
if (data.type == 1) {
window.parent.frameReturnByMes(data.message);
window.parent.frameReturnByReload(true);
window.parent.frameReturnByClose()
}
else {
window.parent.frameReturnByMes(data.message);
}
}
});
}
return false;
});
$("#customerComplain_map_COMPLAINLEVEL").change(function () {
for (var item in contentData) {
if (contentData[item].level == this.value) {
$("#content").empty();
$("#content").append("<option></option>")
for (var subItem in contentData[item].content) {
$("#content").append("<option value='" + contentData[item].content[subItem] + "'>" + contentData[item].content[subItem] + "</option>");
}
}
}
});
$("#customerComplain_map_COMPLAINLEVEL").change();
$("#customerComplain_map_FROMTYPE").change(function () {
//微信投诉
if (this.value == 2) {
$("#recordId").val('');
$("#recordIdTxt").val('');
$("#recordTr").hide();
}
else {
$("#recordTr").show();
}
});
});
function setcotnent(obj) {
$("#customerComplain_map_REASON").html(obj.value);
}
function ChooseRecord() {
$("#modalwindow").html(GetIframeHtml("/Quality/ComplainCustomer/HgRecord?ResId=@Model.customerComplain.map_RESID"));
$("#modalwindow").window({ title: '选择录音', width: 650, height: 500, iconCls: 'icon-add' }).window('open');
}
function ChooseUser() {
$("#modalwindow").html(GetIframeHtml("/html/SalesGroupDetails.html"));
$("#modalwindow").window({ title: '选择录音', width: 650, height: 500, iconCls: 'icon-add' }).window('open');
}
function selectRecord(recordId) {
//console.log(recordId);
if (recordId.indexOf(',') > -1) {
$.messager.alert("警告", '只能选择一条录音!', "error");
return;
}
$('#recordIdTxt').val(recordId);
$('#recordId').val(recordId);
}
function setUser(userTxt, userIds) {
$("#userTxt").val(userTxt);
$("#userIds").val(userIds);
}
</script>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
@using (Html.BeginForm("Add", "Parameter", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable setTextWidth300" style="margin-bottom:0">
<tbody>
<tr>
<td>
@Html.LabelFor(m => m.customerComplain.map_RESID)
@Html.HiddenFor(m => m.customerComplain.map_PKID)
</td>
<td>
@Html.TextBoxFor(m => m.customerComplain.map_RESID)
</td>
<td>
@Html.ValidationMessageFor(m => m.customerComplain.map_RESID)
</td>
</tr>
<tr>
<td>
@Html.LabelFor(m => m.customerComplain.map_FROMTYPE)
</td>
<td>
@Html.DropDownListFor(m => m.customerComplain.map_FROMTYPE, new List<SelectListItem>() { new SelectListItem() { Text = "电话投诉", Value = "ComplainFromType01" }, new SelectListItem() { Text = "微信投诉", Value = "ComplainFromType02" } })
</td>
<td></td>
</tr>
<tr>
<td>
@Html.LabelFor(m => m.customerComplain.map_COMPLAINLEVEL)
</td>
<td>
@Html.DropDownListFor(m => m.customerComplain.map_COMPLAINLEVEL, new WX.CRM.WEB.Handler.ControlResource().GetComplainCustomerLevelList(0))
<select id="content" onchange="setcotnent(this)"></select>
</td>
<td>
</td>
</tr>
<tr>
<td>
@Html.LabelFor(m => m.customerComplain.map_REASON)
</td>
<td>
@Html.TextAreaFor(m => m.customerComplain.map_REASON)
</td>
<td>
@Html.ValidationMessageFor(m => m.customerComplain.map_REASON)
</td>
</tr>
<tr>
<td>选择通知人员:</td>
<td>
<input disabled id="userTxt" />
<input type="hidden" name="userIds" id="userIds" />
<input type="button" onclick="ChooseUser()" value="选择员工" />
</td>
<td></td>
</tr>
<tr id="recordTr">
<td>录音ID</td>
<td>
<input disabled id="recordIdTxt" />
<input type="hidden" name="recordId" id="recordId" />
<input type="button" onclick="ChooseRecord()" value="选择录音" />
</td>
<td></td>
</tr>
</tbody>
</table>
<div style="overflow:scroll; height:380px" class="complainInfo">
<table>
<tr>
<td class="td1">轻微风险客户</td>
<td class="td2">定义:抱怨收益或者服务,未提出退款。</td>
<td class="td3">
<p>相应的合规关键字、词、句:</p>
<p>1 客户觉得自己上当了;</p>
<p>2 客户反映虚假宣传,与预期不符;</p>
<p>3 客户对服务不满意,要求尽快处理;</p>
<p>4 客户情绪激动,爆粗口,很难沟通;</p>
<p>5 行情大涨,出现亏损,对老师操作不满意;</p>
</td>
</tr>
<tr>
<td class="td1">中度风险客户</td>
<td class="td2">定义:诉求退款</td>
<td class="td3">
<p>相应的合规关键字、词、句:</p>
<p>1 不说原因,就是想退;</p>
<p>2 没有资金了,要退款;</p>
<p>3 不再做股票,要求退费;</p>
<p>4 不及预期,要求解除合同;</p>
<p>5 收益不理想,要申请退款;</p>
<p>6 客户说自己要用钱,不准备操作了;</p>
<p>7 家人不同意购买公司产品,要求退款;</p>
<p>8 亏损严重,影响到生活,要求退出服务;</p>
<p>9 对服务不认可,认为与营销不符,诉求退款;</p>
<p>10 服务不满意,觉得还不如自己操作的好,想要退款;</p>
</td>
</tr>
<tr>
<td class="td1">高危风险客户</td>
<td class="td2">定义:诉求退款,有投诉风险,甚至想要赔偿。</td>
<td class="td3">
<p>相应的合规关键字、词、句:</p>
<p>(包括但不限于以下情形,销售人员在沟通过程中,</p>
<p>觉得客户风险不可控,也可标记为此类,及时提交有关人员处理。)</p>
<p>1 客户年龄过大,超过 70 岁;</p>
<p>2 身体不好,生病住院,急需用钱:</p>
<p>3 借钱操作、套现信用卡,资金紧张等情形;</p>
<p>4 和其它机构合作过,投诉过证监会,退过款。</p>
<p>5 明确提出投诉有关部门,证监会、工商、报警、找律师、找维权;</p>
<p>6 客户对收益、服务不满意,想要采取过激行为要求退款,</p>
<p>例如,炸公司、来公司跳楼、要求退款。</p>
</td>
</tr>
</table>
</div>
<div id="modalwindow" class="easyui-window" data-options="modal:true,closed:true,minimizable:false,shadow:false"></div> <div id="modalwindow" class="easyui-window" data-options="modal:true,closed:true,minimizable:false,shadow:false"></div>
}
<script>
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
}
</script>