@things-factory/operato-wms 4.3.507 → 4.3.508
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/order/release-order/b2b/b2b-order-list.js +21 -33
- package/client/pages/outbound/loading-product.js +60 -23
- package/client/pages/outbound/worksheet-batch-picking.js +2 -0
- package/package.json +4 -4
- package/translations/en.json +6 -1
- package/translations/ko.json +6 -1
- package/translations/ms.json +6 -1
- package/translations/zh.json +6 -1
|
@@ -4,30 +4,14 @@ import '../batch-picking-popup'
|
|
|
4
4
|
import '../../../outbound/generate-worksheet-popup'
|
|
5
5
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
|
-
import {
|
|
8
|
-
css,
|
|
9
|
-
html
|
|
10
|
-
} from 'lit-element'
|
|
7
|
+
import { css, html } from 'lit-element'
|
|
11
8
|
|
|
12
9
|
import { getCodeByName } from '@things-factory/code-base'
|
|
13
|
-
import {
|
|
14
|
-
i18next,
|
|
15
|
-
localize
|
|
16
|
-
} from '@things-factory/i18n-base'
|
|
10
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
17
11
|
import { openPopup } from '@things-factory/layout-base'
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
PageView
|
|
22
|
-
} from '@things-factory/shell'
|
|
23
|
-
import {
|
|
24
|
-
CommonButtonStyles,
|
|
25
|
-
ScrollbarStyles
|
|
26
|
-
} from '@things-factory/styles'
|
|
27
|
-
import {
|
|
28
|
-
isMobileDevice,
|
|
29
|
-
sleep
|
|
30
|
-
} from '@things-factory/utils'
|
|
12
|
+
import { client, navigate, PageView } from '@things-factory/shell'
|
|
13
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
14
|
+
import { isMobileDevice, sleep } from '@things-factory/utils'
|
|
31
15
|
|
|
32
16
|
import { ORDER_STATUS } from '../../../constants'
|
|
33
17
|
|
|
@@ -146,12 +130,12 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
146
130
|
],
|
|
147
131
|
props: { searchOper: 'eq' }
|
|
148
132
|
},
|
|
149
|
-
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
},
|
|
133
|
+
// {
|
|
134
|
+
// label: i18next.t('field.release_date'),
|
|
135
|
+
// name: 'releaseDate',
|
|
136
|
+
// type: 'date',
|
|
137
|
+
// props: { searchOper: 'i_like' }
|
|
138
|
+
// },
|
|
155
139
|
{
|
|
156
140
|
label: i18next.t('field.status'),
|
|
157
141
|
name: 'status',
|
|
@@ -164,6 +148,12 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
164
148
|
],
|
|
165
149
|
props: { searchOper: 'eq' }
|
|
166
150
|
},
|
|
151
|
+
{
|
|
152
|
+
label: i18next.t('field.product_info'),
|
|
153
|
+
name: 'sku',
|
|
154
|
+
type: 'text',
|
|
155
|
+
props: { searchOper: ' i_like' }
|
|
156
|
+
},
|
|
167
157
|
{
|
|
168
158
|
label: i18next.t('field.from'),
|
|
169
159
|
name: 'fromDate',
|
|
@@ -193,10 +183,10 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
193
183
|
value: new Date().toISOString().split('T')[0]
|
|
194
184
|
},
|
|
195
185
|
{
|
|
196
|
-
label: i18next.t('field.
|
|
197
|
-
name: '
|
|
198
|
-
type: '
|
|
199
|
-
props: { searchOper: '
|
|
186
|
+
label: i18next.t('field.based_on_release_date'),
|
|
187
|
+
name: 'isReleaseDateSearch',
|
|
188
|
+
type: 'checkbox',
|
|
189
|
+
props: { searchOper: 'eq' }
|
|
200
190
|
},
|
|
201
191
|
{
|
|
202
192
|
label: i18next.t('field.export_option'),
|
|
@@ -442,13 +432,11 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
442
432
|
let fromDt = new Date(filter.value)
|
|
443
433
|
fromDt.setHours(0)
|
|
444
434
|
filter.value = fromDt.toISOString()
|
|
445
|
-
filter.name = 'createdAt'
|
|
446
435
|
break
|
|
447
436
|
case 'toDate':
|
|
448
437
|
let toDt = new Date(filter.value)
|
|
449
438
|
toDt.setHours(23, 59, 59)
|
|
450
439
|
filter.value = toDt.toISOString()
|
|
451
|
-
filter.name = 'createdAt'
|
|
452
440
|
break
|
|
453
441
|
default:
|
|
454
442
|
break
|
|
@@ -4,28 +4,14 @@ import './return-pallet-check-popup'
|
|
|
4
4
|
import './transport-vehicles-popup'
|
|
5
5
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
|
-
import {
|
|
8
|
-
css,
|
|
9
|
-
html
|
|
10
|
-
} from 'lit-element'
|
|
7
|
+
import { css, html } from 'lit-element'
|
|
11
8
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
12
9
|
|
|
13
10
|
import { sleep } from '@operato/utils'
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
SingleColumnFormStyles
|
|
17
|
-
} from '@things-factory/form-ui'
|
|
18
|
-
import {
|
|
19
|
-
i18next,
|
|
20
|
-
localize
|
|
21
|
-
} from '@things-factory/i18n-base'
|
|
11
|
+
import { MultiColumnFormStyles, SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
12
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
22
13
|
import { openPopup } from '@things-factory/layout-base'
|
|
23
|
-
import {
|
|
24
|
-
client,
|
|
25
|
-
CustomAlert,
|
|
26
|
-
PageView,
|
|
27
|
-
store
|
|
28
|
-
} from '@things-factory/shell'
|
|
14
|
+
import { client, CustomAlert, PageView, store } from '@things-factory/shell'
|
|
29
15
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
30
16
|
import { isMobileDevice } from '@things-factory/utils'
|
|
31
17
|
|
|
@@ -46,7 +32,8 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
46
32
|
_selectedTaskStatus: String,
|
|
47
33
|
transportVehicles: Array,
|
|
48
34
|
_hasVas: Boolean,
|
|
49
|
-
_requireDeliveryInformation: Boolean
|
|
35
|
+
_requireDeliveryInformation: Boolean,
|
|
36
|
+
_enableLoadingSelectAll: Boolean
|
|
50
37
|
}
|
|
51
38
|
}
|
|
52
39
|
|
|
@@ -98,6 +85,18 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
98
85
|
font-size: var(--grist-title-icon-size);
|
|
99
86
|
color: var(--grist-title-icon-color);
|
|
100
87
|
}
|
|
88
|
+
|
|
89
|
+
.select-all-button {
|
|
90
|
+
margin: 10px;
|
|
91
|
+
background-color: var(--button-background-color);
|
|
92
|
+
border: var(--button-border);
|
|
93
|
+
border-radius: var(--button-border-radius);
|
|
94
|
+
padding: var(--button-padding);
|
|
95
|
+
color: var(--button-color);
|
|
96
|
+
font: var(--button-font);
|
|
97
|
+
text-transform: var(--button-text-transform);
|
|
98
|
+
}
|
|
99
|
+
|
|
101
100
|
h2 + data-grist {
|
|
102
101
|
padding-top: var(--grist-title-with-grid-padding);
|
|
103
102
|
}
|
|
@@ -126,7 +125,10 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
126
125
|
})
|
|
127
126
|
}
|
|
128
127
|
|
|
129
|
-
if (
|
|
128
|
+
if (
|
|
129
|
+
this._selectedTaskStatus === 'EXECUTING' ||
|
|
130
|
+
this.pickedProductData.records.filter(record => record['__selected__'] == true).length > 0
|
|
131
|
+
) {
|
|
130
132
|
actions.push({
|
|
131
133
|
title: i18next.t('button.load'),
|
|
132
134
|
action: this._loading.bind(this),
|
|
@@ -231,6 +233,13 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
231
233
|
<div class="grist">
|
|
232
234
|
<div class="left-column">
|
|
233
235
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.loading')}</h2>
|
|
236
|
+
${isMobileDevice() && this._enableLoadingSelectAll
|
|
237
|
+
? html`
|
|
238
|
+
<button type="button" class="select-all-button" @click="${this._selectAll.bind(this)}">
|
|
239
|
+
Select All
|
|
240
|
+
</button>
|
|
241
|
+
`
|
|
242
|
+
: ''}
|
|
234
243
|
<data-grist
|
|
235
244
|
id="picked-product-grist"
|
|
236
245
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
@@ -326,9 +335,19 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
326
335
|
}
|
|
327
336
|
|
|
328
337
|
async pageInitialized() {
|
|
329
|
-
this._hasVas
|
|
330
|
-
|
|
331
|
-
|
|
338
|
+
this._hasVas = false
|
|
339
|
+
|
|
340
|
+
let [enableToteScanning, enableLoadingDeliveryInformation, enableLoadingSelectAll] = await Promise.all([
|
|
341
|
+
fetchSettingRule('enable-tote-scanning'),
|
|
342
|
+
fetchSettingRule('enable-loading-delivery-information'),
|
|
343
|
+
fetchSettingRule('enable-loading-select-all')
|
|
344
|
+
])
|
|
345
|
+
this._requireDeliveryInformation = enableLoadingDeliveryInformation
|
|
346
|
+
this._enableLoadingSelectAll = enableLoadingSelectAll || false
|
|
347
|
+
|
|
348
|
+
// let enableToteScanning = await fetchSettingRule('enable-tote-scanning')
|
|
349
|
+
// this._requireDeliveryInformation = await fetchSettingRule('enable-loading-delivery-information')
|
|
350
|
+
|
|
332
351
|
let configColumns = [
|
|
333
352
|
{ type: 'gutter', gutterName: 'sequence' },
|
|
334
353
|
{ type: 'gutter', gutterName: 'row-selector', multiple: true }
|
|
@@ -1008,6 +1027,24 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1008
1027
|
}
|
|
1009
1028
|
}
|
|
1010
1029
|
|
|
1030
|
+
_selectAll(event) {
|
|
1031
|
+
this.pickedProductData = {
|
|
1032
|
+
...this.pickedProductData,
|
|
1033
|
+
records: [
|
|
1034
|
+
...this.pickedProductData.records.map(record => {
|
|
1035
|
+
return {
|
|
1036
|
+
...record,
|
|
1037
|
+
__selected__: true
|
|
1038
|
+
}
|
|
1039
|
+
})
|
|
1040
|
+
]
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
this.pickedProductGrist.refresh()
|
|
1044
|
+
|
|
1045
|
+
this.updateContext()
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1011
1048
|
_onProductChangeHandler(event) {
|
|
1012
1049
|
const beforeChange = event.detail.before
|
|
1013
1050
|
const changeRecord = event.detail.after
|
|
@@ -628,6 +628,7 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
|
|
|
628
628
|
name
|
|
629
629
|
refNo
|
|
630
630
|
attentionTo
|
|
631
|
+
attentionCompany
|
|
631
632
|
releaseDate
|
|
632
633
|
city
|
|
633
634
|
}
|
|
@@ -1192,6 +1193,7 @@ class WorksheetBatchPicking extends localize(i18next)(PageView) {
|
|
|
1192
1193
|
printQty: itm.targetInventory.releaseQty,
|
|
1193
1194
|
releaseQty: itm.targetInventory.releaseQty,
|
|
1194
1195
|
attentionTo: itm.targetInventory.releaseGood.attentionTo?.toUpperCase() || '-',
|
|
1196
|
+
attentionCompany: itm.targetInventory.releaseGood.attentionCompany?.toUpperCase() || '-',
|
|
1195
1197
|
roNo: itm.targetInventory.releaseGood.name,
|
|
1196
1198
|
refNo: itm.targetInventory.releaseGood.refNo || '-',
|
|
1197
1199
|
city: itm.targetInventory.releaseGood.city?.toUpperCase() || '-',
|
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.508",
|
|
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.508",
|
|
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",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.452",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.452",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.505",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.508"
|
|
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": "25637309cba3247f14dbc620589eafab2a7a7d93"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"field.based_on_release_date": "based on release date",
|
|
3
|
+
"field.created_from": "created from",
|
|
4
|
+
"field.created_to": "created to",
|
|
2
5
|
"arrival_notice_created": "arrival notice created",
|
|
3
6
|
"button.activate": "activate",
|
|
4
7
|
"button.add_edit": "add & edit",
|
|
@@ -552,6 +555,8 @@
|
|
|
552
555
|
"field.registration_number": "registration number",
|
|
553
556
|
"field.reject_date": "reject date",
|
|
554
557
|
"field.release_date": "release date",
|
|
558
|
+
"field.release_date_from": "release date from",
|
|
559
|
+
"field.release_date_to": "release date to",
|
|
555
560
|
"field.release_good_no": "release good no.",
|
|
556
561
|
"field.release_good": "release good",
|
|
557
562
|
"field.release_goods": "release goods",
|
|
@@ -643,7 +648,7 @@
|
|
|
643
648
|
"field.supplier_name": "supplier name",
|
|
644
649
|
"field.supplier": "supplier",
|
|
645
650
|
"field.system_batch_no": "system batch no",
|
|
646
|
-
"field.system_expiration_date"
|
|
651
|
+
"field.system_expiration_date": "system expiration date",
|
|
647
652
|
"field.system_location": "system location",
|
|
648
653
|
"field.system_qty": "system qty",
|
|
649
654
|
"field.system_remark": "system remark",
|
package/translations/ko.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"field.based_on_release_date": "[ko]based on release date",
|
|
3
|
+
"field.created_from": "[ko]created from",
|
|
4
|
+
"field.created_to": "[ko]created to",
|
|
5
|
+
"field.release_date_from": "[ko]release date from",
|
|
6
|
+
"field.release_date_to": "[ko]release date to",
|
|
2
7
|
"label.normal": "[ko]normal",
|
|
3
8
|
"label.printing_mode": "[ko]printing mode",
|
|
4
9
|
"label.print_by_sku": "[ko]print by sku",
|
|
@@ -635,7 +640,7 @@
|
|
|
635
640
|
"field.supplier_name": "공급 업체명",
|
|
636
641
|
"field.supplier": "[ko]supplier",
|
|
637
642
|
"field.system_batch_no": "[ko] system batch no",
|
|
638
|
-
"field.system_expiration_date"
|
|
643
|
+
"field.system_expiration_date": "[ko]system expiration date",
|
|
639
644
|
"field.system_location": "시스템 로케이션",
|
|
640
645
|
"field.system_qty": "시스템 수량",
|
|
641
646
|
"field.system_remark": "시스템 비고",
|
package/translations/ms.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"field.based_on_release_date": "[ms]based on release date",
|
|
3
|
+
"field.created_from": "[ms]created from",
|
|
4
|
+
"field.created_to": "[ms]created to",
|
|
5
|
+
"field.release_date_from": "[ms]release date from",
|
|
6
|
+
"field.release_date_to": "[ms]release date to",
|
|
2
7
|
"label.normal": "[ms]normal",
|
|
3
8
|
"label.printing_mode": "[ms]printing mode",
|
|
4
9
|
"label.print_by_sku": "[ms]print by sku",
|
|
@@ -615,7 +620,7 @@
|
|
|
615
620
|
"field.supplier_name": "nama pembekal",
|
|
616
621
|
"field.supplier": "[ms]supplier",
|
|
617
622
|
"field.system_batch_no": "[ms] system batch no",
|
|
618
|
-
"field.system_expiration_date"
|
|
623
|
+
"field.system_expiration_date": "[ms]system expiration date",
|
|
619
624
|
"field.system_location": "lokasi sistem",
|
|
620
625
|
"field.system_qty": "kuantiti sistem",
|
|
621
626
|
"field.system_remark": "kenyataan sistem",
|
package/translations/zh.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"field.based_on_release_date": "[zh]based on release date",
|
|
3
|
+
"field.created_from": "[zh]created from",
|
|
4
|
+
"field.created_to": "[zh]created to",
|
|
5
|
+
"field.release_date_from": "[zh]release date from",
|
|
6
|
+
"field.release_date_to": "[zh]release date to",
|
|
2
7
|
"label.normal": "[zh]normal",
|
|
3
8
|
"label.printing_mode": "[zh]printing mode",
|
|
4
9
|
"label.print_by_sku": "[zh]print by sku",
|
|
@@ -596,7 +601,7 @@
|
|
|
596
601
|
"field.supplier_name": "供应商名称",
|
|
597
602
|
"field.supplier": "[zh]supplier",
|
|
598
603
|
"field.system_batch_no": "[zh] system batch no",
|
|
599
|
-
"field.system_expiration_date"
|
|
604
|
+
"field.system_expiration_date": "[zh]system expiration date",
|
|
600
605
|
"field.system_location": "system location",
|
|
601
606
|
"field.system_qty": "system qty",
|
|
602
607
|
"field.system_remark": "system remark",
|