You've already forked qlg.tsgz.moe
后台页面
This commit is contained in:
@ -55,4 +55,4 @@
|
||||
<script>
|
||||
$(function(){initGrid();})
|
||||
</script>
|
||||
{/block}
|
||||
{/block}
|
||||
|
@ -19,7 +19,7 @@ function initCertificateGrid(){
|
||||
{title:'店铺电话', name:'shop', width: 100,sortable:true, renderer:function(val,item,rowIndex){
|
||||
return val.phone;
|
||||
}},
|
||||
{title:'应付款', name:'payNum', width: 100,sortable:true},
|
||||
{title:'应付款', name:'payNum', width: 100,sortable:true},
|
||||
{title:'订单组', name:'list', width: 500,sortable:true, renderer:function(val,item,rowIndex){
|
||||
var html = '';
|
||||
$.each(val,function(i,v){
|
||||
@ -58,17 +58,17 @@ function initCertificateGrid(){
|
||||
var h = "";
|
||||
if(WST.GRANT.PZCZ_00 && typeof(item.id) != 'undefined'){
|
||||
h += "<a data-id='"+item.id+"'class='btn btn-blue applyAction'> <i class='fa fa-pencil'></i>审核</a> ";
|
||||
}
|
||||
}
|
||||
return h;
|
||||
}}
|
||||
];
|
||||
|
||||
|
||||
mmg = $('.mmg').mmGrid({height: (h-85),indexCol: true,indexColWidth:50, cols: cols,method:'POST',nowrap:true,
|
||||
url: WST.U('admin/orders/getCertificate',p.join('&')), fullWidthRows: true, autoLoad: true,remoteSort: true,sortName:'createTime',sortStatus:'desc',
|
||||
plugins: [
|
||||
$('#pg').mmPaginator({})
|
||||
]
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$("body").on("click",'.uploadImg',function(){
|
||||
@ -143,24 +143,22 @@ function initGrid(){
|
||||
{title:'订单编号', name:'orderNo', width: 50,sortable:true, renderer:function(val,item,rowIndex){
|
||||
var h = "";
|
||||
if(item['orderSrc']==0){
|
||||
h += "<img class='order-source2' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_1.png'>";
|
||||
h += "<img class='order-source2' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_1.png'>";
|
||||
}else if(item['orderSrc']==1){
|
||||
h += "<img class='order-source' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_3.png'>";
|
||||
h += "<img class='order-source' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_3.png'>";
|
||||
}else if(item['orderSrc']==2){
|
||||
h += "<img class='order-source' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_2.png'>";
|
||||
h += "<img class='order-source' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_2.png'>";
|
||||
}else if(item['orderSrc']==3){
|
||||
h += "<img class='order-source' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_4.png'>";
|
||||
h += "<img class='order-source' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_4.png'>";
|
||||
}else if(item['orderSrc']==4){
|
||||
h += "<img class='order-source' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_5.png'>";
|
||||
h += "<img class='order-source' src='"+WST.conf.ROOT+"/hyhproject/admin/view/img/order_source_5.png'>";
|
||||
}
|
||||
h += item['orderNo'];
|
||||
return h;
|
||||
}},
|
||||
{title:'购户', name:'loginName', width: 120,sortable:true},
|
||||
{title:'收货人', name:'userName', width: 120,sortable:true},
|
||||
{title:'商户', name:'shopLoginName', width: 120,sortable:true},
|
||||
{title:'店铺', name:'shopName', width: 90,sortable:true},
|
||||
{title:'交易额', name:'realTotalMoney', width: 30,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
|
||||
{title:'购户', name:'loginName', width: 120,sortable:true},
|
||||
{title:'收货人', name:'userName', width: 120,sortable:true},
|
||||
{title:'购户付现', name:'moneyNum', width: 30,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
|
||||
{title:'旺旺券', name:'wangNum', width: 30,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
|
||||
{title:'产品券', name:'productNum', width: 30,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
|
||||
@ -172,10 +170,12 @@ function initGrid(){
|
||||
{title:'优惠券', name:'couponsNum', width: 30,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
|
||||
{title:'优惠券税', name:'couponsTaxFee', width: 30,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
|
||||
{title:'优惠券手续费', name:'couponsHandlingFee', width: 30,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
|
||||
|
||||
// {title:'优惠券手续费+税', name:'couponsHandlingFee', width: 30,sortable:true, renderer:function(val,item,rowIndex){
|
||||
// return item['couponsTaxFee']+val;;
|
||||
// }},
|
||||
{title:'商户', name:'shopLoginName', width: 120,sortable:true},
|
||||
{title:'店铺', name:'shopName', width: 90,sortable:true},
|
||||
{title:'优惠款', name:'coupons', width: 90,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
|
||||
{title:'商户付现', name:'payable', width: 30,sortable:true, renderer:function(val,item,rowIndex){
|
||||
if(val<0){
|
||||
return Math.abs(val);
|
||||
@ -219,13 +219,13 @@ function initGrid(){
|
||||
return h;
|
||||
}}
|
||||
];
|
||||
|
||||
|
||||
mmg = $('.mmg').mmGrid({height: (h-85),indexCol: true,indexColWidth:50, cols: cols,method:'POST',nowrap:true,
|
||||
url: WST.U('admin/orders/pageQuery',p.join('&')), fullWidthRows: true, autoLoad: true,remoteSort: true,sortName:'createTime',sortStatus:'desc',
|
||||
plugins: [
|
||||
$('#pg').mmPaginator({})
|
||||
]
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function toView(id){
|
||||
@ -243,4 +243,4 @@ function toExport(){
|
||||
layer.close(box);
|
||||
location.href=WST.U('admin/orders/toExport',params);
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user