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/static/js/priOnline/priOnline.js | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/static/js/priOnline/priOnline.js b/src/main/webapp/static/js/priOnline/priOnline.js index abc3432..8a2c1cc 100644 --- a/src/main/webapp/static/js/priOnline/priOnline.js +++ b/src/main/webapp/static/js/priOnline/priOnline.js @@ -248,16 +248,23 @@ return; } + let formData = new FormData($("#uploadFile")[0]); + formData.append("id", data.id); + formData.append("checkData", zip(exportJson.sheets)); $.ajax({ url: baseUrl+"/priOnline/uploadCheck/auth", headers: {'token': localStorage.getItem('token')}, - data: JSON.stringify({ - id: data.id, - checkData: zip(exportJson.sheets) - }), + data: formData, + // data: JSON.stringify({ + // id: data.id, + // checkData: zip(exportJson.sheets) + // }), + // dataType: "json", method: 'POST', - dataType: "json", - contentType:'application/json;charset=UTF-8', + cache: false, + processData: false, + contentType: false, + // contentType:'application/json;charset=UTF-8', success: function (res) { if (res.code == 200) { layer.msg('涓婁紶鎴愬姛',{time:1000},() => { -- Gitblit v1.9.1