king
2023-08-18 57266ee8c62f0fddb42c18c705507fc0dc2416f6
src/tabviews/custom/components/module/voucher/index.jsx
@@ -689,6 +689,15 @@
          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')
      }
    })
  }
@@ -781,7 +790,7 @@
  }
  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({
@@ -933,6 +942,15 @@
          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')
      }
    })
  }
@@ -1048,27 +1066,16 @@
  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')
      }
    }
  }