Commit 8159666a by 蒋勇

d

parent 0ad6f8f2
......@@ -59,19 +59,26 @@ async readxls(path) {
var keystr=urldownload.substring(keyindex+1);
var result= await this.ossC.downfile(keystr);
var localpath="/tmp/"+keystr;
var wb= await this.readxls(localpath);
try{
var wb= await this.readxls(localpath);
}catch(e){
console.log(localpath,'下载文件不存在...........................')
console.log(e)
}
console.log("//////////////////////////68................")
//是否解析excell中的报表
var toparsedate={isparsedate:false,rptDate:'notparse',fp:urldownload};
var ind=rptCode.lastIndexOf("_");
var parsefunc=rptCode;
if(ind>=0){
var st2=rptCode.substring(ind+1);
console.log("//////////////////////////74................")
if(st2=="N"){//是非必传的文件
parsefunc=rptCode.substring(0,ind);
toparsedate.isparsedate=true;
}
}
console.log("//////////////////////////79................")
var parserByCode=null;
if(parsefunc=="ITY"){//年报所得税7个sheet
//里面存在7个sheet,构造7个sheet history data
......
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