114 lines
3.7 KiB
Plaintext
114 lines
3.7 KiB
Plaintext
@using CRM.Core.Model.Entity
|
|
@using Core.Web.WebHelper
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
|
}
|
|
<style>
|
|
.layui-form-label {
|
|
width: 150px
|
|
}
|
|
.layui-input-block {
|
|
margin-left: 0;
|
|
}
|
|
.layui-laydate-content > .layui-laydate-list {
|
|
padding-bottom: 0px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.layui-laydate-content > .layui-laydate-list > li {
|
|
width: 50%
|
|
}
|
|
|
|
.merge-box .scrollbox .merge-list {
|
|
padding-bottom: 5px;
|
|
}
|
|
.layui-form-item .layui-input-inline {
|
|
float: left;
|
|
width: auto !important;
|
|
margin-right: 10px;
|
|
}
|
|
</style>
|
|
|
|
<div class="x-body">
|
|
<form class="layui-form" action="" lay-filter="formTest">
|
|
<input type="hidden" id="id" name="id" value="@ViewBag.id" />
|
|
<input type="hidden" id="operatorEid" name="operatorEid" value="@ViewBag.eid" />
|
|
<input type="hidden" id="operator" name="operator" value="@ViewBag.userName" />
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color: red">*</span>投诉内容:</label>
|
|
<div class="layui-input-inline">
|
|
<textarea class="layui-textarea" lay-verify="required" name="content" id="content" style="width:300px;"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">处理跟进:</label>
|
|
<div class="layui-input-inline">
|
|
<textarea class="layui-textarea" name="follow" id="follow" style="width:300px;"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<div class="layui-input-block" style="float: right">
|
|
<button class="layui-btn layui-btn-sm layui-btn-normal" type="button" lay-submit="" id="save" lay-filter="save" onclick="return false;">保存</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<script src="~/Scripts/layui_ext/xm-select/xm-select.js"></script>
|
|
<script>
|
|
var selectRow = {};
|
|
var layer;
|
|
var table;
|
|
var winindex;
|
|
var upload;
|
|
var inneruserTree;
|
|
var element;
|
|
var form;
|
|
var accessories = [];
|
|
layui.config({
|
|
base: '../Scripts/layui_ext/',
|
|
}).extend({
|
|
selectInput: 'selectInput/selectInput'
|
|
}).use(['table', 'laydate', 'upload', 'flow', 'element', 'form', 'selectInput'], function () {
|
|
var $ = layui.jquery
|
|
, upload = layui.upload
|
|
, element = layui.element
|
|
, layer = layui.layer
|
|
, form = layui.form
|
|
, selectInput = layui.selectInput;
|
|
element = layui.element;
|
|
|
|
var loading;
|
|
var id = '@Html.Raw(ViewBag.id)';
|
|
|
|
form.on('submit(save)', function (data) {
|
|
layer.confirm('是否确认保存该跟进记录?', { icon: 3, title: '提示' }, function (index) {
|
|
$.ajax({
|
|
type: "POST",
|
|
url: '/InComplaint/CreateOutComlpaintFollowUp',
|
|
data: JSON.stringify(data.field),
|
|
dataType: "json",
|
|
contentType: "application/json",
|
|
success: function (da) {
|
|
if (da.code == 0) {
|
|
parent.layer.msg('操作成功!', { icon: 1 });
|
|
parent.TableReload();
|
|
parent.Closed();
|
|
} else {
|
|
layer.msg(da.retmsg, { icon: 2 });
|
|
}
|
|
},
|
|
error: function () {
|
|
layer.msg('操作失败!', { icon: 2 });
|
|
}
|
|
});
|
|
});
|
|
})
|
|
})
|
|
|
|
function Closed() {
|
|
layer.close(winindex);
|
|
}
|
|
|
|
</script>
|