fix: 修复分页和缓存相关bug
- 前端: 移除无限滚动,改为一次性加载全部数据 - 前端: monthly-records接口添加limit=1000参数 - 前端: 修复edit-modal.js中loadListData调用参数 - 后端: 修复stats.js中getCached函数Promise处理 - 后端: 修复records.js各接口正确传递limit参数 - 后端: 修复partner-records SQL参数数量问题 - 统一版本号强制浏览器刷新缓存 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
df3a9daa65
commit
9126348d1b
@@ -123,11 +123,13 @@ async function submitRecord() {
|
||||
const partner = document.getElementById('fPartner')?.value.trim() || '';
|
||||
if (currentCategory === '派单') {
|
||||
const rebate = parseFloat(document.getElementById('fRebate').value);
|
||||
if (!quantity || !unit_price || !rebate || !boss) { showToast('请填写完整信息'); return; }
|
||||
const partner = document.getElementById('fPartner')?.value.trim() || '';
|
||||
if (!quantity || !unit_price || !rebate || !boss || !partner) { showToast('请填写完整信息(包括负责打单的陪玩)'); return; }
|
||||
body.quantity = quantity;
|
||||
body.unit_price = unit_price;
|
||||
body.rebate = rebate;
|
||||
body.amount = quantity * rebate;
|
||||
body.partner = partner;
|
||||
} else {
|
||||
if (!quantity || !unit_price || !boss) { showToast('请填写完整信息'); return; }
|
||||
body.quantity = quantity;
|
||||
@@ -135,7 +137,6 @@ async function submitRecord() {
|
||||
body.amount = quantity * unit_price;
|
||||
}
|
||||
body.boss = boss;
|
||||
body.partner = partner;
|
||||
} else if (currentCategory === '红包收入' || currentCategory === '奶茶') {
|
||||
const amount = parseFloat(document.getElementById('fAmount').value);
|
||||
const source = document.getElementById('fSource').value.trim();
|
||||
|
||||
Reference in New Issue
Block a user