-
本日工作量统计
+
今日工作量统计
Index: ssts-web/src/main/webapp/disinfectsystem/config/gyey/realTimeDashboards/js/index.js
===================================================================
diff -u -r35169 -r36122
--- ssts-web/src/main/webapp/disinfectsystem/config/gyey/realTimeDashboards/js/index.js (.../index.js) (revision 35169)
+++ ssts-web/src/main/webapp/disinfectsystem/config/gyey/realTimeDashboards/js/index.js (.../index.js) (revision 36122)
@@ -102,6 +102,13 @@
}
}
var option = {
+ title: {
+ text: '',
+ subtext: '单位(包)',
+ subtextStyle: {
+ color: '#fff'
+ }
+ },
// 工具提示
tooltip: {
// 触发类型 经过轴触发axis 经过轴触发item
@@ -184,68 +191,17 @@
myechart.setOption(option);
}
-function createChartsForGauge(dom, onlineUserAmount, userAmount) {
- var myechart = echarts.init($(dom)[0]);
- var series = [
- {
- type: 'gauge', //类型:仪表盘图
- name: '当前在线',
- title: {
- offsetCenter: [0, '120%'],
- color: "#fff",
- fontSize: 16,
- },
- center: ['50%', '45%'], //仪表盘图的中心点相对于dom容器的位置
- detail: {
- formatter: '{value} / ' + userAmount,
- offsetCenter: [0, 0],
- color: "#FFF",
- fontSize: 18
- },
- data: [{
- value: onlineUserAmount, //此处要改数据
- name: '当前在线 / 人员总数'
- }],
- radius: '80%', //环形的大小
- clockwise: true,
- axisLine: {
- show: true,
- lineStyle: {
- color: [
- [onlineUserAmount / userAmount, '#1A8FC5'], //占总数的30.25%,即value/100,颜色为'#1A8FC5'
- [1, '#fefefe'] //基底大圈比例为1,颜色为'#E1E8EE',
- ],
- width: 10, //环形的粗细
- }
- },
- splitLine: {
- show: false //不显示分隔线
- },
- axisTick: {
- show: false //不显示仪表盘刻度
- },
- axisLabel: {
- show: false
- },
- pointer: {
- show: false //不显示仪表盘指针
- }
- }
- ]
- var option = {
- tooltip: {
- formatter: '{a}
{b} : {c}%'
- },
- color: ['#53f1f2', '#4ebefd'],
- series: series
- }
- myechart.setOption(option);
-}
-
function createChartsForLine(dom, xAxisData, seriesData) {
var myechart = echarts.init($(dom)[0]);
var xAxisData1 = xAxisData;
var option = {
+ title: {
+ text: ' ',
+ subtext: '单位(包)',
+ subtextStyle: {
+ color: '#fff'
+ }
+ },
tooltip: {
trigger: 'axis',
axisPointer: {
@@ -355,7 +311,7 @@
success: function (result) {
var userAmount = result.data.userAmount;
var onlineUserAmount = result.data.onlineUserAmount;
- createChartsForGauge('#gauge', onlineUserAmount, userAmount);
+ $('#onlineUserAmount').html(onlineUserAmount)
}
})
}
@@ -378,6 +334,7 @@
}
html += '
' + result.data[i].name + '';
html += '
' + result.data[i].status + '';
+ html += '
' + (result.data[i].dateStr || "") + '';
html += '
';
html += '
';
}
@@ -398,12 +355,6 @@
dataType: 'json',
url: url,
success: function (result) {
- var invoicedUrgentAmount = result.data.invoicedUrgentAmount;
- var toBeInvoiceUrgentAmount = result.data.toBeInvoiceUrgentAmount;
- var invoicedAmount = result.data.invoicedAmount;
- $('#invoicedUrgentAmount').html(invoicedUrgentAmount)
- $('#toBeInvoiceUrgentAmount').html(toBeInvoiceUrgentAmount)
- $('#invoicedAmount').html(invoicedAmount);
//待处理 外来器械
var foreignToBeRecycledAmount = result.data.foreignToBeRecycledAmount || 0;
var foreignTobeWashAmount = result.data.foreignTobeWashAmount || 0;
@@ -419,6 +370,13 @@
var foreignSterilizationedAmount = result.data.foreignSterilizationedAmount || 0;
var foreignInvoicedAmount = result.data.foreignInvoicedAmount || 0;
var foreignSignedAmount = result.data.foreignSignedAmount || 0;
+ //总数量 外来器械
+ var sumForeignRecycledAmount = foreignToBeRecycledAmount + foreignRecycledAmount;
+ var sumForeignWashedAmount = foreignTobeWashAmount + foreignWashedAmount;
+ var sumForeignPackedAmount = foreignToBePackAmount + foreignPackedAmount;
+ var sumForeignSterilizationedAmount = foreignToBeSterilizationAmount + foreignSterilizationedAmount;
+ var sumForeignInvoicedAmount = foreignToBeInvoiceAmount + foreignInvoicedAmount;
+ var sumForeignSignedAmount = foreignSignedAmount + foreignToBeSignAmount;
//待处理 器械包处理量
var toBeRecycledAmount = result.data.toBeRecycledAmount || 0;
var tobeWashAmount = result.data.tobeWashAmount || 0;
@@ -435,19 +393,26 @@
var sterilizationedAmount = result.data.sterilizationedAmount || 0;
var invoicedAmount = result.data.invoicedAmount || 0;
var signedAmount = result.data.signedAmount || 0;
+ //总数量 器械包处理量
+ var sumApplyAmount = toBeRecycledAmount + recycledAmount;
+ var sumWashedAmount = tobeWashAmount + washedAmount;
+ var sumPackAmount = toBePackAmount + packedAmount;
+ var sumSterilizationAmount = toBeSterilizationAmount + sterilizationedAmount;
+ var sumInvoiceAmount = toBeInvoiceAmount + invoicedAmount;
+
/************************ 外来器械包汇总 开始*********************/
var xAxisData2 = ['申请', '回收', '清洗消毒', '装配管理', '灭菌管理', '发货', '签收'];
var seriesData2 = [{
- name: '待处理',
+ name: '全部物品',
color: ['#46afab', '#049391', '#146f8e', '#2c3e7e', '#545a96'],
- data: [foreignApplyAmount, foreignToBeRecycledAmount, foreignTobeWashAmount, foreignToBePackAmount, foreignToBeSterilizationAmount, foreignToBeInvoiceAmount, foreignToBeSignAmount]
+ data: [sumForeignRecycledAmount, sumForeignWashedAmount, sumForeignPackedAmount, sumForeignSterilizationedAmount, sumForeignSterilizationedAmount, sumForeignInvoicedAmount, sumForeignSignedAmount]
},
{
name: '已处理',
color: ['#e99b29', '#9a5037', '#923f49', '#353281', '#5a59a5'],
data: [foreignApplyAmount, foreignRecycledAmount, foreignWashedAmount, foreignPackedAmount, foreignSterilizationedAmount, foreignInvoicedAmount, foreignSignedAmount]
}];
- var legendData2 = ['待处理', '已处理'];
+ var legendData2 = ['全部物品', '已处理'];
createChartsForColunm('#histogramChart2', xAxisData2, seriesData2, legendData2);
/************************ 外来器械包汇总 结束*********************/
@@ -460,19 +425,38 @@
/************************ 器械包处理量 开始***********************/
var xAxisData3 = ['回收清点', '清洗消毒', '装配管理', '灭菌管理', '发货计划'];
var seriesData3 = [{
- name: '待处理',
+ name: '全部物品',
color: ['#2289ff', '#4077f6', '#5d5ef6', '#6557de', '#8c70f8'],
- data: [toBeRecycledAmount, tobeWashAmount, toBePackAmount, toBeSterilizationAmount, toBeInvoiceAmount]
+ data: [sumApplyAmount, sumWashedAmount, sumPackAmount, sumSterilizationAmount, sumInvoiceAmount]
},
{
name: '已处理',
color: ['#f9de50', '#ffb028', '#f2a229', '#f98a42', '#e98352'],
data: [recycledAmount, washedAmount, packedAmount, sterilizationedAmount, invoicedAmount]
}];
- var legendData3 = ['待处理', '已处理'];
+ var legendData3 = ['全部物品', '已处理'];
var colorData = ['#87cefa', '#FBA923'];
createChartsForColunm('#histogramChart', xAxisData3, seriesData3, legendData3)
/************************ 器械包处理量 结束***********************/
+
+ /************************ 加急物品列表 开始***********************/
+ var toBeInvoiceUrgentSum = result.data.toBeInvoiceUrgentSum || [];
+ if(toBeInvoiceUrgentSum.length > 0){
+ var html = '';
+ for (var i = 0; i < toBeInvoiceUrgentSum.length; i++) {
+ html += '
';
+ html += '' + toBeInvoiceUrgentSum[i].tousseName + '';
+ html += '' + toBeInvoiceUrgentSum[i].name + '';
+ html += '' + toBeInvoiceUrgentSum[i].urgentAmount + '';
+ html += '';
+ html += '
';
+ }
+ $('#urgentSum').html(html)
+ if (toBeInvoiceUrgentSum.length < 6) {
+ $('#urgentSum').removeClass('marquee');
+ }
+ }
+ /************************ 加急物品列表 结束***********************/
$(".loading").fadeOut()
}
})