531 lines
22 KiB
Plaintext
531 lines
22 KiB
Plaintext
@using WX.CRM.WebHelper;
|
||
@{
|
||
ViewBag.Title = "Index";
|
||
Layout = "~/Views/Shared/_content.cshtml";
|
||
}
|
||
<script src="/Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
||
<link href="/Content/themes/blue/easyui.css" rel="stylesheet" />
|
||
<link href="/Content/Site.css" rel="stylesheet" />
|
||
<script src="/Scripts/common.js"></script>
|
||
<link href="/Content/data_grid_list.css" rel="stylesheet" />
|
||
<script src="/Scripts/op/jquery.rewrite.js"></script>
|
||
<style type="text/css">
|
||
.xm-option {
|
||
line-height: 30px;
|
||
}
|
||
|
||
.layui-card {
|
||
padding-top: 0px !important;
|
||
}
|
||
</style>
|
||
<div class="layui-fluid" style="padding-left:0px;padding-top:10px;">
|
||
<div class="layui-card" id="topcard" style="width:100%;padding-top:10px;">
|
||
<div class="layui-card-header layui-self-header">
|
||
<div style="float:left;position:relative;">
|
||
合规退款确认列表
|
||
</div>
|
||
<div style="float:right;position:relative;">
|
||
@* @if (ViewBag.IndexType == 2)
|
||
{
|
||
<input class="layui-btn layui-btn-sm layui-btn-normal" data-method="other4" type="button" value="详情">
|
||
}*@
|
||
@Html.Action("ToolBarNew", "Control", new
|
||
{
|
||
tool = ViewBag.ToolBar as ToolBar,
|
||
otherToolBars = new ToolBarNew[] {
|
||
new ToolBarNew(){ btnColor="", btnName="审核确认" },
|
||
new ToolBarNew(){ btnColor="", btnName="导出" }
|
||
}
|
||
|
||
})
|
||
|
||
</div>
|
||
<div class="hrclass" style="position:relative;float: left;"></div>
|
||
</div>
|
||
<div class="layui-card-body " id="contentBody">
|
||
<form class="layui-form selftopwhere" id="myform">
|
||
<div class="layui-form-item">
|
||
@{ List<WX.CRM.Model.Entity.BAS_BUSINESSLINES> list = ViewBag.deptList; }
|
||
事业部:
|
||
<div class="layui-inline">
|
||
<select name="Deptid">
|
||
<option value="">全部</option>
|
||
@foreach (var item in list)
|
||
{
|
||
<option value="@item.BUSINESSID">@item.BUSINESSNAME</option>
|
||
}
|
||
</select>
|
||
</div>
|
||
<div class="layui-inline" style="width:460px;">
|
||
@Html.Action("UserSSOComBox", "Control", new { currentRight = WX.CRM.WebHelper.InitRights.外诉处理列表 })
|
||
</div>
|
||
投诉类型:
|
||
<div class="layui-inline">
|
||
<select name="RefundType" style="height:35px;">
|
||
<option value="">全部</option>
|
||
<option value="1">重大风险</option>
|
||
<option value="2">外诉</option>
|
||
<option value="4">内诉</option>
|
||
</select>
|
||
</div>
|
||
业务确认状态:
|
||
<div class="layui-inline">
|
||
<select name="BusinessStatus" style="height:35px;">
|
||
<option value="">全部</option>
|
||
<option value="1">待确认</option>
|
||
<option value="2">已确认</option>
|
||
<option value="4">已拒绝</option>
|
||
</select>
|
||
</div>
|
||
申请状态:
|
||
<div class="layui-inline">
|
||
<select name="ApplyStatus" style="height:35px;">
|
||
<option value="">全部</option>
|
||
<option value="1">未通过</option>
|
||
<option value="2">需COO和合规处理</option>
|
||
<option value="4">已通过</option>
|
||
</select>
|
||
</div>
|
||
退款状态:
|
||
<div class="layui-inline">
|
||
<select name="RefundStatus" style="height:35px;">
|
||
<option value="">全部</option>
|
||
<option value="1">未确认</option>
|
||
<option value="2">已确认</option>
|
||
</select>
|
||
</div>
|
||
支付类型:
|
||
<div class="layui-inline">
|
||
<select name="PayStatus" style="height:35px;">
|
||
<option value="">全部</option>
|
||
<option value="1">支付宝</option>
|
||
<option value="3">银行转账</option>
|
||
<option value="5">微信支付</option>
|
||
</select>
|
||
</div>
|
||
客户ID:
|
||
<div class="layui-inline">
|
||
<input type="text" name="resid" placeholder="" autocomplete="off" class="layui-input" style="width:120px;">
|
||
</div>
|
||
客户姓名:
|
||
<div class="layui-inline">
|
||
<input type="text" name="cname" placeholder="" autocomplete="off" class="layui-input" style="width:120px;">
|
||
</div>
|
||
投诉单号:
|
||
<div class="layui-inline">
|
||
<input type="text" name="complaintId" placeholder="" autocomplete="off" class="layui-input" style="width:120px;">
|
||
</div>
|
||
退款订单号:
|
||
<div class="layui-inline">
|
||
<input type="text" name="orderid" placeholder="" autocomplete="off" class="layui-input" style="width:120px;">
|
||
</div>
|
||
成交客服/工号:
|
||
<div class="layui-inline">
|
||
<input type="text" name="eid" placeholder="" autocomplete="off" class="layui-input" style="width:120px;">
|
||
</div>
|
||
创建人/更新人:
|
||
<div class="layui-inline">
|
||
<input type="text" name="creaetOrUpdateUser" placeholder="" autocomplete="off" class="layui-input" style="width:120px;">
|
||
</div>
|
||
<div class="layui-inline">
|
||
<select name="dateType" style="height:35px;">
|
||
<option value="2">申请日期</option>
|
||
<option value="8">确认日期</option>
|
||
</select>
|
||
</div>
|
||
<div class="layui-inline">
|
||
<input class="layui-input" placeholder="" name="dateFrom" id="dateFrom" style="width:120px;">
|
||
</div>
|
||
<div class="layui-inline">
|
||
<input class="layui-input" placeholder="" name="dateTo" id="dateTo" style="width:120px;">
|
||
</div>
|
||
|
||
<input class="layui-btn layui-btn-sm layui-btn-ok" data-method="search" type="button" value="查询" />
|
||
<input class="layui-btn layui-btn-sm layui-btn-reset" type="reset" value="清空" />
|
||
@Html.Action("SettingList", "Control", new { eid = ViewBag.eid, module = "SeatOrderRefundApply" })
|
||
|
||
|
||
</div>
|
||
</form>
|
||
<table class="layui-hide" id="tab_kefuzhuangtaiyi1" lay-filter="wochao"></table>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
<div id="modalwindow" class="easyui-window" data-options="modal:true,closed:true,minimizable:false,shadow:false"></div>
|
||
|
||
<!--确定宽度-->
|
||
<style>
|
||
.layui-form-label {
|
||
width: 150px
|
||
}
|
||
|
||
.layui-input-block {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.dialogName {
|
||
width: 31%;
|
||
display: inline-block;
|
||
text-align: center;
|
||
}
|
||
|
||
.layui-table-cell {
|
||
height: auto !important;
|
||
line-height: 28px !important;
|
||
}
|
||
|
||
.myimage {
|
||
width: 100px;
|
||
padding: 3px 0px;
|
||
}
|
||
|
||
.mydiv {
|
||
/*width:250px;*/
|
||
}
|
||
|
||
#settingListBut {
|
||
margin-top: 0px;
|
||
}
|
||
</style>
|
||
<script>
|
||
function onLoadSucced() {
|
||
}
|
||
var table;
|
||
$(function () {
|
||
|
||
});
|
||
</script>
|
||
<script>
|
||
|
||
layui.use('laydate', function () {
|
||
var laydate = layui.laydate;
|
||
//执行一个laydate实例
|
||
laydate.render({
|
||
elem: '#dateFrom' //指定元素
|
||
});
|
||
//执行一个laydate实例
|
||
laydate.render({
|
||
elem: '#dateTo' //指定元素
|
||
});
|
||
});
|
||
var selectRow = {};
|
||
var winindex;
|
||
var layer;
|
||
var rowid;
|
||
layui.use(['laypage', 'layer', 'table', 'laydate', 'form'], function () {
|
||
var form = layui.form;
|
||
var laydate = layui.laydate;
|
||
layer = layui.layer;
|
||
table = layui.table;
|
||
|
||
|
||
$.ajax({
|
||
type: "GET",
|
||
url: '/Control/GetTableFieldSettings?module=SeatOrderRefundApply&eid=' + @Html.Raw(ViewBag.eid),
|
||
dataType: "json",
|
||
contentType: "application/json",
|
||
success: function (da) {
|
||
if (da.result) {
|
||
tableCols = [da.data];
|
||
table.render({
|
||
id: 'listReload',//列表别名ID
|
||
elem: '#tab_kefuzhuangtaiyi1',//表ID
|
||
url: 'GetHtmlList',
|
||
//even: true, //开启隔行背景
|
||
method: 'POST',
|
||
page: true,
|
||
//height: "full-160",
|
||
size: "sm",
|
||
cols: tableCols
|
||
|
||
//, request: {
|
||
// pageName: 'pageIndex' //页码的参数名称,默认:page
|
||
// , limitName: 'pageSize' //每页数据量的参数名,默认:limit
|
||
//}
|
||
, response: {
|
||
statusName: 'code' //规定数据状态的字段名称,默认:code
|
||
, statusCode: 0 //规定成功的状态码,默认:0
|
||
, msgName: 'message' //规定状态信息的字段名称,默认:msg
|
||
}
|
||
, parseData: function (res) { //res 即为原始返回的数据
|
||
return {
|
||
"code": res.code, //解析接口状态
|
||
"msg": res.msg, //解析提示文本
|
||
"count": res.count, //解析数据长度
|
||
"data": res.data //解析数据列表
|
||
};
|
||
}
|
||
, done: function (res, curr, count) {
|
||
// 保存行高的数组
|
||
//var height = [];
|
||
//// 遍历行,将所有行的高度保存到数组中
|
||
//$(".layui-table-body tr").each(function (index, val) {
|
||
// console.log("height-VAL" + index + $(val).height());
|
||
|
||
// height.push($(val).height());
|
||
//});
|
||
|
||
//console.log("height" + height);
|
||
//// 数组排序
|
||
//height.sort((a, b) => { return a - b });
|
||
//// 将行高设置为数组中最大的高度
|
||
//$(".layui-table-body tr").height(height[height.length - 1]);
|
||
|
||
//// 遍历表头,将表头的高度保存到数组中
|
||
//$(".layui-table-header th").each(function (index, val) {
|
||
// height.push($(val).height());
|
||
//});
|
||
//// 数组排序
|
||
//height.sort((a, b) => { return a - b });
|
||
//// 将表头的高度设置为数组中最大的高度
|
||
//$(".layui-table-header th").height(height[height.length - 1]);
|
||
|
||
//$(".layui-table-main tr").each(function (index, val) {
|
||
// console.log("height-VAL--" + index +"--" + $(val).height());
|
||
// $($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
|
||
// $($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
|
||
//});
|
||
|
||
|
||
//动态监听表头高度变化,冻结行跟着改变高度
|
||
$(".layui-table-header tr").resize(function () {
|
||
$(".layui-table-header tr").each(function (index, val) {
|
||
$($(".layui-table-fixed .layui-table-header table tr")[index]).height($(val).height());
|
||
});
|
||
});
|
||
//初始化高度,使得冻结行表头高度一致
|
||
$(".layui-table-header tr").each(function (index, val) {
|
||
$($(".layui-table-fixed .layui-table-header table tr")[index]).height($(val).height());
|
||
});
|
||
//动态监听表体高度变化,冻结行跟着改变高度
|
||
$(".layui-table-body tr").resize(function () {
|
||
$(".layui-table-body tr").each(function (index, val) {
|
||
$($(".layui-table-fixed .layui-table-body table tr")[index]).height($(val).height());
|
||
});
|
||
});
|
||
//初始化高度,使得冻结行表体高度一致
|
||
$(".layui-table-body tr").each(function (index, val) {
|
||
$($(".layui-table-fixed .layui-table-body table tr")[index]).height($(val).height());
|
||
});
|
||
|
||
}
|
||
, cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 新增
|
||
, limit: 10
|
||
, page: { //支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) - 详见文档
|
||
layout: ['limit', 'count', 'prev', 'page', 'next', 'skip', 'refresh'] //自定义分页布局
|
||
//,curr: 5 //设定初始在第 5 页
|
||
, groups: 5 //只显示 1 个连续页码
|
||
|
||
}
|
||
, where: $("#myform").serializeFormJSON()
|
||
});
|
||
} else {
|
||
layer.msg(da.message, { icon: 2 });
|
||
}
|
||
},
|
||
error: function () {
|
||
layer.msg('操作失败!', { icon: 2 });
|
||
}
|
||
});
|
||
|
||
|
||
//table.render({
|
||
// id: 'listReload'//列表别名ID
|
||
// , elem: '#tab_kefuzhuangtaiyi1'
|
||
// , url: 'GetHtmlList'
|
||
// , method: 'POST'
|
||
// //, cellMinWidth: 130 //全局定义常规单元格的最小宽度,layui 2.2.1 新增
|
||
// , page: true
|
||
// , limit: 30
|
||
// , height: "full-160"
|
||
// , size:"sm"
|
||
// , cols: [[
|
||
// { field: 'Id', title: 'ID', hide: true }
|
||
// , { field: 'Resid', title: '客户ID', width: 120 }
|
||
// , { field: 'Cname', title: '客户姓名', width: 120 }
|
||
// , { field: 'Deptname', title: '事业部', width: 150 }
|
||
// , { field: 'Deptname', title: '销售组', width: 100 }
|
||
// , { field: 'Eid', title: '成交客服', width: 110 }
|
||
// , { field: 'RefundTypeStr', title: '退款类型', width: 130}
|
||
// , { field: 'ComplaintId', title: '投诉单号', width: 130}
|
||
// , { field: 'Orderid', title: '退款订单号', width: 80 }
|
||
// , { field: 'PayStatusStr', title: '支付类型', width: 100}
|
||
// , { field: 'RefundNo', title: '退款人账号', width: 120 }
|
||
// , { field: 'RefundName', title: '退款人姓名', width: 150}
|
||
// , { field: 'RefundDateStr', title: '退款日期', width: 150 }
|
||
// , { field: 'BusinessStatusStr', title: '业务确认状态', width: 150}
|
||
// , { field: 'ApplyStatusStr', title: '申请状态', width: 150}
|
||
// , { field: 'RefundStatusStr', title: '退款状态', width: 150}
|
||
// , { field: 'Creator', title: '申请人', width: 150}
|
||
// , { field: 'CreateTime', title: '申请时间', width: 150}
|
||
// , { field: 'Updater', title: '确认人', width: 150}
|
||
// , { field: 'UpdateTime', title: '确认时间', width: 150}
|
||
|
||
// ]], where: $("#myform").serializeFormJSON()
|
||
// });
|
||
|
||
//监听行单击事件(单击事件为:rowDouble)
|
||
table.on('row(wochao)', function (obj) {
|
||
var data = obj.data;
|
||
//console.log(data);
|
||
//标注选中样式
|
||
obj.tr.addClass('self-table-click').siblings().removeClass('self-table-click');
|
||
selectRow = data;
|
||
});
|
||
var active = {
|
||
other1: function () {
|
||
if (selectRow.Id == "undefined" || selectRow.Id == null) {
|
||
layer.msg("请先选中一条记录!", { icon: 7 });
|
||
return;
|
||
}
|
||
|
||
if ((selectRow.BusinessStatus != "undefined" && selectRow.BusinessStatus != 1) || (selectRow.ApplyStatus != "undefined" && selectRow.ApplyStatus != 1)) {
|
||
layer.msg("已经审核确认过,无法重复审核!", { icon: 7 });
|
||
return;
|
||
}
|
||
|
||
winindex = layer.open({
|
||
type: 2,
|
||
title: "审核确认",
|
||
content: '/OrderRefundApply/Edit?id=' + selectRow.Id,
|
||
area: ['460px', '520px']
|
||
});
|
||
},
|
||
other2: function () {
|
||
var param = $("#myform").serializeFormJSON();
|
||
console.log("param===");
|
||
console.log(param);
|
||
|
||
var queryString = "";
|
||
for (var key in param) {
|
||
if (queryString != "") queryString += "&";
|
||
queryString += key + "=" + encodeURIComponent(param[key]);
|
||
}
|
||
console.log("queryString===");
|
||
console.log(queryString);
|
||
|
||
|
||
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/WeiXin/OrderRefundApply/Export?" + queryString)));
|
||
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
||
}
|
||
, search: function () {
|
||
//alert($("#myform").serialize());
|
||
//console.log($("#myform").serialize());
|
||
//console.log($("#myform").serializeFormJSON());
|
||
var param = $("#myform").serializeFormJSON();
|
||
selectRow = {};
|
||
table.reload('listReload', {
|
||
where: param,
|
||
page: {
|
||
curr: 1
|
||
}
|
||
});
|
||
}
|
||
};
|
||
$('.layui-btn').on('click', function () {
|
||
var othis = $(this), method = othis.data('method');
|
||
console.log(method);
|
||
active[method] ? active[method].call(this, othis) : '';
|
||
|
||
});
|
||
});
|
||
function Closed() {
|
||
layer.close(winindex);
|
||
}
|
||
function TableReload() {
|
||
selectRow = {};
|
||
table.reload('listReload', {
|
||
|
||
});
|
||
}
|
||
function GetIframeHtml(src) {
|
||
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
||
}
|
||
|
||
function ShowFollowUp(id,read) {
|
||
var title = "查看处理意见";
|
||
var high = "550px";
|
||
var wide = "650px";
|
||
if (read)
|
||
{
|
||
title = "查看申请附件";
|
||
high = "350px";
|
||
wide = "480px";
|
||
}
|
||
|
||
layui.use('layer', function () {
|
||
var layer = layui.layer;
|
||
winindex = layer.open({
|
||
title: title,
|
||
type: 2,
|
||
content: '/OrderRefundApply/OrderRefundApplyHandle?id=' + id + '&read=' + read,
|
||
area: [wide, high]
|
||
});
|
||
});
|
||
}
|
||
|
||
|
||
function ViewContract(orderId) {
|
||
if (!orderId) {
|
||
alert("参数错误!");
|
||
return;
|
||
}
|
||
$("#modalwindow").html(GetIframeHtml("/WeiXin/SzzyOrderRefund/ViewContract?orderId=" + orderId + "&Ieguid=" + GetGuid()));
|
||
$("#modalwindow").window({ title: '退款协议', width: 830, height: 550, iconCls: 'icon-edit' }).window('open');
|
||
}
|
||
|
||
function getDataGridHeader() {
|
||
var newcolumns = [];
|
||
var columns = tableCols[0];
|
||
for (var i = 0; i < columns.length; i++) {
|
||
if (columns[i].field != "Id" && columns[i].field != "Operator") {
|
||
newcolumns.push(columns[i])
|
||
};
|
||
}
|
||
return newcolumns;
|
||
}
|
||
</script>
|
||
|
||
<script type="text/html" id="reasonTpl">
|
||
{{# for(var i=0;i<d.reasonList.length;i++) { }}
|
||
<span>{{d.reasonList[i]}}</span>
|
||
<br />
|
||
{{# } }}
|
||
</script>
|
||
|
||
<script type="text/html" id="ordersTpl">
|
||
{{# for(var i=0;i<d.orderList.length;i++) { }}
|
||
<span>{{d.orderList[i]}}</span>
|
||
<br />
|
||
{{# } }}
|
||
</script>
|
||
|
||
<script type="text/html" id="pricesTpl">
|
||
{{# for(var i=0;i<d.priceList.length;i++) { }}
|
||
<span>{{d.priceList[i]}}</span>
|
||
<br />
|
||
{{# } }}
|
||
</script>
|
||
|
||
<script type="text/html" id="operatorTpl">
|
||
{{# if(d.ApplyStatus == 4) { }}
|
||
<a class="operator" href="javascript:void(0)" onclick="ViewContract({{d.Orderid}})">查看退款协议</a>
|
||
{{# } }}
|
||
{{# if(d.HasComplianceRemark) { }}
|
||
<br />
|
||
<a class="operator" href="javascript:void(0)" onclick="ShowFollowUp({{ d.Id }}, false)">查看处理意见</a>
|
||
{{# } }}
|
||
{{# if(d.HasAttachment > 0) { }}
|
||
<br />
|
||
<a class="operator" href="javascript:void(0)" onclick="ShowFollowUp({{ d.Id }}, true)">查看附件</a>
|
||
{{# } }}
|
||
</script>
|
||
|
||
<script type="text/html" id="resIdTpl">
|
||
<span><a href="javascript:parent.parent.ChildAddTab('客户详细', '/Csvr/CustomerInfo/CustomerDetail?resid={{d.Resid}}', '')">{{d.Resid}}</a></span>
|
||
</script>
|
||
|