diff --git a/src/team.js b/src/team.js index f90d86b..003197d 100644 --- a/src/team.js +++ b/src/team.js @@ -2,6 +2,20 @@ const XLSX = require('xlsx'); + + +if ( process.argv.length < 3 ) { + console.log("没有传递目录") + process.exit(-1) +} + + + +let path = process.argv[2] +console.log("工作于 " + path) + + + const workbook4 = (function () { const workbook = XLSX.readFile(path + '../金额.xlsx'); const worksheet = workbook.Sheets[workbook.SheetNames[0]]; @@ -13,17 +27,6 @@ const workbook4 = (function () { return map; })() - - -if ( process.argv.length < 3 ) { - console.log("没有传递目录") - process.exit(-1) -} - -let path = process.argv[2] -console.log("工作于 " + path) - - const workbook = XLSX.readFile(path + '/1.团队开票申请表-12.4.xlsx'); const worksheet = workbook.Sheets[workbook.SheetNames[0]]; const jsonData = XLSX.utils.sheet_to_json(worksheet);