king
2023-09-08 54645f374259b84d3b970c95cb39e00cd45504a7
2023-09-08
2个文件已修改
37 ■■■■ 已修改文件
src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx
@@ -388,14 +388,23 @@
    const { verify } = this.state
    let _columns = JSON.parse(JSON.stringify(verify.columns))
    let _cols = _columns.map(col => col.Column.toLowerCase())
    let _names = {}
    let _cols = columns.map(item => {
      let key = item.Column.toLowerCase()
      _names[key] = item.Text
      return key
    })
    let names = {$up: false}
    columns.forEach(col => {
      if (!col.field) return
      if (_cols.includes(col.field.toLowerCase())) {
      let key = col.field.toLowerCase()
      if (_cols.includes(key)) {
        if (_names[key] !== col.label) {
        names.$up = true
        names[col.field.toLowerCase()] = col.label
          names[key] = col.label
        }
        return
      }
src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
@@ -600,14 +600,23 @@
    const { verify } = this.state
    let columns = fromJS(verify.columns).toJS()
    let fields = columns.map(item => item.Column.toLowerCase())
    let _names = {}
    let fields = columns.map(item => {
      let key = item.Column.toLowerCase()
      _names[key] = item.Text
      return key
    })
    let names = {$up: false}
    config.columns.forEach(item => {
      if (!item.field) return
      if (fields.includes(item.field.toLowerCase())) {
      let key = item.field.toLowerCase()
      if (fields.includes(key)) {
        if (_names[key] !== item.label) {
        names.$up = true
        names[item.field.toLowerCase()] = item.label
          names[key] = item.label
        }
        return
      }
@@ -633,9 +642,12 @@
    if (config.subtype === 'dualdatacard') {
      config.subColumns.forEach(item => {
        if (!item.field) return
        if (fields.includes(item.field.toLowerCase())) {
        let key = item.field.toLowerCase()
        if (fields.includes(key)) {
          if (_names[key] !== item.label) {
          names.$up = true
          names[item.field.toLowerCase()] = item.label
            names[key] = item.label
          }
          return
        }