@things-factory/operato-wms 4.3.792 → 4.3.794

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.
@@ -258,16 +258,20 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
258
258
  constructor() {
259
259
  super()
260
260
  this._enableLotIdInput = false
261
+ this._isValidating = true
261
262
  }
262
263
 
263
264
  async firstUpdated() {
264
265
  this._ganConfig = this._config
266
+ await this.updateComplete
267
+ await this.dataGrist.updateComplete
268
+ this.dataGrist.showSpinner()
265
269
  this._enableLotIdInput = await fetchSettingRule('enable-lot-id-input')
266
270
  await this._getValidatedArrivalNoticeItems(this.records, this.bizplaceId)
267
271
  }
268
272
 
269
273
  updated(changedProps) {
270
- if (changedProps.has('records')) {
274
+ if (changedProps.has('records') && !this._isValidating) {
271
275
  this.dataGrist.data = {
272
276
  records: this.records,
273
277
  total: this.records.length
@@ -320,6 +324,7 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
320
324
  variables: { rawArrivalNotices, bizplaceId }
321
325
  })
322
326
  if (!response.errors) {
327
+ this._isValidating = false
323
328
  this.records = response.data.validateBulkArrivalNotices
324
329
  this.records.map(record => {
325
330
  if (record.unitPrice) {
@@ -329,6 +334,8 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
329
334
  }
330
335
  } catch (e) {
331
336
  console.error(e)
337
+ } finally {
338
+ this.dataGrist.hideSpinner()
332
339
  }
333
340
  }
334
341
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.792",
3
+ "version": "4.3.794",
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.767",
92
92
  "@things-factory/product-base": "^4.3.791",
93
93
  "@things-factory/resource-ui": "^4.3.790",
94
- "@things-factory/sales-ui": "^4.3.792",
94
+ "@things-factory/sales-ui": "^4.3.794",
95
95
  "@things-factory/scene-data-transform": "^4.3.767",
96
96
  "@things-factory/scene-excel": "^4.3.767",
97
97
  "@things-factory/scene-firebase": "^4.3.767",
@@ -108,7 +108,7 @@
108
108
  "@things-factory/transport-base": "^4.3.767",
109
109
  "@things-factory/tutorial-ui": "^4.3.767",
110
110
  "@things-factory/warehouse-base": "^4.3.791",
111
- "@things-factory/worksheet-base": "^4.3.792"
111
+ "@things-factory/worksheet-base": "^4.3.794"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.767",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "7d9aa6f94e1427df6c6830089c862fd840fedaf3"
120
+ "gitHead": "cbcc57e2ef7188213c3e64c7e54d977f4f58b3f2"
121
121
  }