@things-factory/operato-wms 4.0.29 → 4.0.33

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 (48) hide show
  1. package/client/fetch-setting-value.js +10 -2
  2. package/client/pages/bulk-operation/bulk-operation.js +44 -10
  3. package/client/pages/bulk-operation/validate-gan-popup.js +5 -4
  4. package/client/pages/bulk-operation/validate-ro-popup.js +7 -39
  5. package/client/pages/components/popup-reusable-pallet.js +145 -0
  6. package/client/pages/components/vas-templates/vas-pallet-add-popup.js +12 -11
  7. package/client/pages/components/vas-templates/vas-relabel.js +57 -34
  8. package/client/pages/components/vas-templates/vas-repack-relabel.js +56 -36
  9. package/client/pages/components/vas-templates/vas-repack.js +45 -31
  10. package/client/pages/components/vas-templates/vas-repalletizing.js +58 -39
  11. package/client/pages/components/vas-templates/vas-unpack.js +38 -24
  12. package/client/pages/components/worksheet-information-popup.js +4 -1
  13. package/client/pages/inbound/unload-product.js +119 -103
  14. package/client/pages/inventory/onhand-inventory.js +1 -0
  15. package/client/pages/order/arrival-notice/arrival-notice-detail.js +52 -44
  16. package/client/pages/order/arrival-notice/arrival-notice-list.js +2 -5
  17. package/client/pages/order/release-order/b2b/b2b-order-list.js +1 -5
  18. package/client/pages/order/release-order/batch-picking-popup.js +4 -3
  19. package/client/pages/order/release-order/create-release-order.js +1 -1
  20. package/client/pages/order/release-order/release-extra-product-popup.js +10 -5
  21. package/client/pages/order/release-order/release-order-detail.js +31 -14
  22. package/client/pages/order/return-order/create-return-order.js +41 -52
  23. package/client/pages/order/reverse-kitting-order/reverse-kitting-order-detail.js +2 -2
  24. package/client/pages/order/transport-order/create-delivery-order.js +4 -2
  25. package/client/pages/order/transport-order/delivery-note-popup.js +2 -2
  26. package/client/pages/outbound/packing-worksheet-list.js +64 -4
  27. package/client/pages/outbound/picking-product.js +12 -7
  28. package/client/pages/outbound/worksheet-batch-picking.js +1 -1
  29. package/client/pages/outbound/worksheet-picking.js +2 -2
  30. package/client/pages/report/custom-elccl/elccl-inventory-summary-report.js +5 -1
  31. package/client/pages/report/inbound-order-details-report.js +3 -5
  32. package/client/pages/vas/abstract-execute-vas.js +4 -1
  33. package/client/pages/vas/execute-pure-vas.js +3 -8
  34. package/client/pages/vas/reverse-kitting/execute-reverse-kitting.js +3 -3
  35. package/client/pages/vas/reverse-kitting/popup-combination-sets.js +3 -3
  36. package/client/pages/vas/reverse-kitting/popup-reverse-kitting-template.js +1 -1
  37. package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +2 -4
  38. package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js.map +1 -1
  39. package/dist-server/graphql/types/reports/inbound-order-details-report.js +2 -1
  40. package/dist-server/graphql/types/reports/inbound-order-details-report.js.map +1 -1
  41. package/package.json +65 -65
  42. package/server/graphql/resolvers/reports/inbound-order-details-report.ts +2 -4
  43. package/server/graphql/types/reports/inbound-order-details-report.ts +2 -1
  44. package/translations/en.json +15 -1
  45. package/translations/ko.json +20 -7
  46. package/translations/ms.json +21 -8
  47. package/translations/zh.json +21 -8
  48. package/client/pages/components/popup-unloading.js +0 -610
@@ -1,6 +1,7 @@
1
- import { client } from '@things-factory/shell'
2
1
  import gql from 'graphql-tag'
3
2
 
3
+ import { client } from '@things-factory/shell'
4
+
4
5
  export async function fetchSettingRule(setting, partnerDomainId) {
5
6
  const response = await client.query({
6
7
  query: gql`
@@ -15,7 +16,14 @@ export async function fetchSettingRule(setting, partnerDomainId) {
15
16
 
16
17
  if (!response.errors) {
17
18
  if (response.data.setting?.value) {
18
- return response.data.setting.value.toLowerCase() == 'true'
19
+ switch (response.data.setting.value.toLowerCase().trim()) {
20
+ case 'true':
21
+ return true
22
+ case 'false':
23
+ return false
24
+ default:
25
+ return response.data.setting.value.trim()
26
+ }
19
27
  }
20
28
 
21
29
  return false
@@ -362,13 +362,13 @@ class BulkOperation extends localize(i18next)(PageView) {
362
362
  containerSize: String(raw.containerSize || ''),
363
363
  sku: String(raw.sku || ''),
364
364
  batchId: String(raw.batchId || ''),
365
- packingType: String(raw.packingType || ''),
366
- packingSize: raw.packingSize,
367
- uom: String(raw.uom || ''),
365
+ packingType: raw.packingType && raw.packingType != '' ? String(raw.packingType) : null,
366
+ packingSize: !isNaN(Number(raw.packingSize || 'x')) ? Number(raw.packingSize) : null,
367
+ uom: raw.uom && raw.uom != '' ? String(raw.uom) : null,
368
368
  packQty: parseInt(raw.packQty || 0),
369
369
  palletQty: parseInt(raw.palletQty || 0),
370
370
  unitPrice: Number(raw.unitPrice || 0),
371
- manufactureYear: parseInt(raw.manufactureYear || 0),
371
+ manufactureYear: Math.round(Number(raw.manufactureYear || 0)),
372
372
  etaDate: this._getStdDateStr(etaDate)
373
373
  }
374
374
  })}
@@ -386,12 +386,46 @@ class BulkOperation extends localize(i18next)(PageView) {
386
386
 
387
387
  _validateReleaseOrder(records) {
388
388
  /* validate excel that user uploaded */
389
- openPopup(html` <validate-ro-popup .records=${records} .bizplaceId=${this._roBizplaceId}></validate-ro-popup> `, {
390
- backdrop: true,
391
- escapable: false,
392
- size: 'large',
393
- title: i18next.t('title.bulk_release_orders')
394
- })
389
+ openPopup(
390
+ html`
391
+ <validate-ro-popup
392
+ .records=${records.map(record => {
393
+ let releaseDate = new Date(String(record.releaseDate || ''))
394
+
395
+ return {
396
+ refNo: String(record.refNo || ''),
397
+ refNo2: String(record.refNo2 || ''),
398
+ refNo3: String(record.refNo3 || ''),
399
+ releaseDate: this._getStdDateStr(releaseDate),
400
+ deliveryAddress1: String(record.deliveryAddress1 || ''),
401
+ deliveryAddress2: String(record.deliveryAddress2 || ''),
402
+ deliveryAddress3: String(record.deliveryAddress3 || ''),
403
+ deliveryAddress4: String(record.deliveryAddress4 || ''),
404
+ attentionTo: String(record.attentionTo || ''),
405
+ city: String(record.city || ''),
406
+ state: String(record.state || ''),
407
+ country: String(record.country || ''),
408
+ sku: String(record.sku || ''),
409
+ productId: String(record.productId || ''),
410
+ packingType: record.packingType && record.packingType != '' ? String(record.packingType) : null,
411
+ packingSize: !isNaN(Number(record.packingSize || 'x')) ? Number(record.packingSize) : null,
412
+ uom: record.uom && record.uom != '' ? String(record.uom) : null,
413
+ releaseQty: Number(record.releaseQty),
414
+ postalCode: String(record.postalCode),
415
+ phone1: String(record.phone1),
416
+ exportOption: false
417
+ }
418
+ })}
419
+ .bizplaceId=${this._roBizplaceId}
420
+ ></validate-ro-popup>
421
+ `,
422
+ {
423
+ backdrop: true,
424
+ escapable: false,
425
+ size: 'large',
426
+ title: i18next.t('title.bulk_release_orders')
427
+ }
428
+ )
395
429
  }
396
430
 
397
431
  _openBizplacesSelector(source) {
@@ -83,7 +83,8 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
83
83
  icon: 'close',
84
84
  handlers: {
85
85
  click: (columns, data, column, record, rowIndex) => {
86
- this.records = [...data.records.filter((_, idx) => idx !== rowIndex)]
86
+ data.records.splice(rowIndex, 1)
87
+ this.records = data.records
87
88
  }
88
89
  }
89
90
  },
@@ -205,8 +206,8 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
205
206
  },
206
207
  {
207
208
  type: 'string',
208
- name: 'remark',
209
- header: i18next.t('field.remark'),
209
+ name: 'errorMsg',
210
+ header: i18next.t('field.error_message'),
210
211
  width: 350
211
212
  }
212
213
  ]
@@ -284,7 +285,7 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
284
285
  palletQty
285
286
  unitPrice
286
287
  manufactureYear
287
- remark
288
+ errorMsg
288
289
  }
289
290
  }
290
291
  `,
@@ -12,15 +12,9 @@ import { isMobileDevice } from '@things-factory/utils'
12
12
  class ValidateRoPopup extends localize(i18next)(LitElement) {
13
13
  static get properties() {
14
14
  return {
15
- _oiConfig: Object,
16
15
  _roConfig: Object,
17
- _selectedRoIndex: Number,
18
- _selectedRoRecord: Object,
19
16
  bizplaceId: String,
20
- importHandler: Object,
21
- oiConfig: Object,
22
- records: Array,
23
- roConfig: Object
17
+ records: Array
24
18
  }
25
19
  }
26
20
 
@@ -89,7 +83,8 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
89
83
  icon: 'close',
90
84
  handlers: {
91
85
  click: (columns, data, column, record, rowIndex) => {
92
- this.records = [...data.records.filter((_, idx) => idx !== rowIndex)]
86
+ data.records.splice(rowIndex, 1)
87
+ this.records = data.records
93
88
  }
94
89
  }
95
90
  },
@@ -270,7 +265,7 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
270
265
 
271
266
  async firstUpdated() {
272
267
  this._roConfig = this._config
273
- await this._getAvailableItems(this.records)
268
+ await this._getAvailableItems(this.records, this.bizplaceId)
274
269
  }
275
270
 
276
271
  updated(changedProps) {
@@ -282,7 +277,7 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
282
277
  }
283
278
  }
284
279
 
285
- async _getAvailableItems(rawData) {
280
+ async _getAvailableItems(rawReleaseGoods, bizplaceId) {
286
281
  const response = await client.query({
287
282
  query: gql`
288
283
  query bulkReleaseGoodsAvailableItems($rawReleaseGoods: [NewReleaseGood!], $bizplaceId: String!) {
@@ -315,34 +310,7 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
315
310
  }
316
311
  }
317
312
  `,
318
- variables: {
319
- rawReleaseGoods: rawData.map(raw => {
320
- return {
321
- refNo: raw.refNo,
322
- refNo2: raw.refNo2,
323
- refNo3: raw.refNo3,
324
- releaseDate: String(raw.releaseDate),
325
- deliveryAddress1: raw.deliveryAddress1,
326
- deliveryAddress2: raw.deliveryAddress2,
327
- deliveryAddress3: raw.deliveryAddress3,
328
- deliveryAddress4: raw.deliveryAddress4,
329
- attentionTo: raw.attentionTo,
330
- city: raw.city,
331
- state: raw.state,
332
- country: raw.country,
333
- sku: raw.sku,
334
- productId: raw.productId,
335
- packingType: raw.packingType,
336
- packingSize: raw.packingSize,
337
- uom: raw.uom,
338
- releaseQty: raw.releaseQty,
339
- postalCode: String(raw.postalCode),
340
- phone1: String(raw.phone1),
341
- exportOption: false
342
- }
343
- }),
344
- bizplaceId: this.bizplaceId
345
- }
313
+ variables: { rawReleaseGoods, bizplaceId }
346
314
  })
347
315
 
348
316
  if (!response.errors) {
@@ -403,7 +371,7 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
403
371
  if (insufficientStockError) {
404
372
  // if system suddenly found that any item is insufficient,
405
373
  // display the available items again.
406
- await this._getAvailableItems(this.records)
374
+ await this._getAvailableItems(this.records, this.bizplaceId)
407
375
  this._showToast({ message: i18next.t('text.please_recheck_your_request_data') })
408
376
  }
409
377
  }
@@ -0,0 +1,145 @@
1
+ import { i18next, localize } from '@things-factory/i18n-base'
2
+ import { css, html, LitElement } from 'lit-element'
3
+ import { SingleColumnFormStyles } from '@things-factory/form-ui'
4
+ import { client } from '@things-factory/shell'
5
+ import { PALLET_STATUS } from '../constants'
6
+ import gql from 'graphql-tag'
7
+
8
+ class PopupReusablePallet extends localize(i18next)(LitElement) {
9
+ static get properties() {
10
+ return {
11
+ label: String,
12
+ value: String,
13
+ reusablePalletInput: String,
14
+ _reusablePallet: Object
15
+ }
16
+ }
17
+
18
+ static get styles() {
19
+ return [
20
+ SingleColumnFormStyles,
21
+ css`
22
+ :host {
23
+ display: flex;
24
+ flex-direction: column;
25
+ overflow-x: overlay;
26
+ background-color: var(--main-section-background-color);
27
+ }
28
+ .container {
29
+ display: flex;
30
+ flex-direction: column;
31
+ flex: 1;
32
+ }
33
+ .container > barcode-scannable-input {
34
+ flex: 1;
35
+ resize: none;
36
+ border-color: var(--primary-color);
37
+ padding: 5px;
38
+ margin: 10px;
39
+ outline: none;
40
+ }
41
+ .button-container {
42
+ padding: var(--button-container-padding);
43
+ margin: var(--button-container-margin);
44
+ text-align: var(--button-container-align);
45
+ background-color: var(--button-container-background);
46
+ height: var(--button-container-height);
47
+ }
48
+ `
49
+ ]
50
+ }
51
+
52
+ get reusablePalletInput() {
53
+ return this.shadowRoot
54
+ .querySelector('barcode-scanable-input[name=reusablePalletId]')
55
+ .shadowRoot.querySelector('input')
56
+ }
57
+
58
+ firstUpdated() {}
59
+
60
+ updated(changedProps) {}
61
+
62
+ render() {
63
+ return html`
64
+ <div class="container">
65
+ <form id="input-form" class="single-column-form">
66
+ <fieldset>
67
+ <label>${this.label}</label>
68
+ <barcode-scanable-input
69
+ name="reusablePalletId"
70
+ custom-input
71
+ without-enter
72
+ @keypress="${async e => {
73
+ if (e.keyCode !== 13) return
74
+ e.preventDefault()
75
+ await this._verifyInput()
76
+ }}"
77
+ ></barcode-scanable-input>
78
+ </fieldset>
79
+ </form>
80
+ </div>
81
+ <div class="button-container">
82
+ <mwc-button
83
+ raised
84
+ @click="${async () => await this._verifyInput()}"
85
+ label="${i18next.t('button.confirm')}"
86
+ ></mwc-button>
87
+ </div>
88
+ }
89
+ `
90
+ }
91
+
92
+ async _verifyInput() {
93
+ if (!this.reusablePalletInput.value) return this._showToast({ message: i18next.t('text.reusable_pallet_id_empty') })
94
+
95
+ if (!(await this._isReusablePallet())) return this._showToast({ message: i18next.t('text.not_a_reusable_pallet') })
96
+
97
+ this._showToast({
98
+ message: `${i18next.t('text.now_using_reusable_pallet')} ${this.reusablePalletInput.value}`
99
+ })
100
+ this.dispatchEvent(
101
+ new CustomEvent('submit', {
102
+ detail: { reusablePallet: this._reusablePallet }
103
+ })
104
+ )
105
+ history.back()
106
+ }
107
+
108
+ async _isReusablePallet() {
109
+ try {
110
+ const response = await client.query({
111
+ query: gql`
112
+ query palletByStatus($name: String!, $status: String!) {
113
+ palletByStatus(name: $name, status: $status) {
114
+ id
115
+ name
116
+ }
117
+ }
118
+ `,
119
+ variables: { name: this.reusablePalletInput.value, status: PALLET_STATUS.ACTIVE.value }
120
+ })
121
+
122
+ if (response.data.palletByStatus) {
123
+ this._reusablePallet = response.data.palletByStatus
124
+ return true
125
+ }
126
+
127
+ return false
128
+ } catch (e) {
129
+ this._showToast(e)
130
+ }
131
+ }
132
+
133
+ _showToast({ type, message }) {
134
+ document.dispatchEvent(
135
+ new CustomEvent('notify', {
136
+ detail: {
137
+ type,
138
+ message
139
+ }
140
+ })
141
+ )
142
+ }
143
+ }
144
+
145
+ window.customElements.define('popup-reusable-pallet', PopupReusablePallet)
@@ -2,7 +2,6 @@ import { localize, i18next } from '@things-factory/i18n-base'
2
2
  import { SingleColumnFormStyles } from '@things-factory/form-ui'
3
3
  import { LitElement, html, css } from 'lit-element'
4
4
  import { client } from '@things-factory/shell'
5
- import { gqlBuilder } from '@things-factory/utils'
6
5
  import gql from 'graphql-tag'
7
6
  import '@things-factory/barcode-ui'
8
7
 
@@ -150,14 +149,15 @@ class VasPalletAddPopup extends localize(i18next)(LitElement) {
150
149
 
151
150
  const response = await client.query({
152
151
  query: gql`
153
- query {
154
- inventoryByPallet(${gqlBuilder.buildArgs({
155
- palletId
156
- })}) {
152
+ query inventoryByPallet($palletId: String!) {
153
+ inventoryByPallet(palletId: $palletId) {
157
154
  id
158
155
  }
159
156
  }
160
- `
157
+ `,
158
+ variables: {
159
+ palletId
160
+ }
161
161
  })
162
162
 
163
163
  if (!response.errors) {
@@ -177,14 +177,15 @@ class VasPalletAddPopup extends localize(i18next)(LitElement) {
177
177
 
178
178
  const response = await client.query({
179
179
  query: gql`
180
- query {
181
- locationByName(${gqlBuilder.buildArgs({
182
- name: locationName
183
- })}) {
180
+ query locationByName($name: String!) {
181
+ locationByName(name: $name) {
184
182
  id
185
183
  }
186
184
  }
187
- `
185
+ `,
186
+ variables: {
187
+ name: locationName
188
+ }
188
189
  })
189
190
 
190
191
  if (!response.errors) {
@@ -4,7 +4,7 @@ import '@things-factory/grist-ui'
4
4
  import { i18next, localize } from '@things-factory/i18n-base'
5
5
  import { openPopup } from '@things-factory/layout-base'
6
6
  import { client, CustomAlert } from '@things-factory/shell'
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 { ORDER_TYPES, ORDER_VAS_STATUS, WORKSHEET_STATUS } from '../../constants'
@@ -351,7 +351,7 @@ class VasRelabel extends localize(i18next)(VasTemplate) {
351
351
  if (this.record.status === ORDER_VAS_STATUS.PENDING.value) return
352
352
  const queryName = 'products'
353
353
  const basicArgs = {
354
- filters: [{ name: 'id', operator: 'noteq', value: this.targetInfo.target.productId }]
354
+ filters: [{ name: 'id', operator: 'noteq', value: this.targetInfo[0].target.productId }]
355
355
  }
356
356
  const confirmCallback = selected => {
357
357
  this._selectedProduct = selected
@@ -396,15 +396,19 @@ class VasRelabel extends localize(i18next)(VasTemplate) {
396
396
  async _checkValidInventory() {
397
397
  const response = await client.query({
398
398
  query: gql`
399
- query {
400
- checkRelabelable(${gqlBuilder.buildArgs({
401
- batchId: this._selectedBatchId || this.targetInfo.target.batchId,
402
- productId: this._selectedProduct?.id || this.targetInfo.target.productId,
403
- packingType: this.targetInfo.packingType,
404
- unitUomValue: this.targetInfo.uomValue / this.targetInfo.qty
405
- })})
399
+ query checkRelabelable($batchId: String!, $productId: String!, $packingType: String!, $unitUomValue: Float!){
400
+ checkRelabelable(batchId: $batchId, productId: $productId, packingType: $packingType, unitUomValue: $unitUomValue){
401
+
402
+ }
403
+ }
406
404
  }
407
- `
405
+ `,
406
+ variables: {
407
+ batchId: this._selectedBatchId || this.targetInfo.target.batchId,
408
+ productId: this._selectedProduct?.id || this.targetInfo.target.productId,
409
+ packingType: this.targetInfo.packingType,
410
+ unitUomValue: this.targetInfo.uomValue / this.targetInfo.qty
411
+ }
408
412
  })
409
413
 
410
414
  if (!response.errors) {
@@ -420,9 +424,9 @@ class VasRelabel extends localize(i18next)(VasTemplate) {
420
424
  category: 'LABEL',
421
425
  refBy: `VAS-ORDER-RELABEL-${String(Date.now())}`
422
426
  }
423
- const response = await client.query({
424
- query: gql`
425
- mutation($attachment: NewAttachment!) {
427
+ const response = await client.mutate({
428
+ mutation: gql`
429
+ mutation ($attachment: NewAttachment!) {
426
430
  createAttachment(attachment: $attachment) {
427
431
  id
428
432
  name
@@ -455,16 +459,18 @@ class VasRelabel extends localize(i18next)(VasTemplate) {
455
459
  async deleteNewLabel(record) {
456
460
  try {
457
461
  const operationGuide = JSON.parse(record.operationGuide)
458
- const response = await client.query({
459
- query: gql`
460
- mutation {
461
- deleteAttachment(${gqlBuilder.buildArgs({
462
- id: operationGuide.data.newLabel.id
463
- })}) {
464
- name
462
+ const response = await client.mutate({
463
+ mutation: gql`
464
+ mutation deleteAttachment($id: String!) {
465
+ deleteAttachment(id: $id){
466
+ name
467
+ }
465
468
  }
466
469
  }
467
- `
470
+ `,
471
+ variables: {
472
+ id: operationGuide.data.newLabel.id
473
+ }
468
474
  })
469
475
 
470
476
  if (response.errors) throw response.errors[0]
@@ -485,12 +491,28 @@ class VasRelabel extends localize(i18next)(VasTemplate) {
485
491
  args.locationName = this.locationInput.value
486
492
  }
487
493
 
488
- await client.query({
489
- query: gql`
490
- mutation {
491
- relabeling(${gqlBuilder.buildArgs(args)})
494
+ await client.mutate({
495
+ mutation: gql`
496
+ mutation relabeling(
497
+ $worksheetDetailName: String!
498
+ $fromPalletId: String!
499
+ $toPalletId: String!
500
+ $locationName: String
501
+ ) {
502
+ relabeling(
503
+ worksheetDetailName: $worksheetDetailName
504
+ fromPalletId: $fromPalletId
505
+ toPalletId: $toPalletId
506
+ locationName: $locationName
507
+ )
492
508
  }
493
- `
509
+ `,
510
+ variables: {
511
+ worksheetDetailName: this.record.name,
512
+ fromPalletId: this.fromPalletIdInput.value,
513
+ toPalletId: this.toPalletIdInput.value,
514
+ locationName: this.orderType === ORDER_TYPES.VAS_ORDER.value ? this.locationInput.value : ''
515
+ }
494
516
  })
495
517
 
496
518
  this.dispatchEvent(
@@ -506,15 +528,16 @@ class VasRelabel extends localize(i18next)(VasTemplate) {
506
528
 
507
529
  async undoRelabel(worksheetDetailName, toPalletId) {
508
530
  try {
509
- await client.query({
510
- query: gql`
511
- mutation {
512
- undoRelabeling(${gqlBuilder.buildArgs({
513
- worksheetDetailName,
514
- toPalletId
515
- })})
531
+ await client.mutate({
532
+ mutation: gql`
533
+ mutation undoRelabeling($worksheetDetailName: String!, $toPalletId: String!) {
534
+ undoRelabeling(worksheetDetailName: $worksheetDetailName, toPalletId: $toPalletId)
516
535
  }
517
- `
536
+ `,
537
+ variables: {
538
+ worksheetDetailName,
539
+ toPalletId
540
+ }
518
541
  })
519
542
 
520
543
  this.dispatchEvent(