feat: 完善采购申请流程 - 添加审批、执行、列表筛选排序功能

This commit is contained in:
System Administrator
2026-03-28 00:34:32 +07:00
parent 841f19e3f8
commit d437580500
306 changed files with 42669 additions and 27143 deletions
@@ -49,7 +49,7 @@ async function testPurchaseFlow() {
'Content-Type': 'application/json'
}
}, {
project_id: 1,
project_id: 3,
applicant: '测试申请人',
request_date: '2026-03-25',
expense_category: 'material',
@@ -171,7 +171,7 @@ async function testInventoryFlow() {
}
// 3. 创建出库记录
console.log('\n3. 创建出库记录...');
console.log('3. 创建出库记录...');
const outResponse = await request({
hostname: 'localhost',
port: 3005,
@@ -181,7 +181,7 @@ async function testInventoryFlow() {
'Content-Type': 'application/json'
}
}, {
project_id: 1,
project_id: 3,
product_id: 1,
quantity: 10,
operator: '测试操作员'
@@ -204,7 +204,7 @@ async function testCostStatistics() {
const costResponse = await request({
hostname: 'localhost',
port: 3005,
path: '/api/projects/1/cost-summary',
path: '/api/projects/3/cost-summary',
method: 'GET'
});
console.log('获取项目成本统计响应:', costResponse.status, costResponse.body);