king
2022-04-25 9e716f3bd30820a08757845b592db73363faa48c
src/views/billprint/index.jsx
@@ -142,6 +142,8 @@
      MenuID: tempId
    }
    window.GLOB.dataFormat = false // 打印去除水印
    if (window.GLOB.mainSystemApi) { // 从单点登录服务器取打印配置信息
      _param.rduri = window.GLOB.mainSystemApi
    }
@@ -248,6 +250,21 @@
          if (component.search) component.search = []
          component.data = [] // 初始化数据为空
          if (component.type === 'table' && component.subtype === 'normaltable') {
            let getColumns = (cols) => {
              return cols.map(item => {
                if (item.type === 'colspan') {
                  item.subcols = getColumns(item.subcols)
                } else {
                  item.IsSort = 'false'
                }
                return item
              })
            }
            component.cols = getColumns(component.cols)
          }
          if (component.wrap.datatype === 'static') {
            component.format = ''
          }