Index: ssts-web/src/main/webapp/disinfectsystem/invoice/operationReservationInvoiceView.js =================================================================== diff -u -r37356 -r37396 --- ssts-web/src/main/webapp/disinfectsystem/invoice/operationReservationInvoiceView.js (.../operationReservationInvoiceView.js) (revision 37356) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/operationReservationInvoiceView.js (.../operationReservationInvoiceView.js) (revision 37396) @@ -60,6 +60,102 @@ editRecord(data['id']); } +//BJDXZLYY-46:智能货柜查询 +function showOperationReservationStorageTousse(id){ + var operationReservationStore = new Ext.data.Store({ + proxy : new Ext.data.HttpProxy({ + url : WWWROOT + '/disinfectsystem/operationReservationAction!loadOperationReservationStorageTousse.do', + method : 'POST' + }), + baseParams : {id : id}, + reader : new Ext.data.JsonReader({ + root : 'data' + }, [ + {name : 'id',mapping : 'id'}, + {name : 'showTousseName',mapping : 'showTousseName'}, + {name : 'barcode',mapping : 'barcode'}, + {name : 'storageLocation',mapping : 'storageLocation'}, + {name : 'validUntilStr',mapping : 'validUntilStr'} + ]) + }); + operationReservationStore.load(); + + var selectModel = new top.Ext.grid.CheckboxSelectionModel(); + + var operationReservationGrid = new top.Ext.grid.GridPanel({ + id :'operationReservationlGrid', + store: operationReservationStore, + cm: new top.Ext.grid.ColumnModel([selectModel, + { + menuDisabled: true, + header : "器械包名称", + width:250, + dataIndex : 'showTousseName' + },{ + menuDisabled: true, + header : "器械包条码", + width:80, + dataIndex : 'barcode' + },{ + menuDisabled: true, + header : "抽屉名称", + width:130, + dataIndex : 'storageLocation' + },{ + menuDisabled: true, + header : "失效日期", + width:120, + dataIndex : 'validUntilStr' + } + ]), + sm:selectModel, + viewConfig: {forceFit:true}, + height: 240, + frame : false + }); + + var configWin = new top.Ext.Window({ + id: 'configWin', + layout: 'border', + title: '智能货柜查询结果', + width: 700, + height: 430, + border: false, + plain: true, + modal: true, + buttonAlign:'center', + items: [{ + region: 'center', + width: 500, + layout: 'fit', + items: [operationReservationGrid] + }], + buttons: [{ + text: '保存', + handler: function () { + var records = operationReservationGrid.getSelectionModel().getSelections(); + if(records.length > 0){ + var orgUnitCoding = top.Ext.getCmp('orgUnitCoding').getValue(); + for(var i=0;i= 0){ + if(operationReservation.deliverStatus == '部分发货' || operationReservation.deliverStatus == '待发货'){ + hiddenOperationReservation = false; + } + } + } var form = new top.Ext.FormPanel({ id : 'recyclingApplicationForm', frame : true, @@ -1890,6 +2000,12 @@ ] }], buttons : [{ + text : '智能货柜查询', + hidden:hiddenOperationReservation, + handler : function() { + showOperationReservationStorageTousse(operationReservation.id); + } + },{ text : '保存', disabled : committedStatus ? false : true,//未提交则保存按钮置灰 id:'saveButton',