Index: ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js =================================================================== diff -u -r19120 -r19266 --- ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 19120) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 19266) @@ -260,6 +260,7 @@ currentIDCardInfo = result.idCard; Ext4.getCmp('idCardBarcode').setValue(barcode); Ext4.getCmp('idCardName').setValue(tousseName + "(条码:" + barcode + ")"); + Ext4.getCmp('idCardUseAmount').setValue(result.idCard.idCardDefinition.useAmount); idCardBarcode = barcode; idCardInstanceID = result.idCard.id; idCardInfo = result.idCard; @@ -272,6 +273,7 @@ { showResult(result.errorMsg); Ext4.getCmp('idCardName').setValue(); + Ext4.getCmp('idCardUseAmount').setValue(); } }); } @@ -915,6 +917,20 @@ allowBlank : true, readOnly : true },{ + columnWidth : .5, + hidden : true, + xtype : 'textfield', + fieldLabel : '使用次数', + componentCls:'formItemMgn', + maxLength : '50', + id : 'idCardUseAmount', + name : 'idCardUseAmount', + labelWidth:90, + anchor : '95%', + labelAlign:'right', + allowBlank : true, + readOnly : true + },{ columnWidth :.5, xtype : 'textfield', fieldLabel : '检查人条码', @@ -2033,6 +2049,7 @@ scanScanIDCardBarcode.hide(); idCardName.hide(); + Ext4.getCmp('idCardUseAmount').hide(); clearInputedIDCardInfo(); } @@ -2042,6 +2059,7 @@ scanScanIDCardBarcode.show(); idCardName.show(); + Ext4.getCmp('idCardUseAmount').show(); } function clearInputedIDCardInfo(){ idCardBarcode = ''; @@ -2050,6 +2068,7 @@ idCardTaskNode = null; Ext4.getCmp('idCardBarcode').setValue(); Ext4.getCmp('idCardName').setValue(); + Ext4.getCmp('idCardUseAmount').setValue(); } // 删除篮筐内物品 @@ -3251,6 +3270,7 @@ loadIdCardByBarcode(idCardBarcodeTemp); }else{ Ext4.getCmp('idCardName').setValue(""); + Ext4.getCmp('idCardUseAmount').setValue(""); } refreshErrorAndDamageRemark(record); var isLeaf = record.get('leaf');