king
2023-11-03 eb0482b3fc2e91a626baa6ac73e75e0b0038f552
src/utils/utils.js
@@ -979,7 +979,11 @@
          })
        }
      } else if (/^Decimal/ig.test(col.type) || /^int/ig.test(col.type)) {
        if (!val && val !== 0) {
        if (col.required === 'false') {
          if (!val || isNaN(val)) {
            val = 0
          }
        } else if (!val && val !== 0) {
          errors.push(_position + '内容不可为空')
        } else if (isNaN(val)) {                                  // 检验是否为数值
          errors.push(_position + '内容应为数值')
@@ -2399,7 +2403,7 @@
 * @description 获取标记信息
 */
export function getMark (marks, record, style) {
  let res = {}
  let res = {signType: ''}
  marks.some(mark => {
    let originVal = record[mark.field[0]]