@things-factory/operato-wms 4.3.461 → 4.3.464

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.
@@ -230,7 +230,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
230
230
  }
231
231
 
232
232
  if (this.isUserBelongsDomain) {
233
- if (this._status === ORDER_STATUS.PROCESSING.value || this._status === ORDER_STATUS.READY_TO_UNLOAD.value) {
233
+ if (this._status === ORDER_STATUS.PROCESSING.value) {
234
234
  actions.push(
235
235
  {
236
236
  title: i18next.t('button.update_order_details'),
@@ -284,6 +284,11 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
284
284
  action: this._updateArrivalNotice.bind(this),
285
285
  ...CommonButtonStyles.add
286
286
  },
287
+ {
288
+ title: i18next.t('button.cancel'),
289
+ action: this._cancelArrivalNotice.bind(this),
290
+ ...CommonButtonStyles.cancel
291
+ },
287
292
  {
288
293
  title: i18next.t('button.arrived'),
289
294
  action: this._checkArrivedNotice.bind(this),
@@ -299,12 +304,34 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
299
304
  ...CommonButtonStyles.add
300
305
  },
301
306
  {
307
+ title: i18next.t('button.cancel'),
308
+ action: this._cancelArrivalNotice.bind(this),
309
+ ...CommonButtonStyles.cancel
310
+ },{
302
311
  title: i18next.t('button.assign_warehouse'),
303
312
  action: this._assignBufferLocation.bind(this),
304
313
  ...CommonButtonStyles.warehouse
305
314
  }
306
315
  )
307
316
  this._showAssignWarehouse = true
317
+ } else if (this._status === ORDER_STATUS.READY_TO_UNLOAD.value) {
318
+ actions.push(
319
+ {
320
+ title: i18next.t('button.update_order_details'),
321
+ action: this._updateArrivalNotice.bind(this),
322
+ ...CommonButtonStyles.add
323
+ },
324
+ {
325
+ title: i18next.t('button.cancel'),
326
+ action: this._cancelArrivalNotice.bind(this),
327
+ ...CommonButtonStyles.cancel
328
+ },
329
+ {
330
+ title: i18next.t('button.edit_product'),
331
+ action: this.openEditProductPopup.bind(this),
332
+ ...CommonButtonStyles.add
333
+ }
334
+ )
308
335
  } else if (
309
336
  this._status === ORDER_STATUS.PENDING_APPROVAL.value &&
310
337
  this.productData.records.some(
@@ -360,6 +387,14 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
360
387
  ...CommonButtonStyles.copy
361
388
  })
362
389
  }
390
+
391
+ if (this._status === ORDER_STATUS.INTRANSIT.value || this._status === ORDER_STATUS.ARRIVED.value || this._status === ORDER_STATUS.READY_TO_UNLOAD.value) {
392
+ actions.push({
393
+ title: i18next.t('button.cancel'),
394
+ action: this._cancelArrivalNotice.bind(this),
395
+ ...CommonButtonStyles.cancel
396
+ })
397
+ }
363
398
  }
364
399
  if (this._status === ORDER_STATUS.REJECTED.value) {
365
400
  titleName = i18next.t('title.rejected_arrival_notice_detail')
@@ -1473,6 +1508,35 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
1473
1508
  }
1474
1509
  }
1475
1510
 
1511
+ async _cancelArrivalNotice() {
1512
+ try {
1513
+ let result = await CustomAlert({
1514
+ title: i18next.t('title.are_you_sure'),
1515
+ text: i18next.t('text.you_wont_be_able_to_revert_this'),
1516
+ confirmButton: { text: i18next.t('button.confirm') },
1517
+ cancelButton: { text: i18next.t('button.cancel') }
1518
+ })
1519
+
1520
+ if (!result.value) return
1521
+
1522
+ const response = await client.mutate({
1523
+ mutation: gql`
1524
+ mutation cancelArrivalNotice($name: String!) {
1525
+ cancelArrivalNotice(name: $name)
1526
+ }
1527
+ `,
1528
+ variables: { name: this._ganNo }
1529
+ })
1530
+
1531
+ if (!response.errors) {
1532
+ navigate('arrival_notices')
1533
+ this._showToast({ message: i18next.t('text.arrival_notice_cancelled') })
1534
+ }
1535
+ } catch (e) {
1536
+ this._showToast(e)
1537
+ }
1538
+ }
1539
+
1476
1540
  _openBufferSelector() {
1477
1541
  openPopup(
1478
1542
  html`
@@ -2127,7 +2127,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
2127
2127
  this.updateSelectedItemProp(this._selectedOrderInventory)
2128
2128
  if (this._selectedOrderInventory?.pickedQty == this._selectedOrderInventory?.releaseQty) {
2129
2129
  if (this._isCartonLabel) {
2130
- this.cartonInput.value = ''
2130
+ if (this.cartonInput) this.cartonInput.value = ''
2131
2131
  this._focusOnCartonNoInput()
2132
2132
  }
2133
2133
  this._selectedOrderInventory = null
@@ -6,25 +6,14 @@ import './tote-popup'
6
6
  import './sorting-same-gtin-popup'
7
7
 
8
8
  import gql from 'graphql-tag'
9
- import {
10
- css,
11
- html
12
- } from 'lit-element'
9
+ import { css, html } from 'lit-element'
13
10
  import { connect } from 'pwa-helpers/connect-mixin.js'
14
11
 
15
12
  import { sleep } from '@operato/utils'
16
13
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
17
- import {
18
- i18next,
19
- localize
20
- } from '@things-factory/i18n-base'
14
+ import { i18next, localize } from '@things-factory/i18n-base'
21
15
  import { openPopup } from '@things-factory/layout-base'
22
- import {
23
- client,
24
- CustomAlert,
25
- PageView,
26
- store
27
- } from '@things-factory/shell'
16
+ import { client, CustomAlert, PageView, store } from '@things-factory/shell'
28
17
  import { CommonButtonStyles } from '@things-factory/styles'
29
18
  import { isMobileDevice } from '@things-factory/utils'
30
19
 
@@ -229,7 +218,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
229
218
  <legend>
230
219
  ${i18next.t('title.order_no')}: ${this.taskNo}
231
220
  ${this.taskNo
232
- ? html`(${this._selectedReleaseGood?.name})
221
+ ? html`(${this._selectedReleaseGood})
233
222
  <mwc-icon @click="${this._openWorksheetInformation.bind(this)}">info</mwc-icon>`
234
223
  : ''}
235
224
  </legend>
@@ -379,6 +368,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
379
368
  status
380
369
  sortedByUser
381
370
  }
371
+ selectedReleaseGood
382
372
  taskNo
383
373
  }
384
374
  }
@@ -387,12 +377,17 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
387
377
  })
388
378
 
389
379
  if (!response.errors) {
390
- this.releaseOrders = response.data.findSortingReleaseOrdersByTaskNo.releaseGoods
391
380
  this.taskNo = response.data.findSortingReleaseOrdersByTaskNo.taskNo
392
- if (this.releaseOrders?.find(itm => itm.status == 'SORTING')) {
393
- await this._openSelectReleaseOrderPopup()
381
+ this.releaseOrders = response.data.findSortingReleaseOrdersByTaskNo.releaseGoods
382
+
383
+ if (response.data.findSortingReleaseOrdersByTaskNo?.selectedReleaseGood) {
384
+ await this._setSelectedRO(response.data.findSortingReleaseOrdersByTaskNo.selectedReleaseGood)
394
385
  } else {
395
- await this._completeSortingWorksheet()
386
+ if (this.releaseOrders?.find(itm => itm.status == 'SORTING')) {
387
+ await this._openSelectReleaseOrderPopup()
388
+ } else {
389
+ await this._completeSortingWorksheet()
390
+ }
396
391
  }
397
392
  }
398
393
  } catch (e) {
@@ -407,13 +402,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
407
402
  <show-ro-list-popup
408
403
  .releaseOrders=${this.releaseOrders}
409
404
  @ro-selected=${e => {
410
- this._selectedReleaseGood = e.detail.ro
411
- this._fetchItemList(this._selectedReleaseGood?.name)
412
- if (this._enableProductScanning) this.productBarcodeInput.value = ''
413
- if (this.sortingQtyInput) this.sortingQtyInput.value = ''
414
- if (this.serialInput) this.serialInput.value = ''
415
- this.toteNo = ''
416
- this._lastScannedProductId = ''
405
+ this._setSelectedRO(e.detail.ro?.name)
417
406
  }}
418
407
  ></show-ro-list-popup>
419
408
  `,
@@ -425,6 +414,16 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
425
414
  )
426
415
  }
427
416
 
417
+ _setSelectedRO(ro) {
418
+ this._selectedReleaseGood = ro
419
+ this._fetchItemList(this._selectedReleaseGood)
420
+ if (this._enableProductScanning) this.productBarcodeInput.value = ''
421
+ if (this.sortingQtyInput) this.sortingQtyInput.value = ''
422
+ if (this.serialInput) this.serialInput.value = ''
423
+ this.toteNo = ''
424
+ this._lastScannedProductId = ''
425
+ }
426
+
428
427
  _openWorksheetInformation() {
429
428
  openPopup(
430
429
  html`
@@ -443,7 +442,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
443
442
  openPopup(
444
443
  html`
445
444
  <tote-popup
446
- .orderNo="${this._selectedReleaseGood?.name}"
445
+ .orderNo="${this._selectedReleaseGood}"
447
446
  .toteNo="${this.toteNo}"
448
447
  .bizplace="${this.bizplaceName}"
449
448
  @completed="${async e => {
@@ -619,7 +618,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
619
618
  }
620
619
 
621
620
  if (!response?.errors || (this._enableProductScanning && records.length > 1)) {
622
- this._fetchItemList(this._selectedReleaseGood?.name)
621
+ this._fetchItemList(this._selectedReleaseGood)
623
622
  }
624
623
  } catch (e) {
625
624
  this._showToast(e)
@@ -649,7 +648,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
649
648
  `,
650
649
  variables: {
651
650
  taskNo: this.taskNo,
652
- releaseGoodNo: this._selectedReleaseGood?.name,
651
+ releaseGoodNo: this._selectedReleaseGood,
653
652
  productId: this._selectedOrderInventory?.product.id,
654
653
  sortingQty: this._isRequireSerialNumberScanningOutbound ? 1 : parseFloat(this.sortingQtyInput.value),
655
654
  serialNumber: this._isRequireSerialNumberScanningOutbound ? this.serialInput.value.trim() : null,
@@ -660,7 +659,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
660
659
 
661
660
  async scanProductSorting(productId) {
662
661
  const variables = {
663
- releaseGoodNo: this._selectedReleaseGood?.name,
662
+ releaseGoodNo: this._selectedReleaseGood,
664
663
  taskNo: this.taskNo,
665
664
  productBarcode: this.productBarcodeInput.value.trim(),
666
665
  serialNumber: this._isRequireSerialNumberScanningOutbound ? this.serialInput.value.trim() : null,
@@ -698,7 +697,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
698
697
  })
699
698
 
700
699
  this._lastScannedProductId = productId
701
- this._fetchItemList(this._selectedReleaseGood?.name)
700
+ this._fetchItemList(this._selectedReleaseGood)
702
701
  this._clearField()
703
702
  }
704
703
 
@@ -728,7 +727,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
728
727
  }
729
728
  `,
730
729
  variables: {
731
- releaseGoodNo: this._selectedReleaseGood?.name
730
+ releaseGoodNo: this._selectedReleaseGood
732
731
  }
733
732
  })
734
733
  if (!response.errors) {
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## 6 May Update
6
6
 
7
- #### V4.3.458 Release Note
7
+ #### V4.3.459 Release Note
8
8
 
9
9
  #### Greetings to all,
10
10
 
@@ -19,7 +19,7 @@
19
19
 
20
20
  <br>
21
21
  For additional information about the aspects of the release, see the following link
22
- <a href="https://shorturl.at/ANW12">V4.3.452 Release Note</a>
22
+ <a href="https://shorturl.at/ANW12">V4.3.459 Release Note</a>
23
23
  <br>
24
24
 
25
25
  Should you have any inquiries, feel free to contact <a href="mailto: support@hatio.asia">support@hatio.asia</a>! Stay safe and positively negative!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.461",
3
+ "version": "4.3.464",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -91,7 +91,7 @@
91
91
  "@things-factory/print-ui": "^4.3.434",
92
92
  "@things-factory/product-base": "^4.3.452",
93
93
  "@things-factory/resource-ui": "^4.3.452",
94
- "@things-factory/sales-ui": "^4.3.461",
94
+ "@things-factory/sales-ui": "^4.3.464",
95
95
  "@things-factory/scene-data-transform": "^4.3.381",
96
96
  "@things-factory/scene-excel": "^4.3.381",
97
97
  "@things-factory/scene-firebase": "^4.3.381",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.434",
108
108
  "@things-factory/transport-base": "^4.3.452",
109
109
  "@things-factory/tutorial-ui": "^4.3.452",
110
- "@things-factory/warehouse-base": "^4.3.461",
111
- "@things-factory/worksheet-base": "^4.3.461"
110
+ "@things-factory/warehouse-base": "^4.3.464",
111
+ "@things-factory/worksheet-base": "^4.3.464"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.381",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "978c9bf639d5f4f779f2b439cc45408fc47b1bcb"
120
+ "gitHead": "dc2feb22015b76dc2ccb311676a5fdf2ef2c6372"
121
121
  }
@@ -1229,6 +1229,7 @@
1229
1229
  "text.already_existed": "row {state.text} is already existed",
1230
1230
  "text.are_empty": "are empty",
1231
1231
  "text.are_you_sure_to_change_the_order_status_to_Done": "are you sure to change the to Done?",
1232
+ "text.arrival_notice_cancelled": "arrival notice cancelled",
1232
1233
  "text.arrival_notice_details_updated": "arrival notice details updated",
1233
1234
  "text.arrival_notice_form_invalid": "arrival notice form invalid",
1234
1235
  "text.arrival_notice_is_arrived": "arrival notice is arrived",
@@ -1219,6 +1219,7 @@
1219
1219
  "text.already_existed": "행 {state.text}이(가) 이미 존재 합니다",
1220
1220
  "text.are_empty": "의 값이 없습니다",
1221
1221
  "text.are_you_sure_to_change_the_order_status_to_Done": "완료 처리하시겠습니까?",
1222
+ "text.arrival_notice_cancelled": "[ko]arrival notice cancelled",
1222
1223
  "text.arrival_notice_details_updated": "[ko]arrival notice details updated",
1223
1224
  "text.arrival_notice_form_invalid": "입고주문 폼이 유효하지 않습니다",
1224
1225
  "text.arrival_notice_is_arrived": "입고요청이 도착했습니다",
@@ -1195,6 +1195,7 @@
1195
1195
  "text.already_existed": "baris {state.text} telah tersedia",
1196
1196
  "text.are_empty": "adalah mssong",
1197
1197
  "text.are_you_sure_to_change_the_order_status_to_Done": "adakah anda pasti menukar pesanan status kepada Selesai",
1198
+ "text.arrival_notice_cancelled": "notis ketibaan dibatalkan",
1198
1199
  "text.arrival_notice_details_updated": "[ms]arrival notice details updated",
1199
1200
  "text.arrival_notice_form_invalid": "notis ketibaan tidak sah",
1200
1201
  "text.arrival_notice_is_arrived": "notis ketibaan telah tiba",
@@ -1161,6 +1161,7 @@
1161
1161
  "text.already_existed": "row {state.text} is already existed",
1162
1162
  "text.are_empty": "are empty",
1163
1163
  "text.are_you_sure_to_change_the_order_status_to_Done": "are you sure to change the to Done?",
1164
+ "text.arrival_notice_cancelled": "[zh]arrival notice cancelled",
1164
1165
  "text.arrival_notice_details_updated": "[zh]arrival notice details updated",
1165
1166
  "text.arrival_notice_form_invalid": "arrival notice form invalid",
1166
1167
  "text.arrival_notice_is_arrived": "arrival notice is arrived",