@things-factory/operato-wms 4.0.25 → 4.0.29

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.
Files changed (91) hide show
  1. package/client/bootstrap.js +1 -1
  2. package/client/pages/billing/claim-chit/claim-chit-detail.js +32 -35
  3. package/client/pages/billing/claim-chit/claim-chit-list.js +17 -17
  4. package/client/pages/billing/claim-chit/create-claim-chit.js +39 -30
  5. package/client/pages/billing/transport-summary-report.js +21 -23
  6. package/client/pages/bulk-operation/validate-ro-popup.js +14 -54
  7. package/client/pages/inbound/expiry-date-popup.js +2 -2
  8. package/client/pages/inbound/inbound-reusable-pallet.js +21 -19
  9. package/client/pages/inbound/palletizing-pallets-popup.js +10 -9
  10. package/client/pages/inbound/putaway-product.js +16 -8
  11. package/client/pages/inbound/putaway-worksheet-generate-popup.js +4 -4
  12. package/client/pages/inbound/unload-product.js +16 -88
  13. package/client/pages/inbound/vas-selector.js +9 -8
  14. package/client/pages/inventory-check/check-inventory-popup.js +20 -18
  15. package/client/pages/inventory-check/cycle-count-recheck-popup.js +25 -15
  16. package/client/pages/inventory-check/inspecting-product.js +2 -2
  17. package/client/pages/inventory-check/inventory-check-list.js +30 -19
  18. package/client/pages/inventory-check/search-popup.js +15 -14
  19. package/client/pages/inventory-check/worksheet-cycle-count.js +17 -15
  20. package/client/pages/master/location-list.js +61 -52
  21. package/client/pages/master/pallet-list.js +34 -30
  22. package/client/pages/master/print-location-label.js +142 -156
  23. package/client/pages/master/warehouse-list.js +33 -29
  24. package/client/pages/master/worker-list.js +30 -30
  25. package/client/pages/order/arrival-notice/assign-buffer-location.js +1 -1
  26. package/client/pages/order/goods-received-note/customer-grn-list.js +9 -8
  27. package/client/pages/order/goods-received-note/customer-received-note.js +8 -7
  28. package/client/pages/order/goods-received-note/received-note-detail.js +7 -6
  29. package/client/pages/order/goods-received-note/received-note-list.js +9 -8
  30. package/client/pages/order/release-order/batch-generate-single-picking-worksheet-popup.js +1 -1
  31. package/client/pages/order/release-order/release-extra-product-popup.js +3 -7
  32. package/client/pages/order/release-order/release-order-detail.js +2 -2
  33. package/client/pages/order/return-order/check-return-order.js +15 -13
  34. package/client/pages/order/return-order/receive-return-order-requests.js +25 -22
  35. package/client/pages/order/return-order/rejected-return-order.js +8 -14
  36. package/client/pages/order/return-order/return-order-assign-buffer-location.js +16 -14
  37. package/client/pages/order/return-order/return-order-detail.js +35 -31
  38. package/client/pages/order/return-order/return-order-list.js +9 -8
  39. package/client/pages/order/return-order/return-order-requests.js +20 -18
  40. package/client/pages/order/reverse-kitting-order/reverse-kitting-order-list.js +9 -8
  41. package/client/pages/order/transfer-order/receive-transfer-order-request.js +67 -66
  42. package/client/pages/order/transfer-order/rejected-transfer-order.js +7 -6
  43. package/client/pages/order/transfer-order/transfer-order-detail.js +7 -6
  44. package/client/pages/order/transfer-order/transfer-order-requests.js +20 -18
  45. package/client/pages/order/transport-order/contact-point-selector-popup.js +20 -20
  46. package/client/pages/order/transport-order/delivery-note-popup.js +52 -46
  47. package/client/pages/order/transport-order/print-delivery-note.js +17 -16
  48. package/client/pages/order/transport-order/upload-delivery-note.js +21 -18
  49. package/client/pages/order/transport-order/view-delivery-note.js +19 -22
  50. package/client/pages/order/vas-order/create-vas-order.js +12 -11
  51. package/client/pages/order/vas-order/receive-vas-order.js +25 -22
  52. package/client/pages/order/vas-order/vas-order-detail.js +26 -23
  53. package/client/pages/order/vas-order/vas-order-list.js +9 -8
  54. package/client/pages/order/vas-order/vas-order-requests.js +11 -12
  55. package/client/pages/outbound/outbound-reusable-pallet.js +25 -33
  56. package/client/pages/outbound/packing-product.js +6 -0
  57. package/client/pages/outbound/picking-product.js +1 -0
  58. package/client/pages/outbound/single-outbound-worksheet.js +9 -8
  59. package/client/pages/outbound/worksheet-loading.js +16 -14
  60. package/client/pages/outbound/worksheet-packing.js +15 -13
  61. package/client/pages/report/custom-elccl/elccl-daily-collection-report.js +8 -9
  62. package/client/pages/report/custom-elccl/elccl-daily-order-inventory-report.js +26 -25
  63. package/client/pages/report/custom-elccl/elccl-delivery-order-summary.js +10 -9
  64. package/client/pages/report/custom-elccl/elccl-inventory-pallet-detail-report.js +13 -8
  65. package/client/pages/report/custom-elccl/elccl-inventory-report.js +11 -10
  66. package/client/pages/report/inventory-pallet-report.js +13 -12
  67. package/client/pages/report/job-sheet-list.js +9 -8
  68. package/client/pages/report/job-sheet-popup.js +9 -9
  69. package/client/pages/report/job-sheet-report.js +6 -6
  70. package/client/pages/system/location-sorting-rule.js +53 -46
  71. package/client/pages/vas/abstract-execute-vas.js +47 -34
  72. package/client/pages/vas/execute-pure-vas.js +66 -62
  73. package/client/pages/vas/execute-ref-vas.js +39 -41
  74. package/client/pages/vas/related-vas-list.js +7 -6
  75. package/client/pages/vas/target-inventory-assignment-popup.js +16 -14
  76. package/client/pages/vas/vas-pallet-label-popup.js +1 -1
  77. package/client/pages/vas/vas-worksheet-list.js +9 -8
  78. package/client/pages/vas/worksheet-ref-vas.js +7 -6
  79. package/client/pages/vas/worksheet-vas.js +16 -14
  80. package/client/route.js +16 -32
  81. package/package.json +65 -65
  82. package/things-factory.config.js +0 -16
  83. package/translations/en.json +3 -0
  84. package/translations/ko.json +3 -1
  85. package/translations/ms.json +3 -1
  86. package/translations/zh.json +3 -1
  87. package/client/pages/inbound/location-selector.js +0 -224
  88. package/client/pages/master/picking-bin-list.js +0 -354
  89. package/client/pages/order/retail-replenishment-order/retail-replenishment-order-detail.js +0 -315
  90. package/client/pages/order/retail-replenishment-order/retail-replenishment-order-requests.js +0 -307
  91. package/client/pages/order/vas-order/rejected-vas-order.js +0 -300
@@ -4,7 +4,7 @@ import '@things-factory/grist-ui'
4
4
  import { i18next, localize } from '@things-factory/i18n-base'
5
5
  import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
6
6
  import { CommonButtonStyles } from '@things-factory/styles'
7
- import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
7
+ import { isMobileDevice } from '@things-factory/utils'
8
8
  import gql from 'graphql-tag'
9
9
  import { css, html } from 'lit-element'
10
10
  import { WORKSHEET_STATUS } from '../constants'
@@ -304,17 +304,14 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
304
304
  if (!this._worksheetNo) return
305
305
  const response = await client.query({
306
306
  query: gql`
307
- query {
308
- worksheetWithPagination(${gqlBuilder.buildArgs({
309
- name: this._worksheetNo,
310
- pagination: { page, limit }
311
- })}) {
307
+ query worksheetWithPagination($name: String!, $pagination: Pagination) {
308
+ worksheetWithPagination(name: $name, pagination: $pagination) {
312
309
  worksheet {
313
310
  status
314
311
  inventoryCheck {
315
312
  name
316
313
  executionDate
317
- },
314
+ }
318
315
  bizplace {
319
316
  name
320
317
  }
@@ -338,7 +335,7 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
338
335
  brand
339
336
  description
340
337
  }
341
- },
338
+ }
342
339
  inspectedLocation {
343
340
  name
344
341
  description
@@ -351,7 +348,11 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
351
348
  total
352
349
  }
353
350
  }
354
- `
351
+ `,
352
+ variables: {
353
+ name: this._worksheetNo,
354
+ pagination: { page, limit }
355
+ }
355
356
  })
356
357
 
357
358
  if (!response.errors) {
@@ -456,15 +457,16 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
456
457
 
457
458
  const response = await client.query({
458
459
  query: gql`
459
- mutation {
460
- activateCycleCount(${gqlBuilder.buildArgs({
461
- worksheetNo: this._worksheetNo,
462
- cycleCountWorksheetDetails: this._getCycleCountWSD()
463
- })}) {
460
+ mutation activateCycleCount($worksheetNo: String!, $cycleCountWorksheetDetails: [WorksheetDetailPatch]) {
461
+ activateCycleCount(worksheetNo: $worksheetNo, cycleCountWorksheetDetails: $cycleCountWorksheetDetails) {
464
462
  name
465
463
  }
466
464
  }
467
- `
465
+ `,
466
+ variables: {
467
+ worksheetNo: this._worksheetNo,
468
+ cycleCountWorksheetDetails: this._getCycleCountWSD()
469
+ }
468
470
  })
469
471
 
470
472
  if (!response.errors) {
@@ -13,7 +13,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
13
13
  import { openPopup } from '@things-factory/layout-base'
14
14
  import { client, CustomAlert, PageView, store } from '@things-factory/shell'
15
15
  import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
16
- import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
16
+ import { isMobileDevice } from '@things-factory/utils'
17
17
 
18
18
  import { LOCATION_LABEL_SETTING_KEY, LOCATION_STATUS, LOCATION_TYPE } from '../constants'
19
19
 
@@ -340,32 +340,33 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
340
340
 
341
341
  const response = await client.query({
342
342
  query: gql`
343
- query {
344
- locations(${gqlBuilder.buildArgs({
345
- filters: [...filters, ...this.searchForm.queryFilters],
346
- pagination: { page, limit },
347
- sortings: sorters
348
- })}) {
349
- items {
350
- id
351
- name
352
- zone
353
- row
354
- type
355
- column
356
- shelf
357
- status
358
- updatedAt
359
- updater{
343
+ query locations($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
344
+ locations(filters: $filters, pagination: $pagination, sortings: $sortings) {
345
+ items {
360
346
  id
361
347
  name
362
- description
348
+ zone
349
+ row
350
+ type
351
+ column
352
+ shelf
353
+ status
354
+ updatedAt
355
+ updater {
356
+ id
357
+ name
358
+ description
359
+ }
363
360
  }
361
+ total
364
362
  }
365
- total
366
363
  }
364
+ `,
365
+ variables: {
366
+ filters: [...filters, ...this.searchForm.queryFilters],
367
+ pagination: { page, limit },
368
+ sortings: sorters
367
369
  }
368
- `
369
370
  })
370
371
 
371
372
  if (!response.errors) {
@@ -398,16 +399,17 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
398
399
  }
399
400
  return patch
400
401
  })
401
- const response = await client.query({
402
- query: gql`
403
- mutation {
404
- updateMultipleLocation(${gqlBuilder.buildArgs({
405
- patches
406
- })}) {
402
+ const response = await client.mutate({
403
+ mutation: gql`
404
+ mutation updateMultipleLocation($patches: [LocationPatch!]!) {
405
+ updateMultipleLocation(patches: $patches) {
407
406
  name
408
407
  }
409
408
  }
410
- `
409
+ `,
410
+ variables: {
411
+ patches
412
+ }
411
413
  })
412
414
 
413
415
  if (!response.errors) {
@@ -439,14 +441,15 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
439
441
 
440
442
  const response = await client.query({
441
443
  query: gql`
442
- mutation {
443
- updateMultipleLocation(${gqlBuilder.buildArgs({
444
- patches
445
- })}) {
446
- name
447
- }
444
+ mutation updateMultipleLocation($patches: [LocationPatch!]!) {
445
+ updateMultipleLocation(patches: $patches) {
446
+ name
448
447
  }
449
- `
448
+ }
449
+ `,
450
+ variables: {
451
+ patches
452
+ }
450
453
  })
451
454
 
452
455
  if (!response.errors) {
@@ -488,12 +491,15 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
488
491
  if (record.id) ids.push(record.id)
489
492
  })
490
493
  if (ids && ids.length > 0) {
491
- const response = await client.query({
492
- query: gql`
493
- mutation {
494
- deleteLocations(${gqlBuilder.buildArgs({ ids })})
494
+ const response = await client.mutate({
495
+ mutation: gql`
496
+ mutation deleteLocations($ids: [String!]!) {
497
+ deleteLocations(ids: $ids)
495
498
  }
496
- `
499
+ `,
500
+ variables: {
501
+ ids
502
+ }
497
503
  })
498
504
 
499
505
  if (!response.errors) {
@@ -526,19 +532,20 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
526
532
 
527
533
  const retrieve = await client.query({
528
534
  query: gql`
529
- query {
530
- warehouses(${gqlBuilder.buildArgs({
531
- filters: [...filters],
532
- pagination: {},
533
- sortings: []
534
- })}) {
535
+ query warehouses($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
536
+ warehouses(filters: $filters, pagination: $pagination, sortings: $sortings) {
535
537
  items {
536
538
  id
537
539
  name
538
540
  }
539
541
  }
540
542
  }
541
- `
543
+ `,
544
+ variables: {
545
+ filters: [...filters],
546
+ pagination: {},
547
+ sortings: []
548
+ }
542
549
  })
543
550
  let name = retrieve.data.warehouses.items[0].name
544
551
 
@@ -551,12 +558,13 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
551
558
  cancelButton: { text: i18next.t('button.cancel'), color: '#cfcfcf' },
552
559
  callback: async result => {
553
560
  if (result.value && name !== '') {
554
- const response = await client.query({
555
- query: gql`
556
- mutation {
557
- deleteAllLocations(${gqlBuilder.buildArgs({ warehouseId: this._warehouseId })})
561
+ const response = await client.mutate({
562
+ mutation: gql`
563
+ mutation deleteAllLocations($warehouseId: String!) {
564
+ deleteAllLocations(warehouseId: $warehouseId)
558
565
  }
559
- `
566
+ `,
567
+ variables: { warehouseId: this._warehouseId }
560
568
  })
561
569
  if (!response.errors) this._clearTempLocation()
562
570
  }
@@ -665,6 +673,7 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
665
673
 
666
674
  /* for location record mapping */
667
675
  searchParams.append('location', record.name)
676
+ searchParams.append('originalName', record.originalName)
668
677
  searchParams.append('label', record.indicator)
669
678
 
670
679
  try {
@@ -6,7 +6,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
6
6
  import { css, html } from 'lit-element'
7
7
  import { getCodeByName } from '@things-factory/code-base'
8
8
  import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
9
- import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
9
+ import { isMobileDevice } from '@things-factory/utils'
10
10
  import { i18next, localize } from '@things-factory/i18n-base'
11
11
  import { openPopup } from '@things-factory/layout-base'
12
12
  import { REUSABLE_PALLET_LABEL_SETTING_KEY } from '../constants'
@@ -231,28 +231,24 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
231
231
  async fetchHandler({ page, limit, sorters = [] }) {
232
232
  const response = await client.query({
233
233
  query: gql`
234
- query {
235
- pallets(${gqlBuilder.buildArgs({
236
- filters: [...this.searchForm.queryFilters],
237
- pagination: { page, limit },
238
- sortings: sorters
239
- })}) {
234
+ query pallets($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
235
+ pallets(filters: $filters, pagination: $pagination, sortings: $sortings) {
240
236
  items {
241
237
  id
242
- name
243
- owner{
238
+ name
239
+ owner {
244
240
  id
245
241
  name
246
242
  description
247
243
  }
248
- holder{
244
+ holder {
249
245
  id
250
246
  name
251
247
  description
252
248
  }
253
249
  status
254
250
  updatedAt
255
- updater{
251
+ updater {
256
252
  id
257
253
  name
258
254
  description
@@ -261,7 +257,12 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
261
257
  total
262
258
  }
263
259
  }
264
- `
260
+ `,
261
+ variables: {
262
+ filters: [...this.searchForm.queryFilters],
263
+ pagination: { page, limit },
264
+ sortings: sorters
265
+ }
265
266
  })
266
267
 
267
268
  return {
@@ -274,14 +275,15 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
274
275
  this.dataGrist.showSpinner()
275
276
  const response = await client.query({
276
277
  query: gql`
277
- mutation {
278
- updateMultiplePallet(${gqlBuilder.buildArgs({
279
- patches
280
- })}) {
281
- name
282
- }
278
+ mutation updateMultiplePallet($patches: [PalletPatch!]!) {
279
+ updateMultiplePallet(patches: $patches) {
280
+ name
283
281
  }
284
- `
282
+ }
283
+ `,
284
+ variables: {
285
+ patches
286
+ }
285
287
  })
286
288
  if (!response.errors) {
287
289
  history.back()
@@ -301,16 +303,17 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
301
303
  let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
302
304
  if (patches && patches.length) {
303
305
  this.dataGrist.showSpinner()
304
- const response = await client.query({
305
- query: gql`
306
- mutation {
307
- updateMultiplePallet(${gqlBuilder.buildArgs({
308
- patches
309
- })}) {
306
+ const response = await client.mutate({
307
+ mutation: gql`
308
+ mutation updateMultiplePallet($patches: [PalletPatch!]!) {
309
+ updateMultiplePallet(patches: $patches) {
310
310
  name
311
311
  }
312
312
  }
313
- `
313
+ `,
314
+ variables: {
315
+ patches
316
+ }
314
317
  })
315
318
 
316
319
  if (!response.errors) {
@@ -341,10 +344,11 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
341
344
  if (id && id.length > 0) {
342
345
  const response = await client.query({
343
346
  query: gql`
344
- mutation {
345
- deletePallets(${gqlBuilder.buildArgs({ id })})
346
- }
347
- `
347
+ mutation deletePallets($id: [String!]!) {
348
+ deletePallets(ids: $id)
349
+ }
350
+ `,
351
+ variables: { id }
348
352
  })
349
353
 
350
354
  if (!response.errors) {