+
+
کد حساب
- {{ info.link.externalCode }}
- {{ ORIGIN[info.link.origin] ?? info.link.origin }}
-
-
لینک نشده
-
-
-
- {{ num(info.accounting.gold, 3) }} /
- {{ num(info.accounting.rial, 0) }}
- {{ jdt(info.accounting.at) }}
+ {{ info.link.externalCode }}
+ {{ ORIGIN[info.link.origin] ?? info.link.origin }}
—
-
-
- {{ num(info?.internal?.gold, 3) }} /
- {{ num(info?.internal?.rial, 0) }}
- مبنای سقف اعتبار
-
-
+
-
- آخرین ارسال: {{ STATUS[lastJob.status] ?? lastJob.status }} — {{ jdt(lastJob.updatedAt) }}
-
— {{ lastJob.lastError }}
+
+
+
ماندهی حسابداری
+
+
+ {{ num(info.accounting.gold, 3) }}
+ گرم
+
+
+ {{ num(info.accounting.rial, 0) }}
+ ریال
+
+ {{ jdt(info.accounting.at) }}
+
+
+ —
+ هنوز دریافت نشده
+
+
+
+
ماندهی دفتر اپ
+
+ {{ num(info?.internal?.gold, 3) }}
+ گرم
+
+
+ {{ num(info?.internal?.rial, 0) }}
+ ریال
+
+
مبنای سقف اعتبار
+
+
+
+
+
+ آخرین ارسال: {{ STATUS[lastJob.status] ?? lastJob.status }} — {{ jdt(lastJob.updatedAt) }}
+
{{ lastJob.lastError }}
+
+
+
-
-
-
- لینک دستی
-
- حذف لینک
-
-
-
+
diff --git a/apps/admin-panel/src/components/x-table/XTable.vue b/apps/admin-panel/src/components/x-table/XTable.vue
index 7ffca72..1554ff1 100644
--- a/apps/admin-panel/src/components/x-table/XTable.vue
+++ b/apps/admin-panel/src/components/x-table/XTable.vue
@@ -293,7 +293,10 @@ const opOptions = [
{ value: 'between', label: 'بین' },
];
-const cols = computed(() => props.model?.cols ?? []);
+// The model is a plain class instance (see model.ts), so its columns are not
+// reactive on their own. Wrapping it here lets the column picker's `col.show`
+// checkbox toggles re-run visibleCols / antColumns.
+const cols = computed
(() => (props.model ? (reactive(props.model) as XTbl).cols : []));
const visibleCols = computed(() => cols.value.filter((c) => c.show));
const filterableOptions = computed(() =>
cols.value.filter((c) => c.filtered).map((c) => ({ value: c.__fkey ?? c.key, label: c.title })),
diff --git a/apps/admin-panel/src/components/x-table/model.ts b/apps/admin-panel/src/components/x-table/model.ts
index 6467829..e251dbb 100644
--- a/apps/admin-panel/src/components/x-table/model.ts
+++ b/apps/admin-panel/src/components/x-table/model.ts
@@ -42,6 +42,9 @@ export class Xtc {
this.key = key;
this.title = title;
this.dataIndex = key;
+ // The record id ('کد') is kept out of every table by default. It can still be
+ // turned on from the column picker.
+ if (key === 'id') this.show = false;
}
private __filter() {
diff --git a/apps/admin-panel/src/layouts/components/VerticalNavMenu.vue b/apps/admin-panel/src/layouts/components/VerticalNavMenu.vue
index 5a14960..4c54541 100644
--- a/apps/admin-panel/src/layouts/components/VerticalNavMenu.vue
+++ b/apps/admin-panel/src/layouts/components/VerticalNavMenu.vue
@@ -19,7 +19,7 @@
>