7e47ce238b
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
322 lines
11 KiB
HTML
322 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="renderer" content="webkit">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<title>我的排行-e订通</title>
|
|
<link rel="shortcut icon" type="image/x-icon" href="../favicon.ico" />
|
|
<link rel="stylesheet" href="layuiadmin/layui/css/layui.css">
|
|
<link rel="stylesheet" href="index.css">
|
|
<style>
|
|
#offon{width:300px;}
|
|
#form1_submit{display:none;}
|
|
</style>
|
|
<script src="layuiadmin/layui/layui.js"></script>
|
|
<script src="js/function.js"></script>
|
|
<!-- universal -->
|
|
<link rel="stylesheet" href="js/universal/universal.css">
|
|
<script src="js/universal/universal.js"></script>
|
|
</head>
|
|
<body style="width:100%;background-color:#fff;" >
|
|
<!--搜索-->
|
|
<div class="search">
|
|
<form class="layui-form" id="form1_search" action="ph_my_dl.htm">
|
|
<div id="form1_search_left">
|
|
<div id="search_xx" style="line-height:45px;"></div>
|
|
</div>
|
|
<button id="form1_submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="form1_submit"> 搜 索 </button>
|
|
</form>
|
|
</div>
|
|
<!--表格-->
|
|
<div id="show-table">
|
|
<table class="layui-table">
|
|
<tbody id="show_table_mid"></tbody>
|
|
</table>
|
|
</div>
|
|
<script>
|
|
function show_kh_pic(kh,pic){
|
|
var obj_div=document.getElementById("div_kh_pic");
|
|
var e=e||window.event;
|
|
var st=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;
|
|
if(e){
|
|
var t1=e.clientY+st;
|
|
var l1=e.clientX+40;
|
|
t1=e.clientY>350?t1-230:t1;
|
|
}
|
|
t1=t1>0?t1:0;
|
|
l1=l1>0?l1:0;
|
|
obj_div.style.top=t1+"px";
|
|
obj_div.style.left=l1+"px";
|
|
obj_div.innerHTML="<table border='0' cellspacing='0' cellpadding='0' bgcolor='#CCCCCC' style='border:1px solid #000000'><tr><td align='center' height='18'><b>"+kh+"</b></td></tr><tr><td bgcolor='#FFFFFF'><img src=\""+pic+"\"></td></tr><tr><td bgcolor='#FFFFFF' align='center'><a href=\"#\" onmouseover=\"close_div('div_kh_pic')\">关闭</a></td></tr></table>";
|
|
obj_div.style.display="";
|
|
}
|
|
function close_div(div){
|
|
var obj_div=document.getElementById(div);
|
|
obj_div.style.display="none";
|
|
}
|
|
function openD(kh,color,s_key){
|
|
layui.use(['form','layer','element'],function(){
|
|
var form = layui.form,
|
|
$ = layui.jquery;
|
|
var element = layui.element;
|
|
var layer = layui.layer;
|
|
|
|
var tt="";
|
|
if(color!="" && color!=undefined && color!=null){
|
|
tt=kh+"-"+color+"订单明细";
|
|
color1=color;
|
|
}else{
|
|
tt=kh+"订单明细";
|
|
color1='';
|
|
}
|
|
|
|
var index = layui.layer.open({
|
|
title : tt,
|
|
type : 2,
|
|
offset: 'auto',
|
|
area: ['700px', '600px'],
|
|
content : "order_report_openDetail.htm?kh="+kh+"&color="+color1+"&s_key="+s_key+"&s_group_by=4",
|
|
success : function(layero, index){
|
|
//
|
|
}
|
|
})
|
|
})
|
|
}
|
|
var arr_dl;
|
|
//取得url传递参数
|
|
var query_str=location.search.substring(1);
|
|
if(query_str)
|
|
query_str="&"+query_str;
|
|
var is_mobile="n";
|
|
layui.config({
|
|
base: './layuiadmin/'
|
|
}).extend({
|
|
index: 'lib/index'
|
|
}).use(['index', 'user','rate','flow'], function(){
|
|
|
|
var $ = layui.$
|
|
,setter = layui.setter
|
|
,admin = layui.admin
|
|
,form = layui.form;
|
|
var rate = layui.rate;
|
|
var flow = layui.flow;
|
|
//var url="./?_m=ph"+query_str;
|
|
|
|
flow.load({
|
|
isAuto:true,
|
|
scrollElem:'#show_table_mid',
|
|
elem: '#show_table_mid',
|
|
mb:10,
|
|
done: function (page, next) {
|
|
|
|
$.ajax({
|
|
url:"./?_m=ph_my&page="+page+query_str,
|
|
contentType: "application/json",
|
|
method: 'POST',
|
|
async:false,
|
|
success: function (res) {
|
|
var json_data=$.parseJSON(res);
|
|
var res=$.parseJSON(res);
|
|
//alert(json_data.ver);
|
|
if(json_data.code==0){
|
|
//------------------本页返回的错误信息
|
|
layer.msg(json_data.msg);
|
|
}else if(json_data.code==1){
|
|
//------------------系统错误
|
|
var msg=json_data.msg;
|
|
var url1="error.htm?msg="+json_data.msg+"&btn_title="+json_data.btn_title+"&btn_url="+json_data.btn_url;
|
|
window.parent.location.href=url1;
|
|
}else if(json_data.code==2){
|
|
//------------------重新登录
|
|
url1="login.htm?error_msg="+json_data.msg;
|
|
window.parent.location.href=url1;
|
|
}else{
|
|
//自定义选项
|
|
var html2="";
|
|
html2+="<div class=\"layui-input-inline\" style=\"width:100px\"><input name=\"s_kh\" onblur=\"javascript:form1_search.submit();\" value=\""+res.s_kh+"\" class=\"layui-input\" placeholder=\"输入款号\"></div><div class=\"layui-input-inline\" style=\"width:10px;\"></div>";
|
|
for(var i=0;i<res.select_qm.length;i++){
|
|
html2+='<div class="layui-input-inline" style="width:100px"><select name="'+res.select_qm[i].no+'" lay-filter="s_is_jd">';
|
|
var op=res.select_qm[i].op;
|
|
for(var j=0;j<op.length;j++){
|
|
html2+='<option value="'+op[j].no+'"';
|
|
if(op[j].no==res.select_qm[i].value)
|
|
html2+='selected';
|
|
html2+='>'+op[j].title+'</option>';
|
|
}
|
|
html2+='</select></div><div class="layui-input-inline" style="width:10px;"></div>';
|
|
}
|
|
for(var i=0;i<res.select_dz.length;i++){
|
|
html2+='<div class="layui-input-inline" style="width:100px"><select name="s_'+res.select_dz[i].no+'" lay-filter="s_is_jd"><option value="">-'+res.select_dz[i].title+'-</option>';
|
|
var op=res.select_dz[i].op;
|
|
for(var j=0;j<op.length;j++){
|
|
html2+='<option value="'+op[j].no+'"';
|
|
if(op[j].no==res.select_dz[i].value)
|
|
html2+='selected';
|
|
html2+='>'+op[j].title+'</option>';
|
|
}
|
|
html2+='</select></div><div class="layui-input-inline" style="width:10px;"></div>';
|
|
}
|
|
for(var i=0;i<res.select_hm.length;i++){
|
|
html2+='<div class="layui-input-inline" style="width:100px"><select name="'+res.select_hm[i].no+'" lay-filter="s_is_jd">';
|
|
var op=res.select_hm[i].op;
|
|
for(var j=0;j<op.length;j++){
|
|
html2+='<option value="'+op[j].no+'"';
|
|
if(op[j].no==res.select_hm[i].value)
|
|
html2+='selected';
|
|
html2+='>'+op[j].title+'</option>';
|
|
}
|
|
html2+='</select></div><div class="layui-input-inline" style="width:10px;"></div>';
|
|
}
|
|
if(res.show_key=="y"){
|
|
html2+='<div class="layui-input-inline" style="width:100px;"><select name="s_key" lay-filter="s_is_jd">';
|
|
var op=res.select_order_flag.op;
|
|
for(var i=0;i<op.length;i++){
|
|
html2+='<option value="'+op[i].no+'"';
|
|
if(op[i].no==res.select_order_flag.value)
|
|
html2+='selected';
|
|
html2+='>'+op[i].title+'</option>';
|
|
}
|
|
html2+='</select></div>';
|
|
}
|
|
$("#search_xx").html(html2);
|
|
form.render();
|
|
form.on('select(s_is_jd)', function(data){
|
|
$("#form1_submit").click();
|
|
})
|
|
//1
|
|
var html1="";var html_top="";
|
|
html_top+='<tr>';
|
|
var huanhang=[];
|
|
var ttl = json_data.table_top.length
|
|
for(var i=0;i<ttl;i++){
|
|
huanhang=json_data.table_top[i].split("|");
|
|
if(huanhang.length>1){
|
|
html_top+='<th width=300px; style="min-width: 300px; width: '+(100/ttl).toFixed(2)+'%;">'+huanhang[1]+'</th>';
|
|
}
|
|
else{
|
|
html_top+='<th style="width: '+(100/ttl).toFixed(2)+'%;">'+json_data.table_top[i]+'</th>';
|
|
}
|
|
}
|
|
html_top+='</tr>';
|
|
// $("#show_table_top").html(html_top);
|
|
html1="";
|
|
var lis = [];
|
|
|
|
if (page == 1) lis.push(html_top)
|
|
|
|
var str,srca;
|
|
for(var i=0;i<json_data.table_mid.length;i++){
|
|
html1="";
|
|
html1+='<tr class="mid_style">';
|
|
for(var j=0;j<json_data.table_mid[i].length;j++){
|
|
if(json_data.table_mid[i][j].indexOf("this")!="-1" || json_data.table_mid[i][j].indexOf("jianshu2")!="-1" || json_data.table_mid[i][j].indexOf("pma")!="-1" || json_data.table_mid[i][j].indexOf("jianshu3")!="-1" ){
|
|
if(json_data.table_mid[i][j].indexOf("pma")!="-1"){
|
|
str=json_data.table_mid[i][j].split("|");
|
|
if(str[1]<=3)
|
|
html1+='<td><span style="background:red;width:30px;display:block;color:white;margin:0 auto;">'+str[1]+'</span></td>';
|
|
else
|
|
html1+='<td><span style="background:#D0D0D0;width:30px;display:block;margin:0 auto;">'+str[1]+'</span></td>';
|
|
|
|
}
|
|
if(json_data.table_mid[i][j].indexOf("this")!="-1"){
|
|
str=json_data.table_mid[i][j].split("|");
|
|
srca="<span style='background:;width:150px;display:block;float:left;height:100px;line-height:100px;'><img src="+str[3]+" watermark></span>";
|
|
html1+='<td width="300px;" style="min-width: 300px;"'+srca+'<span style="display:block;background:;text-align:left;width:150px;height:80px;float:right;"><br><span>'+str[1]+'</span><br><p data-khid="'+(json_data.face == 2 ? str[2] : '')+'" class="khid">'+str[4]+'</p></span></td>';
|
|
}
|
|
if(json_data.table_mid[i][j].indexOf("jianshu2")!="-1"){
|
|
str=json_data.table_mid[i][j].split("|");
|
|
html1+="<td style=\"text-decoration:underline;\"><a style=\"color:blue;\" onclick=\"openD('"+str[2]+"','"+str[3]+"','"+res.s_key+"')\">"+str[1]+"</a></td>";
|
|
}
|
|
if(json_data.table_mid[i][j].indexOf("jianshu3")!="-1"){
|
|
str=json_data.table_mid[i][j].split("|");
|
|
html1+="<td style=\"text-decoration:underline;\"><a style=\"color:blue;\" onclick=\"openD('"+str[2]+"','"+str[3]+"','"+res.s_key+"')\">"+str[1]+"</a></td>";
|
|
}
|
|
}
|
|
else
|
|
html1+='<td>'+json_data.table_mid[i][j]+'</td>';
|
|
|
|
}
|
|
html1+='</tr>';
|
|
lis.push(html1);
|
|
}
|
|
next(lis.join(''), page < res.pages);
|
|
USetWatermark({
|
|
is_sy: json_data.is_sy
|
|
,text: json_data.username
|
|
})
|
|
}
|
|
},
|
|
error: function () {
|
|
layui.layer.msg("与服务器通信失败!");
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
$(document).on('click', '#show_table_mid .khid', function() {
|
|
var khid = $(this).attr('data-khid')
|
|
if (khid) {
|
|
parent.layer.open({
|
|
title: false,
|
|
type : 2,
|
|
offset: 'auto',
|
|
closeBtn: false,
|
|
content : "dk_single_qj.htm?khid=" + khid,
|
|
success : function(layero, index){
|
|
parent.layer.full(index)
|
|
}
|
|
})
|
|
}
|
|
})
|
|
if(admin.screen()<2)
|
|
is_mobile="y";
|
|
$(window).on('resize', function(){
|
|
//自动
|
|
if(admin.screen()<2)
|
|
is_mobile="y";
|
|
});
|
|
});
|
|
</script>
|
|
<div id="div_kh_pic" style="display:none;position:absolute;top:10px;left:10px;"></div>
|
|
</body>
|
|
|
|
<style>
|
|
|
|
body {
|
|
background-color: #f0f0f0;
|
|
}
|
|
.search {
|
|
width: calc(100% - 20px);
|
|
text-align: left;
|
|
background-color: #ffffff;
|
|
margin: 10px;
|
|
}
|
|
#show-table {
|
|
margin: 10px;
|
|
width: calc(100% - 20px);
|
|
height: calc(100vh - 90px - 30px);
|
|
position: relative;
|
|
}
|
|
#show_table_mid {
|
|
height: calc(100vh - 90px - 30px);
|
|
overflow: auto;
|
|
display: block;
|
|
}
|
|
#show_table_mid th {
|
|
position: sticky;
|
|
top: -1px;
|
|
z-index: 1;
|
|
background-color: #d0d0d0; color: #000;
|
|
}
|
|
.layui-table {
|
|
margin: 0;
|
|
}
|
|
.search_con_more td{padding:0px;margin:0px;color:#000;}
|
|
|
|
.mid_style{
|
|
height:auto;
|
|
}
|
|
</style>
|
|
|
|
</html> |