Index: ssts-web/src/main/webapp/disinfectsystem/packing/splitForeignTousseView.js =================================================================== diff -u -r27986 -r29415 --- ssts-web/src/main/webapp/disinfectsystem/packing/splitForeignTousseView.js (.../splitForeignTousseView.js) (revision 27986) +++ ssts-web/src/main/webapp/disinfectsystem/packing/splitForeignTousseView.js (.../splitForeignTousseView.js) (revision 29415) @@ -164,7 +164,7 @@ resetTotolAmount(); } -function toSplitTousseGrid(tousseName){ +function toSplitTousseGrid(tousseName,sterilingType){ var success = false; var materialsStr = ""; var toolAmount = 0; // 工具数量 @@ -200,7 +200,6 @@ var type = top.Ext4.getCmp("foreignToussePackageType").getValue(); var splitedTousseStore = top.Ext4.getCmp("splitedTousseGrid").getStore(); - if(materialsStr != ""){ var item = [{ tousseName : packageName, @@ -210,9 +209,9 @@ bigPackage : "否", toolAmount : toolAmount, implantAmount : implantAmount, + sterilingType:sterilingType, rowNum:rowNum++ }]; - splitedTousseStore.add(item); //删除 splitedMaterialStore.removeAll(); @@ -254,6 +253,7 @@ tousse.packingType = record.get('packingType'); tousse.toolAmount = record.get('toolAmount'); tousse.implantAmount = record.get('implantAmount'); + tousse.sterilingMethod = record.get('sterilingType'); packages.push(tousse); } @@ -512,7 +512,7 @@ fields : [ {name : 'tousseName',mapping : 'tousseName'}, {name : 'bigPackage',mapping : 'bigPackage'}, - //{name : 'weight',mapping : 'weight'}, + {name : 'sterilingType',mapping : 'sterilingType'}, {name : 'packingType',mapping : 'packingType'}, {name : 'materialNames',mapping : 'materialNames'}, {name : 'toolAmount',mapping : 'toolAmount'}, @@ -562,7 +562,20 @@ editable:false, store: fToussePackageTypeStore }) - }, { + },{ + header : "灭菌程序", + dataIndex : 'sterilingType', + width : 120, + editor : new top.Ext4.form.field.ComboBox({ + typeAhead: true, + valueField : "typeName", + displayField : "typeNameAndPurpose", + triggerAction: 'all', + allowBlank : false, + editable:false, + store: fTousseSterilizerTypeStore + }) + }, { header : "包含的材料", dataIndex : 'materialNames', width : 200 @@ -803,7 +816,7 @@ anchor : '80%', value : jobType_inspector_name, readOnly: true - }, { + }/*, { xtype : "combo", columnWidth : .33, labelWidth : 70, @@ -821,7 +834,7 @@ anchor : "80%", value : sterilingType, allowBlank : false - },{ + }*/,{ xtype : 'combo', columnWidth : .33, labelWidth : 70, @@ -972,12 +985,12 @@ layout : 'border', items : [{ region : 'north', - height : 190, + autoHight:true, layout : 'fit', items : [foreignToussePanel] }, { region : 'center', - height : 230, + autoHight:true, layout : 'column', items : [ { @@ -1026,7 +1039,7 @@ border:false, width:38, handler : function(){ - toSplitTousseGrid(showName); + toSplitTousseGrid(showName,sterilingType); } } ] }, { @@ -1036,7 +1049,7 @@ } ] }, { region : 'south', - height : 220, + autoHight:true, layout : 'fit', items : [ splitedTousseGrid ] }] @@ -1289,7 +1302,6 @@ inspector = top.Ext4.getCmp('inspector2').getValue(); inspectorCode = top.Ext4.getCmp('inspectorCode2').getValue(); var packageType = ""; - var sterilingType = top.Ext4.getCmp('sterilingType2').getValue(); var stock = ""; var packAmount = top.Ext4.getCmp('packAmount2').getValue(); var splitPackages = top.Ext4.getCmp('splitPackages').getValue(); @@ -1301,7 +1313,6 @@ if(isUndefinedOrNullOrEmpty(sterileDate)){ sterileDate = new Date(); } - var params = { taskIds: ids, inspector: inspector, @@ -1315,7 +1326,6 @@ wrapper: wrapper, wrapperCode: wrapperCode, packageType: packageType, - sterilingType: sterilingType, sterileDate: sterileDate.getTime(), stock: stock, packAmount: packAmount, @@ -1328,7 +1338,7 @@ confirmContinue: '', urgentAmount: '', tousseWeight: '' - } + } DWREngine.setAsync(false); PackingTableManager.packingTousse2(JSON.stringify(params),function(rs){ if (rs != null){