From c8ec928e26cdf8efc51a576547ebcfbe3cb71f6d Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期四, 16 三月 2023 16:28:24 +0800
Subject: [PATCH] 新增核价管理-上传询价后可进行下载功能
---
src/main/webapp/views/priOnline/priOnline_check.html | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/views/priOnline/priOnline_check.html b/src/main/webapp/views/priOnline/priOnline_check.html
index 6b15b5a..69c7596 100644
--- a/src/main/webapp/views/priOnline/priOnline_check.html
+++ b/src/main/webapp/views/priOnline/priOnline_check.html
@@ -26,6 +26,7 @@
<!-- <div><button type="button" 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>
<div id="luckysheet" style="margin:0px;padding:0px;position:absolute;width:100%;height: 100vh;left: 0px;top: 0px;"></div>
<script>
@@ -43,6 +44,8 @@
myFolderUrl: '' //宸︿笂瑙�<杩斿洖鎸夐挳鐨勯摼鎺�
}
+ let checkDataFile = "";
+
if(getUrlParams('id') == false || getUrlParams('id') == undefined){
//鏂板
luckysheet.create(options)
@@ -58,6 +61,7 @@
headers: {'token': localStorage.getItem('token')},
success:function(res) {
if (res.code == 200) {
+ checkDataFile = res.data.checkDataFile
options.data = unzip(res.data.checkData)
luckysheet.create(options)
$("#luckysheet_info_detail_update").hide()
@@ -130,6 +134,10 @@
}
})
+ $("#download").on("click",() => {
+ window.open(baseUrl + "/priOnline/checkDataDownload/" +checkDataFile)
+ })
+
})
$("#allprint").on("click",() => {
--
Gitblit v1.9.1