@things-factory/operato-wms 4.3.466 → 4.3.467

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.
@@ -62,6 +62,16 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
62
62
  padding-bottom: 1px;
63
63
  color: var(--search-form-icon-color);
64
64
  }
65
+
66
+ .checkbox-container {
67
+ display: flex;
68
+ align-items: center;
69
+ gap: 10px; /* Adjust gap as needed */
70
+ }
71
+
72
+ .checkbox-container label {
73
+ margin-left: 5px; /* Adjust margin as needed */
74
+ }
65
75
  `
66
76
  ]
67
77
  }
@@ -71,6 +81,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
71
81
  config: Object,
72
82
  data: Object,
73
83
  partnerId: String,
84
+ refNoFilter: String,
74
85
  worksheetType: String,
75
86
  _binNumberList: Array,
76
87
  _searchFields: Array,
@@ -113,7 +124,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
113
124
  render() {
114
125
  return html`
115
126
  <div>
116
- <form class="multi-column-form" @keypress=${async e => this.dataGrist.fetch()}>
127
+ <form class="multi-column-form">
117
128
  ${this.worksheetType == 'merged'
118
129
  ? html`
119
130
  <label>${i18next.t('field.priority')}</label>
@@ -145,30 +156,47 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
145
156
  `
146
157
  : ''}
147
158
 
159
+ <label for="refNo">${i18next.t('field.ref_no')}</label>
148
160
  <input
149
- type="checkbox"
150
- checked
151
- id="withSku"
152
- name="withSku"
153
- @change="${e => {
154
- this._changeCheckbox()
161
+ type="text"
162
+ name="refNo"
163
+ @input="${e => {
164
+ this.refNoFilter = e.currentTarget.value
155
165
  }}"
166
+ @keypress="${e => {
167
+ if (e.key === 'Enter') {
168
+ this.dataGrist.fetch()
169
+ e.preventDefault()
170
+ }
171
+ }}"
172
+ }}
156
173
  />
157
- <label for="withSku">${i18next.t('field.sku')}</label>
158
-
159
- ${this._enableToteScanning
160
- ? html`
161
- <input
162
- type="checkbox"
163
- id="withTote"
164
- name="withTote"
165
- @change="${e => {
166
- this._changeCheckbox()
167
- }}"
168
- />
169
- <label for="withTote">${i18next.t('field.tote')}</label>
170
- `
171
- : ''}
174
+ <div class="checkbox-container">
175
+ <input
176
+ type="checkbox"
177
+ checked
178
+ id="withSku"
179
+ name="withSku"
180
+ @change="${e => {
181
+ this._changeCheckbox()
182
+ }}"
183
+ />
184
+ <label for="withSku">${i18next.t('field.sku')}</label>
185
+
186
+ ${this._enableToteScanning
187
+ ? html`
188
+ <input
189
+ type="checkbox"
190
+ id="withTote"
191
+ name="withTote"
192
+ @change="${e => {
193
+ this._changeCheckbox()
194
+ }}"
195
+ />
196
+ <label for="withTote">${i18next.t('field.tote')}</label>
197
+ `
198
+ : ''}
199
+ </div>
172
200
  </form>
173
201
  <mwc-icon id="search" @click=${e => this.dataGrist.fetch()} search>search</mwc-icon>
174
202
  </div>
@@ -294,6 +322,34 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
294
322
  header: i18next.t('field.ro'),
295
323
  sortable: true,
296
324
  width: 150
325
+ },
326
+ {
327
+ type: 'string',
328
+ name: 'refNo',
329
+ header: i18next.t('field.ref_no'),
330
+ sortable: true,
331
+ width: 150
332
+ },
333
+ {
334
+ type: 'string',
335
+ name: 'refNo2',
336
+ header: i18next.t('field.ref_no_2'),
337
+ sortable: true,
338
+ width: 150
339
+ },
340
+ {
341
+ type: 'string',
342
+ name: 'refNo3',
343
+ header: i18next.t('field.ref_no_3'),
344
+ sortable: true,
345
+ width: 150
346
+ },
347
+ {
348
+ type: 'string',
349
+ name: 'locationName',
350
+ header: i18next.t('field.location'),
351
+ sortable: false,
352
+ width: 150
297
353
  }
298
354
  )
299
355
 
@@ -339,6 +395,10 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
339
395
  filters.push({ name: 'withTote', operator: 'eq', value: true })
340
396
  }
341
397
 
398
+ if (this.refNoFilter) {
399
+ filters.push({ name: 'refNo', operator: 'ilike', value: this.refNoFilter })
400
+ }
401
+
342
402
  try {
343
403
  const response = await client.query({
344
404
  query: gql`
@@ -363,6 +423,11 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
363
423
  productName
364
424
  releaseQty
365
425
  releaseGoodName
426
+ releaseGood {
427
+ refNo
428
+ refNo2
429
+ refNo3
430
+ }
366
431
  productDetails {
367
432
  packingType
368
433
  packingSize
@@ -376,6 +441,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
376
441
  storeName
377
442
  stopId
378
443
  createdAt
444
+ locationName
379
445
  }
380
446
  total
381
447
  }
@@ -404,8 +470,11 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
404
470
  roName: itm.releaseGoodName,
405
471
  productSku: itm.productSKU,
406
472
  createdAt: createdAt,
407
- packingType: itm.productDetail.packingType,
408
- packingSize: itm.productDetail.packingSize
473
+ refNo: itm.releaseGood.refNo,
474
+ refNo2: itm.releaseGood.refNo2,
475
+ refNo3: itm.releaseGood.refNo3,
476
+ packingType: itm.toteNumber ? null : itm.productDetail.packingType,
477
+ packingSize: itm.toteNumber ? null : itm.productDetail.packingSize
409
478
  }
410
479
  }) || {}
411
480
  })
@@ -447,16 +516,17 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
447
516
  })
448
517
  } else {
449
518
  let index = 1
450
- for (var record of records) {
519
+ for (let record of records) {
451
520
  let max = record.releaseQty ? record.releaseQty / record.packingSize : 1
452
521
  for (let qty = 1; qty <= max; qty++) {
453
- var searchParams = new URLSearchParams()
522
+ let searchParams = new URLSearchParams()
454
523
 
455
524
  /* for pallet record mapping */
456
525
  searchParams.append('roName', record.roName)
457
526
  if (record?.binNumber) {
458
527
  searchParams.append('binNumber', record.binNumber)
459
528
  }
529
+ searchParams.append('locationName', record.locationName)
460
530
  if (!record?.toteNumber) {
461
531
  searchParams.append('qty', record.qty)
462
532
  searchParams.append('releaseQty', record.releaseQty)
@@ -486,7 +556,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
486
556
  throw `Error : Can't get label command from server (response: ${response.status})`
487
557
  }
488
558
 
489
- var command = await response.text()
559
+ let command = await response.text()
490
560
 
491
561
  if (!this.printer) {
492
562
  this.printer = new DirectPrinter()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.466",
3
+ "version": "4.3.467",
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.464",
94
+ "@things-factory/sales-ui": "^4.3.467",
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",
@@ -108,7 +108,7 @@
108
108
  "@things-factory/transport-base": "^4.3.452",
109
109
  "@things-factory/tutorial-ui": "^4.3.452",
110
110
  "@things-factory/warehouse-base": "^4.3.464",
111
- "@things-factory/worksheet-base": "^4.3.464"
111
+ "@things-factory/worksheet-base": "^4.3.467"
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": "19fbaedcf925c67961cc2a54dff1153e0a60105f"
120
+ "gitHead": "67d3750c4815bfe86d33121c2d3d34e9329e180a"
121
121
  }