/** * 结案检测项异常 */ Ext.define('make.view.make.makeBase.EndCheckDataWindow', { extend: 'Ext.window.Window', xtype: 'make-makebase-endcheck-window', requires: [ 'Ext.layout.container.Accordion' ], controller: { handleClose: function () { this.getView().close(); }, handleItemClick: function (gridview, recordIndex, cellIndex, item, e, record) { this.onItemDblClick(gridview, record); }, onItemDblClick: function (grid, record) { var viewType = record.get('viewType'); if (viewType) { saas.util.BaseUtil.openTab(viewType, record.get('bizName')+ "(" + record.get('bizCode') + ")", record.get('bizCode')+record.get('bizId'),{ initId: record.get('bizId') }); } }, }, title: '异常提示', width: 720, height: 500, bodyPadding: '16 0 0 16', ui: 'simple', layout: 'accordion', gridConfig: { xtype: 'grid', ui: 'simple', columnLines: true, border: true, listeners: { itemdblclick: 'onItemDblClick' }, plugins: [{ ptype: 'gridexporter', }, { ptype: 'menuclipboard' }], columns: [{ text: '单据类型', width: 120, dataIndex: 'bizName', tdCls: 'x-grid-cell-break' }, { xtype: 'buttoncolumn', text: '单据编号', focusCls: null, resizable: false, draggable: false, flex: 1, dataIndex: 'bizCode', handler: 'handleItemClick' }] }, buttons: [ { text: '关闭', handler: 'handleClose', ui: 'simple' }], loadData: function (data) { var me = this, vm = me.getViewModel(), items = []; if (data.hasOnline) { items.push(Ext.apply({ title: '一、工单有结存待处理 共' + data.hasOnlines.length + '条', store: { data: data.hasOnlines } }, me.gridConfig)); } if (data.hasIo) { items.push(Ext.apply({ title: '二、工单有关联的未审核出入库单 共' + data.hasIos.length + '条', store: { data: data.hasIos } }, me.gridConfig)); } me.add(items); }, onConfirm: Ext.emptyFn });