king
2025-05-23 24842b40de5cd60700bf69dfd38a0332f5431e36
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
@@ -759,7 +759,7 @@
        content = `${record[col.field]}`
      }
      if (col.editType === 'select' && col.options.length > 0) {
      if (col.editType === 'select' && col.showValue !== 'value' && col.options.length > 0) {
        content = col.map.get(content) || content
      } else if (col.editType === 'switch') {
        if (content === col.openVal) {
@@ -1122,7 +1122,7 @@
          content = `${record[col.field]}`
        }
        if (col.editType === 'select' && col.options.length > 0) {
        if (col.editType === 'select' && col.showValue !== 'value' && col.options.length > 0) {
          content = col.map.get(content) || content
        } else if (col.editType === 'switch') {
          if (content === col.openVal) {
@@ -2138,8 +2138,8 @@
      delete result.status
      this.props.columns.forEach(item => {
        if (item.arr_field && result[item.arr_field]) {
          result[item.uuid] = result[item.arr_field]
        if (item.arr_field && result[item.field]) {
          result[item.uuid] = result[item.field]
        }
      })
@@ -2508,7 +2508,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
@@ -2544,7 +2544,7 @@
        this.execError({})
      })
    } else if (submit.intertype === 'system') { // 系统存储过程
      let result = getEditTableSql(submit, data, forms)
      let result = getEditTableSql(submit, data, forms, setting)
      let param = {}
      param.func = 'sPC_TableData_InUpDe'
@@ -2573,7 +2573,7 @@
        this.execError({})
      })
    } else if (submit.intertype === 'inner' && submit.innerFunc) { // 自定义存储过程
      let result = getEditTableSql(submit, data, forms)
      let result = getEditTableSql(submit, data, forms, setting)
      let param = {}
      param.func = submit.innerFunc
@@ -2628,7 +2628,11 @@
    let lines = data.map(item => {
      let vals = []
      forms.forEach(col => {
        vals.push(item[col.field])
        if (typeof(item[col.field]) === 'number') {
          vals.push(item[col.field] + '')
        } else {
          vals.push(item[col.field])
        }
      })
  
      vals.push(item.$$uuid)