@things-factory/operato-wms 4.3.115 → 4.3.117
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/putaway-product.js +45 -4
- package/client/pages/inbound/unload-product.js +46 -4
- package/client/pages/order/release-order/create-release-order.js +13 -11
- package/client/pages/order/release-order/release-order-detail.js +17 -15
- package/client/pages/order/transport-order/delivery-note-popup.js +14 -11
- package/client/pages/outbound/picking-product.js +68 -9
- package/config.development.js +104 -0
- package/package.json +5 -5
|
@@ -50,7 +50,8 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
50
50
|
_scanning: Boolean,
|
|
51
51
|
_worksheetInfo: Object,
|
|
52
52
|
_records: Array,
|
|
53
|
-
_selectedLocation: String
|
|
53
|
+
_selectedLocation: String,
|
|
54
|
+
_pageSettings: Object
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -209,11 +210,32 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
209
210
|
${this._enableCartonLabel
|
|
210
211
|
? html`
|
|
211
212
|
<label>${i18next.t('label.carton_id')}</label>
|
|
212
|
-
<barcode-scanable-input
|
|
213
|
+
<barcode-scanable-input
|
|
214
|
+
name="cartonId"
|
|
215
|
+
custom-input
|
|
216
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
217
|
+
@keypress="${async e => {
|
|
218
|
+
if (e.keyCode === 13) {
|
|
219
|
+
e.preventDefault()
|
|
220
|
+
await this._putaway(e)
|
|
221
|
+
}
|
|
222
|
+
}}"
|
|
223
|
+
></barcode-scanable-input>
|
|
213
224
|
`
|
|
214
225
|
: html`
|
|
215
226
|
<label>${i18next.t('label.lot_id')}</label>
|
|
216
|
-
<barcode-scanable-input
|
|
227
|
+
<barcode-scanable-input
|
|
228
|
+
name="palletId"
|
|
229
|
+
.value=${this._pallet}
|
|
230
|
+
custom-input
|
|
231
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
232
|
+
@keypress="${async e => {
|
|
233
|
+
if (e.keyCode === 13) {
|
|
234
|
+
e.preventDefault()
|
|
235
|
+
await this._putaway(e)
|
|
236
|
+
}
|
|
237
|
+
}}"
|
|
238
|
+
></barcode-scanable-input>
|
|
217
239
|
`}
|
|
218
240
|
${this._operationType === OPERATION_TYPE.PUTAWAY
|
|
219
241
|
? html`
|
|
@@ -223,6 +245,13 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
223
245
|
name="locationCode"
|
|
224
246
|
.value=${this._location}
|
|
225
247
|
custom-input
|
|
248
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
249
|
+
@keypress="${async e => {
|
|
250
|
+
if (e.keyCode === 13) {
|
|
251
|
+
e.preventDefault()
|
|
252
|
+
await this._putaway(e)
|
|
253
|
+
}
|
|
254
|
+
}}"
|
|
226
255
|
></barcode-scanable-input>`
|
|
227
256
|
: ''}
|
|
228
257
|
<select
|
|
@@ -249,6 +278,13 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
249
278
|
name="toPalletId"
|
|
250
279
|
.value=${this._location}
|
|
251
280
|
custom-input
|
|
281
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
282
|
+
@keypress="${async e => {
|
|
283
|
+
if (e.keyCode === 13) {
|
|
284
|
+
e.preventDefault()
|
|
285
|
+
await this._putaway(e)
|
|
286
|
+
}
|
|
287
|
+
}}"
|
|
252
288
|
></barcode-scanable-input>
|
|
253
289
|
|
|
254
290
|
<label>${i18next.t('label.qty')}</label>
|
|
@@ -310,7 +346,12 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
310
346
|
}
|
|
311
347
|
}
|
|
312
348
|
|
|
313
|
-
pageInitialized() {
|
|
349
|
+
async pageInitialized() {
|
|
350
|
+
this._pageSettings = {
|
|
351
|
+
...this._pageSettings,
|
|
352
|
+
cameraScanOnly: (await fetchSettingRule('camera-scan-only')) || false
|
|
353
|
+
}
|
|
354
|
+
|
|
314
355
|
this.config = {
|
|
315
356
|
rows: {
|
|
316
357
|
appendable: false,
|
|
@@ -53,7 +53,8 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
53
53
|
orderProductConfig: Object,
|
|
54
54
|
orderProductData: Object,
|
|
55
55
|
orderVasData: Object,
|
|
56
|
-
refOrderType: String
|
|
56
|
+
refOrderType: String,
|
|
57
|
+
_pageSettings: Object
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -260,6 +261,13 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
260
261
|
.value=${this._cartonId}
|
|
261
262
|
without-enter
|
|
262
263
|
custom-input
|
|
264
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
265
|
+
@keypress="${async e => {
|
|
266
|
+
if (e.keyCode === 13) {
|
|
267
|
+
e.preventDefault()
|
|
268
|
+
await this._transactionHandler(e)
|
|
269
|
+
}
|
|
270
|
+
}}"
|
|
263
271
|
></barcode-scanable-input>`
|
|
264
272
|
: html`<label>${i18next.t('label.lot_id')}</label>
|
|
265
273
|
<barcode-scanable-input
|
|
@@ -267,11 +275,29 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
267
275
|
.value=${this._palletId}
|
|
268
276
|
without-enter
|
|
269
277
|
custom-input
|
|
278
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
279
|
+
@keypress="${async e => {
|
|
280
|
+
if (e.keyCode === 13) {
|
|
281
|
+
e.preventDefault()
|
|
282
|
+
await this._transactionHandler(e)
|
|
283
|
+
}
|
|
284
|
+
}}"
|
|
270
285
|
></barcode-scanable-input>`}
|
|
271
286
|
${this._enableProductScanning
|
|
272
287
|
? html`
|
|
273
288
|
<label>${i18next.t('label.product_barcode')}</label>
|
|
274
|
-
<barcode-scanable-input
|
|
289
|
+
<barcode-scanable-input
|
|
290
|
+
name="productBarcode"
|
|
291
|
+
without-enter
|
|
292
|
+
custom-input
|
|
293
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
294
|
+
@keypress="${async e => {
|
|
295
|
+
if (e.keyCode === 13) {
|
|
296
|
+
e.preventDefault()
|
|
297
|
+
await this._transactionHandler(e)
|
|
298
|
+
}
|
|
299
|
+
}}"
|
|
300
|
+
></barcode-scanable-input>
|
|
275
301
|
`
|
|
276
302
|
: ''}
|
|
277
303
|
${this._enableInputQty >= 0 && this._enableInputQty < 4 && !this._isRequireSerialNumberScanningInbound
|
|
@@ -290,7 +316,18 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
290
316
|
${this._isRequireSerialNumberScanningInbound
|
|
291
317
|
? html`<fieldset>
|
|
292
318
|
<label>${i18next.t('label.serial_number')}</label>
|
|
293
|
-
<barcode-scanable-input
|
|
319
|
+
<barcode-scanable-input
|
|
320
|
+
name="serialNumber"
|
|
321
|
+
without-enter
|
|
322
|
+
custom-input
|
|
323
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
324
|
+
@keypress="${async e => {
|
|
325
|
+
if (e.keyCode === 13) {
|
|
326
|
+
e.preventDefault()
|
|
327
|
+
await this._transactionHandler(e)
|
|
328
|
+
}
|
|
329
|
+
}}"
|
|
330
|
+
></barcode-scanable-input>
|
|
294
331
|
</fieldset>`
|
|
295
332
|
: ''}
|
|
296
333
|
</form>
|
|
@@ -354,7 +391,12 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
354
391
|
}
|
|
355
392
|
}
|
|
356
393
|
|
|
357
|
-
pageInitialized() {
|
|
394
|
+
async pageInitialized() {
|
|
395
|
+
this._pageSettings = {
|
|
396
|
+
...this._pageSettings,
|
|
397
|
+
cameraScanOnly: await fetchSettingRule('camera-scan-only')
|
|
398
|
+
}
|
|
399
|
+
|
|
358
400
|
this.orderProductConfig = {
|
|
359
401
|
rows: {
|
|
360
402
|
appendable: false,
|
|
@@ -538,7 +538,9 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
538
538
|
this._validateCountry(e)
|
|
539
539
|
}}
|
|
540
540
|
>
|
|
541
|
-
${this._allCountry?.map(
|
|
541
|
+
${this._allCountry?.map(
|
|
542
|
+
(country, key) => html`<option value=${country.description}>${country.name}</option>`
|
|
543
|
+
)}
|
|
542
544
|
</select>
|
|
543
545
|
|
|
544
546
|
|
|
@@ -588,7 +590,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
588
590
|
this._validateBillingCountry(e)
|
|
589
591
|
}}
|
|
590
592
|
>
|
|
591
|
-
${this._allCountry?.map((country, key) => html`<option value=${country.
|
|
593
|
+
${this._allCountry?.map((country, key) => html`<option value=${country.description}>${country.name}</option>`)}
|
|
592
594
|
</select>
|
|
593
595
|
|
|
594
596
|
<label>${i18next.t('label.zip_postal_code')}</label>
|
|
@@ -1188,8 +1190,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1188
1190
|
this._switchBillingCountryInput = false
|
|
1189
1191
|
this._disableBillingAddress = false
|
|
1190
1192
|
this._showExportInfo = true
|
|
1191
|
-
this._selectedDeliveryCountry = '
|
|
1192
|
-
this._selectedBillingCountry = '
|
|
1193
|
+
this._selectedDeliveryCountry = 'MY'
|
|
1194
|
+
this._selectedBillingCountry = 'MY'
|
|
1193
1195
|
this.containerSizes = []
|
|
1194
1196
|
this._containerClosureDate = ''
|
|
1195
1197
|
this._recallToggle = false
|
|
@@ -2405,7 +2407,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2405
2407
|
}
|
|
2406
2408
|
|
|
2407
2409
|
_validateCountry(e) {
|
|
2408
|
-
if (e.target.value != '
|
|
2410
|
+
if (e.target.value != 'MY') {
|
|
2409
2411
|
this._switchDeliveryCountryInput = true
|
|
2410
2412
|
} else {
|
|
2411
2413
|
this._switchDeliveryCountryInput = false
|
|
@@ -2413,7 +2415,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2413
2415
|
}
|
|
2414
2416
|
|
|
2415
2417
|
_validateBillingCountry(e) {
|
|
2416
|
-
if (e.target.value != '
|
|
2418
|
+
if (e.target.value != 'MY') {
|
|
2417
2419
|
this._switchBillingCountryInput = true
|
|
2418
2420
|
this._selectedBillingCountry = e.target.value
|
|
2419
2421
|
} else {
|
|
@@ -2483,13 +2485,13 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2483
2485
|
|
|
2484
2486
|
switch (name) {
|
|
2485
2487
|
case 'postalCode':
|
|
2486
|
-
this.
|
|
2487
|
-
this.
|
|
2488
|
+
this._deliveryCity = cityName.toUpperCase()
|
|
2489
|
+
this._deliveryState = stateName
|
|
2488
2490
|
break
|
|
2489
2491
|
|
|
2490
2492
|
case 'billingPostalCode':
|
|
2491
|
-
this.
|
|
2492
|
-
this.
|
|
2493
|
+
this._billingCity = cityName.toUpperCase()
|
|
2494
|
+
this._billingState = stateName
|
|
2493
2495
|
|
|
2494
2496
|
default:
|
|
2495
2497
|
break
|
|
@@ -2934,7 +2936,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2934
2936
|
city: data.city || '',
|
|
2935
2937
|
state: data.state || '',
|
|
2936
2938
|
postalCode: data.postCode || '',
|
|
2937
|
-
country: '
|
|
2939
|
+
country: 'MY',
|
|
2938
2940
|
phone1: data.phone || '',
|
|
2939
2941
|
deliveryAddress1: data.address ? data.address : '' + data.address2 ? data.address2 : '',
|
|
2940
2942
|
billingAddress: data.billingAddress
|
|
@@ -494,7 +494,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
494
494
|
>
|
|
495
495
|
${this._deliveryAllCountry?.map(
|
|
496
496
|
(country, key) =>
|
|
497
|
-
html`<option value=${country.
|
|
497
|
+
html`<option value=${country.description} ?selected=${country.description === this._selectedCountry}>
|
|
498
498
|
${country.name}
|
|
499
499
|
</option>`
|
|
500
500
|
)}
|
|
@@ -502,7 +502,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
502
502
|
|
|
503
503
|
<label>${i18next.t('label.zip_postal_code')}</label>
|
|
504
504
|
${
|
|
505
|
-
this._selectedCountry !== '
|
|
505
|
+
this._selectedCountry !== 'MY'
|
|
506
506
|
? html` <input name="postalCode" .value="" /> `
|
|
507
507
|
: html`<select
|
|
508
508
|
name="postalCode"
|
|
@@ -551,7 +551,10 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
551
551
|
>
|
|
552
552
|
${this._deliveryAllCountry.map(
|
|
553
553
|
(country, key) =>
|
|
554
|
-
html`<option
|
|
554
|
+
html`<option
|
|
555
|
+
value=${country.description}
|
|
556
|
+
?selected=${country.description === this._selectedBillingCountry}
|
|
557
|
+
>
|
|
555
558
|
${country.name}
|
|
556
559
|
</option>`
|
|
557
560
|
)}
|
|
@@ -562,12 +565,12 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
562
565
|
|
|
563
566
|
|
|
564
567
|
${
|
|
565
|
-
this._selectedBillingCountry !== '
|
|
568
|
+
this._selectedBillingCountry !== 'MY'
|
|
566
569
|
? html`
|
|
567
570
|
<input
|
|
568
571
|
?disabled=${this._disableBillingAddress}
|
|
569
572
|
name="billingPostalCode"
|
|
570
|
-
.value=${this._releaseOrder.billingPostalCode}
|
|
573
|
+
.value=${this._releaseOrder.billingPostalCode || this._releaseOrder.postalCode}
|
|
571
574
|
/>
|
|
572
575
|
`
|
|
573
576
|
: html`<select
|
|
@@ -576,14 +579,15 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
576
579
|
@change=${e => {
|
|
577
580
|
this._getStateAndCityByPostCode(e.target.value, e.target.name)
|
|
578
581
|
}}
|
|
579
|
-
value=${this._releaseOrder.billingPostalCode}
|
|
582
|
+
value=${this._releaseOrder.billingPostalCode || this._releaseOrder.postalCode}
|
|
580
583
|
>
|
|
581
584
|
<option value=""></option>
|
|
582
585
|
|
|
583
586
|
${this._billingPostCode.map(
|
|
584
587
|
(country, key) =>
|
|
585
588
|
html`<option
|
|
586
|
-
?selected=${this._releaseOrder.billingPostalCode
|
|
589
|
+
?selected=${(this._releaseOrder.billingPostalCode || this._releaseOrder.postalCode) ==
|
|
590
|
+
country.postalCode}
|
|
587
591
|
value=${country.postalCode}
|
|
588
592
|
>
|
|
589
593
|
${country.postalCode}
|
|
@@ -1659,7 +1663,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1659
1663
|
_fillupDAForm(data) {
|
|
1660
1664
|
this._fillupForm(this.shippingInfoForm, data)
|
|
1661
1665
|
this._selectedCountry = data.country
|
|
1662
|
-
this._selectedBillingCountry = data.billingCountry
|
|
1666
|
+
this._selectedBillingCountry = data.billingCountry || data.country
|
|
1663
1667
|
this._releaseOrder.billingPostalCode = data.billingPostalCode
|
|
1664
1668
|
}
|
|
1665
1669
|
|
|
@@ -2096,13 +2100,11 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2096
2100
|
|
|
2097
2101
|
switch (name) {
|
|
2098
2102
|
case 'postalCode':
|
|
2099
|
-
this.
|
|
2100
|
-
this._stateInput.value = cityName.toUpperCase()
|
|
2103
|
+
this._releaseOrder = { ...this._releaseOrder, city: cityName.toUpperCase(), state: stateName }
|
|
2101
2104
|
break
|
|
2102
2105
|
|
|
2103
2106
|
case 'billingPostalCode':
|
|
2104
|
-
this.
|
|
2105
|
-
this._stateBillingInput.value = cityName.toUpperCase()
|
|
2107
|
+
this._releaseOrder = { ...this._releaseOrder, billingCity: cityName.toUpperCase(), billingState: stateName }
|
|
2106
2108
|
|
|
2107
2109
|
default:
|
|
2108
2110
|
break
|
|
@@ -2221,7 +2223,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2221
2223
|
city: data.city || '',
|
|
2222
2224
|
state: data.state || '',
|
|
2223
2225
|
postalCode: data.postCode || '',
|
|
2224
|
-
country: '
|
|
2226
|
+
country: 'MY',
|
|
2225
2227
|
phone1: data.phone || '',
|
|
2226
2228
|
deliveryAddress1: data.address ? data.address : '' + data.address2 ? data.address2 : '',
|
|
2227
2229
|
billingAddress: data.billingAddress
|
|
@@ -2233,7 +2235,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2233
2235
|
}
|
|
2234
2236
|
|
|
2235
2237
|
_validateCountry(e) {
|
|
2236
|
-
if (e.target.value != '
|
|
2238
|
+
if (e.target.value != 'MY') {
|
|
2237
2239
|
this._selectedCountry = e.target.value
|
|
2238
2240
|
} else {
|
|
2239
2241
|
this._selectedCountry = e.target.value
|
|
@@ -2241,7 +2243,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2241
2243
|
}
|
|
2242
2244
|
|
|
2243
2245
|
_validateBillingCountry(e) {
|
|
2244
|
-
if (e.target.value != '
|
|
2246
|
+
if (e.target.value != 'MY') {
|
|
2245
2247
|
this._selectedBillingCountry = e.target.value
|
|
2246
2248
|
} else {
|
|
2247
2249
|
this._selectedBillingCountry = e.target.value
|
|
@@ -96,12 +96,12 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
|
|
|
96
96
|
this._showShippingInfo = true
|
|
97
97
|
this._exportOption = false
|
|
98
98
|
this._companyName = ''
|
|
99
|
-
this._deliveryCountry = '
|
|
99
|
+
this._deliveryCountry = 'MY'
|
|
100
100
|
this._deliveryPostCode = []
|
|
101
101
|
this._deliveryState = ''
|
|
102
102
|
this._deliveryCity = ''
|
|
103
103
|
this._deliveryContact = ''
|
|
104
|
-
this._billingCountry = '
|
|
104
|
+
this._billingCountry = 'MY'
|
|
105
105
|
this._billingPostCode = []
|
|
106
106
|
this._billingState = ''
|
|
107
107
|
this._billingCity = ''
|
|
@@ -494,14 +494,14 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
|
|
|
494
494
|
>
|
|
495
495
|
${this._deliveryAllCountry?.map(
|
|
496
496
|
(country, key) =>
|
|
497
|
-
html`<option value=${country.
|
|
497
|
+
html`<option value=${country.description} ?selected=${country.description === this._selectedCountry}>
|
|
498
498
|
${country.name}
|
|
499
499
|
</option>`
|
|
500
500
|
)}
|
|
501
501
|
</select>
|
|
502
502
|
|
|
503
503
|
<label>${i18next.t('label.zip_postal_code')}</label>
|
|
504
|
-
${this._selectedCountry !== '
|
|
504
|
+
${this._selectedCountry !== 'MY'
|
|
505
505
|
? html` <input name="postalCode" .value="" /> `
|
|
506
506
|
: html`<select
|
|
507
507
|
name="postalCode"
|
|
@@ -548,7 +548,10 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
|
|
|
548
548
|
>
|
|
549
549
|
${this._deliveryAllCountry.map(
|
|
550
550
|
(country, key) =>
|
|
551
|
-
html`<option
|
|
551
|
+
html`<option
|
|
552
|
+
value=${country.description}
|
|
553
|
+
?selected=${country.description === this._selectedBillingCountry}
|
|
554
|
+
>
|
|
552
555
|
${country.name}
|
|
553
556
|
</option>`
|
|
554
557
|
)}
|
|
@@ -556,7 +559,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
|
|
|
556
559
|
|
|
557
560
|
<label>${i18next.t('label.zip_postal_code')}</label>
|
|
558
561
|
|
|
559
|
-
${this._selectedBillingCountry !== '
|
|
562
|
+
${this._selectedBillingCountry !== 'MY'
|
|
560
563
|
? html`
|
|
561
564
|
<input
|
|
562
565
|
?disabled=${this._disableBillingAddress}
|
|
@@ -1507,7 +1510,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
|
|
|
1507
1510
|
city: data.city || '',
|
|
1508
1511
|
state: data.state || '',
|
|
1509
1512
|
postalCode: data.postCode || '',
|
|
1510
|
-
country: '
|
|
1513
|
+
country: 'MY',
|
|
1511
1514
|
phone1: data.phone || '',
|
|
1512
1515
|
deliveryAddress1: data.address ? data.address : '' + data.address2 ? data.address2 : '',
|
|
1513
1516
|
billingAddress: data.billingAddress
|
|
@@ -1547,7 +1550,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
|
|
|
1547
1550
|
}
|
|
1548
1551
|
|
|
1549
1552
|
_validateCountry(e) {
|
|
1550
|
-
if (e.target.value != '
|
|
1553
|
+
if (e.target.value != 'MY') {
|
|
1551
1554
|
this._selectedCountry = e.target.value
|
|
1552
1555
|
} else {
|
|
1553
1556
|
this._selectedCountry = e.target.value
|
|
@@ -1555,7 +1558,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
|
|
|
1555
1558
|
}
|
|
1556
1559
|
|
|
1557
1560
|
_validateBillingCountry(e) {
|
|
1558
|
-
if (e.target.value != '
|
|
1561
|
+
if (e.target.value != 'MY') {
|
|
1559
1562
|
this._selectedBillingCountry = e.target.value
|
|
1560
1563
|
} else {
|
|
1561
1564
|
this._selectedBillingCountry = e.target.value
|
|
@@ -1564,13 +1567,13 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
|
|
|
1564
1567
|
|
|
1565
1568
|
_fillupDAForm(data) {
|
|
1566
1569
|
this._fillupForm(this.deliveryAddressForm, data)
|
|
1567
|
-
this._selectedCountry = data.country || '
|
|
1570
|
+
this._selectedCountry = data.country || 'MY'
|
|
1568
1571
|
this._deliveryOrder.postalCode = data.postalCode
|
|
1569
1572
|
}
|
|
1570
1573
|
|
|
1571
1574
|
_fillupBLForm(data) {
|
|
1572
1575
|
this._fillupForm(this.billingAddressForm, data)
|
|
1573
|
-
this._selectedBillingCountry = data.billingCountry || '
|
|
1576
|
+
this._selectedBillingCountry = data.billingCountry || 'MY'
|
|
1574
1577
|
this._deliveryOrder.billingPostalCode = data.billingPostalCode
|
|
1575
1578
|
}
|
|
1576
1579
|
|
|
@@ -57,7 +57,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
57
57
|
releaseGoodNo: String,
|
|
58
58
|
releaseGoodId: String,
|
|
59
59
|
worksheetNo: String,
|
|
60
|
-
toteNo: String
|
|
60
|
+
toteNo: String,
|
|
61
|
+
_pageSettings: Object
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -372,10 +373,12 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
372
373
|
<barcode-scanable-input
|
|
373
374
|
name="binLocation"
|
|
374
375
|
custom-input
|
|
375
|
-
|
|
376
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
377
|
+
@keypress="${async e => {
|
|
376
378
|
if (e.keyCode === 13) {
|
|
377
379
|
e.preventDefault()
|
|
378
380
|
this._currentBinLocation = this.binLocationInput.value
|
|
381
|
+
await this.picking(e)
|
|
379
382
|
}
|
|
380
383
|
}}"
|
|
381
384
|
></barcode-scanable-input>
|
|
@@ -384,16 +387,46 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
384
387
|
${this._isCartonLabel
|
|
385
388
|
? html`
|
|
386
389
|
<label>${i18next.t('label.carton_id')}</label>
|
|
387
|
-
<barcode-scanable-input
|
|
390
|
+
<barcode-scanable-input
|
|
391
|
+
name="cartonId"
|
|
392
|
+
custom-input
|
|
393
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
394
|
+
@keypress="${async e => {
|
|
395
|
+
if (e.keyCode === 13) {
|
|
396
|
+
e.preventDefault()
|
|
397
|
+
await this.picking(e)
|
|
398
|
+
}
|
|
399
|
+
}}"
|
|
400
|
+
></barcode-scanable-input>
|
|
388
401
|
`
|
|
389
402
|
: html`
|
|
390
403
|
<label>${i18next.t('label.lot_id')}</label>
|
|
391
|
-
<barcode-scanable-input
|
|
404
|
+
<barcode-scanable-input
|
|
405
|
+
name="palletId"
|
|
406
|
+
custom-input
|
|
407
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
408
|
+
@keypress="${async e => {
|
|
409
|
+
if (e.keyCode === 13) {
|
|
410
|
+
e.preventDefault()
|
|
411
|
+
await this.picking(e)
|
|
412
|
+
}
|
|
413
|
+
}}"
|
|
414
|
+
></barcode-scanable-input>
|
|
392
415
|
`}
|
|
393
416
|
${this._enableProductScanning && this._isCartonLabel
|
|
394
417
|
? html`
|
|
395
418
|
<label>${i18next.t('label.product_barcode')}</label>
|
|
396
|
-
<barcode-scanable-input
|
|
419
|
+
<barcode-scanable-input
|
|
420
|
+
name="productBarcode"
|
|
421
|
+
custom-input
|
|
422
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
423
|
+
@keypress="${async e => {
|
|
424
|
+
if (e.keyCode === 13) {
|
|
425
|
+
e.preventDefault()
|
|
426
|
+
await this.picking(e)
|
|
427
|
+
}
|
|
428
|
+
}}"
|
|
429
|
+
></barcode-scanable-input>
|
|
397
430
|
`
|
|
398
431
|
: ''}
|
|
399
432
|
${!this._isRequireSerialNumberScanningOutbound &&
|
|
@@ -409,7 +442,17 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
409
442
|
${this._isRequireSerialNumberScanningOutbound
|
|
410
443
|
? html`
|
|
411
444
|
<label>${i18next.t('label.serial_number')}</label>
|
|
412
|
-
<barcode-scanable-input
|
|
445
|
+
<barcode-scanable-input
|
|
446
|
+
name="serialNumber"
|
|
447
|
+
custom-input
|
|
448
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
449
|
+
@keypress="${async e => {
|
|
450
|
+
if (e.keyCode === 13) {
|
|
451
|
+
e.preventDefault()
|
|
452
|
+
await this.picking(e)
|
|
453
|
+
}
|
|
454
|
+
}}"
|
|
455
|
+
></barcode-scanable-input>
|
|
413
456
|
`
|
|
414
457
|
: ``}
|
|
415
458
|
${this.isWholePicking ||
|
|
@@ -423,7 +466,17 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
423
466
|
: html`${(this._isRequireSerialNumberScanningOutbound && this._isLastUnit) ||
|
|
424
467
|
!this._isRequireSerialNumberScanningOutbound
|
|
425
468
|
? html` <label>${i18next.t('label.return_location')}</label>
|
|
426
|
-
<barcode-scanable-input
|
|
469
|
+
<barcode-scanable-input
|
|
470
|
+
name="locationName"
|
|
471
|
+
custom-input
|
|
472
|
+
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
473
|
+
@keypress="${async e => {
|
|
474
|
+
if (e.keyCode === 13) {
|
|
475
|
+
e.preventDefault()
|
|
476
|
+
await this.picking(e)
|
|
477
|
+
}
|
|
478
|
+
}}"
|
|
479
|
+
></barcode-scanable-input>`
|
|
427
480
|
: ''}`}
|
|
428
481
|
<select
|
|
429
482
|
?hidden="${!this._incompleteLocationName}"
|
|
@@ -473,9 +526,10 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
473
526
|
}
|
|
474
527
|
|
|
475
528
|
async pageInitialized() {
|
|
476
|
-
const [enableBinPickingTask, locationSortingTask] = [
|
|
529
|
+
const [enableBinPickingTask, locationSortingTask, cameraScanOnly] = [
|
|
477
530
|
fetchSettingRule('enable-bin-picking'),
|
|
478
|
-
fetchLocationSortingRule(LOCATION_SORTING_RULE.PICKING_PRODUCT.value)
|
|
531
|
+
fetchLocationSortingRule(LOCATION_SORTING_RULE.PICKING_PRODUCT.value),
|
|
532
|
+
fetchSettingRule('camera-scan-only')
|
|
479
533
|
]
|
|
480
534
|
|
|
481
535
|
this.config = {
|
|
@@ -621,6 +675,11 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
621
675
|
|
|
622
676
|
this.locationSortingRules = await locationSortingTask
|
|
623
677
|
this._hasBinPicking = await enableBinPickingTask
|
|
678
|
+
|
|
679
|
+
this._pageSettings = {
|
|
680
|
+
...this._pageSettings,
|
|
681
|
+
cameraScanOnly: (await cameraScanOnly) || false
|
|
682
|
+
}
|
|
624
683
|
}
|
|
625
684
|
|
|
626
685
|
formatWorksheetDetailInfos(wsdInfos) {
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
domainType: 'warehouse',
|
|
3
|
+
domainExtType: 'warehouse',
|
|
4
|
+
useVirtualHostBasedDomain: false,
|
|
5
|
+
fallbackRoute: '/',
|
|
6
|
+
subdomainOffset: 2,
|
|
7
|
+
port: 1100,
|
|
8
|
+
inspect: '9430',
|
|
9
|
+
ormconfig: {
|
|
10
|
+
name: 'default',
|
|
11
|
+
type: 'postgres',
|
|
12
|
+
database: 'dev3',
|
|
13
|
+
username: 'postgres',
|
|
14
|
+
password: 'hatio',
|
|
15
|
+
host: '192.168.0.153',
|
|
16
|
+
port: 15432,
|
|
17
|
+
synchronize: true,
|
|
18
|
+
logging: true
|
|
19
|
+
},
|
|
20
|
+
// ormconfig: {
|
|
21
|
+
// name: 'default',
|
|
22
|
+
// type: 'postgres',
|
|
23
|
+
// database: 'postgres',
|
|
24
|
+
// username: 'postgres',
|
|
25
|
+
// password: 'abcd1234',
|
|
26
|
+
// host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
27
|
+
// port: 55432,
|
|
28
|
+
// synchronize: true,
|
|
29
|
+
// logging: true
|
|
30
|
+
// },
|
|
31
|
+
sellercraftIntegrationConfig: {
|
|
32
|
+
apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
|
|
33
|
+
},
|
|
34
|
+
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
|
|
35
|
+
password: {
|
|
36
|
+
lowerCase: true,
|
|
37
|
+
upperCase: false,
|
|
38
|
+
digit: false,
|
|
39
|
+
specialCharacter: false,
|
|
40
|
+
allowRepeat: true,
|
|
41
|
+
useTightPattern: false,
|
|
42
|
+
useLoosePattern: true,
|
|
43
|
+
tightCharacterLength: 4,
|
|
44
|
+
looseCharacterLength: 4,
|
|
45
|
+
history: 2
|
|
46
|
+
},
|
|
47
|
+
// storage: {
|
|
48
|
+
// type: 's3',
|
|
49
|
+
// accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
|
|
50
|
+
// secretAccessKey: 'AuDAgmODf9EJNB24OveRhTSLV/OJy6IFFoRxe8k2',
|
|
51
|
+
// bucketName: 'opa-one',
|
|
52
|
+
// region: 'ap-southeast-1'
|
|
53
|
+
// },
|
|
54
|
+
uploads: 'uploads',
|
|
55
|
+
attachmentsPath: 'attachments',
|
|
56
|
+
logger: {
|
|
57
|
+
file: {
|
|
58
|
+
filename: 'logs/application-%DATE%.log',
|
|
59
|
+
datePattern: 'YYYY-MM-DD-HH',
|
|
60
|
+
zippedArchive: true,
|
|
61
|
+
maxSize: '200m',
|
|
62
|
+
maxFiles: '1m',
|
|
63
|
+
level: 'info'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
email: {
|
|
67
|
+
host: 'smtp.office365.com',
|
|
68
|
+
port: 587,
|
|
69
|
+
secure: false, // true for 465, false for other ports
|
|
70
|
+
auth: {
|
|
71
|
+
user: 'no-reply@hatiolab.com', // generated ethereal user
|
|
72
|
+
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
73
|
+
},
|
|
74
|
+
secureConnection: false,
|
|
75
|
+
tls: {
|
|
76
|
+
ciphers: 'SSLv3'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
sender: 'no-reply@hatiolab.com',
|
|
80
|
+
notification: {
|
|
81
|
+
// fcm: {
|
|
82
|
+
// serviceAccount: {
|
|
83
|
+
// project_id: 'operato',
|
|
84
|
+
// private_key:
|
|
85
|
+
// '-----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',
|
|
86
|
+
// client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
|
|
87
|
+
// },
|
|
88
|
+
// appConfig: {
|
|
89
|
+
// apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
|
|
90
|
+
// projectId: 'operato',
|
|
91
|
+
// messagingSenderId: 79537064975,
|
|
92
|
+
// appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
|
|
93
|
+
// },
|
|
94
|
+
// serverKey:
|
|
95
|
+
// 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
|
|
96
|
+
// },
|
|
97
|
+
// vapidKey: {
|
|
98
|
+
// subject: 'mailto:heartyoh@hatiolab.com',
|
|
99
|
+
// publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
|
|
100
|
+
// privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
101
|
+
// }
|
|
102
|
+
},
|
|
103
|
+
reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
|
|
104
|
+
}
|
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.117",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@things-factory/apptool-ui": "^4.3.114",
|
|
67
67
|
"@things-factory/attachment-ui": "^4.3.114",
|
|
68
68
|
"@things-factory/auth-ui": "^4.3.114",
|
|
69
|
-
"@things-factory/barcode-ui": "^4.3.
|
|
69
|
+
"@things-factory/barcode-ui": "^4.3.117",
|
|
70
70
|
"@things-factory/biz-ui": "^4.3.114",
|
|
71
71
|
"@things-factory/board-service": "^4.3.114",
|
|
72
72
|
"@things-factory/board-ui": "^4.3.115",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@things-factory/export-ui-excel": "^4.3.114",
|
|
78
78
|
"@things-factory/fav-base": "^4.3.114",
|
|
79
79
|
"@things-factory/form-ui": "^4.3.114",
|
|
80
|
-
"@things-factory/geography": "^4.3.
|
|
80
|
+
"@things-factory/geography": "^4.3.116",
|
|
81
81
|
"@things-factory/grist-ui": "^4.3.114",
|
|
82
82
|
"@things-factory/help": "^4.3.114",
|
|
83
83
|
"@things-factory/i18n-base": "^4.3.114",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@things-factory/scene-form": "^4.3.114",
|
|
100
100
|
"@things-factory/scene-google-map": "^4.3.114",
|
|
101
101
|
"@things-factory/scene-graphql": "^4.3.114",
|
|
102
|
-
"@things-factory/scene-label": "^4.3.
|
|
102
|
+
"@things-factory/scene-label": "^4.3.117",
|
|
103
103
|
"@things-factory/scene-marker": "^4.3.114",
|
|
104
104
|
"@things-factory/scene-mqtt": "^4.3.114",
|
|
105
105
|
"@things-factory/scene-restful": "^4.3.114",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "0281c7791cd1844cdefbfa0eae6836a7bde8896d"
|
|
122
122
|
}
|