king
2023-08-11 fbe91f6f07f6296bbf6c30029c7f36014fe66e79
2023-08-11
9个文件已修改
77 ■■■■ 已修改文件
src/api/index.js 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/basetable/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/commontable/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/subtabtable/index.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/changeuserbutton/index.jsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/newpagebutton/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/popupbutton/index.jsx 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/printbutton/index.jsx 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js
@@ -61,7 +61,7 @@
}, (error) => {
  let response = error.response || ''
  if (response && (!response.data || !response.data.errors)) { // 过滤旷视报错信息
  if (response && response.status) {
    notification.error({
      className: 'notification-custom-error',
      bottom: 0,
@@ -507,18 +507,18 @@
    param.LoginUID = param.LoginUID || sessionStorage.getItem('LoginUID') || ''
    param.appkey = param.appkey || window.GLOB.appkey
    let url = '/webapi/dostars'
    if (window.GLOB.mkHS && options.cloudServiceApi) { // HS下,且存在云端地址
      url = options.cloudServiceApi
      param.userid = sessionStorage.getItem('CloudUserID') || ''
      param.LoginUID = sessionStorage.getItem('CloudLoginUID') || ''
    } else if (window.GLOB.mainSystemApi) {
      if (!window.GLOB.transfer) {
        url = window.GLOB.mainSystemApi
      } else {
        param.rduri = window.GLOB.mainSystemApi
      }
    }
    let url = '/webapi/dostarst'
    // if (window.GLOB.mkHS && options.cloudServiceApi) { // HS下,且存在云端地址
    //   url = options.cloudServiceApi
    //   param.userid = sessionStorage.getItem('CloudUserID') || ''
    //   param.LoginUID = sessionStorage.getItem('CloudLoginUID') || ''
    // } else if (window.GLOB.mainSystemApi) {
    //   if (!window.GLOB.transfer) {
    //     url = window.GLOB.mainSystemApi
    //   } else {
    //     param.rduri = window.GLOB.mainSystemApi
    //   }
    // }
    param = this.encryptParam(param)
src/tabviews/basetable/index.jsx
@@ -428,6 +428,7 @@
          if (cell.hidden === 'true') return false
          cell.logLabel = item.$menuname + '-' + cell.label
          cell.Ot = cell.Ot || 'requiredSgl'
          cell.ContainerId = this.state.ContainerId
          cell.syncComponentId = cell.syncComponent ? (cell.syncComponent.pop() || '') : ''
          cell.$menuId = item.uuid
src/tabviews/commontable/index.jsx
@@ -114,7 +114,7 @@
      }
      
      // HS不使用自定义设置
      if (result.LongParamUser && !window.GLOB.mkHS) {
      if (result.LongParamUser) {
        try { // 配置信息解析
          let userConfig = JSON.parse(window.decodeURIComponent(window.atob(result.LongParamUser)))
          if (userConfig && !userConfig.version) {
src/tabviews/subtabtable/index.jsx
@@ -199,6 +199,8 @@
        item.$menuId = this.props.MenuID
        item.$old = true
        if (item.OpenType === 'popview') return
        if (item.controlField) {
          if (/,/ig.test(item.controlVal)) {
            item.controlVals = item.controlVal.split(',')
src/tabviews/zshare/actionList/changeuserbutton/index.jsx
@@ -130,14 +130,6 @@
        duration: 5
      })
      return
    } else if (!setting.primaryKey) {
      // 需要选择行时,校验是否设置主键
      notification.warning({
        top: 92,
        message: '未设置主键!',
        duration: 5
      })
      return
    }
    let primaryId = data[0][setting.primaryKey] || ''
src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -112,7 +112,7 @@
    let data = record || selectedData || []
    if (btn.Ot && btn.Ot !== 'notRequired' && data.length === 0) {
    if (btn.Ot !== 'notRequired' && data.length === 0) {
      // 需要选择行时,校验数据
      notification.warning({
        top: 92,
@@ -152,13 +152,13 @@
    if (btn.pageTemplate === 'billprint') {
      _name = '单据打印'
      if (btn.Ot === 'required' && data && data.length > 0) {
        data.forEach((item, i) => {
      if (btn.Ot === 'required') {
        data.forEach(item => {
          let _id = item.$$uuid || ''
          let url = '#/billprint/' + window.btoa(window.encodeURIComponent(JSON.stringify({ id: _id, tempId: btn.printTemp, dataM: sessionStorage.getItem('dataM') })))
          window.open(url)
        })
      } else if (btn.Ot === 'requiredOnce' && data && data.length > 0) {
      } else if (btn.Ot === 'requiredOnce') {
        Id = data.map(item => item.$$uuid).filter(Boolean).join(',')
        window.open('#/billprint/' + window.btoa(window.encodeURIComponent(JSON.stringify({ id: Id, tempId: btn.printTemp, dataM: sessionStorage.getItem('dataM') }))))
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -269,14 +269,6 @@
        duration: 5
      })
      return
    } else if (!['requiredSgl', 'notRequired', 'requiredOnce', 'required'].includes(btn.Ot)) {
      // 数据选择类型校验
      notification.warning({
        top: 92,
        message: '按钮行设置错误!',
        duration: 5
      })
      return
    } else if (btn.intertype === 'system') {
      // 使用内部接口时,操作类型和数据源不可为空
      if (!btn.sql || !btn.sqlType) {
src/tabviews/zshare/actionList/popupbutton/index.jsx
@@ -169,13 +169,6 @@
        duration: 5
      })
      return
    } else if (setting.tabType === 'subtab') {
      notification.warning({
        top: 92,
        message: '弹窗页面不支持此设置!',
        duration: 5
      })
      return
    }
    let _data = null
src/tabviews/zshare/actionList/printbutton/index.jsx
@@ -170,10 +170,6 @@
        duration: 5
      })
      return
    } else if (!['requiredSgl', 'notRequired', 'requiredOnce', 'required'].includes(btn.Ot)) {
      // 数据选择类型校验
      this.actionSettingError()
      return
    } else if (!btn.verify || !btn.verify.printMode) {
      notification.warning({
        top: 92,
@@ -1960,17 +1956,6 @@
    if (btn.execError !== 'never') {
      MKEmitter.emit('refreshByButtonResult', btn.$menuId, btn.execError, btn, '', this.state.selines)
    }
  }
  /**
   * @description 按钮配置信息错误提示
   */
  actionSettingError = () => {
    notification.warning({
      top: 92,
      message: '按钮设置错误!',
      duration: 5
    })
  }
  handleModelConfig = (config) => {