feat(admin): «اجرت» screen — edit the making-charge formula, check a sample, approve

The formula shown as a sentence with coloured terms; each term can be
switched off or given a coefficient; promotion as largest or sum; a
constant, floor, cap and rounding. A sample order line is computed by
the server for the formula in force and the draft side by side, changes
highlighted. Saving needs a change, a confirmed sample and a final
confirm; the approved sample is kept and shown as the formula's
reference, with earlier versions below.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
s.esmaeili
2026-10-08 11:26:56 +03:30
co-authored by Claude Opus 5.5
parent 699657e483
commit fbe7b98ada
4 changed files with 535 additions and 0 deletions
+22
View File
@@ -122,6 +122,28 @@ export const adminRoute: RouteRecordRaw[] = [
no_scroll: true
}
},
// MON-08 — the making-charge formula (owner ruling 2026-10-08).
{
path: '/config/manage/wage',
component: () => import('../views/manage/wage.vue'),
meta: {
breadcrumb: [
{
title: 'خانه',
url: '/'
},
{
title: 'اجرت',
active: true
}
],
pageTitle: 'اجرت',
rule: 'editor',
role: 'config.wage',
parent: 'manage',
no_scroll: true
}
},
{
path: '/config/manage/report',
component: () => import('../views/manage/report.vue'),