@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
@@ -164,7 +164,7 @@ class ToteList extends connect(store)(localize(i18next)(PageView)) {
164
164
  },
165
165
  {
166
166
  label: i18next.t('field.deleted'),
167
- name: 'deleted_at',
167
+ name: 'deleted',
168
168
  type: 'checkbox',
169
169
  props: { searchOper: 'eq' }
170
170
  }
@@ -175,7 +175,6 @@ class ToteList extends connect(store)(localize(i18next)(PageView)) {
175
175
  fields: ['toteNo', 'company', 'status']
176
176
  },
177
177
  rows: { selectable: { multiple: true } },
178
- pagination: { limit: 50, pages: [50, 100, 200, 500] },
179
178
  columns: [
180
179
  { type: 'gutter', gutterName: 'dirty' },
181
180
  { type: 'gutter', gutterName: 'sequence' },
@@ -317,7 +316,7 @@ class ToteList extends connect(store)(localize(i18next)(PageView)) {
317
316
  }
318
317
  `,
319
318
  variables: {
320
- filters: this.searchForm.queryFilters,
319
+ filters: [...this.searchForm.queryFilters],
321
320
  pagination: { page, limit },
322
321
  sortings: sorters
323
322
  }
@@ -376,37 +375,35 @@ class ToteList extends connect(store)(localize(i18next)(PageView)) {
376
375
  }
377
376
 
378
377
  async _saveTote() {
379
- try {
380
- let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
381
- this._validateTote(patches)
382
- if (patches && patches.length) {
383
- this.dataGrist.showSpinner()
384
- const response = await client.mutate({
385
- mutation: gql`
386
- mutation updateMultipleTote($patches: [TotePatch!]!) {
387
- updateMultipleTote(patches: $patches) {
388
- name
389
- }
378
+ let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
379
+ this._validateTote(patches)
380
+ if (patches && patches.length) {
381
+ this.dataGrist.showSpinner()
382
+ const response = await client.mutate({
383
+ mutation: gql`
384
+ mutation updateMultipleTote($patches: [TotePatch!]!) {
385
+ updateMultipleTote(patches: $patches) {
386
+ name
390
387
  }
391
- `,
392
- variables: {
393
- patches
394
388
  }
395
- })
396
-
397
- if (!response.errors) {
398
- this.dataGrist.fetch()
399
- document.dispatchEvent(
400
- new CustomEvent('notify', {
401
- detail: {
402
- message: i18next.t('text.data_updated_successfully')
403
- }
404
- })
405
- )
389
+ `,
390
+ variables: {
391
+ patches
406
392
  }
407
- this.dataGrist.hideSpinner()
393
+ })
394
+
395
+ if (!response.errors) {
396
+ this.dataGrist.fetch()
397
+ document.dispatchEvent(
398
+ new CustomEvent('notify', {
399
+ detail: {
400
+ message: i18next.t('text.data_updated_successfully')
401
+ }
402
+ })
403
+ )
408
404
  }
409
- } catch (e) {}
405
+ this.dataGrist.hideSpinner()
406
+ }
410
407
  }
411
408
 
412
409
  _validateTote(patches) {
@@ -476,11 +473,6 @@ class ToteList extends connect(store)(localize(i18next)(PageView)) {
476
473
  })
477
474
  )
478
475
  }
479
- } else {
480
- CustomAlert({
481
- title: i18next.t('text.nothing_selected'),
482
- text: i18next.t('text.there_is_nothing_to_delete')
483
- })
484
476
  }
485
477
  this.dataGrist.hideSpinner()
486
478
  }
@@ -10,7 +10,6 @@ import { openPopup } from '@things-factory/layout-base'
10
10
  import { client, CustomAlert, PageView } from '@things-factory/shell'
11
11
  import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
12
12
  import { isMobileDevice } from '@things-factory/utils'
13
- import { showToast } from '../../util/index'
14
13
 
15
14
  class TransportDriver extends localize(i18next)(PageView) {
16
15
  static get properties() {
@@ -99,7 +98,7 @@ class TransportDriver extends localize(i18next)(PageView) {
99
98
  label: i18next.t('field.driver_code'),
100
99
  name: 'driverCode',
101
100
  type: 'text',
102
- props: { searchOper: 'i_like' }
101
+ props: { searchOper: 'eq' }
103
102
  },
104
103
  {
105
104
  label: i18next.t('field.description'),
@@ -111,7 +110,6 @@ class TransportDriver extends localize(i18next)(PageView) {
111
110
 
112
111
  this.config = {
113
112
  rows: { selectable: { multiple: true } },
114
- pagination: { limit: 50, pages: [50, 100, 200, 500] },
115
113
  columns: [
116
114
  { type: 'gutter', gutterName: 'dirty' },
117
115
  { type: 'gutter', gutterName: 'sequence' },
@@ -230,65 +228,47 @@ class TransportDriver extends localize(i18next)(PageView) {
230
228
  }
231
229
 
232
230
  async importHandler(patches) {
233
- try {
234
- if (patches.some(p => (!p.name || !p.driverCode) && p.cuFlag == '+')) {
235
- throw new Error(i18next.t('text.empty_value_in_list'))
236
- }
231
+ const response = await client.mutate({
232
+ mutation: gql`
233
+ mutation updateMultipleTransportDriver($patches: [TransportDriverPatch!]!) {
234
+ updateMultipleTransportDriver(patches: $patches) {
235
+ name
236
+ }
237
+ }
238
+ `,
239
+ variables: { patches }
240
+ })
241
+
242
+ if (!response.errors) {
243
+ history.back()
244
+ this.dataGrist.fetch()
245
+ this._showToast({ message: i18next.t('text.data_imported_successfully') })
246
+ }
247
+ }
237
248
 
238
- patches = patches.map(p => {
239
- return { ...p, cuFlag: '' }
249
+ async _saveTransportDriver() {
250
+ let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
251
+ if (!patches?.length) {
252
+ CustomAlert({
253
+ title: i18next.t('text.nothing_changed'),
254
+ text: i18next.t('text.there_is_nothing_to_save')
240
255
  })
256
+ } else {
241
257
  const response = await client.mutate({
242
258
  mutation: gql`
243
259
  mutation updateMultipleTransportDriver($patches: [TransportDriverPatch!]!) {
244
- updateMultipleTransportDriver(patches: $patches)
260
+ updateMultipleTransportDriver(patches: $patches) {
261
+ name
262
+ }
245
263
  }
246
264
  `,
247
265
  variables: { patches }
248
266
  })
249
267
 
250
268
  if (!response.errors) {
251
- history.back()
252
269
  this.dataGrist.fetch()
253
- showToast({ message: i18next.t('text.data_imported_successfully') })
254
- }
255
- } catch (e) {
256
- showToast(e)
257
- }
258
- }
259
-
260
- async _saveTransportDriver() {
261
- try {
262
- let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
263
-
264
- if (patches.some(p => (!p.name || !p.driverCode) && p.cuFlag == '+')) {
265
- throw new Error(i18next.t('text.empty_value_in_list'))
266
- }
267
-
268
- if (!patches?.length) {
269
- CustomAlert({
270
- title: i18next.t('text.nothing_changed'),
271
- text: i18next.t('text.there_is_nothing_to_save')
272
- })
273
- } else {
274
- const response = await client.mutate({
275
- mutation: gql`
276
- mutation updateMultipleTransportDriver($patches: [TransportDriverPatch!]!) {
277
- updateMultipleTransportDriver(patches: $patches) {
278
- name
279
- }
280
- }
281
- `,
282
- variables: { patches }
283
- })
284
-
285
- if (!response.errors) {
286
- this.dataGrist.fetch()
287
- showToast({ message: i18next.t('text.data_updated_successfully') })
288
- }
270
+ this._showToast({ message: i18next.t('text.data_updated_successfully') })
289
271
  }
290
- } catch (e) {
291
- showToast(e)
292
272
  }
293
273
  }
294
274
 
@@ -321,7 +301,7 @@ class TransportDriver extends localize(i18next)(PageView) {
321
301
 
322
302
  if (!response.errors) {
323
303
  this.dataGrist.fetch()
324
- showToast({ message: i18next.t('text.data_deleted_successfully') })
304
+ this._showToast({ message: i18next.t('text.data_deleted_successfully') })
325
305
  }
326
306
  }
327
307
  }
@@ -360,6 +340,17 @@ class TransportDriver extends localize(i18next)(PageView) {
360
340
 
361
341
  return { header: headerSetting, data: data }
362
342
  }
343
+
344
+ _showToast({ type, message }) {
345
+ document.dispatchEvent(
346
+ new CustomEvent('notify', {
347
+ detail: {
348
+ type,
349
+ message
350
+ }
351
+ })
352
+ )
353
+ }
363
354
  }
364
355
 
365
356
  window.customElements.define('transport-driver', TransportDriver)
@@ -10,7 +10,6 @@ import { openPopup } from '@things-factory/layout-base'
10
10
  import { client, CustomAlert, PageView } from '@things-factory/shell'
11
11
  import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
12
12
  import { isMobileDevice } from '@things-factory/utils'
13
- import { showToast } from '../../util/index'
14
13
 
15
14
  class TransportVehicle extends localize(i18next)(PageView) {
16
15
  static get styles() {
@@ -115,7 +114,6 @@ class TransportVehicle extends localize(i18next)(PageView) {
115
114
  list: {
116
115
  fields: ['name', 'description', 'updatedAt']
117
116
  },
118
- pagination: { limit: 50, pages: [50, 100, 200, 500] },
119
117
  columns: [
120
118
  { type: 'gutter', gutterName: 'dirty' },
121
119
  { type: 'gutter', gutterName: 'sequence' },
@@ -123,7 +121,7 @@ class TransportVehicle extends localize(i18next)(PageView) {
123
121
  {
124
122
  type: 'string',
125
123
  name: 'name',
126
- header: i18next.t('field.reg_number'),
124
+ header: i18next.t('field.name'),
127
125
  record: { editable: true },
128
126
  imex: { header: i18next.t('field.name'), key: 'name', width: 50, type: 'string' },
129
127
  sortable: true,
@@ -241,60 +239,47 @@ class TransportVehicle extends localize(i18next)(PageView) {
241
239
  }
242
240
 
243
241
  async importHandler(patches) {
244
- try {
245
- if (patches.some(p => (!p.name || !p.size || !p.status) && p.cuFlag == '+'))
246
- throw new Error(i18next.t('text.empty_value_in_list'))
242
+ const response = await client.mutate({
243
+ mutation: gql`
244
+ mutation updateMultipleTransportVehicle($patches: [TransportVehiclePatch!]!) {
245
+ updateMultipleTransportVehicle(patches: $patches) {
246
+ name
247
+ }
248
+ }
249
+ `,
250
+ variables: { patches }
251
+ })
247
252
 
248
- patches = patches.map(p => {
249
- return { ...p, cuFlag: '' }
253
+ if (!response.errors) {
254
+ history.back()
255
+ this.dataGrist.fetch()
256
+ this._showToast({ message: i18next.t('text.data_imported_successfully') })
257
+ }
258
+ }
259
+
260
+ async _saveTransportVehicle() {
261
+ let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
262
+ if (!patches?.length) {
263
+ CustomAlert({
264
+ title: i18next.t('text.nothing_changed'),
265
+ text: i18next.t('text.there_is_nothing_to_save')
250
266
  })
267
+ } else {
251
268
  const response = await client.mutate({
252
269
  mutation: gql`
253
270
  mutation updateMultipleTransportVehicle($patches: [TransportVehiclePatch!]!) {
254
- updateMultipleTransportVehicle(patches: $patches)
271
+ updateMultipleTransportVehicle(patches: $patches) {
272
+ name
273
+ }
255
274
  }
256
275
  `,
257
276
  variables: { patches }
258
277
  })
259
278
 
260
279
  if (!response.errors) {
261
- history.back()
262
280
  this.dataGrist.fetch()
263
- showToast({ message: i18next.t('text.data_imported_successfully') })
281
+ this._showToast({ message: i18next.t('text.data_updated_successfully') })
264
282
  }
265
- } catch (e) {
266
- showToast(e)
267
- }
268
- }
269
-
270
- async _saveTransportVehicle() {
271
- try {
272
- let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
273
- if (!patches?.length) {
274
- CustomAlert({
275
- title: i18next.t('text.nothing_changed'),
276
- text: i18next.t('text.there_is_nothing_to_save')
277
- })
278
- } else {
279
- if (patches.some(p => (!p.name || !p.size || !p.status) && p.cuFlag == '+'))
280
- throw new Error(i18next.t('text.empty_value_in_list'))
281
-
282
- const response = await client.mutate({
283
- mutation: gql`
284
- mutation updateMultipleTransportVehicle($patches: [TransportVehiclePatch!]!) {
285
- updateMultipleTransportVehicle(patches: $patches)
286
- }
287
- `,
288
- variables: { patches }
289
- })
290
-
291
- if (!response.errors) {
292
- this.dataGrist.fetch()
293
- showToast({ message: i18next.t('text.data_updated_successfully') })
294
- }
295
- }
296
- } catch (e) {
297
- showToast(e)
298
283
  }
299
284
  }
300
285
 
@@ -327,7 +312,7 @@ class TransportVehicle extends localize(i18next)(PageView) {
327
312
 
328
313
  if (!response.errors) {
329
314
  this.dataGrist.fetch()
330
- showToast({ message: i18next.t('text.data_deleted_successfully') })
315
+ this._showToast({ message: i18next.t('text.data_deleted_successfully') })
331
316
  }
332
317
  }
333
318
  }
@@ -366,6 +351,17 @@ class TransportVehicle extends localize(i18next)(PageView) {
366
351
 
367
352
  return { header: headerSetting, data: data }
368
353
  }
354
+
355
+ _showToast({ type, message }) {
356
+ document.dispatchEvent(
357
+ new CustomEvent('notify', {
358
+ detail: {
359
+ type,
360
+ message
361
+ }
362
+ })
363
+ )
364
+ }
369
365
  }
370
366
 
371
367
  window.customElements.define('transport-vehicle', TransportVehicle)
@@ -9,7 +9,6 @@ import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
9
9
  import { isMobileDevice } from '@things-factory/utils'
10
10
  import gql from 'graphql-tag'
11
11
  import { css, html } from 'lit-element'
12
- import { showToast } from '../../util'
13
12
 
14
13
  class WarehouseList extends localize(i18next)(PageView) {
15
14
  static get styles() {
@@ -265,14 +264,41 @@ class WarehouseList extends localize(i18next)(PageView) {
265
264
  }
266
265
 
267
266
  async importHandler(patches) {
268
- try {
269
- if (patches.some(p => (!p.name || !p.type) && p.cuFlag == '+')) {
270
- throw new Error(i18next.t('text.empty_value_in_list'))
267
+ const response = await client.query({
268
+ query: gql`
269
+ mutation updateMultipleWarehouse($patches: [WarehousePatch!]!) {
270
+ updateMultipleWarehouse(patches: $patches) {
271
+ name
272
+ }
273
+ }
274
+ `,
275
+ variables: {
276
+ patches
271
277
  }
272
- const response = await client.query({
273
- query: gql`
278
+ })
279
+
280
+ if (!response.errors) {
281
+ history.back()
282
+ this.dataGrist.fetch()
283
+ document.dispatchEvent(
284
+ new CustomEvent('notify', {
285
+ detail: {
286
+ message: i18next.t('text.data_imported_successfully')
287
+ }
288
+ })
289
+ )
290
+ }
291
+ }
292
+
293
+ async _saveWarehouse() {
294
+ let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
295
+ if (patches && patches.length) {
296
+ const response = await client.mutate({
297
+ mutation: gql`
274
298
  mutation updateMultipleWarehouse($patches: [WarehousePatch!]!) {
275
- updateMultipleWarehouse(patches: $patches)
299
+ updateMultipleWarehouse(patches: $patches) {
300
+ name
301
+ }
276
302
  }
277
303
  `,
278
304
  variables: {
@@ -281,58 +307,15 @@ class WarehouseList extends localize(i18next)(PageView) {
281
307
  })
282
308
 
283
309
  if (!response.errors) {
284
- history.back()
285
310
  this.dataGrist.fetch()
286
311
  document.dispatchEvent(
287
312
  new CustomEvent('notify', {
288
313
  detail: {
289
- message: i18next.t('text.data_imported_successfully')
314
+ message: i18next.t('text.data_updated_successfully')
290
315
  }
291
316
  })
292
317
  )
293
318
  }
294
- } catch (e) {
295
- showToast(e)
296
- }
297
- }
298
-
299
- async _saveWarehouse() {
300
- try {
301
- let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
302
- if (patches.some(p => (!p.name || !p.type) && p.cuFlag == '+')) {
303
- throw new Error(i18next.t('text.empty_value_in_list'))
304
- }
305
-
306
- if (!patches?.length) {
307
- CustomAlert({
308
- title: i18next.t('text.nothing_changed'),
309
- text: i18next.t('text.there_is_nothing_to_save')
310
- })
311
- } else {
312
- const response = await client.mutate({
313
- mutation: gql`
314
- mutation updateMultipleWarehouse($patches: [WarehousePatch!]!) {
315
- updateMultipleWarehouse(patches: $patches)
316
- }
317
- `,
318
- variables: {
319
- patches
320
- }
321
- })
322
-
323
- if (!response.errors) {
324
- this.dataGrist.fetch()
325
- document.dispatchEvent(
326
- new CustomEvent('notify', {
327
- detail: {
328
- message: i18next.t('text.data_updated_successfully')
329
- }
330
- })
331
- )
332
- }
333
- }
334
- } catch (e) {
335
- showToast(e)
336
319
  }
337
320
  }
338
321
 
@@ -366,11 +349,6 @@ class WarehouseList extends localize(i18next)(PageView) {
366
349
  })
367
350
  )
368
351
  }
369
- } else {
370
- CustomAlert({
371
- title: i18next.t('text.nothing_selected'),
372
- text: i18next.t('text.there_is_nothing_to_delete')
373
- })
374
352
  }
375
353
  }
376
354
  }
@@ -7,7 +7,6 @@ import '../../inbound/pallet-label-popup'
7
7
  import './edit-product-popup'
8
8
  import './proceed-edit-product-popup'
9
9
  import './view-product-changes-popup'
10
- import { BufferLocationSelector } from '@things-factory/warehouse-ui'
11
10
 
12
11
  import gql from 'graphql-tag'
13
12
  import { css, html } from 'lit-element'
@@ -20,6 +19,7 @@ import { openPopup } from '@things-factory/layout-base'
20
19
  import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
21
20
  import { CommonButtonStyles } from '@things-factory/styles'
22
21
  import { isMobileDevice } from '@things-factory/utils'
22
+ import { BufferLocationSelector } from '@things-factory/warehouse-ui'
23
23
  import { fetchSettingRule } from '../../../fetch-setting-value'
24
24
 
25
25
  import {
@@ -929,9 +929,6 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
929
929
  sku
930
930
  brand
931
931
  }
932
- productDetail {
933
- id
934
- }
935
932
  remark
936
933
  unitPrice
937
934
  adjustedUnitPrice
@@ -1083,45 +1080,37 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
1083
1080
  }
1084
1081
 
1085
1082
  async _updateArrivalNotice() {
1086
- try {
1087
- const arrivalNoticeInfo = this._getFormInfo()
1083
+ const arrivalNoticeInfo = this._getFormInfo()
1088
1084
 
1089
- if (arrivalNoticeInfo.container) {
1090
- if (!arrivalNoticeInfo.containerNo || arrivalNoticeInfo?.containerNo == '')
1091
- throw new Error(i18next.t('text.container_no_is_empty'))
1085
+ arrivalNoticeInfo.name = this._ganNo
1086
+ delete arrivalNoticeInfo.bizplaceName
1092
1087
 
1093
- if (!arrivalNoticeInfo.containerSize || this.arrivalNoticeForm?.containerSize == '')
1094
- throw new Error(i18next.t('text.please_select_container_size'))
1095
- }
1096
-
1097
- arrivalNoticeInfo.name = this._ganNo
1098
- delete arrivalNoticeInfo.bizplaceName
1099
-
1100
- if (!arrivalNoticeInfo.container) {
1101
- arrivalNoticeInfo.containerNo = ''
1102
- arrivalNoticeInfo.containerSize = ''
1103
- } else if (arrivalNoticeInfo.warehouseTransport) {
1104
- arrivalNoticeInfo.deliveryOrderNo = ''
1105
- arrivalNoticeInfo.truckNo = ''
1106
- }
1088
+ if (!arrivalNoticeInfo.container) {
1089
+ arrivalNoticeInfo.containerNo = ''
1090
+ arrivalNoticeInfo.containerSize = ''
1091
+ } else if (arrivalNoticeInfo.warehouseTransport) {
1092
+ arrivalNoticeInfo.deliveryOrderNo = ''
1093
+ arrivalNoticeInfo.truckNo = ''
1094
+ }
1107
1095
 
1108
- delete arrivalNoticeInfo.warehouseTransport
1109
- delete arrivalNoticeInfo['buffer-location']
1096
+ delete arrivalNoticeInfo.warehouseTransport
1097
+ delete arrivalNoticeInfo['buffer-location']
1110
1098
 
1111
- if (this._warehouseTransport) {
1112
- arrivalNoticeInfo.truckNo = ''
1113
- arrivalNoticeInfo.deliveryOrderNo = ''
1114
- }
1099
+ if (this._warehouseTransport) {
1100
+ arrivalNoticeInfo.truckNo = ''
1101
+ arrivalNoticeInfo.deliveryOrderNo = ''
1102
+ }
1115
1103
 
1116
- const result = await CustomAlert({
1117
- title: i18next.t('title.are_you_sure'),
1118
- text: i18next.t('text.update_arrival_notice_details'),
1119
- confirmButton: { text: i18next.t('button.submit') },
1120
- cancelButton: { text: i18next.t('button.cancel') }
1121
- })
1104
+ const result = await CustomAlert({
1105
+ title: i18next.t('title.are_you_sure'),
1106
+ text: i18next.t('text.update_arrival_notice_details'),
1107
+ confirmButton: { text: i18next.t('button.submit') },
1108
+ cancelButton: { text: i18next.t('button.cancel') }
1109
+ })
1122
1110
 
1123
- if (!result.value) return
1111
+ if (!result.value) return
1124
1112
 
1113
+ try {
1125
1114
  const response = await client.mutate({
1126
1115
  mutation: gql`
1127
1116
  mutation updateArrivalNoticeDetails($arrivalNotice: ArrivalNoticePatch!) {