@things-factory/operato-wms 4.3.346 → 4.3.348
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.
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
3
|
import './route-label-popup'
|
|
4
|
+
import './select-operator-popup'
|
|
4
5
|
|
|
5
6
|
import gql from 'graphql-tag'
|
|
6
7
|
import { css, html } from 'lit-element'
|
|
7
8
|
|
|
8
|
-
import './select-operator-popup'
|
|
9
9
|
import { getCodeByName } from '@things-factory/code-base'
|
|
10
10
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
11
|
-
import { client, navigate, PageView } from '@things-factory/shell'
|
|
12
|
-
import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
|
|
13
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
14
11
|
import { openPopup } from '@things-factory/layout-base'
|
|
12
|
+
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
13
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
14
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
15
15
|
|
|
16
16
|
import { fetchSettingRule } from '../../fetch-setting-value'
|
|
17
|
-
|
|
18
17
|
import { WORKSHEET_STATUS, WORKSHEET_TYPE } from '../constants'
|
|
19
18
|
|
|
20
19
|
class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
@@ -82,6 +81,12 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
82
81
|
...CommonButtonStyles.activate
|
|
83
82
|
})
|
|
84
83
|
|
|
84
|
+
actions.push({
|
|
85
|
+
title: i18next.t('button.activate'),
|
|
86
|
+
action: this._activateBulkWorksheet.bind(this),
|
|
87
|
+
...CommonButtonStyles.activate
|
|
88
|
+
})
|
|
89
|
+
|
|
85
90
|
return {
|
|
86
91
|
title: i18next.t('title.outbound_worksheet'),
|
|
87
92
|
actions,
|
|
@@ -289,7 +294,12 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
289
294
|
type: 'boolean',
|
|
290
295
|
name: 'releaseGoodPriorityDelivery',
|
|
291
296
|
header: i18next.t('field.priority_delivery'),
|
|
292
|
-
imex: {
|
|
297
|
+
imex: {
|
|
298
|
+
header: i18next.t('field.priority_delivery'),
|
|
299
|
+
key: 'releaseGoodPriorityDelivery',
|
|
300
|
+
width: 20,
|
|
301
|
+
type: 'string'
|
|
302
|
+
},
|
|
293
303
|
width: 120
|
|
294
304
|
},
|
|
295
305
|
{
|
|
@@ -460,7 +470,7 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
460
470
|
releaseGoodCrossDocking: item.releaseGood.crossDocking,
|
|
461
471
|
releaseGoodCourierOption: item.releaseGood.courierOption,
|
|
462
472
|
releaseGoodPackingOption: item.releaseGood.packingOption,
|
|
463
|
-
|
|
473
|
+
releaseGoodPriorityDelivery: item.releaseGood.priorityDelivery
|
|
464
474
|
}
|
|
465
475
|
}) || {}
|
|
466
476
|
}
|
|
@@ -500,10 +510,7 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
500
510
|
|
|
501
511
|
_assignPicker() {
|
|
502
512
|
try {
|
|
503
|
-
let selectedData = this.dataGrist.selected
|
|
504
|
-
return item.status == 'DEACTIVATED'
|
|
505
|
-
})
|
|
506
|
-
|
|
513
|
+
let selectedData = this.dataGrist.selected
|
|
507
514
|
if (selectedData.length <= 0) throw new Error(i18next.t('text.no_available_worksheet_selected'))
|
|
508
515
|
|
|
509
516
|
openPopup(
|
|
@@ -545,6 +552,58 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
545
552
|
}
|
|
546
553
|
}
|
|
547
554
|
|
|
555
|
+
async _activateBulkWorksheet() {
|
|
556
|
+
try {
|
|
557
|
+
let selectedData = this.dataGrist.selected.filter(item => {
|
|
558
|
+
if (item.status !== 'DEACTIVATED') {
|
|
559
|
+
throw new Error(i18next.t('text.please_select_order_with_status_deactivated_only'))
|
|
560
|
+
}
|
|
561
|
+
return item.status == 'DEACTIVATED'
|
|
562
|
+
})
|
|
563
|
+
|
|
564
|
+
if (selectedData.length <= 0)
|
|
565
|
+
throw new Error(i18next.t('text.please_select_at_least_one_order_with_status_deactivated_to_proceed'))
|
|
566
|
+
|
|
567
|
+
if (selectedData.length > 50)
|
|
568
|
+
throw new Error(i18next.t('text.please_select_maximum_50_worksheets_with_status_deactivated_to_proceed'))
|
|
569
|
+
|
|
570
|
+
const result = await CustomAlert({
|
|
571
|
+
title: i18next.t('title.are_you_sure'),
|
|
572
|
+
text: i18next.t('text.activate_picking_worksheet'),
|
|
573
|
+
confirmButton: { text: i18next.t('button.confirm') },
|
|
574
|
+
cancelButton: { text: i18next.t('button.cancel') }
|
|
575
|
+
})
|
|
576
|
+
|
|
577
|
+
if (!result.value) {
|
|
578
|
+
return
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
const response = await client.mutate({
|
|
582
|
+
mutation: gql`
|
|
583
|
+
mutation activateBulkPicking($worksheetNo: [String!]!) {
|
|
584
|
+
activateBulkPicking(worksheetNo: $worksheetNo) {
|
|
585
|
+
id
|
|
586
|
+
name
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
`,
|
|
590
|
+
variables: {
|
|
591
|
+
worksheetNo: selectedData.map(item => {
|
|
592
|
+
return item.name
|
|
593
|
+
})
|
|
594
|
+
}
|
|
595
|
+
})
|
|
596
|
+
|
|
597
|
+
if (!response.errors) {
|
|
598
|
+
this._showToast({ message: i18next.t('text.worksheet_activated') })
|
|
599
|
+
}
|
|
600
|
+
} catch (e) {
|
|
601
|
+
this._showToast(e)
|
|
602
|
+
} finally {
|
|
603
|
+
this.dataGrist.fetch()
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
548
607
|
_modifyDateRange(e) {
|
|
549
608
|
const fromDate = e.currentTarget.value
|
|
550
609
|
|
|
@@ -42,7 +42,6 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
42
42
|
static get properties() {
|
|
43
43
|
return {
|
|
44
44
|
isPalletPickingOrder: Boolean,
|
|
45
|
-
_isLmd: Boolean,
|
|
46
45
|
_worksheetNo: String,
|
|
47
46
|
_worksheetStatus: String,
|
|
48
47
|
_roNo: String,
|
|
@@ -54,7 +53,6 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
54
53
|
wsdGristConfig: Object,
|
|
55
54
|
productGristData: Object,
|
|
56
55
|
worksheetDetailData: Object,
|
|
57
|
-
roType: String,
|
|
58
56
|
vasData: Object,
|
|
59
57
|
vasGristConfig: Object,
|
|
60
58
|
worksheetType: String,
|
|
@@ -151,6 +149,11 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
151
149
|
title: i18next.t('button.back'),
|
|
152
150
|
action: () => history.back(),
|
|
153
151
|
...CommonButtonStyles.back
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
title: i18next.t('button.select_operator'),
|
|
155
|
+
action: this._selectOperator.bind(this),
|
|
156
|
+
...CommonButtonStyles.add
|
|
154
157
|
}
|
|
155
158
|
]
|
|
156
159
|
if (this.crossDocking) {
|
|
@@ -165,14 +168,6 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
165
168
|
})
|
|
166
169
|
}
|
|
167
170
|
|
|
168
|
-
if (this.activatable || this.assignable) {
|
|
169
|
-
actions.push({
|
|
170
|
-
title: i18next.t('button.select_operator'),
|
|
171
|
-
action: this._selectOperator.bind(this),
|
|
172
|
-
...CommonButtonStyles.add
|
|
173
|
-
})
|
|
174
|
-
}
|
|
175
|
-
|
|
176
171
|
if (this.activatable) {
|
|
177
172
|
if (this.isAssignedInventory) {
|
|
178
173
|
actions.push({
|
|
@@ -228,68 +223,23 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
228
223
|
|
|
229
224
|
<label>${i18next.t('label.options')}</label>
|
|
230
225
|
<div options-wrap>
|
|
231
|
-
<input
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
/>
|
|
238
|
-
<label
|
|
239
|
-
|
|
240
|
-
<input
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
/>
|
|
247
|
-
<label
|
|
248
|
-
|
|
249
|
-
<input
|
|
250
|
-
name="courierOption"
|
|
251
|
-
type="checkbox"
|
|
252
|
-
.checked="${this.courierOption}"
|
|
253
|
-
?hidden="${this.roType == 'b2c'}"
|
|
254
|
-
disabled
|
|
255
|
-
/>
|
|
256
|
-
<label ?hidden="${this.roType == 'b2c'}">${i18next.t('field.transporter')}</label>
|
|
257
|
-
|
|
258
|
-
<input
|
|
259
|
-
name="packingOption"
|
|
260
|
-
type="checkbox"
|
|
261
|
-
.checked="${this.packingOption}"
|
|
262
|
-
?hidden="${this.roType == 'b2c'}"
|
|
263
|
-
disabled
|
|
264
|
-
/>
|
|
265
|
-
<label ?hidden="${this.roType == 'b2c'}">${i18next.t('field.packing')}</label>
|
|
266
|
-
|
|
267
|
-
<input
|
|
268
|
-
name="exportOption"
|
|
269
|
-
type="checkbox"
|
|
270
|
-
.checked="${this.exportOption}"
|
|
271
|
-
?hidden="${this.roType == 'b2c'}"
|
|
272
|
-
disabled
|
|
273
|
-
/>
|
|
274
|
-
<label ?hidden="${this.roType == 'b2c'}">${i18next.t('field.export')}</label>
|
|
275
|
-
|
|
276
|
-
<input
|
|
277
|
-
name="vas"
|
|
278
|
-
type="checkbox"
|
|
279
|
-
.checked="${this.vasData?.records}"
|
|
280
|
-
?hidden="${this.roType == 'b2c'}"
|
|
281
|
-
disabled
|
|
282
|
-
/>
|
|
283
|
-
<label ?hidden="${this.roType == 'b2c'}">${i18next.t('field.vas')}</label>
|
|
284
|
-
|
|
285
|
-
<input
|
|
286
|
-
name="lmdOption"
|
|
287
|
-
type="checkbox"
|
|
288
|
-
.checked="${this._isLmd}"
|
|
289
|
-
?hidden="${!this.roType == 'b2c'}"
|
|
290
|
-
disabled
|
|
291
|
-
/>
|
|
292
|
-
<label ?hidden="${!this.roType == 'b2c'}">${i18next.t('field.lmd')}</label>
|
|
226
|
+
<input id="ownCollection" type="checkbox" name="ownCollection" disabled />
|
|
227
|
+
<label for="ownCollection">${i18next.t('label.own_collection')}</label>
|
|
228
|
+
|
|
229
|
+
<input name="crossDocking" type="checkbox" .checked="${this.crossDocking}" disabled />
|
|
230
|
+
<label>${i18next.t('field.cross_docking')}</label>
|
|
231
|
+
|
|
232
|
+
<input name="courierOption" type="checkbox" .checked="${this.courierOption}" disabled />
|
|
233
|
+
<label>${i18next.t('field.transporter')}</label>
|
|
234
|
+
|
|
235
|
+
<input name="packingOption" type="checkbox" .checked="${this.packingOption}" disabled />
|
|
236
|
+
<label>${i18next.t('field.packing')}</label>
|
|
237
|
+
|
|
238
|
+
<input name="exportOption" type="checkbox" .checked="${this.exportOption}" disabled />
|
|
239
|
+
<label>${i18next.t('field.export')}</label>
|
|
240
|
+
|
|
241
|
+
<input name="vas" type="checkbox" .checked="${this.vasData?.records}" disabled />
|
|
242
|
+
<label>${i18next.t('field.vas')}</label>
|
|
293
243
|
</div>
|
|
294
244
|
|
|
295
245
|
<label>${i18next.t('label.release_good_no')}</label>
|
|
@@ -767,8 +717,6 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
767
717
|
releaseDate
|
|
768
718
|
recall
|
|
769
719
|
assignedInventory
|
|
770
|
-
lmdOption
|
|
771
|
-
type
|
|
772
720
|
arrivalNotice {
|
|
773
721
|
name
|
|
774
722
|
}
|
|
@@ -921,8 +869,6 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
921
869
|
|
|
922
870
|
this._roId = releaseGood?.id || ''
|
|
923
871
|
this._roNo = releaseGood?.name || ''
|
|
924
|
-
this.roType = releaseGood?.type
|
|
925
|
-
this._isLmd = releaseGood?.lmdOption
|
|
926
872
|
this.isRecall = releaseGood?.recall
|
|
927
873
|
this.crossDocking = releaseGood?.crossDocking
|
|
928
874
|
this.courierOption = releaseGood?.courierOption
|
|
@@ -1553,6 +1499,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
1553
1499
|
|
|
1554
1500
|
async _activateWorksheet() {
|
|
1555
1501
|
try {
|
|
1502
|
+
console.time('worksheet')
|
|
1556
1503
|
const result = await CustomAlert({
|
|
1557
1504
|
title: i18next.t('title.are_you_sure'),
|
|
1558
1505
|
text: i18next.t('text.activate_picking_worksheet'),
|
|
@@ -1588,6 +1535,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
1588
1535
|
} catch (e) {
|
|
1589
1536
|
this._showToast(e)
|
|
1590
1537
|
}
|
|
1538
|
+
console.time('worksheet')
|
|
1591
1539
|
}
|
|
1592
1540
|
|
|
1593
1541
|
_getPickingWorksheetDetails() {
|
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.348",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.344",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.281",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.346",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.348"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.281",
|
|
@@ -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": "2a089d3eebedec828b98325ef66325ed9c5bd936"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -1915,6 +1915,9 @@
|
|
|
1915
1915
|
"title.picking": "picking",
|
|
1916
1916
|
"title.pickup_logistics": "pickup logistics",
|
|
1917
1917
|
"title.please_select_generate_type": "please select generate type:",
|
|
1918
|
+
"text.please_select_order_with_status_deactivated_only": "please select order with status deactivated only",
|
|
1919
|
+
"text.please_select_at_least_one_order_with_status_deactivated_to_proceed": "please select at least one order with status deactivated to proceed",
|
|
1920
|
+
"text.please_select_maximum_50_worksheets_with_status_deactivated_to_proceed": "please select maximum 50 worksheets with status deactivated to proceed",
|
|
1918
1921
|
"title.preunload": "preunload",
|
|
1919
1922
|
"title.preview": "preview",
|
|
1920
1923
|
"title.print_location_label": "print location label",
|
package/translations/ko.json
CHANGED
|
@@ -1514,6 +1514,9 @@
|
|
|
1514
1514
|
"text.please_select_transport_type": "차량유형을 선택해 주세요",
|
|
1515
1515
|
"text.please_wait": "잠시만 기다려주세요",
|
|
1516
1516
|
"text.please_write_down_full_name_clearly": "please write down full name clearly",
|
|
1517
|
+
"text.please_select_order_with_status_deactivated_only": " [ko] please select order with status deactivated only",
|
|
1518
|
+
"text.please_select_at_least_one_order_with_status_deactivated_to_proceed": "[ko] please select at least one order with status deactivated to proceed",
|
|
1519
|
+
"text.please_select_maximum_50_worksheets_with_status_deactivated_to_proceed": "[ko] please select maximum 50 worksheets with status deactivated to proceed",
|
|
1517
1520
|
"text.preunload_has_completed": "임시하차가 완료 되었습니다",
|
|
1518
1521
|
"text.previous_picking_is_still_executing_please_wait": "[ko]Previous picking is still executing. Please wait",
|
|
1519
1522
|
"text.previous_scan_is_executing": "[ko] previous scan is executing",
|
package/translations/ms.json
CHANGED
|
@@ -1459,6 +1459,9 @@
|
|
|
1459
1459
|
"text.please_select_the_product": "[ms]please select the product",
|
|
1460
1460
|
"text.please_select_transport_type": "sila pilih jenis kenderaan",
|
|
1461
1461
|
"text.please_wait": "sila tunggu",
|
|
1462
|
+
"text.please_select_order_with_status_deactivated_only": " [ms] please select order with status deactivated only",
|
|
1463
|
+
"text.please_select_at_least_one_order_with_status_deactivated_to_proceed": "[ms] please select at least one order with status deactivated to proceed",
|
|
1464
|
+
"text.please_select_maximum_50_worksheets_with_status_deactivated_to_proceed": "[ms] please select maximum 50 worksheets with status deactivated to proceed",
|
|
1462
1465
|
"text.please_write_down_full_name_clearly": "sila pastikan nama anda tulis dengan jelas",
|
|
1463
1466
|
"text.preunload_has_completed": "preunload has been completed",
|
|
1464
1467
|
"text.previous_picking_is_still_executing_please_wait": "[ms] Previous picking is still executing. Please wait",
|
package/translations/zh.json
CHANGED
|
@@ -1427,6 +1427,9 @@
|
|
|
1427
1427
|
"text.please_select_the_product": "[zh]please select the product",
|
|
1428
1428
|
"text.please_select_transport_type": "please select transport type",
|
|
1429
1429
|
"text.please_wait": "please wait",
|
|
1430
|
+
"text.please_select_order_with_status_deactivated_only": " [zh] please select order with status deactivated only",
|
|
1431
|
+
"text.please_select_at_least_one_order_with_status_deactivated_to_proceed": "[zh] please select at least one order with status deactivated to proceed",
|
|
1432
|
+
"text.please_select_maximum_50_worksheets_with_status_deactivated_to_proceed": "[zh] please select maximum 50 worksheets with status deactivated to proceed",
|
|
1430
1433
|
"text.preunload_has_completed": "preunload has been completed",
|
|
1431
1434
|
"text.previous_picking_is_still_executing_please_wait": "[zh]Previous picking is still executing. Please wait",
|
|
1432
1435
|
"text.previous_scan_is_executing": "[zh] previous scan is executing",
|