king
2022-10-18 a8507cc8c42d17d4fb854594dbf1e084d61912ac
src/views/billprint/index.jsx
@@ -327,9 +327,9 @@
          component.setting.customScript = _customScript // 整理后自定义脚本
    
          // floor    组件的层级
          // dataName 系统生成的数据源名称
          // pageable 是否分页,组件属性,不分页的组件才可以统一查询
          if (component.dataName && component.setting.sync === 'true') {
          if (component.setting.sync === 'true') {
            component.dataName = Utils.getdataName()
            let param = this.getDefaultParam(component)
            _pars.push(param)
          } else {
@@ -426,7 +426,6 @@
      foreign_key: '',
      sql: _dataresource,
      script: _customScript,
      transaction: setting.transaction === 'true'
    }
  }
@@ -435,7 +434,6 @@
    if (!params || params.length === 0) return ''
    let LText_field = []
    let transaction = false
    let userName = sessionStorage.getItem('User_Name') || ''
    let fullName = sessionStorage.getItem('Full_Name') || ''
@@ -464,9 +462,6 @@
          ${_script}
        `
      }
      if (item.transaction) {
        transaction = true
      }
      item.columns.forEach(cell => {
        LText_field.push(`Select '${item.name}' as tablename,'${cell.field}' as fieldname,'${cell.datatype}' as field_type`)
@@ -479,10 +474,6 @@
      LText: LText.join(' union all '),
      LText_field: LText_field.join(' union all '),
      BID: BID || ''
    }
    if (transaction) {
      param.func = 'sPC_Get_structured_data_try'
    }
    param.LText = Utils.formatOptions(param.LText)