fix issues

This commit is contained in:
2026-07-22 17:59:21 +08:00
parent b7605fcf34
commit 17385335fd
3 changed files with 15 additions and 3 deletions

View File

@@ -175,7 +175,7 @@ function handleAIResult(aiResult, roomId, username, originalText, attachments) {
const id = uuidv4();
const paymentMethod = aiResult.payment_method || (aiResult.method === '淘宝' ? '支付宝' : (aiResult.method || '未指定'));
const invoiceType = aiResult.invoice_type || '无票';
const status = aiResult.status || '待处理';
const status = aiResult.status || '待付款';
const applicant = aiResult.applicant || username;
const remarks = aiResult.remarks || '';
db.prepare('INSERT INTO purchases (id, room_id, item, quantity, unit_price, amount, freight, payment_method, invoice_type, status, applicant, remarks, created_at) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)').run(