251 lines
9.7 KiB
Plaintext
251 lines
9.7 KiB
Plaintext
@using WX.CRM.WebHelper
|
||
@{
|
||
/**/
|
||
|
||
/**/
|
||
|
||
ViewBag.Title = "bas_salesDepartment";
|
||
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>
|
||
<div class="layui-fluid" style="padding-left:0px;padding-top:10px;">
|
||
|
||
|
||
<style>
|
||
.self-table-click td {
|
||
background-color: #f3ebbc;
|
||
}
|
||
</style>
|
||
<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;">
|
||
@Html.Action("ToolBarNew", "Control", new
|
||
{
|
||
tool = ViewBag.ToolBar as ToolBar,
|
||
otherToolBars = new ToolBarNew[] {
|
||
}
|
||
|
||
})
|
||
@*<input class="layui-btn layui-btn-sm layui-btn-normal" data-method="other4" type="button" value="选择客户" />*@
|
||
@*<input class="layui-btn layui-btn-sm layui-btn-ok" data-method="add" type="button" value="+新增" />
|
||
<input class="layui-btn layui-btn-sm layui-btn-normal" data-method="update" type="reset" value="修改" />
|
||
<input class="layui-btn layui-btn-sm layui-btn-reset" data-method="delete" type="reset" value="删除" />*@
|
||
</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">
|
||
订单状态:
|
||
<div class="layui-inline">
|
||
<select name="ORDERSTATUS" style="height:35px;">
|
||
<option value="">全部</option>
|
||
<option value="0">待审</option>
|
||
<option value="1">审核通过</option>
|
||
<option value="2">审核不通</option>
|
||
</select>
|
||
</div>
|
||
赠送订单ID:
|
||
<div class="layui-inline">
|
||
<input type="text" name="ORDERID" style="width:120px" />
|
||
</div>
|
||
订单ID:
|
||
<div class="layui-inline">
|
||
<input type="text" name="MAINORDERID" style="width:120px" />
|
||
</div>
|
||
客户ID:
|
||
<div class="layui-inline">
|
||
<input type="text" name="RESID" style="width:120px" />
|
||
</div>
|
||
用户名:
|
||
<div class="layui-inline">
|
||
<input type="text" name="SOFTUSERNAME" style="width:120px" />
|
||
</div>
|
||
下单日期:
|
||
<div class="layui-inline">
|
||
<input class="layui-input" placeholder="开始日" name="STIME" id="stime" style="width:120px;">
|
||
</div>
|
||
<div class="layui-inline">
|
||
<input class="layui-input" placeholder="结束日" name="ETIME" id="etime" style="width:120px;">
|
||
</div>
|
||
<div class="layui-inline">
|
||
<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="清空" />
|
||
</div>
|
||
|
||
</div>
|
||
</form>
|
||
<table class="layui-hide" id="tabl1" lay-filter="tabl1"></table>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<script>
|
||
layui.use('laydate', function () {
|
||
var laydate = layui.laydate;
|
||
//执行一个laydate实例
|
||
laydate.render({
|
||
elem: '#stime' //指定元素
|
||
});
|
||
//执行一个laydate实例
|
||
laydate.render({
|
||
elem: '#etime' //指定元素
|
||
});
|
||
|
||
//执行一个laydate实例
|
||
laydate.render({
|
||
elem: '#statustime' //指定元素
|
||
});
|
||
|
||
//执行一个laydate实例
|
||
laydate.render({
|
||
elem: '#statusEndtime' //指定元素
|
||
});
|
||
});
|
||
var selectRow = {};
|
||
var winindex;
|
||
var layer;
|
||
var rowid;
|
||
//注意:选项卡 依赖 element 模块,否则无法进行功能性操作
|
||
layui.use(['laypage', 'layer', 'table', 'laydate', 'form'], function () {
|
||
var form = layui.form;
|
||
var laydate = layui.laydate;
|
||
layer = layui.layer;
|
||
table = layui.table;
|
||
table.render({
|
||
id: 'listReload'//列表别名ID
|
||
, elem: '#tabl1'
|
||
, url: 'HandleGifList'
|
||
, method: 'POST'
|
||
, cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 新增
|
||
, page: true
|
||
, limit: 30
|
||
, height: "full-160"
|
||
, size: "sm"
|
||
, cols: [[
|
||
{ field: 'MAINORDERID', title: '关联订单号', width: 100 }
|
||
, { field: 'MAINPRODUCTNAME', title: '正价产品' }
|
||
, { field: 'MAINPDAYS', title: '正价天数', width: 100 }
|
||
, { field: 'MAINPGIF', title: '正价赠送天数', width: 110 }
|
||
, { field: 'ORDERID', title: '赠送订单ID', width: 120 }
|
||
, { field: 'GIFTDAYS', title: '赠送天数', width: 100 }
|
||
, { field: 'SUBPRODUCTNAME', title: '赠送产品', width: 100 }
|
||
, { field: 'SOFTUSERNAME', title: '用户名' }
|
||
, { field: 'CTIME', title: '下单时间' }
|
||
, {
|
||
field: 'ORDERSTATUS', title: '状态', align: "center", width: 120, templet: function (d) {
|
||
if (d.ORDERSTATUS == 1) {
|
||
return "<font color='#5FB878'>审核通过</font>";
|
||
} else if (d.ORDERSTATUS == 2)
|
||
return "<font color='#d6941c'>审核不通过</font>";
|
||
else if (d.ORDERSTATUS == 0)
|
||
return "<font color='#c2c2c2'>待审核</font>";
|
||
else if (d.ORDERSTATUS == 3)
|
||
return "<font color='red'>已关闭</font>";
|
||
}
|
||
}
|
||
, { field: 'OPTIME', title: '开通时间' }
|
||
, { field: 'MEMO', title: '申请理由', width: 150 }
|
||
, { field: 'CHECKMEMO', title: '审核备注', width: 150 }
|
||
, { field: 'CLOSEMEMO', title: '关闭说明', width: 150 }
|
||
|
||
]], where: $("#myform").serializeFormJSON()
|
||
});
|
||
//监听行单击事件
|
||
table.on('row(tabl1)', function (obj) {
|
||
var data = obj.data;
|
||
//标注选中样式
|
||
console.log(data);
|
||
obj.tr.addClass('self-table-click').siblings().removeClass('self-table-click');
|
||
selectRow = data;
|
||
});
|
||
|
||
var active = {
|
||
add: function () {
|
||
winindex = layer.open({
|
||
type: 2,
|
||
content: 'HandleGifAdd',
|
||
title: "新增赠送订单",
|
||
area: ['600px', '500px']
|
||
});
|
||
}, search: function () {
|
||
var param = $("#myform").serializeFormJSON();
|
||
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 ShowLog(id) {
|
||
var width = $(window).width() * 0.8;
|
||
var height = $(window).height() * 0.8;
|
||
layer.open({
|
||
type: 2,
|
||
content: '/Cms/CmsUp/Log?Id=' + id,
|
||
title: "明细",
|
||
area: [width + 'px', height + 'px']
|
||
});
|
||
}
|
||
function Closed() {
|
||
layer.close(winindex);
|
||
}
|
||
function TableReload() {
|
||
table.reload('listReload', {
|
||
|
||
});
|
||
}
|
||
</script>
|
||
<script type="text/html" id="agentTpl">
|
||
{{# if(d.ISOUTERAGENT == '1'){ }}
|
||
是
|
||
{{# } else if(d.ISOUTERAGENT == '0') { }}
|
||
否
|
||
|
||
{{# } }}
|
||
</script>
|
||
|
||
<script type="text/html" id="typeTpl">
|
||
{{# if(d.NEWSTYPE == "activity"){ }}
|
||
活动
|
||
{{# } else if(d.NEWSTYPE == "plan"){ }}
|
||
策划
|
||
{{# } else if(d.NEWSTYPE == "ad"){ }}
|
||
推广
|
||
{{# } else if(d.NEWSTYPE == "service"){ }}
|
||
客户服务内容
|
||
{{# } }}
|
||
</script>
|
||
<script type="text/html" id="statusTpl">
|
||
{{# if(d.STATUS == 1){ }}
|
||
<img src="/Content/Images/checked.png" style="height:20px;width:20px;" />
|
||
@*<i class="layui-icon layui-icon-ok layui-bg-green"></i>*@
|
||
{{# } else if(d.STATUS == -1) { }}
|
||
@*<i class="layui-icon layui-icon-close layui-bg-red"></i>*@
|
||
<img src="/Content/Images/unchecked.png" style="height:18px;width:18px;" />
|
||
{{# } else { }}
|
||
@*<i class="layui-icon layui-icon-more layui-bg-blue"></i>*@
|
||
<img src="/Content/Images/checking.png" style="height:16px;width:16px;" />
|
||
{{# } }}
|
||
</script>
|
||
<script type="text/html" id="attTpl">
|
||
{{# if(d.ATT != null){ }}
|
||
<a href="{{d.ATT}}" target="_blank" class="layui-table-link">下载</a>
|
||
{{# } }}
|
||
</script> |