@things-factory/operato-wms 4.0.36 → 4.0.37

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.
@@ -84,6 +84,14 @@ class PopupReusablePallet extends localize(i18next)(LitElement) {
84
84
  @click="${async () => await this._verifyInput()}"
85
85
  label="${i18next.t('button.confirm')}"
86
86
  ></mwc-button>
87
+ <mwc-button
88
+ raised
89
+ @click="${async () => {
90
+ this.dispatchEvent(new CustomEvent('normalPallet'))
91
+ history.back()
92
+ }}"
93
+ label="${i18next.t('button.disable')}"
94
+ ></mwc-button>
87
95
  </div>
88
96
  }
89
97
  `
@@ -67,7 +67,7 @@ class WorksheetInformationPopup extends connect(store)(localize(i18next)(LitElem
67
67
  <label>${i18next.t('label.started_at')}</label>
68
68
  <input name="startedAt" type="datetime-local" readonly />
69
69
 
70
- <label>${i18next.t('label.plastic_pallet')}</label>
70
+ <label>${i18next.t('label.reusable_pallet_id')}</label>
71
71
  <input name="plasticPallet" readonly />
72
72
  </fieldset>
73
73
  </form>
@@ -109,19 +109,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
109
109
  get context() {
110
110
  var actions = []
111
111
  if (this._worksheetLoaded && !this._enableCartonLabel) {
112
- if (this._usingReusablePallet) {
113
- actions.push({
114
- title: i18next.t('button.wooden_pallet'),
115
- action: this._woodenPalletMode.bind(this),
116
- ...CommonButtonStyles.activate
117
- })
118
- } else {
119
- actions.push({
120
- title: i18next.t('button.plastic_pallet'),
121
- action: this._reusablePalletMode.bind(this),
122
- ...CommonButtonStyles.activate
123
- })
124
- }
112
+ actions.push({
113
+ title: i18next.t('button.plastic_pallet'),
114
+ action: this._reusablePalletMode.bind(this),
115
+ ...CommonButtonStyles.activate
116
+ })
125
117
  }
126
118
 
127
119
  if (this._isLooseItem) {
@@ -1309,6 +1301,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1309
1301
  this._worksheetInfo.plasticPallet = this._reusablePallet.name
1310
1302
  this.updateContext()
1311
1303
  }}
1304
+ @normalPallet=${async () => this._normalPalletMode()}
1312
1305
  ></popup-reusable-pallet>
1313
1306
  `,
1314
1307
  {
@@ -1320,10 +1313,10 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1320
1313
  )
1321
1314
  }
1322
1315
 
1323
- async _woodenPalletMode() {
1316
+ async _normalPalletMode() {
1324
1317
  const result = await CustomAlert({
1325
1318
  title: i18next.t('title.are_you_sure'),
1326
- text: i18next.t('text.use_wooden_pallet'),
1319
+ text: i18next.t('text.use_normal_pallet'),
1327
1320
  confirmButton: { text: i18next.t('button.confirm') },
1328
1321
  cancelButton: { text: i18next.t('button.cancel') }
1329
1322
  })
@@ -1331,7 +1324,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1331
1324
  if (!result.value) return
1332
1325
  this._usingReusablePallet = false
1333
1326
  this._reusablePalletName = this._worksheetInfo.plasticPallet = ''
1334
- this._showToast({ message: i18next.t('text.now_using_wooden_pallet') })
1327
+ this._showToast({ message: i18next.t('text.now_using_normal_pallet') })
1335
1328
  this.updateContext()
1336
1329
  }
1337
1330
 
@@ -140,7 +140,6 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
140
140
  .config=${this.inventoryGristConfig}
141
141
  .data=${this.inventoryData}
142
142
  @record-change="${this._onProductChangeHandler.bind(this)}"
143
- @field-change="${this._onInventoryFieldChanged.bind(this)}"
144
143
  ></data-grist>
145
144
  </div>
146
145
  </div>
@@ -223,7 +222,7 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
223
222
  if (this.active) {
224
223
  if (changes.resourceId) {
225
224
  this._reverseKittingNo = changes.resourceId
226
- } else {
225
+ } else if (!this._reverseKittingNo) {
227
226
  this._reverseKittingNo = 'new'
228
227
  }
229
228
 
@@ -379,8 +378,9 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
379
378
 
380
379
  try {
381
380
  if (changedColumn === 'qty') {
382
- this._validateQty(changeRecord.qty)
381
+ this._validateQty(changeRecord.qty, changeRecord.remainQty)
383
382
  }
383
+ this._updateQtyAndUomValue(event.detail.row, changedColumn, event.detail.before, changeRecord)
384
384
  } catch (e) {
385
385
  const beforeValue = event.detail.before && event.detail.before[event.detail.column.name]
386
386
  if (beforeValue) {
@@ -392,42 +392,18 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
392
392
  }
393
393
  }
394
394
 
395
- _onInventoryFieldChanged(e) {
396
- let columnName = e.detail.column.name
395
+ _updateQtyAndUomValue(rowIndex, columnName, initialRecord, newRecord) {
397
396
  let roundedUomValue = 0
398
397
  let qty = 0
399
398
 
400
- if (columnName == 'uomValue' || columnName == 'qty' || columnName == 'inventory') {
401
- if (columnName == 'inventory') {
402
- if (
403
- e.detail.after.remainUomValue &&
404
- e.detail.after.remainQty &&
405
- e.detail.after.remainUomValue > 0 &&
406
- e.detail.after.remainQty > 0
407
- ) {
408
- qty = e.detail.record.qty || 0
409
-
410
- roundedUomValue = qty * (e.detail.after.remainUomValue / e.detail.after.remainQty)
399
+ if (columnName == 'qty' || columnName == 'uomValue') {
400
+ if (initialRecord?.remainQty && initialRecord?.remainUomValue) {
401
+ let packageUomValue = initialRecord.remainUomValue / initialRecord.remainQty
411
402
 
412
- roundedUomValue = parseFloat(roundedUomValue.toFixed(2))
413
- }
414
- } else {
415
- let packageUomValue = e.detail.record.remainUomValue / e.detail.record.remainQty
416
- if (
417
- e.detail.record.remainUomValue &&
418
- e.detail.record.remainQty &&
419
- e.detail.record.remainUomValue > 0 &&
420
- e.detail.record.remainQty > 0
421
- ) {
422
- if (columnName === 'qty') {
423
- qty = e.detail.after || 0
424
- } else {
425
- qty = Math.round(e.detail.after / packageUomValue)
426
- }
403
+ if (columnName == 'qty') qty = newRecord.qty || 0
404
+ else qty = Math.round(newRecord.uomValue / packageUomValue)
427
405
 
428
- roundedUomValue = qty * packageUomValue
429
- roundedUomValue = parseFloat(roundedUomValue.toFixed(2))
430
- }
406
+ roundedUomValue = Math.round(qty * packageUomValue * 100) / 100
431
407
  }
432
408
  }
433
409
 
@@ -435,20 +411,16 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
435
411
  ...this.inventoryData,
436
412
  ...this.inventoryGrist.dirtyData,
437
413
  records: this.inventoryGrist.dirtyData.records.map((record, idx) => {
438
- // const factor = this._pickingStd === PICKING_STANDARD.SELECT_BY_PRODUCT.value ? e.detail.row : e.detail.record.id
439
-
440
- if ((columnName == 'uomValue' || columnName == 'qty' || columnName == 'inventory') && idx === e.detail.row) {
414
+ if (idx == rowIndex && (columnName == 'qty' || columnName == 'uomValue')) {
441
415
  if (columnName == 'uomValue') record.qty = qty
442
416
  record.uomValue = roundedUomValue
443
417
  }
444
418
 
445
- let returnObj = {
419
+ return {
446
420
  ...record,
447
421
  ...record.inventory,
448
422
  name: record.name ? record.name : idx
449
423
  }
450
-
451
- return returnObj
452
424
  })
453
425
  }
454
426
 
@@ -783,21 +755,25 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
783
755
  }
784
756
 
785
757
  checkInventoryValidity() {
786
- if (!this.inventoryGrist.dirtyData.records || !this.inventoryGrist.dirtyData.records.length) {
758
+ let records = this.inventoryGrist.dirtyData?.records
759
+
760
+ if (!records || !records.length) {
787
761
  throw new Error(i18next.t('text.there_is_no_inventory'))
788
762
  }
789
763
 
790
- if (this.inventoryGrist.dirtyData.records.some(record => !record.inventory && !record.inventory.id))
764
+ if (records.some(record => !record.inventory && !record.inventory.id))
791
765
  throw new Error(i18next.t('text.invalid_inventory'))
792
766
 
793
- if (this.inventoryGrist.dirtyData.records.some(record => !record.productCombination))
767
+ if (records.some(record => !record.productCombination))
794
768
  throw new Error(i18next.t('text.invalid_product_combination'))
795
769
 
770
+ records.forEach(record => this._validateQty(record.qty, record.remainQty))
771
+
796
772
  return true
797
773
  }
798
774
 
799
- _validateQty(qty) {
800
- if (qty <= 0) {
775
+ _validateQty(qty, remainQty) {
776
+ if (!qty || qty <= 0 || qty > remainQty) {
801
777
  throw new Error(i18next.t('text.invalid_quantity_input'))
802
778
  }
803
779
  }
@@ -45,7 +45,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
45
45
  _isReplacement: Boolean,
46
46
  _isRequireSerialNumberScanning: Boolean,
47
47
  _reusablePalletList: Object,
48
- _worksheetInfo: Object
48
+ _worksheetInfo: Object,
49
+ _locationName: String
49
50
  }
50
51
  }
51
52
 
@@ -892,50 +893,49 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
892
893
  }
893
894
 
894
895
  async picking(e) {
895
- if (e.keyCode === 13) {
896
- e.preventDefault()
897
- try {
898
- await this.validatePicking()
899
-
900
- let response = {}
901
- if (this.crossDocking) {
902
- response = await this.pickCrossDocking()
903
- } else if (this._enableProductScanning || this._isCartonLabel) {
904
- response = await this.productBarcodePicking()
896
+ if (e.keyCode !== 13) return
897
+ e.preventDefault()
898
+ try {
899
+ await this.validatePicking()
900
+
901
+ let response = {}
902
+ if (this.crossDocking) {
903
+ response = await this.pickCrossDocking()
904
+ } else if (this._enableProductScanning || this._isCartonLabel) {
905
+ response = await this.productBarcodePicking()
906
+ } else {
907
+ if (this._isReplacement) {
908
+ this.openPalletReplacementPopup()
909
+ return
905
910
  } else {
906
- if (this._isReplacement) {
907
- this.openPalletReplacementPopup()
908
- return
909
- } else {
910
- response = await this.pickCommonPicking()
911
- }
911
+ response = await this.pickCommonPicking()
912
912
  }
913
+ }
913
914
 
914
- if (!response.errors) {
915
- if (this._isRequireSerialNumberScanning) this.serialInput.value = ''
916
- else if (this._enableProductScanning && !this._isRequireSerialNumberScanning)
917
- this.productBarcodeInput.value = ''
918
- else this.releaseQtyInput.value = ''
919
-
920
- if (!this._isCartonLabel && !this._isRequireSerialNumberScanning) {
921
- this.palletInput.value = ''
922
- // this._selectedTaskStatus = null
923
- this._selectedOrderInventory = null
924
- }
925
-
926
- if (!this.isWholePicking && !this._crossDocking && !this._isCartonLabel && this.locationInput)
927
- this.locationInput.value = ''
928
- if (this.refPickingType === PICKING_TYPES.PICKING.value) {
929
- this.fetchInventories(this.releaseGoodNo)
930
- } else {
931
- this.fetchInventories(this.taskNo)
932
- }
915
+ if (!response.errors) {
916
+ if (this._isRequireSerialNumberScanning) this.serialInput.value = ''
917
+ else if (this._enableProductScanning && !this._isRequireSerialNumberScanning)
918
+ this.productBarcodeInput.value = ''
919
+ else this.releaseQtyInput.value = ''
920
+
921
+ if (!this._isCartonLabel && !this._isRequireSerialNumberScanning) {
922
+ this.palletInput.value = ''
923
+ // this._selectedTaskStatus = null
924
+ this._selectedOrderInventory = null
933
925
  }
934
926
 
935
- this.isReplacement = false
936
- } catch (e) {
937
- this._showToast(e)
927
+ if (!this.isWholePicking && !this._crossDocking && !this._isCartonLabel && this.locationInput)
928
+ this.locationInput.value = ''
929
+ if (this.refPickingType === PICKING_TYPES.PICKING.value) {
930
+ this.fetchInventories(this.releaseGoodNo)
931
+ } else {
932
+ this.fetchInventories(this.taskNo)
933
+ }
938
934
  }
935
+
936
+ this.isReplacement = false
937
+ } catch (e) {
938
+ this._showToast(e)
939
939
  }
940
940
  }
941
941
 
@@ -1022,206 +1022,160 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1022
1022
  }
1023
1023
 
1024
1024
  async pickCommonPicking() {
1025
- if (this._isExecuting === false) {
1026
- this._isExecuting = true
1027
-
1028
- try {
1029
- const locationName =
1030
- this.isWholePicking || !this.locationInput
1031
- ? this._selectedOrderInventory.location.name
1032
- : this.locationInput.value
1033
- // 1. Check whether location is changed
1034
- if (this._selectedOrderInventory.location.name !== locationName) {
1035
- this.locationNameSplit = this.locationInput.value.split('-')
1036
- const zonePortions = this.locationNameSplit[0].match(/[a-zA-Z0-9]+/g)
1037
- const rowPortions = this.locationNameSplit[1].match(/[a-zA-Z0-9]+/g)
1038
- const columnPortions = this.locationNameSplit[2].match(/[a-zA-Z0-9]+/g)
1039
-
1040
- if (this.locationNameSplit.length === 3) {
1041
- this._incompleteLocationName = true
1042
- this.locations = await this.fetchLocations(zonePortions[0], rowPortions[0], columnPortions[0])
1043
- this._focusOnNewLocationInput()
1044
- throw new Error(i18next.t('text.please_select_the_location_again'))
1045
- } else if (this.locationNameSplit.length === 4) {
1046
- let relocateConfirmation = await CustomAlert({
1047
- title: i18next.t('title.relocate'),
1048
- text: i18next.t('text.are_you_sure'),
1049
- confirmButton: { text: i18next.t('button.relocate') },
1050
- cancelButton: { text: i18next.t('button.cancel') }
1051
- })
1025
+ if (this._isExecuting) throw new Error(i18next.t('text.previous_picking_is_still_executing_please_wait'))
1026
+ this._isExecuting = true
1052
1027
 
1053
- if (!relocateConfirmation.isConfirmed) {
1054
- this._incompleteLocationName = false
1055
- this.locationNameSplit = []
1056
- return false
1028
+ try {
1029
+ switch (this.refPickingType) {
1030
+ case PICKING_TYPES.PICKING.value:
1031
+ return await client.mutate({
1032
+ mutation: gql`
1033
+ mutation picking(
1034
+ $worksheetDetailName: String!
1035
+ $worksheetType: String!
1036
+ $palletId: String
1037
+ $locationName: String!
1038
+ $releaseQty: Int!
1039
+ $binLocation: String
1040
+ $serialNumber: String
1041
+ ) {
1042
+ picking(
1043
+ worksheetDetailName: $worksheetDetailName
1044
+ worksheetType: $worksheetType
1045
+ palletId: $palletId
1046
+ locationName: $locationName
1047
+ releaseQty: $releaseQty
1048
+ binLocation: $binLocation
1049
+ serialNumber: $serialNumber
1050
+ )
1051
+ }
1052
+ `,
1053
+ variables: {
1054
+ worksheetDetailName: this._selectedOrderInventory.name,
1055
+ worksheetType: this.refPickingType,
1056
+ palletId: this.palletInput.value.trim(),
1057
+ locationName: this._locationName,
1058
+ releaseQty: this._isRequireSerialNumberScanning ? 1 : parseInt(this.releaseQtyInput.value),
1059
+ binLocation: this._hasBinPicking ? this.binLocationInput.value : null,
1060
+ serialNumber: this._isRequireSerialNumberScanning ? this.serialInput.value : null
1057
1061
  }
1058
- }
1059
- }
1060
-
1061
- switch (this.refPickingType) {
1062
- case PICKING_TYPES.PICKING.value:
1063
- return (
1064
- await client.mutate({
1065
- mutation: gql`
1066
- mutation picking(
1067
- $worksheetDetailName: String!
1068
- $worksheetType: String!
1069
- $palletId: String
1070
- $locationName: String!
1071
- $releaseQty: Int!
1072
- $binLocation: String
1073
- $serialNumber: String
1074
- ) {
1075
- picking(
1076
- worksheetDetailName: $worksheetDetailName
1077
- worksheetType: $worksheetType
1078
- palletId: $palletId
1079
- locationName: $locationName
1080
- releaseQty: $releaseQty
1081
- binLocation: $binLocation
1082
- serialNumber: $serialNumber
1083
- )
1084
- }
1085
- `,
1086
- variables: {
1087
- worksheetDetailName: this._selectedOrderInventory.name,
1088
- worksheetType: this.refPickingType,
1089
- palletId: this.palletInput.value.trim(),
1090
- locationName,
1091
- releaseQty: this._isRequireSerialNumberScanning ? 1 : parseInt(this.releaseQtyInput.value),
1092
- binLocation: this._hasBinPicking ? this.binLocationInput.value : null,
1093
- serialNumber: this._isRequireSerialNumberScanning ? this.serialInput.value : null
1094
- }
1095
- }),
1096
- (this._isExecuting = false)
1097
- )
1098
-
1099
- case PICKING_TYPES.BATCH_PICKING.value:
1100
- return (
1101
- await client.mutate({
1102
- mutation: gql`
1103
- mutation batchPicking(
1104
- $taskNo: String!
1105
- $worksheetType: String!
1106
- $palletId: String!
1107
- $locationName: String
1108
- $binLocationName: String
1109
- $releaseQty: Int!
1110
- ) {
1111
- batchPicking(
1112
- taskNo: $taskNo
1113
- worksheetType: $worksheetType
1114
- palletId: $palletId
1115
- locationName: $locationName
1116
- binLocationName: $binLocationName
1117
- releaseQty: $releaseQty
1118
- )
1119
- }
1120
- `,
1121
- variables: {
1122
- taskNo: this.taskNo,
1123
- worksheetType: this.refPickingType,
1124
- palletId: this.palletInput.value.trim(),
1125
- locationName,
1126
- binLocationName: this._hasBinPicking ? this.binLocationInput.value : null,
1127
- releaseQty: parseInt(this.releaseQtyInput.value)
1128
- }
1129
- }),
1130
- (this._isExecuting = false)
1131
- )
1132
- }
1133
- } catch (e) {
1134
- this._showToast(e)
1062
+ })
1063
+
1064
+ case PICKING_TYPES.BATCH_PICKING.value:
1065
+ return await client.mutate({
1066
+ mutation: gql`
1067
+ mutation batchPicking(
1068
+ $taskNo: String!
1069
+ $worksheetType: String!
1070
+ $palletId: String!
1071
+ $locationName: String
1072
+ $binLocationName: String
1073
+ $releaseQty: Int!
1074
+ ) {
1075
+ batchPicking(
1076
+ taskNo: $taskNo
1077
+ worksheetType: $worksheetType
1078
+ palletId: $palletId
1079
+ locationName: $locationName
1080
+ binLocationName: $binLocationName
1081
+ releaseQty: $releaseQty
1082
+ )
1083
+ }
1084
+ `,
1085
+ variables: {
1086
+ taskNo: this.taskNo,
1087
+ worksheetType: this.refPickingType,
1088
+ palletId: this.palletInput.value.trim(),
1089
+ locationName: this._locationName,
1090
+ binLocationName: this._hasBinPicking ? this.binLocationInput.value : null,
1091
+ releaseQty: parseInt(this.releaseQtyInput.value)
1092
+ }
1093
+ })
1135
1094
  }
1136
- } else {
1137
- throw new Error(i18next.t('text.previous_picking_is_still_executing_please_wait'))
1095
+ } catch (e) {
1096
+ this._showToast(e)
1097
+ } finally {
1098
+ this._isExecuting = false
1138
1099
  }
1139
1100
  }
1140
1101
 
1141
1102
  async productBarcodePicking() {
1142
- if (this._isExecuting === false) {
1143
- this._isExecuting = true
1144
-
1145
- try {
1146
- switch (this.refPickingType) {
1147
- case PICKING_TYPES.PICKING.value:
1148
- return (
1149
- await client.mutate({
1150
- mutation: gql`
1151
- mutation scanProductPicking(
1152
- $worksheetDetailName: String!
1153
- $worksheetType: String!
1154
- $productBarcode: String!
1155
- $cartonId: String!
1156
- $binLocation: String
1157
- $serialNumber: String
1158
- ) {
1159
- scanProductPicking(
1160
- worksheetDetailName: $worksheetDetailName
1161
- worksheetType: $worksheetType
1162
- productBarcode: $productBarcode
1163
- cartonId: $cartonId
1164
- binLocation: $binLocation
1165
- serialNumber: $serialNumber
1166
- )
1167
- }
1168
- `,
1169
- variables: {
1170
- worksheetDetailName: this._selectedOrderInventory.name,
1171
- worksheetType: this.refPickingType,
1172
- productBarcode: this.productBarcodeInput.value.trim(),
1173
- cartonId: this.cartonInput.value.trim(),
1174
- serialNumber: this._isRequireSerialNumberScanning ? this.serialInput.value : null,
1175
- binLocation: this._hasBinPicking ? this.binLocationInput.value : null
1176
- }
1177
- }),
1178
- (this._isExecuting = false)
1179
- )
1103
+ if (this._isExecuting) throw new Error(i18next.t('text.previous_picking_is_still_executing_please_wait'))
1104
+ this._isExecuting = true
1180
1105
 
1181
- case PICKING_TYPES.BATCH_PICKING.value:
1182
- return (
1183
- await client.mutate({
1184
- mutation: gql`
1185
- mutation scanProductBatchPicking(
1186
- $taskNo: String!
1187
- $worksheetType: String!
1188
- $cartonId: String!
1189
- $inventory: InventoryPatch!
1190
- $productBarcode: String!
1191
- $binLocationName: String
1192
- ) {
1193
- scanProductBatchPicking(
1194
- taskNo: $taskNo
1195
- worksheetType: $worksheetType
1196
- cartonId: $cartonId
1197
- inventory: $inventory
1198
- productBarcode: $productBarcode
1199
- binLocationName: $binLocationName
1200
- )
1201
- }
1202
- `,
1203
- variables: {
1204
- taskNo: this.taskNo,
1205
- worksheetType: this.refPickingType,
1206
- cartonId: this.cartonInput.value.trim(),
1207
- productBarcode: this.productBarcodeInput.value.trim(),
1208
- inventory: {
1209
- batchId: this._selectedOrderInventory.batchId,
1210
- packingType: this._selectedOrderInventory.packingType,
1211
- packingSize: this._selectedOrderInventory.packingSize,
1212
- product: { id: this._selectedOrderInventory.product.id }
1213
- },
1214
- binLocationName: this._hasBinPicking ? this.binLocationInput.value : null
1215
- }
1216
- }),
1217
- (this._isExecuting = false)
1218
- )
1219
- }
1220
- } catch (e) {
1221
- this._showToast(e)
1106
+ try {
1107
+ switch (this.refPickingType) {
1108
+ case PICKING_TYPES.PICKING.value:
1109
+ return await client.mutate({
1110
+ mutation: gql`
1111
+ mutation scanProductPicking(
1112
+ $worksheetDetailName: String!
1113
+ $worksheetType: String!
1114
+ $productBarcode: String!
1115
+ $cartonId: String!
1116
+ $binLocation: String
1117
+ $serialNumber: String
1118
+ ) {
1119
+ scanProductPicking(
1120
+ worksheetDetailName: $worksheetDetailName
1121
+ worksheetType: $worksheetType
1122
+ productBarcode: $productBarcode
1123
+ cartonId: $cartonId
1124
+ binLocation: $binLocation
1125
+ serialNumber: $serialNumber
1126
+ )
1127
+ }
1128
+ `,
1129
+ variables: {
1130
+ worksheetDetailName: this._selectedOrderInventory.name,
1131
+ worksheetType: this.refPickingType,
1132
+ productBarcode: this.productBarcodeInput.value.trim(),
1133
+ cartonId: this.cartonInput.value.trim(),
1134
+ serialNumber: this._isRequireSerialNumberScanning ? this.serialInput.value : null,
1135
+ binLocation: this._hasBinPicking ? this.binLocationInput.value : null
1136
+ }
1137
+ })
1138
+
1139
+ case PICKING_TYPES.BATCH_PICKING.value:
1140
+ return await client.mutate({
1141
+ mutation: gql`
1142
+ mutation scanProductBatchPicking(
1143
+ $taskNo: String!
1144
+ $worksheetType: String!
1145
+ $cartonId: String!
1146
+ $inventory: InventoryPatch!
1147
+ $productBarcode: String!
1148
+ $binLocationName: String
1149
+ ) {
1150
+ scanProductBatchPicking(
1151
+ taskNo: $taskNo
1152
+ worksheetType: $worksheetType
1153
+ cartonId: $cartonId
1154
+ inventory: $inventory
1155
+ productBarcode: $productBarcode
1156
+ binLocationName: $binLocationName
1157
+ )
1158
+ }
1159
+ `,
1160
+ variables: {
1161
+ taskNo: this.taskNo,
1162
+ worksheetType: this.refPickingType,
1163
+ cartonId: this.cartonInput.value.trim(),
1164
+ productBarcode: this.productBarcodeInput.value.trim(),
1165
+ inventory: {
1166
+ batchId: this._selectedOrderInventory.batchId,
1167
+ packingType: this._selectedOrderInventory.packingType,
1168
+ packingSize: this._selectedOrderInventory.packingSize,
1169
+ product: { id: this._selectedOrderInventory.product.id }
1170
+ },
1171
+ binLocationName: this._hasBinPicking ? this.binLocationInput.value : null
1172
+ }
1173
+ })
1222
1174
  }
1223
- } else {
1224
- throw new Error(i18next.t('text.previous_picking_is_still_executing_please_wait'))
1175
+ } catch (e) {
1176
+ this._showToast(e)
1177
+ } finally {
1178
+ this._isExecuting = false
1225
1179
  }
1226
1180
  }
1227
1181
 
@@ -1279,6 +1233,45 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1279
1233
  this._focusOnLocationNameInput()
1280
1234
  throw new Error(i18next.t('text.location_id_is_empty'))
1281
1235
  }
1236
+ // check if actual return location
1237
+ this._locationName =
1238
+ this.isWholePicking || !this.locationInput
1239
+ ? this._selectedOrderInventory.location.name
1240
+ : this.locationInput.value
1241
+ // 1. Check whether location is changed
1242
+ if (this._selectedOrderInventory.location.name !== this._locationName) {
1243
+ this.locationNameSplit = this.locationInput.value.split('-')
1244
+ if (this.locationNameSplit.length < 3) {
1245
+ this._focusOnLocationNameInput()
1246
+ throw new Error(i18next.t('text.invalid_return_location'))
1247
+ }
1248
+ const zonePortions = this.locationNameSplit[0].match(/[a-zA-Z0-9]+/g)
1249
+ const rowPortions = this.locationNameSplit[1].match(/[a-zA-Z0-9]+/g)
1250
+ const columnPortions = this.locationNameSplit[2].match(/[a-zA-Z0-9]+/g)
1251
+ if (this.locationNameSplit.length === 3) {
1252
+ this.locations = await this.fetchLocations(zonePortions[0], rowPortions[0], columnPortions[0])
1253
+ this._focusOnNewLocationInput()
1254
+ if (this.locations.length > 0) {
1255
+ this._incompleteLocationName = true
1256
+ throw new Error(i18next.t('text.please_select_the_location_again'))
1257
+ } else {
1258
+ throw new Error(i18next.t('text.invalid_return_location'))
1259
+ }
1260
+ } else if (this.locationNameSplit.length === 4) {
1261
+ let relocateConfirmation = await CustomAlert({
1262
+ title: i18next.t('title.relocate'),
1263
+ text: i18next.t('text.are_you_sure'),
1264
+ confirmButton: { text: i18next.t('button.relocate') },
1265
+ cancelButton: { text: i18next.t('button.cancel') }
1266
+ })
1267
+
1268
+ if (!relocateConfirmation.isConfirmed) {
1269
+ this._incompleteLocationName = false
1270
+ this.locationNameSplit = []
1271
+ return false
1272
+ }
1273
+ }
1274
+ }
1282
1275
  }
1283
1276
  }
1284
1277
  } else {
@@ -132,7 +132,7 @@ class ShowRoListPopup extends localize(i18next)(LitElement) {
132
132
  _selectReleaseOrder() {
133
133
  const selectedRO = this.grist.selected[0]
134
134
  if (selectedRO) {
135
- this.dispatchEvent(new CustomEvent('ro-selected', { detail: this.grist.selected[0] }))
135
+ this.dispatchEvent(new CustomEvent('ro-selected', { detail: { ro: selectedRO } }))
136
136
  history.back()
137
137
  } else {
138
138
  document.dispatchEvent(
@@ -22,10 +22,10 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
22
22
  return {
23
23
  _bizplaceName: String,
24
24
  _enableProductScanning: Boolean,
25
- _productName: String,
26
25
  _selectedOrderInventory: Object,
27
26
  _selectedTaskStatus: String,
28
27
  _worksheetInfo: Object,
28
+ _selectedReleaseGood: Object,
29
29
  config: Object,
30
30
  data: Object,
31
31
  releaseOrders: Array,
@@ -117,10 +117,6 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
117
117
  .shadowRoot.querySelector('input')
118
118
  }
119
119
 
120
- get releaseGoodNoInput() {
121
- return this.shadowRoot.querySelector('input[name=releaseGoodNo]')
122
- }
123
-
124
120
  get scannable() {
125
121
  return this._selectedTaskStatus && this._selectedTaskStatus === WORKSHEET_STATUS.EXECUTING.value
126
122
  }
@@ -335,7 +331,8 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
335
331
  <show-ro-list-popup
336
332
  .releaseOrders=${this.releaseOrders}
337
333
  @ro-selected=${e => {
338
- this._fetchItemList(e.detail.name)
334
+ this._selectedReleaseGood = e.detail.ro
335
+ this._fetchItemList(this._selectedReleaseGood.name)
339
336
  }}
340
337
  ></show-ro-list-popup>
341
338
  `,
@@ -417,27 +414,26 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
417
414
  }
418
415
 
419
416
  async _sorting(e) {
420
- if (e.keyCode === 13) {
421
- e.preventDefault()
422
- try {
423
- await this._validateSorting()
424
-
425
- let response
426
- if (this._enableProductScanning) {
427
- response = await this.scanProductSorting()
428
- } else {
429
- response = await this.commonSorting()
430
- }
417
+ if (e.keyCode !== 13) return
418
+ e.preventDefault()
419
+ try {
420
+ this._validateSorting()
431
421
 
432
- if (!response.errors) {
433
- if (this._enableProductScanning) this.productBarcodeInput.value = ''
434
- else this.sortingQtyInput.value = ''
422
+ let response
423
+ if (this._enableProductScanning) {
424
+ response = await this.scanProductSorting()
425
+ } else {
426
+ response = await this.commonSorting()
427
+ }
435
428
 
436
- this._fetchItemList(this.releaseGoodNoInput.value)
437
- }
438
- } catch (e) {
439
- this._showToast(e)
429
+ if (!response.errors) {
430
+ if (this._enableProductScanning) this.productBarcodeInput.value = ''
431
+ else this.sortingQtyInput.value = ''
432
+
433
+ this._fetchItemList(this._selectedReleaseGood.name)
440
434
  }
435
+ } catch (e) {
436
+ this._showToast(e)
441
437
  }
442
438
  }
443
439
 
@@ -450,7 +446,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
450
446
  `,
451
447
  variables: {
452
448
  taskNo: this.taskNo,
453
- releaseGoodNo: this.releaseGoodNoInput.value,
449
+ releaseGoodNo: this._selectedReleaseGood.name,
454
450
  productId: this._selectedOrderInventory?.product.id,
455
451
  sortingQty: parseFloat(this.sortingQtyInput.value)
456
452
  }
@@ -466,7 +462,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
466
462
  `,
467
463
  variables: {
468
464
  taskNo: this.taskNo,
469
- releaseGoodNo: this.releaseGoodNoInput.value,
465
+ releaseGoodNo: this._selectedReleaseGood.name,
470
466
  productBarcode: this.productBarcodeInput.value.trim()
471
467
  }
472
468
  })
@@ -498,7 +494,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
498
494
  }
499
495
  `,
500
496
  variables: {
501
- releaseGoodNo: this.releaseGoodNoInput.value
497
+ releaseGoodNo: this._selectedReleaseGood.name
502
498
  }
503
499
  })
504
500
  if (!response.errors) {
@@ -247,7 +247,7 @@ class PopupCombinationSets extends localize(i18next)(LitElement) {
247
247
  }
248
248
  }
249
249
  `,
250
- variables: { id: reverseKittingOrder.id, patch: { issue } }
250
+ variables: { id: reverseKittingOrder.id, patch: { issue, cuFlag: 'M' } }
251
251
  })
252
252
 
253
253
  if (!response.errors) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.0.36",
3
+ "version": "4.0.37",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -41,7 +41,7 @@
41
41
  "docker:run": "docker run --platform linux/amd64 -p 4000:3000 hatiolab/operato-wms:latest"
42
42
  },
43
43
  "dependencies": {
44
- "@operato/ghost-print": "^0.3.16",
44
+ "@operato/ghost-print": "^0.3.17",
45
45
  "@operato/scene-chartjs": "^0.1.2",
46
46
  "@operato/scene-clock": "^0.1.2",
47
47
  "@operato/scene-clone": "^0.1.2",
@@ -55,58 +55,58 @@
55
55
  "@operato/scene-tab": "^0.1.2",
56
56
  "@operato/scene-table": "^0.1.2",
57
57
  "@operato/scene-wheel-sorter": "^0.1.2",
58
- "@things-factory/apptool-ui": "^4.0.36",
59
- "@things-factory/attachment-ui": "^4.0.36",
60
- "@things-factory/auth-ui": "^4.0.36",
61
- "@things-factory/barcode-ui": "^4.0.36",
62
- "@things-factory/biz-ui": "^4.0.36",
63
- "@things-factory/board-service": "^4.0.36",
64
- "@things-factory/board-ui": "^4.0.36",
65
- "@things-factory/code-ui": "^4.0.36",
66
- "@things-factory/context-ui": "^4.0.36",
67
- "@things-factory/export-ui": "^4.0.36",
68
- "@things-factory/export-ui-csv": "^4.0.36",
69
- "@things-factory/export-ui-excel": "^4.0.36",
70
- "@things-factory/fav-base": "^4.0.36",
71
- "@things-factory/form-ui": "^4.0.36",
72
- "@things-factory/grist-ui": "^4.0.36",
73
- "@things-factory/help": "^4.0.36",
74
- "@things-factory/i18n-ui": "^4.0.36",
75
- "@things-factory/id-rule-base": "^4.0.36",
76
- "@things-factory/import-ui": "^4.0.36",
77
- "@things-factory/import-ui-excel": "^4.0.36",
78
- "@things-factory/menu-ui": "^4.0.36",
79
- "@things-factory/more-ui": "^4.0.36",
80
- "@things-factory/notification": "^4.0.36",
81
- "@things-factory/pdf": "^4.0.36",
82
- "@things-factory/print-proxy-service": "^4.0.36",
83
- "@things-factory/print-service": "^4.0.36",
84
- "@things-factory/print-ui": "^4.0.36",
85
- "@things-factory/product-base": "^4.0.36",
86
- "@things-factory/resource-ui": "^4.0.36",
87
- "@things-factory/sales-ui": "^4.0.36",
88
- "@things-factory/scene-data-transform": "^4.0.36",
89
- "@things-factory/scene-excel": "^4.0.36",
90
- "@things-factory/scene-firebase": "^4.0.36",
91
- "@things-factory/scene-form": "^4.0.36",
92
- "@things-factory/scene-google-map": "^4.0.36",
93
- "@things-factory/scene-graphql": "^4.0.36",
58
+ "@things-factory/apptool-ui": "^4.0.37",
59
+ "@things-factory/attachment-ui": "^4.0.37",
60
+ "@things-factory/auth-ui": "^4.0.37",
61
+ "@things-factory/barcode-ui": "^4.0.37",
62
+ "@things-factory/biz-ui": "^4.0.37",
63
+ "@things-factory/board-service": "^4.0.37",
64
+ "@things-factory/board-ui": "^4.0.37",
65
+ "@things-factory/code-ui": "^4.0.37",
66
+ "@things-factory/context-ui": "^4.0.37",
67
+ "@things-factory/export-ui": "^4.0.37",
68
+ "@things-factory/export-ui-csv": "^4.0.37",
69
+ "@things-factory/export-ui-excel": "^4.0.37",
70
+ "@things-factory/fav-base": "^4.0.37",
71
+ "@things-factory/form-ui": "^4.0.37",
72
+ "@things-factory/grist-ui": "^4.0.37",
73
+ "@things-factory/help": "^4.0.37",
74
+ "@things-factory/i18n-ui": "^4.0.37",
75
+ "@things-factory/id-rule-base": "^4.0.37",
76
+ "@things-factory/import-ui": "^4.0.37",
77
+ "@things-factory/import-ui-excel": "^4.0.37",
78
+ "@things-factory/menu-ui": "^4.0.37",
79
+ "@things-factory/more-ui": "^4.0.37",
80
+ "@things-factory/notification": "^4.0.37",
81
+ "@things-factory/pdf": "^4.0.37",
82
+ "@things-factory/print-proxy-service": "^4.0.37",
83
+ "@things-factory/print-service": "^4.0.37",
84
+ "@things-factory/print-ui": "^4.0.37",
85
+ "@things-factory/product-base": "^4.0.37",
86
+ "@things-factory/resource-ui": "^4.0.37",
87
+ "@things-factory/sales-ui": "^4.0.37",
88
+ "@things-factory/scene-data-transform": "^4.0.37",
89
+ "@things-factory/scene-excel": "^4.0.37",
90
+ "@things-factory/scene-firebase": "^4.0.37",
91
+ "@things-factory/scene-form": "^4.0.37",
92
+ "@things-factory/scene-google-map": "^4.0.37",
93
+ "@things-factory/scene-graphql": "^4.0.37",
94
94
  "@things-factory/scene-half-roundrect": "^4.0.9",
95
- "@things-factory/scene-label": "^4.0.36",
96
- "@things-factory/scene-marker": "^4.0.36",
97
- "@things-factory/scene-mqtt": "^4.0.36",
98
- "@things-factory/scene-news-ticker": "^4.0.36",
99
- "@things-factory/scene-restful": "^4.0.36",
100
- "@things-factory/scene-visualizer": "^4.0.36",
101
- "@things-factory/setting-ui": "^4.0.36",
102
- "@things-factory/system-ui": "^4.0.36",
103
- "@things-factory/transport-base": "^4.0.36",
104
- "@things-factory/tutorial-ui": "^4.0.36",
105
- "@things-factory/warehouse-base": "^4.0.36",
106
- "@things-factory/worksheet-base": "^4.0.36"
95
+ "@things-factory/scene-label": "^4.0.37",
96
+ "@things-factory/scene-marker": "^4.0.37",
97
+ "@things-factory/scene-mqtt": "^4.0.37",
98
+ "@things-factory/scene-news-ticker": "^4.0.37",
99
+ "@things-factory/scene-restful": "^4.0.37",
100
+ "@things-factory/scene-visualizer": "^4.0.37",
101
+ "@things-factory/setting-ui": "^4.0.37",
102
+ "@things-factory/system-ui": "^4.0.37",
103
+ "@things-factory/transport-base": "^4.0.37",
104
+ "@things-factory/tutorial-ui": "^4.0.37",
105
+ "@things-factory/warehouse-base": "^4.0.37",
106
+ "@things-factory/worksheet-base": "^4.0.37"
107
107
  },
108
108
  "devDependencies": {
109
- "@things-factory/builder": "^4.0.36"
109
+ "@things-factory/builder": "^4.0.37"
110
110
  },
111
- "gitHead": "132ab9f8af8c34f73bcd81a9776769a6929e13ee"
111
+ "gitHead": "7abd5ee06f7329c7fbb0c305f7b075a990bc2c18"
112
112
  }
@@ -33,6 +33,7 @@
33
33
  "button.create": "create",
34
34
  "button.delete_all": "delete all",
35
35
  "button.delete": "delete",
36
+ "button.disable": "disable",
36
37
  "button.dispatch": "dispatch",
37
38
  "button.done": "done",
38
39
  "button.download": "download",
@@ -780,7 +781,6 @@
780
781
  "label.picking_type": "picking type",
781
782
  "label.picking": "picking",
782
783
  "label.pickup_date": "pickup date",
783
- "label.plastic_pallet": "plastic pallet",
784
784
  "label.please_select_a_container_size": "please select a container size",
785
785
  "label.please_select_an_item": "please select an item",
786
786
  "label.please_select_template_type": "please select template type",
@@ -898,7 +898,7 @@
898
898
  "label.total_tracking_no": "total tracking no",
899
899
  "label.total_uom_value": "total uom value",
900
900
  "label.total": "total",
901
- "label.tracking_no": "tracking no",
901
+ "label.tracking_no": "tracking no.",
902
902
  "label.transfer_inventory": "transfer inventory",
903
903
  "label.transfer_qty": "transfer qty",
904
904
  "label.transfer": "transfer",
@@ -1090,6 +1090,7 @@
1090
1090
  "text.goods_received_note_has_been_received": "GRN has been marked received",
1091
1091
  "text.goods_received_note_has_been_sent_successfully": "GRN has been sent successfully",
1092
1092
  "text.incomplete_container_information": "incomplete container information",
1093
+ "text.incorrect_product_barcode": "incorrect product barcode",
1093
1094
  "text.info_delete_successfully": "info delete successfully",
1094
1095
  "text.info_update_successfully": "info update successfully",
1095
1096
  "text.initialise_logistics": "initialise logistics",
@@ -1114,6 +1115,7 @@
1114
1115
  "text.invalid_quantity_input": "invalid quantity input",
1115
1116
  "text.invalid_release_date": "invalid release date",
1116
1117
  "text.invalid_release_qty": "invalid release qty",
1118
+ "text.invalid_return_location": "invalid return location",
1117
1119
  "text.invalid_value_in_list": "invalid value in list",
1118
1120
  "text.invalid_vas_setting": "invalid VAS setting",
1119
1121
  "text.invalid_x_input": "invalid {state.x} input",
@@ -1157,8 +1159,8 @@
1157
1159
  "text.no_serial_number_selected": "no serial number selected",
1158
1160
  "text.not_a_reusable_pallet": "not a reusable pallet",
1159
1161
  "text.not_found_in_putaway_list": "not found in putaway list",
1162
+ "text.now_using_normal_pallet": "now using normal pallet",
1160
1163
  "text.now_using_reusable_pallet": "now using reusable pallet",
1161
- "text.now_using_wooden_pallet": "now using wooden pallet",
1162
1164
  "text.offline": "offline",
1163
1165
  "text.online": "online",
1164
1166
  "text.optional": "optional",
@@ -1254,7 +1256,6 @@
1254
1256
  "text.reverse_kitting_order_confirmed": "reverse kitting order confirmed",
1255
1257
  "text.reverse_kitting_order_created": "reverse kitting order created",
1256
1258
  "text.reverse_kitting_order_deleted": "reverse kitting order deleted",
1257
- "text.incorrect_product_barcode": "incorrect product barcode",
1258
1259
  "text.reverse_kitting_order": "reverse kitting order",
1259
1260
  "text.scan_product_barcode": "scan product barcode",
1260
1261
  "text.select_a_delivery_type": "select a delivery type",
@@ -1331,7 +1332,7 @@
1331
1332
  "text.uom_value_cannot_be_divided_completely": "uom value cannot be divided completely",
1332
1333
  "text.update_arrival_notice_details": "update arrival notice details",
1333
1334
  "text.update_release_order_details": "update release order details",
1334
- "text.use_wooden_pallet": "use wooden pallet",
1335
+ "text.use_normal_pallet": "use normal pallet",
1335
1336
  "text.vas_has_been_completed": "vas has been completed",
1336
1337
  "text.vas_is_completed": "vas is completed",
1337
1338
  "text.vas_is_not_completed_yet": "vas is not completed yet",
@@ -1857,11 +1857,12 @@
1857
1857
  "title.worksheet_vas": "부가서비스 작업지시서",
1858
1858
  "title.worksheet": "작업지시서",
1859
1859
  "vas_order_created": "부가서비스주문 생성됨",
1860
- "label.plastic_pallet": "[ko] plastic pallet",
1861
1860
  "label.reusable_pallet_id": "[ko] plastic pallet id",
1862
1861
  "text.not_a_reusable_pallet": "[ko] not a reusable pallet",
1863
1862
  "text.now_using_reusable_pallet": "[ko] now using reusable pallet",
1864
- "text.now_using_wooden_pallet": "[ko] now using wooden pallet",
1863
+ "text.now_using_normal_pallet": "[ko] now using normal pallet",
1865
1864
  "text.reusable_pallet_id_empty": "[ko] plastic pallet id is empty",
1866
- "text.use_wooden_pallet": "[ko] use wooden pallet"
1865
+ "text.use_normal_pallet": "[ko] use normal pallet",
1866
+ "text.invalid_return_location": "[ko] invalid return location",
1867
+ "button.disable": "[ko] disable"
1867
1868
  }
@@ -1727,11 +1727,12 @@
1727
1727
  "title.worksheet_vas": "VAS worksheet",
1728
1728
  "title.worksheet": "lembaran kerja",
1729
1729
  "vas_order_created": "pesanan value added service telah dicipta",
1730
- "label.plastic_pallet": "[ms] plastic pallet",
1731
1730
  "label.reusable_pallet_id": "[ms] plastic pallet id",
1732
1731
  "text.not_a_reusable_pallet": "[ms] not a reusable pallet",
1733
1732
  "text.now_using_reusable_pallet": "[ms] now using reusable pallet",
1734
- "text.now_using_wooden_pallet": "[ms] now using wooden pallet",
1733
+ "text.now_using_normal_pallet": "[ms] now using normal pallet",
1735
1734
  "text.reusable_pallet_id_empty": "[ms] plastic pallet id is empty",
1736
- "text.use_wooden_pallet": "[ms] use wooden pallet"
1735
+ "text.invalid_return_location": "[ms] invalid return location",
1736
+ "text.use_normal_pallet": "[ms] use normal pallet",
1737
+ "button.disable": "[ms] disable"
1737
1738
  }
@@ -1677,11 +1677,12 @@
1677
1677
  "title.worksheet_vas": "worksheet vas",
1678
1678
  "title.worksheet": "worksheet",
1679
1679
  "vas_order_created": "vas order created",
1680
- "label.plastic_pallet": "[zh] plastic pallet",
1681
1680
  "label.reusable_pallet_id": "[zh] plastic pallet id",
1682
1681
  "text.not_a_reusable_pallet": "[zh] not a reusable pallet",
1683
1682
  "text.now_using_reusable_pallet": "[zh] now using reusable pallet",
1684
- "text.now_using_wooden_pallet": "[zh] now using wooden pallet",
1683
+ "text.now_using_normal_pallet": "[zh] now using normal pallet",
1685
1684
  "text.reusable_pallet_id_empty": "[zh] plastic pallet id is empty",
1686
- "text.use_wooden_pallet": "[zh] use wooden pallet"
1685
+ "text.invalid_return_location": "[zh] invalid return location",
1686
+ "text.use_normal_pallet": "[zh] use normal pallet",
1687
+ "button.disable": "[zh] disable"
1687
1688
  }
@@ -1,73 +0,0 @@
1
- module.exports = {
2
- useVirtualHostBasedDomain: false,
3
- ormconfig: {
4
- name: 'default',
5
- type: 'postgres',
6
- host: 'operato-instance-1.cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
7
- database: 'operato',
8
- username: 'operato',
9
- password: 'abcd1234',
10
- port: 55432,
11
- synchronize: false,
12
- logging: true
13
- },
14
- reportApiUrl: 'http://localhost:8090/rest/report/show_html',
15
- storage: {
16
- type: 's3',
17
- accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
18
- secretAccessKey: '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',
19
- bucketName: 'opa-one'
20
- },
21
- port: 3000,
22
- uploads: 'uploads',
23
- attachmentsPath: 'attachments',
24
- SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
25
- logger: {
26
- file: {
27
- filename: 'logs/application-%DATE%.log',
28
- datePattern: 'YYYY-MM-DD-HH',
29
- zippedArchive: true,
30
- maxSize: '200m',
31
- maxFiles: '1m',
32
- level: 'info'
33
- }
34
- },
35
-
36
- email: {
37
- host: 'smtp.office365.com',
38
- port: 587,
39
- secure: false, // true for 465, false for other ports
40
- auth: {
41
- user: 'no-reply@hatiolab.com', // generated ethereal user
42
- pass: 'h@ti0LAB1008' // generated ethereal password
43
- },
44
- secureConnection: false,
45
- tls: {
46
- ciphers: 'SSLv3'
47
- }
48
- },
49
-
50
- notification: {
51
- fcm: {
52
- serviceAccount: {
53
- project_id: 'operato',
54
- private_key:
55
- '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0MAOmyPDJz/6AaTk\nkU/A+kLzAgMBAAECggEADQ5s2gtR53VSujk1V/Xe8e0Di99DwaWUj5w6YhcK7/wX\nPdQRN4Fw6RLeLjL7xeG/rCNSwzm6hKSrQJL5zLnWW7XbMdyQRk6jdmnVAEv3zACi\nFH9+eFK3e+Q214XfgWz/v4p/FZdRLCYni5VBNHcwyWxLLS/V1ynzB3KM1sDiTRmI\npcT7+uTtwrKgJq64sXtFE2pYrFxDdCiyqzkhv/2ed4YIowAjpKBbbcCDKeVxVkoz\nC1P4PAzs9EeUuKSWYrWaUjN17lqtRlYeT1ylR1PIJuWqd4cKfgoEgz+lHwRPDCEX\nAYbk3nofiJIPBhSfCHrXS755wK48mY8vMwFdfCPJeQKBgQDsz4tjYTHdat5A25n5\nekwMxZwFQ5OvMV4eulwZUDMypTAYSz1iB6sDlgwKDm5omZIfuneqCEIvrqxV/kx3\n5wV/DANHO3hYxdp/NV7rM23xmqlaKZhHQbDono1Fm/LP6DEmJiD7N2eFKsXYcPpR\nSAIdCv0X3zkDQ4zRi51yJlCXzQKBgQDpufJBxCoXngiQJ2j14lWVAeOOdQ6zh5Ip\nBcDwF0X67cNSN3Wl40bS4yLFdolhEAyj5m0WPuYYXpjzhHhZ0W3V3ItdBkrmwIvy\nWOWu26qN0ZbwxVS2qVpHuj6iHWJKHuDZZUkFtJg3BeeBSOUHSA8TvjnA0xd83xeb\n8ZJasWoFvwKBgQDFs/gQ/gIdcq0exLfluh5nw0qgcmyHpNWJHdjqITS9IX/nqFkU\n0IYLtmdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
56
- client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
57
- },
58
- appConfig: {
59
- apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
60
- projectId: 'operato',
61
- messagingSenderId: 79537064975,
62
- appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
63
- },
64
- serverKey:
65
- 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
66
- },
67
- vapidKey: {
68
- subject: 'mailto:heartyoh@hatiolab.com',
69
- publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
70
- privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
71
- }
72
- }
73
- }
@@ -1,113 +0,0 @@
1
- module.exports = {
2
- useVirtualHostBasedDomain: false,
3
-
4
- ormconfig: {
5
- name: 'default',
6
-
7
- type: 'postgres',
8
-
9
- host: 'operato-instance-1.cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
10
-
11
- database: 'operato',
12
-
13
- username: 'operato',
14
-
15
- password: 'abcd1234',
16
-
17
- port: 55432,
18
-
19
- synchronize: false,
20
-
21
- logging: true
22
- },
23
-
24
- reportApiUrl: 'http://localhost:8090/rest/report/show_html',
25
-
26
- storage: {
27
- type: 's3',
28
-
29
- accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
30
-
31
- secretAccessKey: 'AuDAgmODf9EJNB24OveRhTSLV/OJy6IFFoRxe8k2',
32
-
33
- bucketName: 'opa-one'
34
- },
35
-
36
- port: 3000,
37
-
38
- uploads: 'uploads',
39
-
40
- attachmentsPath: 'attachments',
41
-
42
- SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
43
-
44
- logger: {
45
- file: {
46
- filename: 'logs/application-%DATE%.log',
47
-
48
- datePattern: 'YYYY-MM-DD-HH',
49
-
50
- zippedArchive: true,
51
-
52
- maxSize: '200m',
53
-
54
- maxFiles: '1m',
55
-
56
- level: 'info'
57
- }
58
- },
59
-
60
- email: {
61
- host: 'smtp.office365.com',
62
-
63
- port: 587,
64
-
65
- secure: false, // true for 465, false for other ports
66
-
67
- auth: {
68
- user: 'no-reply@hatiolab.com', // generated ethereal user
69
-
70
- pass: 'h@ti0LAB1008' // generated ethereal password
71
- },
72
-
73
- secureConnection: false,
74
-
75
- tls: {
76
- ciphers: 'SSLv3'
77
- }
78
- },
79
-
80
- notification: {
81
- fcm: {
82
- serviceAccount: {
83
- project_id: 'operato',
84
-
85
- private_key:
86
- '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0MAOmyPDJz/6AaTk\nkU/A+kLzAgMBAAECggEADQ5s2gtR53VSujk1V/Xe8e0Di99DwaWUj5w6YhcK7/wX\nPdQRN4Fw6RLeLjL7xeG/rCNSwzm6hKSrQJL5zLnWW7XbMdyQRk6jdmnVAEv3zACi\nFH9+eFK3e+Q214XfgWz/v4p/FZdRLCYni5VBNHcwyWxLLS/V1ynzB3KM1sDiTRmI\npcT7+uTtwrKgJq64sXtFE2pYrFxDdCiyqzkhv/2ed4YIowAjpKBbbcCDKeVxVkoz\nC1P4PAzs9EeUuKSWYrWaUjN17lqtRlYeT1ylR1PIJuWqd4cKfgoEgz+lHwRPDCEX\nAYbk3nofiJIPBhSfCHrXS755wK48mY8vMwFdfCPJeQKBgQDsz4tjYTHdat5A25n5\nekwMxZwFQ5OvMV4eulwZUDMypTAYSz1iB6sDlgwKDm5omZIfuneqCEIvrqxV/kx3\n5wV/DANHO3hYxdp/NV7rM23xmqlaKZhHQbDono1Fm/LP6DEmJiD7N2eFKsXYcPpR\nSAIdCv0X3zkDQ4zRi51yJlCXzQKBgQDpufJBxCoXngiQJ2j14lWVAeOOdQ6zh5Ip\nBcDwF0X67cNSN3Wl40bS4yLFdolhEAyj5m0WPuYYXpjzhHhZ0W3V3ItdBkrmwIvy\nWOWu26qN0ZbwxVS2qVpHuj6iHWJKHuDZZUkFtJg3BeeBSOUHSA8TvjnA0xd83xeb\n8ZJasWoFvwKBgQDFs/gQ/gIdcq0exLfluh5nw0qgcmyHpNWJHdjqITS9IX/nqFkU\n0IYLtmdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
87
-
88
- client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
89
- },
90
-
91
- appConfig: {
92
- apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
93
-
94
- projectId: 'operato',
95
-
96
- messagingSenderId: 79537064975,
97
-
98
- appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
99
- },
100
-
101
- serverKey:
102
- 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
103
- },
104
-
105
- vapidKey: {
106
- subject: 'mailto:heartyoh@hatiolab.com',
107
-
108
- publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
109
-
110
- privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
111
- }
112
- }
113
- }