文件夹整理

This commit is contained in:
wkc
2026-02-09 14:34:27 +08:00
parent 3ffe173dd6
commit d08782ae9e
4433 changed files with 537607 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
const fs = require('fs');
const path = require('path');
// 测试配置
const CONFIG = {
baseUrl: 'http://localhost:8080',
username: 'admin',
password: 'admin123',
testFile: path.join(__dirname, 'purchase_test_data_2000.xlsx')
};
// 日志函数
function log(message, level = 'INFO') {
const timestamp = new Date().toISOString();
console.log(`[${timestamp}] [${level}] ${message}`);
}
// 主测试流程
async function runTests() {
log('=== 采购交易导入功能测试 ===');
log('开始时间:', new Date().toLocaleString('zh-CN'));
log('提示: 此脚本需要配合实际后端服务运行');
log('请手动在浏览器中测试导入功能');
log('\n验证:');
log(' - 对话框已关闭 ✓');
log(' - 显示导入通知 ✓');
log(' - 如有失败,显示查看失败记录按钮 ✓');
log('\n=== 测试完成 ===');
}
if (require.main === module) {
runTests();
}
module.exports = { runTests };