king
2020-03-19 e6a6fb8d27b14581ae771325c1b99ee26d6618dd
src/tabviews/zshare/actionList/index.jsx
@@ -675,6 +675,26 @@
  }
  execPrint = (item, list, template) => {
    let _documents = []
    Object.keys(template).forEach(key => {
      let _data = list.filter(cell => cell.TemplateID === key)
      if (_data.length > 0) {
        let _cell = {
          documentID: Utils.getuuid(),
          contents: [
            {
              data: _data,
              templateURL: JSON.stringify(template[key])
            }
          ]
        }
        _documents.push(_cell)
      }
    })
    let printdata = {
      cmd: 'print',
      requestID: '',
@@ -683,17 +703,7 @@
        taskID: Utils.getuuid(),
        preview: false,
        printer: item.printer,
        documents: list.map(cell => {
          return {
            documentID: Utils.getuuid(),
            contents: [
              {
                data: cell,
                templateURL: JSON.stringify(template[cell.TemplateID])
              }
            ]
          }
        })
        documents: _documents
      }
    }