|
|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
- <title>订单管理</title>
|
|
|
+ <title>融资订单查询</title>
|
|
|
<meta name="renderer" content="webkit">
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
|
@@ -18,45 +18,28 @@
|
|
|
<div class="tiaojian-part2 fr demoTable">
|
|
|
<button class="layui-btn order-bnt1" data-type="reload" >搜索</button>
|
|
|
<button class="layui-btn order-bnt2" data-type="reset">重置</button>
|
|
|
+ <button class="layui-btn order-bnt2" data-type="export">数据导出</button>
|
|
|
<a href="#" id="toggle" class="top">收起</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<form class="layui-form" action="javascript:void(0)" id = "orderForm">
|
|
|
<div class="order-select back-border" id="content">
|
|
|
-
|
|
|
<div class="layui-inline">
|
|
|
<label class="f12-gray4">订单编号:</label>
|
|
|
- <input onchange = "changeSelectCon(0,this,'inp')" class="search-select" type="tel" name="orderNo" id ="orderNo" lay-verify="orderNo" autocomplete="off" placeholder="请输入订单编号" class="y-left-input">
|
|
|
+ <input onchange = "changeSelectCon(0,this,'inp')" class="search-select" type="tel" name="orderNo" id ="orderNo" lay-verify="orderNo" autocomplete="off" placeholder="请输入融资订单编号" class="y-left-input">
|
|
|
</div>
|
|
|
<div class="layui-inline">
|
|
|
- <label class="f12-gray4">创建时间:</label>
|
|
|
+ <label class="f12-gray4">日期:</label>
|
|
|
<input class="search-select" type="text" id="dates" placeholder="日期(区间)" readonly />
|
|
|
</div>
|
|
|
<div class="layui-inline">
|
|
|
<label class="f12-gray4">状态:</label>
|
|
|
<div class="" style="display:inline-block" id = 'state'></div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="layui-inline">
|
|
|
- <label class="f12-gray4">机台号:</label>
|
|
|
- <input onchange = "changeSelectCon(3,this,'inp')" class="search-select" type="tel" name="equipmentId" id ="equipmentId" lay-verify="equipmentId" autocomplete="off" placeholder="请输入机器号" class="layui-input">
|
|
|
- </div>
|
|
|
<div class="d-dashed" style="margin: 10px 0;"></div>
|
|
|
<div class="layui-inline">
|
|
|
- <label class="f12-gray4">机器名称:</label>
|
|
|
- <input onchange = "changeSelectCon(4,this,'inp')" class="search-select" type="tel" name="equipmentName" id ="equipmentName" lay-verify="equipmentName" autocomplete="off" placeholder="请输入机器名称" class="layui-input">
|
|
|
- </div>
|
|
|
- <div class="layui-inline">
|
|
|
- <label class="f12-gray4">货道号:</label>
|
|
|
- <input onchange = "changeSelectCon(5,this,'inp')" class="search-select" type="tel" name="freightwayId" id ="freightwayId" lay-verify="freightwayId" autocomplete="off" placeholder="请输入货道号" class="layui-input">
|
|
|
- </div>
|
|
|
- <div class="layui-inline">
|
|
|
- <label class="f12-gray4">支付方式:</label>
|
|
|
- <div class="" style="display:inline-block" id = 'payMode'></div>
|
|
|
- </div>
|
|
|
- <div class="layui-inline">
|
|
|
- <label class="f12-gray4">玩家ID:</label>
|
|
|
- <input onchange = "changeSelectCon(7,this,'inp')" class="search-select" type="tel" name="personId" id ="personId" lay-verify="personId" autocomplete="off" placeholder="请输入玩家ID" class="layui-input">
|
|
|
+ <label class="f12-gray4">企业名称:</label>
|
|
|
+ <input onchange = "changeSelectCon(3,this,'inp')" class="search-select" type="tel" name="corName" id ="corName" lay-verify="corName" autocomplete="off" placeholder="请输入企业名称" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
@@ -71,12 +54,29 @@
|
|
|
<script type="text/html" id="barDemo">
|
|
|
<a class="layui-btn layui-btn-xs" lay-event="look">订单详情</a>
|
|
|
</script>
|
|
|
+ <script type="text/html" id="productName">
|
|
|
+ <div class="layui-table-cell laytable-cell-1-orderno" onclick="productName({{d.orderno}})" >
|
|
|
+ {{# if(isEmpty(d.productName)){ }}
|
|
|
+ 无数据
|
|
|
+ {{# }else { }}
|
|
|
+ {{d.productName}}
|
|
|
+ {{# }}}
|
|
|
+ </div>
|
|
|
+ </script>
|
|
|
+
|
|
|
<script>
|
|
|
$("#toggle").click(function() {
|
|
|
$(this).html($("#content").is(":hidden") ? "收起" + "<i class='iconfont up iconSelect_drop-down'/></i>" : "展开" +
|
|
|
"<i class='iconfont up iconSelect_drop-down'/></i>");
|
|
|
$("#content").slideToggle();
|
|
|
});
|
|
|
+ var mainOrderState = getTempVal("mainOrderState");
|
|
|
+ // 首页跳转数据
|
|
|
+ if (isEmpty(mainOrderState)) {
|
|
|
+ mainOrderState = " ";
|
|
|
+ } else {
|
|
|
+ setTempVal("mainOrderState"," ");
|
|
|
+ }
|
|
|
layui.use(['table','laydate','form'], function(){
|
|
|
var laydate = layui.laydate;
|
|
|
//日期范围
|
|
|
@@ -89,15 +89,14 @@
|
|
|
}
|
|
|
});
|
|
|
form = layui.form;
|
|
|
- initSelect('state', "IS_DRAW", "state", '', true);
|
|
|
- initSelect('payMode', "PAY_TYPE", "payMode", '', true);
|
|
|
+ initSelect('state', "ORDER_STT", "state", mainOrderState, true);
|
|
|
+ if (mainOrderState != " ") {
|
|
|
+ changeSelectCon(2, $("select[name='state']"), "sel");
|
|
|
+ }
|
|
|
form.on('select(state)', function(data){
|
|
|
- changeSelectCon(2, data.elem, "sel","state");
|
|
|
- });
|
|
|
- form.on('select(payMode)', function(data){
|
|
|
- changeSelectCon(6, data.elem, "sel","payMode");
|
|
|
- });
|
|
|
- form.render();
|
|
|
+ changeSelectCon(2, data.elem, "sel");
|
|
|
+ });
|
|
|
+ form.render();
|
|
|
});
|
|
|
var table;
|
|
|
layui.use('table', function(){
|
|
|
@@ -108,23 +107,34 @@
|
|
|
,elem: '#orderManage'
|
|
|
,limit:10
|
|
|
// ,height: 315
|
|
|
- ,url: 'ShOrderManageAction/queryOrder' //数据接口
|
|
|
+ ,url: 'OrderManageAction/queryOrder' //数据接口
|
|
|
,method: 'post'
|
|
|
- ,where:{MINView:"JSON"}
|
|
|
+ ,where:{MINView:"JSON",allFlag:"1",state:mainOrderState.trim()}
|
|
|
,page: true //开启分页
|
|
|
,cols: [[ //表头
|
|
|
{field:'num', title: '序号',width:'5%', type:'numbers', fixed: true, align: 'center'}
|
|
|
- ,{field: 'id', title: '订单编号', width:'10%', sort: true, fixed: 'left'}
|
|
|
- ,{field: 'productName', title: '产品信息', width:'12%'}
|
|
|
- ,{field: 'equipmentId', title: '机器号', width:'8%'}
|
|
|
- ,{field: 'equipmentName', title: '机器名称', width:'8%'}
|
|
|
- ,{field: 'equrelId', title: '货道编号', width:'8%'}
|
|
|
- ,{field: 'personId', title: '玩家ID', width:'8%'}
|
|
|
- ,{field: 'personName', title: '消费者信息', width:'8%'}
|
|
|
- ,{field: 'isDrawdesc', title: '状态', width:'8%'}
|
|
|
- ,{field: 'payModedesc', title: '支付类型', width:'8%'}
|
|
|
- ,{field: 'orderAmt', title: '订单价格', width:'8%'}
|
|
|
- ,{field: 'createTime', title: '创建时间', width: '14%'}
|
|
|
+ ,{field: 'orderno', title: '融资订单编号', width:'10%', sort: true, fixed: 'left'}
|
|
|
+ ,{field: 'productName', title: '产品信息', width:'12%',templet: '#productName'}
|
|
|
+ //,{field: 'productNum', title: '货品数量', width:'8%'}
|
|
|
+ ,{field: 'apprivePassDate', title: '审批通过日期', width: '14%'}
|
|
|
+ ,{field: 'companyName', title: '企业名称', width: '14%'}
|
|
|
+ ,{field: 'term', title: '期限(天)', width: '8%', }
|
|
|
+ ,{
|
|
|
+ field: 'expiredDate',
|
|
|
+ title: '到期日',
|
|
|
+ width: '14%',
|
|
|
+ templet:function(d){
|
|
|
+ if(d.term > 90 && typeof(d.expiredDate) != "undefined"){
|
|
|
+ return d.expiredDate.substring(0,10);
|
|
|
+ } else if(typeof(d.expiredDate) != "undefined"){
|
|
|
+ return d.expiredDate;
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ,{field: 'sttDesc', title: '状态', width: '10%', sort: true}
|
|
|
+ ,{field: 'overdueState', title: '宽限期', width: '8%', sort: true}
|
|
|
,{field: 'operate', title: '操作', width: '14%', toolbar: '#barDemo',fixed: 'right'}
|
|
|
]]
|
|
|
,done: function(res, curr, count){
|
|
|
@@ -177,6 +187,9 @@
|
|
|
$('#orderForm')[0].reset();
|
|
|
$("#conditions").html('<div class="fl f12-gray4-op mt4">所选条件:</div>');
|
|
|
}
|
|
|
+ ,export : function(){
|
|
|
+ exportExcel();
|
|
|
+ }
|
|
|
};
|
|
|
$('.layui-btn').on('click', function(){
|
|
|
var type = $(this).data('type');
|
|
|
@@ -186,11 +199,46 @@
|
|
|
});
|
|
|
function lookDetail(data) {
|
|
|
// 寄存当前数据
|
|
|
- layui.sessionData("ROW_DATA", {key:"NOW_ROW", value : data});
|
|
|
- openMainTabPage('101006-01', '订单详情', 'orderManage/details.html', '', '101006', loadAA);
|
|
|
+ layui.sessionData("ROW_DATA", {key:"NOW_ROW", value : data.orderno});
|
|
|
+ openMainTabPage('215003-02', '订单详情', 'orderManage/details.html', '', '020001', loadAA);
|
|
|
+ /* layer.open({
|
|
|
+ type: 2,
|
|
|
+ title: '查看订单详情',
|
|
|
+ shadeClose: true,
|
|
|
+ shade:0.6,
|
|
|
+ area: ['85%', '85%'],
|
|
|
+ content: 'detail.html'
|
|
|
+ }); */
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ //产品
|
|
|
+ function productName(orderno) {
|
|
|
+ var data ={};
|
|
|
+ data.orderno = orderno;
|
|
|
+ // 寄存当前数据
|
|
|
+ layui.sessionData("ROW_DATA", {key:"NOW_ROW", value:data});
|
|
|
+ layer.open({
|
|
|
+ type: 2,
|
|
|
+ title: '产品列表',
|
|
|
+ shadeClose: true,
|
|
|
+ shade:0.6,
|
|
|
+ area: ['45%', '45%'],
|
|
|
+ content: 'productList.html'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function exportExcel(){
|
|
|
+ //状态
|
|
|
+ var state = $("#state").find("option:selected").val();
|
|
|
+ //时间
|
|
|
+ var dates = $("#dates").val();
|
|
|
+ //订单号
|
|
|
+ var orderNo = $("#orderNo").val();
|
|
|
+ //企业名称
|
|
|
+ var corName = $("#corName").val();
|
|
|
+ window.open(encodeURI("../../OrderManageAction/exportExcel?orderNo="+orderNo+"&corName="+corName+"&state="+state+"&dates="+dates));
|
|
|
+ }
|
|
|
+
|
|
|
function loadAA() {
|
|
|
//状态
|
|
|
var state = $("#state").find("option:selected").val();
|
|
|
@@ -198,12 +246,9 @@
|
|
|
var dates = $("#dates").val();
|
|
|
//订单号
|
|
|
var orderNo = $("#orderNo").val();
|
|
|
-
|
|
|
- var equipmentId = $("#equipmentId").val();
|
|
|
- var equipmentName = $("#equipmentName").val();
|
|
|
- var freightwayId = $("#freightwayId").val();
|
|
|
- var payMode = $("#payMode").find("option:selected").val();
|
|
|
- var playerId = $("#personId").val();
|
|
|
+ //企业名称
|
|
|
+ var corName = $("#corName").val();
|
|
|
+
|
|
|
//执行重载
|
|
|
table.reload('orderManage', {
|
|
|
page: {
|
|
|
@@ -213,16 +258,12 @@
|
|
|
orderNo : orderNo,
|
|
|
state : state,
|
|
|
dates : dates,
|
|
|
- equipmentId : equipmentId,
|
|
|
- equipmentName : equipmentName,
|
|
|
- freightwayId : freightwayId,
|
|
|
- payMode : payMode,
|
|
|
- playerId : playerId
|
|
|
+ corName : corName,
|
|
|
+ allFlag:"1"
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
function changeSelectCon(index, t, type, dateValue){
|
|
|
- debugger;
|
|
|
if (type == "date") {
|
|
|
if (isEmpty(dateValue)) {
|
|
|
$("#search" + index).remove();
|
|
|
@@ -253,7 +294,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- var array = new Array('订单编号','创建时间','状态','机台号','机器名称','货道号','支付方式','玩家ID');
|
|
|
+ var array = new Array('订单编号','日期','状态','企业名称');
|
|
|
function getSelectConHtml(index, t, type,dateValue){
|
|
|
var name;
|
|
|
var value;
|
|
|
@@ -264,13 +305,7 @@
|
|
|
value = dateValue;
|
|
|
}
|
|
|
if(type == "sel"){
|
|
|
- if(index == '2'){
|
|
|
- value = $("#state").find("option:selected").text();
|
|
|
- }
|
|
|
- if(index == '6'){
|
|
|
- value = $("#payMode").find("option:selected").text();
|
|
|
- }
|
|
|
-
|
|
|
+ value = $("#state").find("option:selected").text();
|
|
|
}
|
|
|
if (type == "date") {
|
|
|
name = $("#"+t).attr("id");
|
|
|
@@ -288,8 +323,7 @@
|
|
|
}
|
|
|
function removeSearch(t) {
|
|
|
if ($(t).attr("name") == 'subjects') {
|
|
|
- initSelect('state', "IS_DRAW", "state", ' ', true);
|
|
|
- initSelect('payMode', "PAY_TYPE", "payMode", ' ', true);
|
|
|
+ initSelect('state', "ORDER_STT", "state", ' ', true);
|
|
|
form.render();
|
|
|
$(t).remove();
|
|
|
} else {
|