Update: 2026-05-05 01:23:49
This commit is contained in:
@@ -1950,6 +1950,25 @@
|
|||||||
<button @click="showViewModal = false" class="modal-close-btn">✕</button>
|
<button @click="showViewModal = false" class="modal-close-btn">✕</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Validation Warnings Banner -->
|
||||||
|
<div x-show="currentInvoice?.validation_warnings?.length > 0"
|
||||||
|
style="background:#fffbeb; border-bottom:1px solid #fde68a; padding:12px 16px;">
|
||||||
|
<div style="display:flex; gap:10px; align-items:flex-start;">
|
||||||
|
<span style="font-size:18px;">⚠️</span>
|
||||||
|
<div>
|
||||||
|
<div style="font-weight:700; color:#92400e; font-size:13px; margin-bottom:4px;">تنبيهات المدقق الذكي:</div>
|
||||||
|
<ul style="margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:4px;">
|
||||||
|
<template x-for="w in currentInvoice.validation_warnings">
|
||||||
|
<li style="font-size:12px; color:#b45309; display:flex; gap:6px;">
|
||||||
|
<span>•</span>
|
||||||
|
<span x-text="w"></span>
|
||||||
|
</li>
|
||||||
|
</template>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Fields -->
|
<!-- Fields -->
|
||||||
<div style="flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px;">
|
<div style="flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px;">
|
||||||
|
|
||||||
@@ -2026,8 +2045,18 @@
|
|||||||
<!-- Actions -->
|
<!-- Actions -->
|
||||||
<div
|
<div
|
||||||
style="padding:14px 16px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:8px;">
|
style="padding:14px 16px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:8px;">
|
||||||
|
<!-- Warnings Acknowledgement -->
|
||||||
|
<div x-show="currentInvoice?.status === 'extracted' && currentInvoice?.validation_warnings?.length > 0"
|
||||||
|
style="background:#f8fafc; border:1px solid var(--border); border-radius:10px; padding:10px; margin-bottom:4px;">
|
||||||
|
<label style="display:flex; gap:10px; align-items:center; cursor:pointer; user-select:none;">
|
||||||
|
<input type="checkbox" x-model="acknowledgedWarnings" style="width:16px; height:16px; accent-color:var(--teal);">
|
||||||
|
<span style="font-size:12px; font-weight:600; color:var(--text-2);">لقد راجعت التنبيهات وأتحمل مسؤولية الاعتماد</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button x-show="currentInvoice?.status === 'extracted'" @click="approveInvoice" class="btn btn-teal"
|
<button x-show="currentInvoice?.status === 'extracted'" @click="approveInvoice" class="btn btn-teal"
|
||||||
:disabled="isBusy" style="width:100%; justify-content:center;">
|
:disabled="isBusy || (currentInvoice?.validation_warnings?.length > 0 && !acknowledgedWarnings)"
|
||||||
|
style="width:100%; justify-content:center;">
|
||||||
<span x-show="!isBusy">✔️ تدقيق واعتماد</span>
|
<span x-show="!isBusy">✔️ تدقيق واعتماد</span>
|
||||||
<span x-show="isBusy">⏳ جاري التدقيق...</span>
|
<span x-show="isBusy">⏳ جاري التدقيق...</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -2184,6 +2213,7 @@
|
|||||||
showAddUserModal: false, showAddCompanyModal: false, showConnectModal: false,
|
showAddUserModal: false, showAddCompanyModal: false, showConnectModal: false,
|
||||||
showUploadModal: false, showViewModal: false, showCompanyStatsModal: false,
|
showUploadModal: false, showViewModal: false, showCompanyStatsModal: false,
|
||||||
showAddTenantModal: false, showEditTenantModal: false, showTenantStatsModal: false,
|
showAddTenantModal: false, showEditTenantModal: false, showTenantStatsModal: false,
|
||||||
|
acknowledgedWarnings: false,
|
||||||
isBusy: false, globalError: '',
|
isBusy: false, globalError: '',
|
||||||
|
|
||||||
newUser: { name: '', email: '', password: '', role: 'accountant', tenant_id: '' },
|
newUser: { name: '', email: '', password: '', role: 'accountant', tenant_id: '' },
|
||||||
|
|||||||
Reference in New Issue
Block a user