Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceSignViewVersion2.js =================================================================== diff -u -r26968 -r26979 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceSignViewVersion2.js (.../invoiceSignViewVersion2.js) (revision 26968) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoiceSignViewVersion2.js (.../invoiceSignViewVersion2.js) (revision 26979) @@ -18,25 +18,7 @@ $Id('parm_s_endDate').value = endDate; grid.dwrReload(); } -/** - * 修改记录 - * modifyRecord函数 触发modify函数调用,并传入当前列的值以及record.data对象 - * 页面中需要定义 modify(v,data) 函数 - */ -var loadFormData = function(grid) { - var records = grid.getSelectionModel().getSelections(); - invoiceSignRecordId = records[0].data['id']; - invoiceSignDetailStore.removeAll(); - invoiceSignDetailStore.load(); - - goodsNameTotalStore.removeAll(); - goodsNameTotalStore.load(); -}; -function modify(v,data){ - loadFormData(grid); -} - Ext.onReady(function() { Ext4.tip.QuickTipManager.init(); var readerDetail = [ @@ -46,10 +28,7 @@ {name : 'remark'} ]; var columns = [ - {header : "签收人",width : 100,dataIndex : 'signUserName',renderer : function(v,p,record){ - return modifyRecord(v,p,record); - } - }, + {header : "签收人",width : 100,dataIndex : 'signUserName'}, {header : "签收时间",width : 115,dataIndex : 'createDate',renderer : myDateFormatByMinute}, {header : "备注",width : 230,dataIndex : 'remark',id:"remark",menuDisabled : true,sortable: false} ]; @@ -61,6 +40,7 @@ }); grid = new Ext.ux.ForgonPageGrid({ pageSize : 20, + id:"invoiceSignRecordGrid", defaultSortField : 'createDate', defaultSortDirection : 'DESC', //isCheckboxSelectionModel : true, @@ -71,6 +51,16 @@ renderTo : 'gridDiv', frame : false, title:"签收记录列表", + listeners: { + 'rowclick': function(grid, rowIndex, e) { + var records = grid.getSelectionModel().getSelections(); + invoiceSignRecordId = records[0].data['id']; + invoiceSignDetailStore.removeAll(); + invoiceSignDetailStore.load(); + goodsNameTotalStore.removeAll(); + goodsNameTotalStore.load(); + } + }, plugins : filters }, readerDetail, SignRecordTableManager.findSignRecordTableList, Index: ssts-web/src/main/webapp/common/common.css =================================================================== diff -u -r26922 -r26979 --- ssts-web/src/main/webapp/common/common.css (.../common.css) (revision 26922) +++ ssts-web/src/main/webapp/common/common.css (.../common.css) (revision 26979) @@ -179,4 +179,12 @@ .invoiceList-urgentImgBasket{ width: 20px; height: 20px; +} +/* 签收记录列表 */ +#invoiceSignRecordGrid .x-grid3-row-over{ + cursor: pointer; +} +#invoiceSignRecordGrid .x-grid3-row-over .x-grid3-row-table tr td .x-grid3-cell-inner{ + text-decoration: underline; + color: #367f21 !important; } \ No newline at end of file