@things-factory/operato-wms 4.3.60 → 4.3.63
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/components/select-inventory-popup.js +626 -0
- package/client/pages/inbound/unload-product.js +10 -9
- package/client/pages/inventory/inventory-adjustment.js +1 -1
- package/client/pages/inventory/inventory-by-product-detail.js +99 -92
- package/client/pages/inventory/inventory-by-product.js +170 -68
- package/client/pages/inventory-check/inspecting-product.js +1 -1
- package/client/pages/order/release-order/b2b/b2b-order-list.js +76 -80
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +93 -81
- package/client/pages/order/release-order/batch-picking-popup.js +11 -0
- package/client/pages/order/release-order/create-release-order.js +258 -252
- package/client/pages/order/release-order/release-extra-product-popup.js +10 -3
- package/client/pages/order/release-order/release-order-detail.js +202 -63
- package/client/pages/order/transport-order/delivery-note-popup.js +12 -17
- package/client/pages/order/transport-order/upload-delivery-note.js +6 -4
- package/client/pages/order/transport-order/view-delivery-note.js +0 -1
- package/client/pages/outbound/generate-worksheet-popup.js +337 -0
- package/client/pages/outbound/inventory-reassign-popup.js +1097 -0
- package/client/pages/outbound/loading-product.js +2 -2
- package/client/pages/outbound/picking-product.js +174 -100
- package/client/pages/outbound/sorting-product.js +5 -5
- package/client/pages/outbound/worksheet-batch-picking.js +39 -5
- package/client/pages/outbound/worksheet-picking.js +45 -6
- package/client/pages/report/outbound-order-details-report.js +181 -49
- package/client/pages/report/release-inventory-report.js +503 -0
- package/client/route.js +5 -0
- package/dist-server/graphql/resolvers/extra/add-release-good-products.js +54 -3
- package/dist-server/graphql/resolvers/extra/add-release-good-products.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/index.js +2 -1
- package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +63 -28
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/release-inventory-report.js +180 -0
- package/dist-server/graphql/resolvers/reports/release-inventory-report.js.map +1 -0
- package/dist-server/graphql/types/reports/index.js +6 -1
- package/dist-server/graphql/types/reports/index.js.map +1 -1
- package/dist-server/graphql/types/reports/outbound-order-details-report.js +14 -1
- package/dist-server/graphql/types/reports/outbound-order-details-report.js.map +1 -1
- package/dist-server/graphql/types/reports/release-inventory-report-list.js +14 -0
- package/dist-server/graphql/types/reports/release-inventory-report-list.js.map +1 -0
- package/dist-server/graphql/types/reports/release-inventory-report.js +29 -0
- package/dist-server/graphql/types/reports/release-inventory-report.js.map +1 -0
- package/dist-server/utils/report-query-util.js +4 -2
- package/dist-server/utils/report-query-util.js.map +1 -1
- package/helps/release-note.ko.md +13 -7
- package/helps/release-note.md +13 -7
- package/helps/release-note.ms.md +13 -7
- package/helps/release-note.zh.md +13 -7
- package/package.json +9 -9
- package/server/graphql/resolvers/extra/add-release-good-products.ts +66 -3
- package/server/graphql/resolvers/reports/index.ts +3 -1
- package/server/graphql/resolvers/reports/outbound-order-details-report.ts +66 -29
- package/server/graphql/resolvers/reports/release-inventory-report.ts +202 -0
- package/server/graphql/types/reports/index.ts +6 -1
- package/server/graphql/types/reports/outbound-order-details-report.ts +14 -1
- package/server/graphql/types/reports/release-inventory-report-list.ts +8 -0
- package/server/graphql/types/reports/release-inventory-report.ts +23 -0
- package/server/utils/report-query-util.ts +4 -2
- package/things-factory.config.js +4 -0
- package/translations/en.json +73 -16
- package/translations/ko.json +157 -110
- package/translations/ms.json +65 -16
- package/translations/zh.json +79 -29
|
@@ -3,6 +3,7 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import './inventory-assign-popup'
|
|
4
4
|
import './inventory-auto-assign-popup'
|
|
5
5
|
import './select-operator-popup'
|
|
6
|
+
import './inventory-reassign-popup'
|
|
6
7
|
|
|
7
8
|
import gql from 'graphql-tag'
|
|
8
9
|
import { css, html } from 'lit-element'
|
|
@@ -32,6 +33,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
32
33
|
_worksheetNo: String,
|
|
33
34
|
_worksheetStatus: String,
|
|
34
35
|
_roNo: String,
|
|
36
|
+
_roId: String,
|
|
35
37
|
_statusList: Array,
|
|
36
38
|
ganNo: String,
|
|
37
39
|
assignee: Object,
|
|
@@ -154,11 +156,18 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
if (this.activatable) {
|
|
157
|
-
actions.push(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
actions.push(
|
|
160
|
+
{
|
|
161
|
+
title: i18next.t('button.reassign'),
|
|
162
|
+
action: this._openReassignInventoryPopup.bind(this),
|
|
163
|
+
...CommonButtonStyles.assignment
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
title: i18next.t('button.activate'),
|
|
167
|
+
action: this._activateWorksheet.bind(this),
|
|
168
|
+
...CommonButtonStyles.activate
|
|
169
|
+
}
|
|
170
|
+
)
|
|
162
171
|
}
|
|
163
172
|
|
|
164
173
|
if (this.assignable) {
|
|
@@ -641,6 +650,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
641
650
|
name
|
|
642
651
|
}
|
|
643
652
|
releaseGood {
|
|
653
|
+
id
|
|
644
654
|
name
|
|
645
655
|
description
|
|
646
656
|
refNo
|
|
@@ -736,6 +746,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
736
746
|
|
|
737
747
|
this.worksheetDetails = worksheet.worksheetDetails
|
|
738
748
|
this._worksheetStatus = worksheet.status
|
|
749
|
+
this._roId = worksheet?.releaseGood?.id || ''
|
|
739
750
|
this._roNo = worksheet?.releaseGood?.name || ''
|
|
740
751
|
this.worksheetType = worksheet?.type
|
|
741
752
|
this.crossDocking = worksheet?.releaseGood?.crossDocking
|
|
@@ -1152,7 +1163,10 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
1152
1163
|
this.preWsdGristConfig.columns.splice(palletIdColumnIdx, 1, cartonIdColumnConfig)
|
|
1153
1164
|
}
|
|
1154
1165
|
|
|
1155
|
-
if (
|
|
1166
|
+
if (
|
|
1167
|
+
this.worksheetDetailData.records.some(e => e.batchIdRef) &&
|
|
1168
|
+
!this.preWsdGristConfig.columns.find(column => column.name === 'batchIdRef')
|
|
1169
|
+
) {
|
|
1156
1170
|
this.preWsdGristConfig.columns = [...this.preWsdGristConfig.columns, batchIdRefColumnConfig]
|
|
1157
1171
|
}
|
|
1158
1172
|
|
|
@@ -1372,6 +1386,31 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
1372
1386
|
})
|
|
1373
1387
|
}
|
|
1374
1388
|
|
|
1389
|
+
_openReassignInventoryPopup() {
|
|
1390
|
+
openPopup(
|
|
1391
|
+
html`
|
|
1392
|
+
<inventory-reassign-popup
|
|
1393
|
+
.bizplaceId=${this.targetBizpace?.id}
|
|
1394
|
+
.roId=${this._roId}
|
|
1395
|
+
.worksheetNo=${this._worksheetNo}
|
|
1396
|
+
@reassignment-completed="${async () => {
|
|
1397
|
+
await this.fetchOrderInventories()
|
|
1398
|
+
await this.fetchWorksheetDetails(this._worksheetNo)
|
|
1399
|
+
|
|
1400
|
+
this.updateContext()
|
|
1401
|
+
}}"
|
|
1402
|
+
></inventory-reassign-popup>
|
|
1403
|
+
`,
|
|
1404
|
+
{
|
|
1405
|
+
escapable: false,
|
|
1406
|
+
closable: false,
|
|
1407
|
+
backdrop: true,
|
|
1408
|
+
size: 'large',
|
|
1409
|
+
title: i18next.t('title.reassign_inventory')
|
|
1410
|
+
}
|
|
1411
|
+
)
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1375
1414
|
_selectOperator() {
|
|
1376
1415
|
openPopup(
|
|
1377
1416
|
html`
|
|
@@ -3,13 +3,27 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import '../inventory/inventory-by-product-detail'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
css,
|
|
8
|
+
html
|
|
9
|
+
} from 'lit-element'
|
|
7
10
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
8
11
|
|
|
9
12
|
import { getCodeByName } from '@things-factory/code-base'
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
import {
|
|
14
|
+
i18next,
|
|
15
|
+
localize
|
|
16
|
+
} from '@things-factory/i18n-base'
|
|
17
|
+
import {
|
|
18
|
+
client,
|
|
19
|
+
gqlContext,
|
|
20
|
+
PageView,
|
|
21
|
+
store
|
|
22
|
+
} from '@things-factory/shell'
|
|
23
|
+
import {
|
|
24
|
+
flattenObject,
|
|
25
|
+
isMobileDevice
|
|
26
|
+
} from '@things-factory/utils'
|
|
13
27
|
|
|
14
28
|
class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageView)) {
|
|
15
29
|
static get styles() {
|
|
@@ -211,10 +225,10 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
211
225
|
width: 200
|
|
212
226
|
},
|
|
213
227
|
{
|
|
214
|
-
type: '
|
|
228
|
+
type: 'string',
|
|
215
229
|
name: 'doDeliveryDate',
|
|
216
230
|
header: i18next.t('field.do_delivery_date'),
|
|
217
|
-
width:
|
|
231
|
+
width: 200
|
|
218
232
|
},
|
|
219
233
|
{
|
|
220
234
|
type: 'string',
|
|
@@ -222,6 +236,12 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
222
236
|
header: i18next.t('field.delivery_address'),
|
|
223
237
|
width: 300
|
|
224
238
|
},
|
|
239
|
+
{
|
|
240
|
+
type: 'string',
|
|
241
|
+
name: 'manifestNo',
|
|
242
|
+
header: i18next.t('field.manifest_no'),
|
|
243
|
+
width: 200
|
|
244
|
+
},
|
|
225
245
|
{
|
|
226
246
|
type: 'string',
|
|
227
247
|
name: 'refNo1',
|
|
@@ -240,12 +260,6 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
240
260
|
header: i18next.t('field.ref_no_3'),
|
|
241
261
|
width: 150
|
|
242
262
|
},
|
|
243
|
-
{
|
|
244
|
-
type: 'string',
|
|
245
|
-
name: 'status',
|
|
246
|
-
header: i18next.t('field.status'),
|
|
247
|
-
width: 120
|
|
248
|
-
},
|
|
249
263
|
{
|
|
250
264
|
type: 'boolean',
|
|
251
265
|
name: 'exportOption',
|
|
@@ -260,18 +274,64 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
260
274
|
record: { align: 'center' },
|
|
261
275
|
width: 120
|
|
262
276
|
},
|
|
277
|
+
{
|
|
278
|
+
type: 'string',
|
|
279
|
+
name: 'containerSize',
|
|
280
|
+
header: i18next.t('field.container_size'),
|
|
281
|
+
record: { align: 'center' },
|
|
282
|
+
width: 120
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
type: 'string',
|
|
286
|
+
name: 'transportOption',
|
|
287
|
+
header: i18next.t('field.transport_option'),
|
|
288
|
+
record: { align: 'center' },
|
|
289
|
+
width: 120
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
type: 'string',
|
|
293
|
+
name: 'vehicleNo',
|
|
294
|
+
header: i18next.t('field.vehicle_no'),
|
|
295
|
+
record: { align: 'center' },
|
|
296
|
+
width: 120
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
type: 'string',
|
|
300
|
+
name: 'driverName',
|
|
301
|
+
header: i18next.t('field.driver_name'),
|
|
302
|
+
record: { align: 'center' },
|
|
303
|
+
width: 120
|
|
304
|
+
},
|
|
263
305
|
{
|
|
264
306
|
type: 'float',
|
|
265
307
|
name: 'palletQty',
|
|
266
308
|
header: i18next.t('field.pallet_qty'),
|
|
267
309
|
width: 120
|
|
268
310
|
},
|
|
311
|
+
{
|
|
312
|
+
type: 'string',
|
|
313
|
+
name: 'status',
|
|
314
|
+
header: i18next.t('field.status'),
|
|
315
|
+
width: 120
|
|
316
|
+
},
|
|
269
317
|
{
|
|
270
318
|
type: 'datetime',
|
|
271
319
|
name: 'orderCreatedAt',
|
|
272
320
|
header: i18next.t('field.order_created_at'),
|
|
273
321
|
width: 170
|
|
274
322
|
},
|
|
323
|
+
{
|
|
324
|
+
type: 'string',
|
|
325
|
+
name: 'acceptedBy',
|
|
326
|
+
header: i18next.t('field.accepted_by'),
|
|
327
|
+
width: 170
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
type: 'datetime',
|
|
331
|
+
name: 'acceptedAt',
|
|
332
|
+
header: i18next.t('field.accepted_at'),
|
|
333
|
+
width: 170
|
|
334
|
+
},
|
|
275
335
|
{
|
|
276
336
|
type: 'datetime',
|
|
277
337
|
name: 'pickingStart',
|
|
@@ -281,19 +341,43 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
281
341
|
{
|
|
282
342
|
type: 'datetime',
|
|
283
343
|
name: 'pickingComplete',
|
|
284
|
-
header: i18next.t('field.
|
|
344
|
+
header: i18next.t('field.picking_end'),
|
|
285
345
|
width: 170
|
|
286
346
|
},
|
|
287
347
|
{
|
|
288
|
-
type: '
|
|
289
|
-
name: '
|
|
290
|
-
header: i18next.t('field.
|
|
348
|
+
type: 'datetime',
|
|
349
|
+
name: 'packingStart',
|
|
350
|
+
header: i18next.t('field.packing_start'),
|
|
291
351
|
width: 170
|
|
292
352
|
},
|
|
293
353
|
{
|
|
294
354
|
type: 'datetime',
|
|
295
|
-
name: '
|
|
296
|
-
header: i18next.t('field.
|
|
355
|
+
name: 'packingComplete',
|
|
356
|
+
header: i18next.t('field.packing_end'),
|
|
357
|
+
width: 170
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
type: 'datetime',
|
|
361
|
+
name: 'sortingStart',
|
|
362
|
+
header: i18next.t('field.sorting_start'),
|
|
363
|
+
width: 170
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
type: 'datetime',
|
|
367
|
+
name: 'sortingComplete',
|
|
368
|
+
header: i18next.t('field.sorting_end'),
|
|
369
|
+
width: 170
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
type: 'datetime',
|
|
373
|
+
name: 'loadingStart',
|
|
374
|
+
header: i18next.t('field.loading_start'),
|
|
375
|
+
width: 170
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
type: 'datetime',
|
|
379
|
+
name: 'loadingComplete',
|
|
380
|
+
header: i18next.t('field.loading_end'),
|
|
297
381
|
width: 170
|
|
298
382
|
},
|
|
299
383
|
{
|
|
@@ -350,24 +434,6 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
350
434
|
header: i18next.t('field.uom'),
|
|
351
435
|
width: 100
|
|
352
436
|
},
|
|
353
|
-
{
|
|
354
|
-
type: 'string',
|
|
355
|
-
name: 'unitCost',
|
|
356
|
-
header: i18next.t('field.unit_cost'),
|
|
357
|
-
width: 100
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
type: 'float',
|
|
361
|
-
name: 'returnToLocationQty',
|
|
362
|
-
header: i18next.t('field.return_qty'),
|
|
363
|
-
width: 120
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
type: 'float',
|
|
367
|
-
name: 'returnToLocationUomValue',
|
|
368
|
-
header: i18next.t('field.return_uom_value'),
|
|
369
|
-
width: 120
|
|
370
|
-
},
|
|
371
437
|
{
|
|
372
438
|
type: 'float',
|
|
373
439
|
name: 'unitVolume',
|
|
@@ -410,6 +476,18 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
410
476
|
header: i18next.t('field.weight_unit'),
|
|
411
477
|
width: 100
|
|
412
478
|
},
|
|
479
|
+
{
|
|
480
|
+
type: 'float',
|
|
481
|
+
name: 'returnToLocationQty',
|
|
482
|
+
header: i18next.t('field.return_qty'),
|
|
483
|
+
width: 120
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
type: 'float',
|
|
487
|
+
name: 'returnToLocationUomValue',
|
|
488
|
+
header: i18next.t('field.return_uom'),
|
|
489
|
+
width: 120
|
|
490
|
+
},
|
|
413
491
|
{
|
|
414
492
|
type: 'string',
|
|
415
493
|
name: 'palletId',
|
|
@@ -494,10 +572,22 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
494
572
|
header: i18next.t('field.loaded_at'),
|
|
495
573
|
width: 170
|
|
496
574
|
},
|
|
575
|
+
{
|
|
576
|
+
type: 'string',
|
|
577
|
+
name: 'manifestedBy',
|
|
578
|
+
header: i18next.t('field.manifested_by'),
|
|
579
|
+
width: 170
|
|
580
|
+
},
|
|
497
581
|
{
|
|
498
582
|
type: 'datetime',
|
|
499
|
-
name: '
|
|
500
|
-
header: i18next.t('field.
|
|
583
|
+
name: 'manifestedAt',
|
|
584
|
+
header: i18next.t('field.manifested_at'),
|
|
585
|
+
width: 170
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
type: 'datetime',
|
|
589
|
+
name: 'dispatchedAt',
|
|
590
|
+
header: i18next.t('field.dispatched_at'),
|
|
501
591
|
width: 170
|
|
502
592
|
}
|
|
503
593
|
]
|
|
@@ -515,10 +605,15 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
515
605
|
'status',
|
|
516
606
|
'exportOption',
|
|
517
607
|
'containerNo',
|
|
608
|
+
'containerSize',
|
|
518
609
|
'palletQty',
|
|
519
610
|
'orderCreatedAt',
|
|
520
611
|
'pickingStart',
|
|
521
612
|
'pickingComplete',
|
|
613
|
+
'packingStart',
|
|
614
|
+
'packingComplete',
|
|
615
|
+
'loadingStart',
|
|
616
|
+
'loadingComplete',
|
|
522
617
|
'acceptedBy',
|
|
523
618
|
'acceptedAt',
|
|
524
619
|
'product|sku',
|
|
@@ -530,7 +625,6 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
530
625
|
'qty',
|
|
531
626
|
'uomValue',
|
|
532
627
|
'uom',
|
|
533
|
-
'unitCost',
|
|
534
628
|
'returnToLocationQty',
|
|
535
629
|
'returnToLocationUomValue',
|
|
536
630
|
'unitVolume',
|
|
@@ -554,7 +648,9 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
554
648
|
'checkedRemarkAt',
|
|
555
649
|
'loadedAt',
|
|
556
650
|
'loadedBy',
|
|
557
|
-
'
|
|
651
|
+
'manifestedAt',
|
|
652
|
+
'manifestedBy',
|
|
653
|
+
'dispatchedAt'
|
|
558
654
|
]
|
|
559
655
|
}
|
|
560
656
|
|
|
@@ -628,17 +724,28 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
628
724
|
doNo
|
|
629
725
|
doDeliveryDate
|
|
630
726
|
deliveryAddress
|
|
727
|
+
manifestNo
|
|
631
728
|
roNo
|
|
632
729
|
roType
|
|
633
730
|
status
|
|
634
731
|
refNo1
|
|
635
732
|
refNo2
|
|
636
733
|
refNo3
|
|
734
|
+
containerSize
|
|
735
|
+
transportOption
|
|
736
|
+
vehicleNo
|
|
737
|
+
driverName
|
|
637
738
|
acceptedBy
|
|
638
739
|
acceptedAt
|
|
639
740
|
orderCreatedAt
|
|
640
741
|
pickingStart
|
|
641
742
|
pickingComplete
|
|
743
|
+
packingStart
|
|
744
|
+
packingComplete
|
|
745
|
+
sortingStart
|
|
746
|
+
sortingComplete
|
|
747
|
+
loadingStart
|
|
748
|
+
loadingComplete
|
|
642
749
|
orderLineItem
|
|
643
750
|
product {
|
|
644
751
|
sku
|
|
@@ -653,7 +760,6 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
653
760
|
returnToLocationQty
|
|
654
761
|
returnToLocationUomValue
|
|
655
762
|
uom
|
|
656
|
-
unitCost
|
|
657
763
|
unitVolume
|
|
658
764
|
totalVolume
|
|
659
765
|
unitNettWeight
|
|
@@ -675,10 +781,13 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
675
781
|
checkedRemarkBy
|
|
676
782
|
loadedAt
|
|
677
783
|
loadedBy
|
|
678
|
-
|
|
784
|
+
dispatchedAt
|
|
679
785
|
exportOption
|
|
680
786
|
containerNo
|
|
681
787
|
palletQty
|
|
788
|
+
manifestedAt
|
|
789
|
+
manifestedBy
|
|
790
|
+
dispatchedAt
|
|
682
791
|
}
|
|
683
792
|
total
|
|
684
793
|
}
|
|
@@ -693,8 +802,8 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
693
802
|
records:
|
|
694
803
|
response.data.outboundOrderDetailsReport.items.map(itm => {
|
|
695
804
|
itm = {
|
|
696
|
-
...itm
|
|
697
|
-
unitCost: parseFloat(itm.unitCost ? itm.unitCost : 0).toFixed(2)
|
|
805
|
+
...itm
|
|
806
|
+
// unitCost: parseFloat(itm.unitCost ? itm.unitCost : 0).toFixed(2)
|
|
698
807
|
}
|
|
699
808
|
return flattenObject({ ...itm, bizplace: { name: `${itm.bizplace.name} ${itm.bizplace.description}` } })
|
|
700
809
|
}) || []
|
|
@@ -791,18 +900,29 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
791
900
|
{ header: i18next.t('field.do_no'), key: 'doNo', width: 30, type: 'string' },
|
|
792
901
|
{ header: i18next.t('field.do_delivery_date'), key: 'doDeliveryDate', width: 30, type: 'string' },
|
|
793
902
|
{ header: i18next.t('field.delivery_address'), key: 'deliveryAddress', width: 40, type: 'string' },
|
|
903
|
+
{ header: i18next.t('field.manifest_no'), key: 'manifestNo', width: 30, type: 'string' },
|
|
794
904
|
{ header: i18next.t('field.ref_no'), key: 'refNo1', width: 60, type: 'string' },
|
|
795
905
|
{ header: i18next.t('field.ref_no_2'), key: 'refNo2', width: 60, type: 'string' },
|
|
796
906
|
{ header: i18next.t('field.ref_no_3'), key: 'refNo3', width: 60, type: 'string' },
|
|
797
907
|
{ header: i18next.t('field.export'), key: 'exportOption', width: 20, type: 'string' },
|
|
798
908
|
{ header: i18next.t('field.container_no'), key: 'containerNo', width: 30, type: 'string' },
|
|
909
|
+
{ header: i18next.t('field.container_size'), key: 'containerSize', width: 30, type: 'string' },
|
|
910
|
+
{ header: i18next.t('field.transport_option'), key: 'transportOption', width: 30, type: 'string' },
|
|
911
|
+
{ header: i18next.t('field.vehicle_no'), key: 'vehicleNo', width: 30, type: 'string' },
|
|
912
|
+
{ header: i18next.t('field.driver_name'), key: 'driverName', width: 30, type: 'string' },
|
|
799
913
|
{ header: i18next.t('field.pallet_qty'), key: 'palletQty', width: 30, type: 'string' },
|
|
800
914
|
{ header: i18next.t('field.status'), key: 'status', width: 30, type: 'string' },
|
|
801
915
|
{ header: i18next.t('field.order_created_at'), key: 'orderCreatedAt', width: 30, type: 'string' },
|
|
802
|
-
{ header: i18next.t('field.picking_start'), key: 'pickingStart', width: 30, type: 'string' },
|
|
803
|
-
{ header: i18next.t('field.picking_complete'), key: 'pickingComplete', width: 30, type: 'string' },
|
|
804
916
|
{ header: i18next.t('field.accepted_by'), key: 'acceptedBy', width: 30, type: 'string' },
|
|
805
917
|
{ header: i18next.t('field.accepted_at'), key: 'acceptedAt', width: 30, type: 'string' },
|
|
918
|
+
{ header: i18next.t('field.picking_start'), key: 'pickingStart', width: 30, type: 'string' },
|
|
919
|
+
{ header: i18next.t('field.picking_end'), key: 'pickingComplete', width: 30, type: 'string' },
|
|
920
|
+
{ header: i18next.t('field.packing_start'), key: 'packingStart', width: 30, type: 'string' },
|
|
921
|
+
{ header: i18next.t('field.packing_end'), key: 'packingComplete', width: 30, type: 'string' },
|
|
922
|
+
{ header: i18next.t('field.sorting_start'), key: 'sortingStart', width: 30, type: 'string' },
|
|
923
|
+
{ header: i18next.t('field.sorting_end'), key: 'sortingComplete', width: 30, type: 'string' },
|
|
924
|
+
{ header: i18next.t('field.loading_start'), key: 'loadingStart', width: 30, type: 'string' },
|
|
925
|
+
{ header: i18next.t('field.loading_end'), key: 'loadingComplete', width: 30, type: 'string' },
|
|
806
926
|
{ header: i18next.t('field.sku'), key: 'product|sku', width: 25, type: 'string' },
|
|
807
927
|
{ header: i18next.t('field.product_name'), key: 'product|name', width: 50, type: 'string' },
|
|
808
928
|
{ header: i18next.t('field.product_description'), key: 'product|description', width: 50, type: 'string' },
|
|
@@ -819,6 +939,8 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
819
939
|
{ header: i18next.t('field.unit_gross_weight'), key: 'unitGrossWeight', width: 15, type: 'string' },
|
|
820
940
|
{ header: i18next.t('field.total_unit_gross_weight'), key: 'totalUnitGrossWeight', width: 15, type: 'string' },
|
|
821
941
|
{ header: i18next.t('field.weight_unit'), key: 'weightUnit', width: 15, type: 'string' },
|
|
942
|
+
{ header: i18next.t('field.return_qty'), key: 'returnToLocationQty', width: 15, type: 'string' },
|
|
943
|
+
{ header: i18next.t('field.return_uom'), key: 'returnToLocationUomValue', width: 15, type: 'string' },
|
|
822
944
|
{ header: i18next.t('field.lot_id'), key: 'palletId', width: 25, type: 'string' },
|
|
823
945
|
{ header: i18next.t('field.carton_id'), key: 'cartonId', width: 25, type: 'string' },
|
|
824
946
|
{ header: i18next.t('field.batch_id'), key: 'batchId', width: 25, type: 'string' },
|
|
@@ -833,7 +955,9 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
833
955
|
{ header: i18next.t('field.remark_checked_at'), key: 'checkedRemarkAt', width: 15, type: 'string' },
|
|
834
956
|
{ header: i18next.t('field.loaded_by'), key: 'loadedBy', width: 15, type: 'string' },
|
|
835
957
|
{ header: i18next.t('field.loaded_at'), key: 'loadedAt', width: 15, type: 'string' },
|
|
836
|
-
{ header: i18next.t('field.
|
|
958
|
+
{ header: i18next.t('field.manifested_by'), key: 'manifestedBy', width: 15, type: 'string' },
|
|
959
|
+
{ header: i18next.t('field.manifested_at'), key: 'manifestedAt', width: 15, type: 'string' },
|
|
960
|
+
{ header: i18next.t('field.dispatched_at'), key: 'dispatchedAt', width: 15, type: 'string' }
|
|
837
961
|
]
|
|
838
962
|
|
|
839
963
|
var exportData = {
|
|
@@ -844,13 +968,21 @@ class OutboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVi
|
|
|
844
968
|
orderCreatedAt: itm.orderCreatedAt ? new Date(parseInt(itm.orderCreatedAt)).toLocaleString() : '',
|
|
845
969
|
pickingStart: itm.pickingStart ? new Date(parseInt(itm.pickingStart)).toLocaleString() : '',
|
|
846
970
|
pickingComplete: itm.pickingComplete ? new Date(parseInt(itm.pickingComplete)).toLocaleString() : '',
|
|
971
|
+
packingStart: itm.packingStart ? new Date(parseInt(itm.packingStart)).toLocaleString() : '',
|
|
972
|
+
packingComplete: itm.packingComplete ? new Date(parseInt(itm.packingComplete)).toLocaleString() : '',
|
|
973
|
+
sortingStart: itm.sortingStart ? new Date(parseInt(itm.sortingStart)).toLocaleString() : '',
|
|
974
|
+
sortingComplete: itm.sortingComplete ? new Date(parseInt(itm.sortingComplete)).toLocaleString() : '',
|
|
975
|
+
loadingStart: itm.loadingStart ? new Date(parseInt(itm.loadingStart)).toLocaleString() : '',
|
|
976
|
+
loadingComplete: itm.loadingComplete ? new Date(parseInt(itm.loadingComplete)).toLocaleString() : '',
|
|
847
977
|
acceptedAt: itm.acceptedAt ? new Date(parseInt(itm.acceptedAt)).toLocaleString() : '',
|
|
848
978
|
pickedAt: itm.pickedAt ? new Date(parseInt(itm.pickedAt)).toLocaleString() : '',
|
|
849
979
|
packedAt: itm.packedAt ? new Date(parseInt(itm.packedAt)).toLocaleString() : '',
|
|
850
980
|
loadedAt: itm.loadedAt ? new Date(parseInt(itm.loadedAt)).toLocaleString() : '',
|
|
851
|
-
|
|
981
|
+
manifestedAt: itm.manifestedAt ? new Date(parseInt(itm.manifestedAt)).toLocaleString() : '',
|
|
982
|
+
dispatchedAt: itm.dispatchedAt ? new Date(parseInt(itm.dispatchedAt)).toLocaleString() : '',
|
|
852
983
|
expirationDate: itm.expirationDate ? new Date(parseInt(itm.expirationDate)).toLocaleString() : '',
|
|
853
|
-
manufactureDate: itm.manufactureDate ? new Date(parseInt(itm.manufactureDate)).toLocaleString() : ''
|
|
984
|
+
manufactureDate: itm.manufactureDate ? new Date(parseInt(itm.manufactureDate)).toLocaleString() : '',
|
|
985
|
+
checkedRemarkAt: itm.checkedRemarkAt ? new Date(parseInt(itm.checkedRemarkAt)).toLocaleString() : ''
|
|
854
986
|
}
|
|
855
987
|
})
|
|
856
988
|
}
|