Index: ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordForm.js =================================================================== diff -u -r30190 -r30193 --- ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordForm.js (.../sterilizationRecordForm.js) (revision 30190) +++ ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationRecordForm.js (.../sterilizationRecordForm.js) (revision 30193) @@ -127,9 +127,6 @@ var myBarcodes = []; leftFixedBarcodeMap.forEach(function (item, i) { var amount = item; - if (leftFixedBarcodeMapBySterilization.get(i)) { - amount = amount - leftFixedBarcodeMapBySterilization.get(i); - } if (amount !== 0) { myBarcodes.push({ fixedBarcodes: i, Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r29581 -r30193 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 29581) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 30193) @@ -3236,19 +3236,18 @@ // 向Map中增加元素(key, value) this.set = function(_key, _value) { if (this.containsKey(_key) == true) { - if (this.containsValue(_value)) { - if (this.remove(_key) == true) { - this.elements.push({ - key : _key, - value : _value - }); + var bln = false; + try { + for (i = 0; i < this.elements.length; i++) { + if (this.elements[i].key == _key) { + this.elements[i].value = _value; + return true; + } } - }else { - this.elements.push({ - key : _key, - value : _value - }); + } catch (e) { + bln = false; } + return bln; }else { this.elements.push({ key : _key,