You've already forked qlg.tsgz.moe
							
							Init Repo
This commit is contained in:
		
							
								
								
									
										40
									
								
								hyhproject/admin/view/orders/certificate_list.html
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										40
									
								
								hyhproject/admin/view/orders/certificate_list.html
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,40 @@
 | 
			
		||||
{extend name="base" /}
 | 
			
		||||
{block name="css"}
 | 
			
		||||
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
 | 
			
		||||
<style type="text/css">
 | 
			
		||||
	.mmGrid .nowrap{
 | 
			
		||||
		overflow: auto;
 | 
			
		||||
		white-space: normal;
 | 
			
		||||
	}
 | 
			
		||||
</style>
 | 
			
		||||
{/block}
 | 
			
		||||
{block name="js"}
 | 
			
		||||
<script src="__ADMIN__/js/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
 | 
			
		||||
<script src="__ADMIN__/orders/orders.js?v={$v}" type="text/javascript"></script>
 | 
			
		||||
{/block}
 | 
			
		||||
{block name="main"}
 | 
			
		||||
<div class="wst-toolbar">
 | 
			
		||||
<input type="text" name="shopName"  placeholder='店铺名称' id="shopName" class='j-ipt'/>
 | 
			
		||||
 | 
			
		||||
<select id='certificateStatus' class='j-ipt'>
 | 
			
		||||
  <option value=''>审核状态</option>
 | 
			
		||||
  <option value='0'>未上传</option>
 | 
			
		||||
  <option value='1'>无需上传</option>
 | 
			
		||||
  <option value='2'>待审核</option>
 | 
			
		||||
  <option value='3'>已审核</option>
 | 
			
		||||
  <option value='4'>已拒绝</option>
 | 
			
		||||
</select><!-- 
 | 
			
		||||
<input type="text" id="startDate" name="startDate" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='开始日期'/>
 | 
			
		||||
至
 | 
			
		||||
<input type="text" id="endDate" name="endDate" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='结束日期'/> -->
 | 
			
		||||
   <button class="btn btn-primary" onclick='javascript:loadGrid(0)'><i class="fa fa-search"></i>查询</button>
 | 
			
		||||
   <div style='clear:both'></div>
 | 
			
		||||
</div>
 | 
			
		||||
<div class='wst-grid'>
 | 
			
		||||
 <div id="mmg" class="mmg"></div>
 | 
			
		||||
 <div id="pg" style="text-align: right;"></div>
 | 
			
		||||
</div>
 | 
			
		||||
<script>
 | 
			
		||||
$(function(){initCertificateGrid();})
 | 
			
		||||
</script>
 | 
			
		||||
{/block}
 | 
			
		||||
							
								
								
									
										58
									
								
								hyhproject/admin/view/orders/list.html
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										58
									
								
								hyhproject/admin/view/orders/list.html
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,58 @@
 | 
			
		||||
{extend name="base" /}
 | 
			
		||||
{block name="css"}
 | 
			
		||||
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
 | 
			
		||||
{/block}
 | 
			
		||||
{block name="js"}
 | 
			
		||||
<script src="__ADMIN__/js/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
 | 
			
		||||
<script src="__ADMIN__/orders/orders.js?v={$v}" type="text/javascript"></script>
 | 
			
		||||
{/block}
 | 
			
		||||
{block name="main"}
 | 
			
		||||
<input type="hidden" id="userId" class="j-ipt" value='{$userId}' autocomplete="off"/>
 | 
			
		||||
<div class="wst-toolbar">
 | 
			
		||||
<select id="areaId1" class='ipt j-ipt hide' level="0" onchange="WST.ITAreas({id:'areaId1',val:this.value,className:'j-ipt'});">
 | 
			
		||||
  <option value="-1">-商家所在地-</option>
 | 
			
		||||
  {volist name="areaList" id="vo"}
 | 
			
		||||
  <option value="{$vo['areaId']}">{$vo['areaName']}</option>
 | 
			
		||||
  {/volist}
 | 
			
		||||
</select>
 | 
			
		||||
<input type="text" name="orderNo"  placeholder='订单编号' id="orderNo" class='j-ipt'/>
 | 
			
		||||
<input type="text" name="shopName"  placeholder='店铺名称/店铺编号' id="shopName" class='j-ipt'/>
 | 
			
		||||
<select id='orderStatus' class='j-ipt'>
 | 
			
		||||
  <option value='10000'>订单状态</option>
 | 
			
		||||
  <option value='0'>待发货</option>
 | 
			
		||||
  <option value='-2'>待支付</option>
 | 
			
		||||
  <option value='-1'>已取消</option>
 | 
			
		||||
  <option value='1'>配送中</option>
 | 
			
		||||
  <option value='2'>已收货</option>
 | 
			
		||||
  <option value='-3'>用户拒收</option>
 | 
			
		||||
</select>
 | 
			
		||||
<select id='payType' class='j-ipt'>
 | 
			
		||||
   <option value='-1'>支付方式</option>
 | 
			
		||||
   <option value='0'>货到付款</option>
 | 
			
		||||
   <option value='1'>在线支付</option>
 | 
			
		||||
</select>
 | 
			
		||||
<select id='deliverType' class='j-ipt'>
 | 
			
		||||
 <option value='-1'>配送方式</option>
 | 
			
		||||
 <option value='1'>自提</option>
 | 
			
		||||
 <option value='0'>送货上门</option>
 | 
			
		||||
</select>
 | 
			
		||||
 | 
			
		||||
<input type="text" id="startDate" name="startDate" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='开始日期'/>
 | 
			
		||||
至
 | 
			
		||||
<input type="text" id="endDate" name="endDate" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='结束日期'/>
 | 
			
		||||
<input type="text" id="userPhone" name="userPhone" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='联系方式'/>
 | 
			
		||||
<input type="text" id="investmentStaff" name="investmentStaff" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='对接人员名字'/>
 | 
			
		||||
 | 
			
		||||
   <button class="btn btn-primary" onclick='javascript:loadGrid(0)'><i class="fa fa-search"></i>查询</button>
 | 
			
		||||
   {if($userId>0)}<button class="btn f-right btn-fixtop" onclick="javascript:history.go(-1)" style="margin-left: 10px;"><i class="fa fa-angle-double-left"></i>返回</button>{/if}
 | 
			
		||||
   <button class="btn btn-primary f-right btn-fixtop" onclick='javascript:toExport(0)'><i class="fa fa-sign-in"></i>导出</button>
 | 
			
		||||
   <div style='clear:both'></div>
 | 
			
		||||
</div>
 | 
			
		||||
<div class='wst-grid'>
 | 
			
		||||
 <div id="mmg" class="mmg"></div>
 | 
			
		||||
 <div id="pg" style="text-align: right;"></div>
 | 
			
		||||
</div>
 | 
			
		||||
<script>
 | 
			
		||||
$(function(){initGrid();})
 | 
			
		||||
</script>
 | 
			
		||||
{/block}
 | 
			
		||||
							
								
								
									
										246
									
								
								hyhproject/admin/view/orders/orders.js
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										246
									
								
								hyhproject/admin/view/orders/orders.js
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,246 @@
 | 
			
		||||
var mmg;
 | 
			
		||||
$(function(){
 | 
			
		||||
    var laydate = layui.laydate;
 | 
			
		||||
    laydate.render({
 | 
			
		||||
        elem: '#startDate'
 | 
			
		||||
    });
 | 
			
		||||
    laydate.render({
 | 
			
		||||
        elem: '#endDate'
 | 
			
		||||
    });
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
function initCertificateGrid(){
 | 
			
		||||
    var p = WST.arrayParams('.j-ipt');
 | 
			
		||||
    var h = WST.pageHeight();
 | 
			
		||||
    var cols = [
 | 
			
		||||
            {title:'店铺名', name:'shop', width: 50,sortable:true, renderer:function(val,item,rowIndex){
 | 
			
		||||
                return val.shopName;
 | 
			
		||||
            }},
 | 
			
		||||
            {title:'店铺电话', name:'shop', width: 100,sortable:true, renderer:function(val,item,rowIndex){
 | 
			
		||||
                return val.phone;
 | 
			
		||||
            }},
 | 
			
		||||
            {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){
 | 
			
		||||
                    html+='订单号:'+v['orderNo']+',应付款:'+v['payable']+',';
 | 
			
		||||
                    // console.log(v);
 | 
			
		||||
                })
 | 
			
		||||
                return html;
 | 
			
		||||
            }},
 | 
			
		||||
            {title:'商家凭证', name:'imgUrl', width: 100,sortable:true, renderer:function(val,item,rowIndex){
 | 
			
		||||
                return"<span><img class='uploadImg' style='width:80px;height:80px;' src='"+WST.conf.IMGURL+'/'+val+"'</span>";
 | 
			
		||||
            }},
 | 
			
		||||
            {title:'凭证备注', name:'content', width: 100,sortable:true},
 | 
			
		||||
            {title:'审核状态', name:'status', width: 30,sortable:true, renderer:function(val,item,rowIndex){
 | 
			
		||||
                var html = '';
 | 
			
		||||
                switch(val){
 | 
			
		||||
                    case 0:
 | 
			
		||||
                        html = '未上传'
 | 
			
		||||
                        break;
 | 
			
		||||
                    case 1:
 | 
			
		||||
                        html = '无需上传'
 | 
			
		||||
                        break;
 | 
			
		||||
                    case 2:
 | 
			
		||||
                        html = '待审核'
 | 
			
		||||
                        break;
 | 
			
		||||
                    case 3:
 | 
			
		||||
                        html = '已通过'
 | 
			
		||||
                        break;
 | 
			
		||||
                    case 4:
 | 
			
		||||
                        html = '已拒绝'
 | 
			
		||||
                        break;
 | 
			
		||||
                }
 | 
			
		||||
                return html;
 | 
			
		||||
            }},
 | 
			
		||||
            // {title:'对接人员', name:'investmentStaff', width: 100,sortable:true},
 | 
			
		||||
            {title:'操作' , width: 30,name:'status', renderer:function(val,item,rowIndex){
 | 
			
		||||
                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(){
 | 
			
		||||
    layer.open({
 | 
			
		||||
        type: 1,
 | 
			
		||||
        title: false,
 | 
			
		||||
        closeBtn: 0,
 | 
			
		||||
        area: '90%',
 | 
			
		||||
        skin: 'layui-layer-nobg', //没有背景色
 | 
			
		||||
        shadeClose: true,
 | 
			
		||||
        content: '<div ><img src="'+$(this).attr('src')+'"></div>'
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
$("body").on("click",'.applyAction',function(){
 | 
			
		||||
    let id  = $(this).attr('data-id');
 | 
			
		||||
    layer.open({
 | 
			
		||||
        type: 1,
 | 
			
		||||
        title: '审核操作',
 | 
			
		||||
        closeBtn: 1,
 | 
			
		||||
        shadeClose: true,
 | 
			
		||||
        area: '50%',
 | 
			
		||||
        btn: ['确定'],
 | 
			
		||||
        btnAlign: 'c', //按钮居中
 | 
			
		||||
       // skin: '',
 | 
			
		||||
        content: '<div style="text-align:center;margin-top:1rem;padding-top:1rem;">审核处理:<label><input type="radio" class="status" value="1" name="status" onclick="javascript:WST.showHide(0,"#trApplyDesc");" title="通过">通过' +
 | 
			
		||||
            ' </label> ' +
 | 
			
		||||
            '<label><input type="radio" class="status" value="2" name="status" onclick="javascript:WST.showHide(1,"#trApplyDesc");" title="不通过">拒绝' +
 | 
			
		||||
            '</label>' +
 | 
			
		||||
            '<div id="trApplyDesc" style="display:none">' +
 | 
			
		||||
            '<th>不通过原因<font color="red">*</font>:</th>' +
 | 
			
		||||
            '<td><textarea id="applyDesc" class="ipt" style="width:300px;height:100px;" maxlength="100" data-rule="不通过原因:required(#status-1:checked);"></textarea></td>' +
 | 
			
		||||
            '</div></div>',
 | 
			
		||||
        yes: function(index){
 | 
			
		||||
 | 
			
		||||
            let obj = $("input[name='status']:checked");
 | 
			
		||||
            let  status =obj.val();
 | 
			
		||||
            if(!status){
 | 
			
		||||
                WST.msg('请选择通过或不通过', {icon: 2,time:3000});
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            let applyDesc = $('#applyDesc').val();
 | 
			
		||||
            if(2 == status && '' == applyDesc ){
 | 
			
		||||
                WST.msg('请输入拒绝理由', {icon: 2,time:3000});
 | 
			
		||||
                $('#applyDesc').focus();
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            let msgArr = ['通过','拒绝'];
 | 
			
		||||
 | 
			
		||||
            let msg = "您确定要"+msgArr[status-1]+"此用户的凭证信息?";
 | 
			
		||||
            let box = WST.confirm({content:msg,yes:function(){
 | 
			
		||||
                let loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
 | 
			
		||||
                $.post(WST.U('admin/Orders/certificateSet'),{id:id,status:status,'reasonsForRefusal':applyDesc},function(data,textStatus){
 | 
			
		||||
                    layer.close(loading);
 | 
			
		||||
                    let json = WST.toAdminJson(data);
 | 
			
		||||
                    if(json.status=='1'){
 | 
			
		||||
                        WST.msg("操作成功",{icon:1});
 | 
			
		||||
                        layer.close(box);
 | 
			
		||||
                        layer.close(index);
 | 
			
		||||
                        loadGrid();
 | 
			
		||||
                    }else{
 | 
			
		||||
                        WST.msg(json.msg,{icon:2});
 | 
			
		||||
                    }
 | 
			
		||||
                });
 | 
			
		||||
            }});
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
function initGrid(){
 | 
			
		||||
	var p = WST.arrayParams('.j-ipt');
 | 
			
		||||
	var h = WST.pageHeight();
 | 
			
		||||
    var cols = [
 | 
			
		||||
            {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'>";	
 | 
			
		||||
	            }else if(item['orderSrc']==1){
 | 
			
		||||
	            	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'>";		
 | 
			
		||||
	            }else if(item['orderSrc']==3){
 | 
			
		||||
	            	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 += 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:'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;}},
 | 
			
		||||
            {title:'产品券税', name:'productTaxFee', width: 30,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
 | 
			
		||||
            {title:'产品券手续费', name:'productHandlingFee', width: 30,sortable:true, renderer:function(val,item,rowIndex){return '¥'+val;}},
 | 
			
		||||
            // {title:'产品券手续费+税', name:'productHandlingFee', width: 30,sortable:true, renderer:function(val,item,rowIndex){
 | 
			
		||||
            //     return item['productTaxFee']+val;
 | 
			
		||||
            // }},
 | 
			
		||||
            {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:'payable', width: 30,sortable:true, renderer:function(val,item,rowIndex){
 | 
			
		||||
                if(val<0){
 | 
			
		||||
                    return Math.abs(val);
 | 
			
		||||
                }else{
 | 
			
		||||
                    return 0;
 | 
			
		||||
                }
 | 
			
		||||
            }},
 | 
			
		||||
            // {title:'支付方式', name:'payType' , width: 30,sortable:true},
 | 
			
		||||
            // // mark by cheng 添加支付通道显示
 | 
			
		||||
            // {title:'支付通道', name:'payFrom' , width: 30,sortable:true, renderer:function(val,item,rowIndex){
 | 
			
		||||
            //     if(item['payFrom']==null){
 | 
			
		||||
            //         return "";
 | 
			
		||||
            //     }else if(item['payFrom']=='wallets'){
 | 
			
		||||
            //         return "余额";
 | 
			
		||||
            //     }else if(item['payFrom']=='ect'){
 | 
			
		||||
            //         return "ECT";
 | 
			
		||||
            //     }else if(item['payFrom']=='alipays'){
 | 
			
		||||
            //         return "支付宝";
 | 
			
		||||
            //     }else{
 | 
			
		||||
            //         return item['payFrom'];
 | 
			
		||||
            //     }
 | 
			
		||||
            // }},
 | 
			
		||||
            // {title:'配送方式', name:'deliverType', width: 30,sortable:true},
 | 
			
		||||
            // {title:'订单来源', name:'orderCodeTitle', width: 30,sortable:true},
 | 
			
		||||
            {title:'下单时间', name:'createTime', width: 100,sortable:true},
 | 
			
		||||
            {title:'订单状态', name:'orderStatus', width: 30,sortable:true, renderer:function(val,item,rowIndex){
 | 
			
		||||
            	 if(item['orderStatus']==-1){
 | 
			
		||||
                     return "<span class='statu-no'><i class='fa fa-ban'></i> "+item.status+"</span>";
 | 
			
		||||
                 }else if(item['orderStatus']==-3){
 | 
			
		||||
                 	 return "<span class='statu-yes'><i class='fa fa-check-circle'></i> "+item.status+"</span>";
 | 
			
		||||
            	 }else if(item['orderStatus']==2){
 | 
			
		||||
                     return "<span class='statu-yes'><i class='fa fa-check-circle'></i> "+item.status+"</span>";
 | 
			
		||||
            	 }else{
 | 
			
		||||
            	 	return "<span class='statu-wait'><i class='fa fa-clock-o'></i> "+item.status+"</span>";
 | 
			
		||||
            	 }
 | 
			
		||||
            }},
 | 
			
		||||
            // {title:'对接人员', name:'investmentStaff', width: 100,sortable:true},
 | 
			
		||||
            {title:'操作' , width: 30,name:'status', renderer:function(val,item,rowIndex){
 | 
			
		||||
            	var h = "";
 | 
			
		||||
	            h += "<a class='btn btn-blue' href='javascript:toView(" + item['orderId'] + ")'><i class='fa fa-search'></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/pageQuery',p.join('&')), fullWidthRows: true, autoLoad: true,remoteSort: true,sortName:'createTime',sortStatus:'desc',
 | 
			
		||||
        plugins: [
 | 
			
		||||
            $('#pg').mmPaginator({})
 | 
			
		||||
        ]
 | 
			
		||||
    });  
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function toView(id){
 | 
			
		||||
	location.href=WST.U('admin/orders/view','id='+id);
 | 
			
		||||
}
 | 
			
		||||
function loadGrid(){
 | 
			
		||||
	var p = WST.getParams('.j-ipt');
 | 
			
		||||
    p.page = 1;
 | 
			
		||||
	mmg.load(p);
 | 
			
		||||
}
 | 
			
		||||
function toExport(){
 | 
			
		||||
	var params = {};
 | 
			
		||||
	params = WST.getParams('.j-ipt');
 | 
			
		||||
	var box = WST.confirm({content:"您确定要导出订单吗?",yes:function(){
 | 
			
		||||
		layer.close(box);
 | 
			
		||||
		location.href=WST.U('admin/orders/toExport',params);
 | 
			
		||||
    }});
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										481
									
								
								hyhproject/admin/view/orders/view.html
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										481
									
								
								hyhproject/admin/view/orders/view.html
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,481 @@
 | 
			
		||||
{extend name="base" /}
 | 
			
		||||
 | 
			
		||||
{block name="main"}
 | 
			
		||||
 | 
			
		||||
<div style='margin:10px;'>
 | 
			
		||||
 | 
			
		||||
  <div class='order-box'>
 | 
			
		||||
 | 
			
		||||
    <div class='box-head'>日志信息</div>
 | 
			
		||||
 | 
			
		||||
    {if in_array($object['orderStatus'],[-2,0,1,2])}
 | 
			
		||||
 | 
			
		||||
	<div class='log-box'>
 | 
			
		||||
 | 
			
		||||
<div class="state">
 | 
			
		||||
 | 
			
		||||
{if $object['payType']==1}
 | 
			
		||||
 | 
			
		||||
<div class="icon">
 | 
			
		||||
 | 
			
		||||
	<span class="icons {if condition="($object['orderStatus']==-2)OR($object['orderStatus']==0)OR($object['orderStatus']==1)OR($object['orderStatus']==2)"}icon12 {else}icon11 {/if}{if condition="($object['orderStatus']==-2)"}icon13 {/if}"></span>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="arrow {if condition="($object['orderStatus']==0) OR ($object['orderStatus']==1) OR ($object['orderStatus']==2)"}arrow2{/if}">··················></div>
 | 
			
		||||
 | 
			
		||||
	<div class="icon"><span class="icons {if condition="($object['orderStatus']==0)OR($object['orderStatus']==1)OR($object['orderStatus']==2)"}icon22 {else}icon21{/if}{if condition="($object['orderStatus']==0)"}icon23 {/if}"></span></div>
 | 
			
		||||
 | 
			
		||||
	<div class="arrow {if condition="($object['orderStatus']==1) OR ($object['orderStatus']==2)"}arrow2{/if}">··················></div>
 | 
			
		||||
 | 
			
		||||
{else}
 | 
			
		||||
 | 
			
		||||
<div class="icon">
 | 
			
		||||
 | 
			
		||||
	<span class="icons {if condition="($object['orderStatus']==-2)OR($object['orderStatus']==0)OR($object['orderStatus']==1)OR($object['orderStatus']==2)"}icon12 {else}icon11 {/if}{if condition="($object['orderStatus']==0)"}icon13 {/if}"></span>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="arrow {if condition="($object['orderStatus']==1) OR ($object['orderStatus']==2)"}arrow2{/if}">··················></div>
 | 
			
		||||
 | 
			
		||||
{/if}
 | 
			
		||||
 | 
			
		||||
<div class="icon">
 | 
			
		||||
 | 
			
		||||
	<span class="icons {if condition="($object['orderStatus']==1)OR($object['orderStatus']==2)OR($object['orderStatus']==1)"}icon32 {else}icon31 {/if}{if condition="($object['orderStatus']==1)"}icon33 {/if}"></span>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="arrow {if condition="($object['orderStatus']==2)"}arrow2{/if}">··················></div>
 | 
			
		||||
 | 
			
		||||
<div class="icon"><span class="icons  {if condition="($object['orderStatus']==2)AND($object['isAppraise']==1)"}icon42 {else}icon41 {/if}{if condition="($object['orderStatus']==2)AND($object['isAppraise']==0)"}icon43 {/if}"></span></div>
 | 
			
		||||
 | 
			
		||||
<div class="arrow {if condition="($object['isAppraise']==1)"}arrow2{/if}">··················></div>
 | 
			
		||||
 | 
			
		||||
<div class="icon"><span class="icons {if condition="($object['isAppraise']==1)"}icon53 {else}icon51 {/if}"></span></div>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
   <div class="state2">
 | 
			
		||||
 | 
			
		||||
   <div class="path">
 | 
			
		||||
 | 
			
		||||
   {volist name="$object['log']" id="lo"}
 | 
			
		||||
 | 
			
		||||
   	<span>{$lo['logContent']}<br/>{$lo['logTime']}</span>
 | 
			
		||||
 | 
			
		||||
   {/volist}
 | 
			
		||||
 | 
			
		||||
   </div>
 | 
			
		||||
 | 
			
		||||
   <p>下单</p>{if $object['payType']==1}<p>等待支付</p>{/if}<p>商家发货</p><p>确认收货</p><p>订单结束<br/>双方互评</p>
 | 
			
		||||
 | 
			
		||||
   </div>
 | 
			
		||||
 | 
			
		||||
   <div class="wst-clear"></div>
 | 
			
		||||
 | 
			
		||||
   </div>
 | 
			
		||||
 | 
			
		||||
    {else}
 | 
			
		||||
 | 
			
		||||
        <div>
 | 
			
		||||
 | 
			
		||||
          <table class='log'>
 | 
			
		||||
 | 
			
		||||
            {volist name='$object["log"]' id='vo'}
 | 
			
		||||
 | 
			
		||||
             <tr>
 | 
			
		||||
 | 
			
		||||
               <td>{$vo['logTime']}</td>
 | 
			
		||||
 | 
			
		||||
               <td>{$vo['logContent']}</td>
 | 
			
		||||
 | 
			
		||||
             </tr>
 | 
			
		||||
 | 
			
		||||
            {/volist}
 | 
			
		||||
 | 
			
		||||
          </table>
 | 
			
		||||
 | 
			
		||||
        </div>                 
 | 
			
		||||
 | 
			
		||||
    {/if}
 | 
			
		||||
 | 
			
		||||
   </div>
 | 
			
		||||
 | 
			
		||||
   <!-- 订单信息 -->
 | 
			
		||||
 | 
			
		||||
   <div class='order-box'>
 | 
			
		||||
 | 
			
		||||
      <div class='box-head'>订单信息</div>
 | 
			
		||||
 | 
			
		||||
      <table class='wst-form'>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th width='100'>订单编号:</th>
 | 
			
		||||
 | 
			
		||||
           <td>{$object['orderNo']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th>支付方式:</th>
 | 
			
		||||
 | 
			
		||||
           <td>{:WSTLangPayType($object['payType'])}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         {if($object['payType']==1 && $object['isPay']==1)}
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th>支付时间:</th>
 | 
			
		||||
 | 
			
		||||
           <td>{$object['payTime']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th>交易流水:</th>
 | 
			
		||||
 | 
			
		||||
           <td>【{:WSTLangPayFrom($object['payFrom'])}】{$object['tradeNo']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         {/if}
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
            <th>配送方式:</th>
 | 
			
		||||
 | 
			
		||||
            <td>{:WSTLangDeliverType($object['deliverType'])}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         {if $object['expressNo']!=''}
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
            <th>快递公司:</th>
 | 
			
		||||
 | 
			
		||||
            <td>{$object['expressName']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
            <th>快递号:</th>
 | 
			
		||||
 | 
			
		||||
            <td>{$object['expressNo']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         {/if}
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
            <th>买家留言:</th>
 | 
			
		||||
 | 
			
		||||
            <td>{$object['orderRemarks']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
      </table>
 | 
			
		||||
 | 
			
		||||
   </div>
 | 
			
		||||
 | 
			
		||||
   {:hook('adminDocumentOrderView',['orderId'=>$object['orderId']])}
 | 
			
		||||
 | 
			
		||||
   {if $object['isRefund']==1}
 | 
			
		||||
 | 
			
		||||
   <!-- 退款信息 -->
 | 
			
		||||
 | 
			
		||||
   <div class='order-box'>
 | 
			
		||||
 | 
			
		||||
      <div class='box-head'>退款信息</div>
 | 
			
		||||
 | 
			
		||||
      <table class='wst-form'>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
            <th width='100'>退款备注:</th>
 | 
			
		||||
 | 
			
		||||
            <td>{$object['refundRemark']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
            <th>退款时间:</th>
 | 
			
		||||
 | 
			
		||||
            <td>{$object['refundTime']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
      </table>
 | 
			
		||||
 | 
			
		||||
   </div>
 | 
			
		||||
 | 
			
		||||
   {/if}
 | 
			
		||||
 | 
			
		||||
   <!-- 发票信息 -->
 | 
			
		||||
 | 
			
		||||
   <div class='order-box'>
 | 
			
		||||
 | 
			
		||||
      <div class='box-head'>发票信息</div>
 | 
			
		||||
 | 
			
		||||
      <table class='wst-form'>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th width='100'>是否需要发票:</th>
 | 
			
		||||
 | 
			
		||||
           <td>{if $object['isInvoice']==1}需要{else}不需要{/if}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         {if $object['isInvoice']==1}
 | 
			
		||||
 | 
			
		||||
              {php}$invoiceArr = json_decode($object['invoiceJson'],true);{/php}
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th>发票抬头:</th>
 | 
			
		||||
 | 
			
		||||
           <td>
 | 
			
		||||
 | 
			
		||||
            {if $object['isInvoice']==1}
 | 
			
		||||
 | 
			
		||||
              {$invoiceArr['invoiceHead']}
 | 
			
		||||
 | 
			
		||||
            {/if}
 | 
			
		||||
 | 
			
		||||
          </td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
        {if isset($invoiceArr['invoiceCode'])}
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th>发票税号:</th>
 | 
			
		||||
 | 
			
		||||
           <td>
 | 
			
		||||
 | 
			
		||||
              {$invoiceArr['invoiceCode']}
 | 
			
		||||
 | 
			
		||||
          </td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         {/if}
 | 
			
		||||
 | 
			
		||||
        {/if}
 | 
			
		||||
 | 
			
		||||
      </table>
 | 
			
		||||
 | 
			
		||||
   </div>
 | 
			
		||||
 | 
			
		||||
   <!-- 收货人信息 -->
 | 
			
		||||
 | 
			
		||||
   <div class='order-box'>
 | 
			
		||||
 | 
			
		||||
      <div class='box-head'>收货人信息</div>
 | 
			
		||||
 | 
			
		||||
      <table class='wst-form'>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th width='100'>下单会员:</th>
 | 
			
		||||
 | 
			
		||||
           <td>{$object['loginName']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th width='100'>收货人:</th>
 | 
			
		||||
 | 
			
		||||
           <td>{$object['userName']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
           <th>收货地址:</th>
 | 
			
		||||
 | 
			
		||||
           <td>{$object['userAddress']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
         <tr>
 | 
			
		||||
 | 
			
		||||
            <th>联系方式:</th>
 | 
			
		||||
 | 
			
		||||
            <td>{$object['userPhone']}</td>
 | 
			
		||||
 | 
			
		||||
         </tr>
 | 
			
		||||
 | 
			
		||||
      </table>
 | 
			
		||||
 | 
			
		||||
   </div>
 | 
			
		||||
   <!-- 会员凭证 -->
 | 
			
		||||
  <div class='order-box'>
 | 
			
		||||
      <div class='box-head'>会员凭证</div>
 | 
			
		||||
      <table class='wst-form'>
 | 
			
		||||
        <tr>
 | 
			
		||||
          <td width=''>凭证图</td>
 | 
			
		||||
          <td width=''>内容</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        {if !empty($object["userCertificate"])}
 | 
			
		||||
        {foreach name = '$object["userCertificate"]' item = "uc"}
 | 
			
		||||
          <tr>
 | 
			
		||||
            <td><img src="__IMGURL__/{$uc['imgUrl']}" /></td>
 | 
			
		||||
            <td>{$uc['content']}</td>
 | 
			
		||||
          </tr>
 | 
			
		||||
          {/foreach}
 | 
			
		||||
        {/if}
 | 
			
		||||
      </table>
 | 
			
		||||
   </div>
 | 
			
		||||
    <!-- <div class='order-box'>
 | 
			
		||||
      <div class='box-head'>商家凭证</div>
 | 
			
		||||
      <table class='wst-form'>
 | 
			
		||||
        <tr>
 | 
			
		||||
          <td width=''>凭证图</td>
 | 
			
		||||
          <td width=''>内容</td>
 | 
			
		||||
        </tr>        
 | 
			
		||||
        {if !empty($object["shopCertificate"])}          
 | 
			
		||||
          {foreach name = '$object["shopCertificate"]' item = "sc"}
 | 
			
		||||
          <tr>
 | 
			
		||||
            <td><img src="__IMGURL__/{$sc['imgUrl']}" /></td>
 | 
			
		||||
            <td>{$sc['content']}</td>
 | 
			
		||||
          </tr>
 | 
			
		||||
          {/foreach}
 | 
			
		||||
        {/if}
 | 
			
		||||
      </table> -->
 | 
			
		||||
   </div>
 | 
			
		||||
   <!-- 商品信息 -->
 | 
			
		||||
 | 
			
		||||
   <div class='order-box'>
 | 
			
		||||
 | 
			
		||||
       <div class='box-head'>商品清单</div>
 | 
			
		||||
 | 
			
		||||
       <div class='goods-head'>
 | 
			
		||||
 | 
			
		||||
          <div class='goods'>商品</div>
 | 
			
		||||
 | 
			
		||||
          <div class='price'>单价</div>
 | 
			
		||||
 | 
			
		||||
          <div class='num'>数量</div>
 | 
			
		||||
 | 
			
		||||
          <div class='t-price'>总价</div>
 | 
			
		||||
 | 
			
		||||
       </div>
 | 
			
		||||
 | 
			
		||||
       <div class='goods-item'>
 | 
			
		||||
 | 
			
		||||
          <div class='shop'>
 | 
			
		||||
 | 
			
		||||
          {$object['shopName']}
 | 
			
		||||
 | 
			
		||||
          {if $object['shopQQ'] !=''}
 | 
			
		||||
 | 
			
		||||
          <a href="tencent://message/?uin={$object['shopQQ']}&Site=QQ交谈&Menu=yes">
 | 
			
		||||
 | 
			
		||||
			  <img border="0" style='vertical-align:middle;' src="http://wpa.qq.com/pa?p=1:{$object['shopQQ']}:7" alt="QQ交谈" width="71" height="24" />
 | 
			
		||||
 | 
			
		||||
		  </a>
 | 
			
		||||
 | 
			
		||||
          {/if}
 | 
			
		||||
 | 
			
		||||
          {if $object['shopWangWang'] !=''}
 | 
			
		||||
 | 
			
		||||
          <a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid={$object['shopWangWang']}&siteid=cntaobao&status=1&charset=utf-8">
 | 
			
		||||
 | 
			
		||||
			  <img border="0" style='vertical-align:middle;' src="http://amos.alicdn.com/realonline.aw?v=2&uid={$object['shopWangWang']}&site=cntaobao&s=1&charset=utf-8" alt="和我联系" />
 | 
			
		||||
 | 
			
		||||
		  </a>
 | 
			
		||||
 | 
			
		||||
          {/if}
 | 
			
		||||
 | 
			
		||||
          </div>
 | 
			
		||||
 | 
			
		||||
          <div class='goods-list'>
 | 
			
		||||
 | 
			
		||||
             {volist name='$object["goods"]' id='vo2'}
 | 
			
		||||
 | 
			
		||||
             {:hook('adminDocumentOrderViewGoodsPromotion',['goods'=>$vo2])}
 | 
			
		||||
 | 
			
		||||
             <div class='item j-g{$vo2['goodsId']}'>
 | 
			
		||||
 | 
			
		||||
		        <div class='goods'>
 | 
			
		||||
 | 
			
		||||
		            <div class='img'>
 | 
			
		||||
 | 
			
		||||
		                <a href='{:Url("home/goods/detail","id=".$vo2["goodsId"])}' target='_blank'>
 | 
			
		||||
 | 
			
		||||
			            <img src='__IMGURL__/{$vo2["goodsImg"]}' width='80' height='80' title='{$vo2["goodsName"]}'/>
 | 
			
		||||
 | 
			
		||||
			            </a>
 | 
			
		||||
 | 
			
		||||
		            </div>
 | 
			
		||||
 | 
			
		||||
		            <div class='name'>{if $vo2["goodsCode"]=='gift'}【赠品】{/if}{$vo2["goodsName"]}</div>
 | 
			
		||||
 | 
			
		||||
		            <div class='spec'>{:str_replace('@@_@@','<br/>',$vo2["goodsSpecNames"])}</div>
 | 
			
		||||
 | 
			
		||||
		        </div>
 | 
			
		||||
 | 
			
		||||
		        <div class='price'>¥{$vo2['goodsPrice']}</div>
 | 
			
		||||
 | 
			
		||||
		        <div class='num'>{$vo2['goodsNum']}</div>
 | 
			
		||||
 | 
			
		||||
		        <div class='t-price'>¥{$vo2['goodsPrice']*$vo2['goodsNum']}</div>
 | 
			
		||||
 | 
			
		||||
		        <div class='f-clear'></div>
 | 
			
		||||
 | 
			
		||||
             </div>
 | 
			
		||||
 | 
			
		||||
             {/volist}
 | 
			
		||||
 | 
			
		||||
          </div>
 | 
			
		||||
 | 
			
		||||
       </div>
 | 
			
		||||
 | 
			
		||||
       <div class='goods-footer'>
 | 
			
		||||
 | 
			
		||||
          <div class='goods-summary' style='text-align:right'>
 | 
			
		||||
 | 
			
		||||
             <div class='summary'>商品总金额:¥<span>{$object['goodsMoney']}</span></div>
 | 
			
		||||
 | 
			
		||||
             <div class='summary'>运费:¥<span>{$object['deliverMoney']}</span></div>
 | 
			
		||||
 | 
			
		||||
             <div class='summary'>应付总金额:¥<span>{$object['totalMoney']}</span></div>
 | 
			
		||||
 | 
			
		||||
             <div class='summary line'>积分抵扣金额:¥-<span>{$object['scoreMoney']}</span></div>
 | 
			
		||||
 | 
			
		||||
             {:hook('adminDocumentOrderSummaryView',['order'=>$object])}
 | 
			
		||||
 | 
			
		||||
             <div class='summary'>实付总金额:¥<span>{$object['realTotalMoney']}</span></div>
 | 
			
		||||
             <div class='summary'>使用产品券:¥<span>{$object['productNum']}</span></div>
 | 
			
		||||
             <div class='summary'>使用优惠券:¥<span>{$object['couponsNum']}</span></div>
 | 
			
		||||
             <div class='summary'>使用旺旺券:¥<span>{$object['wangNum']}</span></div>
 | 
			
		||||
              <div class='summary'>使用现金:¥<span>{$object['moneyNum']}</span></div>
 | 
			
		||||
             <div>可获得积分:<span class='orderScore'>{$object["orderScore"]}</span>个</div>
 | 
			
		||||
 | 
			
		||||
          </div>
 | 
			
		||||
 | 
			
		||||
       </div>
 | 
			
		||||
 | 
			
		||||
   </div>
 | 
			
		||||
 | 
			
		||||
   <div class='wst-footer'>
 | 
			
		||||
 | 
			
		||||
   <button type="button" class="btn" onclick='javascript:history.go(-1)'><i class="fa fa-angle-double-left"></i>返回</div>
 | 
			
		||||
 | 
			
		||||
<div>
 | 
			
		||||
 | 
			
		||||
{/block}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user