@things-factory/operato-wms 4.3.113-alpha.0 → 4.3.115

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 (68) hide show
  1. package/client/pages/bulk-operation/bulk-operation.js +3 -23
  2. package/client/pages/components/select-inventory-popup.js +1 -7
  3. package/client/pages/components/select-product-popup.js +2 -31
  4. package/client/pages/inbound/undo-putaway-popup.js +9 -5
  5. package/client/pages/inbound/undo-unload-popup.js +24 -19
  6. package/client/pages/inbound/unload-product.js +67 -72
  7. package/client/pages/inventory/inventory-adjustment-approval.js +5 -4
  8. package/client/pages/inventory/inventory-adjustment.js +0 -7
  9. package/client/pages/inventory-check/check-inventory-popup.js +1 -4
  10. package/client/pages/inventory-check/create-cycle-count.js +3 -2
  11. package/client/pages/inventory-check/cycle-count-report.js +32 -19
  12. package/client/pages/inventory-check/inspecting-product.js +14 -30
  13. package/client/pages/inventory-check/inventory-check-list.js +0 -2
  14. package/client/pages/manifest/loading-manifest-detail.js +4 -7
  15. package/client/pages/master/generate-location-list.js +22 -30
  16. package/client/pages/master/location-list.js +71 -134
  17. package/client/pages/master/pallet-list.js +58 -137
  18. package/client/pages/master/product/product-details-popup.js +3 -3
  19. package/client/pages/master/tote-list.js +27 -40
  20. package/client/pages/master/transport-driver.js +41 -50
  21. package/client/pages/master/transport-vehicle.js +41 -45
  22. package/client/pages/master/warehouse-list.js +34 -56
  23. package/client/pages/order/arrival-notice/arrival-notice-detail.js +25 -36
  24. package/client/pages/order/arrival-notice/create-arrival-notice.js +32 -53
  25. package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +0 -2
  26. package/client/pages/order/arrival-notice/edit-product-popup.js +7 -9
  27. package/client/pages/order/draft-release-good/draft-release-good-detail.js +2 -39
  28. package/client/pages/order/goods-received-note/received-note-list.js +32 -9
  29. package/client/pages/order/release-order/create-release-order.js +5 -22
  30. package/client/pages/order/release-order/release-extra-product-popup.js +1 -4
  31. package/client/pages/order/release-order/release-order-detail.js +0 -24
  32. package/client/pages/order/return-order/create-return-order.js +0 -5
  33. package/client/pages/order/return-order/return-order-inventory-popup.js +0 -1
  34. package/client/pages/order/transport-order/delivery-order-list.js +0 -26
  35. package/client/pages/outbound/inventory-reassign-popup.js +0 -6
  36. package/client/pages/outbound/packing-product.js +5 -5
  37. package/client/pages/outbound/packing-worksheet-list.js +1 -3
  38. package/client/pages/outbound/picking-product.js +7 -22
  39. package/client/pages/outbound/show-my-worksheet-list-popup.js +3 -12
  40. package/client/pages/outbound/show-ro-list-popup.js +0 -2
  41. package/client/pages/outbound/sorting-product.js +0 -6
  42. package/client/pages/report/custom-elccl/elccl-daily-collection-report.js +2 -5
  43. package/client/pages/report/custom-elccl/elccl-daily-order-inventory-report.js +2 -2
  44. package/client/pages/report/custom-elccl/elccl-delivery-order-summary.js +8 -48
  45. package/client/pages/vas/print-product-label.js +11 -13
  46. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +5 -4
  47. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
  48. package/dist-server/graphql/resolvers/other/add-release-good-products.js +11 -7
  49. package/dist-server/graphql/resolvers/other/add-release-good-products.js.map +1 -1
  50. package/dist-server/graphql/resolvers/reports/costing-report.js +24 -18
  51. package/dist-server/graphql/resolvers/reports/costing-report.js.map +1 -1
  52. package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +6 -6
  53. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +6 -5
  54. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
  55. package/dist-server/graphql/resolvers/reports/release-inventory-report.js +3 -3
  56. package/dist-server/graphql/resolvers/reports/release-inventory-report.js.map +1 -1
  57. package/package.json +50 -50
  58. package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +5 -4
  59. package/server/graphql/resolvers/other/add-release-good-products.ts +12 -8
  60. package/server/graphql/resolvers/reports/costing-report.ts +24 -18
  61. package/server/graphql/resolvers/reports/inbound-order-details-report.ts +6 -6
  62. package/server/graphql/resolvers/reports/outbound-order-details-report.ts +6 -5
  63. package/server/graphql/resolvers/reports/release-inventory-report.ts +4 -6
  64. package/translations/en.json +5 -18
  65. package/translations/ko.json +4 -17
  66. package/translations/ms.json +4 -17
  67. package/translations/zh.json +4 -17
  68. package/config.development.js +0 -110
@@ -7,7 +7,6 @@ import './print-location-label'
7
7
  import gql from 'graphql-tag'
8
8
  import { css, html } from 'lit-element'
9
9
  import { connect } from 'pwa-helpers/connect-mixin'
10
- import isEmpty from 'lodash-es/isEmpty'
11
10
 
12
11
  import { DirectPrinter } from '@things-factory/barcode-base'
13
12
  import { i18next, localize } from '@things-factory/i18n-base'
@@ -16,9 +15,7 @@ import { client, CustomAlert, PageView, store } from '@things-factory/shell'
16
15
  import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
17
16
  import { isMobileDevice } from '@things-factory/utils'
18
17
 
19
- import { getCodeByName } from '@things-factory/code-base'
20
18
  import { LOCATION_LABEL_SETTING_KEY, LOCATION_STATUS, LOCATION_TYPE } from '../constants'
21
- import { showToast } from '../../util'
22
19
 
23
20
  class LocationList extends connect(store)(localize(i18next)(PageView)) {
24
21
  static get styles() {
@@ -154,25 +151,25 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
154
151
  label: i18next.t('field.zone'),
155
152
  name: 'zone',
156
153
  type: 'text',
157
- props: { searchOper: 'i_like' }
154
+ props: { searchOper: 'eq' }
158
155
  },
159
156
  {
160
157
  label: i18next.t('field.row'),
161
158
  name: 'row',
162
159
  type: 'text',
163
- props: { searchOper: 'i_like' }
160
+ props: { searchOper: 'eq' }
164
161
  },
165
162
  {
166
163
  label: i18next.t('field.column'),
167
164
  name: 'column',
168
165
  type: 'text',
169
- props: { searchOper: 'i_like' }
166
+ props: { searchOper: 'eq' }
170
167
  },
171
168
  {
172
169
  label: i18next.t('field.shelf'),
173
170
  name: 'shelf',
174
171
  type: 'text',
175
- props: { searchOper: 'i_like' }
172
+ props: { searchOper: 'eq' }
176
173
  },
177
174
  {
178
175
  label: i18next.t('field.status'),
@@ -194,8 +191,8 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
194
191
  ]
195
192
 
196
193
  this.config = {
194
+ pagination: { pages: [20, 50, 100, 200] },
197
195
  rows: { selectable: { multiple: true } },
198
- pagination: { limit: 50, pages: [50, 100, 200, 500] },
199
196
  list: {
200
197
  fields: ['name', 'type', 'status']
201
198
  },
@@ -225,17 +222,7 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
225
222
  .sort()
226
223
  ]
227
224
  },
228
- imex: {
229
- header: i18next.t('field.type'),
230
- key: 'type',
231
- width: 50,
232
- type: 'array',
233
- arrData: Object.values(LOCATION_TYPE).map(type => {
234
- return {
235
- name: type.name
236
- }
237
- })
238
- },
225
+ imex: { header: i18next.t('field.type'), key: 'type', width: 50, type: 'string' },
239
226
  sortable: true,
240
227
  width: 150
241
228
  },
@@ -289,17 +276,7 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
289
276
  .sort()
290
277
  ]
291
278
  },
292
- imex: {
293
- header: i18next.t('field.status'),
294
- key: 'status',
295
- width: 50,
296
- type: 'array',
297
- arrData: Object.values(LOCATION_STATUS).map(type => {
298
- return {
299
- name: type.name
300
- }
301
- })
302
- },
279
+ imex: { header: i18next.t('field.status'), key: 'status', width: 50, type: 'string' },
303
280
  sortable: true,
304
281
  width: 80
305
282
  },
@@ -415,41 +392,55 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
415
392
  }
416
393
 
417
394
  async importHandler(patches) {
418
- try {
419
- let records = this.dataGrist.data.records
420
- const locationType = await getCodeByName('LOCATION_TYPE')
421
- const locationStatus = await getCodeByName('LOCATION_STATUS')
422
- patches = patches.map(itm => {
423
- // Error if there is an empty value
424
- if (isEmpty(itm.name) || isEmpty(itm.type) || isEmpty(itm.zone) || isEmpty(itm.column) || isEmpty(itm.shelf) || isEmpty(itm.status) || '')
425
- {
426
- throw new Error(i18next.t('text.empty_value_in_list'))
427
- }
428
- // Error if location name is already existed
429
- if (records.find(exist => exist.name == itm.name)) {
430
- throw new Error(i18next.t('text.location_name(s)_already_existed'))
395
+ if (patches && patches.length) {
396
+ patches = patches.map(patch => {
397
+ if (this._warehouseId) {
398
+ patch.warehouse = { id: this._warehouseId }
431
399
  }
432
- // Error if location status does not exist
433
- let foundLocationType = locationType.find(exist => exist.name == itm.type)
434
- if (!foundLocationType) {
435
- throw new Error(i18next.t('text.location_type_does_not_exist'))
400
+ return patch
401
+ })
402
+ const response = await client.mutate({
403
+ mutation: gql`
404
+ mutation updateMultipleLocation($patches: [LocationPatch!]!) {
405
+ updateMultipleLocation(patches: $patches) {
406
+ name
407
+ }
408
+ }
409
+ `,
410
+ variables: {
411
+ patches
436
412
  }
437
- // Error if location type does not exist
438
- let foundLocationStatus = locationStatus.find(exist => exist.name == itm.status)
439
- if (!foundLocationStatus) {
440
- throw new Error(i18next.t('text.location_status_does_not_exist'))
413
+ })
414
+
415
+ if (!response.errors) {
416
+ history.back()
417
+ this._clearTempLocation()
418
+ document.dispatchEvent(
419
+ new CustomEvent('notify', {
420
+ detail: {
421
+ message: i18next.t('text.data_imported_successfully')
422
+ }
423
+ })
424
+ )
425
+ }
426
+ }
427
+ }
428
+
429
+ async _saveLocation() {
430
+ let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
431
+ if (patches && patches.length) {
432
+ patches = patches.map(patch => {
433
+ if (this._warehouseId && !patch.warehouse) {
434
+ patch.warehouse = { id: this._warehouseId }
441
435
  }
442
- return itm
436
+ return patch
443
437
  })
444
- if (patches && patches.length) {
445
- patches = patches.map(patch => {
446
- if (this._warehouseId) {
447
- patch.warehouse = { id: this._warehouseId }
448
- }
449
- return patch
450
- })
451
- const response = await client.mutate({
452
- mutation: gql`
438
+
439
+ try {
440
+ this.dataGrist.showSpinner()
441
+
442
+ const response = await client.query({
443
+ query: gql`
453
444
  mutation updateMultipleLocation($patches: [LocationPatch!]!) {
454
445
  updateMultipleLocation(patches: $patches) {
455
446
  name
@@ -462,82 +453,27 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
462
453
  })
463
454
 
464
455
  if (!response.errors) {
465
- history.back()
466
456
  this._clearTempLocation()
467
457
  document.dispatchEvent(
468
458
  new CustomEvent('notify', {
469
459
  detail: {
470
- message: i18next.t('text.data_imported_successfully')
460
+ message: i18next.t('text.data_updated_successfully')
471
461
  }
472
462
  })
473
463
  )
474
464
  }
475
- }
476
- } catch (e) {
477
- showToast(e)
478
- }
479
- }
480
-
481
- async _saveLocation() {
482
- try {
483
- let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
484
-
485
- if (
486
- patches.some(
487
- p => (!p.name || !p.type || !p.zone || !p.row || !p.column || !p.shelf || !p.status) && p.cuFlag == '+'
488
- )
489
- ) {
490
- throw new Error(i18next.t('text.empty_value_in_list'))
491
- }
492
- if (patches && patches.length) {
493
- patches = patches.map(patch => {
494
- if (this._warehouseId && !patch.warehouse) {
495
- patch.warehouse = { id: this._warehouseId }
496
- }
497
- return patch
498
- })
499
-
500
- try {
501
- this.dataGrist.showSpinner()
502
-
503
- const response = await client.query({
504
- query: gql`
505
- mutation updateMultipleLocation($patches: [LocationPatch!]!) {
506
- updateMultipleLocation(patches: $patches) {
507
- name
508
- }
509
- }
510
- `,
511
- variables: {
512
- patches
465
+ } catch (e) {
466
+ document.dispatchEvent(
467
+ new CustomEvent('notify', {
468
+ detail: {
469
+ level: error,
470
+ message: e
513
471
  }
514
472
  })
515
-
516
- if (!response.errors) {
517
- this._clearTempLocation()
518
- document.dispatchEvent(
519
- new CustomEvent('notify', {
520
- detail: {
521
- message: i18next.t('text.data_updated_successfully')
522
- }
523
- })
524
- )
525
- }
526
- } catch (e) {
527
- document.dispatchEvent(
528
- new CustomEvent('notify', {
529
- detail: {
530
- level: error,
531
- message: e
532
- }
533
- })
534
- )
535
- } finally {
536
- this.dataGrist.hideSpinner()
537
- }
473
+ )
474
+ } finally {
475
+ this.dataGrist.hideSpinner()
538
476
  }
539
- } catch (e) {
540
- showToast(e)
541
477
  }
542
478
  }
543
479
 
@@ -570,12 +506,15 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
570
506
  ids = []
571
507
  this._clearTempLocation()
572
508
  }
573
- } else {
574
- CustomAlert({
575
- title: i18next.t('text.nothing_selected'),
576
- text: i18next.t('text.there_is_nothing_to_delete')
577
- })
578
- }
509
+ } else
510
+ document.dispatchEvent(
511
+ new CustomEvent('notify', {
512
+ detail: {
513
+ level: 'error',
514
+ message: `${i18next.t('text.cannot_delete_unsaved_location(s)')}`
515
+ }
516
+ })
517
+ )
579
518
  }
580
519
  }
581
520
  })
@@ -616,7 +555,6 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
616
555
  text: i18next.t('text.you_wont_be_able_to_revert_this'),
617
556
  type: 'warning',
618
557
  confirmButton: { text: i18next.t('button.delete_all'), color: '#22a6a7' },
619
-
620
558
  cancelButton: { text: i18next.t('button.cancel'), color: '#cfcfcf' },
621
559
  callback: async result => {
622
560
  if (result.value && name !== '') {
@@ -629,7 +567,6 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
629
567
  variables: { warehouseId: this._warehouseId }
630
568
  })
631
569
  if (!response.errors) this._clearTempLocation()
632
- this.showToast({ message: i18next.t('text.all_locations_are_deleted') })
633
570
  }
634
571
  }
635
572
  })
@@ -12,8 +12,6 @@ import { openPopup } from '@things-factory/layout-base'
12
12
  import { REUSABLE_PALLET_LABEL_SETTING_KEY } from '../constants'
13
13
  import { DirectPrinter } from '@things-factory/barcode-base'
14
14
  import gql from 'graphql-tag'
15
- import { showToast } from '../../util/index'
16
- import isEmpty from 'lodash-es/isEmpty'
17
15
 
18
16
  class PalletList extends connect(store)(localize(i18next)(PageView)) {
19
17
  static get properties() {
@@ -127,7 +125,6 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
127
125
  fields: ['name', 'owner', 'holder', 'status']
128
126
  },
129
127
  rows: { selectable: { multiple: true } },
130
- pagination: { limit: 50, pages: [50, 100, 200, 500] },
131
128
  columns: [
132
129
  { type: 'gutter', gutterName: 'dirty' },
133
130
  { type: 'gutter', gutterName: 'sequence' },
@@ -147,7 +144,7 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
147
144
  type: 'object',
148
145
  name: 'owner',
149
146
  header: i18next.t('field.owner'),
150
- imex: { header: i18next.t('field.owner'), key: 'owner.name', width: 50, type: 'array', arrData: [] },
147
+ imex: { header: i18next.t('field.owner'), key: 'owner.name', width: 50, type: 'string' },
151
148
  record: {
152
149
  editable: true,
153
150
  options: {
@@ -161,13 +158,7 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
161
158
  type: 'object',
162
159
  name: 'holder',
163
160
  header: i18next.t('field.holder'),
164
- imex: {
165
- header: i18next.t('field.holder'),
166
- key: 'holder.name',
167
- width: 50,
168
- type: 'array',
169
- arrData: []
170
- },
161
+ imex: { header: i18next.t('field.holder'), key: 'holder.name', width: 50, type: 'string' },
171
162
  record: {
172
163
  editable: true,
173
164
  options: {
@@ -181,17 +172,7 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
181
172
  type: 'code',
182
173
  name: 'status',
183
174
  header: i18next.t('field.status'),
184
- imex: {
185
- header: i18next.t('field.status'),
186
- key: 'status',
187
- width: 50,
188
- type: 'array',
189
- arrData: _palletStatus.map(status => {
190
- return {
191
- name: status.name
192
- }
193
- })
194
- },
175
+ imex: { header: i18next.t('field.status'), key: 'status', width: 50, type: 'string' },
195
176
  record: {
196
177
  editable: true,
197
178
  codeName: 'PALLET_STATUS'
@@ -291,125 +272,88 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
291
272
  }
292
273
 
293
274
  async importHandler(patches) {
294
- try {
295
- const _palletStatus = await getCodeByName('PALLET_STATUS')
296
- const getBizplace = await this.fetchBizplaces()
297
- let records = this.dataGrist.data.records
298
- patches = patches.map(itm => {
299
- // Error if there is an empty value
300
- if (isEmpty(itm.name) || isEmpty(itm.status) || isEmpty(itm.holder.name) || isEmpty(itm.owner.name) || ''){
301
- throw new Error(i18next.t('text.empty_value_in_list'))
302
- }
303
- // Error if location name is already existed
304
- if (records.find(exist => exist.name == itm.name)) {
305
- throw new Error(i18next.t('text.pallet_name(s)_is_already_existed'))
306
- }
307
- // Error if pallet status is does not exist
308
- let foundPalletStatus = _palletStatus.find(exist => exist.name == itm.status)
309
- if (!foundPalletStatus) {
310
- throw new Error(i18next.t('text.pallet_status_does_not_exist'))
311
- }
312
- // Error if the owner is not belong to the domain or doesn't exist
313
- let foundOwner = getBizplace.find(exist => exist.name == itm.owner.name)
314
- if (!foundOwner){
315
- throw new Error(i18next.t('text.invalid_owner'))
316
- }
317
- // Error if the holder is not belong to the domain or doesn't exist
318
- let foundHolder = getBizplace.find(exist=>exist.name == itm.holder.name)
319
- if (!foundHolder) {
320
- throw new Error(i18next.t('text.invalid_holder'))
275
+ this.dataGrist.showSpinner()
276
+ const response = await client.query({
277
+ query: gql`
278
+ mutation updateMultiplePallet($patches: [PalletPatch!]!) {
279
+ updateMultiplePallet(patches: $patches) {
280
+ name
281
+ }
321
282
  }
322
- return itm
323
- })
283
+ `,
284
+ variables: {
285
+ patches
286
+ }
287
+ })
288
+ if (!response.errors) {
289
+ history.back()
290
+ this.dataGrist.fetch()
291
+ document.dispatchEvent(
292
+ new CustomEvent('notify', {
293
+ detail: {
294
+ message: i18next.t('text.data_imported_successfully')
295
+ }
296
+ })
297
+ )
298
+ }
299
+ this.dataGrist.hideSpinner()
300
+ }
324
301
 
325
- patches = patches.map(p => {
326
- return { ...p, cuFlag: '' }
327
- })
302
+ async _savePallet() {
303
+ let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
304
+ this._validatePallet(patches)
305
+ if (patches && patches.length) {
328
306
  this.dataGrist.showSpinner()
329
- const response = await client.query({
330
- query: gql`
307
+ const response = await client.mutate({
308
+ mutation: gql`
331
309
  mutation updateMultiplePallet($patches: [PalletPatch!]!) {
332
- updateMultiplePallet(patches: $patches)
310
+ updateMultiplePallet(patches: $patches) {
311
+ name
312
+ }
333
313
  }
334
314
  `,
335
315
  variables: {
336
316
  patches
337
317
  }
338
318
  })
319
+
339
320
  if (!response.errors) {
340
- history.back()
341
321
  this.dataGrist.fetch()
342
322
  document.dispatchEvent(
343
323
  new CustomEvent('notify', {
344
324
  detail: {
345
- message: i18next.t('text.data_imported_successfully')
325
+ message: i18next.t('text.data_updated_successfully')
346
326
  }
347
327
  })
348
328
  )
349
329
  }
350
330
  this.dataGrist.hideSpinner()
351
- } catch (e) {
352
- showToast(e)
353
331
  }
354
332
  }
355
333
 
356
- async _savePallet() {
357
- try {
358
- let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
359
-
360
- if (patches.some(p => (!p.name || !p.owner || !p.holder || !p.status) && p.cuFlag == '+'))
361
- throw new Error(i18next.t('text.empty_value_in_list'))
362
-
363
- if (patches && patches.length) {
364
- this.dataGrist.showSpinner()
365
- const response = await client.mutate({
366
- mutation: gql`
367
- mutation updateMultiplePallet($patches: [PalletPatch!]!) {
368
- updateMultiplePallet(patches: $patches)
334
+ _validatePallet(patches) {
335
+ for (const patch of patches) {
336
+ if (!patch.owner) {
337
+ throw document.dispatchEvent(
338
+ new CustomEvent('notify', {
339
+ detail: {
340
+ message: i18next.t('text.owner_field_is_empty')
369
341
  }
370
- `,
371
- variables: {
372
- patches
373
- }
374
- })
375
-
376
- if (!response.errors) {
377
- this.dataGrist.fetch()
378
- document.dispatchEvent(
379
- new CustomEvent('notify', {
380
- detail: {
381
- message: i18next.t('text.data_updated_successfully')
382
- }
383
- })
384
- )
385
- }
386
- this.dataGrist.hideSpinner()
342
+ })
343
+ )
387
344
  }
388
- } catch (e) {
389
- showToast(e)
390
- }
391
- }
392
-
393
- async fetchBizplaces(bizplace = []) {
394
- const response = await client.query({
395
- query: gql`
396
- query bizplaces($filters: [Filter!]) {
397
- bizplaces(filters: $filters) {
398
- items {
399
- id
400
- name
401
- description
345
+ if (!patch.holder) {
346
+ throw document.dispatchEvent(
347
+ new CustomEvent('notify', {
348
+ detail: {
349
+ message: i18next.t('text.holder_field_is_empty')
402
350
  }
403
- }
404
- }
405
- `,
406
- variables: {
407
- filters: [...bizplace]
351
+ })
352
+ )
408
353
  }
409
- })
410
- return response.data.bizplaces.items
354
+ }
411
355
  }
412
-
356
+
413
357
  async _deletePallet() {
414
358
  CustomAlert({
415
359
  title: i18next.t('text.are_you_sure'),
@@ -441,11 +385,6 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
441
385
  })
442
386
  )
443
387
  }
444
- } else {
445
- CustomAlert({
446
- title: i18next.t('text.nothing_selected'),
447
- text: i18next.t('text.there_is_nothing_to_delete')
448
- })
449
388
  }
450
389
  this.dataGrist.hideSpinner()
451
390
  }
@@ -457,7 +396,7 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
457
396
  return this.config.columns
458
397
  }
459
398
 
460
- async _exportableData() {
399
+ _exportableData() {
461
400
  let records = []
462
401
  if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
463
402
  records = this.dataGrist.selected
@@ -465,27 +404,9 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
465
404
  records = this.dataGrist.data.records
466
405
  }
467
406
 
468
- const getBizplace = await this.fetchBizplaces()
469
-
470
407
  var headerSetting = this.dataGrist._config.columns
471
408
  .filter(column => column.type !== 'gutter' && column.record !== undefined && column.imex !== undefined)
472
409
  .map(column => {
473
- if (column.imex.key == 'holder.name') {
474
- column.imex.arrData = getBizplace.map(item => {
475
- return {
476
- id: item.id,
477
- name: item.name
478
- }
479
- })
480
- }
481
- if (column.imex.key == 'owner.name') {
482
- column.imex.arrData = getBizplace.map(item => {
483
- return {
484
- id: item.id,
485
- name: item.name
486
- }
487
- })
488
- }
489
410
  return column.imex
490
411
  })
491
412
 
@@ -171,7 +171,7 @@ export class ProductDetailsPopup extends localize(i18next)(LitElement) {
171
171
  {
172
172
  type: 'select',
173
173
  name: 'packingType',
174
- header: `*${i18next.t('field.packing_type')}`,
174
+ header: i18next.t('field.packing_type'),
175
175
  record: {
176
176
  editable: true,
177
177
  options: ['', ...Object.keys(packingType).map(key => packingType[key].name)]
@@ -185,14 +185,14 @@ export class ProductDetailsPopup extends localize(i18next)(LitElement) {
185
185
  editable: true,
186
186
  options: ['', ...Object.keys(uom).map(key => uom[key].name)]
187
187
  },
188
- header: `*${i18next.t('field.uom')}`,
188
+ header: `${i18next.t('field.uom')}`,
189
189
  width: 80
190
190
  },
191
191
  {
192
192
  type: 'float',
193
193
  name: 'uomValue',
194
194
  record: { editable: true, options: { min: 0 } },
195
- header: `*${i18next.t('field.uom_value')}`,
195
+ header: `${i18next.t('field.uom_value')}`,
196
196
  width: 100
197
197
  },
198
198
  {