@things-factory/operato-wms 4.3.513 → 4.3.514
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/order.js +9 -1
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +4 -1
- package/client/pages/order/release-order/b2b/b2b-order-list.js +71 -10
- package/client/pages/order/release-order/release-order-detail.js +266 -80
- package/client/pages/order/vas-order/popup/proceed-edit-vas-popup.js +549 -0
- package/client/pages/order/vas-order/popup/select-vas-popup.js +5 -1
- package/client/pages/order/vas-order/popup/vas-changes-popup.js +370 -0
- package/client/pages/report/order-vas-report.js +28 -5
- package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js +1 -1
- package/dist-server/graphql/resolvers/reports/vas-report.js +40 -20
- package/dist-server/graphql/resolvers/reports/vas-report.js.map +1 -1
- package/dist-server/graphql/types/reports/vas-report.js +1 -0
- package/dist-server/graphql/types/reports/vas-report.js.map +1 -1
- package/helps/release-note.md +4 -4
- package/package.json +5 -5
- package/server/graphql/resolvers/dashboard/outbound-order-by-status.ts +1 -1
- package/server/graphql/resolvers/reports/vas-report.ts +44 -21
- package/server/graphql/types/reports/vas-report.ts +1 -0
- package/translations/en.json +24 -0
- package/translations/ko.json +24 -0
- package/translations/ms.json +24 -0
- package/translations/zh.json +24 -0
|
@@ -133,10 +133,18 @@ export const ORDER_INVENTORY_STATUS = {
|
|
|
133
133
|
|
|
134
134
|
export const ORDER_VAS_STATUS = {
|
|
135
135
|
PENDING: { name: 'vas_status_pending', value: 'PENDING' },
|
|
136
|
+
PENDING_RECEIVE: { name: 'vas_status_pending_receive', value: 'PENDING_RECEIVE' },
|
|
137
|
+
PENDING_APPROVE: { name: 'vas_status_pending_approve', value: 'PENDING_APPROVE'},
|
|
138
|
+
PENDING_CANCEL: { name: 'vas_status_pending_cancel', value: 'PENDING_CANCEL'},
|
|
136
139
|
PROCESSING: { name: 'vas_status_processing', value: 'PROCESSING' },
|
|
137
140
|
READY_TO_PROCESS: { name: 'vas_status_ready_to_process', value: 'READY_TO_PROCESS' },
|
|
138
141
|
DONE: { name: 'vas_status_done', value: 'DONE' },
|
|
139
|
-
TERMINATED: { name: 'vas_status_terminated', value: 'TERMINATED' }
|
|
142
|
+
TERMINATED: { name: 'vas_status_terminated', value: 'TERMINATED' },
|
|
143
|
+
REJECTED: { name: 'vas_status_rejected', value: 'REJECTED' },
|
|
144
|
+
CANCELLED: { name: 'vas_status_cancelled', value: 'CANCELLED' },
|
|
145
|
+
CHANGES: { name: 'vas_status_changes', value: 'CHANGES' },
|
|
146
|
+
NEW: { name: 'vas_status_new', value: 'NEW' },
|
|
147
|
+
REMOVED: { name: 'vas_status_removed', value: 'REMOVED' }
|
|
140
148
|
}
|
|
141
149
|
|
|
142
150
|
export const LOAD_TYPES = [
|
|
@@ -1055,6 +1055,9 @@ class DuplicateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
1055
1055
|
name
|
|
1056
1056
|
description
|
|
1057
1057
|
}
|
|
1058
|
+
productDetail {
|
|
1059
|
+
id
|
|
1060
|
+
}
|
|
1058
1061
|
remark
|
|
1059
1062
|
unitPrice
|
|
1060
1063
|
adjustedUnitPrice
|
|
@@ -1426,7 +1429,7 @@ class DuplicateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
1426
1429
|
batchId: record.batchId,
|
|
1427
1430
|
batchIdRef: record?.batchIdRef ? record.batchIdRef : null,
|
|
1428
1431
|
product: { id: record.product.id },
|
|
1429
|
-
productDetail: { id: record
|
|
1432
|
+
productDetail: { id: record?.productDetailId || record?.productDetail?.id },
|
|
1430
1433
|
packingType: record.packingType,
|
|
1431
1434
|
packingSize: record?.product?.packingSize ? record.product.packingSize : record.packingSize,
|
|
1432
1435
|
uomValue: record?.uomValue ? record.uomValue : 0,
|
|
@@ -4,16 +4,35 @@ import '../batch-picking-popup'
|
|
|
4
4
|
import '../../../outbound/generate-worksheet-popup'
|
|
5
5
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
css,
|
|
9
|
+
html
|
|
10
|
+
} from 'lit-element'
|
|
8
11
|
|
|
9
12
|
import { getCodeByName } from '@things-factory/code-base'
|
|
10
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
i18next,
|
|
15
|
+
localize
|
|
16
|
+
} from '@things-factory/i18n-base'
|
|
11
17
|
import { openPopup } from '@things-factory/layout-base'
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
import {
|
|
19
|
+
client,
|
|
20
|
+
navigate,
|
|
21
|
+
PageView
|
|
22
|
+
} from '@things-factory/shell'
|
|
23
|
+
import {
|
|
24
|
+
CommonButtonStyles,
|
|
25
|
+
ScrollbarStyles
|
|
26
|
+
} from '@things-factory/styles'
|
|
27
|
+
import {
|
|
28
|
+
isMobileDevice,
|
|
29
|
+
sleep
|
|
30
|
+
} from '@things-factory/utils'
|
|
31
|
+
|
|
32
|
+
import {
|
|
33
|
+
ORDER_STATUS,
|
|
34
|
+
ORDER_VAS_STATUS
|
|
35
|
+
} from '../../../constants'
|
|
17
36
|
|
|
18
37
|
class B2bOrderList extends localize(i18next)(PageView) {
|
|
19
38
|
static get styles() {
|
|
@@ -46,6 +65,7 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
46
65
|
_ownTransport: Boolean,
|
|
47
66
|
_exportOption: Boolean,
|
|
48
67
|
_routeId: Boolean,
|
|
68
|
+
vasStatus: String,
|
|
49
69
|
isUserBelongsDomain: Boolean
|
|
50
70
|
}
|
|
51
71
|
}
|
|
@@ -106,7 +126,11 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
106
126
|
|
|
107
127
|
const _orderStatus = _orderStatusReq.status == 'fulfilled' ? _orderStatusReq.value : []
|
|
108
128
|
const _bizplaces = _bizplacesReq.status == 'fulfilled' ? _bizplacesReq.value : []
|
|
109
|
-
|
|
129
|
+
const _excludedVasStatus = ['DONE', 'CHANGES', 'NEW', 'REMOVED']
|
|
130
|
+
const _orderVasStatus = Object.values(ORDER_VAS_STATUS)
|
|
131
|
+
.filter(status => !_excludedVasStatus.includes(status.value))
|
|
132
|
+
|
|
133
|
+
this._searchFields = [
|
|
110
134
|
{
|
|
111
135
|
label: i18next.t('field.order_info'),
|
|
112
136
|
name: 'name',
|
|
@@ -148,6 +172,18 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
148
172
|
],
|
|
149
173
|
props: { searchOper: 'eq' }
|
|
150
174
|
},
|
|
175
|
+
{
|
|
176
|
+
label: i18next.t('field.vas_status'),
|
|
177
|
+
name: 'vasStatus',
|
|
178
|
+
type: 'select',
|
|
179
|
+
options: [
|
|
180
|
+
{ value: '' },
|
|
181
|
+
..._orderVasStatus.map(status => {
|
|
182
|
+
return { name: i18next.t(`label.${status.name}`), value: status.value }
|
|
183
|
+
})
|
|
184
|
+
],
|
|
185
|
+
props: { searchOper: 'eq' }
|
|
186
|
+
},
|
|
151
187
|
{
|
|
152
188
|
label: i18next.t('field.product_info'),
|
|
153
189
|
name: 'sku',
|
|
@@ -215,6 +251,13 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
215
251
|
type: 'checkbox',
|
|
216
252
|
props: { searchOper: 'eq' },
|
|
217
253
|
attrs: ['indeterminate']
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
label: i18next.t('field.vas'),
|
|
257
|
+
name: 'hasVas',
|
|
258
|
+
type: 'checkbox',
|
|
259
|
+
props: { searchOper: 'eq' },
|
|
260
|
+
attrs: ['indeterminate']
|
|
218
261
|
}
|
|
219
262
|
]
|
|
220
263
|
|
|
@@ -353,6 +396,14 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
353
396
|
imex: { header: i18next.t('field.gan'), key: 'arrivalNotice.name', width: 30, type: 'string' },
|
|
354
397
|
width: 160
|
|
355
398
|
},
|
|
399
|
+
{
|
|
400
|
+
type: 'string',
|
|
401
|
+
name: 'vasStatus',
|
|
402
|
+
header: i18next.t('field.vas_status'),
|
|
403
|
+
imex: { header: i18next.t('field.vas'), key: 'vas', width: 20, type: 'string'},
|
|
404
|
+
sortable: true,
|
|
405
|
+
width: 120
|
|
406
|
+
},
|
|
356
407
|
{
|
|
357
408
|
type: 'string',
|
|
358
409
|
name: 'status',
|
|
@@ -437,7 +488,8 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
437
488
|
let toDt = new Date(filter.value)
|
|
438
489
|
toDt.setHours(23, 59, 59)
|
|
439
490
|
filter.value = toDt.toISOString()
|
|
440
|
-
|
|
491
|
+
filter.name = 'createdAt'
|
|
492
|
+
break
|
|
441
493
|
default:
|
|
442
494
|
break
|
|
443
495
|
}
|
|
@@ -475,6 +527,10 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
475
527
|
recall
|
|
476
528
|
status
|
|
477
529
|
createdAt
|
|
530
|
+
orderVass {
|
|
531
|
+
id
|
|
532
|
+
status
|
|
533
|
+
}
|
|
478
534
|
creator {
|
|
479
535
|
id
|
|
480
536
|
name
|
|
@@ -513,7 +569,12 @@ class B2bOrderList extends localize(i18next)(PageView) {
|
|
|
513
569
|
response.data.releaseGoodRequests.items.map(itm => {
|
|
514
570
|
return {
|
|
515
571
|
...itm,
|
|
516
|
-
routeId: itm.routeId ? true : false
|
|
572
|
+
routeId: itm.routeId ? true : false,
|
|
573
|
+
vasStatus: itm.orderVass?.length > 0
|
|
574
|
+
? itm.orderVass.some(ov => ov.status === ORDER_VAS_STATUS.PENDING_APPROVE.value)
|
|
575
|
+
? ORDER_VAS_STATUS.PENDING_APPROVE.value
|
|
576
|
+
: itm.orderVass[0].status
|
|
577
|
+
: null
|
|
517
578
|
}
|
|
518
579
|
}) || []
|
|
519
580
|
}
|