@things-factory/operato-wms 4.3.337 → 4.3.341

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.
@@ -144,7 +144,7 @@ class InboundWorksheet extends localize(i18next)(PageView) {
144
144
  },
145
145
  {
146
146
  label: i18next.t('field.cross_docking'),
147
- name: 'crossDocking',
147
+ name: 'arrivalNoticeCrossDocking',
148
148
  type: 'checkbox',
149
149
  props: { searchOper: 'eq' },
150
150
  attrs: ['indeterminate']
@@ -241,7 +241,7 @@ class InboundWorksheet extends localize(i18next)(PageView) {
241
241
  },
242
242
  {
243
243
  type: 'boolean',
244
- name: 'crossDocking',
244
+ name: 'arrivalNoticeCrossDocking',
245
245
  header: i18next.t('field.cross_docking'),
246
246
  label: true,
247
247
  width: 100
@@ -377,7 +377,7 @@ class InboundWorksheet extends localize(i18next)(PageView) {
377
377
  return {
378
378
  ...item,
379
379
  arrivalRefNo: item.arrivalNotice.refNo || '',
380
- crossDocking: item.arrivalNotice.crossDocking
380
+ arrivalNoticeCrossDocking: item.arrivalNotice.crossDocking
381
381
  }
382
382
  }) || {}
383
383
  }
@@ -447,7 +447,7 @@ class InboundWorksheet extends localize(i18next)(PageView) {
447
447
  { header: i18next.t('field.order_no'), key: 'orderNo', width: 25, type: 'string' },
448
448
  { header: i18next.t('field.company'), key: 'bizplaceName', width: 25, type: 'string' },
449
449
  { header: i18next.t('field.ref_no'), key: 'arrivalRefNo', width: 25, type: 'string' },
450
- { header: i18next.t('field.cross_docking'), key: 'crossDocking', width: 30, type: 'string' },
450
+ { header: i18next.t('field.cross_docking'), key: 'arrivalNoticeCrossDocking', width: 30, type: 'string' },
451
451
  { header: i18next.t('field.type'), key: 'type', width: 25, type: 'string' },
452
452
  { header: i18next.t('field.status'), key: 'status', width: 25, type: 'string' },
453
453
  { header: i18next.t('field.created_at'), key: 'createdAt', width: 30, type: 'date' },
@@ -97,7 +97,7 @@ class InventoryCheckList extends localize(i18next)(PageView) {
97
97
  props: { searchOper: 'i_like' }
98
98
  },
99
99
  {
100
- name: 'executionDate',
100
+ name: 'inventoryCheckExecutionDate',
101
101
  label: i18next.t('field.execution_date'),
102
102
  type: 'date',
103
103
  props: { searchOper: 'eq' }
@@ -2,26 +2,12 @@ import '@things-factory/form-ui'
2
2
  import '@things-factory/grist-ui'
3
3
 
4
4
  import gql from 'graphql-tag'
5
- import {
6
- css,
7
- html
8
- } from 'lit-element'
5
+ import { css, html } from 'lit-element'
9
6
 
10
7
  import { GhostPrint } from '@operato/ghost-print'
11
- import {
12
- i18next,
13
- localize
14
- } from '@things-factory/i18n-base'
15
- import {
16
- client,
17
- CustomAlert,
18
- navigate,
19
- PageView
20
- } from '@things-factory/shell'
21
- import {
22
- CommonButtonStyles,
23
- ScrollbarStyles
24
- } from '@things-factory/styles'
8
+ import { i18next, localize } from '@things-factory/i18n-base'
9
+ import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
10
+ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
25
11
  import { isMobileDevice } from '@things-factory/utils'
26
12
 
27
13
  import { DRAFT_RELEASE_ORDER_STATUS } from '../../../constants'
@@ -111,11 +97,17 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
111
97
 
112
98
  this._searchFields = [
113
99
  {
114
- label: i18next.t('field.order_no'),
100
+ label: i18next.t('field.order_info'),
115
101
  name: 'name',
116
102
  type: 'text',
117
103
  props: { searchOper: 'i_like' }
118
104
  },
105
+ {
106
+ label: i18next.t('field.product_info'),
107
+ name: 'sku',
108
+ type: 'text',
109
+ props: { searchOper: 'i_like' }
110
+ },
119
111
  {
120
112
  label: i18next.t('field.company'),
121
113
  name: 'bizplaceId',
@@ -133,24 +125,6 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
133
125
  ],
134
126
  props: { searchOper: 'eq' }
135
127
  },
136
- {
137
- label: i18next.t('field.ref_no'),
138
- name: 'refNo',
139
- type: 'text',
140
- props: { searchOper: 'i_like' }
141
- },
142
- {
143
- label: i18next.t('field.ref_no_2'),
144
- name: 'refNo2',
145
- type: 'text',
146
- props: { searchOper: 'i_like' }
147
- },
148
- {
149
- label: i18next.t('field.ref_no_3'),
150
- name: 'refNo3',
151
- type: 'text',
152
- props: { searchOper: 'i_like' }
153
- },
154
128
  {
155
129
  label: i18next.t('field.status'),
156
130
  name: 'status',
@@ -199,12 +173,6 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
199
173
  searchOper: 'gte'
200
174
  },
201
175
  options: [{ value: '' }, { name: 'Single Item', value: 1 }, { name: 'Multiple Item', value: 2 }]
202
- },
203
- {
204
- label: i18next.t('field.sku'),
205
- name: 'sku',
206
- type: 'text',
207
- props: { searchOper: 'i_like' }
208
176
  }
209
177
  ]
210
178
 
@@ -545,10 +545,10 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
545
545
  `
546
546
  }
547
547
 
548
- pageUpdated(changes, lifecycle) {
548
+ async pageUpdated(changes, lifecycle) {
549
549
  if (this.active) {
550
550
  this.orderNo = lifecycle.params?.orderNo || null
551
- if (this.orderNo) this.autoFetchPickingTasks(this.orderNo)
551
+ if (this.orderNo) await this.autoFetchPickingTasks(this.orderNo)
552
552
  this._focusOnReleaseGoodNoInput()
553
553
  }
554
554
  }
@@ -1452,10 +1452,12 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1452
1452
  }
1453
1453
  }
1454
1454
 
1455
- autoFetchPickingTasks(orderNo) {
1455
+ async autoFetchPickingTasks(orderNo) {
1456
+ this._selectedOrderInventory = null
1456
1457
  this.releaseGoodNoInput.value = orderNo
1457
1458
  this.releaseGoodNo = this.releaseGoodNoInput.value
1458
- this.fetchAll(this.releaseGoodNo)
1459
+ await this.fetchAll(this.releaseGoodNo)
1460
+ this.completeHandler()
1459
1461
  }
1460
1462
 
1461
1463
  async fetchInventories(pickingRefNo) {
@@ -1583,9 +1585,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1583
1585
  if (!this._selectedOrderInventory) {
1584
1586
  this._selectedOrderInventory = data.records[0]
1585
1587
  } else {
1586
- let currentData = data.records.find(record => record.name === this._selectedOrderInventory.name)
1588
+ let currentData = (data?.records || data).find(record => record.name === this._selectedOrderInventory.name)
1587
1589
 
1588
- if (currentData.completed) {
1590
+ if (currentData?.completed) {
1589
1591
  if (this.cartonInput) this.cartonInput.value = ''
1590
1592
  if (this.palletInput) this.palletInput.value = ''
1591
1593
  let nextData = data.records.filter(rec => !rec.completed)
@@ -1766,7 +1768,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1766
1768
  )
1767
1769
 
1768
1770
  this._selectedOrderInventory = record
1769
- await this.updateSelectedItemProp(record)
1771
+ this.updateSelectedItemProp(record)
1770
1772
 
1771
1773
  if (record.pickedQty == record.releaseQty) {
1772
1774
  if (this._isCartonLabel) {
@@ -1906,7 +1908,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1906
1908
 
1907
1909
  this._isExecuting = true
1908
1910
 
1909
- try{
1911
+ try {
1910
1912
  let response
1911
1913
  switch (this.refPickingType) {
1912
1914
  case PICKING_TYPES.PICKING.value:
@@ -1961,10 +1963,10 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1961
1963
  this.updateContext()
1962
1964
  }
1963
1965
  }
1964
- }catch(e){
1966
+ } catch (e) {
1965
1967
  showToast(e)
1966
- } finally{
1967
- this._isExecuting= false
1968
+ } finally {
1969
+ this._isExecuting = false
1968
1970
  }
1969
1971
  }
1970
1972
 
@@ -117,13 +117,7 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
117
117
  this._searchFields = [
118
118
  {
119
119
  name: 'releaseGoodNo',
120
- label: i18next.t('field.release_good_no'),
121
- type: 'text',
122
- props: { searchOper: 'i_like' }
123
- },
124
- {
125
- name: 'releaseGoodRefNo',
126
- label: i18next.t('field.ref_no'),
120
+ label: i18next.t('field.order_info'),
127
121
  type: 'text',
128
122
  props: { searchOper: 'i_like' }
129
123
  },
@@ -192,25 +186,32 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
192
186
  },
193
187
  {
194
188
  label: i18next.t('field.cross_docking'),
195
- name: 'crossDocking',
189
+ name: 'releaseGoodCrossDocking',
196
190
  type: 'checkbox',
197
191
  props: { searchOper: 'eq' },
198
192
  attrs: ['indeterminate']
199
193
  },
200
194
  {
201
195
  label: i18next.t('field.transporter'),
202
- name: 'courierOption',
196
+ name: 'releaseGoodCourierOption',
203
197
  type: 'checkbox',
204
198
  props: { searchOper: 'eq' },
205
199
  attrs: ['indeterminate']
206
200
  },
207
201
  {
208
202
  label: i18next.t('field.packing'),
209
- name: 'packingOption',
203
+ name: 'releaseGoodPackingOption',
210
204
  type: 'checkbox',
211
205
  props: { searchOper: 'eq' },
212
206
  attrs: ['indeterminate']
213
- }
207
+ },
208
+ // {
209
+ // label: i18next.t('field.priority_delivery'),
210
+ // name: 'releaseGoodPriorityDelivery',
211
+ // type: 'checkbox',
212
+ // props: { searchOper: 'eq' },
213
+ // attrs: ['indeterminate']
214
+ // }
214
215
  ]
215
216
 
216
217
  this.config = {
@@ -265,25 +266,32 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
265
266
  },
266
267
  {
267
268
  type: 'boolean',
268
- name: 'crossDocking',
269
+ name: 'releaseGoodCrossDocking',
269
270
  header: i18next.t('field.cross_docking'),
270
- imex: { header: i18next.t('field.cross_docking'), key: 'crossDocking', width: 20, type: 'string' },
271
+ imex: { header: i18next.t('field.cross_docking'), key: 'releaseGoodCrossDocking', width: 20, type: 'string' },
271
272
  width: 100
272
273
  },
273
274
  {
274
275
  type: 'boolean',
275
- name: 'courierOption',
276
+ name: 'releaseGoodCourierOption',
276
277
  header: i18next.t('field.transporter'),
277
- imex: { header: i18next.t('field.transporter'), key: 'courierOption', width: 20, type: 'string' },
278
+ imex: { header: i18next.t('field.transporter'), key: 'releaseGoodCourierOption', width: 20, type: 'string' },
278
279
  width: 60
279
280
  },
280
281
  {
281
282
  type: 'boolean',
282
- name: 'packingOption',
283
+ name: 'releaseGoodPackingOption',
283
284
  header: i18next.t('field.packing'),
284
- imex: { header: i18next.t('field.packing'), key: 'packingOption', width: 20, type: 'string' },
285
+ imex: { header: i18next.t('field.packing'), key: 'releaseGoodPackingOption', width: 20, type: 'string' },
285
286
  width: 60
286
287
  },
288
+ // {
289
+ // type: 'boolean',
290
+ // name: 'releaseGoodPriorityDelivery',
291
+ // header: i18next.t('field.priority_delivery'),
292
+ // imex: { header: i18next.t('field.priority_delivery'), key: 'releaseGoodPriorityDelivery', width: 20, type: 'string' },
293
+ // width: 120
294
+ // },
287
295
  {
288
296
  type: 'object',
289
297
  name: 'bizplace',
@@ -448,9 +456,10 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
448
456
  return {
449
457
  ...item,
450
458
  releaseRefNo: item.releaseGood.refNo || '',
451
- crossDocking: item.releaseGood.crossDocking,
452
- courierOption: item.releaseGood.courierOption,
453
- packingOption: item.releaseGood.packingOption
459
+ releaseGoodCrossDocking: item.releaseGood.crossDocking,
460
+ releaseGoodCourierOption: item.releaseGood.courierOption,
461
+ releaseGoodPackingOption: item.releaseGood.packingOption,
462
+ // releaseGoodPriorityDelivery: item.releaseGood.priorityDelivery
454
463
  }
455
464
  }) || {}
456
465
  }
@@ -79,7 +79,7 @@ class VasWorksheetList extends localize(i18next)(PageView) {
79
79
 
80
80
  this._searchFields = [
81
81
  {
82
- name: 'name',
82
+ name: 'vasName',
83
83
  label: i18next.t('field.name'),
84
84
  type: 'text',
85
85
  props: { searchOper: 'i_like' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.337",
3
+ "version": "4.3.341",
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.281",
92
92
  "@things-factory/product-base": "^4.3.318",
93
93
  "@things-factory/resource-ui": "^4.3.281",
94
- "@things-factory/sales-ui": "^4.3.337",
94
+ "@things-factory/sales-ui": "^4.3.340",
95
95
  "@things-factory/scene-data-transform": "^4.3.281",
96
96
  "@things-factory/scene-excel": "^4.3.281",
97
97
  "@things-factory/scene-firebase": "^4.3.281",
@@ -108,7 +108,7 @@
108
108
  "@things-factory/transport-base": "^4.3.301",
109
109
  "@things-factory/tutorial-ui": "^4.3.281",
110
110
  "@things-factory/warehouse-base": "^4.3.337",
111
- "@things-factory/worksheet-base": "^4.3.337"
111
+ "@things-factory/worksheet-base": "^4.3.341"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.281",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "36f2c5ac99b11c9e056d4af7d26a6bd46ae89b6c"
120
+ "gitHead": "d4232dc2a4c5dede0df1b75bd2aa462577c03578"
121
121
  }