chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
+371
@@ -0,0 +1,371 @@
|
||||
<!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="stylesheet" href="layuiadmin/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="index.css">
|
||||
<script src="layuiadmin/layui/layui.js"></script>
|
||||
<script src="js/function.js"></script>
|
||||
<style type="text/css">
|
||||
.layui-table-cell {
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<blockquote class="layui-elem-quote" style="line-height:44px;padding:8px;">
|
||||
<div class="layui-inline"><a class="layui-btn layui-btn-normal btn_copy">订单复制</a></div>
|
||||
<div class="layui-inline"><a class="layui-btn layui-btn-normal btn_edit_color">订单颜色批量修改</a></div>
|
||||
<div class="layui-inline"><a class="layui-btn layui-btn-normal btn_import">订单导入</a></div>
|
||||
<div class="layui-inline"><a class="layui-btn layui-btn-danger btn_del">删除订单</a></div>
|
||||
|
||||
<div class="layui-inline"><a class="layui-btn layui-btn-warm btn_cache_order">缓存订单表</a></div>
|
||||
<div class="layui-inline"><a class="layui-btn layui-btn-warm btn_cache_client">缓存客户表</a></div>
|
||||
<div class="layui-inline"><a class="layui-btn layui-btn-warm btn_cache_ph">缓存排行</a></div>
|
||||
<div class="layui-inline"><a class="layui-btn layui-btn-warm btn_check">容错检查</a></div>
|
||||
<div class="layui-inline"><a class="layui-btn layui-btn-warm btn_sql_data">生成sql日志</a></div>
|
||||
<form class="layui-form" id="form1_search" action="order.htm" method="get">
|
||||
<div class="layui-input-inline" style="width:100px;" id="search_dp"></div>
|
||||
<div class="layui-input-inline" style="width:100px;" id="search_kh"></div>
|
||||
<span id="search_dz_select"></span>
|
||||
<button id="form1_submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="form1_submit"> 搜 索 </button>
|
||||
</form>
|
||||
</blockquote>
|
||||
<form class="layui-form">
|
||||
<table id="layui_table" lay-filter="layui_table" style="">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var tableIns={};
|
||||
function reload_table(){
|
||||
tableIns.reload();
|
||||
}
|
||||
layui.use(['form','layer','laydate','table','laytpl'],function(){
|
||||
var form = layui.form,
|
||||
layer = layui.layer,
|
||||
$=layui.jquery,
|
||||
laydate = layui.laydate,
|
||||
laytpl = layui.laytpl,
|
||||
table = layui.table;
|
||||
//取得url传递参数
|
||||
var query_str=location.search.substring(1);
|
||||
if(query_str)
|
||||
query_str="&"+query_str;
|
||||
//---------------------------------------------数据表格
|
||||
var index = layer.load();
|
||||
var url='./?_m=order'+query_str;
|
||||
//var cols=[];
|
||||
//cols[0]={type: "checkbox", fixed:"left",width:50,style:"height:150px;"};
|
||||
//cols[1]={field: 'xh', title: '序号', width:90,align:"center",sort: true};
|
||||
//cols[2]={field: 'detail', title: '款式明细',align:'left',templet:'#tpl_detail'};
|
||||
tableIns = table.render({
|
||||
even:false,
|
||||
elem: '#layui_table',
|
||||
url : url,
|
||||
cellMinWidth:80,
|
||||
page :true,
|
||||
height : "full-140",
|
||||
limit : 10,
|
||||
limits : [10,20,30,50,100],
|
||||
id : "ListTable",
|
||||
cols : [[
|
||||
{type: "checkbox", width:50},
|
||||
{field: 'xh', title: '序号', align:"center", width:70},
|
||||
{field: 'ka', title: '删除款', align:"center", width:70},
|
||||
{field: 'dp', title: '店铺', align:"center"},
|
||||
{field: 'kh', title: '款号', align:"left",templet:function(d){
|
||||
var data=d;
|
||||
var str="";
|
||||
str+="<div style='float:left;width:130px;' align='center'><a href='javascript:;' lay-event='edit'>"+data.kh+"</a></div>";
|
||||
return str;
|
||||
}},
|
||||
{field: 'color', title: '颜色', align:"left"},
|
||||
{field: 'gg', title: '规格', align:"left", width:70},
|
||||
{field: 'bx', title: '杯型', align:"left", width:70},
|
||||
{field: 'size', title: '尺码', align:"left",templet:function(d){
|
||||
var arr=d.size;
|
||||
var tmp=tmp1=tmp2="";
|
||||
tmp1+="<tr>";
|
||||
tmp2+="<tr>";
|
||||
var js=(1/arr.length)*100;
|
||||
var bl=Math.round(js);
|
||||
for(var i=0;i<arr.length;i++){
|
||||
tmp1+="<td width='"+bl+"%' align='center'>"+arr[i].t+"</td>";
|
||||
tmp2+="<td width='"+bl+"%' align='center'>"+arr[i].v+"</td>";
|
||||
}
|
||||
tmp1+="</tr>";
|
||||
tmp2+="</tr>";
|
||||
tmp+="<table border='1px' cellspacing='0' cellpadding='0' width='100%'>"+tmp1+tmp2+"</table>"
|
||||
return tmp;
|
||||
}},
|
||||
{field: 'num', title: '小计', align:"left", width:70},
|
||||
{field: 'date', title: '下单时间', align:"left"}
|
||||
]],
|
||||
done: function(res, curr, count){
|
||||
var curr = curr;
|
||||
//---------------------------------------------设置搜索框
|
||||
//alert(res.count);
|
||||
//根据url取得搜索条件的默认值
|
||||
var s_dp=s_no=s_is_sp=s_in_ph=s_ka=s_ka_color="";
|
||||
for(var i=0;i<res.select_dz.length;i++){
|
||||
eval("var s_"+res.select_dz[i].no+"='';");
|
||||
}
|
||||
var pairs=query_str.split("&");//在逗号处断开
|
||||
for(var i=0;i<pairs.length;i++){
|
||||
var pos=pairs[i].indexOf('=');//查找name=value
|
||||
if(pos>=0){
|
||||
var argname=pairs[i].substring(0,pos);
|
||||
var value=pairs[i].substring(pos+1);
|
||||
//alert(argname+"|"+unescape(value));
|
||||
if(argname && value)
|
||||
eval("var "+argname+"=\""+unescape(value)+"\";");
|
||||
}
|
||||
}
|
||||
//店铺
|
||||
html1='<input id="s_dp" name="s_dp" type="text" class="layui-input searchVal" placeholder="店铺" value="'+s_dp+'" />';
|
||||
$("#search_dp").html(html1);
|
||||
//款号
|
||||
html1='<input id="s_no" name="s_no" type="text" class="layui-input searchVal" placeholder="款号" value="'+s_no+'" />';
|
||||
$("#search_kh").html(html1);
|
||||
|
||||
//自定义选项
|
||||
var html1="";
|
||||
for(var i=0;i<res.select_dz.length;i++){
|
||||
html1+='<div class="layui-inline" style="width:100px;"><select name="s_'+res.select_dz[i].no+'"><option value="">-'+res.select_dz[i].title+'-</option>';
|
||||
var op=res.select_dz[i].op;
|
||||
for(var j=0;j<op.length;j++){
|
||||
html1+='<option value="'+op[j].no+'"';
|
||||
if(op[j].no==res.select_dz[i].value)
|
||||
html1+='selected';
|
||||
html1+='>'+op[j].title+'</option>';
|
||||
}
|
||||
html1+='</select></div>';
|
||||
}
|
||||
//alert(html1);
|
||||
$("#search_dz_select").html(html1);
|
||||
|
||||
form.render();
|
||||
layer.close(index);
|
||||
}
|
||||
});
|
||||
//导入
|
||||
function import_excel(){
|
||||
var index = layui.layer.open({
|
||||
title : "导入款号资料",
|
||||
type : 2,
|
||||
content : "import_excel.htm?m=order",
|
||||
success : function(layero, index){
|
||||
var body = layui.layer.getChildFrame('body', index);
|
||||
body.find("#m").val("order");
|
||||
form.render();
|
||||
}
|
||||
})
|
||||
layui.layer.full(index);
|
||||
//改变窗口大小时,重置弹窗的宽高,防止超出可视区域(如F12调出debug的操作)
|
||||
$(window).on("resize",function(){
|
||||
layui.layer.full(index);
|
||||
})
|
||||
}
|
||||
$(".btn_import").click(function(){
|
||||
import_excel();
|
||||
})
|
||||
//导出
|
||||
function export_excel(){
|
||||
var index = layui.layer.open({
|
||||
title : "导出款号资料",
|
||||
type : 2,
|
||||
content : "order_export.htm",
|
||||
})
|
||||
layui.layer.full(index);
|
||||
//改变窗口大小时,重置弹窗的宽高,防止超出可视区域(如F12调出debug的操作)
|
||||
$(window).on("resize",function(){
|
||||
layui.layer.full(index);
|
||||
})
|
||||
}
|
||||
$(".btn_export").click(function(){
|
||||
export_excel();
|
||||
})
|
||||
//新增、编辑
|
||||
function add(id){
|
||||
var t1=(id>0)?"编辑":"新增";
|
||||
var index = layui.layer.open({
|
||||
title : t1+"款号",
|
||||
type : 2,
|
||||
content : "order_add.htm?id="+id,
|
||||
success : function(layero, index){
|
||||
}
|
||||
})
|
||||
layui.layer.full(index);
|
||||
//改变窗口大小时,重置弹窗的宽高,防止超出可视区域(如F12调出debug的操作)
|
||||
$(window).on("resize",function(){
|
||||
layui.layer.full(index);
|
||||
})
|
||||
}
|
||||
$(".btn_add").click(function(){
|
||||
add(0);
|
||||
})
|
||||
//批量删除
|
||||
$(".btn_del").click(function(){
|
||||
var checkStatus = table.checkStatus('ListTable'),
|
||||
data = checkStatus.data,
|
||||
check_id = [];
|
||||
if(data.length>0) {
|
||||
for (var i in data) {
|
||||
check_id.push(data[i].id);
|
||||
}
|
||||
layer.confirm('确定删除吗?', {icon: 3, title: '提示信息'}, function (index) {
|
||||
$.get("./?_m=order&_a=del",{id:check_id},function(data){
|
||||
if(data.code=="1"){
|
||||
tableIns.reload();
|
||||
layer.close(index);
|
||||
}else{
|
||||
layer.msg(data.msg);
|
||||
}
|
||||
},"json")
|
||||
})
|
||||
}else{
|
||||
layer.msg("请选择需要删除的记录");
|
||||
}
|
||||
})
|
||||
//复制
|
||||
$(".btn_copy").click(function(){
|
||||
var index = layui.layer.open({
|
||||
title : "订单复制",
|
||||
type : 2,
|
||||
content : "order_copy.htm",
|
||||
success : function(layero, index){
|
||||
var body = layui.layer.getChildFrame('body', index);
|
||||
form.render();
|
||||
}
|
||||
})
|
||||
layui.layer.full(index);
|
||||
//改变窗口大小时,重置弹窗的宽高,防止超出可视区域(如F12调出debug的操作)
|
||||
$(window).on("resize",function(){
|
||||
layui.layer.full(index);
|
||||
})
|
||||
})
|
||||
//订单颜色批量修改
|
||||
$(".btn_edit_color").click(function(){
|
||||
var index = layui.layer.open({
|
||||
title : "订单颜色批量修改",
|
||||
type : 2,
|
||||
content : "order_mod_color.htm",
|
||||
success : function(layero, index){
|
||||
var body = layui.layer.getChildFrame('body', index);
|
||||
form.render();
|
||||
}
|
||||
})
|
||||
layui.layer.full(index);
|
||||
//改变窗口大小时,重置弹窗的宽高,防止超出可视区域(如F12调出debug的操作)
|
||||
$(window).on("resize",function(){
|
||||
layui.layer.full(index);
|
||||
})
|
||||
})
|
||||
//缓存订单表
|
||||
$(".btn_cache_order").click(function(){
|
||||
var index = layui.layer.open({
|
||||
title : "缓存订单表",
|
||||
type : 2,
|
||||
content : "order_cache_order.htm",
|
||||
success : function(layero, index){
|
||||
var body = layui.layer.getChildFrame('body', index);
|
||||
form.render();
|
||||
}
|
||||
})
|
||||
layui.layer.full(index);
|
||||
//改变窗口大小时,重置弹窗的宽高,防止超出可视区域(如F12调出debug的操作)
|
||||
$(window).on("resize",function(){
|
||||
layui.layer.full(index);
|
||||
})
|
||||
})
|
||||
//缓存客户表
|
||||
$(".btn_cache_client").click(function(){
|
||||
var index = layui.layer.open({
|
||||
title : "缓存客户表",
|
||||
type : 2,
|
||||
content : "order_cache_client.htm",
|
||||
success : function(layero, index){
|
||||
var body = layui.layer.getChildFrame('body', index);
|
||||
form.render();
|
||||
}
|
||||
})
|
||||
layui.layer.full(index);
|
||||
//改变窗口大小时,重置弹窗的宽高,防止超出可视区域(如F12调出debug的操作)
|
||||
$(window).on("resize",function(){
|
||||
layui.layer.full(index);
|
||||
})
|
||||
})
|
||||
//生成sql日志
|
||||
$(".btn_sql_data").click(function(){
|
||||
var index = layui.layer.open({
|
||||
title : "生成sql日志",
|
||||
type : 2,
|
||||
content : "order_order_sql.htm",
|
||||
success : function(layero, index){
|
||||
var body = layui.layer.getChildFrame('body', index);
|
||||
form.render();
|
||||
}
|
||||
})
|
||||
layui.layer.full(index);
|
||||
//改变窗口大小时,重置弹窗的宽高,防止超出可视区域(如F12调出debug的操作)
|
||||
$(window).on("resize",function(){
|
||||
layui.layer.full(index);
|
||||
})
|
||||
})
|
||||
//列表操作
|
||||
table.on('tool(layui_table)', function(obj){
|
||||
var layEvent = obj.event,
|
||||
data = obj.data;
|
||||
if(layEvent === 'edit'){
|
||||
//编辑
|
||||
add(data.id);
|
||||
} else if(layEvent === 'del'){
|
||||
//删除
|
||||
layer.confirm('确定删除吗?',{icon:3, title:'提示信息'},function(index){
|
||||
$.get("./?_m=order&_a=del",{id:data.id},function(data){
|
||||
tableIns.reload();
|
||||
layer.close(index);
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
||||
//纠错检查
|
||||
$(".btn_check").click(function(){
|
||||
var index = layui.layer.open({
|
||||
title : "纠错检查",
|
||||
type : 2,
|
||||
area: ['400px', '600px'],
|
||||
content : "order_check.htm",
|
||||
success : function(layero, index){
|
||||
//
|
||||
|
||||
}
|
||||
})
|
||||
})
|
||||
//缓存排行
|
||||
$(".btn_cache_ph").click(function(){
|
||||
var index = layui.layer.open({
|
||||
title : "缓存排行",
|
||||
type : 2,
|
||||
area: ['300px', '300px'],
|
||||
content : "order_cache_ph.htm",
|
||||
success : function(layero, index){
|
||||
|
||||
}
|
||||
})
|
||||
})
|
||||
//搜索
|
||||
form.on("submit(form1_submit)",function(data){
|
||||
//弹出loading
|
||||
return true;
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user