|
|
@@ -22,11 +22,15 @@ const props = defineProps({
|
|
22
|
22
|
})
|
|
23
|
23
|
|
|
24
|
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
|
35
|
</script>
|
|
32
|
36
|
|