king
2025-05-13 1a176e4bdba485301385caac1a29102e598d25cc
src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -159,10 +159,7 @@
      lang = data[0].lang_s || ''
    }
    // let _name = '新页面'
    if (btn.pageTemplate === 'billprint') {
      // _name = '单据打印'
      if (btn.preHandle === 'true' && btn.pre_func) {
        MKEmitter.emit('queryModuleParam', btn.$menuId, (res) => {
          let searches = {}
@@ -254,14 +251,16 @@
          let _param = { id: Id, tempId: btn.printTemp, pageId: btn.$MenuID || '', dataM: sessionStorage.getItem('dataM')}
          let item = data[0]
          Object.keys(item).forEach(key => {
            if (/^\$/.test(key)) return
            if (typeof(item[key]) !== 'string' && typeof(item[key]) !== 'number') return
            if (typeof(item[key]) === 'string' && item[key].length > 50) return
            if (['id', 'tempid', 'pageid', 'datam'].includes(key.toLowerCase())) return
            _param[key.toLowerCase()] = item[key]
          })
          if (item) {
            Object.keys(item).forEach(key => {
              if (/^\$/.test(key)) return
              if (typeof(item[key]) !== 'string' && typeof(item[key]) !== 'number') return
              if (typeof(item[key]) === 'string' && item[key].length > 50) return
              if (['id', 'tempid', 'pageid', 'datam'].includes(key.toLowerCase())) return
              _param[key.toLowerCase()] = item[key]
            })
          }
          window.open('#/billprint/' + window.btoa(window.encodeURIComponent(JSON.stringify(_param))))
        }
@@ -273,8 +272,6 @@
      let src = '#/print/' + window.btoa(window.encodeURIComponent(JSON.stringify({ ID: Id, lang })))
      window.open(src)
    } else if (btn.pageTemplate === 'pay') {
      // _name = '支付'
      let appId = ''
      let merchId = ''
@@ -372,9 +369,14 @@
      window.open(url)
    }
    // if (window.GLOB.systemType === 'production') {
    //   MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: _name})
    // }
    if (window.GLOB.systemType === 'production') {
      let _temname = {
        billprint: '单据打印',
        pay: '直接执行',
      }
      MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: _temname[btn.pageTemplate] || '新页面'})
    }
  }
  prequest = (ID, data, appId, merchId) => {