184 lines
7.4 KiB
Plaintext
184 lines
7.4 KiB
Plaintext
@using CRM.Core.Model.Entity
|
||
@using Core.Web.WebHelper
|
||
@{
|
||
ViewBag.Title = "Index";
|
||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||
}
|
||
|
||
<div class="x-body">
|
||
<div class="layui-btn-group" style="padding-bottom:10px;">
|
||
@*<button class="layui-btn" data-method="other1">确认到款</button>
|
||
<button class="layui-btn" data-method="other2">批量确认</button>
|
||
<button class="layui-btn" data-method="import">导入</button>
|
||
<button class="layui-btn" data-method="other3">流水号检查</button>*@
|
||
@Html.Action("ToolBar", "Home",
|
||
new {
|
||
area="",
|
||
rightcode = (ViewBag.rightCode as string),
|
||
otherToolBars = new ToolBar[]
|
||
{
|
||
new Core.Web.WebHelper.ToolBar(ToolBarConfig.CONST_Other1, "确认到款", "layui-btn-normal","") ,
|
||
new Core.Web.WebHelper.ToolBar(ToolBarConfig.CONST_Other2, "批量确认", "layui-btn-normal","") ,
|
||
new Core.Web.WebHelper.ToolBar(ToolBarConfig.CONST_Other3, "流水号检查", "layui-btn-normal","") ,
|
||
new Core.Web.WebHelper.ToolBar(ToolBarConfig.CONST_Other4, "到账检查", "layui-btn-normal","") ,
|
||
}
|
||
}
|
||
)
|
||
</div>
|
||
<div id="mytoolbar">
|
||
事业部:
|
||
<div class="layui-inline">
|
||
<select name="slt_companyCode" style="height:35px;">
|
||
<option value="">请选择</option>
|
||
@foreach (var item in ViewBag.companyList as List<Bas_CompanyVirtual>)
|
||
{
|
||
<option value="@item.CompanyCode">@item.CompanyName</option>
|
||
}
|
||
</select>
|
||
</div>
|
||
客户ID:
|
||
<div class="layui-inline">
|
||
<input type="text" name="txt_resid" placeholder="请输入" autocomplete="off" class="layui-input" value="">
|
||
</div>
|
||
用户名:
|
||
<div class="layui-inline">
|
||
<input type="text" name="txt_softusername" placeholder="请输入" autocomplete="off" class="layui-input">
|
||
</div>
|
||
时间:
|
||
<div class="layui-inline">
|
||
<input class="layui-input" placeholder="开始日" name="txt_sTime" id="start" style="width:120px;">
|
||
</div>
|
||
<div class="layui-inline">
|
||
<input class="layui-input" placeholder="截止日" name="txt_eTime" id="end" style="width:120px;">
|
||
</div>
|
||
状态:<div class="layui-inline">
|
||
<select name="slt_status" style="height:35px;">
|
||
<option value="">请选择</option>
|
||
<option value="100">未通过</option>
|
||
<option value="200">已通过</option>
|
||
|
||
</select>
|
||
</div>
|
||
<button class="layui-btn" data-type="reload" id="search">搜索</button>
|
||
</div>
|
||
|
||
<table class="layui-hide" id="tabl1" lay-filter="tabl1"></table>
|
||
</div>
|
||
<script>
|
||
var selectRow = {};
|
||
|
||
layui.use(['table', 'laydate', 'layer'], function () {
|
||
var table = layui.table
|
||
, laydate = layui.laydate
|
||
, layer = layui.layer;
|
||
|
||
laydate.render({ elem: '#start' });
|
||
|
||
laydate.render({ elem: '#end' });
|
||
|
||
table.render({
|
||
id: 'testReload',//列表别名ID
|
||
elem: '#tabl1',//表ID
|
||
url: '/SoftUserGetLog/Index',
|
||
method: 'POST',
|
||
cols: [[
|
||
//{ type: 'checkbox' },
|
||
{ field: 'numbers', type: 'numbers' }
|
||
,{ field: 'resid', title: '客户ID', width: 200 }
|
||
, { field: 'softusername', title: '用户名', width: 180 }
|
||
, { field: 'source', title: '首次注册事业部', width: 120 }
|
||
, { field: 'deptcode', title: '请求事业部', width: 120 }
|
||
, {
|
||
field: 'status', title: '状态', width: 120, templet: function (d) {
|
||
if (d.status == 200) {
|
||
return "<font color='#009688'>通过</font>";
|
||
} if (d.status == 100) {
|
||
return "<font color='red'>未通过</font>";
|
||
}
|
||
}
|
||
}
|
||
, {
|
||
field: 'content', title: '规则', templet: function (d) {
|
||
return d.content.replaceAll("【", "<font color='#009688'>【").replaceAll("】", "】</font>").replaceAll("《", "<font color='red'>【").replaceAll("》", "】</font>")
|
||
}
|
||
}
|
||
, { field: 'ctime', title: '时间', width: 200 }
|
||
, { field: 'eid', title: '工号', width: 120 }
|
||
]]
|
||
, page: { //支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) - 详见文档
|
||
layout: ['limit', 'count', 'prev', 'page', 'next', 'skip', 'refresh'] //自定义分页布局
|
||
//,curr: 5 //设定初始在第 5 页
|
||
, groups: 5 //只显示 1 个连续页码
|
||
|
||
},
|
||
where: GetParams("mytoolbar")
|
||
|
||
});
|
||
|
||
$('#mytoolbar .layui-btn').on('click', function (data) {
|
||
var param = GetParams("mytoolbar");
|
||
|
||
table.reload('testReload', {
|
||
page: {
|
||
curr: 1 //重新从第 1 页开始
|
||
},
|
||
where: param
|
||
});
|
||
});
|
||
|
||
//监听行单击事件
|
||
table.on('row(tabl1)', function (obj) {
|
||
var data = obj.data;
|
||
//obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');
|
||
obj.tr.addClass('self-table-click').siblings().removeClass('self-table-click');
|
||
|
||
selectRow = data;
|
||
});
|
||
|
||
var active = {
|
||
check: function () {
|
||
if (selectRow.id === "undefined" || selectRow.id == null) {
|
||
layer.alert("请先选中一条记录!", { title: '提示' });
|
||
return;
|
||
}
|
||
layer.confirm('确定人工干预通过审核吗?', { icon: 3, title: '提示' }, function (index) {
|
||
layer.close(index);
|
||
//console.log(ids);
|
||
$.r_post('Check', { id: selectRow.id }, function (rsp) {
|
||
if (rsp.result) {
|
||
layer.msg('审核成功!', { icon: 1 }, function () {
|
||
var refresh = $(".layui-laypage-refresh");
|
||
if (refresh.length == 0) {
|
||
$("#search").click();
|
||
}
|
||
else {
|
||
refresh[0].click();
|
||
}
|
||
});
|
||
}
|
||
else {
|
||
//layer.msg('操作失败!' + rsp.retmsg, { icon: 2 });
|
||
layer.alert(rsp.retmsg);
|
||
}
|
||
});
|
||
});
|
||
|
||
}
|
||
};
|
||
|
||
$('.layui-btn-group .layui-btn').on('click', function () {
|
||
var othis = $(this), method = othis.data('method');
|
||
active[method] ? active[method].call(this, othis) : '';
|
||
});
|
||
|
||
});
|
||
|
||
|
||
</script>
|
||
@*<script type="text/html" id="auditTpl">
|
||
{{# if(d.auditstatus == '1'){ }}
|
||
已确认
|
||
{{# } else if(d.auditstatus == '0' && d.orderid != '0') { }}
|
||
未确认
|
||
{{# } }}
|
||
</script>*@ |