开放团队共享库存流水,保留订单和修改审批权限

This commit is contained in:
summer committed 2026-10-31 13:53:59 +08:00
1 parent 7d894ea449
commit 49b7018f21
10 files changed
+65 -20

No files matched your search

@@ -30,6 +30,7 @@ function inventoryMovementActionsHTML(row){
if(row.reversal||row.kind==='manual_reversal')return '';
const manual=row.manual===true&&!row.order_id,editable=manual&&row.current!==false&&row.status!=='deleted';
if(manual&&row.pendingRequestId)return button('待审批 · 查看','inventory-change-open-request','quiet',`data-id="${e(row.pendingRequestId)}"`);
if(manual&&row.pendingApproval)return '<span class="badge warn">待麦麦审批</span>';
const actions=editable?`${row.canEdit===true?button('修改','inventory-change-edit','quiet',`data-id="${e(row.id)}"`):''}${row.canDelete===true?button('删除','inventory-change-delete','danger',`data-id="${e(row.id)}"`):''}`:'';
return actions?`<div class="actions inventory-movement-actions">${actions}</div>`:!manual?'<span class="small muted">随原业务记录保留</span>':'<span class="small muted">—</span>';
}