@things-factory/operato-wms 4.3.201 → 4.3.203

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.
@@ -729,9 +729,17 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
729
729
  this.selectByPalletInput.checked = true
730
730
  } else {
731
731
  this._pickingStd = value
732
+ this.inventoryGrist.reset()
733
+ this.vasGrist.reset()
734
+ this.inventoryData = { ...this.inventoryData, records: [] }
735
+ this.vasData = { ...this.vasData, records: [] }
732
736
  }
733
737
  } else {
734
738
  this._pickingStd = value
739
+ this.inventoryGrist.reset()
740
+ this.vasGrist.reset()
741
+ this.inventoryData = { ...this.inventoryData, records: [] }
742
+ this.vasData = { ...this.vasData, records: [] }
735
743
  }
736
744
  }}"
737
745
  .checked="${this._pickingStd === PICKING_STANDARD.SELECT_BY_PRODUCT.value}"
@@ -763,9 +771,17 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
763
771
  this.selectByProductInput.checked = true
764
772
  } else {
765
773
  this._pickingStd = value
774
+ this.inventoryGrist.reset()
775
+ this.vasGrist.reset()
776
+ this.inventoryData = { ...this.inventoryData, records: [] }
777
+ this.vasData = { ...this.vasData, records: [] }
766
778
  }
767
779
  } else {
768
780
  this._pickingStd = value
781
+ this.inventoryGrist.reset()
782
+ this.vasGrist.reset()
783
+ this.inventoryData = { ...this.inventoryData, records: [] }
784
+ this.vasData = { ...this.vasData, records: [] }
769
785
  }
770
786
  }}"
771
787
  .checked="${(this._pickingStd === PICKING_STANDARD.SELECT_BY_PALLET.value && !this._crossDocking) ||
@@ -1003,6 +1019,15 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1003
1019
  }
1004
1020
  }
1005
1021
 
1022
+ _clearView() {
1023
+ this.releaseOrderForm.reset()
1024
+ this.inventoryData = { ...this.inventoryData, records: [] }
1025
+ this.vasData = { ...this.vasData, records: [] }
1026
+ if (this._document?._files) {
1027
+ this._document.reset()
1028
+ }
1029
+ }
1030
+
1006
1031
  async pageInitialized() {
1007
1032
  let [enableTransportationServiceSetting, bizplaces, packingTypes] = await Promise.all([
1008
1033
  fetchSettingRule('enable-transportation-service'),
@@ -2694,6 +2719,9 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2694
2719
  this._bizplaceId = e.detail.id
2695
2720
  this._bizplaceName = e.detail.name
2696
2721
  this.switchPickingType()
2722
+ this.inventoryGrist.reset()
2723
+ this.vasGrist.reset()
2724
+ this._clearView()
2697
2725
  // this._resetShippingInfoForm()
2698
2726
  this.fetchCountry()
2699
2727
  }}"
@@ -326,6 +326,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
326
326
  storeId
327
327
  storeName
328
328
  stopId
329
+ createdAt
329
330
  }
330
331
  total
331
332
  }
@@ -347,10 +348,13 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
347
348
  total: records.total || 0,
348
349
  records:
349
350
  records.items.map(itm => {
351
+ let createdAt = new Date(itm.createdAt)
352
+ createdAt = `${createdAt.getDate()}/${createdAt.getMonth() + 1}/${createdAt.getFullYear()}`
350
353
  return {
351
354
  ...itm,
352
355
  roName: itm.releaseGoodName,
353
- productSku: itm.productSKU
356
+ productSku: itm.productSKU,
357
+ createdAt: createdAt
354
358
  }
355
359
  }) || {}
356
360
  })
@@ -373,6 +377,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
373
377
  message: `${i18next.t('text.no_label_setting_was_found')}. ${i18next.t('text.please_check_your_setting')}`
374
378
  })
375
379
  } else {
380
+ let index = 1
376
381
  for (var record of records) {
377
382
  let max = record.releaseQty ? record.releaseQty : 1
378
383
  for (let qty = 1; qty <= max; qty++) {
@@ -391,17 +396,18 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
391
396
  searchParams.append('productName', record.productName)
392
397
  } else {
393
398
  searchParams.append('productName', record.toteNumber)
399
+ searchParams.append('counter', `${index} of ${records.length}`)
394
400
  }
395
401
  searchParams.append('stopId', record.stopId)
396
402
  searchParams.append('routeId', record.routeId)
397
403
  searchParams.append('storeId', record.storeId)
398
404
  searchParams.append('storeName', record.storeName)
399
405
  searchParams.append('str', `STR: ${record.storeId}`)
406
+ searchParams.append('createdAt', `P/D: ${record.createdAt}`)
400
407
  searchParams.append(
401
408
  'storeInformation',
402
409
  `(Store ID) ${record.storeId}, (Store Name) ${record.storeName}, (Route ID) ${record.routeId}, (Stop ID) ${record.stopId}`
403
410
  )
404
-
405
411
  try {
406
412
  const response = await fetch(`label-command/${labelId}?${searchParams.toString()}`, {
407
413
  method: 'GET'
@@ -425,6 +431,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
425
431
  break
426
432
  }
427
433
  }
434
+ index++
428
435
  }
429
436
  }
430
437
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.201",
3
+ "version": "4.3.203",
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.179",
92
92
  "@things-factory/product-base": "^4.3.186",
93
93
  "@things-factory/resource-ui": "^4.3.179",
94
- "@things-factory/sales-ui": "^4.3.201",
94
+ "@things-factory/sales-ui": "^4.3.203",
95
95
  "@things-factory/scene-data-transform": "^4.3.159",
96
96
  "@things-factory/scene-excel": "^4.3.159",
97
97
  "@things-factory/scene-firebase": "^4.3.159",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.179",
108
108
  "@things-factory/transport-base": "^4.3.179",
109
109
  "@things-factory/tutorial-ui": "^4.3.179",
110
- "@things-factory/warehouse-base": "^4.3.201",
111
- "@things-factory/worksheet-base": "^4.3.201"
110
+ "@things-factory/warehouse-base": "^4.3.203",
111
+ "@things-factory/worksheet-base": "^4.3.203"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.179",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "30a106970669db98dfd6ffe7b75d152866b9fa2e"
120
+ "gitHead": "b52c1edcf8ce5a968ccbf008a6a5f364f7de6f08"
121
121
  }