@things-factory/operato-wms 4.3.341 → 4.3.343
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.
- package/client/pages/constants/replenishment-config.js +50 -1
- package/client/pages/constants/replenishment.js +4 -4
- package/client/pages/inbound/putaway-product.js +91 -9
- package/client/pages/inbound/putaway-replenishment-inventory-popup.js +138 -0
- package/client/pages/inventory/inventory-adjustment.js +46 -4
- package/client/pages/inventory/onhand-inventory.js +28 -0
- package/client/pages/order/draft-release-good/draft-release-good-list.js +16 -0
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +36 -2
- package/client/pages/outbound/single-outbound-worksheet.js +16 -15
- package/client/pages/replenishment/replenishment.js +131 -6
- package/client/pages/report/outbound-order-details-report.js +17 -0
- package/client/pages/report/replenishment-report.js +361 -0
- package/client/route.js +4 -0
- package/config.development.js +16 -15
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +6 -3
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
- package/dist-server/graphql/types/reports/outbound-order-details-report.js +1 -0
- package/dist-server/graphql/types/reports/outbound-order-details-report.js.map +1 -1
- package/package.json +5 -5
- package/server/graphql/resolvers/reports/outbound-order-details-report.ts +6 -3
- package/server/graphql/types/reports/outbound-order-details-report.ts +1 -0
- package/things-factory.config.js +4 -0
- package/translations/en.json +6 -0
- package/translations/ko.json +6 -0
- package/translations/ms.json +6 -0
- package/translations/zh.json +6 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { i18next
|
|
1
|
+
import { i18next } from '@things-factory/i18n-base'
|
|
2
2
|
import { navigate } from '@things-factory/shell'
|
|
3
|
+
|
|
3
4
|
export const REPLENISHMENT_CONFIG = {
|
|
4
5
|
CREATE: {
|
|
5
6
|
list: {
|
|
@@ -23,6 +24,12 @@ export const REPLENISHMENT_CONFIG = {
|
|
|
23
24
|
type: 'object',
|
|
24
25
|
name: 'bizplace',
|
|
25
26
|
header: i18next.t('field.company'),
|
|
27
|
+
imex: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
header: i18next.t('field.company'),
|
|
30
|
+
key: 'bizplace.name',
|
|
31
|
+
width: 30
|
|
32
|
+
},
|
|
26
33
|
label: true,
|
|
27
34
|
sortable: true,
|
|
28
35
|
width: 250
|
|
@@ -31,42 +38,84 @@ export const REPLENISHMENT_CONFIG = {
|
|
|
31
38
|
type: 'string',
|
|
32
39
|
name: 'productSKU',
|
|
33
40
|
header: i18next.t('field.sku'),
|
|
41
|
+
imex: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
key: 'productSKU',
|
|
44
|
+
header: i18next.t('field.sku'),
|
|
45
|
+
width: 30
|
|
46
|
+
},
|
|
34
47
|
width: 200
|
|
35
48
|
},
|
|
36
49
|
{
|
|
37
50
|
type: 'string',
|
|
38
51
|
name: 'packingType',
|
|
39
52
|
header: i18next.t('field.packing_type'),
|
|
53
|
+
imex: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
key: 'packingType',
|
|
56
|
+
header: i18next.t('field.packing_type'),
|
|
57
|
+
width: 30
|
|
58
|
+
},
|
|
40
59
|
width: 150
|
|
41
60
|
},
|
|
42
61
|
{
|
|
43
62
|
type: 'string',
|
|
44
63
|
name: 'packingSize',
|
|
45
64
|
header: i18next.t('field.packing_size'),
|
|
65
|
+
imex: {
|
|
66
|
+
type: 'number',
|
|
67
|
+
key: 'packingSize',
|
|
68
|
+
header: i18next.t('field.packing_size'),
|
|
69
|
+
width: 30
|
|
70
|
+
},
|
|
46
71
|
width: 150
|
|
47
72
|
},
|
|
48
73
|
{
|
|
49
74
|
type: 'integer',
|
|
50
75
|
name: 'pickingShelfQty',
|
|
51
76
|
header: i18next.t('field.picking_shelf_qty'),
|
|
77
|
+
imex: {
|
|
78
|
+
type: 'number',
|
|
79
|
+
key: 'pickingShelfQty',
|
|
80
|
+
header: i18next.t('field.picking_shelf_qty'),
|
|
81
|
+
width: 30
|
|
82
|
+
},
|
|
52
83
|
width: 150
|
|
53
84
|
},
|
|
54
85
|
{
|
|
55
86
|
type: 'integer',
|
|
56
87
|
name: 'storageQty',
|
|
57
88
|
header: i18next.t('field.storage_qty'),
|
|
89
|
+
imex: {
|
|
90
|
+
type: 'number',
|
|
91
|
+
key: 'storageQty',
|
|
92
|
+
header: i18next.t('field.storage_qty'),
|
|
93
|
+
width: 30
|
|
94
|
+
},
|
|
58
95
|
width: 150
|
|
59
96
|
},
|
|
60
97
|
{
|
|
61
98
|
type: 'integer',
|
|
62
99
|
name: 'minQty',
|
|
63
100
|
header: i18next.t('field.min_qty'),
|
|
101
|
+
imex: {
|
|
102
|
+
type: 'number',
|
|
103
|
+
key: 'minQty',
|
|
104
|
+
header: i18next.t('field.min_qty'),
|
|
105
|
+
width: 30
|
|
106
|
+
},
|
|
64
107
|
width: 150
|
|
65
108
|
},
|
|
66
109
|
{
|
|
67
110
|
type: 'integer',
|
|
68
111
|
name: 'transferQty',
|
|
69
112
|
header: i18next.t('field.transfer_qty'),
|
|
113
|
+
imex: {
|
|
114
|
+
type: 'number',
|
|
115
|
+
key: 'transferQty',
|
|
116
|
+
header: i18next.t('field.transfer_qty'),
|
|
117
|
+
width: 30
|
|
118
|
+
},
|
|
70
119
|
record: { editable: true },
|
|
71
120
|
width: 150
|
|
72
121
|
}
|
|
@@ -5,18 +5,18 @@ export const REPLENISHMENT_STATUS = {
|
|
|
5
5
|
},
|
|
6
6
|
READY_TO_PICK: {
|
|
7
7
|
name: 'ready to pick',
|
|
8
|
-
value: '
|
|
8
|
+
value: 'READY_TO_PICK'
|
|
9
9
|
},
|
|
10
10
|
PICKING: {
|
|
11
11
|
name: 'picking',
|
|
12
|
-
value: '
|
|
12
|
+
value: 'PICKING'
|
|
13
13
|
},
|
|
14
14
|
PUTAWAY: {
|
|
15
15
|
name: 'putaway',
|
|
16
|
-
value: '
|
|
16
|
+
value: 'PUTTING_AWAY'
|
|
17
17
|
},
|
|
18
18
|
CANCELLED: {
|
|
19
19
|
name: 'cancelled',
|
|
20
|
-
value: '
|
|
20
|
+
value: 'CANCELLED'
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -4,21 +4,41 @@ import './undo-putaway-popup'
|
|
|
4
4
|
import './select-location-popup'
|
|
5
5
|
import '../components/worksheet-information-popup'
|
|
6
6
|
import './putaway-same-carton-popup'
|
|
7
|
+
import './putaway-replenishment-inventory-popup'
|
|
7
8
|
|
|
8
9
|
import gql from 'graphql-tag'
|
|
9
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
css,
|
|
12
|
+
html
|
|
13
|
+
} from 'lit-element'
|
|
10
14
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
11
15
|
|
|
12
|
-
import { sleep } from '@operato/utils'
|
|
13
16
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
14
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
i18next,
|
|
19
|
+
localize
|
|
20
|
+
} from '@things-factory/i18n-base'
|
|
15
21
|
import { openPopup } from '@things-factory/layout-base'
|
|
16
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
client,
|
|
24
|
+
CustomAlert,
|
|
25
|
+
PageView,
|
|
26
|
+
store
|
|
27
|
+
} from '@things-factory/shell'
|
|
17
28
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
18
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
isMobileDevice,
|
|
31
|
+
sleep
|
|
32
|
+
} from '@things-factory/utils'
|
|
19
33
|
|
|
20
34
|
import { fetchSettingRule } from '../../fetch-setting-value'
|
|
21
|
-
import {
|
|
35
|
+
import {
|
|
36
|
+
ARRIVAL_NOTICE,
|
|
37
|
+
CUSTOMER_RETURN,
|
|
38
|
+
REPLENISHMENT,
|
|
39
|
+
WAREHOUSE_RETURN,
|
|
40
|
+
WORKSHEET_STATUS
|
|
41
|
+
} from '../constants'
|
|
22
42
|
|
|
23
43
|
const OPERATION_TYPE = {
|
|
24
44
|
PUTAWAY: 'putaway',
|
|
@@ -44,6 +64,8 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
44
64
|
_locationType: String,
|
|
45
65
|
_operationType: String,
|
|
46
66
|
_orderNo: String,
|
|
67
|
+
_cartonId: String,
|
|
68
|
+
_replenishmentId: String,
|
|
47
69
|
_productName: String,
|
|
48
70
|
_productSku: String,
|
|
49
71
|
_selectedTaskStatus: String,
|
|
@@ -158,6 +180,10 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
158
180
|
return this.shadowRoot.querySelector('input[name=transferQty]')
|
|
159
181
|
}
|
|
160
182
|
|
|
183
|
+
get actualQtyInput() {
|
|
184
|
+
return this.shadowRoot.querySelector('input[name=actualQty]')
|
|
185
|
+
}
|
|
186
|
+
|
|
161
187
|
get toPalletInput() {
|
|
162
188
|
return this.shadowRoot.querySelector('barcode-scanable-input[name=toPalletId]').shadowRoot.querySelector('input')
|
|
163
189
|
}
|
|
@@ -275,6 +301,22 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
275
301
|
</select>
|
|
276
302
|
`
|
|
277
303
|
: ''}
|
|
304
|
+
${this.refOrderType === AVAIL_ORDER_TYPES.REPLENISHMENT.value
|
|
305
|
+
? html`
|
|
306
|
+
<label>${i18next.t('label.actual_qty')}</label>
|
|
307
|
+
<input
|
|
308
|
+
type="number"
|
|
309
|
+
min="1"
|
|
310
|
+
name="actualQty"
|
|
311
|
+
@keypress="${async e => {
|
|
312
|
+
if (e.keyCode === 13) {
|
|
313
|
+
e.preventDefault()
|
|
314
|
+
await this._putaway(e)
|
|
315
|
+
}
|
|
316
|
+
}}"
|
|
317
|
+
/>
|
|
318
|
+
`
|
|
319
|
+
: html``}
|
|
278
320
|
${this._operationType === OPERATION_TYPE.TRANSFER
|
|
279
321
|
? html` <label>${i18next.t('label.to_lot_barcode')}</label>
|
|
280
322
|
<barcode-scanable-input
|
|
@@ -397,6 +439,16 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
397
439
|
list: { fields: ['completed', 'sku', 'product', 'palletId', 'cartonId', 'expirationDate', 'batchId', 'qty'] },
|
|
398
440
|
columns: [
|
|
399
441
|
{ type: 'gutter', gutterName: 'sequence' },
|
|
442
|
+
{
|
|
443
|
+
type: 'gutter',
|
|
444
|
+
gutterName: 'button',
|
|
445
|
+
icon: 'reorder',
|
|
446
|
+
handlers: {
|
|
447
|
+
click: (columns, data, column, record, rowIndex, _orderNo) => {
|
|
448
|
+
this.openReplenishmentPutawayInventoriesPopup(this._replenishmentId, record.cartonId)
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
400
452
|
{
|
|
401
453
|
type: 'boolean',
|
|
402
454
|
name: 'completed',
|
|
@@ -774,6 +826,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
774
826
|
worksheetInfo {
|
|
775
827
|
status
|
|
776
828
|
replenishment {
|
|
829
|
+
id
|
|
777
830
|
name
|
|
778
831
|
}
|
|
779
832
|
}
|
|
@@ -790,6 +843,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
790
843
|
description
|
|
791
844
|
minInboundShelfLife
|
|
792
845
|
}
|
|
846
|
+
actualPackQty
|
|
793
847
|
qty
|
|
794
848
|
status
|
|
795
849
|
description
|
|
@@ -812,6 +866,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
812
866
|
this._worksheetInfo = worksheetInfo
|
|
813
867
|
|
|
814
868
|
if (worksheetInfo?.replenishment) {
|
|
869
|
+
this._replenishmentId = worksheetInfo.replenishment.id
|
|
815
870
|
this._orderNo = worksheetInfo.replenishment.name
|
|
816
871
|
} else {
|
|
817
872
|
this._orderNo = orderNo
|
|
@@ -831,7 +886,8 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
831
886
|
reusablePalletName: reusablePalletName,
|
|
832
887
|
sku: record.product.sku,
|
|
833
888
|
minInboundShelfLife: record.product.minInboundShelfLife,
|
|
834
|
-
expirationDate: record.expirationDate
|
|
889
|
+
expirationDate: record.expirationDate,
|
|
890
|
+
qty: record.actualPackQty + ' / ' + record.qty
|
|
835
891
|
}
|
|
836
892
|
})
|
|
837
893
|
.sort((a, b) => {
|
|
@@ -1123,20 +1179,32 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1123
1179
|
return (this._scanning = false)
|
|
1124
1180
|
}
|
|
1125
1181
|
|
|
1182
|
+
const actualQtyValue = this.actualQtyInput ? this.actualQtyInput.value.trim() : ''
|
|
1183
|
+
if (!actualQtyValue || isNaN(parseInt(actualQtyValue))) {
|
|
1184
|
+
throw new Error(i18next.t('text.actual_qty_is_invalid'))
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1126
1187
|
const response = await client.mutate({
|
|
1127
1188
|
mutation: gql`
|
|
1128
|
-
mutation replenishmentPutaway(
|
|
1189
|
+
mutation replenishmentPutaway(
|
|
1190
|
+
$worksheetDetailName: [String]!
|
|
1191
|
+
$cartonId: String
|
|
1192
|
+
$toLocation: String!
|
|
1193
|
+
$actualQty: Int!
|
|
1194
|
+
) {
|
|
1129
1195
|
replenishmentPutaway(
|
|
1130
1196
|
worksheetDetailName: $worksheetDetailName
|
|
1131
1197
|
cartonId: $cartonId
|
|
1132
1198
|
toLocation: $toLocation
|
|
1199
|
+
actualQty: $actualQty
|
|
1133
1200
|
)
|
|
1134
1201
|
}
|
|
1135
1202
|
`,
|
|
1136
1203
|
variables: {
|
|
1137
1204
|
worksheetDetailName: worksheetDetailNames,
|
|
1138
1205
|
cartonId: this._enableCartonLabel ? this.getInput(this.cartonInput).value : null,
|
|
1139
|
-
toLocation: this.locationInput ? this.locationInput.value : this._selectedLocation
|
|
1206
|
+
toLocation: this.locationInput ? this.locationInput.value : this._selectedLocation,
|
|
1207
|
+
actualQty: this.actualQtyInput ? parseInt(this.actualQtyInput.value) : null
|
|
1140
1208
|
}
|
|
1141
1209
|
})
|
|
1142
1210
|
|
|
@@ -1169,6 +1237,20 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1169
1237
|
}
|
|
1170
1238
|
}
|
|
1171
1239
|
|
|
1240
|
+
openReplenishmentPutawayInventoriesPopup(replenishmentId, cartonId) {
|
|
1241
|
+
openPopup(
|
|
1242
|
+
html`
|
|
1243
|
+
<putaway-replenishment-inventory-popup .replenishmentId="${replenishmentId}" .cartonId="${cartonId}">
|
|
1244
|
+
</putaway-replenishment-inventory-popup>
|
|
1245
|
+
`,
|
|
1246
|
+
{
|
|
1247
|
+
backdrop: true,
|
|
1248
|
+
size: 'large',
|
|
1249
|
+
title: `${i18next.t('title.putaway_inventories')}`
|
|
1250
|
+
}
|
|
1251
|
+
)
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1172
1254
|
async _transfer() {
|
|
1173
1255
|
try {
|
|
1174
1256
|
this._validateTransfer()
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import '@things-factory/form-ui'
|
|
2
|
+
import '@things-factory/grist-ui'
|
|
3
|
+
import '@things-factory/import-ui'
|
|
4
|
+
|
|
5
|
+
import gql from 'graphql-tag'
|
|
6
|
+
import {
|
|
7
|
+
css,
|
|
8
|
+
html,
|
|
9
|
+
LitElement
|
|
10
|
+
} from 'lit-element'
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
i18next,
|
|
14
|
+
localize
|
|
15
|
+
} from '@things-factory/i18n-base'
|
|
16
|
+
import { client } from '@things-factory/shell'
|
|
17
|
+
import { ScrollbarStyles } from '@things-factory/styles'
|
|
18
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
19
|
+
|
|
20
|
+
class PutawayReplenishmentInventoryPopup extends localize(i18next)(LitElement) {
|
|
21
|
+
static get styles() {
|
|
22
|
+
return [
|
|
23
|
+
ScrollbarStyles,
|
|
24
|
+
css`
|
|
25
|
+
:host {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
background-color: white;
|
|
30
|
+
}
|
|
31
|
+
search-form {
|
|
32
|
+
overflow: visible;
|
|
33
|
+
}
|
|
34
|
+
data-grist {
|
|
35
|
+
overflow-y: auto;
|
|
36
|
+
flex: 1;
|
|
37
|
+
}
|
|
38
|
+
[danger] {
|
|
39
|
+
--mdc--theme--primary: var(--mdc-danger-button-primary-color);
|
|
40
|
+
}
|
|
41
|
+
`
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static get properties() {
|
|
46
|
+
return {
|
|
47
|
+
config: Object
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
constructor() {
|
|
52
|
+
super()
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
render() {
|
|
56
|
+
return html`
|
|
57
|
+
<data-grist
|
|
58
|
+
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
59
|
+
.config=${this.config}
|
|
60
|
+
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
61
|
+
></data-grist>
|
|
62
|
+
`
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async firstUpdated() {
|
|
66
|
+
this.config = {
|
|
67
|
+
columns: [
|
|
68
|
+
{
|
|
69
|
+
type: 'string',
|
|
70
|
+
name: 'productSKU',
|
|
71
|
+
header: i18next.t('field.sku'),
|
|
72
|
+
record: { editable: false },
|
|
73
|
+
width: 200
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
type: 'string',
|
|
77
|
+
name: 'cartonId',
|
|
78
|
+
header: i18next.t('field.carton_id'),
|
|
79
|
+
record: { editable: false },
|
|
80
|
+
width: 200
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
type: 'object',
|
|
84
|
+
name: 'location',
|
|
85
|
+
header: i18next.t('field.location'),
|
|
86
|
+
record: { editable: false },
|
|
87
|
+
width: 200
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: 'number',
|
|
91
|
+
name: 'qty',
|
|
92
|
+
header: i18next.t('field.transfer_qty'),
|
|
93
|
+
record: { editable: false },
|
|
94
|
+
width: 200
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
async fetchHandler({}) {
|
|
101
|
+
const replenishmentId = this.replenishmentId
|
|
102
|
+
const cartonId = this.cartonId
|
|
103
|
+
|
|
104
|
+
const response = await client.query({
|
|
105
|
+
query: gql`
|
|
106
|
+
query putawayReplenishmentInventories($replenishmentId: String!, $cartonId: String!) {
|
|
107
|
+
putawayReplenishmentInventories(replenishmentId: $replenishmentId, cartonId: $cartonId) {
|
|
108
|
+
items {
|
|
109
|
+
productSKU
|
|
110
|
+
cartonId
|
|
111
|
+
qty
|
|
112
|
+
location {
|
|
113
|
+
name
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
total
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`,
|
|
120
|
+
variables: {
|
|
121
|
+
replenishmentId: replenishmentId,
|
|
122
|
+
cartonId: cartonId
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
if (!response.errors) {
|
|
127
|
+
return {
|
|
128
|
+
records: response.data.putawayReplenishmentInventories.items || [],
|
|
129
|
+
total: response.data.putawayReplenishmentInventories.total || 0
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
get dataGrist() {
|
|
135
|
+
return this.shadowRoot.querySelector('data-grist')
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
window.customElements.define('putaway-replenishment-inventory-popup', PutawayReplenishmentInventoryPopup)
|
|
@@ -7,14 +7,28 @@ import '../inventory/serial-number-list-popup'
|
|
|
7
7
|
import '../components/select-product-popup'
|
|
8
8
|
|
|
9
9
|
import gql from 'graphql-tag'
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
css,
|
|
12
|
+
html
|
|
13
|
+
} from 'lit-element'
|
|
11
14
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
12
15
|
|
|
13
16
|
import { DirectPrinter } from '@things-factory/barcode-base'
|
|
14
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
i18next,
|
|
19
|
+
localize
|
|
20
|
+
} from '@things-factory/i18n-base'
|
|
15
21
|
import { openPopup } from '@things-factory/layout-base'
|
|
16
|
-
import {
|
|
17
|
-
|
|
22
|
+
import {
|
|
23
|
+
client,
|
|
24
|
+
CustomAlert,
|
|
25
|
+
PageView,
|
|
26
|
+
store
|
|
27
|
+
} from '@things-factory/shell'
|
|
28
|
+
import {
|
|
29
|
+
CommonButtonStyles,
|
|
30
|
+
ScrollbarStyles
|
|
31
|
+
} from '@things-factory/styles'
|
|
18
32
|
import { isMobileDevice } from '@things-factory/utils'
|
|
19
33
|
|
|
20
34
|
import { fetchPageSettings } from '../../util/index'
|
|
@@ -398,6 +412,32 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
398
412
|
},
|
|
399
413
|
width: 80
|
|
400
414
|
},
|
|
415
|
+
{
|
|
416
|
+
type: 'integer',
|
|
417
|
+
name: 'transferQty',
|
|
418
|
+
header: i18next.t('field.transfer_qty'),
|
|
419
|
+
sortable: true,
|
|
420
|
+
imex: {
|
|
421
|
+
header: i18next.t('field.transfer_qty'),
|
|
422
|
+
key: 'tranferQty',
|
|
423
|
+
width: 10,
|
|
424
|
+
type: 'integer'
|
|
425
|
+
},
|
|
426
|
+
width: 80
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
type: 'float',
|
|
430
|
+
name: 'transferUomValue',
|
|
431
|
+
header: i18next.t('field.transfer_uom_value'),
|
|
432
|
+
sortable: true,
|
|
433
|
+
imex: {
|
|
434
|
+
header: i18next.t('field.transfer_uom_value'),
|
|
435
|
+
key: 'tranferUomValue',
|
|
436
|
+
width: 10,
|
|
437
|
+
type: 'float'
|
|
438
|
+
},
|
|
439
|
+
width: 80
|
|
440
|
+
},
|
|
401
441
|
{
|
|
402
442
|
type: 'string',
|
|
403
443
|
name: 'serialNumbers',
|
|
@@ -623,6 +663,8 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
623
663
|
manufactureDate
|
|
624
664
|
serialNumbers
|
|
625
665
|
obsolete
|
|
666
|
+
transferQty
|
|
667
|
+
transferUomValue
|
|
626
668
|
bizplace {
|
|
627
669
|
id
|
|
628
670
|
name
|
|
@@ -178,6 +178,32 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
178
178
|
header: i18next.t('field.total_uom_value'),
|
|
179
179
|
width: 110
|
|
180
180
|
},
|
|
181
|
+
{
|
|
182
|
+
type: 'integer',
|
|
183
|
+
name: 'transferQty',
|
|
184
|
+
header: i18next.t('field.transfer_qty'),
|
|
185
|
+
sortable: true,
|
|
186
|
+
imex: {
|
|
187
|
+
header: i18next.t('field.transfer_qty'),
|
|
188
|
+
key: 'tranferQty',
|
|
189
|
+
width: 10,
|
|
190
|
+
type: 'integer'
|
|
191
|
+
},
|
|
192
|
+
width: 110
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
type: 'float',
|
|
196
|
+
name: 'transferUomValue',
|
|
197
|
+
header: i18next.t('field.transfer_uom_value'),
|
|
198
|
+
sortable: true,
|
|
199
|
+
imex: {
|
|
200
|
+
header: i18next.t('field.transfer_uom_value'),
|
|
201
|
+
key: 'tranferUomValue',
|
|
202
|
+
width: 10,
|
|
203
|
+
type: 'float'
|
|
204
|
+
},
|
|
205
|
+
width: 110
|
|
206
|
+
},
|
|
181
207
|
{
|
|
182
208
|
type: 'number',
|
|
183
209
|
name: 'nonLoadedQty',
|
|
@@ -443,6 +469,8 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
443
469
|
remainQty
|
|
444
470
|
nonLoadedQty
|
|
445
471
|
nonLoadedUomValue
|
|
472
|
+
transferQty
|
|
473
|
+
transferUomValue
|
|
446
474
|
warehouse {
|
|
447
475
|
id
|
|
448
476
|
name
|
|
@@ -173,6 +173,13 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
173
173
|
searchOper: 'gte'
|
|
174
174
|
},
|
|
175
175
|
options: [{ value: '' }, { name: 'Single Item', value: 1 }, { name: 'Multiple Item', value: 2 }]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
label: i18next.t('field.priority_delivery'),
|
|
179
|
+
name: 'priorityDelivery',
|
|
180
|
+
type: 'checkbox',
|
|
181
|
+
props: { searchOper: 'eq' },
|
|
182
|
+
attrs: ['indeterminate']
|
|
176
183
|
}
|
|
177
184
|
]
|
|
178
185
|
|
|
@@ -193,6 +200,14 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
193
200
|
}
|
|
194
201
|
}
|
|
195
202
|
},
|
|
203
|
+
{
|
|
204
|
+
type: 'boolean',
|
|
205
|
+
name: 'priorityDelivery',
|
|
206
|
+
header: i18next.t('field.priority_delivery'),
|
|
207
|
+
imex: { header: i18next.t('field.priority_delivery'), key: 'priorityDelivery', width: 20, type: 'string' },
|
|
208
|
+
sortable: false,
|
|
209
|
+
width: 120
|
|
210
|
+
},
|
|
196
211
|
{
|
|
197
212
|
type: 'string',
|
|
198
213
|
name: 'name',
|
|
@@ -332,6 +347,7 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
332
347
|
refNo2
|
|
333
348
|
refNo3
|
|
334
349
|
type
|
|
350
|
+
priorityDelivery
|
|
335
351
|
exportOption
|
|
336
352
|
releaseDate
|
|
337
353
|
status
|
|
@@ -244,7 +244,7 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
244
244
|
props: {
|
|
245
245
|
searchOper: 'gte'
|
|
246
246
|
},
|
|
247
|
-
options: [{ value: '' }, { name: 'Single Item', value: 1 }, { name: 'Multiple Item', value: 2 }]
|
|
247
|
+
options: [{ value: '' }, { name: 'Single Item', value: 1 }, { name: 'Multiple Item', value: 2 }]
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
label: i18next.t('field.product_info'),
|
|
@@ -252,6 +252,15 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
252
252
|
type: 'text',
|
|
253
253
|
props: { searchOper: 'i_like' }
|
|
254
254
|
},
|
|
255
|
+
{
|
|
256
|
+
label: i18next.t('field.platform'),
|
|
257
|
+
name: 'platformCode',
|
|
258
|
+
type: 'select',
|
|
259
|
+
props: {
|
|
260
|
+
searchOper: 'eq'
|
|
261
|
+
},
|
|
262
|
+
options: [{ value: '' }, { name: 'Lazada', value: 'LZD' }, { name: 'Shopee', value: 'SHP' }, { name: 'Shopify', value: 'SPF' }, { name: 'Tiktok', value: 'TTK' }]
|
|
263
|
+
},
|
|
255
264
|
{
|
|
256
265
|
label: i18next.t('field.order_remark'),
|
|
257
266
|
name: 'orderRemark',
|
|
@@ -272,6 +281,13 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
272
281
|
type: 'checkbox',
|
|
273
282
|
props: { searchOper: 'eq' },
|
|
274
283
|
attrs: ['indeterminate']
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
label: i18next.t('field.priority_delivery'),
|
|
287
|
+
name: 'priorityDelivery',
|
|
288
|
+
type: 'checkbox',
|
|
289
|
+
props: { searchOper: 'eq' },
|
|
290
|
+
attrs: ['indeterminate']
|
|
275
291
|
}
|
|
276
292
|
]
|
|
277
293
|
|
|
@@ -313,6 +329,14 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
313
329
|
sortable: true,
|
|
314
330
|
width: 100
|
|
315
331
|
},
|
|
332
|
+
{
|
|
333
|
+
type: 'boolean',
|
|
334
|
+
name: 'priorityDelivery',
|
|
335
|
+
header: i18next.t('field.priority_delivery'),
|
|
336
|
+
imex: { header: i18next.t('field.priority_delivery'), key: 'priorityDelivery', width: 20, type: 'string' },
|
|
337
|
+
sortable: true,
|
|
338
|
+
width: 120
|
|
339
|
+
},
|
|
316
340
|
{
|
|
317
341
|
type: 'string',
|
|
318
342
|
name: 'name',
|
|
@@ -377,6 +401,14 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
377
401
|
sortable: true,
|
|
378
402
|
width: 120
|
|
379
403
|
},
|
|
404
|
+
{
|
|
405
|
+
type: 'string',
|
|
406
|
+
name: 'platformCode',
|
|
407
|
+
header: i18next.t('field.platform'),
|
|
408
|
+
imex: { header: i18next.t('field.platform'), key: 'platformCode', width: 25, type: 'string' },
|
|
409
|
+
sortable: true,
|
|
410
|
+
width: 120
|
|
411
|
+
},
|
|
380
412
|
{
|
|
381
413
|
type: 'date',
|
|
382
414
|
name: 'releaseDate',
|
|
@@ -575,6 +607,8 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
575
607
|
airwayBill
|
|
576
608
|
trackingNo
|
|
577
609
|
lmdOption
|
|
610
|
+
priorityDelivery
|
|
611
|
+
platformCode
|
|
578
612
|
}
|
|
579
613
|
total
|
|
580
614
|
}
|
|
@@ -930,4 +964,4 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
930
964
|
}
|
|
931
965
|
}
|
|
932
966
|
|
|
933
|
-
window.customElements.define('b2c-order-requests', B2cOrderRequests)
|
|
967
|
+
window.customElements.define('b2c-order-requests', B2cOrderRequests)
|