|
|
@@ -25,39 +25,46 @@
|
|
|
<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">
|
|
|
</div>
|
|
|
<div class="layui-inline">
|
|
|
- <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">
|
|
|
+ <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">
|
|
|
+ <input onchange = "changeSelectCon(4,this,'inp')" class="search-select" type="tel" name="playerName" id ="playerName" lay-verify="playerName" autocomplete="off" placeholder="请输入玩家名称" class="layui-input">
|
|
|
</div>
|
|
|
- <!--<div class="layui-inline">
|
|
|
- <label class="f12-gray4">货道号:</label>
|
|
|
+ <div class="layui-inline">
|
|
|
<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>
|
|
|
+ <DIV class="d-dashed" style="margin: 10px 0;"></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">
|
|
|
+ <input onchange = "changeSelectCon(7,this,'inp')" class="search-select" type="tel" name="productName" id ="productName" lay-verify="productName" autocomplete="off" placeholder="请输入商品名称" class="layui-input">
|
|
|
+ </div>
|
|
|
+ <div class="layui-inline">
|
|
|
+ <div class="" style="display:inline-block" id = 'gameRule'></div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-inline">
|
|
|
+ <div class="" style="display:inline-block" id = 'pickupStt'></div>
|
|
|
</div>
|
|
|
+ <div class="layui-inline">
|
|
|
+ <div class="" style="display:inline-block" id = 'isDraw'></div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-inline">
|
|
|
+ <input onchange = "changeSelectCon(11,this,'inp')" class="search-select" type="tel" name="deliveryId" id ="deliveryId" lay-verify="deliveryId" 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>
|
|
|
@@ -85,8 +92,8 @@
|
|
|
<script src="../../js/min-loader-next.js"></script>
|
|
|
<script type="text/html" id="barDemo">
|
|
|
<!--<a class="layui-btn layui-btn-xs" lay-event="look">订单详情</a>-->
|
|
|
- {{# if(d.state == '00' && d.isUsed == '01' && d.pickupStt == '00' ){ }}
|
|
|
- <a class="layui-btn layui-btn-xs" lay-event="cancel">订单作废</a>
|
|
|
+ {{# if(d.state == '00' && d.pickupStt == '00' ){ }}
|
|
|
+ <a class="layui-btn layui-btn-xs" lay-event="cancel">作废</a>
|
|
|
{{# } }}
|
|
|
</script>
|
|
|
<script>
|
|
|
@@ -107,14 +114,28 @@
|
|
|
}
|
|
|
});
|
|
|
form = layui.form;
|
|
|
- initSelect('state', "IS_DRAW", "state", '', true);
|
|
|
- initSelect('payMode', "PAY_TYPE", "payMode", '', true);
|
|
|
+ initSelect('state', "PAY_STATE", "state", '', true,'支付状态');
|
|
|
+ initSelect('payMode', "PAY_MODE", "payMode", '', true,'支付方式');
|
|
|
+ initSelect('gameRule', "GAME_RULE", "gameRule", '', true,'购买方式');
|
|
|
+ initSelect('pickupStt', "PICKUP_STT", "pickupStt", '', true,'出货状态');
|
|
|
+ initSelect('isDraw', "IS_DRAW", "isDraw", '', true,'是否中奖');
|
|
|
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.on('select(gameRule)', function(data){
|
|
|
+ changeSelectCon(8, data.elem, "sel","gameRule");
|
|
|
+ });
|
|
|
+ form.on('select(pickupStt)', function(data){
|
|
|
+ changeSelectCon(9, data.elem, "sel","pickupStt");
|
|
|
+ });
|
|
|
+ form.on('select(isDraw)', function(data){
|
|
|
+ changeSelectCon(10, data.elem, "sel","isDraw");
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
form.render();
|
|
|
});
|
|
|
var table;
|
|
|
@@ -126,24 +147,26 @@
|
|
|
,elem: '#orderManage'
|
|
|
,limit:10
|
|
|
// ,height: 315
|
|
|
- ,url: 'ShOrderManageAction/queryOrder' //数据接口
|
|
|
+ ,url: 'ShOrderManageAction/queryOrderNew' //数据接口
|
|
|
,method: 'post'
|
|
|
,where:{MINView:"JSON"}
|
|
|
,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: 'pickupSttdesc', title: '取货状态', width:'8%'}
|
|
|
- ,{field: 'payModedesc', title: '支付类型', width:'8%'}
|
|
|
+ ,{field: 'id', title: '订单号', width:'8%', sort: true, fixed: 'left'}
|
|
|
+ ,{field: 'deliveryId', title: '提货编号', width:'10%'}
|
|
|
+ ,{field: 'productName', title: '商品名称', width:'10%'}
|
|
|
,{field: 'orderAmt', title: '订单价格', width:'8%'}
|
|
|
- ,{field: 'createTime', title: '创建时间', width: '14%'}
|
|
|
+ ,{field: 'costPrice', title: '成本', width:'5%'}
|
|
|
+ /*,{field: 'equipmentId', title: '机器编号', width:'8%'}*/
|
|
|
+ ,{field: 'imeiAddr', title: '设备编号', width:'6%'}
|
|
|
+ ,{field: 'aisle', title: '货道编号', width:'6%'}
|
|
|
+ ,{field: 'personName', title: '消费者信息', width:'8%'}
|
|
|
+ ,{field: 'statedesc', title: '支付状态', width:'6%'}
|
|
|
+ ,{field: 'isDrawdesc', title: '是否中奖', width:'6%'}
|
|
|
+ ,{field: 'pickupSttdesc', title: '取货状态', width:'6%'}
|
|
|
+ ,{field: 'payModedesc', title: '支付类型', width:'6%'}
|
|
|
+ ,{field: 'createTime', title: '创建时间', width: '12%'}
|
|
|
,{field: 'operate', title: '操作', width: '8%', toolbar: '#barDemo',fixed: 'right'}
|
|
|
]]
|
|
|
,done: function(res, curr, count){
|
|
|
@@ -173,7 +196,8 @@
|
|
|
$.request({
|
|
|
action : '../../ShOrderManageAction/orderCancel',
|
|
|
data : {
|
|
|
- id : id ,//订单id
|
|
|
+ id : data.id ,//订单id
|
|
|
+ deliveryId : data.deliveryId
|
|
|
},
|
|
|
success : function(data) {
|
|
|
//成功后刷新
|
|
|
@@ -235,18 +259,24 @@
|
|
|
|
|
|
|
|
|
function loadAA() {
|
|
|
- //状态
|
|
|
- var state = $("#state").find("option:selected").val();
|
|
|
+
|
|
|
//时间
|
|
|
var dates = $("#dates").val();
|
|
|
//订单号
|
|
|
var orderNo = $("#orderNo").val();
|
|
|
-
|
|
|
var equipmentId = $("#equipmentId").val();
|
|
|
- var equipmentName = $("#equipmentName").val();
|
|
|
+ var playerName = $("#playerName").val();
|
|
|
var freightwayId = $("#freightwayId").val();
|
|
|
+ var productName = $("#productName").val();
|
|
|
+ var deliveryId = $("#deliveryId").val();
|
|
|
+ var gameRule = $("#gameRule").find("option:selected").val();
|
|
|
+ var state = $("#state").find("option:selected").val();
|
|
|
+ var isDraw = $("#isDraw").find("option:selected").val();
|
|
|
var payMode = $("#payMode").find("option:selected").val();
|
|
|
- var playerId = $("#personId").val();
|
|
|
+ var pickupStt = $("#pickupStt").find("option:selected").val();
|
|
|
+
|
|
|
+ //状态
|
|
|
+ var state = $("#state").find("option:selected").val();
|
|
|
//执行重载
|
|
|
table.reload('orderManage', {
|
|
|
page: {
|
|
|
@@ -257,10 +287,14 @@
|
|
|
state : state,
|
|
|
dates : dates,
|
|
|
equipmentId : equipmentId,
|
|
|
- equipmentName : equipmentName,
|
|
|
+ playerName : playerName,
|
|
|
freightwayId : freightwayId,
|
|
|
payMode : payMode,
|
|
|
- playerId : playerId
|
|
|
+ isDraw:isDraw,
|
|
|
+ productName : productName,
|
|
|
+ gameRule : gameRule,
|
|
|
+ deliveryId : deliveryId,
|
|
|
+ pickupStt : pickupStt
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -296,7 +330,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- var array = new Array('订单编号','创建时间','状态','机台号','机器名称','货道号','支付方式','玩家ID');
|
|
|
+ var array = new Array('订单编号','创建时间','支付状态','设备编号','玩家名称','货道号','支付方式','商品名称','购买方式','出货状态','是否中奖','提货编号');
|
|
|
function getSelectConHtml(index, t, type,dateValue){
|
|
|
var name;
|
|
|
var value;
|
|
|
@@ -313,6 +347,15 @@
|
|
|
if(index == '6'){
|
|
|
value = $("#payMode").find("option:selected").text();
|
|
|
}
|
|
|
+ if(index == '8'){
|
|
|
+ value = $("#gameRule").find("option:selected").text();
|
|
|
+ }
|
|
|
+ if(index == '9'){
|
|
|
+ value = $("#pickupStt").find("option:selected").text();
|
|
|
+ }
|
|
|
+ if(index == '10'){
|
|
|
+ value = $("#isDraw").find("option:selected").text();
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
if (type == "date") {
|
|
|
@@ -331,8 +374,11 @@
|
|
|
}
|
|
|
function removeSearch(t) {
|
|
|
if ($(t).attr("name") == 'subjects') {
|
|
|
- initSelect('state', "IS_DRAW", "state", ' ', true);
|
|
|
- initSelect('payMode', "PAY_TYPE", "payMode", ' ', true);
|
|
|
+ initSelect('state', "PAY_STATE", "state", '', true,'支付状态');
|
|
|
+ initSelect('payMode', "PAY_MODE", "payMode", '', true,'支付方式');
|
|
|
+ initSelect('gameRule', "GAME_RULE", "gameRule", '', true,'购买方式');
|
|
|
+ initSelect('pickupStt', "ORDER_PICKUP_STT", "pickupStt", '', true,'出货状态');
|
|
|
+ initSelect('isDraw', "IS_DRAW", "isDraw", '', true,'是否中奖');
|
|
|
form.render();
|
|
|
$(t).remove();
|
|
|
} else {
|