ali 1 ano atrás
pai
commit
0e0335d149

+ 10 - 3
src/components/Widgets/Store/Basket/AdminStoreBasketShow/AdminStoreBasketShow.vue

@@ -150,11 +150,18 @@ export default {
             field: row => row.package ? 'بسته' : 'تکی'
           },
           {
-            name: 'content_category',
+            name: 'store_category',
             required: true,
-            label: 'دسته بندی اصلی',
+            label: 'دسته فروشگاه',
             align: 'left',
-            field: row => row.content_category
+            field: row => ((row.product_info || row.package_info).store_category_info?.parent?.parent?.title || '-') + '، ' + ((row.product_info || row.package_info).store_category_info?.parent?.title || '-') + '، ' + ((row.product_info || row.package_info).store_category_info?.title || '-')
+          },
+          {
+            name: 'store_category1',
+            required: true,
+            label: 'دسته محتوا',
+            align: 'left',
+            field: row => ((row.product_info || row.package_info).content_category_info?.parent?.parent?.title || '-') + '، ' + ((row.product_info || row.package_info).content_category_info?.parent?.title || '-') + '، ' + ((row.product_info || row.package_info).content_category_info?.title || '-')
           },
           {
             name: 'count',

+ 2 - 0
src/models/Package.js

@@ -9,7 +9,9 @@ class Package extends Model {
       { key: 'title' },
       { key: 'inventory' },
       { key: 'store_category' },
+      { key: 'store_category_info' },
       { key: 'content_category' },
+      { key: 'content_category_info' },
       {
         key: 'unit_price',
         default: 0

+ 2 - 0
src/models/Product.js

@@ -9,7 +9,9 @@ class Product extends Model {
       { key: 'title' },
       { key: 'inventory' },
       { key: 'store_category' },
+      { key: 'store_category_info' },
       { key: 'content_category' },
+      { key: 'content_category_info' },
       {
         key: 'unit_price',
         default: 0