2 Commity

Autor SHA1 Wiadomość Data
  Muhammad Iqbal Afandi bcc7f01781 feat: history stock_product 3 lat temu
  Muhammad Iqbal Afandi 5582f2a125 feat: history stock product 3 lat temu
1 zmienionych plików z 9 dodań i 5 usunięć
  1. 9
    5
      resources/js/pages/StockProducts/Show.vue

+ 9
- 5
resources/js/pages/StockProducts/Show.vue Wyświetl plik

22
 })
22
 })
23
 
23
 
24
 const exportExcel = () => {
24
 const exportExcel = () => {
25
-  return (
26
-    '/stock-products/history/excel' +
27
-    location.search +
28
-    `&product_number=${props.productNumber}`
29
-  )
25
+  if (location.search.length) {
26
+    return (
27
+      '/stock-products/history/excel' +
28
+      location.search +
29
+      `&product_number=${props.productNumber}`
30
+    )
31
+  } else {
32
+    return `/stock-products/history/excel?product_number=${props.productNumber}`
33
+  }
30
 }
34
 }
31
 </script>
35
 </script>
32
 
36