Commit 5c790614 by 蒋勇

d

parent bbab457a
...@@ -40,10 +40,11 @@ async readxls(path) { ...@@ -40,10 +40,11 @@ async readxls(path) {
var pv=this.cacheData.pop(); var pv=this.cacheData.pop();
if(pv){ if(pv){
var tohandleurls=pv.split("~"); var tohandleurls=pv.split("~");
var bid=tohandleurls[0]; var rptid=tohandleurls[0];
var rptDate=tohandleurls[1]; var bid=tohandleurls[1];
var rptCode=tohandleurls[2]; var rptDate=tohandleurls[2];
var urldownload=tohandleurls[3]; var rptCode=tohandleurls[3];
var urldownload=tohandleurls[4];
//下载文件 //下载文件
var keyindex=urldownload.lastIndexOf("/"); var keyindex=urldownload.lastIndexOf("/");
var keystr=urldownload.substring(keyindex+1); var keystr=urldownload.substring(keyindex+1);
...@@ -54,6 +55,7 @@ async readxls(path) { ...@@ -54,6 +55,7 @@ async readxls(path) {
var rows=await parserByCode(wb); var rows=await parserByCode(wb);
console.log(JSON.stringify(rows)); console.log(JSON.stringify(rows));
this.apiCallWithAk("http://localhost:3003/api/rpt/rptApi/saveRptHistory",{ this.apiCallWithAk("http://localhost:3003/api/rpt/rptApi/saveRptHistory",{
rptid:rptid,
batchid:bid, batchid:bid,
rptdate:rptDate, rptdate:rptDate,
rptcode:rptCode, rptcode:rptCode,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment