196 lines
8.5 KiB
Plaintext
196 lines
8.5 KiB
Plaintext
@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";
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#btnSave").click(function () {
|
|
var flag = "<%=Request.QueryString['tag']%>" != "Add"; //非新增操作
|
|
if (flag) {
|
|
var memoId = $('#memoId').val();
|
|
var reComplainLevel = $('#reComplainLevel').val();
|
|
var memo = $('#memo').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;
|
|
}
|
|
}
|
|
if ($("#CreateForm").valid()) {
|
|
$.r_ajax({
|
|
url: "/Quality/ComplainCustomer/Edit",
|
|
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;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<div class="mvctool bgb">
|
|
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
|
|
</div>
|
|
@using (Html.BeginForm("Edit", "Parameter", null, FormMethod.Post, new { Id = "CreateForm" }))
|
|
{
|
|
@Html.ValidationSummary(true)
|
|
<table class="fromEditTable setTextWidth300">
|
|
<tbody>
|
|
<tr>
|
|
<td width="60px" style="width:100px;">
|
|
@Html.LabelFor(m => m.customerComplain.map_RESID)
|
|
@Html.HiddenFor(m => m.customerComplain.map_PKID)
|
|
@Html.HiddenFor(m => m.customerComplain.map_STATUS)
|
|
@if (Request.QueryString["tag"] != "Add")
|
|
{
|
|
@Html.HiddenFor(m => m.customerComplain.map_COMPLAINLEVEL)
|
|
@Html.HiddenFor(m => m.customerComplain.map_FROMTYPE)
|
|
}
|
|
|
|
</td>
|
|
<td style="width:310px">
|
|
@Html.TextBoxFor(m => m.customerComplain.map_RESID, Request.QueryString["tag"] == "Add" ? new object() : new { Readonly = "true" })
|
|
@Html.Hidden("hid_tag", Request.QueryString["tag"])
|
|
</td>
|
|
<td style="width:120px">
|
|
@Html.ValidationMessageFor(m => m.customerComplain.map_RESID)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="60px" style="width:100px;">
|
|
@Html.LabelFor(m => m.customerComplain.map_FROMTYPE)
|
|
</td>
|
|
<td style="width:310px">
|
|
@Html.DropDownListFor(m => m.customerComplain.map_FROMTYPE, new List<SelectListItem>() { new SelectListItem() { Text = "电话投诉", Value = "1" }, new SelectListItem() { Text = "微信投诉", Value = "2" } }, Request.QueryString["tag"] == "Add" ? new object { } : new { style = "width:305px", disabled = "disabled" })
|
|
</td>
|
|
<td width="120px"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="60px" style="width:100px;">
|
|
@Html.LabelFor(m => m.customerComplain.map_COMPLAINLEVEL)
|
|
</td>
|
|
<td style="width:310px">
|
|
@Html.DropDownListFor(m => m.customerComplain.map_COMPLAINLEVEL, new WX.CRM.WEB.Handler.ControlResource().GetComplainCustomerLevelList(0), Request.QueryString["tag"] == "Add" ? new object { } : new { style = "width:305px", disabled = "disabled" })
|
|
</td>
|
|
<td style="width:120px"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="60px" style="width:100px;">
|
|
@Html.LabelFor(m => m.customerComplain.map_REASON)
|
|
</td>
|
|
<td style="width:310px">
|
|
@Html.TextAreaFor(m => m.customerComplain.map_REASON, Request.QueryString["tag"] == "Add" ? new object() : new { Readonly = "true" })
|
|
</td>
|
|
<td width="120px">
|
|
@Html.ValidationMessageFor(m => m.customerComplain.map_REASON)
|
|
</td>
|
|
</tr>
|
|
@if (Request.QueryString["tag"] != "Add")
|
|
{
|
|
<tr>
|
|
<td style="width:152px;">
|
|
服务工单号
|
|
</td>
|
|
<td style="width:383px">
|
|
<input disabled value="@ViewBag.memoList" id="memoIdTxt" />
|
|
<input type="hidden" name="memoId" id="memoId" value="@ViewBag.memoList" />
|
|
<input type="button" onclick="ChooseMemo()" value="选择服务工单" />
|
|
</td>
|
|
<td width="120px"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>录音ID</td>
|
|
<td>
|
|
<input disabled value="@ViewBag.recordList" id="recordIdTxt" />
|
|
<input type="hidden" name="recordId" id="recordId" value="@ViewBag.recordList" />
|
|
<input type="button" onclick="ChooseRecord()" value="选择录音" />
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="60px" style="width:100px;">
|
|
处理后投诉客户等级
|
|
</td>
|
|
<td style="width:310px">
|
|
<select id="reComplainLevel" name="reComplainLevel" style="width:150px;height:22px">
|
|
@foreach (var item in new WX.CRM.WEB.Handler.ControlResource().GetComplainCustomerLevelList(0) as List<SelectListItem>)
|
|
{
|
|
<option value="@item.Value">@item.Text</option>
|
|
}
|
|
</select>
|
|
</td>
|
|
<td style="width:120px"></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width:152px;">
|
|
处理结果
|
|
</td>
|
|
<td style="width:383px">
|
|
<textarea name="memo" id="memo" cols="5"></textarea>
|
|
</td>
|
|
<td width="120px"></td>
|
|
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="bas_datagrid">
|
|
@Html.Raw(ViewBag.complainServiceMemoList)
|
|
</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 ChooseMemo() {
|
|
$("#modalwindow").html(GetIframeHtml("/Quality/ComplainCustomer/ResServiceMemoIndex?ResId=@Model.customerComplain.RESID"));
|
|
$("#modalwindow").window({ title: '选择服务工单', width: 650, height: 500, iconCls: 'icon-add' }).window('open');
|
|
|
|
}
|
|
|
|
function ChooseRecord() {
|
|
$("#modalwindow").html(GetIframeHtml("/Quality/ComplainCustomer/HgRecord?ResId=@Model.customerComplain.RESID"));
|
|
$("#modalwindow").window({ title: '选择录音', width: 650, height: 500, iconCls: 'icon-add' }).window('open');
|
|
}
|
|
|
|
function selectMemo(memoId) {
|
|
$('#memoIdTxt').val(memoId);
|
|
$('#memoId').val(memoId);
|
|
}
|
|
|
|
function selectRecord(recordId) {
|
|
$('#recordIdTxt').val(recordId);
|
|
$('#recordId').val(recordId);
|
|
}
|
|
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
</script> |