@things-factory/operato-wms 3.8.23 → 3.8.27

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.
@@ -1,16 +1,20 @@
1
- import { MultiColumnFormStyles } from '@things-factory/form-ui'
2
- import { CommonButtonStyles } from '@things-factory/styles'
3
1
  import '@things-factory/grist-ui'
2
+ import '../../components/attachment-viewer'
3
+ import '../../components/popup-note'
4
+ import '../../components/vas-templates'
5
+ import '@things-factory/warehouse-ui'
6
+
7
+ import gql from 'graphql-tag'
8
+ import { css, html } from 'lit-element'
9
+
10
+ import { MultiColumnFormStyles } from '@things-factory/form-ui'
4
11
  import { getRenderer } from '@things-factory/grist-ui'
5
12
  import { i18next, localize } from '@things-factory/i18n-base'
6
13
  import { openPopup } from '@things-factory/layout-base'
7
14
  import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
8
- import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
9
- import gql from 'graphql-tag'
10
- import { css, html } from 'lit-element'
11
- import '../../components/attachment-viewer'
12
- import '../../components/popup-note'
13
- import '../../components/vas-templates'
15
+ import { CommonButtonStyles } from '@things-factory/styles'
16
+ import { isMobileDevice } from '@things-factory/utils'
17
+
14
18
  import {
15
19
  ORDER_STATUS,
16
20
  VAS_BATCH_AND_PRODUCT_TYPE,
@@ -18,7 +22,6 @@ import {
18
22
  VAS_ETC_TYPE,
19
23
  VAS_PRODUCT_TYPE
20
24
  } from '../../constants'
21
- import { BufferLocationSelector } from '@things-factory/warehouse-ui'
22
25
 
23
26
  class AssignBufferLocation extends localize(i18next)(PageView) {
24
27
  static get properties() {
@@ -432,6 +435,12 @@ class AssignBufferLocation extends localize(i18next)(PageView) {
432
435
  refNo2
433
436
  refNo3
434
437
  importCargo
438
+ purchaseOrder {
439
+ bufferLocation {
440
+ id
441
+ name
442
+ }
443
+ }
435
444
  attachment {
436
445
  id
437
446
  name
@@ -504,7 +513,13 @@ class AssignBufferLocation extends localize(i18next)(PageView) {
504
513
 
505
514
  if (!response.errors) {
506
515
  const { arrivalNotice } = response.data
507
- const { orderProducts, orderVass } = arrivalNotice
516
+ const { orderProducts, orderVass, purchaseOrder } = arrivalNotice
517
+
518
+ if (purchaseOrder) {
519
+ const bufferLocation = purchaseOrder.bufferLocation
520
+ this.bufferLocationField.value = bufferLocation?.name
521
+ this.bufferLocationField.setAttribute('location-id', bufferLocation.id)
522
+ }
508
523
 
509
524
  this.orderBizplace = arrivalNotice.bizplace
510
525
  this._hasContainer = arrivalNotice.containerNo ? true : false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "3.8.23",
3
+ "version": "3.8.27",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -46,7 +46,7 @@
46
46
  "@things-factory/attachment-ui": "^3.8.0",
47
47
  "@things-factory/auth-ui": "^3.8.0",
48
48
  "@things-factory/barcode-ui": "^3.8.0",
49
- "@things-factory/biz-ui": "^3.8.8",
49
+ "@things-factory/biz-ui": "^3.8.26",
50
50
  "@things-factory/board-service": "^3.8.0",
51
51
  "@things-factory/board-ui": "^3.8.0",
52
52
  "@things-factory/code-ui": "^3.8.0",
@@ -69,9 +69,9 @@
69
69
  "@things-factory/print-proxy-service": "^3.8.0",
70
70
  "@things-factory/print-service": "^3.8.0",
71
71
  "@things-factory/print-ui": "^3.8.0",
72
- "@things-factory/product-base": "^3.8.9",
72
+ "@things-factory/product-base": "^3.8.26",
73
73
  "@things-factory/resource-ui": "^3.8.0",
74
- "@things-factory/sales-ui": "^3.8.23",
74
+ "@things-factory/sales-ui": "^3.8.27",
75
75
  "@things-factory/scene-chartjs": "^3.7.5",
76
76
  "@things-factory/scene-clock": "^3.7.5",
77
77
  "@things-factory/scene-clone": "^3.7.5",
@@ -100,13 +100,13 @@
100
100
  "@things-factory/scene-wheel-sorter": "^3.7.5",
101
101
  "@things-factory/setting-ui": "^3.8.19",
102
102
  "@things-factory/system-ui": "^3.8.0",
103
- "@things-factory/transport-base": "^3.8.0",
103
+ "@things-factory/transport-base": "^3.8.26",
104
104
  "@things-factory/tutorial-ui": "^3.8.0",
105
- "@things-factory/warehouse-base": "^3.8.23",
106
- "@things-factory/worksheet-base": "^3.8.23"
105
+ "@things-factory/warehouse-base": "^3.8.27",
106
+ "@things-factory/worksheet-base": "^3.8.27"
107
107
  },
108
108
  "devDependencies": {
109
109
  "@things-factory/builder": "^3.7.5"
110
110
  },
111
- "gitHead": "13d86eb25cc3bd591064b5c126569fc35333357e"
111
+ "gitHead": "6e1de7441570bf9d6f42324f7d1c96e42881b46e"
112
112
  }