| | |
| | | let _param = { id: Id, tempId: btn.printTemp, pageId: btn.$MenuID || '', dataM: sessionStorage.getItem('dataM')} |
| | | let item = data[0] |
| | | |
| | | Object.keys(item).forEach(key => { |
| | | if (/^\$/.test(key)) return |
| | | if (typeof(item[key]) !== 'string' && typeof(item[key]) !== 'number') return |
| | | if (typeof(item[key]) === 'string' && item[key].length > 50) return |
| | | if (['id', 'tempid', 'pageid', 'datam'].includes(key.toLowerCase())) return |
| | | |
| | | _param[key.toLowerCase()] = item[key] |
| | | }) |
| | | if (item) { |
| | | Object.keys(item).forEach(key => { |
| | | if (/^\$/.test(key)) return |
| | | if (typeof(item[key]) !== 'string' && typeof(item[key]) !== 'number') return |
| | | if (typeof(item[key]) === 'string' && item[key].length > 50) return |
| | | if (['id', 'tempid', 'pageid', 'datam'].includes(key.toLowerCase())) return |
| | | |
| | | _param[key.toLowerCase()] = item[key] |
| | | }) |
| | | } |
| | | |
| | | window.open('#/billprint/' + window.btoa(window.encodeURIComponent(JSON.stringify(_param)))) |
| | | } |