备份:大改造前的完整版本 - 修复合同细节/付款节点/文件上传/施工管理/项目保存等BUG

This commit is contained in:
root
2026-05-15 12:02:24 +08:00
parent 1cad1e438d
commit fad28741bd
6157 changed files with 5147 additions and 877912 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ router.get('/', async (req, res) => {
res.json({ success: true, data: result.rows, count: result.rows.length });
} catch (error) {
console.error('获取付款节点失败:', error);
res.status(500).json({ success: false, message: '获取付款节点失败', error: error.message });
res.status(500).json({ success: false, message: '获取付款节点失败' });
}
});
@@ -29,7 +29,7 @@ router.post('/', authenticate, async (req, res) => {
);
res.json({ success: true, data: { id: (result.rows[0]?.id || result.rows?.[0]?.id) }, message: '付款节点创建成功' });
} catch (error) {
res.status(500).json({ success: false, message: '创建付款节点失败', error: error.message });
res.status(500).json({ success: false, message: '创建付款节点失败' });
}
});