22/7/1404

This commit is contained in:
2025-10-14 17:52:24 +03:30
parent 4c54526528
commit ec34e5a9d2
7 changed files with 20 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
export function openNewTabBalance() {
const height = screen.height
window.open(
'/admin/balance',
'https://ghatreh.gold/admin/balance',
'_blank',
`width=400,height=${height},toolbar=no,menubar=no,scrollbars=no,resizable=no`
)
+2
View File
@@ -33,5 +33,7 @@ export interface Customer {
trade_active: boolean
type_str: string
gold: number
auto_open_at: string
auto_close_at: string
// print_name: string
}
+2 -2
View File
@@ -5,7 +5,7 @@
<p class="font-bold">تراز از :</p>
<BaseDatePicker
v-model:value="startTaraz"
@on-change="getTaraz(startTaraz, endTaraz)"
@onchange="getTaraz(startTaraz, endTaraz)"
format="YYYY-MM-DD HH:mm:ss"
class="flex-1"
/>
@@ -14,7 +14,7 @@
<p class="font-bold">تا :</p>
<BaseDatePicker
v-model:value="endTaraz"
@on-change="getTaraz(startTaraz, endTaraz)"
@onchange="getTaraz(startTaraz, endTaraz)"
format="YYYY-MM-DD HH:mm:ss"
class="flex-1"
/>
+1 -1
View File
@@ -815,7 +815,7 @@ const priceChartOptions = ref({
const fetchPrices = async () => {
try {
const response = await getAllPrices()
const data = response.data.prices
const data = response?.data?.prices
const selectedData = data[selection.value] || []
priceChartSeries.value[0].data = selectedData.map((item) => [item.timestamp, item.value])
+7 -8
View File
@@ -589,16 +589,12 @@ let editId: number | undefined = undefined
async function edit(record: Customer) {
addUserVisible.value = true
editId = record.id
console.log(record)
const customForm = cloneDeep(record)
const start = dayjs(customForm.auto_open_at, 'HH:mm:ss')
const close = dayjs(customForm.auto_close_at, 'HH:mm:ss')
delete customForm.auto_open_at
delete customForm.auto_close_at
form.value.auto_open_at = start
form.value.auto_close_at = close
console.log(form.value);
form.value = cloneDeep(customForm)
form.value.auto_open_at = dayjs(customForm.auto_open_at, 'HH:mm:ss')
form.value.auto_close_at = dayjs(customForm.auto_close_at, 'HH:mm:ss')
}
//add
@@ -762,6 +758,9 @@ const categoryItems: Array<Item> = [
{
value: 'سکه پارسیان',
},
{
value: 'شمش ونوس',
},
]
const data = ref<MethodePrices[]>([])
+2
View File
@@ -1,3 +1,4 @@
/*
import type { RouteRecordRaw } from 'vue-router'
const balance: RouteRecordRaw = {
@@ -29,3 +30,4 @@ const balance: RouteRecordRaw = {
}
export default balance
*/