king
2024-08-03 c18f79e01a2705d34d5ac2923a26913dba07ea14
2024-08-03
23个文件已修改
134 ■■■■■ 已修改文件
public/README.txt 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/index.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/options.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/index.js 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/datasource/verifycard/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/debug/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardcellList/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/module/invoice/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/share/normalTable/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/funcbutton/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/newpagebutton/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/printbutton/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/mkPopSelect/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/topSearch/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils-datamanage.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/billprint/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/interface/workspace/request/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/README.txt
@@ -16,6 +16,7 @@
WXApps            -- 存在多个公众号、小程序或商户时可使用微信APP列表,注意填写默认公众号、小程序与商户号,格式 [{"appId": "", "appName": "", "appType": "public/miniProgram/merchant"}]
nginx             -- 是否开启了nginx服务,值为 true 时开启,如需使用微信模板消息等服务,请先设置nginx服务并开启此配置
debugger          -- 值为 true 时开启调试模式,开启后移动端子应用中会有控制台
devTools          -- 值为 false 时不允许使用调试模式
licenseKey        -- 许可密钥,在内部网络中使用系统时,会跳过epc验证
storeKey          -- 电子档案本地授权码,使用本地许可密钥时有效
probation         -- 试用期(YYYY-MM-DD),在正式系统中,试用期内调用系统接口的脚本会记录下来
public/index.html
@@ -58,6 +58,10 @@
            }
          })
      }
      window.mkInfo = function(value, color = '') {
        console.info(value, color)
      }
    </script>
  </head>
  <body>
public/options.json
@@ -14,6 +14,7 @@
  "WXNotice": "true",
  "nginx": "true",
  "debugger": false,
  "devTools": true,
  "licenseKey": "",
  "storeKey": "",
  "probation": "",
src/api/index.js
@@ -1102,7 +1102,7 @@
      sql = sql.replace(/@db@/ig, window.GLOB.externalDatabase)
    }
    console.info(`/* sql 验证 */\n${sql.replace(/\n\s{6,20}/ig, '\n')}`)
    window.mkInfo(`/* sql 验证 */\n${sql.replace(/\n\s{6,20}/ig, '\n')}`)
    sql = sql.replace(/\n/ig, ' ')
src/index.js
@@ -343,6 +343,35 @@
      GLOB.memberLevel = 0
    }
    if (config.devTools === false) {
      sessionStorage.removeItem('breakpoint')
      GLOB.debugger = false
      let getVal = () => {
        let _i = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
        let _h = window.outerHeight - _i - 200
        let _w = window.outerWidth - window.innerWidth - 100
        return Math.max(_h, _w)
      }
      if (getVal() > 0) {
        document.body.innerHTML = '<div style="text-align: center; font-size: 30px; padding-top: 40vh;">本系统禁止使用控制台,请关闭控制台重新刷新!</div>'
        return
      } else {
        let timer = null
        window.addEventListener('resize', () => {
          timer && clearTimeout(timer)
          if (getVal() > 0) {
            timer = setTimeout(() => {
              document.body.innerHTML = '<div style="text-align: center; font-size: 30px; padding-top: 40vh;">本系统禁止使用控制台,请关闭控制台重新刷新!</div>'
            }, 100)
          }
        })
      }
    }
    if (GLOB.sysType === 'cloud') {
      Object.defineProperty(GLOB, 'debugger', {
        writable: false,
@@ -385,7 +414,6 @@
        document.getElementById('root')
      )
    }
  })
serviceWorker.unregister()
src/menu/datasource/verifycard/index.jsx
@@ -985,7 +985,7 @@
    })
    if (window.debugger) {
      console.info('select ' + s.join(', '))
      window.mkInfo('select ' + s.join(', '))
    }
    let extend = ''
src/menu/debug/index.jsx
@@ -2203,7 +2203,7 @@
    this.setState({status: this.verSqls.length > 0 ? 'loading' : 'over', execId: item.uuid})
    console.info(`/* 组件:${item.name}  检验项:${item.label} */`)
    window.mkInfo(`/* 组件:${item.name}  检验项:${item.label} */`)
    Api.sDebug(item.sql).then(result => {
      if (result.status || result.ErrCode === '-2') {
src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -944,7 +944,7 @@
                // eslint-disable-next-line
                _val = eval(_val)
              } catch (e) {
                console.info(_val)
                window.mkInfo(_val)
                console.warn(e)
                _val = 0
              }
@@ -994,7 +994,7 @@
              // eslint-disable-next-line
              _val = eval(_val)
            } catch (e) {
              console.info(_val)
              window.mkInfo(_val)
              console.warn(e)
              _val = ''
            }
src/tabviews/custom/components/module/invoice/index.jsx
@@ -728,7 +728,7 @@
    }
    if (window.GLOB.debugger === true) {
      console.info(sql.replace(/\n\s{6}/ig, '\n'))
      window.mkInfo(sql.replace(/\n\s{6}/ig, '\n'))
    }
    return sql
@@ -968,8 +968,8 @@
    }
    if (window.GLOB.debugger === true) {
      console.info('%c' + config.name + '(回调)', 'color: blue')
      console.info(sql.replace(/\n\s{8}/ig, '\n'))
      window.mkInfo('%c' + config.name + '(回调)', 'color: blue')
      window.mkInfo(sql.replace(/\n\s{8}/ig, '\n'))
    }
    param.LText = sql
src/tabviews/custom/components/share/normalTable/index.jsx
@@ -428,7 +428,7 @@
              content = ''
            }
          } catch (e) {
            console.info(content)
            window.mkInfo(content)
            console.warn(e)
            content = ''
          }
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
@@ -956,7 +956,7 @@
            // eslint-disable-next-line
            content = eval(content)
          } catch (e) {
            console.info(content)
            window.mkInfo(content)
            console.warn(e)
            content = ''
          }
@@ -1275,7 +1275,7 @@
            // eslint-disable-next-line
            content = eval(content)
          } catch (e) {
            console.info(content)
            window.mkInfo(content)
            console.warn(e)
            content = ''
          }
@@ -1892,7 +1892,7 @@
        sql = sql.replace(/@BID@/ig, `'${BID}'`)
        if (debug) {
          console.info(sql)
          window.mkInfo(sql)
        }
        sql = sql.replace(/%/ig, ' mpercent ')
@@ -1905,7 +1905,7 @@
        sql = sql.replace(/@BID@/ig, `'${BID}'`)
        if (debug) {
          console.info(sql)
          window.mkInfo(sql)
        }
        sql = sql.replace(/%/ig, ' mpercent ')
src/tabviews/custom/components/table/edit-table/normalTable/mkPopSelect/index.jsx
@@ -84,8 +84,8 @@
    // 测试系统打印查询语句
    if (window.GLOB.debugger === true) {
      console.info(`/*${config.label} 数据源*/\n` + sql.replace(/\n\s{6}/ig, '\n'))
      DateCount && console.info(`/*${config.label} 总数查询*/\n` + DateCount.replace(/\n\s{6}/ig, '\n'))
      window.mkInfo(`/*${config.label} 数据源*/\n` + sql.replace(/\n\s{6}/ig, '\n'))
      DateCount && window.mkInfo(`/*${config.label} 总数查询*/\n` + DateCount.replace(/\n\s{6}/ig, '\n'))
    }
    param.LText = Utils.formatOptions(sql, param.exec_type)
src/tabviews/zshare/actionList/funcbutton/index.jsx
@@ -348,8 +348,8 @@
    }
    if (window.GLOB.debugger === true) {
      console.info('%c' + btn.logLabel, 'color: blue')
      console.info(_sql)
      window.mkInfo('%c' + btn.logLabel, 'color: blue')
      window.mkInfo(_sql)
    }
    return _sql
src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -516,8 +516,8 @@
    }
    if (window.GLOB.debugger === true) {
      console.info('%c' + btn.logLabel, 'color: blue')
      console.info(_sql)
      window.mkInfo('%c' + btn.logLabel, 'color: blue')
      window.mkInfo(_sql)
    }
    return _sql
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1344,7 +1344,7 @@
  // Api.directRequest('http://localhost:3001/test.xml', 'get', null, 'true').then(res => {
  //   let $x2js = new x2js()
  //   let jsonObj = $x2js.xml2js(res);
  //   console.info(jsonObj)
  //   window.mkInfo(jsonObj)
  // })
  /**
@@ -1731,8 +1731,8 @@
      }
      if (window.GLOB.debugger === true) {
        console.info('%c' + btn.logLabel + '(回调)', 'color: blue')
        console.info(sql.replace(/\n\s{8}/ig, '\n'))
        window.mkInfo('%c' + btn.logLabel + '(回调)', 'color: blue')
        window.mkInfo(sql.replace(/\n\s{8}/ig, '\n'))
      }
      param.LText = sql
@@ -1766,7 +1766,7 @@
          `)}
        `))
        sql = sql.join('')
        console.info(sql.replace(/\n\s{10}/ig, '\n'))
        window.mkInfo(sql.replace(/\n\s{10}/ig, '\n'))
      }
    }
src/tabviews/zshare/actionList/printbutton/index.jsx
@@ -1160,8 +1160,8 @@
    // 测试系统打印查询语句
    if (window.GLOB.debugger === true) {
      _customScript && console.info(`${btn.logLabel ? `/*${btn.logLabel} 自定义脚本*/\n` : ''}${LText ? '' : '/*不执行默认sql*/\n'}${_customScript}`)
      LText && console.info(`${btn.logLabel ? `/*${btn.logLabel} 数据源*/\n` : ''}` + LText.replace(/\n\s{8}/ig, '\n'))
      _customScript && window.mkInfo(`${btn.logLabel ? `/*${btn.logLabel} 自定义脚本*/\n` : ''}${LText ? '' : '/*不执行默认sql*/\n'}${_customScript}`)
      LText && window.mkInfo(`${btn.logLabel ? `/*${btn.logLabel} 数据源*/\n` : ''}` + LText.replace(/\n\s{8}/ig, '\n'))
    }
    if (btn.logLabel) {
src/tabviews/zshare/mutilform/index.jsx
@@ -873,7 +873,7 @@
        sql = sql.replace(/@BID@/ig, `'${BID}'`)
        if (window.GLOB.debugger === true) {
          console.info(sql)
          window.mkInfo(sql)
        }
        sql = sql.replace(/%/ig, ' mpercent ')
@@ -887,7 +887,7 @@
        sql = sql.replace(/@BID@/ig, `'${BID}'`)
        if (window.GLOB.debugger === true) {
          console.info(sql)
          window.mkInfo(sql)
        }
        sql = sql.replace(/%/ig, ' mpercent ')
@@ -1011,7 +1011,7 @@
      param.LText = param.LText.replace(/@BID@/ig, `'${this.props.BID || ''}'`)
      if (window.GLOB.debugger) {
        console.info(param.LText)
        window.mkInfo(param.LText)
      }
      if (window.GLOB.execType === 'x') {
src/tabviews/zshare/mutilform/mkPopSelect/index.jsx
@@ -164,8 +164,8 @@
    // 测试系统打印查询语句
    if (window.GLOB.debugger === true) {
      console.info(`/*${config.label} 数据源*/\n` + sql.replace(/\n\s{6}/ig, '\n'))
      DateCount && console.info(`/*${config.label} 总数查询*/\n` + DateCount.replace(/\n\s{6}/ig, '\n'))
      window.mkInfo(`/*${config.label} 数据源*/\n` + sql.replace(/\n\s{6}/ig, '\n'))
      DateCount && window.mkInfo(`/*${config.label} 总数查询*/\n` + DateCount.replace(/\n\s{6}/ig, '\n'))
    }
    param.LText = Utils.formatOptions(sql, param.exec_type)
src/tabviews/zshare/topSearch/index.jsx
@@ -203,7 +203,7 @@
            let _sql = _option.sql.replace(/@BID@/ig, `'${BID || ''}'`)
  
            if (window.GLOB.debugger === true) {
              console.info(_declare + _sql)
              window.mkInfo(_declare + _sql)
            }
  
            // 测试系统单个请求
@@ -342,7 +342,7 @@
        let sql = item.sql.replace(/@BID@/ig, `'${BID || ''}'`)
  
        if (window.GLOB.debugger === true) {
          console.info(sql)
          window.mkInfo(sql)
        }
        deForms.push({
src/utils/utils-datamanage.js
@@ -280,9 +280,9 @@
    // 测试系统打印查询语句
    if (window.GLOB.debugger === true) {
      _customScript && console.info(`${setting.$name ? `/*${setting.$name} 自定义脚本*/\n` : ''}${LText ? '' : '/*不执行默认sql*/\n'}${_customScript}`)
      LText && console.info(`${setting.$name ? `/*${setting.$name} 数据源*/\n` : ''}` + LText.replace(/\n\s{8}/ig, '\n'))
      DateCount && console.info(`${setting.$name ? `/*${setting.$name} 总数查询*/\n` : ''}` + DateCount.replace(/\n\s{8}/ig, '\n'))
      _customScript && window.mkInfo(`${setting.$name ? `/*${setting.$name} 自定义脚本*/\n` : ''}${LText ? '' : '/*不执行默认sql*/\n'}${_customScript}`)
      LText && window.mkInfo(`${setting.$name ? `/*${setting.$name} 数据源*/\n` : ''}` + LText.replace(/\n\s{8}/ig, '\n'))
      DateCount && window.mkInfo(`${setting.$name ? `/*${setting.$name} 总数查询*/\n` : ''}` + DateCount.replace(/\n\s{8}/ig, '\n'))
    }
    if (setting.$name) {
@@ -419,8 +419,8 @@
    // 测试系统打印查询语句
    if (window.GLOB.debugger === true) {
      _customScript &&  console.info(`${setting.$name ? `/*${setting.$name} 自定义脚本 统计查询*/\n` : ''}${LText ? '' : '/*不执行默认sql*/\n'}${_customScript}`)
      LText &&  console.info(`${setting.$name ? `/*${setting.$name} 数据源 统计查询*/\n` : ''}` + LText.replace(/\n\s{8}/ig, '\n'))
      _customScript && window.mkInfo(`${setting.$name ? `/*${setting.$name} 自定义脚本 统计查询*/\n` : ''}${LText ? '' : '/*不执行默认sql*/\n'}${_customScript}`)
      LText && window.mkInfo(`${setting.$name ? `/*${setting.$name} 数据源 统计查询*/\n` : ''}` + LText.replace(/\n\s{8}/ig, '\n'))
    }
    if (setting.$name) {
@@ -606,8 +606,8 @@
    // 测试系统打印查询语句
    if (window.GLOB.debugger === true) {
      _script && console.info(`${item.$name ? `/*${item.$name} 自定义脚本(同步查询)*/\n` : ''}${_sql ? '' : '/*不执行默认sql*/\n'}${_script}`)
      _sql && console.info(`${item.$name ? `/*${item.$name} 数据源(同步查询)*/\n` : ''}` + _sql)
      _script && window.mkInfo(`${item.$name ? `/*${item.$name} 自定义脚本(同步查询)*/\n` : ''}${_sql ? '' : '/*不执行默认sql*/\n'}${_script}`)
      _sql && window.mkInfo(`${item.$name ? `/*${item.$name} 数据源(同步查询)*/\n` : ''}` + _sql)
    }
    item.columns.forEach(cell => {
src/utils/utils.js
@@ -1340,8 +1340,8 @@
    sql = sql.replace(/\n\s{6}/ig, '\n')
    if (window.GLOB.debugger === true) {
      console.info('%c' + item.logLabel, 'color: blue')
      console.info(sql)
      window.mkInfo('%c' + item.logLabel, 'color: blue')
      window.mkInfo(sql)
    }
  } else {
    for(let i = 0; i < _Ltext.length; i += 20) {
@@ -1585,8 +1585,8 @@
    sql = sql.replace(/\n\s{6}/ig, '\n')
    if (window.GLOB.debugger === true) {
      console.info('%c' + btn.logLabel, 'color: blue')
      console.info(sql)
      window.mkInfo('%c' + btn.logLabel, 'color: blue')
      window.mkInfo(sql)
    }
  } else {
    for(let i = 0; i < _Ltext.length; i += 20) {
@@ -2701,8 +2701,8 @@
  }
  if (window.GLOB.debugger === true) {
    console.info('%c' + btn.logLabel, 'color: blue')
    console.info(_sql)
    window.mkInfo('%c' + btn.logLabel, 'color: blue')
    window.mkInfo(_sql)
  }
  if (retmsg) {
src/views/billprint/index.jsx
@@ -838,8 +838,8 @@
      // 测试系统打印查询语句
      if (window.GLOB.debugger === true) {
        _script && console.info(`${_sql ? '' : '/*不执行默认sql*/\n'}${_script}`)
        _sql &&  console.info(_sql)
        _script && window.mkInfo(`${_sql ? '' : '/*不执行默认sql*/\n'}${_script}`)
        _sql && window.mkInfo(_sql)
      }
      item.columns.forEach(cell => {
src/views/interface/workspace/request/index.jsx
@@ -226,8 +226,8 @@
    param.sign = md5(values)
    param.t = param.t || new Date().getTime()
    console.info(values)
    console.info(param.sign)
    window.mkInfo(values)
    window.mkInfo(param.sign)
    return param
  }