|  |  |  | 
|---|
|  |  |  | case "upload": | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | type:"get", | 
|---|
|  |  |  | url: "/priOnline/viewCheck/" + data.id + "/auth", | 
|---|
|  |  |  | url: baseUrl+"/priOnline/viewCheck/" + data.id + "/auth", | 
|---|
|  |  |  | dataType:"json", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | success:function(res) { | 
|---|
|  |  |  | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | let formData = new FormData($("#uploadFile")[0]); | 
|---|
|  |  |  | formData.append("id", data.id); | 
|---|
|  |  |  | formData.append("checkData", zip(exportJson.sheets)); | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | url: "/priOnline/uploadCheck/auth", | 
|---|
|  |  |  | 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},() => { | 
|---|
|  |  |  | 
|---|
|  |  |  | //查看询价 | 
|---|
|  |  |  | $.ajax({ | 
|---|
|  |  |  | type:"get", | 
|---|
|  |  |  | url: "/priOnline/viewCheck/" + data.id + "/auth", | 
|---|
|  |  |  | url: baseUrl+"/priOnline/viewCheck/" + data.id + "/auth", | 
|---|
|  |  |  | dataType:"json", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | success:function(res) { | 
|---|