@things-factory/operato-wms 4.0.43 → 4.1.1
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/client/pages/bulk-operation/bulk-operation.js +5 -1
- package/client/pages/inbound/putaway-product.js +275 -291
- package/client/pages/inbound/putaway-same-carton-popup.js +191 -0
- package/client/pages/inbound/undo-putaway-popup.js +369 -0
- package/client/pages/inbound/unload-product.js +2 -1
- package/client/pages/inbound/worksheet-putaway.js +6 -11
- package/client/pages/inventory/inventory-by-product.js +3 -7
- package/client/pages/order/arrival-notice/edit-product-popup.js +3 -3
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +1 -10
- package/client/pages/order/release-order/release-order-detail.js +1 -1
- package/client/pages/order/reverse-kitting-order/reverse-kitting-order-list.js +11 -1
- package/client/pages/outbound/picking-product.js +2 -1
- package/client/pages/report/custom-elccl/elccl-delivery-order-summary.js +4 -4
- package/client/pages/vas/reverse-kitting/popup-reverse-kitting-template.js +1 -1
- package/helps/release-note.md +55 -1
- package/package.json +52 -52
- package/translations/en.json +4 -1
- package/translations/ko.json +4 -1
- package/translations/ms.json +4 -1
- package/translations/zh.json +4 -1
- package/client/pages/inbound/scan-inventory-popup.js +0 -112
- package/config.development.js +0 -73
- package/config.production.js +0 -113
|
@@ -214,7 +214,17 @@ class ReverseKittingOrderList extends localize(i18next)(PageView) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
_exportableData() {
|
|
217
|
-
return
|
|
217
|
+
return {
|
|
218
|
+
header: [
|
|
219
|
+
{ header: i18next.t('field.order_no'), key: 'name', width: 25, type: 'string' },
|
|
220
|
+
{ header: i18next.t('field.status'), key: 'status', width: 25, type: 'string' },
|
|
221
|
+
{ header: i18next.t('field.updated_at'), key: 'updatedAt', width: 30, type: 'date' },
|
|
222
|
+
{ header: i18next.t('field.updater'), key: 'updater', width: 25, type: 'string' }
|
|
223
|
+
],
|
|
224
|
+
data: this.dataGrist?.data?.records?.map(record => {
|
|
225
|
+
return { ...record, updater: record.updater.name }
|
|
226
|
+
})
|
|
227
|
+
}
|
|
218
228
|
}
|
|
219
229
|
}
|
|
220
230
|
|
|
@@ -94,7 +94,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
94
94
|
|
|
95
95
|
get context() {
|
|
96
96
|
var actions = []
|
|
97
|
-
if (this._hasBinPicking) {
|
|
97
|
+
if (this._hasBinPicking && this.refPickingType === PICKING_TYPES.PICKING.value) {
|
|
98
98
|
actions.push({
|
|
99
99
|
title: i18next.t('button.get_task'),
|
|
100
100
|
action: this.getTask.bind(this),
|
|
@@ -1490,6 +1490,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1490
1490
|
pickingTypeChangeHandler(currentType) {
|
|
1491
1491
|
this.refPickingType = currentType
|
|
1492
1492
|
this.clearView()
|
|
1493
|
+
this.updateContext()
|
|
1493
1494
|
|
|
1494
1495
|
if (this.refPickingType === PICKING_TYPES.PICKING.value) this._focusOnReleaseGoodNoInput()
|
|
1495
1496
|
else this._focusOnTaskNoInput()
|
|
@@ -229,8 +229,8 @@ class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageVie
|
|
|
229
229
|
|
|
230
230
|
const response = await client.query({
|
|
231
231
|
query: gql`
|
|
232
|
-
query
|
|
233
|
-
|
|
232
|
+
query deliveryOrderReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
233
|
+
deliveryOrderReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
234
234
|
items {
|
|
235
235
|
id
|
|
236
236
|
name
|
|
@@ -272,9 +272,9 @@ class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageVie
|
|
|
272
272
|
|
|
273
273
|
if (!response.errors) {
|
|
274
274
|
return {
|
|
275
|
-
total: response.data.
|
|
275
|
+
total: response.data.deliveryOrderReport.total || 0,
|
|
276
276
|
records:
|
|
277
|
-
response.data.
|
|
277
|
+
response.data.deliveryOrderReport.items.map(itm => {
|
|
278
278
|
let remarks = (itm.orderInventories || []).reduce((acc, itm) => {
|
|
279
279
|
let dt = {
|
|
280
280
|
product_name: `${itm.inventory.product.name} (${itm.inventory.product.description})`,
|
|
@@ -402,7 +402,7 @@ class PopupReverseKittingTemplate extends localize(i18next)(LitElement) {
|
|
|
402
402
|
this._focusOnQtyInput()
|
|
403
403
|
throw new Error(i18next.t('text.qty_is_empty'))
|
|
404
404
|
} else {
|
|
405
|
-
if (!this.qtyInput.checkValidity()) throw new Error(i18next.t('text.
|
|
405
|
+
if (!this.qtyInput.checkValidity()) throw new Error(i18next.t('text.invalid_qty'))
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
// 4. location code existing
|
package/helps/release-note.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
1
|
# NOTICE BOARD
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
## 9 Feb 2022 Updates
|
|
6
|
+
|
|
7
|
+
January flewby without us noticing, and we're at the very last day until we go off for a Roaring Start of the Year!
|
|
8
|
+
|
|
9
|
+
We will be rolling out Operato Version 4 once we are back from our break on the **9th of February.**
|
|
10
|
+
|
|
11
|
+
In this upcoming version, we have squashed a bunch of bugs, improved the UI/UX and introduced performance enhancements.
|
|
12
|
+
|
|
13
|
+
With the help of your feedbacks, our latest product update is part of an ongoing effort to provide an overall better user experience.
|
|
14
|
+
|
|
15
|
+
<br>
|
|
16
|
+
|
|
17
|
+
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
|
|
18
|
+
<tbody>
|
|
19
|
+
<tr>
|
|
20
|
+
<td style="width: 300px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px"><strong>Features</strong></span></td>
|
|
21
|
+
<td style="width: 387px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px"><strong>Description</strong></span></td>
|
|
22
|
+
</tr>
|
|
23
|
+
<tr>
|
|
24
|
+
<td style="width: 300px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px">Bulk Product Selection for Arrival Notice</span></td>
|
|
25
|
+
<td style="width: 387px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px">Ability to select multiple records when creating arrival notice</span></td>
|
|
26
|
+
</tr>
|
|
27
|
+
<tr>
|
|
28
|
+
<td style="width: 300px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px">Improved Unloading, Putaway, Picking & Packing UI</span></td>
|
|
29
|
+
<td style="width: 387px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px">Layout is more concise to streamline the user experience</span></td>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr>
|
|
32
|
+
<td style="width: 300px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px">Improved Undo Process</span></td>
|
|
33
|
+
<td style="width: 387px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px">Instead of selecting, you can now scan the lot/carton ID to undo</span></td>
|
|
34
|
+
</tr>
|
|
35
|
+
<tr>
|
|
36
|
+
<td style="width: 300px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px">Release Notes</span></td>
|
|
37
|
+
<td style="width: 387px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"><span style="font-size:12px">Future release notes is accessible in WMS under settings</span></td>
|
|
38
|
+
</tr>
|
|
39
|
+
</tbody>
|
|
40
|
+
</table>
|
|
41
|
+
|
|
42
|
+
<br>
|
|
43
|
+
|
|
44
|
+
[Click Here for Version 4 Preview & Updates](http://bit.ly/operatov4updates 'Hatio Operato V4 Updates')
|
|
45
|
+
|
|
46
|
+
We thank you for your patience and we strive to provide you with better experience this coming year!
|
|
47
|
+
|
|
48
|
+
Signing Off the year of the Rat and onwards to a roaring good year!
|
|
49
|
+
|
|
50
|
+
<br>
|
|
51
|
+
|
|
52
|
+
_**Team Hatio**
|
|
53
|
+
Reimagining warehousing and fulfilment in South East Asia_
|
|
54
|
+
|
|
55
|
+
### 恭喜發财,新一年祝大家龍精虎猛,虎虎生威
|
|
56
|
+
|
|
57
|
+
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"docker:run": "docker run --platform linux/amd64 -p 4000:3000 hatiolab/operato-wms:latest"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@operato/ghost-print": "^0.3.
|
|
44
|
+
"@operato/ghost-print": "^0.3.28",
|
|
45
45
|
"@operato/scene-chartjs": "^0.1.4",
|
|
46
46
|
"@operato/scene-clock": "^0.1.4",
|
|
47
47
|
"@operato/scene-clone": "^0.1.4",
|
|
@@ -56,57 +56,57 @@
|
|
|
56
56
|
"@operato/scene-tab": "^0.1.4",
|
|
57
57
|
"@operato/scene-table": "^0.1.4",
|
|
58
58
|
"@operato/scene-wheel-sorter": "^0.1.4",
|
|
59
|
-
"@things-factory/apptool-ui": "^4.
|
|
60
|
-
"@things-factory/attachment-ui": "^4.
|
|
61
|
-
"@things-factory/auth-ui": "^4.
|
|
62
|
-
"@things-factory/barcode-ui": "^4.
|
|
63
|
-
"@things-factory/biz-ui": "^4.
|
|
64
|
-
"@things-factory/board-service": "^4.
|
|
65
|
-
"@things-factory/board-ui": "^4.
|
|
66
|
-
"@things-factory/code-ui": "^4.
|
|
67
|
-
"@things-factory/context-ui": "^4.
|
|
68
|
-
"@things-factory/export-ui": "^4.
|
|
69
|
-
"@things-factory/export-ui-csv": "^4.
|
|
70
|
-
"@things-factory/export-ui-excel": "^4.
|
|
71
|
-
"@things-factory/fav-base": "^4.
|
|
72
|
-
"@things-factory/form-ui": "^4.
|
|
73
|
-
"@things-factory/grist-ui": "^4.
|
|
74
|
-
"@things-factory/help": "^4.
|
|
75
|
-
"@things-factory/i18n-base": "^4.
|
|
76
|
-
"@things-factory/id-rule-base": "^4.
|
|
77
|
-
"@things-factory/import-ui": "^4.
|
|
78
|
-
"@things-factory/import-ui-excel": "^4.
|
|
79
|
-
"@things-factory/menu-ui": "^4.
|
|
80
|
-
"@things-factory/more-ui": "^4.
|
|
81
|
-
"@things-factory/notification": "^4.
|
|
82
|
-
"@things-factory/pdf": "^4.
|
|
83
|
-
"@things-factory/print-proxy-service": "^4.
|
|
84
|
-
"@things-factory/print-service": "^4.
|
|
85
|
-
"@things-factory/print-ui": "^4.
|
|
86
|
-
"@things-factory/product-base": "^4.
|
|
87
|
-
"@things-factory/resource-ui": "^4.
|
|
88
|
-
"@things-factory/sales-ui": "^4.
|
|
89
|
-
"@things-factory/scene-data-transform": "^4.
|
|
90
|
-
"@things-factory/scene-excel": "^4.
|
|
91
|
-
"@things-factory/scene-firebase": "^4.
|
|
92
|
-
"@things-factory/scene-form": "^4.
|
|
93
|
-
"@things-factory/scene-google-map": "^4.
|
|
94
|
-
"@things-factory/scene-graphql": "^4.
|
|
95
|
-
"@things-factory/scene-label": "^4.
|
|
96
|
-
"@things-factory/scene-marker": "^4.
|
|
97
|
-
"@things-factory/scene-mqtt": "^4.
|
|
98
|
-
"@things-factory/scene-news-ticker": "^4.
|
|
99
|
-
"@things-factory/scene-restful": "^4.
|
|
100
|
-
"@things-factory/scene-visualizer": "^4.
|
|
101
|
-
"@things-factory/setting-ui": "^4.
|
|
102
|
-
"@things-factory/system-ui": "^4.
|
|
103
|
-
"@things-factory/transport-base": "^4.
|
|
104
|
-
"@things-factory/tutorial-ui": "^4.
|
|
105
|
-
"@things-factory/warehouse-base": "^4.
|
|
106
|
-
"@things-factory/worksheet-base": "^4.
|
|
59
|
+
"@things-factory/apptool-ui": "^4.1.1",
|
|
60
|
+
"@things-factory/attachment-ui": "^4.1.1",
|
|
61
|
+
"@things-factory/auth-ui": "^4.1.1",
|
|
62
|
+
"@things-factory/barcode-ui": "^4.1.1",
|
|
63
|
+
"@things-factory/biz-ui": "^4.1.1",
|
|
64
|
+
"@things-factory/board-service": "^4.1.1",
|
|
65
|
+
"@things-factory/board-ui": "^4.1.1",
|
|
66
|
+
"@things-factory/code-ui": "^4.1.1",
|
|
67
|
+
"@things-factory/context-ui": "^4.1.1",
|
|
68
|
+
"@things-factory/export-ui": "^4.1.1",
|
|
69
|
+
"@things-factory/export-ui-csv": "^4.1.1",
|
|
70
|
+
"@things-factory/export-ui-excel": "^4.1.1",
|
|
71
|
+
"@things-factory/fav-base": "^4.1.1",
|
|
72
|
+
"@things-factory/form-ui": "^4.1.1",
|
|
73
|
+
"@things-factory/grist-ui": "^4.1.1",
|
|
74
|
+
"@things-factory/help": "^4.1.1",
|
|
75
|
+
"@things-factory/i18n-base": "^4.1.1",
|
|
76
|
+
"@things-factory/id-rule-base": "^4.1.1",
|
|
77
|
+
"@things-factory/import-ui": "^4.1.1",
|
|
78
|
+
"@things-factory/import-ui-excel": "^4.1.1",
|
|
79
|
+
"@things-factory/menu-ui": "^4.1.1",
|
|
80
|
+
"@things-factory/more-ui": "^4.1.1",
|
|
81
|
+
"@things-factory/notification": "^4.1.1",
|
|
82
|
+
"@things-factory/pdf": "^4.1.1",
|
|
83
|
+
"@things-factory/print-proxy-service": "^4.1.1",
|
|
84
|
+
"@things-factory/print-service": "^4.1.1",
|
|
85
|
+
"@things-factory/print-ui": "^4.1.1",
|
|
86
|
+
"@things-factory/product-base": "^4.1.1",
|
|
87
|
+
"@things-factory/resource-ui": "^4.1.1",
|
|
88
|
+
"@things-factory/sales-ui": "^4.1.1",
|
|
89
|
+
"@things-factory/scene-data-transform": "^4.1.1",
|
|
90
|
+
"@things-factory/scene-excel": "^4.1.1",
|
|
91
|
+
"@things-factory/scene-firebase": "^4.1.1",
|
|
92
|
+
"@things-factory/scene-form": "^4.1.1",
|
|
93
|
+
"@things-factory/scene-google-map": "^4.1.1",
|
|
94
|
+
"@things-factory/scene-graphql": "^4.1.1",
|
|
95
|
+
"@things-factory/scene-label": "^4.1.1",
|
|
96
|
+
"@things-factory/scene-marker": "^4.1.1",
|
|
97
|
+
"@things-factory/scene-mqtt": "^4.1.1",
|
|
98
|
+
"@things-factory/scene-news-ticker": "^4.1.1",
|
|
99
|
+
"@things-factory/scene-restful": "^4.1.1",
|
|
100
|
+
"@things-factory/scene-visualizer": "^4.1.1",
|
|
101
|
+
"@things-factory/setting-ui": "^4.1.1",
|
|
102
|
+
"@things-factory/system-ui": "^4.1.1",
|
|
103
|
+
"@things-factory/transport-base": "^4.1.1",
|
|
104
|
+
"@things-factory/tutorial-ui": "^4.1.1",
|
|
105
|
+
"@things-factory/warehouse-base": "^4.1.1",
|
|
106
|
+
"@things-factory/worksheet-base": "^4.1.1"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@things-factory/builder": "^4.
|
|
109
|
+
"@things-factory/builder": "^4.1.1"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "09378a57e788038c086c6c40e6135cf14082b185"
|
|
112
112
|
}
|
package/translations/en.json
CHANGED
|
@@ -1115,6 +1115,7 @@
|
|
|
1115
1115
|
"text.invalid_print_qty": "invalid print qty",
|
|
1116
1116
|
"text.invalid_product_combination": "invalid product combination",
|
|
1117
1117
|
"text.invalid_quantity_input": "invalid quantity input",
|
|
1118
|
+
"text.invalid_qty": "invalid quantity",
|
|
1118
1119
|
"text.invalid_release_date": "invalid release date",
|
|
1119
1120
|
"text.invalid_release_qty": "invalid release qty",
|
|
1120
1121
|
"text.invalid_return_location": "invalid return location",
|
|
@@ -1266,6 +1267,7 @@
|
|
|
1266
1267
|
"text.select_a_logistics_type": "select a logistics type",
|
|
1267
1268
|
"text.select_a_release_order_to_proceed": "select a release order to proceed",
|
|
1268
1269
|
"text.select_a_shipping_provider": "select a shipping provider",
|
|
1270
|
+
"text.select_at_least_one_inventory_to_putaway": "select at least one inventory to putaway",
|
|
1269
1271
|
"text.select_at_least_one_inventory_to_undo": "select at least one inventory to undo",
|
|
1270
1272
|
"text.select_location_format": "please select location format",
|
|
1271
1273
|
"text.select_one_of_unloading_list_first": "select one of unloading list first",
|
|
@@ -1287,7 +1289,7 @@
|
|
|
1287
1289
|
"text.submit_edited_batch_id_for_approval": "submit edited batch id for approval",
|
|
1288
1290
|
"text.successfully_retrieve_tracking_no": "successfully retrieve tracking no",
|
|
1289
1291
|
"text.supplier": "supplier",
|
|
1290
|
-
"text.
|
|
1292
|
+
"text.target_does_not_selected": "target is not selected",
|
|
1291
1293
|
"text.target_is_not_selected": "target is not selected",
|
|
1292
1294
|
"text.there_is_additional_operation": "there is additional operation",
|
|
1293
1295
|
"text.there_is_completed_item_already": "there is completed item already",
|
|
@@ -1632,6 +1634,7 @@
|
|
|
1632
1634
|
"title.transfer_order_requests": "transfer order requests",
|
|
1633
1635
|
"title.transport_driver": "transport driver",
|
|
1634
1636
|
"title.transport_vehicle": "transport vehicle",
|
|
1637
|
+
"title.undo_putaway": "undo putaway",
|
|
1635
1638
|
"title.undo_unload": "undo unload",
|
|
1636
1639
|
"title.unloaded_inventories": "unloaded inventories",
|
|
1637
1640
|
"title.unloaded_pallets": "unloaded pallets",
|
package/translations/ko.json
CHANGED
|
@@ -1178,6 +1178,7 @@
|
|
|
1178
1178
|
"text.invalid_print_qty": "[ko] invalid print qty",
|
|
1179
1179
|
"text.invalid_product_combination": "[ko] invalid product combination",
|
|
1180
1180
|
"text.invalid_quantity_input": "유효하지 않은 수량 입력",
|
|
1181
|
+
"text.invalid_qty": "[ko] invalid quantity",
|
|
1181
1182
|
"text.invalid_release_date": "유효하지 않은 출고일",
|
|
1182
1183
|
"text.invalid_release_qty": "유효하지 않은 출고 수량",
|
|
1183
1184
|
"text.invalid_value_in_list": "[ko] invalid value in list",
|
|
@@ -1382,7 +1383,7 @@
|
|
|
1382
1383
|
"text.submit_edited_batch_id_for_approval": "수정된 배치 아이디가 승인을 위해 제출 되었습니다",
|
|
1383
1384
|
"text.successfully_retrieve_tracking_no": "추적번호를 성공적으로 가져왔습니다",
|
|
1384
1385
|
"text.supplier": "공급사",
|
|
1385
|
-
"text.
|
|
1386
|
+
"text.text.target_does_not_selected": "대상이 선택되지 않았습니다",
|
|
1386
1387
|
"text.target_is_not_selected": "대상이 선택되지 않았습니다",
|
|
1387
1388
|
"text.there_are_remain_products": "there are remain products",
|
|
1388
1389
|
"text.there_is_additional_operation": "추가작업이 있습니다",
|
|
@@ -1871,6 +1872,8 @@
|
|
|
1871
1872
|
"text.order_is_not_selected": "[ko] order is not selected",
|
|
1872
1873
|
"text.company_is_not_selected": "[ko] company is not selected",
|
|
1873
1874
|
"field.transporter": "[ko] transporter",
|
|
1875
|
+
"text.select_at_least_one_inventory_to_putaway": "[ko] select at least one inventory to putaway",
|
|
1876
|
+
"title.undo_putaway": "[ko] undo putaway",
|
|
1874
1877
|
"field.lot_qty": "[ko] lot qty",
|
|
1875
1878
|
"field.actual_lot_qty": "[ko] actual lot qty"
|
|
1876
1879
|
}
|
package/translations/ms.json
CHANGED
|
@@ -1141,6 +1141,7 @@
|
|
|
1141
1141
|
"text.invalid_print_qty": "[ms] invalid print qty",
|
|
1142
1142
|
"text.invalid_product_combination": "[ms] invalid product combination",
|
|
1143
1143
|
"text.invalid_quantity_input": "kauntiti input tidak sah",
|
|
1144
|
+
"text.invalid_qty": "kuantiti tidak sah",
|
|
1144
1145
|
"text.invalid_release_date": "tarikh pelepasan tidak sah",
|
|
1145
1146
|
"text.invalid_release_qty": "kuantiti pelepasan tidak sah",
|
|
1146
1147
|
"text.invalid_value_in_list": "nilai dalam senarai tidak sah",
|
|
@@ -1306,7 +1307,7 @@
|
|
|
1306
1307
|
"text.submit_edited_batch_id_for_approval": "hantar id kumpulan yang disunting untuk kelulusan",
|
|
1307
1308
|
"text.successfully_retrieve_tracking_no": "berjaya terima no. penjejak",
|
|
1308
1309
|
"text.supplier": "pembekal",
|
|
1309
|
-
"text.
|
|
1310
|
+
"text.text.target_does_not_selected": "tiada sasaran produk dipilih",
|
|
1310
1311
|
"text.target_is_not_selected": "sasaran tidak dipilih",
|
|
1311
1312
|
"text.there_is_additional_operation": "terdapat operasi tambahan",
|
|
1312
1313
|
"text.there_is_completed_item_already": "there is completed item already",
|
|
@@ -1741,6 +1742,8 @@
|
|
|
1741
1742
|
"text.order_is_not_selected": "[ms] order is not selected",
|
|
1742
1743
|
"text.company_is_not_selected": "[ms] company is not selected",
|
|
1743
1744
|
"field.transporter": "[ms] transporter",
|
|
1745
|
+
"text.select_at_least_one_inventory_to_putaway": "[ms] select at least one inventory to putaway",
|
|
1746
|
+
"title.undo_putaway": "[ms] undo putaway",
|
|
1744
1747
|
"field.lot_qty": "[ms] lot qty",
|
|
1745
1748
|
"field.actual_lot_qty": "[ms] actual lot qty"
|
|
1746
1749
|
}
|
package/translations/zh.json
CHANGED
|
@@ -1109,6 +1109,7 @@
|
|
|
1109
1109
|
"text.invalid_print_qty": "[zh] invalid print qty",
|
|
1110
1110
|
"text.invalid_product_combination": "[zh] invalid product combination",
|
|
1111
1111
|
"text.invalid_quantity_input": "invalid quantity input",
|
|
1112
|
+
"text.invalid_qty": "[zh] invalid quantity",
|
|
1112
1113
|
"text.invalid_release_date": "invalid release date",
|
|
1113
1114
|
"text.invalid_release_qty": "invalid release qty",
|
|
1114
1115
|
"text.invalid_value_in_list": "[zh] invalid value in list",
|
|
@@ -1273,7 +1274,7 @@
|
|
|
1273
1274
|
"text.submit_edited_batch_id_for_approval": "submit edited batch id for approval",
|
|
1274
1275
|
"text.successfully_retrieve_tracking_no": "successfully retrieve tracking no",
|
|
1275
1276
|
"text.supplier": "supplier",
|
|
1276
|
-
"text.
|
|
1277
|
+
"text.text.target_does_not_selected": "target is not selected",
|
|
1277
1278
|
"text.target_is_not_selected": "target is not selected",
|
|
1278
1279
|
"text.there_is_additional_operation": "[zh]there is additional operation",
|
|
1279
1280
|
"text.there_is_completed_item_already": "[zh]there is completed item already",
|
|
@@ -1691,6 +1692,8 @@
|
|
|
1691
1692
|
"text.order_is_not_selected": "[zh] order is not selected",
|
|
1692
1693
|
"text.company_is_not_selected": "[zh] company is not selected",
|
|
1693
1694
|
"field.transporter": "[zh] transporter",
|
|
1695
|
+
"text.select_at_least_one_inventory_to_putaway": "[zh] select at least one inventory to putaway",
|
|
1696
|
+
"title.undo_putaway": "[zh] undo putaway",
|
|
1694
1697
|
"field.lot_qty": "[zh] lot qty",
|
|
1695
1698
|
"field.actual_lot_qty": "[zh] actual lot qty"
|
|
1696
1699
|
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
2
|
-
import '@things-factory/grist-ui'
|
|
3
|
-
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
|
-
import { store } from '@things-factory/shell'
|
|
5
|
-
import { css, html, LitElement } from 'lit-element'
|
|
6
|
-
import { connect } from 'pwa-helpers/connect-mixin'
|
|
7
|
-
|
|
8
|
-
class ScanInventoryPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
9
|
-
static get properties() {
|
|
10
|
-
return {
|
|
11
|
-
inventories: Array,
|
|
12
|
-
hasCartonLabel: Boolean
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
static get styles() {
|
|
17
|
-
return [
|
|
18
|
-
SingleColumnFormStyles,
|
|
19
|
-
css`
|
|
20
|
-
:host {
|
|
21
|
-
padding: 10px;
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
overflow-x: overlay;
|
|
25
|
-
background-color: var(--main-section-background-color);
|
|
26
|
-
}
|
|
27
|
-
`
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
render() {
|
|
32
|
-
return html`
|
|
33
|
-
<form id="input-form" class="single-column-form" @keypress="${this._submitUndoBarcode.bind(this)}">
|
|
34
|
-
<fieldset>
|
|
35
|
-
${this.hasCartonLabel
|
|
36
|
-
? html`<label>${i18next.t('label.carton_id')}</label>
|
|
37
|
-
<barcode-scanable-input name="cartonId" custom-input></barcode-scanable-input>`
|
|
38
|
-
: html`<label>${i18next.t('label.lot_barcode')}</label>
|
|
39
|
-
<barcode-scanable-input name="palletId" custom-input></barcode-scanable-input>`}
|
|
40
|
-
</fieldset>
|
|
41
|
-
</form>
|
|
42
|
-
`
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
firstUpdated() {
|
|
46
|
-
if (this.hasCartonLabel) this._focusOnCartonInput()
|
|
47
|
-
else this._focusOnPalletInput()
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
_focusOnPalletInput() {
|
|
51
|
-
setTimeout(() => this.palletInput.focus(), 100)
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
_focusOnCartonInput() {
|
|
55
|
-
setTimeout(() => this.cartonInput.focus(), 100)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
get cartonInput() {
|
|
59
|
-
return this.shadowRoot.querySelector('barcode-scanable-input[name=cartonId]').shadowRoot.querySelector('input')
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
get palletInput() {
|
|
63
|
-
return this.shadowRoot.querySelector('barcode-scanable-input[name=palletId]').shadowRoot.querySelector('input')
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
_submitUndoBarcode() {
|
|
67
|
-
try {
|
|
68
|
-
this._validateScannedBarcode()
|
|
69
|
-
let selectedInventories = []
|
|
70
|
-
if (this.hasCartonLabel) {
|
|
71
|
-
selectedInventories = this.inventories.filter(inventory => inventory.cartonId === this.cartonInput.value.trim())
|
|
72
|
-
} else {
|
|
73
|
-
selectedInventories = this.inventories.filter(inventory => inventory.palletId === this.palletInput.value.trim())
|
|
74
|
-
}
|
|
75
|
-
this.dispatchEvent(new CustomEvent('barcode-validated', { detail: selectedInventories }))
|
|
76
|
-
history.back()
|
|
77
|
-
} catch (e) {
|
|
78
|
-
this._showToast(e)
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
_validateScannedBarcode() {
|
|
83
|
-
let hasValidBarcode = false
|
|
84
|
-
if (this.hasCartonLabel) {
|
|
85
|
-
const selectedInventory = this.inventories.filter(inventory => inventory.cartonId === this.cartonInput.value)
|
|
86
|
-
if (!selectedInventory) throw new Error(i18next.t('text.invalid_carton_id'))
|
|
87
|
-
if (selectedInventory.some(inventory => !inventory?.completed))
|
|
88
|
-
throw new Error(i18next.t('text.still_pending_putaway'))
|
|
89
|
-
hasValidBarcode = this.inventories.map(inventory => inventory.cartonId).includes(this.cartonInput.value)
|
|
90
|
-
} else {
|
|
91
|
-
const selectedInventory = this.inventories.filter(inventory => inventory.palletId === this.palletInput.value)[0]
|
|
92
|
-
if (!selectedInventory) throw new Error(i18next.t('text.invalid_pallet_id'))
|
|
93
|
-
if (!selectedInventory?.completed) throw new Error(i18next.t('text.still_pending_putaway'))
|
|
94
|
-
hasValidBarcode = this.inventories.map(inventory => inventory.palletId).includes(this.palletInput.value)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (!hasValidBarcode) throw new Error(i18next.t('text.not_found_in_putaway_list'))
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
_showToast({ type, message }) {
|
|
101
|
-
document.dispatchEvent(
|
|
102
|
-
new CustomEvent('notify', {
|
|
103
|
-
detail: {
|
|
104
|
-
type,
|
|
105
|
-
message
|
|
106
|
-
}
|
|
107
|
-
})
|
|
108
|
-
)
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
window.customElements.define('scan-inventory-popup', ScanInventoryPopup)
|
package/config.development.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
useVirtualHostBasedDomain: false,
|
|
3
|
-
ormconfig: {
|
|
4
|
-
name: 'default',
|
|
5
|
-
type: 'postgres',
|
|
6
|
-
host: 'operato-instance-1.cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
7
|
-
database: 'operato',
|
|
8
|
-
username: 'operato',
|
|
9
|
-
password: 'abcd1234',
|
|
10
|
-
port: 55432,
|
|
11
|
-
synchronize: false,
|
|
12
|
-
logging: true
|
|
13
|
-
},
|
|
14
|
-
reportApiUrl: 'http://localhost:8090/rest/report/show_html',
|
|
15
|
-
storage: {
|
|
16
|
-
type: 's3',
|
|
17
|
-
accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
|
|
18
|
-
secretAccessKey: 'AuDAgmODf9EJNB24OveRhTSLV/OJy6IFFoRxe8k2',
|
|
19
|
-
bucketName: 'opa-one'
|
|
20
|
-
},
|
|
21
|
-
port: 3000,
|
|
22
|
-
uploads: 'uploads',
|
|
23
|
-
attachmentsPath: 'attachments',
|
|
24
|
-
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
|
|
25
|
-
logger: {
|
|
26
|
-
file: {
|
|
27
|
-
filename: 'logs/application-%DATE%.log',
|
|
28
|
-
datePattern: 'YYYY-MM-DD-HH',
|
|
29
|
-
zippedArchive: true,
|
|
30
|
-
maxSize: '200m',
|
|
31
|
-
maxFiles: '1m',
|
|
32
|
-
level: 'info'
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
email: {
|
|
37
|
-
host: 'smtp.office365.com',
|
|
38
|
-
port: 587,
|
|
39
|
-
secure: false, // true for 465, false for other ports
|
|
40
|
-
auth: {
|
|
41
|
-
user: 'no-reply@hatiolab.com', // generated ethereal user
|
|
42
|
-
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
43
|
-
},
|
|
44
|
-
secureConnection: false,
|
|
45
|
-
tls: {
|
|
46
|
-
ciphers: 'SSLv3'
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
notification: {
|
|
51
|
-
fcm: {
|
|
52
|
-
serviceAccount: {
|
|
53
|
-
project_id: 'operato',
|
|
54
|
-
private_key:
|
|
55
|
-
'-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0MAOmyPDJz/6AaTk\nkU/A+kLzAgMBAAECggEADQ5s2gtR53VSujk1V/Xe8e0Di99DwaWUj5w6YhcK7/wX\nPdQRN4Fw6RLeLjL7xeG/rCNSwzm6hKSrQJL5zLnWW7XbMdyQRk6jdmnVAEv3zACi\nFH9+eFK3e+Q214XfgWz/v4p/FZdRLCYni5VBNHcwyWxLLS/V1ynzB3KM1sDiTRmI\npcT7+uTtwrKgJq64sXtFE2pYrFxDdCiyqzkhv/2ed4YIowAjpKBbbcCDKeVxVkoz\nC1P4PAzs9EeUuKSWYrWaUjN17lqtRlYeT1ylR1PIJuWqd4cKfgoEgz+lHwRPDCEX\nAYbk3nofiJIPBhSfCHrXS755wK48mY8vMwFdfCPJeQKBgQDsz4tjYTHdat5A25n5\nekwMxZwFQ5OvMV4eulwZUDMypTAYSz1iB6sDlgwKDm5omZIfuneqCEIvrqxV/kx3\n5wV/DANHO3hYxdp/NV7rM23xmqlaKZhHQbDono1Fm/LP6DEmJiD7N2eFKsXYcPpR\nSAIdCv0X3zkDQ4zRi51yJlCXzQKBgQDpufJBxCoXngiQJ2j14lWVAeOOdQ6zh5Ip\nBcDwF0X67cNSN3Wl40bS4yLFdolhEAyj5m0WPuYYXpjzhHhZ0W3V3ItdBkrmwIvy\nWOWu26qN0ZbwxVS2qVpHuj6iHWJKHuDZZUkFtJg3BeeBSOUHSA8TvjnA0xd83xeb\n8ZJasWoFvwKBgQDFs/gQ/gIdcq0exLfluh5nw0qgcmyHpNWJHdjqITS9IX/nqFkU\n0IYLtmdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
|
|
56
|
-
client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
|
|
57
|
-
},
|
|
58
|
-
appConfig: {
|
|
59
|
-
apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
|
|
60
|
-
projectId: 'operato',
|
|
61
|
-
messagingSenderId: 79537064975,
|
|
62
|
-
appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
|
|
63
|
-
},
|
|
64
|
-
serverKey:
|
|
65
|
-
'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
|
|
66
|
-
},
|
|
67
|
-
vapidKey: {
|
|
68
|
-
subject: 'mailto:heartyoh@hatiolab.com',
|
|
69
|
-
publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
|
|
70
|
-
privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|