Index: ssts-web/src/main/webapp/disinfectsystem/packing/directPacking.js =================================================================== diff -u -r17266 -r17362 --- ssts-web/src/main/webapp/disinfectsystem/packing/directPacking.js (.../directPacking.js) (revision 17266) +++ ssts-web/src/main/webapp/disinfectsystem/packing/directPacking.js (.../directPacking.js) (revision 17362) @@ -1198,17 +1198,33 @@ } Ext.getCmp('tousseName').setValue(); Ext.getCmp('tempTousseType').setValue(); - if(!sstsConfig.directPackingRetainPackAmount){ + if(!sstsConfig.packAmountProcessTypeInDirectPackingView){ + //0或者未定义,清空 Ext.getCmp('packAmount').setValue(); + }else if(sstsConfig.packAmountProcessTypeInDirectPackingView==1){ + //保留当前值,不处理 + }else if(sstsConfig.packAmountProcessTypeInDirectPackingView==2){ + //设置回页面进入时的值,就是1 + Ext.getCmp('packAmount').setValue(1); + }else{ + //非法值,不处理吧 } Ext.getCmp('packAmount').enable(); // Ext.getCmp('frequency').setValue(); // Ext.getCmp('sterilizer').setValue(); Ext.getCmp('idCardBarcode').setValue(); Ext.getCmp('idCardName').setValue(); - if(!sstsConfig.directPackingRetainDisinfectionDate){ + if(!sstsConfig.disinfectionDateProcessTypeInDirectPackingView){ + //0或者未定义,清空 Ext.getCmp('disinfectionDate').setValue(); + }else if(sstsConfig.disinfectionDateProcessTypeInDirectPackingView==1){ + //保留当前值,不处理 + }else if(sstsConfig.disinfectionDateProcessTypeInDirectPackingView==2){ + //设置回页面进入时的值,就是当天 + setStartDate(Ext, 'yyyy/MM/dd', 'disinfectionDate'); //(设置灭菌日期,取服务器时间 cjr) + }else{ + //非法值,不处理吧 } if(sstsConfig.cleanOperatorAfterDirectPacking == true){ Ext.getCmp('operator').setValue();