diff --git a/src/pages/menuPages/giftCards/hooks/orderColumns.tsx b/src/pages/menuPages/giftCards/hooks/orderColumns.tsx index 97fa246..e3422eb 100644 --- a/src/pages/menuPages/giftCards/hooks/orderColumns.tsx +++ b/src/pages/menuPages/giftCards/hooks/orderColumns.tsx @@ -124,7 +124,7 @@ export const cols: BaseTableColumn[] = [ key: 'name', type: 'Text', customRender: ({ record }) => { - return record.customer?.name ?? '-' + return record.name ?? '-' } }, // { diff --git a/src/pages/menuPages/giftCards/index.vue b/src/pages/menuPages/giftCards/index.vue index 10d98b2..2b288c4 100644 --- a/src/pages/menuPages/giftCards/index.vue +++ b/src/pages/menuPages/giftCards/index.vue @@ -546,8 +546,8 @@ function info(val: Giftcard) { } else { infoParams.title = 'اطلاعات کارت هدیه' - infoParams.name = val.customer?.name ?? '-' - infoParams.type = val.customer?.mobile ?? '-' + infoParams.name = val.name ?? '-' + // infoParams.type = val.customer?.mobile ?? '-' infoParams.date = toJalaliNoTime(val.created_at) infoParams.time = toTime(val.created_at) infoParams.itemsTitle = 'اطلاعات کارت هدیه'