@things-factory/operato-wms 4.1.1 → 4.1.6
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/constants/setting.js +1 -0
- package/client/pages/manifest/create-loading-manifest.js +1 -1
- package/client/pages/manifest/loading-manifest-list.js +1 -1
- package/client/pages/order/arrival-notice/arrival-notice-list.js +18 -1
- package/client/pages/order/release-order/b2b/b2b-order-list.js +8 -0
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +121 -24
- package/client/pages/outbound/packing-product.js +17 -2
- package/client/pages/outbound/picking-product.js +9 -5
- package/client/pages/outbound/worksheet-packing.js +1 -1
- package/dist-server/graphql/resolvers/board-setting/board-settings.js +2 -1
- package/dist-server/graphql/resolvers/board-setting/board-settings.js.map +1 -1
- package/dist-server/opa-app-setting-constants.js +2 -1
- package/dist-server/opa-app-setting-constants.js.map +1 -1
- package/package.json +51 -51
- package/server/graphql/resolvers/board-setting/board-settings.ts +4 -2
- package/server/opa-app-setting-constants.ts +1 -0
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -4,3 +4,4 @@ export const LOCATION_LABEL_SETTING_KEY = 'location-label'
|
|
|
4
4
|
export const PALLET_LABEL_SETTING_KEY = 'pallet-label'
|
|
5
5
|
export const PRODUCT_LABEL_SETTING_KEY = 'product-label'
|
|
6
6
|
export const REUSABLE_PALLET_LABEL_SETTING_KEY = 'reusable-pallet-label'
|
|
7
|
+
export const INTENALIZED_AWB_SETTING_KEY = 'internalized-awb-label'
|
|
@@ -196,7 +196,7 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
|
|
|
196
196
|
]
|
|
197
197
|
const response = await client.query({
|
|
198
198
|
query: gql`
|
|
199
|
-
query releaseGoods($filters: [Filter], $sortings: [Sorting]) {
|
|
199
|
+
query releaseGoods($filters: [Filter!], $sortings: [Sorting!]) {
|
|
200
200
|
releaseGoods(filters: $filters, sortings: $sortings) {
|
|
201
201
|
items {
|
|
202
202
|
id
|
|
@@ -218,7 +218,7 @@ class LoadingManifestList extends localize(i18next)(PageView) {
|
|
|
218
218
|
async fetchHandler({ page, limit, sorters = [{ name: 'createdAt', desc: true }] }) {
|
|
219
219
|
const response = await client.query({
|
|
220
220
|
query: gql`
|
|
221
|
-
query manifests($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
|
|
221
|
+
query manifests($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
222
222
|
manifests(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
223
223
|
items {
|
|
224
224
|
id
|
|
@@ -219,6 +219,7 @@ class ArrivalNoticeList extends localize(i18next)(PageView) {
|
|
|
219
219
|
'status',
|
|
220
220
|
'createdAt',
|
|
221
221
|
'updatedAt',
|
|
222
|
+
'acceptedBy',
|
|
222
223
|
'creator'
|
|
223
224
|
]
|
|
224
225
|
},
|
|
@@ -358,6 +359,14 @@ class ArrivalNoticeList extends localize(i18next)(PageView) {
|
|
|
358
359
|
label: true,
|
|
359
360
|
sortable: true,
|
|
360
361
|
width: 200
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
type: 'object',
|
|
365
|
+
name: 'acceptedBy',
|
|
366
|
+
header: i18next.t('field.accepted_by'),
|
|
367
|
+
label: true,
|
|
368
|
+
sortable: true,
|
|
369
|
+
width: 200
|
|
361
370
|
}
|
|
362
371
|
]
|
|
363
372
|
}
|
|
@@ -402,6 +411,11 @@ class ArrivalNoticeList extends localize(i18next)(PageView) {
|
|
|
402
411
|
name
|
|
403
412
|
description
|
|
404
413
|
}
|
|
414
|
+
acceptedBy {
|
|
415
|
+
id
|
|
416
|
+
name
|
|
417
|
+
description
|
|
418
|
+
}
|
|
405
419
|
creator {
|
|
406
420
|
id
|
|
407
421
|
name
|
|
@@ -495,7 +509,8 @@ class ArrivalNoticeList extends localize(i18next)(PageView) {
|
|
|
495
509
|
{ header: i18next.t('field.status'), key: 'status', width: 25, type: 'string' },
|
|
496
510
|
{ header: i18next.t('field.created_at'), key: 'createdAt', width: 30, type: 'date' },
|
|
497
511
|
{ header: i18next.t('field.updated_at'), key: 'updatedAt', width: 30, type: 'date' },
|
|
498
|
-
{ header: i18next.t('field.created_by'), key: 'creatorName', width: 25, type: 'string' }
|
|
512
|
+
{ header: i18next.t('field.created_by'), key: 'creatorName', width: 25, type: 'string' },
|
|
513
|
+
{ header: i18next.t('field.accepted_by'), key: 'acceptedByName', width: 25, type: 'string' }
|
|
499
514
|
]
|
|
500
515
|
|
|
501
516
|
if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
|
|
@@ -503,6 +518,7 @@ class ArrivalNoticeList extends localize(i18next)(PageView) {
|
|
|
503
518
|
return {
|
|
504
519
|
...record,
|
|
505
520
|
bizplaceName: record.bizplace?.name,
|
|
521
|
+
acceptedByName: record.acceptedBy?.name,
|
|
506
522
|
creatorName: record.creator?.name
|
|
507
523
|
}
|
|
508
524
|
})
|
|
@@ -511,6 +527,7 @@ class ArrivalNoticeList extends localize(i18next)(PageView) {
|
|
|
511
527
|
return {
|
|
512
528
|
...record,
|
|
513
529
|
bizplaceName: record.bizplace?.name,
|
|
530
|
+
acceptedByName: record.acceptedBy?.name,
|
|
514
531
|
creatorName: record.creator?.name
|
|
515
532
|
}
|
|
516
533
|
})
|
|
@@ -359,6 +359,14 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
359
359
|
imex: { header: i18next.t('field.created_by'), key: 'creator.name', width: 30, type: 'string' },
|
|
360
360
|
sortable: true,
|
|
361
361
|
width: 200
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
type: 'object',
|
|
365
|
+
name: 'acceptedBy',
|
|
366
|
+
header: i18next.t('field.accepted_by'),
|
|
367
|
+
imex: { header: i18next.t('field.accepted_by'), key: 'acceptedBy.name', width: 30, type: 'string' },
|
|
368
|
+
sortable: true,
|
|
369
|
+
width: 200
|
|
362
370
|
}
|
|
363
371
|
]
|
|
364
372
|
}
|
|
@@ -5,23 +5,25 @@ import '../batch-generate-single-picking-worksheet-popup'
|
|
|
5
5
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
7
|
import { css, html } from 'lit-element'
|
|
8
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
|
8
9
|
|
|
10
|
+
import { DirectPrinter } from '@things-factory/barcode-base'
|
|
9
11
|
import { GhostPrint } from '@operato/ghost-print'
|
|
10
12
|
import { getCodeByName } from '@things-factory/code-base'
|
|
11
13
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
12
14
|
import { openPopup } from '@things-factory/layout-base'
|
|
13
|
-
import { client, navigate, PageView } from '@things-factory/shell'
|
|
15
|
+
import { client, navigate, PageView, store } from '@things-factory/shell'
|
|
14
16
|
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
15
17
|
import { isMobileDevice } from '@things-factory/utils'
|
|
16
18
|
|
|
17
|
-
import { ORDER_STATUS } from '../../../constants'
|
|
19
|
+
import { INTENALIZED_AWB_SETTING_KEY, ORDER_STATUS } from '../../../constants'
|
|
18
20
|
|
|
19
21
|
const HEADER_JSON = {
|
|
20
22
|
'Content-Type': 'application/json',
|
|
21
23
|
Accept: 'application/json'
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
class B2cOrderRequests extends localize(i18next)(PageView) {
|
|
26
|
+
class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
25
27
|
static get styles() {
|
|
26
28
|
return [
|
|
27
29
|
ScrollbarStyles,
|
|
@@ -46,12 +48,18 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
|
|
|
46
48
|
|
|
47
49
|
static get properties() {
|
|
48
50
|
return {
|
|
51
|
+
_internalizedAWBLabel: Object,
|
|
49
52
|
_searchFields: Array,
|
|
50
53
|
config: Object,
|
|
51
54
|
data: Object
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
|
|
58
|
+
stateChanged(state) {
|
|
59
|
+
let internalizedAWBSetting = state.dashboard[INTENALIZED_AWB_SETTING_KEY]
|
|
60
|
+
this._internalizedAWBLabel = (internalizedAWBSetting && internalizedAWBSetting.board) || {}
|
|
61
|
+
}
|
|
62
|
+
|
|
55
63
|
render() {
|
|
56
64
|
return html`
|
|
57
65
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
@@ -65,30 +73,43 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
|
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
get context() {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
let actions = [
|
|
77
|
+
{
|
|
78
|
+
title: i18next.t('button.print_invoice'),
|
|
79
|
+
action: this._printInvoices.bind(this),
|
|
80
|
+
...CommonButtonStyles.label
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: i18next.t('button.generate_packing_list'),
|
|
84
|
+
action: this._generatePackingList.bind(this),
|
|
85
|
+
...CommonButtonStyles.label
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: i18next.t('button.batch_picking'),
|
|
89
|
+
action: this._openBatchPickingPopup.bind(this),
|
|
90
|
+
...CommonButtonStyles.activate
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: i18next.t('button.generate_worksheet'),
|
|
94
|
+
action: this._openBatchGenerateSinglePickingWorksheetPopup.bind(this),
|
|
95
|
+
...CommonButtonStyles.activate
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
if (Object.keys(this._internalizedAWBLabel).length) {
|
|
100
|
+
actions = [
|
|
76
101
|
{
|
|
77
|
-
title: i18next.t('button.
|
|
78
|
-
action: this.
|
|
102
|
+
title: i18next.t('button.print_internal_awb'),
|
|
103
|
+
action: this._printInternalAWB.bind(this),
|
|
79
104
|
...CommonButtonStyles.label
|
|
80
105
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
action: this._openBatchGenerateSinglePickingWorksheetPopup.bind(this),
|
|
89
|
-
...CommonButtonStyles.activate
|
|
90
|
-
}
|
|
91
|
-
],
|
|
106
|
+
...actions
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
title: i18next.t('title.release_order_requests'),
|
|
112
|
+
actions,
|
|
92
113
|
exportable: {
|
|
93
114
|
name: i18next.t('title.release_order_requests'),
|
|
94
115
|
data: this._exportableData.bind(this)
|
|
@@ -360,9 +381,21 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
|
|
|
360
381
|
releaseGoodRequests(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
361
382
|
items {
|
|
362
383
|
id
|
|
384
|
+
trackingNo
|
|
363
385
|
attentionTo
|
|
364
386
|
deliveryAddress1
|
|
387
|
+
deliveryAddress2
|
|
388
|
+
deliveryAddress3
|
|
389
|
+
deliveryAddress4
|
|
390
|
+
deliveryAddress5
|
|
391
|
+
attentionTo
|
|
392
|
+
attentionCompany
|
|
393
|
+
city
|
|
394
|
+
state
|
|
395
|
+
postalCode
|
|
396
|
+
country
|
|
365
397
|
phone1
|
|
398
|
+
phone2
|
|
366
399
|
postalCode
|
|
367
400
|
marketplaceOrderStatus
|
|
368
401
|
transporter
|
|
@@ -378,6 +411,7 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
|
|
|
378
411
|
refNo2
|
|
379
412
|
refNo3
|
|
380
413
|
noOfItems
|
|
414
|
+
createdAt
|
|
381
415
|
updatedAt
|
|
382
416
|
acceptedBy {
|
|
383
417
|
id
|
|
@@ -529,6 +563,65 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
|
|
|
529
563
|
}
|
|
530
564
|
}
|
|
531
565
|
|
|
566
|
+
async _printInternalAWB() {
|
|
567
|
+
const records = this.dataGrist.selected
|
|
568
|
+
var labelId = this._internalizedAWBLabel && this._internalizedAWBLabel.id
|
|
569
|
+
|
|
570
|
+
if (!labelId) {
|
|
571
|
+
this._showToast({
|
|
572
|
+
type: 'error',
|
|
573
|
+
message: `${i18next.t('text.no_label_setting_was_found')}. ${i18next.t('text.please_check_your_setting')}`
|
|
574
|
+
})
|
|
575
|
+
} else {
|
|
576
|
+
for (var record of records) {
|
|
577
|
+
var searchParams = new URLSearchParams()
|
|
578
|
+
searchParams.append('createdAt', this._getDateString(new Date(parseInt(record.createdAt))))
|
|
579
|
+
searchParams.append('refNo', record.refNo)
|
|
580
|
+
searchParams.append('name', record.name)
|
|
581
|
+
searchParams.append('noOfItems', record.noOfItems)
|
|
582
|
+
searchParams.append('postalCode', record.postalCode)
|
|
583
|
+
searchParams.append('attentionTo', record.attentionTo)
|
|
584
|
+
searchParams.append('deliveryAddress1', record.deliveryAddress1 || '')
|
|
585
|
+
searchParams.append('deliveryAddress2', record.deliveryAddress2 || '')
|
|
586
|
+
searchParams.append('deliveryAddress3', record.deliveryAddress3 || '')
|
|
587
|
+
searchParams.append('deliveryAddress4', record.deliveryAddress4 || '')
|
|
588
|
+
searchParams.append('deliveryAddress5', record.deliveryAddress5 || '')
|
|
589
|
+
searchParams.append('phone1', record.phone1 || '')
|
|
590
|
+
searchParams.append('phone2', record.phone2 || '')
|
|
591
|
+
searchParams.append('trackingNo', record.trackingNo)
|
|
592
|
+
searchParams.append('transporter', record.transporter)
|
|
593
|
+
// if (!record?.cartonId) throw new Error(i18next.t('text.selected_inventory_not_using_carton_label'))
|
|
594
|
+
|
|
595
|
+
/* for pallet record mapping */
|
|
596
|
+
// searchParams.append('carton', record.cartonId)
|
|
597
|
+
// searchParams.append('customer', record.bizplace.name)
|
|
598
|
+
|
|
599
|
+
try {
|
|
600
|
+
const response = await fetch(`label-command/${labelId}?${searchParams.toString()}`, {
|
|
601
|
+
method: 'GET'
|
|
602
|
+
})
|
|
603
|
+
|
|
604
|
+
if (response.status !== 200) {
|
|
605
|
+
throw `Error : Can't get label command from server (response: ${response.status})`
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
var command = await response.text()
|
|
609
|
+
|
|
610
|
+
if (!this.printer) {
|
|
611
|
+
this.printer = new DirectPrinter()
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
await this.printer.print(command)
|
|
615
|
+
} catch (e) {
|
|
616
|
+
this._showToast(e)
|
|
617
|
+
|
|
618
|
+
delete this.printer
|
|
619
|
+
break
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
|
|
532
625
|
async _callPrintDialog(contentSource) {
|
|
533
626
|
GhostPrint.print({
|
|
534
627
|
srcdoc: contentSource,
|
|
@@ -695,6 +788,10 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
|
|
|
695
788
|
})
|
|
696
789
|
return { header: headerSetting, data: data }
|
|
697
790
|
}
|
|
791
|
+
|
|
792
|
+
_getDateString(date) {
|
|
793
|
+
return `${date.getDate()} ${date.toLocaleString('default', { month: 'short' })} ${date.getFullYear()}`
|
|
794
|
+
}
|
|
698
795
|
}
|
|
699
796
|
|
|
700
797
|
window.customElements.define('b2c-order-requests', B2cOrderRequests)
|
|
@@ -107,10 +107,10 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
107
107
|
|
|
108
108
|
if (
|
|
109
109
|
this.releaseGoodNo &&
|
|
110
|
-
this.orderInformation.status === 'packed' &&
|
|
110
|
+
(this.orderInformation.status === 'packed' || this.orderInformation.status === 'unfulfilled' || this.orderInformation.status === 'processing') &&
|
|
111
111
|
!this._trackingNo &&
|
|
112
112
|
!this._logisticsInitiated &&
|
|
113
|
-
this.platform === PLATFORM.LAZADA.value &&
|
|
113
|
+
(this.platform === PLATFORM.LAZADA.value || this.platform === PLATFORM.SHOPIFY.value || this.platform === PLATFORM.WOOCOMMERCE.value) &&
|
|
114
114
|
this.completed
|
|
115
115
|
) {
|
|
116
116
|
actions.push({
|
|
@@ -785,6 +785,21 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
785
785
|
})
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
+
if (this.orderInformation.marketplaceStore.platform === PLATFORM.SHOPIFY.value || this.orderInformation.marketplaceStore.platform === PLATFORM.WOOCOMMERCE.value) {
|
|
789
|
+
response = await client.mutate({
|
|
790
|
+
mutation: gql`
|
|
791
|
+
mutation updateOrderReadyToShip($orderNo: String!) {
|
|
792
|
+
updateOrderReadyToShip(
|
|
793
|
+
orderNo: $orderNo
|
|
794
|
+
)
|
|
795
|
+
}
|
|
796
|
+
`,
|
|
797
|
+
variables: {
|
|
798
|
+
orderNo: this.orderInformation.name
|
|
799
|
+
}
|
|
800
|
+
})
|
|
801
|
+
}
|
|
802
|
+
|
|
788
803
|
if (!response.errors) {
|
|
789
804
|
this._showToast({ message: i18next.t('text.order_has_been_set_to_ready_to_ship') })
|
|
790
805
|
}
|
|
@@ -374,7 +374,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
374
374
|
<select
|
|
375
375
|
?hidden="${!this._incompleteLocationName}"
|
|
376
376
|
name="newLocationCode"
|
|
377
|
-
@change="${e => (this.
|
|
377
|
+
@change="${e => (this._locationName = e.currentTarget.value)}"
|
|
378
378
|
>
|
|
379
379
|
<option value="">-- ${i18next.t('text.please_select_the_location')} --</option>
|
|
380
380
|
${(this.locations || []).map(
|
|
@@ -896,7 +896,11 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
896
896
|
if (e.keyCode !== 13) return
|
|
897
897
|
e.preventDefault()
|
|
898
898
|
try {
|
|
899
|
-
await this.validatePicking()
|
|
899
|
+
let answer = await this.validatePicking()
|
|
900
|
+
|
|
901
|
+
if (answer) {
|
|
902
|
+
if (!answer?.value) return
|
|
903
|
+
}
|
|
900
904
|
|
|
901
905
|
let response = {}
|
|
902
906
|
if (this.crossDocking) {
|
|
@@ -1054,7 +1058,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1054
1058
|
worksheetDetailName: this._selectedOrderInventory.name,
|
|
1055
1059
|
worksheetType: this.refPickingType,
|
|
1056
1060
|
palletId: this.palletInput.value.trim(),
|
|
1057
|
-
locationName: this._locationName,
|
|
1061
|
+
locationName: this._locationName ? this._locationName : this._selectedOrderInventory?.location.name,
|
|
1058
1062
|
releaseQty: this._isRequireSerialNumberScanning ? 1 : parseInt(this.releaseQtyInput.value),
|
|
1059
1063
|
binLocation: this._hasBinPicking ? this.binLocationInput.value : null,
|
|
1060
1064
|
serialNumber: this._isRequireSerialNumberScanning ? this.serialInput.value : null
|
|
@@ -1086,7 +1090,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1086
1090
|
taskNo: this.taskNo,
|
|
1087
1091
|
worksheetType: this.refPickingType,
|
|
1088
1092
|
palletId: this.palletInput.value.trim(),
|
|
1089
|
-
locationName: this._locationName,
|
|
1093
|
+
locationName: this._locationName ? this._locationName : this._selectedOrderInventory?.location.name,
|
|
1090
1094
|
binLocationName: this._hasBinPicking ? this.binLocationInput.value : null,
|
|
1091
1095
|
releaseQty: parseInt(this.releaseQtyInput.value)
|
|
1092
1096
|
}
|
|
@@ -1268,7 +1272,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1268
1272
|
if (!relocateConfirmation.isConfirmed) {
|
|
1269
1273
|
this._incompleteLocationName = false
|
|
1270
1274
|
this.locationNameSplit = []
|
|
1271
|
-
return
|
|
1275
|
+
return relocateConfirmation
|
|
1272
1276
|
}
|
|
1273
1277
|
}
|
|
1274
1278
|
}
|
|
@@ -489,7 +489,7 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
489
489
|
|
|
490
490
|
const response = await client.mutate({
|
|
491
491
|
mutation: gql`
|
|
492
|
-
mutation activatePacking($worksheetNo: String!) {
|
|
492
|
+
mutation activatePacking($worksheetNo: [String!]!) {
|
|
493
493
|
activatePacking(worksheetNo: $worksheetNo) {
|
|
494
494
|
name
|
|
495
495
|
}
|
|
@@ -30,7 +30,8 @@ exports.boardSettingsResolver = {
|
|
|
30
30
|
opa_app_setting_constants_1.PALLET_LABEL_SETTING_KEY,
|
|
31
31
|
opa_app_setting_constants_1.REUSABLE_PALLET_LABEL_SETTING_KEY,
|
|
32
32
|
HOME_BOARD,
|
|
33
|
-
opa_app_setting_constants_1.CARTON_LABEL_SETTING_KEY
|
|
33
|
+
opa_app_setting_constants_1.CARTON_LABEL_SETTING_KEY,
|
|
34
|
+
opa_app_setting_constants_1.INTENALIZED_AWB_SETTING_KEY
|
|
34
35
|
];
|
|
35
36
|
var qb = queryBuilder
|
|
36
37
|
// .innerJoin(Board, 'Board', 'Board.id = CAST(Setting.value AS uuid)')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-settings.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/board-setting/board-settings.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,yDAAgD;AAChD,iEAAqD;AACrD,+DAAsD;AAGtD,
|
|
1
|
+
{"version":3,"file":"board-settings.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/board-setting/board-settings.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PRODUCT_LABEL_SETTING_KEY = exports.HOME_DASHBOARD_PREFIX = exports.REUSABLE_PALLET_LABEL_SETTING_KEY = exports.CARTON_LABEL_SETTING_KEY = exports.PALLET_LABEL_SETTING_KEY = exports.LOCATION_LABEL_SETTING_KEY = void 0;
|
|
3
|
+
exports.INTENALIZED_AWB_SETTING_KEY = exports.PRODUCT_LABEL_SETTING_KEY = exports.HOME_DASHBOARD_PREFIX = exports.REUSABLE_PALLET_LABEL_SETTING_KEY = exports.CARTON_LABEL_SETTING_KEY = exports.PALLET_LABEL_SETTING_KEY = exports.LOCATION_LABEL_SETTING_KEY = void 0;
|
|
4
4
|
exports.LOCATION_LABEL_SETTING_KEY = 'location-label';
|
|
5
5
|
exports.PALLET_LABEL_SETTING_KEY = 'pallet-label';
|
|
6
6
|
exports.CARTON_LABEL_SETTING_KEY = 'carton-label';
|
|
7
7
|
exports.REUSABLE_PALLET_LABEL_SETTING_KEY = 'reusable-pallet-label';
|
|
8
8
|
exports.HOME_DASHBOARD_PREFIX = 'dashboard';
|
|
9
9
|
exports.PRODUCT_LABEL_SETTING_KEY = 'product-label';
|
|
10
|
+
exports.INTENALIZED_AWB_SETTING_KEY = 'internalized-awb-label';
|
|
10
11
|
//# sourceMappingURL=opa-app-setting-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opa-app-setting-constants.js","sourceRoot":"","sources":["../server/opa-app-setting-constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG,gBAAgB,CAAA;AAC7C,QAAA,wBAAwB,GAAG,cAAc,CAAA;AACzC,QAAA,wBAAwB,GAAG,cAAc,CAAA;AACzC,QAAA,iCAAiC,GAAG,uBAAuB,CAAA;AAC3D,QAAA,qBAAqB,GAAG,WAAW,CAAA;AACnC,QAAA,yBAAyB,GAAG,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"opa-app-setting-constants.js","sourceRoot":"","sources":["../server/opa-app-setting-constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG,gBAAgB,CAAA;AAC7C,QAAA,wBAAwB,GAAG,cAAc,CAAA;AACzC,QAAA,wBAAwB,GAAG,cAAc,CAAA;AACzC,QAAA,iCAAiC,GAAG,uBAAuB,CAAA;AAC3D,QAAA,qBAAqB,GAAG,WAAW,CAAA;AACnC,QAAA,yBAAyB,GAAG,eAAe,CAAA;AAC3C,QAAA,2BAA2B,GAAG,wBAAwB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.6",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -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.1.
|
|
60
|
-
"@things-factory/attachment-ui": "^4.1.
|
|
61
|
-
"@things-factory/auth-ui": "^4.1.
|
|
62
|
-
"@things-factory/barcode-ui": "^4.1.
|
|
63
|
-
"@things-factory/biz-ui": "^4.1.
|
|
64
|
-
"@things-factory/board-service": "^4.1.
|
|
65
|
-
"@things-factory/board-ui": "^4.1.
|
|
66
|
-
"@things-factory/code-ui": "^4.1.
|
|
67
|
-
"@things-factory/context-ui": "^4.1.
|
|
68
|
-
"@things-factory/export-ui": "^4.1.
|
|
69
|
-
"@things-factory/export-ui-csv": "^4.1.
|
|
70
|
-
"@things-factory/export-ui-excel": "^4.1.
|
|
71
|
-
"@things-factory/fav-base": "^4.1.
|
|
72
|
-
"@things-factory/form-ui": "^4.1.
|
|
73
|
-
"@things-factory/grist-ui": "^4.1.
|
|
74
|
-
"@things-factory/help": "^4.1.
|
|
75
|
-
"@things-factory/i18n-base": "^4.1.
|
|
76
|
-
"@things-factory/id-rule-base": "^4.1.
|
|
77
|
-
"@things-factory/import-ui": "^4.1.
|
|
78
|
-
"@things-factory/import-ui-excel": "^4.1.
|
|
79
|
-
"@things-factory/menu-ui": "^4.1.
|
|
80
|
-
"@things-factory/more-ui": "^4.1.
|
|
81
|
-
"@things-factory/notification": "^4.1.
|
|
82
|
-
"@things-factory/pdf": "^4.1.
|
|
83
|
-
"@things-factory/print-proxy-service": "^4.1.
|
|
84
|
-
"@things-factory/print-service": "^4.1.
|
|
85
|
-
"@things-factory/print-ui": "^4.1.
|
|
86
|
-
"@things-factory/product-base": "^4.1.
|
|
87
|
-
"@things-factory/resource-ui": "^4.1.
|
|
88
|
-
"@things-factory/sales-ui": "^4.1.
|
|
89
|
-
"@things-factory/scene-data-transform": "^4.1.
|
|
90
|
-
"@things-factory/scene-excel": "^4.1.
|
|
91
|
-
"@things-factory/scene-firebase": "^4.1.
|
|
92
|
-
"@things-factory/scene-form": "^4.1.
|
|
93
|
-
"@things-factory/scene-google-map": "^4.1.
|
|
94
|
-
"@things-factory/scene-graphql": "^4.1.
|
|
95
|
-
"@things-factory/scene-label": "^4.1.
|
|
96
|
-
"@things-factory/scene-marker": "^4.1.
|
|
97
|
-
"@things-factory/scene-mqtt": "^4.1.
|
|
98
|
-
"@things-factory/scene-news-ticker": "^4.1.
|
|
99
|
-
"@things-factory/scene-restful": "^4.1.
|
|
100
|
-
"@things-factory/scene-visualizer": "^4.1.
|
|
101
|
-
"@things-factory/setting-ui": "^4.1.
|
|
102
|
-
"@things-factory/system-ui": "^4.1.
|
|
103
|
-
"@things-factory/transport-base": "^4.1.
|
|
104
|
-
"@things-factory/tutorial-ui": "^4.1.
|
|
105
|
-
"@things-factory/warehouse-base": "^4.1.
|
|
106
|
-
"@things-factory/worksheet-base": "^4.1.
|
|
59
|
+
"@things-factory/apptool-ui": "^4.1.6",
|
|
60
|
+
"@things-factory/attachment-ui": "^4.1.6",
|
|
61
|
+
"@things-factory/auth-ui": "^4.1.6",
|
|
62
|
+
"@things-factory/barcode-ui": "^4.1.6",
|
|
63
|
+
"@things-factory/biz-ui": "^4.1.6",
|
|
64
|
+
"@things-factory/board-service": "^4.1.6",
|
|
65
|
+
"@things-factory/board-ui": "^4.1.6",
|
|
66
|
+
"@things-factory/code-ui": "^4.1.6",
|
|
67
|
+
"@things-factory/context-ui": "^4.1.6",
|
|
68
|
+
"@things-factory/export-ui": "^4.1.6",
|
|
69
|
+
"@things-factory/export-ui-csv": "^4.1.6",
|
|
70
|
+
"@things-factory/export-ui-excel": "^4.1.6",
|
|
71
|
+
"@things-factory/fav-base": "^4.1.6",
|
|
72
|
+
"@things-factory/form-ui": "^4.1.6",
|
|
73
|
+
"@things-factory/grist-ui": "^4.1.6",
|
|
74
|
+
"@things-factory/help": "^4.1.6",
|
|
75
|
+
"@things-factory/i18n-base": "^4.1.6",
|
|
76
|
+
"@things-factory/id-rule-base": "^4.1.6",
|
|
77
|
+
"@things-factory/import-ui": "^4.1.6",
|
|
78
|
+
"@things-factory/import-ui-excel": "^4.1.6",
|
|
79
|
+
"@things-factory/menu-ui": "^4.1.6",
|
|
80
|
+
"@things-factory/more-ui": "^4.1.6",
|
|
81
|
+
"@things-factory/notification": "^4.1.6",
|
|
82
|
+
"@things-factory/pdf": "^4.1.6",
|
|
83
|
+
"@things-factory/print-proxy-service": "^4.1.6",
|
|
84
|
+
"@things-factory/print-service": "^4.1.6",
|
|
85
|
+
"@things-factory/print-ui": "^4.1.6",
|
|
86
|
+
"@things-factory/product-base": "^4.1.6",
|
|
87
|
+
"@things-factory/resource-ui": "^4.1.6",
|
|
88
|
+
"@things-factory/sales-ui": "^4.1.6",
|
|
89
|
+
"@things-factory/scene-data-transform": "^4.1.6",
|
|
90
|
+
"@things-factory/scene-excel": "^4.1.6",
|
|
91
|
+
"@things-factory/scene-firebase": "^4.1.6",
|
|
92
|
+
"@things-factory/scene-form": "^4.1.6",
|
|
93
|
+
"@things-factory/scene-google-map": "^4.1.6",
|
|
94
|
+
"@things-factory/scene-graphql": "^4.1.6",
|
|
95
|
+
"@things-factory/scene-label": "^4.1.6",
|
|
96
|
+
"@things-factory/scene-marker": "^4.1.6",
|
|
97
|
+
"@things-factory/scene-mqtt": "^4.1.6",
|
|
98
|
+
"@things-factory/scene-news-ticker": "^4.1.6",
|
|
99
|
+
"@things-factory/scene-restful": "^4.1.6",
|
|
100
|
+
"@things-factory/scene-visualizer": "^4.1.6",
|
|
101
|
+
"@things-factory/setting-ui": "^4.1.6",
|
|
102
|
+
"@things-factory/system-ui": "^4.1.6",
|
|
103
|
+
"@things-factory/transport-base": "^4.1.6",
|
|
104
|
+
"@things-factory/tutorial-ui": "^4.1.6",
|
|
105
|
+
"@things-factory/warehouse-base": "^4.1.6",
|
|
106
|
+
"@things-factory/worksheet-base": "^4.1.6"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@things-factory/builder": "^4.1.
|
|
109
|
+
"@things-factory/builder": "^4.1.6"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "3b0bbe1cd54f9585579fb85c64cce3338b45fa30"
|
|
112
112
|
}
|
|
@@ -11,7 +11,8 @@ import {
|
|
|
11
11
|
LOCATION_LABEL_SETTING_KEY,
|
|
12
12
|
PALLET_LABEL_SETTING_KEY,
|
|
13
13
|
PRODUCT_LABEL_SETTING_KEY,
|
|
14
|
-
REUSABLE_PALLET_LABEL_SETTING_KEY
|
|
14
|
+
REUSABLE_PALLET_LABEL_SETTING_KEY,
|
|
15
|
+
INTENALIZED_AWB_SETTING_KEY
|
|
15
16
|
} from '../../../opa-app-setting-constants'
|
|
16
17
|
|
|
17
18
|
export const boardSettingsResolver = {
|
|
@@ -42,7 +43,8 @@ export const boardSettingsResolver = {
|
|
|
42
43
|
PALLET_LABEL_SETTING_KEY,
|
|
43
44
|
REUSABLE_PALLET_LABEL_SETTING_KEY,
|
|
44
45
|
HOME_BOARD,
|
|
45
|
-
CARTON_LABEL_SETTING_KEY
|
|
46
|
+
CARTON_LABEL_SETTING_KEY,
|
|
47
|
+
INTENALIZED_AWB_SETTING_KEY
|
|
46
48
|
]
|
|
47
49
|
|
|
48
50
|
var qb = queryBuilder
|
|
@@ -4,3 +4,4 @@ export const CARTON_LABEL_SETTING_KEY = 'carton-label'
|
|
|
4
4
|
export const REUSABLE_PALLET_LABEL_SETTING_KEY = 'reusable-pallet-label'
|
|
5
5
|
export const HOME_DASHBOARD_PREFIX = 'dashboard'
|
|
6
6
|
export const PRODUCT_LABEL_SETTING_KEY = 'product-label'
|
|
7
|
+
export const INTENALIZED_AWB_SETTING_KEY = 'internalized-awb-label'
|
package/translations/en.json
CHANGED
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"button.plastic_pallet": "plastic pallet",
|
|
66
66
|
"button.preview": "preview",
|
|
67
67
|
"button.print_airway_bill": "print airway bill",
|
|
68
|
+
"button.print_internal_awb": "print internal awb",
|
|
68
69
|
"button.print_invoice": "print invoice",
|
|
69
70
|
"button.print_label": "print label",
|
|
70
71
|
"button.print_packing_list": "print packing list",
|
package/translations/ko.json
CHANGED
package/translations/ms.json
CHANGED