diff --git a/WebContent/static/js/lease/receiveDetails.js b/WebContent/static/js/lease/receiveDetails.js index 22ec101..d43f2c4 100644 --- a/WebContent/static/js/lease/receiveDetails.js +++ b/WebContent/static/js/lease/receiveDetails.js @@ -638,50 +638,58 @@ function backShowChenkStatus(){ /** * 导入模板下载功能 */ +// function templateDownload() { +// // 1. 校验领料时间(与新增/删除逻辑保持一致,非今日不允许下载) +// if (applyDate !== today) { +// layer.alert('领料时间不是今天,不允许下载导入模板', { +// skin: 'layui-layer-molv', +// closeBtn: 0 +// }); +// return; +// } +// +// // 2. 构造下载请求(携带必要参数:taskId,保证模板与当前任务关联) +// var taskId = localStorage.getItem("taskId"); +// var token = $("#token").val(); // 携带令牌,防止重复请求 +// var downloadUrl = bonuspath + '/backstage/receiveDetails/downloadTemplate'; +// +// // 3. 构造隐藏表单提交(解决GET请求参数暴露/大小限制问题,支持POST下载) +// var $form = $("