@things-factory/operato-wms 4.3.105-alpha.0 → 4.3.105

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 (53) hide show
  1. package/client/pages/bulk-operation/bulk-operation.js +10 -8
  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 +2 -15
  6. package/client/pages/inbound/unload-product.js +67 -71
  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/create-cycle-count.js +3 -2
  10. package/client/pages/inventory-check/inventory-check-list.js +10 -94
  11. package/client/pages/manifest/loading-manifest-detail.js +4 -7
  12. package/client/pages/master/generate-location-list.js +22 -30
  13. package/client/pages/master/location-list.js +73 -114
  14. package/client/pages/master/pallet-list.js +58 -88
  15. package/client/pages/master/product/product-details-popup.js +3 -3
  16. package/client/pages/master/tote-list.js +27 -35
  17. package/client/pages/master/transport-driver.js +41 -50
  18. package/client/pages/master/transport-vehicle.js +41 -45
  19. package/client/pages/master/warehouse-list.js +34 -56
  20. package/client/pages/order/arrival-notice/arrival-notice-detail.js +25 -36
  21. package/client/pages/order/arrival-notice/create-arrival-notice.js +32 -53
  22. package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +0 -2
  23. package/client/pages/order/arrival-notice/edit-product-popup.js +7 -9
  24. package/client/pages/order/draft-release-good/draft-release-good-detail.js +1 -7
  25. package/client/pages/order/goods-received-note/received-note-detail.js +1 -1
  26. package/client/pages/order/release-order/create-release-order.js +5 -24
  27. package/client/pages/order/release-order/release-extra-product-popup.js +1 -4
  28. package/client/pages/order/release-order/release-order-detail.js +0 -4
  29. package/client/pages/order/return-order/create-return-order.js +0 -1
  30. package/client/pages/order/return-order/return-order-inventory-popup.js +0 -1
  31. package/client/pages/outbound/inventory-reassign-popup.js +0 -6
  32. package/client/pages/outbound/packing-product.js +5 -5
  33. package/client/pages/outbound/picking-product.js +1 -11
  34. package/config.development.js +33 -27
  35. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +5 -4
  36. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
  37. package/dist-server/graphql/resolvers/other/add-release-good-products.js +11 -7
  38. package/dist-server/graphql/resolvers/other/add-release-good-products.js.map +1 -1
  39. package/dist-server/graphql/resolvers/reports/costing-report.js +24 -18
  40. package/dist-server/graphql/resolvers/reports/costing-report.js.map +1 -1
  41. package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +6 -6
  42. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +6 -5
  43. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
  44. package/package.json +50 -50
  45. package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +5 -4
  46. package/server/graphql/resolvers/other/add-release-good-products.ts +12 -8
  47. package/server/graphql/resolvers/reports/costing-report.ts +24 -18
  48. package/server/graphql/resolvers/reports/inbound-order-details-report.ts +6 -6
  49. package/server/graphql/resolvers/reports/outbound-order-details-report.ts +6 -5
  50. package/translations/en.json +10 -11
  51. package/translations/ko.json +10 -11
  52. package/translations/ms.json +10 -11
  53. package/translations/zh.json +3 -4
@@ -503,10 +503,10 @@ class LoadingManifestDetail extends localize(i18next)(PageView) {
503
503
  }
504
504
 
505
505
  async _validateOrderStatus() {
506
- let foundCancelOrder = this.shippingData.records.some(
507
- itm => itm.orderStatus == ORDER_STATUS.PENDING_CANCEL.value || itm.orderStatus == ORDER_STATUS.CANCELLED.value
506
+ let foundCancelOrder = this.shippingData.records.filter(
507
+ itm => itm.orderStatus == ORDER_STATUS.PENDING_CANCEL || itm.orderStatus == ORDER_STATUS.CANCELLED
508
508
  )
509
- if (foundCancelOrder) {
509
+ if (foundCancelOrder?.length > 0) {
510
510
  const answer = await CustomAlert({
511
511
  title: i18next.t('title.do_you_wish_to_proceed'),
512
512
  text: i18next.t('text.parcels_are_found_with_cancelled_or_pending_cancelled_status'),
@@ -543,10 +543,7 @@ class LoadingManifestDetail extends localize(i18next)(PageView) {
543
543
  if (!response.error) {
544
544
  let releaseGood = response.data.releaseGood
545
545
 
546
- if (
547
- releaseGood?.status === ORDER_STATUS.CANCELLED.value ||
548
- releaseGood?.status === ORDER_STATUS.PENDING_CANCEL.value
549
- ) {
546
+ if (releaseGood?.status === ORDER_STATUS.CANCELLED || releaseGood?.status === ORDER_STATUS.PENDING_CANCEL) {
550
547
  let answer = await CustomAlert({
551
548
  type: 'warning',
552
549
  title: i18next.t('title.order(s)_is_at_pending_cancelled_or_cancelled'),
@@ -6,7 +6,6 @@ import { i18next, localize } from '@things-factory/i18n-base'
6
6
  import { isMobileDevice } from '@things-factory/utils'
7
7
  import { ScrollbarStyles } from '@things-factory/styles'
8
8
  import { css, html, LitElement } from 'lit-element'
9
- import { showToast } from '../../util'
10
9
 
11
10
  export class GenerateLocationList extends localize(i18next)(LitElement) {
12
11
  static get properties() {
@@ -338,46 +337,39 @@ export class GenerateLocationList extends localize(i18next)(LitElement) {
338
337
  }
339
338
 
340
339
  _validateGenerator() {
341
- try {
342
- if (!this._selectedFormat) {
343
- throw new Error(i18next.t('text.select_location_format'))
344
- }
345
- let dataFromGrist = this.data.records
346
- let validationError = false
347
- for (let x = 1; x < dataFromGrist.length; x++) {
348
- if (dataFromGrist[x].start <= dataFromGrist[x - 1].end) {
349
- document.dispatchEvent(
350
- new CustomEvent('notify', {
351
- detail: {
352
- level: 'error',
353
- message: i18next.t('text.already_existed', {
354
- state: {
355
- text: dataFromGrist[x].start
356
- }
357
- })
358
- }
359
- })
360
- )
361
- validationError = true
362
- }
363
- }
364
-
365
- if (this._zoneName === '') {
340
+ let dataFromGrist = this.data.records
341
+ let validationError = false
342
+ for (let x = 1; x < dataFromGrist.length; x++) {
343
+ if (dataFromGrist[x].start <= dataFromGrist[x - 1].end) {
366
344
  document.dispatchEvent(
367
345
  new CustomEvent('notify', {
368
346
  detail: {
369
347
  level: 'error',
370
- message: i18next.t('text.missing_zone_name')
348
+ message: i18next.t('text.already_existed', {
349
+ state: {
350
+ text: dataFromGrist[x].start
351
+ }
352
+ })
371
353
  }
372
354
  })
373
355
  )
374
356
  validationError = true
375
357
  }
358
+ }
376
359
 
377
- if (!validationError) this._generateLocationList()
378
- } catch (e) {
379
- showToast(e)
360
+ if (this._zoneName === '') {
361
+ document.dispatchEvent(
362
+ new CustomEvent('notify', {
363
+ detail: {
364
+ level: 'error',
365
+ message: i18next.t('text.missing_zone_name')
366
+ }
367
+ })
368
+ )
369
+ validationError = true
380
370
  }
371
+
372
+ if (!validationError) this._generateLocationList()
381
373
  }
382
374
 
383
375
  async _generateLocationList() {
@@ -16,7 +16,6 @@ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
16
16
  import { isMobileDevice } from '@things-factory/utils'
17
17
 
18
18
  import { LOCATION_LABEL_SETTING_KEY, LOCATION_STATUS, LOCATION_TYPE } from '../constants'
19
- import { showToast } from '../../util'
20
19
 
21
20
  class LocationList extends connect(store)(localize(i18next)(PageView)) {
22
21
  static get styles() {
@@ -152,25 +151,25 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
152
151
  label: i18next.t('field.zone'),
153
152
  name: 'zone',
154
153
  type: 'text',
155
- props: { searchOper: 'i_like' }
154
+ props: { searchOper: 'eq' }
156
155
  },
157
156
  {
158
157
  label: i18next.t('field.row'),
159
158
  name: 'row',
160
159
  type: 'text',
161
- props: { searchOper: 'i_like' }
160
+ props: { searchOper: 'eq' }
162
161
  },
163
162
  {
164
163
  label: i18next.t('field.column'),
165
164
  name: 'column',
166
165
  type: 'text',
167
- props: { searchOper: 'i_like' }
166
+ props: { searchOper: 'eq' }
168
167
  },
169
168
  {
170
169
  label: i18next.t('field.shelf'),
171
170
  name: 'shelf',
172
171
  type: 'text',
173
- props: { searchOper: 'i_like' }
172
+ props: { searchOper: 'eq' }
174
173
  },
175
174
  {
176
175
  label: i18next.t('field.status'),
@@ -192,8 +191,8 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
192
191
  ]
193
192
 
194
193
  this.config = {
194
+ pagination: { pages: [20, 50, 100, 200] },
195
195
  rows: { selectable: { multiple: true } },
196
- pagination: { limit: 50, pages: [50, 100, 200, 500] },
197
196
  list: {
198
197
  fields: ['name', 'type', 'status']
199
198
  },
@@ -223,17 +222,7 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
223
222
  .sort()
224
223
  ]
225
224
  },
226
- imex: {
227
- header: i18next.t('field.type'),
228
- key: 'type',
229
- width: 50,
230
- type: 'array',
231
- arrData: Object.values(LOCATION_TYPE).map(type => {
232
- return {
233
- name: type.name
234
- }
235
- })
236
- },
225
+ imex: { header: i18next.t('field.type'), key: 'type', width: 50, type: 'string' },
237
226
  sortable: true,
238
227
  width: 150
239
228
  },
@@ -287,17 +276,7 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
287
276
  .sort()
288
277
  ]
289
278
  },
290
- imex: {
291
- header: i18next.t('field.status'),
292
- key: 'status',
293
- width: 50,
294
- type: 'array',
295
- arrData: Object.values(LOCATION_STATUS).map(type => {
296
- return {
297
- name: type.name
298
- }
299
- })
300
- },
279
+ imex: { header: i18next.t('field.status'), key: 'status', width: 50, type: 'string' },
301
280
  sortable: true,
302
281
  width: 80
303
282
  },
@@ -413,23 +392,55 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
413
392
  }
414
393
 
415
394
  async importHandler(patches) {
416
- try {
417
- if (
418
- patches.some(
419
- p => (!p.name || !p.type || !p.zone || !p.row || !p.column || !p.shelf || !p.status) && p.cuFlag == '+'
395
+ if (patches && patches.length) {
396
+ patches = patches.map(patch => {
397
+ if (this._warehouseId) {
398
+ patch.warehouse = { id: this._warehouseId }
399
+ }
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
412
+ }
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
+ })
420
424
  )
421
- ) {
422
- throw new Error(i18next.t('text.empty_value_in_list'))
423
425
  }
424
- if (patches && patches.length) {
425
- patches = patches.map(patch => {
426
- if (this._warehouseId) {
427
- patch.warehouse = { id: this._warehouseId }
428
- }
429
- return patch
430
- })
431
- const response = await client.mutate({
432
- mutation: gql`
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 }
435
+ }
436
+ return patch
437
+ })
438
+
439
+ try {
440
+ this.dataGrist.showSpinner()
441
+
442
+ const response = await client.query({
443
+ query: gql`
433
444
  mutation updateMultipleLocation($patches: [LocationPatch!]!) {
434
445
  updateMultipleLocation(patches: $patches) {
435
446
  name
@@ -442,82 +453,27 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
442
453
  })
443
454
 
444
455
  if (!response.errors) {
445
- history.back()
446
456
  this._clearTempLocation()
447
457
  document.dispatchEvent(
448
458
  new CustomEvent('notify', {
449
459
  detail: {
450
- message: i18next.t('text.data_imported_successfully')
460
+ message: i18next.t('text.data_updated_successfully')
451
461
  }
452
462
  })
453
463
  )
454
464
  }
455
- }
456
- } catch (e) {
457
- showToast(e)
458
- }
459
- }
460
-
461
- async _saveLocation() {
462
- try {
463
- let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
464
-
465
- if (
466
- patches.some(
467
- p => (!p.name || !p.type || !p.zone || !p.row || !p.column || !p.shelf || !p.status) && p.cuFlag == '+'
468
- )
469
- ) {
470
- throw new Error(i18next.t('text.empty_value_in_list'))
471
- }
472
- if (patches && patches.length) {
473
- patches = patches.map(patch => {
474
- if (this._warehouseId && !patch.warehouse) {
475
- patch.warehouse = { id: this._warehouseId }
476
- }
477
- return patch
478
- })
479
-
480
- try {
481
- this.dataGrist.showSpinner()
482
-
483
- const response = await client.query({
484
- query: gql`
485
- mutation updateMultipleLocation($patches: [LocationPatch!]!) {
486
- updateMultipleLocation(patches: $patches) {
487
- name
488
- }
489
- }
490
- `,
491
- variables: {
492
- patches
465
+ } catch (e) {
466
+ document.dispatchEvent(
467
+ new CustomEvent('notify', {
468
+ detail: {
469
+ level: error,
470
+ message: e
493
471
  }
494
472
  })
495
-
496
- if (!response.errors) {
497
- this._clearTempLocation()
498
- document.dispatchEvent(
499
- new CustomEvent('notify', {
500
- detail: {
501
- message: i18next.t('text.data_updated_successfully')
502
- }
503
- })
504
- )
505
- }
506
- } catch (e) {
507
- document.dispatchEvent(
508
- new CustomEvent('notify', {
509
- detail: {
510
- level: error,
511
- message: e
512
- }
513
- })
514
- )
515
- } finally {
516
- this.dataGrist.hideSpinner()
517
- }
473
+ )
474
+ } finally {
475
+ this.dataGrist.hideSpinner()
518
476
  }
519
- } catch (e) {
520
- showToast(e)
521
477
  }
522
478
  }
523
479
 
@@ -550,12 +506,15 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
550
506
  ids = []
551
507
  this._clearTempLocation()
552
508
  }
553
- } else {
554
- CustomAlert({
555
- title: i18next.t('text.nothing_selected'),
556
- text: i18next.t('text.there_is_nothing_to_delete')
557
- })
558
- }
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
+ )
559
518
  }
560
519
  }
561
520
  })
@@ -12,7 +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
15
 
17
16
  class PalletList extends connect(store)(localize(i18next)(PageView)) {
18
17
  static get properties() {
@@ -126,7 +125,6 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
126
125
  fields: ['name', 'owner', 'holder', 'status']
127
126
  },
128
127
  rows: { selectable: { multiple: true } },
129
- pagination: { limit: 50, pages: [50, 100, 200, 500] },
130
128
  columns: [
131
129
  { type: 'gutter', gutterName: 'dirty' },
132
130
  { type: 'gutter', gutterName: 'sequence' },
@@ -146,7 +144,7 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
146
144
  type: 'object',
147
145
  name: 'owner',
148
146
  header: i18next.t('field.owner'),
149
- 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' },
150
148
  record: {
151
149
  editable: true,
152
150
  options: {
@@ -160,13 +158,7 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
160
158
  type: 'object',
161
159
  name: 'holder',
162
160
  header: i18next.t('field.holder'),
163
- imex: {
164
- header: i18next.t('field.holder'),
165
- key: 'holder.name',
166
- width: 50,
167
- type: 'array',
168
- arrData: []
169
- },
161
+ imex: { header: i18next.t('field.holder'), key: 'holder.name', width: 50, type: 'string' },
170
162
  record: {
171
163
  editable: true,
172
164
  options: {
@@ -180,17 +172,7 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
180
172
  type: 'code',
181
173
  name: 'status',
182
174
  header: i18next.t('field.status'),
183
- imex: {
184
- header: i18next.t('field.status'),
185
- key: 'status',
186
- width: 50,
187
- type: 'array',
188
- arrData: _palletStatus.map(status => {
189
- return {
190
- name: status.name
191
- }
192
- })
193
- },
175
+ imex: { header: i18next.t('field.status'), key: 'status', width: 50, type: 'string' },
194
176
  record: {
195
177
  editable: true,
196
178
  codeName: 'PALLET_STATUS'
@@ -290,75 +272,85 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
290
272
  }
291
273
 
292
274
  async importHandler(patches) {
293
- try {
294
- if (patches.some(p => (!p.name || !p.owner || !p.holder || !p.status) && p.cuFlag == '+'))
295
- throw new Error(i18next.t('text.empty_value_in_list'))
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
+ }
282
+ }
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
+ }
296
301
 
297
- patches = patches.map(p => {
298
- return { ...p, cuFlag: '' }
299
- })
302
+ async _savePallet() {
303
+ let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
304
+ this._validatePallet(patches)
305
+ if (patches && patches.length) {
300
306
  this.dataGrist.showSpinner()
301
- const response = await client.query({
302
- query: gql`
307
+ const response = await client.mutate({
308
+ mutation: gql`
303
309
  mutation updateMultiplePallet($patches: [PalletPatch!]!) {
304
- updateMultiplePallet(patches: $patches)
310
+ updateMultiplePallet(patches: $patches) {
311
+ name
312
+ }
305
313
  }
306
314
  `,
307
315
  variables: {
308
316
  patches
309
317
  }
310
318
  })
319
+
311
320
  if (!response.errors) {
312
- history.back()
313
321
  this.dataGrist.fetch()
314
322
  document.dispatchEvent(
315
323
  new CustomEvent('notify', {
316
324
  detail: {
317
- message: i18next.t('text.data_imported_successfully')
325
+ message: i18next.t('text.data_updated_successfully')
318
326
  }
319
327
  })
320
328
  )
321
329
  }
322
330
  this.dataGrist.hideSpinner()
323
- } catch (e) {
324
- showToast(e)
325
331
  }
326
332
  }
327
333
 
328
- async _savePallet() {
329
- try {
330
- let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
331
-
332
- if (patches.some(p => (!p.name || !p.owner || !p.holder || !p.status) && p.cuFlag == '+'))
333
- throw new Error(i18next.t('text.empty_value_in_list'))
334
-
335
- if (patches && patches.length) {
336
- this.dataGrist.showSpinner()
337
- const response = await client.mutate({
338
- mutation: gql`
339
- mutation updateMultiplePallet($patches: [PalletPatch!]!) {
340
- 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')
341
341
  }
342
- `,
343
- variables: {
344
- patches
345
- }
346
- })
347
-
348
- if (!response.errors) {
349
- this.dataGrist.fetch()
350
- document.dispatchEvent(
351
- new CustomEvent('notify', {
352
- detail: {
353
- message: i18next.t('text.data_updated_successfully')
354
- }
355
- })
356
- )
357
- }
358
- this.dataGrist.hideSpinner()
342
+ })
343
+ )
344
+ }
345
+ if (!patch.holder) {
346
+ throw document.dispatchEvent(
347
+ new CustomEvent('notify', {
348
+ detail: {
349
+ message: i18next.t('text.holder_field_is_empty')
350
+ }
351
+ })
352
+ )
359
353
  }
360
- } catch (e) {
361
- showToast(e)
362
354
  }
363
355
  }
364
356
 
@@ -393,11 +385,6 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
393
385
  })
394
386
  )
395
387
  }
396
- } else {
397
- CustomAlert({
398
- title: i18next.t('text.nothing_selected'),
399
- text: i18next.t('text.there_is_nothing_to_delete')
400
- })
401
388
  }
402
389
  this.dataGrist.hideSpinner()
403
390
  }
@@ -423,23 +410,6 @@ class PalletList extends connect(store)(localize(i18next)(PageView)) {
423
410
  return column.imex
424
411
  })
425
412
 
426
- let holders = this.dataGrist.data.records.map(r => r.holder)
427
- let owners = this.dataGrist.data.records.map(r => r.owner)
428
-
429
- headerSetting = headerSetting.map(column => {
430
- switch (column.key) {
431
- case 'holder.name':
432
- column.arrData = holders
433
- break
434
- case 'owner.name':
435
- column.arrData = owners
436
- break
437
- default:
438
- break
439
- }
440
- return column
441
- })
442
-
443
413
  var data = records.map(item => {
444
414
  return {
445
415
  id: item.id,
@@ -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
  {