Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.js
===================================================================
diff -u -r41400 -r41448
--- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.js (.../expressRecycleForTouchScreen.js) (revision 41400)
+++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.js (.../expressRecycleForTouchScreen.js) (revision 41448)
@@ -13,6 +13,9 @@
isSecondSupplyRoom = true;
}
+var applyTimeHidden = true;
+var applyTimeText = '申请时间';
+
layer.config({
extend: 'myskin/style.css', //加载您的扩展样式
skin: 'layer-ext-myskin'
@@ -27,36 +30,6 @@
//高亮层不锁定
function lockout(e) { e.stopPropagation(); }
-function changeRatio(type) {
- var ratio = 0;
- var screen = window.screen;
- var ua = navigator.userAgent.toLowerCase();
-
- if (window.devicePixelRatio !== undefined) {
- ratio = window.devicePixelRatio;
- } else if (~ua.indexOf('msie')) {
- if (screen.deviceXDPI && screen.logicalXDPI) {
- ratio = screen.deviceXDPI / screen.logicalXDPI;
- }
- } else if (window.outerWidth !== undefined && window.innerWidth !== undefined) {
- ratio = window.outerWidth / window.innerWidth;
- }
-
- if (ratio) {
- ratio = Math.round(ratio * 100);
- }
- var value;
- if (type == 'width') {
- var width = window.screen.width;
- value = width * ratio / 100;
- } else {
- var height = window.screen.height;
- value = height * ratio / 100;
- }
-
- return parseInt(value);
-}
-
function alertDiv(alertWord, hideCloseButton) {
lock = true;
document.getElementById("showWord").innerHTML = alertWord;
@@ -218,7 +191,7 @@
function unloadStaff(name, amount, applicationId) {
if (sstsConfig.enableAddQuickTecoveryOptionForDepartments && departExpressRecycling == 'departExpressRecycling') {
- $('#tousseItemTable').children().first().children().each(function (row, element) {
+ $('#tousseItemTbody').children().first().children().each(function (row, element) {
var childCount = $('#childCount' + row).val();
var parentLoadedAmount = $('#loadedAmount' + row).val();
for (var i = 0; i < childCount; i++) {
@@ -237,7 +210,7 @@
}
});
} else {
- $('#tousseItemTable').children().first().children().each(function (i, element) {
+ $('#tousseItemTbody').children().first().children().each(function (i, element) {
if ($('#tousseName' + i).val() == name && applicationId == $('#applicationId' + i).val()) {
var newLoadedAmount = parseInt($('#loadedAmount' + i).val(), 10) - parseInt(amount, 10);
$('#loadedAmount' + i).val(newLoadedAmount);
@@ -396,7 +369,7 @@
//清理视图列表
function cleanTableList() {
- $("#tousseItemTable").empty();
+ $("#tousseItemTbody").empty();
$("#basketsUl").empty();
}
@@ -506,11 +479,11 @@
imageButton = '
';
}
var containerColorCode = basketItem.containerColorCode || '';
- var containerFontColor = setFontColor(containerColorCode)
+ var containerFontColor = setFontColor(containerColorCode)
var basketElement = '';
- if(containerColorCode !== ''){
- basketElement += '
';
- }else {
+ if (containerColorCode !== '') {
+ basketElement += '';
+ } else {
basketElement += '';
}
basketElement += '';
@@ -553,8 +526,8 @@
//不装配的篮筐不能回收扫描
var containerStatus = msg.basketStatus;
//GDSKQYY-30:篮筐颜色
- var containerColorCode = msg.containerColorCode;
- msg.basket.containerColorCode = containerColorCode;
+ var containerColorCode = msg.containerColorCode;
+ msg.basket.containerColorCode = containerColorCode;
if (containerStatus == "清洗完成" || containerStatus == "清洗中") {
$("#dialogConfirm").dialog({
resizable: false,
@@ -618,37 +591,8 @@
if (showName.length > 12) {
str = showName.substring(0, 12) + "...";
}
- var screenWidth = changeRatio('width');
- var screenHeight = changeRatio('height');
var nameWidth = 'auto';
var numWidth = 'auto';
- if (screenWidth < 1030) {
- nameWidth = 'width:560px';
- } else if (screenWidth > 1270 && screenWidth < 1300) {
- if (screenHeight < 730) {
- nameWidth = 'width:595px';
- numWidth = 'width:120px';
- } else if (screenHeight > 730 && screenHeight < 780) {
- nameWidth = 'width:570px';
- numWidth = 'width:95px';
- } else if (screenHeight > 790 && screenHeight < 810) {
- nameWidth = 'width:575px';
- numWidth = 'width:90px';
- } else {
- nameWidth = 'width:590px';
- }
- } else if (screenWidth > 1350 && screenWidth < 1370) {
- nameWidth = 'width:600px';
- numWidth = 'width:115px';
- } else if (screenWidth > 1390 && screenWidth < 1450) {
- nameWidth = 'width:580px';
- } else if (screenWidth > 1590 && screenWidth < 1610) {
- nameWidth = 'width:600px';
- numWidth = 'width:115px';
- } else if (screenWidth > 1910 && screenWidth < 1930) {
- nameWidth = 'width:600px';
- numWidth = 'width:120px';
- }
var element = '';
element += '' + str + '';
element += '' + amount + '';
@@ -676,7 +620,7 @@
setTimeout(function () {
var amountArray = [];
- var length = $('#tousseItemTable').find('tbody tr').length;
+ var length = $('#tousseItemTbody').find('tr').length;
if ($('#basketsUl').children().length == 0) {
alertDiv('请先扫描篮筐条码。');
layer.close(index);
@@ -875,6 +819,7 @@
var tousseItemId = paramsItem.tousseItemId || '';
var tousseName = paramsItem.tousseName || '';
var applicationAmount = paramsItem.applicationAmount || '';
+ var applicationTime = paramsItem.applicationTime || '';
var recycleAmount = paramsItem.recycleAmount || '';
var loadedAmount = paramsItem.loadedAmount || '';
var isApplyEntireTousse = paramsItem.isApplyEntireTousse || '';
@@ -888,7 +833,7 @@
var itemLevel = paramsItem.itemLevel;
var childRow = paramsItem.childRow || 0;
var childCount = paramsItem.childCount || 0;
-
+ var applicationDate = new Date(applicationTime.time).Format("yyyy-M-d h:m");
var showTousseName = tousseName;
var _index = tousseName.indexOf('_');
if (_index >= 0) {
@@ -907,84 +852,14 @@
reduceButton = '-';
onclickFun = '';
}
- var screenWidth = changeRatio('width');
- var screenHeight = changeRatio('height');
- var td0 = '210px';
- var td1 = '300px';
- var td2 = '44px';
- var td3 = 'auto';
- var td4 = 'auto';
- var td5 = 'auto';
- var td6 = 'auto';
- var td7 = 'auto';
+ var td0 = '15%';
+ var td1 = '35%';
+ var td2 = '10%';
+ var td3 = '5%';
+ var td4 = '10%';
+ var td5 = '5%';
+ var td6 = '15%';
- if (screenWidth < 1030) {
- td0 = '300px';
- td1 = '490px';
- td2 = '150px';
- td3 = '55px';
- td4 = '80px';
- td6 = '110px';
- } else if (screenWidth > 1270 && screenWidth < 1300) {
- if (screenHeight < 730) {
- td0 = '320px';
- td1 = '600px';
- td2 = '150px';
- td3 = '55px';
- td4 = '80px';
- td6 = '110px';
- } else if (screenHeight > 730 && screenHeight < 780) {
- td0 = '320px';
- td1 = '550px';
- td2 = '150px';
- td3 = '55px';
- td4 = '80px';
- td6 = '110px';
- } else if (screenHeight > 790 && screenHeight < 810) {
- td0 = '320px';
- td1 = '550px';
- td2 = '150px';
- td3 = '55px';
- td4 = '80px';
- td6 = '110px';
- } else {
- td0 = '320px';
- td1 = '550px';
- td2 = '150px';
- td3 = '55px';
- td4 = '80px';
- td6 = '110px';
- }
- } else if (screenWidth > 1350 && screenWidth < 1370) {
- td0 = '320px';
- td1 = '550px';
- td2 = '150px';
- td3 = '55px';
- td4 = '80px';
- td6 = '110px';
- } else if (screenWidth > 1390 && screenWidth < 1450) {
- td0 = '320px';
- td1 = '550px';
- td2 = '150px';
- td3 = '55px';
- td4 = '80px';
- td6 = '110px';
- } else if (screenWidth > 1590 && screenWidth < 1610) {
- td0 = '320px';
- td1 = '550px';
- td2 = '150px';
- td3 = '55px';
- td4 = '80px';
- td6 = '110px';
- } else if (screenWidth > 1910 && screenWidth < 1930) {
- td0 = '320px';
- td1 = '550px';
- td2 = '150px';
- td3 = '55px';
- td4 = '80px';
- td6 = '110px';
- }
-
var html = '';
if (itemLevel == 1) {
html += '';
@@ -995,7 +870,7 @@
}
html += '| ';
if (itemLevel == 1) {
- html += ' ' + depart + ' ';
+ html += '' + depart + ' ';
} else if (itemLevel == 2) {
html += '';
html += '' + depart + ' ';
@@ -1021,21 +896,30 @@
}
html += ' | ';
if (itemLevel !== 1) {
- html += ' | ' +
- ' | ' +
- '' + addButton + ' | ' +
- ' | ' +
- ' | ' +
- '' + reduceButton + ' | ';
+ if (!applyTimeHidden && departExpressRecycling == '') {
+ html += '' + applicationDate + ' | ';
+ }
+ html += ' | ';
+ html += ' | ';
+ html += '' + addButton + ' | ';
+ html += ' | ';
+ html += '' + reduceButton + ' | ';
if (itemLevel == 2) {
- html += '入筐 | ';
+ html += '入筐 | ';
} else {
- html += '入筐 | ';
+ html += '入筐 | ';
}
+ } else {
+ html += ' | ';
+ html += ' | ';
+ html += ' | ';
+ html += ' | ';
+ html += ' | ';
+ html += ' | ';
}
html += '
';
var trElement = $(html);
- $("#tousseItemTable").append(trElement);
+ $("#tousseItemTbody").append(trElement);
return true;
}
@@ -1080,7 +964,7 @@
return false;
}
if (sstsConfig.enableAddQuickTecoveryOptionForDepartments && departExpressRecycling == 'departExpressRecycling') {
- $('#tousseItemTable').children().first().children().each(function (row, element) {
+ $('#tousseItemTbody').children().first().children().each(function (row, element) {
var childCount = $('#childCount' + row).val();
for (var i = 0; i < childCount; i++) {
var deleted = $('#deleted' + row + '_' + i).val();
@@ -1105,7 +989,7 @@
}
});
} else {
- $('#tousseItemTable').children().first().children().each(function (index, element) {
+ $('#tousseItemTbody').children().first().children().each(function (index, element) {
var deleted = $('#deleted' + index).val()
var recycleAmount = parseInt($('#recycleAmount' + index).val(), 10);
var loadedAmount = parseInt($('#loadedAmount' + index).val(), 10);
@@ -1641,7 +1525,7 @@
}
function loadItem() {
- $("#tousseItemTable").empty();
+ $("#tousseItemTbody").empty();
$("#basketsUl").empty();
$("#loadingPutBasket").empty();
document.onkeydown = showKeyDown;
@@ -1855,17 +1739,17 @@
var text = '';
var sumText = '';
var containerColorCode = result[i].containerColorCode || '';
- var containerFontColor = setFontColor(containerColorCode)
+ var containerFontColor = setFontColor(containerColorCode)
for (var j = 0; j < result[i].classifiedItems.length; j++) {
var name = result[i].classifiedItems[j].name;
var amount = result[i].classifiedItems[j].amount;
sumAmount += parseInt(amount);
text += name + '*' + amount + ',';
}
var basketElement = '';
- if(containerColorCode !== ''){
- basketElement += '';
- }else {
+ if (containerColorCode !== '') {
+ basketElement += '';
+ } else {
basketElement += '';
}
basketElement += '';
@@ -1920,118 +1804,39 @@
$.divselect("#divTousseGroup", "#tousseGroupSelect");
if (sstsConfig.recycleAllTousseIntoBasketInExpressRecycle) {
$('#allIntoBasket').show();
+ var originalSrc = '1980/images/allIntoBasket.png'
+ var newSrc = '1980/images/allIntoBaskehovert.png'
+ var allIntoBasketImg = document.getElementById('allIntoBasketImg');
+ // 监听鼠标移入事件
+ allIntoBasketImg.addEventListener('mouseenter', function () {
+ this.src = newSrc;
+ });
+
+ // 监听鼠标移出事件
+ allIntoBasketImg.addEventListener('mouseleave', function () {
+ this.src = originalSrc;
+ });
} else {
$('#allIntoBasket').hide();
}
- var screenWidth = changeRatio('width');
- var screenHeight = changeRatio('height');
- $('.mbody').css('width', '100%');
- var width = 2600;
- if (screenWidth < 1030) {
- $('.mbody').css({ 'width': width + 'px', 'height': '1717px' });
- $('.data-table').css({ 'width': '1450px', 'height': '1110px', 'bottom': '100px', 'left': '160px' });
- $('.data-table .box').css({ 'height': '1030px' });
- $('#tousseItemTable').css({ 'width': '1520px' });
- $('.zhuangzai-table').css({ 'width': '820px', 'height': '1100px', 'bottom': '90px', 'right': '80px' });
- $('.zhuangzai-table .box').css({ 'height': '1080px' });
- $('.add-form').css({ 'top': '295px' });
- $('#allIntoBasket').css({ 'top': '195px', 'left': '1234px' });
- $('#divTousseGroup').css({ 'left': '50px' });
- $('#divselect').css({ 'left': '1060px' });
- } else if (screenWidth > 1270 && screenWidth < 1300) {
- if (screenHeight < 730) {
- width = 2750;
- $('.mbody').css({ 'width': width + 'px', 'height': '1350px' });
- $('.data-table').css({ 'width': '1630px', 'height': '860px', 'bottom': '80px', 'left': '56px' });
- $('.data-table .box').css({ 'height': '780px' });
- $('#tousseItemTable').css({ 'width': '1350px' });
- $('.zhuangzai-table').css({ 'width': '880px', 'height': '840px', 'bottom': '90px', 'right': '80px' });
- $('.zhuangzai-table .box').css({ 'height': '840px' });
- $('#allIntoBasket').css({ 'top': '160px', 'left': '1234px' });
- $('#divTousseGroup').css({ 'left': '50px' });
- $('#divselect').css({ 'left': '1060px' });
- } else if (screenHeight > 730 && screenHeight < 780) {
- $('.mbody').css({ 'width': width + 'px', 'height': '1420px' });
- $('.data-table').css({ 'width': '1540px', 'height': '920px', 'bottom': '80px', 'left': '56px' });
- $('.data-table .box').css({ 'height': '840px' });
- $('#tousseItemTable').css({ 'width': '1350px' });
- $('.zhuangzai-table').css({ 'width': '825px', 'height': '890px', 'bottom': '90px', 'right': '80px' });
- $('.zhuangzai-table .box').css({ 'height': '890px' });
- $('#allIntoBasket').css({ 'top': '160px', 'left': '1234px' });
- $('#divTousseGroup').css({ 'left': '50px' });
- $('#divselect').css({ 'left': '1060px' });
- } else if (screenHeight > 790 && screenHeight < 810) {
- $('.mbody').css({ 'width': width + 'px', 'height': '1450px' });
- $('.data-table').css({ 'width': '1540px', 'height': '920px', 'bottom': '80px', 'left': '56px' });
- $('.data-table .box').css({ 'height': '840px' });
- $('#tousseItemTable').css({ 'width': '1350px' });
- $('.zhuangzai-table').css({ 'width': '825px', 'height': '890px', 'bottom': '90px', 'right': '80px' });
- $('.zhuangzai-table .box').css({ 'height': '890px' });
- $('#allIntoBasket').css({ 'top': '160px', 'left': '1234px' });
- $('#divTousseGroup').css({ 'left': '50px' });
- $('#divselect').css({ 'left': '1060px' });
- } else {
- $('.mbody').css({ 'width': width + 'px', 'height': '1900px' });
- $('.data-table').css({ 'width': '1550px', 'height': '1240px', 'bottom': '120px', 'left': '56px' });
- $('.data-table .box').css({ 'height': '1160px' });
- $('#tousseItemTable').css({ 'width': '1350px' });
- $('.zhuangzai-table').css({ 'width': '840px', 'height': '1200px', 'bottom': '115px', 'right': '70px' });
- $('.zhuangzai-table .box').css({ 'height': '1200px' });
- $('.add-form').css({ 'top': '335px' });
- $('#allIntoBasket').css({ 'top': '215px', 'left': '1234px' });
- $('#divTousseGroup').css({ 'left': '50px' });
- $('#divselect').css({ 'left': '1060px' });
+ applyTimeHidden = true;
+ applyTimeText = '申请时间';
+ //BJDXZLYY-62:扩展字段
+ var expandFieldsConfigOfeExpressRecycle = sstsConfig.expandFieldsConfigOfeExpressRecycle || [];
+ if (expandFieldsConfigOfeExpressRecycle.length > 0) {
+ for (var i = 0; i < expandFieldsConfigOfeExpressRecycle.length; i++) {
+ if (expandFieldsConfigOfeExpressRecycle[i].fieldName == 'applyTime') {
+ applyTimeHidden = false;
+ applyTimeText = expandFieldsConfigOfeExpressRecycle[i].displayText;
+ }
}
- } else if (screenWidth > 1350 && screenWidth < 1370) {
- width = 2745;
- $('.mbody').css({ 'width': width + 'px', 'height': '1360px' });
- $('.data-table').css({ 'width': '1660px', 'height': '860px', 'bottom': '90px', 'left': '56px' });
- $('.data-table .box').css({ 'height': '780px' });
- $('#tousseItemTable').css({ 'width': '1350px' });
- $('.zhuangzai-table').css({ 'width': '880px', 'height': '850px', 'bottom': '90px', 'right': '90px' });
- $('.zhuangzai-table .box').css({ 'height': '855px' });
- $('#allIntoBasket').css({ 'top': '160px', 'left': '1234px' });
- $('#divTousseGroup').css({ 'left': '50px' });
- $('#divselect').css({ 'left': '1060px' });
- } else if (screenWidth > 1390 && screenWidth < 1450) {
- $('.mbody').css({ 'width': width + 'px', 'height': '1460px' });
- $('.data-table').css({ 'width': '1560px', 'height': '930px', 'bottom': '90px', 'left': '56px' });
- $('.data-table .box').css({ 'height': '850px' });
- $('#tousseItemTable').css({ 'width': '1350px' });
- $('.zhuangzai-table').css({ 'width': '830px', 'height': '920px', 'bottom': '90px', 'right': '80px' });
- $('.zhuangzai-table .box').css({ 'height': '920px' });
- $('#allIntoBasket').css({ 'top': '160px', 'left': '1234px' });
- $('#divTousseGroup').css({ 'left': '50px' });
- $('#divselect').css({ 'left': '1060px' });
- } else if (screenWidth > 1590 && screenWidth < 1690) {
- width = 2720;
- $('.mbody').css({ 'width': width + 'px', 'height': '1400px' });
- $('.data-table').css({ 'width': '1620px', 'height': '900px', 'bottom': '80px', 'left': '56px' });
- $('.data-table .box').css({ 'height': '820px' });
- $('#tousseItemTable').css({ 'width': '1350px' });
- $('.zhuangzai-table').css({ 'width': '875px', 'height': '875px', 'bottom': '90px', 'right': '80px' });
- $('.zhuangzai-table .box').css({ 'height': '870px' });
- $('#allIntoBasket').css({ 'top': '160px', 'left': '1234px' });
- $('#divTousseGroup').css({ 'left': '50px' });
- $('#divselect').css({ 'left': '1060px' });
- } else if (screenWidth > 1910 && screenWidth < 1930) {
- width = 2700;
- $('.mbody').css({ 'width': width + 'px', 'height': '1400px' });
- $('.data-table').css({ 'width': '1620px', 'height': '890px', 'bottom': '80px', 'left': '56px' });
- $('.data-table .box').css({ 'height': '810px' });
- $('#tousseItemTable').css({ 'width': '1350px' });
- $('.zhuangzai-table').css({ 'width': '875px', 'height': '880px', 'bottom': '85px', 'right': '75px' });
- $('.zhuangzai-table .box').css({ 'height': '890px' });
- $('#basketsUl').find('.sed').css({ 'width': '600px' });
- $('#basketsUl .sed .num').css({ 'width': '120px' });
- $('#allIntoBasket').css({ 'top': '160px', 'left': '1234px' });
- $('#divTousseGroup').css({ 'left': '50px' });
- $('#divselect').css({ 'left': '1060px' });
}
- var actualWidth = window.screen.availWidth;
- var actualHeight = window.screen.availHeight;
- var bodyZoom = calculateZoomRatio(2600, 1462, actualWidth, actualHeight);
- $('.mbody').css('zoom', bodyZoom);
+ if (departExpressRecycling == '') {
+ if (!applyTimeHidden) {
+ $('#theadNameByApplyTimeName').show();
+ $('#theadNameByApplyTimeName').text(applyTimeText);
+ }
+ }
}
$(function () {
@@ -2054,12 +1859,14 @@
if (!sstsConfig.showBlankPageWhenOpenExpressRecyclePage) {
loadItem();
}
-
if (sstsConfig.enableAddQuickTecoveryOptionForDepartments && departExpressRecycling == 'departExpressRecycling') {
- $('#divTousseGroup').hide();
$('#currentDepart').show();
- $('#divselect').hide();
$('#changeDepart').show();
openSelectDepart(3);
+ $('#theadNameByDepartName').text('日期/流水号')
+ } else {
+ $('#divTousseGroup').show();
+ $('#divselect').show();
+ $('#theadNameByDepartName').text('科室名称')
}
});
\ No newline at end of file
Index: ssts-web/src/main/webapp/disinfectsystem/config/bjdxzlyy/config.js
===================================================================
diff -u -r41130 -r41448
--- ssts-web/src/main/webapp/disinfectsystem/config/bjdxzlyy/config.js (.../config.js) (revision 41130)
+++ ssts-web/src/main/webapp/disinfectsystem/config/bjdxzlyy/config.js (.../config.js) (revision 41448)
@@ -242,6 +242,8 @@
OCRServerAddress: 'http://192.168.2.229:5000',
//启用自定义报表显示选项内容功能
enableCustomReportDisplayOptions:true,
+//快速回收功能扩展字段配置
+expandFieldsConfigOfeExpressRecycle:[{"fieldName":"applyTime","displayText":"申请时间"}],
//启用第三方标识牌条码功能
enbaleThirdPartyIdCard:true
}
\ No newline at end of file
Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.jsp
===================================================================
diff -u -r40935 -r41448
--- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.jsp (.../expressRecycleForTouchScreen.jsp) (revision 40935)
+++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.jsp (.../expressRecycleForTouchScreen.jsp) (revision 41448)
@@ -37,6 +37,8 @@
+
+