king
2022-12-22 7044ff5fdc8f41dff0c2d4b880fe91d907ff53ff
src/tabviews/zshare/actionList/printbutton/index.jsx
@@ -330,6 +330,13 @@
            // 系统打印数据,校验data字段
            if (!cell.data || cell.data.length === 0) return
            Object.keys(cell).forEach(key => {
              let _key = key.toLowerCase()
              if (['templateid', 'printtype', 'printcount'].includes(_key)) {
                cell[_key] = cell[key]
              }
            })
            cell.data.forEach(item => {
              let _item = {...formdata}
@@ -923,16 +930,7 @@
              }
            })
            if (!errorMsg) {
              resolve({next: true, list: result.map(res => {
                Object.keys(res).forEach(key => {
                  let _key = key.toLowerCase()
                  if (['templateid', 'printtype', 'printcount'].includes(_key)) {
                    res[_key] = res[key]
                  }
                })
                return res
              })})
              resolve({next: true, list: result})
            } else {
              this.execError(errorMsg)
              resolve({next: false, list: []})
@@ -1270,13 +1268,6 @@
        return Api.genericInterface(_callbackparam)
      } else if (response.status) {
        Object.keys(response).forEach(key => {
          let _key = key.toLowerCase()
          if (['templateid', 'printtype', 'printcount'].includes(_key)) {
            response[_key] = response[key]
          }
        })
        _list.push(response)
        // 一次请求成功,进行下一项请求
@@ -1293,13 +1284,6 @@
      if (!response) return
      if (response.status) {
        Object.keys(response).forEach(key => {
          let _key = key.toLowerCase()
          if (['templateid', 'printtype', 'printcount'].includes(_key)) {
            response[_key] = response[key]
          }
        })
        _list.push(response)
        // 一次请求成功,进行下一项请求
@@ -1323,12 +1307,6 @@
    Api.genericInterface(param).then(res => {
      if (res.status) {
        Object.keys(res).forEach(key => {
          let _key = key.toLowerCase()
          if (['templateid', 'printtype', 'printcount'].includes(_key)) {
            res[_key] = res[key]
          }
        })
        _list.push(res)
        if (params.length === 0) {