Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js
===================================================================
diff -u -r29173 -r29182
--- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 29173)
+++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 29182)
@@ -869,7 +869,6 @@
tousseInstanceBarcode:item.tousseInstanceBarcode
}
addOrDelTousse(tousse);
-
refreshSequence(delElement.parent().parent(),0);
hideElement.remove();
nameElement.remove();
@@ -966,7 +965,6 @@
});
}
var tousseAmountForMaterial = item.tousseAmount;
-
if(type == '材料'){
unloadStaff(item.tousseDefinitionID,tousseAmountForMaterial,idCardBarcode);
}else{
@@ -1356,19 +1354,19 @@
});
}
-function userContainer(that,user,basketName,basketBarcode,classifyBasketId){
+function userContainer(that,user,basketName,basketBarcode,classifyBasketId,washClassifyType){
if ( event && event.preventDefault ){
event.preventDefault();
}else{//IE中阻止函数器默认动作的方式
window.event.returnValue = false;
}
if(user == 1){
var sumCount = $(that).parent().parent().find('.totalAmount').text();
- createBasketUiElement(basketBarcode,classifyBasketId,basketName,'',undefined,false,parseInt(sumCount));
+ createBasketUiElement(basketBarcode,classifyBasketId,basketName,washClassifyType,undefined,false,parseInt(sumCount));
$(that).parent().parent().remove();
}else {
var sumCount = $(that).parent().find('.totalAmount').text();
- createBasketUiElement(basketBarcode,classifyBasketId,basketName,'',undefined,false,parseInt(sumCount));
+ createBasketUiElement(basketBarcode,classifyBasketId,basketName,washClassifyType,undefined,false,parseInt(sumCount));
$(that).parent().remove();
}
}
@@ -1386,8 +1384,7 @@
if(showBasketLoadMaterialAmount == true){
imageButton = '
';
}
-
- basketElement += '' + (sequence&&sequence>0?(sequence+'.' + basketName):basketName) + '' + imageButton +'';
+ basketElement += '' + (sequence&&sequence>0?(sequence+'.' + basketName):basketName) +''+''+imageButton+'';
if(sumCount){
basketElement += '0/'+sumCount+'';
basketElement += ''+sumCount+'';
@@ -2549,7 +2546,6 @@
var hiddenjson = JSON.parse(hideStr);
var scanedGoodsArray = new Array();
-
$(this).find('dl').children().each(function(i,element){
if($(this).attr('type') == 'hidden'){
var itemJson = $(this).val();
@@ -6059,7 +6055,6 @@
}
if(record.classifyBaskets != null){
- console.log(record.classifyBaskets)
for(var i = 0 ; i< record.classifyBaskets.length ; i++){
var basket = record.classifyBaskets[i];
var washClassifyType = basket.washClassifyType;
@@ -6293,6 +6288,7 @@
var containerBarcode = result[i].containerBarcode;
var containerName = result[i].containerName;
var id = result[i].id;
+ var washClassifyType = result[i].washClassifyType;
var sumAmount = 0;
var text = '';
var sumText = '';
@@ -6305,7 +6301,7 @@
var basketElement = '
';
basketElement += '';
basketElement += '';
- basketElement += '使用';
+ basketElement += '使用';
basketElement += '';
basketElement += '';
@@ -6331,7 +6327,7 @@
var amountStyle = (result[i].percentage == 1)?'color:red':'';
- basketElement += '' + (containerName) + '' + imageButton +'';
+ basketElement += '' + (containerName) + '' + imageButton +'';
basketElement += '' + sumAmount + '';
basketElement += ''+sumText+'
';
basketElement += '';
Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.jsp
===================================================================
diff -u -r29173 -r29182
--- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.jsp (.../expressRecycleForTouchScreen.jsp) (revision 29173)
+++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/expressRecycleForTouchScreen.jsp (.../expressRecycleForTouchScreen.jsp) (revision 29182)
@@ -255,7 +255,7 @@
}
});
});
-
+var resolution = '${param.resolution}';
function progress(i) {
progressbar.progressbar( "option", {value: i });
}
@@ -761,13 +761,18 @@
$("#basketsUl").prepend(currentNode);
//toggleItems(currentNode.find('span')[0]);
}else{
+ var showBasketLoadMaterialAmount = sstsConfig.showBasketLoadMaterialAmount;
+ var imageButton = '';
+ if(showBasketLoadMaterialAmount == true){
+ imageButton = '
';
+ }
var basketElement = '';
basketElement += '';
basketElement += '';
basketElement += '删除';
basketElement += '';
basketElement += '';
- basketElement += ''+basketItem.containerName+'';
+ basketElement += ''+basketItem.containerName+''+''+imageButton+'';
if(basketItem.sumCount) {
basketElement += '0/'+basketItem.sumCount+'';
}else {
@@ -1500,7 +1505,7 @@
}else{
var selectDepartGroupId = $("#inputselect").val(); //科室分组过滤
var tousseGroupSelect = $('#tousseGroupSelect').val(); //器械包分组过滤
- loadItem(tousseGroupSelect,selectDepartGroupId);
+ loadItem(tousseGroupSelect,selectDepartGroupId);
array = new Array();
}
}
@@ -1547,7 +1552,8 @@
function loadItem(tousseGroupSelect,selectDepartGroupId) {
$("#tousseItemTable").empty();
- $("#basketsUl").empty();
+ $("#basketsUl").empty();
+ $("#loadingPutBasket").empty();
document.onkeydown = showKeyDown;
var index = layer.load(1, {
content: '加载中,请稍后...',
@@ -1585,6 +1591,9 @@
error : function() {
}
});
+ if(sstsConfig.loadWashLoadingStatusBasketsWhenRecycling){
+ getWashLoadingStatusBaskets()
+ }
}
function encodeAll(text) {
@@ -1723,12 +1732,51 @@
$(that).parent().parent().remove();
}else {
var sumCount = $(that).parent().find('.totalAmount').text();
+ var msg = {
+ basket:{
+ containerBarcode:basketBarcode,
+ id:classifyBasketId,
+ containerName:basketName,
+ washClassifyType:'',
+ sumCount:parseInt(sumCount)
+ }
+ }
addBasketElement(msg);
$(that).parent().remove();
}
}
-if(sstsConfig.loadWashLoadingStatusBasketsWhenRecycling){
- getWashLoadingStatusBaskets()
+function basketLoadGoods(basketName,basketBarcode,classifyBasketId){
+ var width = 740;
+ var height = 400;
+ var designedTousseWidth = 980;
+ var designedTousseHeight = 700;
+ var designedWidth = 1920;
+ var designedHeight = 1080;
+ var actualWidth = window.screen.availWidth;
+ var actualHeight = window.screen.availHeight;
+ var offsetTop = 100;
+ var heightExtra = 10;
+ if(resolution == '1980'){
+ width = 1080;
+ height = 800;
+ }
+ var zoomRatio = calculateZoomRatio(designedWidth,designedHeight,actualWidth,actualHeight);
+ var size = calculateSizeAfterZoom(designedTousseWidth,designedTousseHeight,zoomRatio);
+
+ var bodyZoom = calculateZoomRatio(2600,1462,actualWidth,actualHeight);
+
+ width = size.width;
+ height = size.height;
+ offsetTop = offsetTop*zoomRatio;
+ layerIndex=layer.open({
+ type : 2,
+ title : ['['+basketName + '] 已装载物品列表',true],
+ content : 'basketLoadGoodsView.jsp?resolution=' + resolution + '&width=' + width + '&height=' + height + '&basketBarcode=' + basketBarcode + '&classifyBasketId=' + classifyBasketId,
+ area : [ width/bodyZoom*1 + 'px' , height/bodyZoom*1 +heightExtra + 'px'],
+ border : [5, 0.3, '#fff', true],
+ closeBtn : [2 , true],
+ offset : [offsetTop+'px',(2600-(width/bodyZoom*1))/2+'px']
+ });
}
//获取清洗装载状态的篮筐
function getWashLoadingStatusBaskets(){
Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/customIntoBasket.js
===================================================================
diff -u -r29173 -r29182
--- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/customIntoBasket.js (.../customIntoBasket.js) (revision 29173)
+++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/customIntoBasket.js (.../customIntoBasket.js) (revision 29182)
@@ -256,14 +256,19 @@
$("#basketsUl").prepend(currentNode);
toggleItems(currentNode.find('span')[0]);
}else{
+ var showBasketLoadMaterialAmount = sstsConfig.showBasketLoadMaterialAmount;
+ var imageButton = '';
+ if(showBasketLoadMaterialAmount == true){
+ imageButton = '
';
+ }
var basketElement = '';
basketElement += '';
basketElement += '';
basketElement += '删除';
basketElement += '删除';
basketElement += '';
basketElement += '';
- basketElement += ''+basketItem.containerName+'
'
+ basketElement += ''+basketItem.containerName+imageButton+'
'
basketElement += '' + 0 + '';
basketElement += '
';
basketElement += '';
@@ -460,7 +465,6 @@
$(this).val(JSON.stringify(json));
$(this).next().next().next().text(json.amount);
if(json.amount == 0){
- //
tousseIntoBasketInfo.remove(tousseDefinitionID,basketBarcode);
}
return false;
@@ -1212,22 +1216,90 @@
var basketHidenValue = liElement.find('input:first').val();
if(basketHidenValue){
var basketInfo = JSON.parse(basketHidenValue);
+ var showBasketLoadMaterialAmount = sstsConfig.showBasketLoadMaterialAmount;
+ var imageButton = '';
+ if(showBasketLoadMaterialAmount == true){
+ imageButton = '
';
+ }
basketInfo.sequence = sequence;
liElement.find('input:first').val(JSON.stringify(basketInfo))
var showName = sequence > 0?(sequence + '.' + basketInfo.containerName):basketInfo.containerName;
- liElement.find('div.basketName div:last').html(showName);
+ liElement.find('div.basketName div:last').html(showName+imageButton);
}
}
}
+/*
+ *IE8以下兼容document.getElementsByClassName
+ */
+function documentGetElementsByClassName(className) {
+ if (!document.getElementsByClassName) {
+ document.getElementsByClassName = function(className) {
+ var children = document.getElementsByTagName('*');
+ var elements = new Array();
+ for (var i = 0; i < children.length; i++) {
+ var child = children[i];
+ var classNames = child.className.split(' ');
+ for (var j = 0; j < classNames.length; j++) {
+ if (classNames[j] == className) {
+ elements.push(child);
+ break;
+ }
+ }
+ }
+ return elements;
+ };
-function userContainer(that,sumAmount,basketName,basketBarcode,classifyBasketId){
+ return document.getElementsByClassName(className);
+ } else {
+ return document.getElementsByClassName(className);
+ }
+}
+function basketLoadGoods(basketName,basketBarcode,classifyBasketId){
+ var width = 740;
+ var height = 400;
+ var designedTousseWidth = 980;
+ var designedTousseHeight = 700;
+ var designedWidth = 1920;
+ var designedHeight = 1080;
+ var actualWidth = window.screen.availWidth;
+ var actualHeight = window.screen.availHeight;
+ var offsetTop = 100;
+ var heightExtra = 10;
+ if(resolution == '1980'){
+ width = 1080;
+ height = 800;
+ }
+ var zoomRatio = calculateZoomRatio(designedWidth,designedHeight,actualWidth,actualHeight);
+ var size = calculateSizeAfterZoom(designedTousseWidth,designedTousseHeight,zoomRatio);
+
+ var bodyZoom = calculateZoomRatio(2600,1462,actualWidth,actualHeight);
+
+ width = size.width;
+ height = size.height;
+ offsetTop = offsetTop*zoomRatio;
+ layerIndex=layer.open({
+ type : 2,
+ title : ['['+basketName + '] 已装载物品列表',true],
+ content : 'basketLoadGoodsView.jsp?resolution=' + resolution + '&width=' + width + '&height=' + height + '&basketBarcode=' + basketBarcode + '&classifyBasketId=' + classifyBasketId,
+ area : [ width/bodyZoom*1 + 'px' , height/bodyZoom*1 +heightExtra + 'px'],
+ border : [5, 0.3, '#fff', true],
+ closeBtn : [2 , true],
+ offset : [offsetTop+'px',(2600-(width/bodyZoom*1))/2+'px']
+ });
+}
+function userContainer(that,sumAmount,basketName,basketBarcode,classifyBasketId,type){
+ var showBasketLoadMaterialAmount = sstsConfig.showBasketLoadMaterialAmount;
+ var imageButton = '';
+ if(showBasketLoadMaterialAmount == true){
+ imageButton = '
';
+ }
var basketElement = '';
basketElement += '';
basketElement += '';
basketElement += '删除';
basketElement += '';
basketElement += '';
- basketElement += ''
+ basketElement += ''+basketName+imageButton+'
'
basketElement += '0/'+sumAmount+'';
basketElement += '
';
basketElement += '';
@@ -1237,8 +1309,11 @@
$("#basketsUl li:first").find('input').val(json);
updateRemoveImplantBtn($("#basketsUl li:first"),false);
toggleItems(obj.find('span')[0]);
-
- $(that).parent().parent().remove();
+ if(type == 0){
+ $(that).parent().parent().remove();
+ }else {
+ $(that).parent().remove();
+ }
}
//获取清洗装载状态的篮筐
function getWashLoadingStatusBaskets(){
@@ -1267,7 +1342,7 @@
var basketElement = '';
basketElement += '';
basketElement += '';
- basketElement += '使用';
+ basketElement += '使用';
basketElement += '';
basketElement += '';
@@ -1293,7 +1368,7 @@
var amountStyle = (result[i].percentage == 1)?'color:red':'';
- basketElement += '' + (containerName) + '' + imageButton +'';
+ basketElement += '' + (containerName) + '' + ''+imageButton+'';
basketElement += '' + sumAmount + '';
basketElement += ''+sumText+'
';
basketElement += '';