@things-factory/operato-wms 4.3.339 → 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.
|
@@ -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
|
-
|
|
13
|
-
|
|
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.
|
|
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
|
|
1588
|
+
let currentData = (data?.records || data).find(record => record.name === this._selectedOrderInventory.name)
|
|
1587
1589
|
|
|
1588
|
-
if (currentData
|
|
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
|
-
|
|
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.
|
|
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
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
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.
|
|
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.
|
|
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": "
|
|
120
|
+
"gitHead": "d4232dc2a4c5dede0df1b75bd2aa462577c03578"
|
|
121
121
|
}
|