From 7badaae4a6cae3bec8f23881d297f8f5d806b506 Mon Sep 17 00:00:00 2001 From: Cheney Date: Thu, 12 Dec 2024 21:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B7=AF=E5=BE=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/team.js | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) 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);