@lancom/shared 0.0.94 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/js/api/admin.js
CHANGED
|
@@ -49,6 +49,19 @@ export default {
|
|
|
49
49
|
chargeOrderRefund(order, refund, shop) {
|
|
50
50
|
return _post(`shop/${shop}/order/${order}/refund/${refund}/charge`);
|
|
51
51
|
},
|
|
52
|
+
fetchOrderWoTasks(orderId) {
|
|
53
|
+
return _get(`admin/order/${orderId}/wo-tasks`);
|
|
54
|
+
},
|
|
55
|
+
createOrderWoTask(orderId, task) {
|
|
56
|
+
return _post(`admin/order/${orderId}/wo-tasks`, task);
|
|
57
|
+
},
|
|
58
|
+
saveWoTask(task) {
|
|
59
|
+
const url = `admin/warehouse/${task.warehouse}/tasks/${task._id}`;
|
|
60
|
+
return task._id ? _put(url, task) : _post(url, task);
|
|
61
|
+
},
|
|
62
|
+
fetchWarehouseTaskById(warehouse, task) {
|
|
63
|
+
return _get(`admin/warehouse/${warehouse}/tasks/${task}`);
|
|
64
|
+
},
|
|
52
65
|
fetchPages() {
|
|
53
66
|
return _get('admin/pages');
|
|
54
67
|
},
|
|
@@ -92,7 +105,7 @@ export default {
|
|
|
92
105
|
return _post(`shop/${shop}/user/reset-password`, user);
|
|
93
106
|
},
|
|
94
107
|
fetchUsers() {
|
|
95
|
-
return _get('admin/
|
|
108
|
+
return _get('admin/users');
|
|
96
109
|
},
|
|
97
110
|
fetchUserById(id) {
|
|
98
111
|
return _get(`admin/user/${id}`);
|
|
@@ -191,6 +204,9 @@ export default {
|
|
|
191
204
|
async fetchWarehouses(params) {
|
|
192
205
|
return sortByName(await _get('admin/warehouse', params));
|
|
193
206
|
},
|
|
207
|
+
fetchWarehouseLocations(params) {
|
|
208
|
+
return _get('admin/warehouse/locations', params);
|
|
209
|
+
},
|
|
194
210
|
fetchWarehouseById(id) {
|
|
195
211
|
return _get(`admin/warehouse/${id}`);
|
|
196
212
|
},
|
|
@@ -94,7 +94,7 @@ export default {
|
|
|
94
94
|
return (this.simpleProduct || {}).amount || this.defaultValue;
|
|
95
95
|
},
|
|
96
96
|
set(value) {
|
|
97
|
-
const outOfStockQuantity = this.simpleProduct?.quantityStock
|
|
97
|
+
const outOfStockQuantity = this.simpleProduct?.quantityStock;
|
|
98
98
|
if (outOfStockQuantity && outOfStockQuantity < value && this.showMaxModal) {
|
|
99
99
|
const message = `Maximum value: ${outOfStockQuantity}`;
|
|
100
100
|
this.showConfirmationModal(message);
|
package/mixins/meta-info.js
CHANGED
|
@@ -82,7 +82,12 @@ const metaInfo = {
|
|
|
82
82
|
|
|
83
83
|
return {
|
|
84
84
|
title: pageTitle,
|
|
85
|
-
meta: metaTags
|
|
85
|
+
meta: metaTags,
|
|
86
|
+
link: [{
|
|
87
|
+
hid: 'canonical',
|
|
88
|
+
rel: 'canonical',
|
|
89
|
+
href: `https://${process.env.HOST_NAME}${this.$route.path === '/' ? '' : this.$route.path}`
|
|
90
|
+
}]
|
|
86
91
|
};
|
|
87
92
|
},
|
|
88
93
|
getRoute() {
|