king
2024-10-11 e47184cc704621dd439fe24be40b94fed927b76f
2024-10-11
2个文件已修改
30 ■■■■■ 已修改文件
src/tabviews/zshare/actionList/exceloutbutton/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils-custom.js 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -934,6 +934,10 @@
      _setting.laypage = pagination
      _setting.arr_field = _setting.all_field || _setting.arr_field
      if (setting.sub_field) {
        _setting.uuid = btn.uuid
      }
      delete _setting.sub_field
    }
src/utils/utils-custom.js
@@ -3196,13 +3196,17 @@
            resetButton(item, group.subButton)
          })
        } else if (item.type === 'module' && item.subtype === 'invoice') {
          if (item.buyer.setting && item.buyer.setting.interType === 'system') {
          let msg = getDataSource(item.buyer, [])
          
          sqls.push({uuid: item.uuid + 'buyer', type: 'datasource', ...msg})
          }
          if (item.detail.setting && item.detail.setting.interType === 'system') {
          let _msg = getDataSource(item.detail, [])
          sqls.push({uuid: item.uuid + 'detail', type: 'datasource', ..._msg})
          }
          let btnmsg = getInvoicePreSql(item.billSaveBtn, item.$menuname + '-' + item.billSaveBtn.label)
@@ -3279,6 +3283,10 @@
    } else if (cell.OpenType === 'excelOut') {
      if (cell.intertype === 'system' && cell.verify && cell.verify.dataType === 'custom') {
        let msg = getExcelOutSql(cell, item)
        sqls.push({uuid: cell.uuid, type: 'excelOut', ...msg})
      } else if (cell.intertype === 'system' && cell.verify && item.subtype === 'dualdatacard' && item.setting && item.setting.interType === 'system') {
        let msg = getDoubleExcelOutSql(cell, item)
        sqls.push({uuid: cell.uuid, type: 'excelOut', ...msg})
      }
@@ -4662,8 +4670,6 @@
  }
  let getDataSource = (item, mainSearch = [], type) => {
    if (!item.setting || item.setting.interType !== 'system') return
    let searches = item.search || []
    if (item.setting.useMSearch === 'true' && mainSearch.length > 0) {
      searches = [...searches, ...mainSearch]
@@ -4714,7 +4720,7 @@
      _search = ''
    }
    if (/\s/.test(_dataresource)) {
    if (/\s/.test(_dataresource) && !/\)\s+tb$/.test(_dataresource)) {
      _dataresource = '(' + _dataresource + ') tb'
    }
@@ -5548,6 +5554,20 @@
    return msg
  }
  let getDoubleExcelOutSql = (btn, component) => {
    let item = fromJS(component).toJS()
    item.search = item.$searches || []
    item.subtype = 'datacard'
    item.columns = [...item.columns, ...item.subColumns]
    item.setting.laypage = btn.pagination
    item.setting.$name = btn.logLabel || ''
    let msg = getDataSource(item, [])
    return msg
  }
  let getPrintSql = (btn, component) => {
    let item = {setting: {}, columns: btn.verify.columns || [], search: [], useMSearch: 'false'}