| | |
| | | saved: true |
| | | }) |
| | | } |
| | | |
| | | let tabId = '' |
| | | if (config.wrap.linkmenu && config.wrap.linkmenu.length > 0) { |
| | | tabId = config.wrap.linkmenu[config.wrap.linkmenu.length - 1] |
| | | } |
| | | |
| | | if (tabId) { |
| | | MKEmitter.emit('reloadMenuView', tabId, 'table') |
| | | } |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | voucherTempSave = (list, name, typeChar, typeName) => { |
| | | const { type, BID, data, book, title, orgcode, orgname, tempTypeClass, tempTypeName } = this.state |
| | | const { type, config, BID, data, book, title, orgcode, orgname, tempTypeClass, tempTypeName } = this.state |
| | | |
| | | if (!book) { |
| | | notification.warning({ |
| | |
| | | data: fromJS(list).toJS(), |
| | | }) |
| | | } |
| | | |
| | | let tabId = '' |
| | | if (config.wrap.linkmenu && config.wrap.linkmenu.length > 0) { |
| | | tabId = config.wrap.linkmenu[config.wrap.linkmenu.length - 1] |
| | | } |
| | | |
| | | if (tabId) { |
| | | MKEmitter.emit('reloadMenuView', tabId, 'table') |
| | | } |
| | | }) |
| | | } |
| | | |
| | |
| | | triggerclose = () => { |
| | | const { config, status } = this.state |
| | | |
| | | let tabId = '' |
| | | if (config.wrap.linkmenu && config.wrap.linkmenu.length > 0) { |
| | | tabId = config.wrap.linkmenu[config.wrap.linkmenu.length - 1] |
| | | } |
| | | |
| | | if (status === 'change') { |
| | | confirm({ |
| | | content: '内容已变更,确定要关闭吗?', |
| | | onOk() { |
| | | MKEmitter.emit('closeTabView', config.$pageId) |
| | | if (tabId) { |
| | | MKEmitter.emit('reloadMenuView', tabId, 'table') |
| | | } |
| | | }, |
| | | onCancel() {} |
| | | }) |
| | | } else { |
| | | MKEmitter.emit('closeTabView', config.$pageId) |
| | | if (tabId) { |
| | | MKEmitter.emit('reloadMenuView', tabId, 'table') |
| | | } |
| | | } |
| | | } |
| | | |