king
2023-10-01 2a509ef4898fc1e02b00af988fb592e6d9abcf81
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -448,8 +448,6 @@
    
    let imgCol = false
    let columns = btn.verify.columns.filter(col => {
      if (col.output === 'false') return false
      if (col.type === 'image') {
        imgCol = true
      }
@@ -464,6 +462,7 @@
    if (data && data[0]) {
      let errors = []
      columns.forEach(col => {
        if (col.output === 'false') return
        if (col.Column && data[0][col.Column] === undefined) {
          errors.push(col.Text)
        }
@@ -509,7 +508,13 @@
  
          columns.forEach((col, i) => {
            let val = item[col.Column]
            if (col.type === 'number' && typeof(val) === 'number') {
            if (col.output === 'false') {
              if (col.type === 'number') {
                val = 0
              } else {
                val = ''
              }
            } else if (col.type === 'number' && typeof(val) === 'number') {
              if (col.abs === 'true') {
                val = Math.abs(val)
              }
@@ -594,7 +599,13 @@
          columns.forEach((col, i) => {
            let val = item[col.Column]
            if (col.type === 'number' && typeof(val) === 'number') {
            if (col.output === 'false') {
              if (col.type === 'number') {
                val = 0
              } else {
                val = ''
              }
            } else if (col.type === 'number' && typeof(val) === 'number') {
              if (col.abs === 'true') {
                val = Math.abs(val)
              }