完善订单审批、每日对账与信用卡手续费

加入助理订单变更复核、收款人汇总、每日报销和应转金额;优化库存筛选、订单明细与连续浏览。开单身份必填,信用卡手续费按实收4‰自动计算并默认由麦麦承担,打印优惠显示在人民币大写旁。

验证:484项测试通过;独立HTTP与浏览器覆盖普通订单、锁价、修改审批、断线恢复和打印隔离。旧报表兼容,本机升级原29表295行数据保持一致。
This commit is contained in:
summer committed 2026-10-23 09:49:36 +08:00
1 parent 27a11e9b35
commit a506fb1228
68 files changed
+3591 -259

No files matched your search

@@ -36,7 +36,7 @@ function orderCancellationPending(order){return currentOrderCancellation(order)?
function orderCancellationApproved(order){return order.cancellationApproved||currentOrderCancellation(order)?.data?.requests.find(request=>request.status==='approved')||null;}
function orderCancellationActionHTML(order){
const entry=currentOrderCancellation(order),data=entry?.data;
if(order.price_lock_id||!['draft','confirmed','delivered'].includes(order.status)||orderCancellationPending(order)||!data?.eligible)return '';
if(order.price_lock_id||!['draft','confirmed','delivered'].includes(order.status)||orderCancellationPending(order)||(typeof orderChangePending==='function'?orderChangePending(order):order.changePending)||!data?.eligible)return '';
return button('申请取消','request-order-cancellation','danger',`data-id="${e(order.id)}"`);
}
function orderCancellationHistoryHTML(request){
@@ -60,6 +60,7 @@ function requireOrderCancellationDetail(){
const order=currentOrder,entry=currentOrderCancellation(order);
if(!order||!entry?.data||entry.error)throw new Error('请重新读取订单并核对取消申请。');
if(order.price_lock_id)throw new Error('锁价单暂不支持取消。');
if(typeof orderChangePending==='function'?orderChangePending(order):order.changePending)throw new Error('修改申请待麦麦复核,请复核完成后再申请取消。');
return {order,entry,data:entry.data};
}
function showOrderCancellationForm(kind){