|
@@ -15,139 +15,7 @@
|
|
|
|
|
|
<div class="layui-fluid">
|
|
|
<div class="layui-row layui-col-space15">
|
|
|
- <div class="layui-col-md12">
|
|
|
- <div class="layui-row layui-col-space15">
|
|
|
- <div class="layui-col-md8">
|
|
|
- <div class="layui-card">
|
|
|
- <div class="layui-card-header">快捷方式</div>
|
|
|
- <div class="layui-card-body">
|
|
|
|
|
|
- <div class="layui-carousel layadmin-carousel layadmin-shortcut">
|
|
|
- <div carousel-item>
|
|
|
- <ul class="layui-row layui-col-space10">
|
|
|
- <li class="layui-col-md3">
|
|
|
- <a lay-href="order/edit.html">
|
|
|
- <i class="layui-icon layui-icon-util"></i>
|
|
|
- <cite>维修开单</cite>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li class="layui-col-md3">
|
|
|
- <a lay-href="order/edit_wash.html">
|
|
|
- <i class="layui-icon layui-icon-water"></i>
|
|
|
- <cite>洗车开单</cite>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li class="layui-col-md3">
|
|
|
- <a lay-href="order/order.html">
|
|
|
- <i class="layui-icon layui-icon-form"></i>
|
|
|
- <cite>工单管理</cite>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li class="layui-col-md3">
|
|
|
- <a lay-href="member/member.html">
|
|
|
- <i class="layui-icon layui-icon-user"></i>
|
|
|
- <cite>会员管理</cite>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
-
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-col-md4">
|
|
|
- <div class="layui-card">
|
|
|
- <div class="layui-card-header">特别提醒</div>
|
|
|
- <div class="layui-card-body">
|
|
|
-
|
|
|
- <div class="layui-carousel layadmin-carousel layadmin-backlog">
|
|
|
- <div carousel-item>
|
|
|
- <ul >
|
|
|
- <li class="layui-col-xs4">
|
|
|
- <a href="javascript:;" class="layadmin-backlog-body">
|
|
|
- <h3.8>本月接车</h3.8>
|
|
|
- <br>
|
|
|
- <p><cite id="order_count"></cite></p>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li class="layui-col-xs4">
|
|
|
- <a href="javascript:;" class="layadmin-backlog-body">
|
|
|
- <h3.8>电子档案</h3.8>
|
|
|
- <br>
|
|
|
- <p><cite id="dzda_count"></cite></p>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li class="layui-col-xs4">
|
|
|
- <a href="javascript:;" class="layadmin-backlog-body">
|
|
|
- <h3.8>保险提醒</h3.8>
|
|
|
- <br>
|
|
|
- <p><cite id="insurance_count">4</cite></p>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li class="layui-col-xs4">
|
|
|
- <a href="javascript:;" class="layadmin-backlog-body">
|
|
|
- <h3.8>定保提醒</h3.8>
|
|
|
- <br>
|
|
|
- <p><cite id="routine_remind_count">2</cite></p>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
-
|
|
|
- <li class="layui-col-xs4">
|
|
|
- <a href="javascript:;" class="layadmin-backlog-body">
|
|
|
- <h3.8>年检提醒</h3.8>
|
|
|
- <br>
|
|
|
- <p><cite id="vehicle_inspection_count">3</cite></p>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="layui-col-md8">
|
|
|
- <div class="layui-card">
|
|
|
- <div class="layui-card-header">数据概览(最近12个月)</div>
|
|
|
- <div class="layui-card-body">
|
|
|
- <div id="chart1" style="height:360px;">
|
|
|
-
|
|
|
- </div>
|
|
|
- <div id="chart2" style="height:360px;">
|
|
|
-
|
|
|
- </div>
|
|
|
- <div id="chart3" style="height:360px;">
|
|
|
-
|
|
|
- </div>
|
|
|
-
|
|
|
- <div id="chart4" style="height:360px;">
|
|
|
-
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-col-md4">
|
|
|
- <div class="layui-card" id="Notice">
|
|
|
- <div class="layui-card-header">公告</div>
|
|
|
- <table class="layui-hide" id="datagrid" lay-filter="datagrid"></table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-col-md4">
|
|
|
- <div class="layui-card">
|
|
|
- <div class="layui-card-header">手机版</div>
|
|
|
- <div class="layui-card-body" style="text-align: center">
|
|
|
- <img src="http://soft.zzliaoyuan.com/repairwin_qrcode.png" style="width: 200px; height:200px">
|
|
|
- <p>扫描二维码下载安装手机版</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- </div>
|
|
|
</div>
|
|
|
|
|
|
<script src="../../layuiadmin/layui/layui.js?t=1"></script>
|
|
@@ -159,478 +27,7 @@
|
|
|
index: 'lib/index', //主入口模块
|
|
|
}).use(['index', 'home','echarts', 'table'], function() {
|
|
|
var $ = layui.$;
|
|
|
- var admin = layui.admin
|
|
|
- ,echarts = layui.echarts;
|
|
|
- var mouth =[]
|
|
|
- var table = layui.table;
|
|
|
- var user_id = layui.data(layui.setter.tableName)['USER-ID'];
|
|
|
-
|
|
|
- table.render({
|
|
|
- elem: '#datagrid'
|
|
|
- ,url: '/office/notice/unexpired/data/'
|
|
|
- ,cols: [[
|
|
|
- {field:'id',align:'left', width:'9%', templet: function(d){
|
|
|
- var isRead = false;
|
|
|
-
|
|
|
- for (var a=0;a<d.browses_user.length;a++){
|
|
|
- if (d.browses_user[a]['browse_user'] == user_id){
|
|
|
- isRead = true;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- if (isRead) {
|
|
|
- return '<span id="P_'+ d.id +'"><i class="layui-icon layui-icon-ok-circle"></i></span>';
|
|
|
- } else {
|
|
|
- return '<span id="P_'+ d.id +'"><i class="layui-icon layui-icon-log"></i></span>';
|
|
|
- }
|
|
|
-
|
|
|
- }}
|
|
|
- ,{field:'title',align:'left', title:'标题', width:'63%'}
|
|
|
- ,{field:'create_time',align:'left', title:'发布时间', width:'28%'}
|
|
|
- ]]
|
|
|
- ,height: '300px'
|
|
|
- ,done: function (res) {
|
|
|
- $('th').hide(); // 去掉表头
|
|
|
- $('td').css({'border': '0px'});
|
|
|
- layui.index.removeNoPermButtons();
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
- admin.req({
|
|
|
- url: '/order/order/count/'
|
|
|
- , done: function (res) {
|
|
|
- $('#order_count').html(res.data.order_count);
|
|
|
- $('#dzda_count').html(res.data.dzda_count);
|
|
|
- $('#insurance_count').html(res.data.insurance_count);
|
|
|
- $('#routine_remind_count').html(res.data.routine_remind_count);
|
|
|
- $('#vehicle_inspection_count').html(res.data.vehicle_inspection_count);
|
|
|
- }
|
|
|
- });
|
|
|
- admin.req({
|
|
|
- url:'/order/order/report/?maint_order=1&wash_order=1&deliver_part=1&member=1'
|
|
|
- , done: function (res) {
|
|
|
- var mouth=res.data.order_mouth
|
|
|
- var order_amount=res.data.order_amount
|
|
|
- var order_count=res.data.order_count
|
|
|
- var washorder_amount=res.data.washorder_amount
|
|
|
- var washorder_count=res.data.washorder_count
|
|
|
- var deliver_count=res.data.deliver_count
|
|
|
- var deliver_amount=res.data.deliver_amount
|
|
|
- var member_count=res.data.member_count
|
|
|
- var member_amount=res.data.member_amount
|
|
|
- var chart1 = echarts.init($('#chart1')[0]);
|
|
|
- var chart2 = echarts.init($('#chart2')[0]);
|
|
|
- var chart3 = echarts.init($('#chart3')[0]);
|
|
|
- var chart4 = echarts.init($('#chart4')[0]);
|
|
|
-
|
|
|
- var option1 = {
|
|
|
- title: {
|
|
|
- text: '工单统计'
|
|
|
- },
|
|
|
- tooltip: {
|
|
|
- trigger: 'axis',
|
|
|
- axisPointer: {
|
|
|
- type: 'cross',
|
|
|
- crossStyle: {
|
|
|
- color: '#999'
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- toolbox: {
|
|
|
- feature: {
|
|
|
- dataView: {show: true, readOnly: false},
|
|
|
- magicType: {show: true, type: ['line', 'bar']},
|
|
|
- restore: {show: true},
|
|
|
- saveAsImage: {show: true}
|
|
|
- }
|
|
|
- },
|
|
|
- legend: {
|
|
|
- data:['金额','台次']
|
|
|
- },
|
|
|
- xAxis: [
|
|
|
- {
|
|
|
- type: 'category',
|
|
|
- data: mouth,
|
|
|
- axisPointer: {
|
|
|
- type: 'shadow'
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688', // 颜色
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- yAxis: [
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '金额',
|
|
|
- min: 0,
|
|
|
- axisLabel: {
|
|
|
- formatter: '{value} 元'
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688', // 颜色
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '台次',
|
|
|
- min: 0,
|
|
|
- axisLabel: {
|
|
|
- formatter: '{value} '
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688', // 颜色
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- series: [
|
|
|
- {
|
|
|
- name:'金额',
|
|
|
- type:'bar',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: "#FFB800",
|
|
|
- lineStyle: {
|
|
|
- color: "#FFB800"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- data:order_amount,
|
|
|
- },
|
|
|
- {
|
|
|
- name:'台次',
|
|
|
- type:'line',
|
|
|
- yAxisIndex: 1,
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: "#1E9FFF",
|
|
|
- lineStyle: {
|
|
|
- color: "#1E9FFF"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- data:order_count
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
- var option2 = {
|
|
|
- title: {
|
|
|
- text: '洗车统计'
|
|
|
- },
|
|
|
- tooltip: {
|
|
|
- trigger: 'axis',
|
|
|
- axisPointer: {
|
|
|
- type: 'cross',
|
|
|
- crossStyle: {
|
|
|
- color: '#999'
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- toolbox: {
|
|
|
- feature: {
|
|
|
- dataView: {show: true, readOnly: false},
|
|
|
- magicType: {show: true, type: ['line', 'bar']},
|
|
|
- restore: {show: true},
|
|
|
- saveAsImage: {show: true}
|
|
|
- }
|
|
|
- },
|
|
|
- legend: {
|
|
|
- data:['金额','台次']
|
|
|
- },
|
|
|
- xAxis: [
|
|
|
- {
|
|
|
- type: 'category',
|
|
|
- data: mouth,
|
|
|
- axisPointer: {
|
|
|
- type: 'shadow'
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688',
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- yAxis: [
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '台次',
|
|
|
- min: 0,
|
|
|
- axisLabel: {
|
|
|
- formatter: '{value} 元'
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688',
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '台次',
|
|
|
- min: 0,
|
|
|
- axisLabel: {
|
|
|
- formatter: '{value} '
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688',
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- series: [
|
|
|
- {
|
|
|
- name:'金额',
|
|
|
- type:'bar',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: "#FFB800",
|
|
|
- lineStyle: {
|
|
|
- color: "#FFB800"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- data:washorder_amount,
|
|
|
- },
|
|
|
- {
|
|
|
- name:'台次',
|
|
|
- type:'line',
|
|
|
- yAxisIndex: 1,
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: "#1E9FFF",
|
|
|
- lineStyle: {
|
|
|
- color: "#1E9FFF"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- data:washorder_count
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
- var option3 = {
|
|
|
- title: {
|
|
|
- text: '出库统计'
|
|
|
- },
|
|
|
- tooltip: {
|
|
|
- trigger: 'axis',
|
|
|
- axisPointer: {
|
|
|
- type: 'cross',
|
|
|
- crossStyle: {
|
|
|
- color: '#999'
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- toolbox: {
|
|
|
- feature: {
|
|
|
- dataView: {show: true, readOnly: false},
|
|
|
- magicType: {show: true, type: ['line', 'bar']},
|
|
|
- restore: {show: true},
|
|
|
- saveAsImage: {show: true}
|
|
|
- }
|
|
|
- },
|
|
|
- legend: {
|
|
|
- data:['金额','数量']
|
|
|
- },
|
|
|
- xAxis: [
|
|
|
- {
|
|
|
- type: 'category',
|
|
|
- data: mouth,
|
|
|
- axisPointer: {
|
|
|
- type: 'shadow'
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688',
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- yAxis: [
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '金额',
|
|
|
- min: 0,
|
|
|
- axisLabel: {
|
|
|
- formatter: '{value} 元'
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688',
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '数量',
|
|
|
- min: 0,
|
|
|
- axisLabel: {
|
|
|
- formatter: '{value} '
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688',
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- series: [
|
|
|
- {
|
|
|
- name:'金额',
|
|
|
- type:'bar',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: "#FFB800",
|
|
|
- lineStyle: {
|
|
|
- color: "#FFB800"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- data:deliver_amount,
|
|
|
- },
|
|
|
- {
|
|
|
- name:'数量',
|
|
|
- type:'line',
|
|
|
- yAxisIndex: 1,
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: "#1E9FFF",
|
|
|
- lineStyle: {
|
|
|
- color: "#1E9FFF"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- data:deliver_count
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
- var option4 = {
|
|
|
- title: {
|
|
|
- text: '会员统计'
|
|
|
- },
|
|
|
- tooltip: {
|
|
|
- trigger: 'axis',
|
|
|
- axisPointer: {
|
|
|
- type: 'cross',
|
|
|
- crossStyle: {
|
|
|
- color: '#999'
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- toolbox: {
|
|
|
- feature: {
|
|
|
- dataView: {show: true, readOnly: false},
|
|
|
- magicType: {show: true, type: ['line', 'bar']},
|
|
|
- restore: {show: true},
|
|
|
- saveAsImage: {show: true}
|
|
|
- }
|
|
|
- },
|
|
|
- legend: {
|
|
|
- data:['金额','数量']
|
|
|
- },
|
|
|
- xAxis: [
|
|
|
- {
|
|
|
- type: 'category',
|
|
|
- data: mouth,
|
|
|
- axisPointer: {
|
|
|
- type: 'shadow'
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688',
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- yAxis: [
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '金额',
|
|
|
- min: 0,
|
|
|
- axisLabel: {
|
|
|
- formatter: '{value} 元'
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688',
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '数量',
|
|
|
- min: 0,
|
|
|
- axisLabel: {
|
|
|
- formatter: '{value} '
|
|
|
- },
|
|
|
- axisLine: {
|
|
|
- lineStyle: {
|
|
|
- color: '#009688',
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- series: [
|
|
|
- {
|
|
|
- name:'销售金额',
|
|
|
- type:'bar',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: "#FFB800",
|
|
|
- lineStyle: {
|
|
|
- color: "#FFB800"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- data:member_amount,
|
|
|
- },
|
|
|
- {
|
|
|
- name:'销售数量',
|
|
|
- type:'line',
|
|
|
- yAxisIndex: 1,
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: "#1E9FFF",
|
|
|
- lineStyle: {
|
|
|
- color: "#1E9FFF"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- data:member_count
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
- chart1.setOption(option1);
|
|
|
- chart2.setOption(option2);
|
|
|
- chart3.setOption(option3);
|
|
|
- chart4.setOption(option4);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- });
|
|
|
- table.on('row(datagrid)', function (obj) {
|
|
|
- var data = obj.data;
|
|
|
- table.editdata = data;
|
|
|
- layui.onSubmitChild = function (data) {
|
|
|
- table.reload('datagrid',{});
|
|
|
- };
|
|
|
|
|
|
- layer.open({
|
|
|
- type: 2,
|
|
|
- title: '查看['+ data.title + ']',
|
|
|
- shadeClose: true,
|
|
|
- area: ['80%', '80%'],
|
|
|
- content: '/views/notice/notice_detail.html?id='+data.id
|
|
|
- });
|
|
|
- });
|
|
|
|
|
|
});
|
|
|
|