@things-factory/operato-wms 4.3.499 → 4.3.501
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/inbound/carton-label-popup.js +2 -3
- package/client/pages/order/draft-release-good/draft-release-good-list.js +31 -3
- package/client/pages/outbound/picking-product.js +23 -32
- package/package.json +5 -5
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +2 -0
- package/translations/zh.json +1 -0
|
@@ -8,6 +8,7 @@ import { client, store } from '@things-factory/shell'
|
|
|
8
8
|
import { css, html, LitElement } from 'lit-element'
|
|
9
9
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
10
10
|
import { CARTON_LABEL_SETTING_KEY, CARTON_LABEL_BY_SKU_SETTING_KEY } from '../constants'
|
|
11
|
+
import { sleep } from '@things-factory/utils'
|
|
11
12
|
|
|
12
13
|
import gql from 'graphql-tag'
|
|
13
14
|
|
|
@@ -241,7 +242,7 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
241
242
|
|
|
242
243
|
for (let i = 0; i < printData.length; i++) {
|
|
243
244
|
await sendToPrinter(labelId, { ...printData[i], carton: printData[i].cartonId }, this._printer)
|
|
244
|
-
|
|
245
|
+
await sleep(300)
|
|
245
246
|
}
|
|
246
247
|
}
|
|
247
248
|
break
|
|
@@ -258,9 +259,7 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
258
259
|
cartonId: results[i].cartonId,
|
|
259
260
|
customer: bizplaceName
|
|
260
261
|
}
|
|
261
|
-
|
|
262
262
|
await sendToPrinter(labelId, printData, this._printer)
|
|
263
|
-
setTimeout(50)
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
265
|
} catch (e) {
|
|
@@ -56,6 +56,11 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
constructor() {
|
|
60
|
+
super()
|
|
61
|
+
this._isExecuting = false
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
render() {
|
|
60
65
|
return html`
|
|
61
66
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
@@ -428,6 +433,12 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
428
433
|
|
|
429
434
|
async _generateReleaseGoods() {
|
|
430
435
|
try {
|
|
436
|
+
if (this._isExecuting) {
|
|
437
|
+
this._showToast({ message: i18next.t('text.generate_release_order_is_still_executing_please_wait') })
|
|
438
|
+
return
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
this._isExecuting = true
|
|
431
442
|
let orderIds = []
|
|
432
443
|
let selectedGristData = this.dataGrist.selected
|
|
433
444
|
|
|
@@ -446,6 +457,13 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
446
457
|
|
|
447
458
|
if (!result.value) return
|
|
448
459
|
|
|
460
|
+
CustomAlert({
|
|
461
|
+
title: i18next.t('text.please_wait'),
|
|
462
|
+
text: i18next.t('text.generating_release_order(s)'),
|
|
463
|
+
allowOutsideClick: true,
|
|
464
|
+
allowEscapeKey: false
|
|
465
|
+
})
|
|
466
|
+
|
|
449
467
|
let response = await client.mutate({
|
|
450
468
|
mutation: gql`
|
|
451
469
|
mutation generateReleaseGoodsfromDraft($releaseInfo: [DraftReleaseGoodInfos!]!) {
|
|
@@ -461,16 +479,26 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
461
479
|
|
|
462
480
|
if (!response.errors) {
|
|
463
481
|
if (response.data.generateReleaseGoodsfromDraft.length < 1) {
|
|
464
|
-
|
|
482
|
+
await CustomAlert({
|
|
483
|
+
title: i18next.t('title.completed'),
|
|
484
|
+
text: i18next.t('text.release_order(s)_has_been_generated'),
|
|
485
|
+
confirmButton: { text: i18next.t('button.confirm') }
|
|
486
|
+
})
|
|
465
487
|
} else {
|
|
466
|
-
|
|
467
|
-
|
|
488
|
+
// this.dataGrist.fetch()
|
|
489
|
+
CustomAlert({
|
|
490
|
+
title: i18next.t('title.error'),
|
|
491
|
+
text: i18next.t('text.unable_to_release_specific_draft_order(s)_due_to_insufficient_quantity'),
|
|
492
|
+
confirmButton: { text: i18next.t('button.confirm') }
|
|
493
|
+
})
|
|
468
494
|
}
|
|
469
495
|
|
|
470
496
|
this.dataGrist.fetch()
|
|
497
|
+
this._isExecuting = false
|
|
471
498
|
}
|
|
472
499
|
} catch (e) {
|
|
473
500
|
this._showToast(e)
|
|
501
|
+
this._isExecuting = false
|
|
474
502
|
}
|
|
475
503
|
}
|
|
476
504
|
|
|
@@ -9,26 +9,14 @@ import './tote-popup'
|
|
|
9
9
|
import './vas-list-popup'
|
|
10
10
|
|
|
11
11
|
import gql from 'graphql-tag'
|
|
12
|
-
import {
|
|
13
|
-
css,
|
|
14
|
-
html
|
|
15
|
-
} from 'lit-element'
|
|
12
|
+
import { css, html } from 'lit-element'
|
|
16
13
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
17
14
|
|
|
18
15
|
import { sleep } from '@operato/utils'
|
|
19
16
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
20
|
-
import {
|
|
21
|
-
i18next,
|
|
22
|
-
localize
|
|
23
|
-
} from '@things-factory/i18n-base'
|
|
17
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
24
18
|
import { openPopup } from '@things-factory/layout-base'
|
|
25
|
-
import {
|
|
26
|
-
client,
|
|
27
|
-
CustomAlert,
|
|
28
|
-
gqlContext,
|
|
29
|
-
PageView,
|
|
30
|
-
store
|
|
31
|
-
} from '@things-factory/shell'
|
|
19
|
+
import { client, CustomAlert, gqlContext, PageView, store } from '@things-factory/shell'
|
|
32
20
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
33
21
|
import { isMobileDevice } from '@things-factory/utils'
|
|
34
22
|
|
|
@@ -567,10 +555,11 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
567
555
|
}
|
|
568
556
|
|
|
569
557
|
async pageInitialized() {
|
|
570
|
-
const [enableBinPickingTask, locationSortingTask, cameraScanOnly] = [
|
|
558
|
+
const [enableBinPickingTask, locationSortingTask, cameraScanOnly, enablePickingRandomSeq] = [
|
|
571
559
|
fetchSettingRule('enable-bin-picking'),
|
|
572
560
|
fetchLocationSortingRule(LOCATION_SORTING_RULE.PICKING_PRODUCT.value),
|
|
573
|
-
fetchSettingRule('camera-scan-only')
|
|
561
|
+
fetchSettingRule('camera-scan-only'),
|
|
562
|
+
fetchSettingRule('enable-picking-random-seq')
|
|
574
563
|
]
|
|
575
564
|
|
|
576
565
|
this.config = {
|
|
@@ -727,6 +716,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
727
716
|
|
|
728
717
|
this._pageSettings = {
|
|
729
718
|
...this._pageSettings,
|
|
719
|
+
enablePickingRandomSeq: (await enablePickingRandomSeq) || false,
|
|
730
720
|
cameraScanOnly: (await cameraScanOnly) || false
|
|
731
721
|
}
|
|
732
722
|
}
|
|
@@ -875,7 +865,6 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
875
865
|
.replacePalletId="${this.palletInput.value}"
|
|
876
866
|
@completed="${() => {
|
|
877
867
|
this._selectedOrderInventory = null
|
|
878
|
-
let a = this._selectedOrderInventory
|
|
879
868
|
if (this.refPickingType === PICKING_TYPES.PICKING.value) {
|
|
880
869
|
this.fetchInventories(this.releaseGoodNoInput.value)
|
|
881
870
|
this.fetchPalletsHandler(this.releaseGoodNoInput.value)
|
|
@@ -1252,19 +1241,21 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1252
1241
|
|
|
1253
1242
|
if (this._selectedOrderInventory.cartonId) {
|
|
1254
1243
|
if (this._selectedOrderInventory.cartonId !== this.cartonInput.value) {
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
//
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1244
|
+
let foundRecord = {}
|
|
1245
|
+
|
|
1246
|
+
// Auto Find matching carton for pick scanning row without forcing the user to choose
|
|
1247
|
+
if (this._pageSettings.enablePickingRandomSeq == true) {
|
|
1248
|
+
let cartonInputValue = this.cartonInput.value
|
|
1249
|
+
foundRecord = this.data.records.find(rec => rec.cartonId === cartonInputValue)
|
|
1250
|
+
this._selectedOrderInventory = { ...foundRecord }
|
|
1251
|
+
} else {
|
|
1252
|
+
foundRecord = null
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
if (!foundRecord) {
|
|
1256
|
+
//carton replacement?
|
|
1257
|
+
throw new Error(i18next.t('text.invalid_carton_id'))
|
|
1258
|
+
}
|
|
1268
1259
|
}
|
|
1269
1260
|
|
|
1270
1261
|
if (this._enableProductScanning) {
|
|
@@ -1731,7 +1722,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1731
1722
|
if (!response.errors) {
|
|
1732
1723
|
//if (!this._selectedOrderInventory) this.clearView()
|
|
1733
1724
|
this.taskNo = pickingRefNo
|
|
1734
|
-
|
|
1725
|
+
|
|
1735
1726
|
this._worksheetLoaded = true
|
|
1736
1727
|
|
|
1737
1728
|
if (!response.data?.batchPickingWorksheet) return
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.501",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@things-factory/print-ui": "^4.3.434",
|
|
92
92
|
"@things-factory/product-base": "^4.3.495",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.452",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.501",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.381",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.381",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.381",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.434",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.452",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.452",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.501",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.501"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.381",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "166a28a7bc039dc1c4f21ba305052ee1ba375abe"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -1415,6 +1415,7 @@
|
|
|
1415
1415
|
"text.gan_now_editable": "GAN now editable",
|
|
1416
1416
|
"text.gan_pending_company_approval": "GAN pending company approval",
|
|
1417
1417
|
"text.gan_will_be_sent_for_company_approval": "GAN will be sent for company approval",
|
|
1418
|
+
"text.generate_release_order_is_still_executing_please_wait": "generate release order is still executing please wait",
|
|
1418
1419
|
"text.generate_putaway_worksheet": "generate putaway worksheet",
|
|
1419
1420
|
"text.generate_worksheet": "generate worksheet",
|
|
1420
1421
|
"text.goods_delivery_note_uploaded": "goods delivery note uploaded",
|
package/translations/ko.json
CHANGED
|
@@ -1397,6 +1397,7 @@
|
|
|
1397
1397
|
"text.gan_will_be_sent_for_company_approval": "회사 승인을 위해 입고요청",
|
|
1398
1398
|
"text.generate_putaway_worksheet": "적지작업지시서 생성",
|
|
1399
1399
|
"text.generate_worksheet": "[ko] generate worksheet",
|
|
1400
|
+
"text.generate_release_order_is_still_executing_please_wait": "[ko]generate release order is still executing please wait",
|
|
1400
1401
|
"text.goods_delivery_note_uploaded": "상품배송정보 업로드",
|
|
1401
1402
|
"text.goods_received_in_good_order_condition": "goods received in good order condition",
|
|
1402
1403
|
"text.goods_received_note_has_been_received": "상품수령서가 수락되엇ㅆ브니다",
|
package/translations/ms.json
CHANGED
|
@@ -1366,6 +1366,7 @@
|
|
|
1366
1366
|
"text.gan_will_be_sent_for_company_approval": "GAN akan dihantar untuk kelulusan syarikat",
|
|
1367
1367
|
"text.generate_putaway_worksheet": "jana lembaran kerja peletakan",
|
|
1368
1368
|
"text.generate_worksheet": "[ms] generate worksheet",
|
|
1369
|
+
"text.generate_release_order_is_still_executing_please_wait": "[ms]generate release order is still executing please wait",
|
|
1369
1370
|
"text.goods_delivery_note_uploaded": "nota penghantaran barang dimuat naik",
|
|
1370
1371
|
"text.goods_received_note_has_been_received": "GRN ditanda sebagai diterima",
|
|
1371
1372
|
"text.goods_received_note_has_been_sent_successfully": "GRN berjaya dihantar",
|
|
@@ -1707,6 +1708,7 @@
|
|
|
1707
1708
|
"text.truck_is_not_selected": "[ms] truck is not selected",
|
|
1708
1709
|
"text.truck_no_is_empty": "[ms] truck number is empty",
|
|
1709
1710
|
"text.unable_to_save_print_history_x": "[ms] unable to save print history ({state.counter} label(s) printed). Kindly contact our support",
|
|
1711
|
+
|
|
1710
1712
|
"text.undo_inspection": "[ms] undo inspection",
|
|
1711
1713
|
"text.undo_inventory": "[ms]undo inventory",
|
|
1712
1714
|
"text.undo_picking_worksheet": "undo inventory selection",
|
package/translations/zh.json
CHANGED
|
@@ -1333,6 +1333,7 @@
|
|
|
1333
1333
|
"text.gan_will_be_sent_for_company_approval": "GAN will be sent for company approval",
|
|
1334
1334
|
"text.generate_putaway_worksheet": "generate putaway worksheet",
|
|
1335
1335
|
"text.generate_worksheet": "[zh] generate worksheet",
|
|
1336
|
+
"text.generate_release_order_is_still_executing_please_wait": "[zh]generate release order is still executing please wait",
|
|
1336
1337
|
"text.goods_delivery_note_uploaded": "goods delivery note uploaded",
|
|
1337
1338
|
"text.goods_received_note_has_been_received": "GRN has been marked received",
|
|
1338
1339
|
"text.goods_received_note_has_been_sent_successfully": "GRN has been sent successfully",
|