中扬CRM客户关系管理系统
#
Junjie
2023-09-08 479856d9964ebe0cf39e182dd0035a42e4a80c9c
src/main/webapp/views/priQuote/priQuote_detail.html
@@ -27,7 +27,7 @@
  <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>
@@ -49,11 +49,10 @@
      //新增
      $.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()
@@ -130,7 +129,8 @@
          data: JSON.stringify({
            title: luckysheet.toJson().title,
            sheetData: zip(luckysheet.getAllSheets()),
            priQuoteBudgetId: getUrlParams('priQuoteBudgetId')
            priQuoteBudgetId: getUrlParams('priQuoteBudgetId'),
            template: getUrlParams('template')
          }),
          method: 'POST',
          dataType: "json",
@@ -206,7 +206,8 @@
        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",