Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.jsp
===================================================================
diff -u -r29136 -r29173
--- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.jsp (.../expressRecycleForTouchScreen.jsp) (revision 29136)
+++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.jsp (.../expressRecycleForTouchScreen.jsp) (revision 29173)
@@ -265,6 +265,69 @@
var ab;
var lock = false;
+function isIE(value) {
+ var vals = value || '';
+ if(!!window.ActiveXObject || "ActiveXObject" in window){
+ if(vals !== ''){
+ var DEFAULT_VERSION = 8.0;
+ var ua = navigator.userAgent.toLowerCase();
+ var safariVersion = ua.match(/msie ([\d.]+)/) || '';
+ if(safariVersion == ''){
+ return false;
+ }
+ if(safariVersion[1] <= DEFAULT_VERSION ){
+ return true;
+ }else {
+ return false;
+ }
+ }
+
+ return true;
+ }else{
+ return false;
+ }
+}
+
+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;
+ if(isIE()){
+ value = width*ratio/100;
+ }else {
+ value = width;
+ }
+ }else {
+ var height = window.screen.height;
+ if(isIE()){
+ value = height*ratio/100;
+ }else {
+ value = height;
+ }
+ }
+
+ return parseInt(value);
+}
+
//锁定键盘
function lockup(e){ e.preventDefault(); }
//高亮层不锁定
@@ -706,7 +769,7 @@
basketElement += '';
basketElement += ''+basketItem.containerName+'';
if(basketItem.sumCount) {
- basketElement += '0/'+basketItem.sumCount+'';
+ basketElement += '0/'+basketItem.sumCount+'';
}else {
basketElement += '' + 0 + '';
}
@@ -819,9 +882,40 @@
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 + '';
+ element += '' + str + '';
+ element += '' + amount + '';
element += '删除';
var json = getBasketItemJSON(ci_id,type,orgUnitName,tousseName,materialName,amount,tousseAmount,app_id,tousseDefinitionID,basketGroupBarcodes,putBasketMaxAmount,invoicePlanVersion);
@@ -997,16 +1091,93 @@
var reduceButton = "";
var onclickFun = "";
if(tousseType != '消毒物品' || (tousseType == '消毒物品' && '是' == isApplyEntireTousse)){
- addButton = '+ | ';
- reduceButton = '- | ';
+ addButton = '+';
+ reduceButton = '-';
onclickFun = 'onclick="openUpdateAmount(this,'+ row +');"';
}else{
- addButton = '+ | ';
- reduceButton = '- | ';
+ addButton = '+';
+ 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';
+
+ 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 trElement = $(''+
+ var trElement = $(' |
'+
''+
''+
// ''+
@@ -1022,13 +1193,13 @@
''+
''+
depart + ' | ' +
- ' | '+
- ' | '+
- addButton+
- ' | '+
- ' | '+
- reduceButton+
- '入筐 | '+
+ ' | '+
+ ' | '+
+ ''+addButton+' | '+
+ ' | '+
+ ' | '+
+ ''+reduceButton+' | '+
+ '入筐 | '+
'
');
$("#tousseItemTable").append(trElement);
@@ -1429,339 +1600,205 @@
}
})
-function isIE(value) {
- var vals = value || '';
- if(!!window.ActiveXObject || "ActiveXObject" in window){
- if(vals !== ''){
- var DEFAULT_VERSION = 8.0;
- var ua = navigator.userAgent.toLowerCase();
- var safariVersion = ua.match(/msie ([\d.]+)/) || '';
- if(safariVersion == ''){
- return false;
- }
- if(safariVersion[1] <= DEFAULT_VERSION ){
- return true;
- }else {
- return false;
- }
- }
+var screenWidth = ChangeRatio('width');
+var screenHeight = ChangeRatio('height');
+var htmlHeight = $('html').height();
+$('.mbody').css('width','100%');
- return true;
- }else{
- return false;
- }
- }
-
- 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;
- if(isIE()){
- value = width*ratio/100;
- }else {
- value = width;
- }
- }else {
- var height = window.screen.height;
- if(isIE()){
- value = height*ratio/100;
- }else {
- value = height;
- }
- }
-
- return parseInt(value);
- }
-
- var screenWidth = ChangeRatio('width');
- var screenHeight = ChangeRatio('height');
- var htmlHeight = $('html').height();
- $('.mbody').css('width','100%');
-
- if(screenWidth < 1030){
- $('.mbody').css({'width':'2600px','height':'1717px'});
- $('.data-table').css({'width':'1540px','height':'1110px','bottom':'100px','left':'56px'});
- $('.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':'415px','left':'770px'});
- $('#divselect').css({'left':'50px'});
- $('#divTousseGroup').css({'left':'1060px'});
- if(isIE()){
- var height = htmlHeight + 100;
- $('.mbody').css({'width':'1040px','height':'740px'});
- $('.data-table').css({'width':'610px','height':(height-298)+'px','top':'210px','left':'25px'});
- $('.data-table .box').css({'height':(height-388)+'px'});
- $('#tousseItemTable').css({'width':'590px'});
- $('.zhuangzai-table').css({'width':'340px','height':(height-338)+'px','top':'230px','right':'30px'});
- }
- }else if(screenWidth>1270 && screenWidth<1300){
- if(screenHeight<730){
- $('.mbody').css({'width':'2750px','height':'1350px'});
- $('.data-table').css({'width':'1630px','height':'860px','bottom':'80px','left':'56px'});
- $('.data-table .box').css({'height':'780px'});
- $('#tousseItemTable').css({'width':'1610px'});
- $('.zhuangzai-table').css({'width':'880px','height':'840px','bottom':'90px','right':'80px'});
- $('.zhuangzai-table .box').css({'height':'840px'});
- $('#allIntoBasket').css({'top':'315px','left':'800px'});
- $('#divselect').css({'left':'50px'});
- $('#divTousseGroup').css({'left':'1060px'});
- if(isIE()){
- var height = htmlHeight + 100;
- $('.mbody').css({'width':'1280px','height':'700px'});
- $('.data-table').css({'width':'780px','height':(height-318)+'px','top':'210px','left':'20px'});
- $('.data-table .box').css({'height':(height-408)+'px'});
- $('#tousseItemTable').css({'width':'780px'});
- $('.zhuangzai-table').css({'width':'410px','height':(height-318)+'px','top':'220px','right':'40px'});
- }
- }else if(screenHeight>730 && screenHeight<780){
- $('.mbody').css({'width':'2600px','height':'1420px'});
- $('.data-table').css({'width':'1540px','height':'920px','bottom':'80px','left':'56px'});
- $('.data-table .box').css({'height':'840px'});
- $('#tousseItemTable').css({'width':'1520px'});
- $('.zhuangzai-table').css({'width':'825px','height':'890px','bottom':'90px','right':'80px'});
- $('.zhuangzai-table .box').css({'height':'890px'});
- $('#allIntoBasket').css({'top':'340px','left':'770px'});
- $('#divselect').css({'left':'50px'});
- $('#divTousseGroup').css({'left':'1060px'});
- if(isIE()){
- var height = htmlHeight + 100;
- $('.mbody').css({'width':'1280px','height':'700px'});
- $('.data-table').css({'width':'780px','height':(height-318)+'px','top':'210px','left':'20px'});
- $('.data-table .box').css({'height':(height-408)+'px'});
- $('#tousseItemTable').css({'width':'780px'});
- $('.zhuangzai-table').css({'width':'410px','height':(height-318)+'px','top':'220px','right':'40px'});
- }
- }else if(screenHeight>790 && screenHeight<810){
- $('.mbody').css({'width':'2600px','height':'1450px'});
- $('.data-table').css({'width':'1540px','height':'920px','bottom':'80px','left':'56px'});
- $('.data-table .box').css({'height':'840px'});
- $('#tousseItemTable').css({'width':'1520px'});
- $('.zhuangzai-table').css({'width':'825px','height':'890px','bottom':'90px','right':'80px'});
- $('.zhuangzai-table .box').css({'height':'890px'});
- $('#allIntoBasket').css({'top':'460px','left':'770px'});
- $('#divselect').css({'left':'50px'});
- $('#divTousseGroup').css({'left':'1060px'});
- if(isIE()){
- var height = htmlHeight + 100;
- $('.mbody').css({'width':'1280px','height':'700px'});
- $('.data-table').css({'width':'780px','height':(height-318)+'px','top':'210px','left':'20px'});
- $('.data-table .box').css({'height':(height-408)+'px'});
- $('#tousseItemTable').css({'width':'780px'});
- $('.zhuangzai-table').css({'width':'410px','height':(height-318)+'px','top':'220px','right':'40px'});
- }
- }else {
- $('.mbody').css({'width':'2600px','height':'1900px'});
- $('.data-table').css({'width':'1550px','height':'1240px','bottom':'120px','left':'56px'});
- $('.data-table .box').css({'height':'1160px'});
- $('#tousseItemTable').css({'width':'1530px'});
- $('.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':'460px','left':'770px'});
- $('#divselect').css({'left':'50px'});
- $('#divTousseGroup').css({'left':'1060px'});
- if(isIE()){
- var height = htmlHeight + 100;
- $('.mbody').css({'width':'1280px','height':'1000px'});
- $('.data-table').css({'width':'780px','height':(height-388)+'px','top':'280px','left':'20px'});
- $('.data-table .box').css({'height':(height-478)+'px'});
- $('#tousseItemTable').css({'width':'780px'});
- $('.zhuangzai-table').css({'width':'410px','height':(height-408)+'px','top':'310px','right':'40px'});
- }
- }
- }else if(screenWidth>1350 && screenWidth<1370){
- $('.mbody').css({'width':'2745px','height':'1360px'});
- $('.data-table').css({'width':'1660px','height':'860px','bottom':'90px','left':'56px'});
- $('.data-table .box').css({'height':'780px'});
- $('#tousseItemTable').css({'width':'1640px'});
- $('.zhuangzai-table').css({'width':'880px','height':'850px','bottom':'90px','right':'90px'});
- $('.zhuangzai-table .box').css({'height':'855px'});
+if(screenWidth < 1030){
+ $('.mbody').css({'width':'2600px','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':'415px','left':'770px'});
+ $('#divselect').css({'left':'50px'});
+ $('#divTousseGroup').css({'left':'1060px'});
+}else if(screenWidth>1270 && screenWidth<1300){
+ if(screenHeight<730){
+ $('.mbody').css({'width':'2750px','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':'315px','left':'800px'});
$('#divselect').css({'left':'50px'});
$('#divTousseGroup').css({'left':'1060px'});
- if(isIE()){
- var height = htmlHeight + 100;
- $('.mbody').css({'width':'1370px','height':'700px'});
- $('.data-table').css({'width':'810px','height':(height-318)+'px','top':'210px','left':'40px'});
- $('.data-table .box').css({'height':(height-408)+'px'});
- $('#tousseItemTable').css({'width':'790px'});
- $('.zhuangzai-table').css({'width':'440px','height':(height-318)+'px','top':'220px','right':'40px'});
- }
- }else if(screenWidth>1390 && screenWidth<1450){
- $('.mbody').css({'width':'2600px','height':'1460px'});
- $('.data-table').css({'width':'1560px','height':'930px','bottom':'90px','left':'56px'});
- $('.data-table .box').css({'height':'850px'});
- $('#tousseItemTable').css({'width':'1540px'});
- $('.zhuangzai-table').css({'width':'830px','height':'920px','bottom':'90px','right':'80px'});
- $('.zhuangzai-table .box').css({'height':'920px'});
- $('#allIntoBasket').css({'top':'350px','left':'800px'});
+ }else if(screenHeight>730 && screenHeight<780){
+ $('.mbody').css({'width':'2600px','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':'340px','left':'770px'});
$('#divselect').css({'left':'50px'});
$('#divTousseGroup').css({'left':'1060px'});
- if(isIE()){
- var height = htmlHeight + 100;
- $('.mbody').css({'width':'1440px','height':'900px'});
- $('.data-table').css({'width':'850px','height':(height-348)+'px','top':'250px','left':'40px'});
- $('.data-table .box').css({'height':(height-438)+'px'});
- $('#tousseItemTable').css({'width':'790px'});
- $('.zhuangzai-table').css({'width':'460px','height':(height-378)+'px','top':'280px','right':'40px'});
- }
- }else if(screenWidth>1590 && screenWidth<1610){
- $('.mbody').css({'width':'2720px','height':'1400px'});
- $('.data-table').css({'width':'1620px','height':'900px','bottom':'80px','left':'56px'});
- $('.data-table .box').css({'height':'820px'});
- $('#tousseItemTable').css({'width':'1600px'});
- $('.zhuangzai-table').css({'width':'875px','height':'875px','bottom':'90px','right':'80px'});
- $('.zhuangzai-table .box').css({'height':'870px'});
- $('#allIntoBasket').css({'top':'335px','left':'800px'});
+ }else if(screenHeight>790 && screenHeight<810){
+ $('.mbody').css({'width':'2600px','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':'460px','left':'770px'});
$('#divselect').css({'left':'50px'});
$('#divTousseGroup').css({'left':'1060px'});
- if(isIE()){
- var height = htmlHeight + 100;
- $('.mbody').css({'width':'1600px','height':'900px'});
- $('.data-table').css({'width':'960px','height':(height-348)+'px','top':'250px','left':'40px'});
- $('.data-table .box').css({'height':(height-438)+'px'});
- $('#tousseItemTable').css({'width':'940px'});
- $('.zhuangzai-table').css({'width':'510px','height':(height-378)+'px','top':'280px','right':'40px'});
- }
- }else if(screenWidth>1910 && screenWidth<1930){
- $('.mbody').css({'width':'2700px','height':'1400px'});
- $('.data-table').css({'width':'1620px','height':'890px','bottom':'80px','left':'56px'});
- $('.data-table .box').css({'height':'810px'});
- $('.zhuangzai-table').css({'width':'875px','height':'880px','bottom':'85px','right':'75px'});
- $('.zhuangzai-table .box').css({'height':'880px'});
- $('#allIntoBasket').css({'top':'335px','left':'800px'});
+ }else {
+ $('.mbody').css({'width':'2600px','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':'460px','left':'770px'});
$('#divselect').css({'left':'50px'});
$('#divTousseGroup').css({'left':'1060px'});
- if(isIE()){
- var height = htmlHeight + 100;
- $('.mbody').css({'width':'1920px','height':'1062px'});
- $('.data-table').css({'width':'1150px','height':(height-408)+'px','top':'310px','left':'40px'});
- $('.data-table .box').css({'height':(height-498)+'px'});
- $('.zhuangzai-table').css({'width':'620px','height':(height-428)+'px','top':'330px','right':'60px'});
- $('#allIntoBasket').css({'top':'335px','left':'800px'});
- $('#divselect').css({'left':'50px'});
- $('#divTousseGroup').css({'left':'1060px'});
- }
}
- function userContainer(that,user,basketName,basketBarcode,classifyBasketId){
- if ( event && event.preventDefault ){
- event.preventDefault();
- }else{//IE中阻止函数器默认动作的方式
- window.event.returnValue = false;
- }
- if(user == 1){
- var sumCount = $(that).parent().parent().find('.totalAmount').text();
- var msg = {
- basket:{
- containerBarcode:basketBarcode,
- id:classifyBasketId,
- containerName:basketName,
- washClassifyType:'',
- sumCount:parseInt(sumCount)
- }
+}else if(screenWidth>1350 && screenWidth<1370){
+ $('.mbody').css({'width':'2745px','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':'315px','left':'800px'});
+ $('#divselect').css({'left':'50px'});
+ $('#divTousseGroup').css({'left':'1060px'});
+}else if(screenWidth>1390 && screenWidth<1450){
+ $('.mbody').css({'width':'2600px','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':'350px','left':'800px'});
+ $('#divselect').css({'left':'50px'});
+ $('#divTousseGroup').css({'left':'1060px'});
+}else if(screenWidth>1590 && screenWidth<1610){
+ $('.mbody').css({'width':'2720px','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':'335px','left':'800px'});
+ $('#divselect').css({'left':'50px'});
+ $('#divTousseGroup').css({'left':'1060px'});
+}else if(screenWidth>1910 && screenWidth<1930){
+ $('.mbody').css({'width':'2700px','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':'335px','left':'800px'});
+ $('#divselect').css({'left':'50px'});
+ $('#divTousseGroup').css({'left':'1060px'});
+}
+function userContainer(that,user,basketName,basketBarcode,classifyBasketId){
+ if ( event && event.preventDefault ){
+ event.preventDefault();
+ }else{//IE中阻止函数器默认动作的方式
+ window.event.returnValue = false;
+ }
+ if(user == 1){
+ var sumCount = $(that).parent().parent().find('.totalAmount').text();
+ var msg = {
+ basket:{
+ containerBarcode:basketBarcode,
+ id:classifyBasketId,
+ containerName:basketName,
+ washClassifyType:'',
+ sumCount:parseInt(sumCount)
}
- addBasketElement(msg);
- $(that).parent().parent().remove();
- }else {
- var sumCount = $(that).parent().find('.totalAmount').text();
- addBasketElement(msg);
- $(that).parent().remove();
}
+ addBasketElement(msg);
+ $(that).parent().parent().remove();
+ }else {
+ var sumCount = $(that).parent().find('.totalAmount').text();
+ addBasketElement(msg);
+ $(that).parent().remove();
}
- if(sstsConfig.loadWashLoadingStatusBasketsWhenRecycling){
- getWashLoadingStatusBaskets()
- }
- //获取清洗装载状态的篮筐
- function getWashLoadingStatusBaskets(){
- $.ajax({
- type : "post",
- url : WWWROOT + '/disinfectSystem/recyclingRecordAction!getWashLoadingStatusBaskets.do',
- dataType:'json',
- async:true,
- success:function(result){
- if(result.length > 0){
- for(var i=0;i';
- basketElement += '';
- basketElement += '使用';
- basketElement += '';
- basketElement += '';
-
- var showBasketLoadMaterialAmount = sstsConfig.showBasketLoadMaterialAmount;
- var imageButton = '';
- if(showBasketLoadMaterialAmount == true){
- imageButton = '
';
- }
-
- if(text !== ''){
- if(text.split(',').length > 4){
- sumText = text.split(',')[0]+','+text.split(',')[1]+','+text.split(',')[2]+'......';
- }else {
- if(text.split(',').length == 2){
- sumText = text.split(',')[0];
- }else if(text.split(',').length == 3){
- sumText = text.split(',')[0]+','+text.split(',')[1];
- }else if(text.split(',').length == 4){
- sumText = text.split(',')[0]+','+text.split(',')[1]+','+text.split(',')[2]
- }
+}
+if(sstsConfig.loadWashLoadingStatusBasketsWhenRecycling){
+ getWashLoadingStatusBaskets()
+}
+//获取清洗装载状态的篮筐
+function getWashLoadingStatusBaskets(){
+ $.ajax({
+ type : "post",
+ url : WWWROOT + '/disinfectSystem/recyclingRecordAction!getWashLoadingStatusBaskets.do',
+ dataType:'json',
+ async:true,
+ success:function(result){
+ if(result.length > 0){
+ for(var i=0;i';
+ basketElement += '';
+ basketElement += '使用';
+ basketElement += '';
+ basketElement += '';
+
+ var showBasketLoadMaterialAmount = sstsConfig.showBasketLoadMaterialAmount;
+ var imageButton = '';
+ if(showBasketLoadMaterialAmount == true){
+ imageButton = '
';
+ }
+
+ if(text !== ''){
+ if(text.split(',').length > 4){
+ sumText = text.split(',')[0]+','+text.split(',')[1]+','+text.split(',')[2]+'......';
+ }else {
+ if(text.split(',').length == 2){
+ sumText = text.split(',')[0];
+ }else if(text.split(',').length == 3){
+ sumText = text.split(',')[0]+','+text.split(',')[1];
+ }else if(text.split(',').length == 4){
+ sumText = text.split(',')[0]+','+text.split(',')[1]+','+text.split(',')[2]
}
}
-
- var amountStyle = (result[i].percentage == 1)?'color:red':'';
-
- basketElement += '' + (containerName) + '' + imageButton +'';
- basketElement += '' + sumAmount + '';
- basketElement += ''+sumText+'
';
- basketElement += '';
- var obj = $(basketElement);
- $("#loadingPutBasket").prepend(obj);
}
+
+ var amountStyle = (result[i].percentage == 1)?'color:red':'';
+
+ basketElement += '' + (containerName) + '' + imageButton +'';
+ basketElement += '' + sumAmount + '';
+ basketElement += ''+sumText+'
';
+ basketElement += '';
+ var obj = $(basketElement);
+ $("#loadingPutBasket").prepend(obj);
+ }
+ $("#scanContainerBarcodeTipUl").hide();
+ }else {
+ if($("#basketsUl > li").length == 0){
+ $("#scanContainerBarcodeTipUl").show();
+ }else{
$("#scanContainerBarcodeTipUl").hide();
- }else {
- if($("#basketsUl > li").length == 0){
- $("#scanContainerBarcodeTipUl").show();
- }else{
- $("#scanContainerBarcodeTipUl").hide();
- }
}
}
- })
- }
+ }
+ })
+}