| | |
| | | <div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="otherSave">另存为</button></div> |
| | | <div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="allprint">全部打印</button></div> |
| | | <div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="print">选区打印</button></div> |
| | | <div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="download">下载</button></div> |
| | | <!-- <div><button type="button" class="layui-btn layui-btn-primary layui-btn-xs btn-edit" id="download">下载</button></div>--> |
| | | </div> |
| | | <div id="luckysheet" style="margin:0px;padding:0px;position:absolute;width:100%;height: 100vh;left: 0px;top: 0px;"></div> |
| | | <script> |
| | |
| | | //新增 |
| | | $.ajax({ |
| | | type:"get", |
| | | url: baseUrl + "/static/js/priQuote/data.txt", |
| | | dataType:"text", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | success:function(res) { |
| | | options.data = unzip(res) |
| | | url: baseUrl + "/static/js/priQuote/data" + getUrlParams('template') + ".txt", |
| | | success:function(sheetData) { |
| | | options.data = unzip(sheetData) |
| | | // options.title = getUrlParams('name') |
| | | luckysheet.create(options) |
| | | $("#luckysheet_info_detail_update").hide() |
| | | $("#luckysheet_info_detail_save").hide() |
| | |
| | | data: JSON.stringify({ |
| | | title: luckysheet.toJson().title, |
| | | sheetData: zip(luckysheet.getAllSheets()), |
| | | priQuoteBudgetId: getUrlParams('priQuoteBudgetId') |
| | | priQuoteBudgetId: getUrlParams('priQuoteBudgetId'), |
| | | template: getUrlParams('template') |
| | | }), |
| | | method: 'POST', |
| | | dataType: "json", |
| | |
| | | url: baseUrl + "/priQuote/excel/downfile", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify({ |
| | | exceldata: JSON.stringify(luckysheet.getAllSheets()) |
| | | exceldata: JSON.stringify(luckysheet.getAllSheets()), |
| | | template: getUrlParams('template') |
| | | }), |
| | | method: 'POST', |
| | | dataType: "json", |