123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- h1{
- font-size: 40px;
- margin-bottom: 25px;
- }
- h3{
- font-size: 22px;
- }
- .main .main-title{
- width: 111px;
- height: 18px;
- font-size: 18px;
- font-family: Source Han Sans CN;
- font-weight: 500;
- color: #354655;
- padding-left: 20px;
- }
- .money{
- height: 136px;
- background: linear-gradient(0deg, #FCCDBA, #F8CA9D);
- box-shadow: 0px 14px 20px 0px rgba(233, 94, 0, 0.1);
- border-radius: 30px;
- margin-top: 15px;
- }
- .money .money-img .money-title{
- width: 200px;
- height: 17px;
- font-size: 18px;
- font-family: Source Han Sans CN;
- font-weight: 500;
- color: #FFFFFF;
- margin-left: 65px;
- margin-top: -41px;
- }
- .money .money-num{
- width: 100%;
- height: 37px;
- font-size: 30px;
- font-family: Yuanti SC;
- font-weight: bold;
- color: #FFFFFF;
- line-height: 18px;
- text-shadow: 0px 4px 0px rgba(0, 0, 0, 0.1);
- margin-top: 22px;
- text-align: right;
- padding: 0 30px;
- }
- .money-img{
- padding-top: 10px;
- height: 57px;
- width: 100%;
- margin-left: 10px;
- }
- .order-view{
- width: 100%;
- height: 100px;
- }
- .percent{
- position: absolute;
- width: 40px;
- height: 15px;
- font-size: 24px;
- font-family: Source Han Sans CN;
- font-weight: bold;
- color: #666666;
- top: 85px;
- left: 90px;
- }
- .ov{
- margin-left:10px;
- }
- .z-line{
- margin-top: 20px;
- }
- .progress-cus{
- background-color: #E7E7E7;
- }
- .line-title .line-title2{
- margin-left: 10px;
- width: 55px;
- height: 15px;
- font-size: 20px;
- font-family: Source Han Sans CN;
- font-weight: bold;
- color: #284a94;
- }
- .line-desc-nums{
- width: 57px;
- height: 31px;
- font-size: 42px;
- font-family: Yuanti SC;
- font-weight: bold;
- color: #666666;
- }
- .line-radio1{
- background: #E7E7E7;
- width: 10px;
- height: 10px;
- border-radius: 50%;
- }
- .line-radio2{
- background: #284a94;
- width: 10px;
- height: 10px;
- border-radius: 50%;
- }
- .line-desc1{
- width: 114px;
- float: left;
- }
- .worker{
- text-align: center;
- }
- .worker-num1{
- width: 100%;
- height: 28px;
- font-size: 38px;
- font-family: Yuanti SC;
- font-weight: bold;
- color: #FDAB29;
- text-align: center;
- }
- .worker-num2{
- width: 100%;
- height: 28px;
- font-size: 38px;
- font-family: Yuanti SC;
- font-weight: bold;
- color: #284a94;
- text-align: center;
- }
- .worker-num3{
- width: 100%;
- height: 28px;
- font-size: 38px;
- font-family: Yuanti SC;
- font-weight: bold;
- color: #426EFD;
- text-align: center;
- }
- .worker-title1{
- width: 100%;
- height: 16px;
- font-size: 16px;
- font-family: Source Han Sans CN;
- font-weight: 400;
- color: #666666;
- margin-top: 35px;
- text-align: center;
- }
- .worker-list{
- margin-top: 100px;
- text-align: center;
- }
- .worker-list tr th{
- text-align: center;
- background: #EBF8F5;
- color: #284a94;
- }
- .worker-list tr td{
- text-align: center;
- }
- #ks-order{
- width: 100%;
- height: 300px;
- }
- .month{
- float: right;
- }
- .line-desc-title{
- line-height: 10px;
- }
- .line-desc-title1{
- margin-left: 10px;
- margin-top: -8px;
- }
- </style>
- <!--<div class="panel panel-default" style="background-color: #F6FAF9;">-->
- <!-- <div class="panel-body">-->
- <!-- <div class="col-xs-8">-->
- <!-- <h1><strong>{:get_config('web_site_title')}陪护平台</strong></h1>-->
- <!-- <h3>欢迎您 {:session('user_auth.real_name')} 您最近一次登陆的时间是{:session('user_auth.last_login_time')}</h3>-->
- <!-- <div style="padding-top: 20px">-->
- <!-- <a href="">陪护后台管理操作说明书.pdf</a>-->
- <!-- -->
- <!-- <a href="">陪护用户端操作说明书.pdf</a>-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- <div class="col-xs-2" >-->
- <!-- <img src="{:url('Qrcode/qrcode',['code'=>$code1,'type'=>1])}" style="width: 100%" alt="">-->
- <!-- <div class="text-center" style="font-weight: bold;font-size: 20px;">调度扫一扫</div>-->
- <!-- </div>-->
- <!-- <div class="col-xs-2" >-->
- <!-- <img src="{:url('Qrcode/qrcode',['code'=>$code,'type'=>1])}" style="width: 100%" alt="">-->
- <!-- <div class="text-center" style="font-weight: bold;font-size: 20px;">客户扫一扫</div>-->
- <!-- </div>-->
- <!-- </div>-->
- <!--</div>-->
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="main">
- <span class="main-title">订单金额总览</span>
- <div class="month">
- <select name="month" onchange="loadOrder(this,1)">
- {foreach $month as $k=>$v}
- <option value="{$v}" {if $v==$curMonth} selected {/if}>{$v}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="col-xs-3" >
- <div class="money">
- <div class="money-img">
- <img src="/admin/img/m1.png" alt="">
- <div class="money-title">订单总金额</div>
- </div>
- <div class="money-num" id="money-num1">{$orderData.total}</div>
- </div>
- </div>
- <div class="col-xs-3" >
- <div class="money">
- <div class="money-img">
- <img src="/admin/img/m2.png" alt="">
- <div class="money-title">预收金</div>
- </div>
- <div class="money-num" id="money-num2">{$orderData.pre_money}</div>
- </div>
- </div>
- <div class="col-xs-3" >
- <div class="money">
- <div class="money-img">
- <img src="/admin/img/m3.png" alt="">
- <div class="money-title">已支付金额</div>
- </div>
- <div class="money-num" id="money-num3">{$orderData.pay}</div>
- </div>
- </div>
- <div class="col-xs-3" >
- <div class="money">
- <div class="money-img">
- <img src="/admin/img/m4.png" alt="">
- <div class="money-title" >已结算金额</div>
- </div>
- <div class="money-num" id="money-num4">{$orderData.yjs}</div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-xs-8">
- <div class="row">
- <div class="col-xs-6">
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="main">
- <span class="main-title">订单状态概览</span>
- </div>
- <div class="col-xs-4" style="">
- <div id="dfp" class="order-view">
- </div>
- </div>
- <div class="col-xs-4" >
- <div id="jxz" class="order-view">
- </div>
- </div>
- <div class="col-xs-4" >
- <div id="ywc" class="order-view">
- </div>
- </div>
- <div class="col-xs-4" >
- <div id="yzf" class="order-view">
- </div>
- </div>
- <div class="col-xs-4" >
- <div id="yjs" class="order-view">
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-xs-6">
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="main">
- <span class="main-title">订单增长率</span>
- </div>
- <div class="col-xs-12" >
- <div class="z-line">
- <div class="z-line1">
- <div class="progress">
- <div class="progress-bar progress-cus" role="progressbar" aria-valuenow="100"
- aria-valuemin="0" aria-valuemax="100" style="width: {$lastBl};">
- <span class="sr-only">100% </span>
- </div>
- </div>
- </div>
- <div class="z-line1">
- <div class="progress">
- <div class="progress-bar" role="progressbar"
- aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"
- style="width: {$curBl};">
- <span class="sr-only">90% </span>
- </div>
- </div>
- </div>
- </div>
- <div class="line-title">
- <span class="line-title1">与上月对比</span>
- {if $bl <0}
- <span class="line-title2" style="color: red !important;">{$bl}%</span>
- {else}
- <span class="line-title2">+{$bl}%</span>
- {/if}
- </div>
- <div class="line-desc">
- <div class="line-desc1">
- <span class="line-desc-nums">
- {$lastOrder}
- </span>
- <div class="line-desc-title">
- <div class="line-radio1"></div>
- <div class="line-desc-title1">上月订单总量</div>
- </div>
- </div>
- <div class="line-desc1">
- <span class="line-desc-nums">
- {$curOrder}
- </span>
- <div class="line-desc-title">
- <div class="line-radio2"></div>
- <div class="line-desc-title1">本月订单量</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-xs-12">
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="main">
- <span class="main-title">科室/部门订单类型月分布</span>
- <div class="month">
- <select name="month" id="" onchange="loadOrder(this,2)">
- {foreach $month as $k=>$v}
- <option value="{$v}" {if $v==$curMonth} selected {/if}>{$v}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="col-xs-12" >
- <div id="ks-order">
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-xs-4">
- <div class="panel panel-default">
- <div class="panel-body" style="height: 632px">
- <div class="main">
- <span class="main-title">陪护人员工作数据预览</span>
- </div>
- <div class="col-xs-4">
- <div class="worker">
- <div class="worker-num1">
- {$userCount.count1}
- </div>
- <div class="worker-title1">
- 陪护总数
- </div>
- </div>
- </div>
- <div class="col-xs-4" >
- <div class="worker">
- <div class="worker-num2">
- {$userCount.count2}
- </div>
- <div class="worker-title1">
- 在岗人数
- </div>
- </div>
- </div>
- <div class="col-xs-4" >
- <div class="worker">
- <div class="worker-num3">
- {$userCount.count3}
- </div>
- <div class="worker-title1">
- 空闲人数
- </div>
- </div>
- </div>
- <table class="table worker-list">
- <tr>
- <th>姓名</th>
- <th>进行中</th>
- <th>已完成</th>
- <th>服务天数</th>
- </tr>
- {foreach $workerList as $k=>$v}
- <tr>
- <td>{$v.name}</td>
- <td>{$v.count}</td>
- <td>{$v.ywc}</td>
- <td>{$v.day}</td>
- </tr>
- {/foreach}
- </table>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script src="/static/echarts.js"></script>
- <script>
- function loadOrder(obj,type) {
- $.post('{:url("view")}',{type:type,'month':obj.value},function (res) {
- if(res.code==0){
- if(type==1){
- $('#money-num1').html(res.data.total)
- $('#money-num2').html(res.data.preMoney)
- $('#money-num3').html(res.data.pay)
- $('#money-num4').html(res.data.yjs)
- }else {
- option = {
- tooltip: {
- trigger: 'axis'
- },
- legend: {
- data: res.data.data1
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: res.data.data2
- },
- yAxis: {
- type: 'value'
- },
- series: res.data.data3
- };
- var myChart7 = echarts.init(document.getElementById('ks-order'));
- myChart7.setOption(option);
- }
- }else {
- layer.msg('加载失败');
- }
- })
- }
- $(function () {
- option = {
- color: ['#FB6666','#FED1D1'],
- legend: {
- top: '5%',
- left: 'center'
- },
- series: [
- {
- type: 'pie',
- radius: ['55%', '70%'],
- avoidLabelOverlap: false,
- labelLine: {
- show: false
- },
- data: [
- { value: '{$dfp.count1}' },
- { value:'{$dfp.count2}' },
- ],
- label:{
- normal:{
- show:true,
- position:'center',
- formatter:function () {
- return '{$dfp.bl}\n待分配';
- },
- textStyle:{
- fontSize:10,
- color:'#666666'
- }
- }
- }
- }
- ]
- };
- var myChart2 = echarts.init(document.getElementById('dfp'));
- myChart2.setOption(option);
- option = {
- color: ['#FDAB29','#FEE6BE'],
- legend: {
- top: '5%',
- left: 'center'
- },
- series: [
- {
- type: 'pie',
- radius: ['55%', '70%'],
- avoidLabelOverlap: false,
- labelLine: {
- show: false
- },
- data: [
- { value: '{$jxz.count1}' },
- { value: '{$jxz.count2}' },
- ],
- label:{
- normal:{
- show:true,
- position:'center',
- formatter:function () {
- return '{$jxz.bl}\n进行中';
- },
- textStyle:{
- fontSize:10,
- color:'#666666'
- }
- }
- }
- }
- ]
- };
- var myChart3 = echarts.init(document.getElementById('jxz'));
- myChart3.setOption(option);
- option = {
- color: ['#7C42FF','#D7C6FF'],
- legend: {
- top: '5%',
- left: 'center'
- },
- series: [
- {
- type: 'pie',
- radius: ['55%', '70%'],
- avoidLabelOverlap: false,
- labelLine: {
- show: false
- },
- data: [
- { value: '{$ywc.count1}' },
- { value:'{$ywc.count2}' },
- ],
- label:{
- normal:{
- show:true,
- position:'center',
- formatter:function () {
- return '{$ywc.bl}\n已完成';
- },
- textStyle:{
- fontSize:10,
- color:'#666666'
- }
- }
- }
- }
- ]
- };
- var myChart4 = echarts.init(document.getElementById('ywc'));
- myChart4.setOption(option);
- option = {
- color: ['#426EFD','#C6D3FE'],
- legend: {
- top: '5%',
- left: 'center'
- },
- series: [
- {
- type: 'pie',
- radius: ['55%', '70%'],
- avoidLabelOverlap: false,
- labelLine: {
- show: false
- },
- data: [
- { value: '{$yzf.count1}' },
- { value:'{$yzf.count2}' },
- ],
- label:{
- normal:{
- show:true,
- position:'center',
- formatter:function () {
- return '{$yzf.bl}\n已作废';
- },
- textStyle:{
- fontSize:10,
- color:'#666666'
- }
- }
- }
- }
- ]
- };
- var myChart5 = echarts.init(document.getElementById('yzf'));
- myChart5.setOption(option);
- option = {
- color: ['#70FAFF','#D4FDFF'],
- legend: {
- top: '5%',
- left: 'center'
- },
- series: [
- {
- type: 'pie',
- radius: ['55%', '70%'],
- avoidLabelOverlap: false,
- labelLine: {
- show: false
- },
- data: [
- { value: '{$yjs.count1}' },
- { value:'{$yjs.count2}' },
- ],
- label:{
- normal:{
- show:true,
- position:'center',
- formatter:function () {
- return '{$yjs.bl}\n已结算';
- },
- textStyle:{
- fontSize:10,
- color:'#666666'
- }
- }
- }
- }
- ]
- };
- var myChart6 = echarts.init(document.getElementById('yjs'));
- myChart6.setOption(option);
- option = {
- tooltip: {
- trigger: 'axis'
- },
- legend: {
- data: {:json_encode($viewDataList['data1'])}
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: {:json_encode($viewDataList['data2'])}
- },
- yAxis: {
- type: 'value'
- },
- series: {:json_encode($viewDataList['data3'])}
- };
- var myChart7 = echarts.init(document.getElementById('ks-order'));
- myChart7.setOption(option);
- })
- </script>
- {/block}
|