@things-factory/operato-wms 4.3.273 → 4.3.281
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/constants/vas.js +4 -0
- package/client/pages/constants/order.js +2 -1
- package/client/pages/order/release-order/release-order-detail.js +5 -12
- package/client/pages/outbound/worksheet-picking.js +3 -2
- package/client/pages/report/order-vas-report.js +577 -0
- package/client/pages/report/vas-report.js +52 -182
- package/client/pages/vas/vas-execution-page.js +3 -3
- package/client/route.js +4 -0
- package/config.development.js +77 -96
- package/dist-server/graphql/resolvers/reports/index.js +1 -1
- package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/vas-report.js +166 -24
- package/dist-server/graphql/resolvers/reports/vas-report.js.map +1 -1
- package/dist-server/graphql/types/reports/index.js +4 -1
- package/dist-server/graphql/types/reports/index.js.map +1 -1
- package/dist-server/graphql/types/reports/vas-report-list.js +9 -3
- package/dist-server/graphql/types/reports/vas-report-list.js.map +1 -1
- package/dist-server/graphql/types/reports/vas-report.js +12 -2
- package/dist-server/graphql/types/reports/vas-report.js.map +1 -1
- package/package.json +50 -50
- package/server/graphql/resolvers/reports/index.ts +2 -1
- package/server/graphql/resolvers/reports/vas-report.ts +186 -23
- package/server/graphql/types/reports/index.ts +6 -3
- package/server/graphql/types/reports/vas-report-list.ts +8 -2
- package/server/graphql/types/reports/vas-report.ts +13 -2
- package/things-factory.config.js +4 -0
- package/translations/en.json +12 -2
- package/translations/ko.json +14 -3
- package/translations/ms.json +13 -3
- package/translations/zh.json +13 -3
|
@@ -8,6 +8,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
10
|
import { flattenObject } from '@things-factory/utils'
|
|
11
|
+
import { VAS_TYPES } from '@things-factory/sales-ui/client/constants/vas'
|
|
11
12
|
|
|
12
13
|
class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
14
|
static get styles() {
|
|
@@ -37,13 +38,13 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
37
38
|
|
|
38
39
|
get context() {
|
|
39
40
|
return {
|
|
40
|
-
title: i18next.t('title.
|
|
41
|
+
title: i18next.t('title.vas_summary_report'),
|
|
41
42
|
printable: {
|
|
42
43
|
accept: ['preview'],
|
|
43
44
|
content: this
|
|
44
45
|
},
|
|
45
46
|
exportable: {
|
|
46
|
-
name: i18next.t('title.
|
|
47
|
+
name: i18next.t('title.date_vas_summary_report', {
|
|
47
48
|
state: {
|
|
48
49
|
text: (() => {
|
|
49
50
|
let date = new Date()
|
|
@@ -86,13 +87,14 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
get searchFields() {
|
|
90
|
+
const type = VAS_TYPES
|
|
89
91
|
return [
|
|
90
92
|
{
|
|
91
93
|
label: i18next.t('field.company'),
|
|
92
94
|
name: 'bizplace',
|
|
93
95
|
type: 'select',
|
|
94
96
|
options: [
|
|
95
|
-
|
|
97
|
+
{ value: '' },
|
|
96
98
|
...this._partners
|
|
97
99
|
.map(partner => {
|
|
98
100
|
return {
|
|
@@ -105,7 +107,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
105
107
|
props: { searchOper: 'eq' }
|
|
106
108
|
},
|
|
107
109
|
{
|
|
108
|
-
label: i18next.t('field.
|
|
110
|
+
label: i18next.t('field.latest_execution_from_date'),
|
|
109
111
|
name: 'fromDate',
|
|
110
112
|
type: 'date',
|
|
111
113
|
props: {
|
|
@@ -115,7 +117,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
115
117
|
handlers: { change: this._modifyDateRange.bind(this) }
|
|
116
118
|
},
|
|
117
119
|
{
|
|
118
|
-
label: i18next.t('field.
|
|
120
|
+
label: i18next.t('field.latest_execution_to_date'),
|
|
119
121
|
name: 'toDate',
|
|
120
122
|
type: 'date',
|
|
121
123
|
props: {
|
|
@@ -129,17 +131,27 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
129
131
|
}
|
|
130
132
|
},
|
|
131
133
|
{
|
|
132
|
-
label: i18next.t('field.
|
|
133
|
-
name: '
|
|
134
|
+
label: i18next.t('field.vas'),
|
|
135
|
+
name: 'vas',
|
|
134
136
|
type: 'string',
|
|
135
137
|
props: { searchOper: 'i_like' }
|
|
136
138
|
},
|
|
137
139
|
{
|
|
138
|
-
label: i18next.t('field.
|
|
139
|
-
name: '
|
|
140
|
-
type: '
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
label: i18next.t('field.type'),
|
|
141
|
+
name: 'type',
|
|
142
|
+
type: 'select',
|
|
143
|
+
options: [
|
|
144
|
+
{ value: '' },
|
|
145
|
+
...Object.values(type)
|
|
146
|
+
.map(type => { return {
|
|
147
|
+
name: type,
|
|
148
|
+
value: type
|
|
149
|
+
}})
|
|
150
|
+
.sort()
|
|
151
|
+
|
|
152
|
+
],
|
|
153
|
+
props: { searchOper: 'eq' }
|
|
154
|
+
},
|
|
143
155
|
]
|
|
144
156
|
}
|
|
145
157
|
|
|
@@ -148,17 +160,9 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
148
160
|
rows: {
|
|
149
161
|
selectable: false,
|
|
150
162
|
groups: [
|
|
151
|
-
{ column: 'bizplaceName' }
|
|
152
|
-
{ column: 'ro' },
|
|
153
|
-
{ column: 'refNo' },
|
|
154
|
-
{ column: 'sku' },
|
|
155
|
-
{ column: 'batchId' },
|
|
156
|
-
{ column: 'packingType' },
|
|
157
|
-
{ column: 'uom' },
|
|
158
|
-
{ column: 'uomValue' },
|
|
159
|
-
{ column: 'releaseQty' }
|
|
163
|
+
{ column: 'bizplaceName' }
|
|
160
164
|
],
|
|
161
|
-
totals: []
|
|
165
|
+
totals: ['vasQty']
|
|
162
166
|
},
|
|
163
167
|
columns: [
|
|
164
168
|
{
|
|
@@ -166,81 +170,25 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
166
170
|
name: 'bizplaceName',
|
|
167
171
|
header: i18next.t('field.company'),
|
|
168
172
|
sortable: false,
|
|
169
|
-
imex: {
|
|
170
|
-
width: 150
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
type: 'string',
|
|
174
|
-
name: 'ro',
|
|
175
|
-
header: i18next.t('field.order_no'),
|
|
176
|
-
sortable: false,
|
|
177
|
-
imex: { header: i18next.t('field.order_no'), key: 'ro', width: 25, type: 'string' },
|
|
178
|
-
width: 160
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
type: 'string',
|
|
182
|
-
name: 'refNo',
|
|
183
|
-
header: i18next.t('field.ref_no'),
|
|
184
|
-
sortable: false,
|
|
185
|
-
imex: { header: i18next.t('field.ref_no'), key: 'refNo', width: 25, type: 'string' },
|
|
173
|
+
imex: { header: i18next.t('field.company'), key: 'bizplaceName', width: 30, type: 'string' },
|
|
186
174
|
width: 150
|
|
187
175
|
},
|
|
188
|
-
{
|
|
189
|
-
type: 'string',
|
|
190
|
-
name: 'sku',
|
|
191
|
-
header: i18next.t('field.sku'),
|
|
192
|
-
sortable: false,
|
|
193
|
-
imex: { header: i18next.t('field.sku'), key: 'sku', width: 20, type: 'string' },
|
|
194
|
-
width: 150
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
type: 'string',
|
|
198
|
-
name: 'batchId',
|
|
199
|
-
header: i18next.t('field.batch_no'),
|
|
200
|
-
sortable: false,
|
|
201
|
-
imex: { header: i18next.t('field.batch_no'), key: 'batchId', width: 20, type: 'string' },
|
|
202
|
-
width: 100
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
type: 'string',
|
|
206
|
-
name: 'packingType',
|
|
207
|
-
header: i18next.t('field.packing_type'),
|
|
208
|
-
sortable: false,
|
|
209
|
-
imex: { header: i18next.t('field.packing_type'), key: 'packingType', width: 20, type: 'string' },
|
|
210
|
-
width: 130
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
type: 'string',
|
|
214
|
-
name: 'uom',
|
|
215
|
-
header: i18next.t('field.uom'),
|
|
216
|
-
sortable: false,
|
|
217
|
-
imex: { header: i18next.t('field.uom'), key: 'uom', width: 5, type: 'string' },
|
|
218
|
-
width: 70
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
type: 'number',
|
|
222
|
-
name: 'uomValue',
|
|
223
|
-
header: i18next.t('field.unit_uom_value'),
|
|
224
|
-
sortable: false,
|
|
225
|
-
imex: { header: i18next.t('field.unit_uom_value'), key: 'uomValue', width: 10, type: 'string' },
|
|
226
|
-
width: 80
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
type: 'number',
|
|
230
|
-
name: 'releaseQty',
|
|
231
|
-
header: i18next.t('field.release_qty'),
|
|
232
|
-
sortable: false,
|
|
233
|
-
imex: { header: i18next.t('field.release_qty'), key: 'releaseQty', width: 10, type: 'string' },
|
|
234
|
-
width: 80
|
|
235
|
-
},
|
|
236
176
|
{
|
|
237
177
|
type: 'string',
|
|
238
178
|
name: 'vas',
|
|
239
179
|
header: i18next.t('field.vas'),
|
|
240
180
|
sortable: false,
|
|
241
|
-
imex: { header: i18next.t('field.vas'), key: 'vas', width:
|
|
242
|
-
width:
|
|
181
|
+
imex: { header: i18next.t('field.vas'), key: 'vas', width: 90, type: 'string' },
|
|
182
|
+
width: 600
|
|
243
183
|
},
|
|
184
|
+
{
|
|
185
|
+
type: 'string',
|
|
186
|
+
name: 'type',
|
|
187
|
+
header: i18next.t('field.type'),
|
|
188
|
+
sortable: false,
|
|
189
|
+
imex: { header: i18next.t('field.type'), key: 'type', width: 10, type: 'string' },
|
|
190
|
+
width: 150
|
|
191
|
+
},
|
|
244
192
|
{
|
|
245
193
|
type: 'number',
|
|
246
194
|
name: 'vasQty',
|
|
@@ -250,53 +198,13 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
250
198
|
width: 70
|
|
251
199
|
},
|
|
252
200
|
{
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
{
|
|
261
|
-
type: 'string',
|
|
262
|
-
name: 'newPackingType',
|
|
263
|
-
header: i18next.t('field.packing_type'),
|
|
264
|
-
sortable: false,
|
|
265
|
-
imex: { header: i18next.t('field.packing_type'), key: 'newPackingType', width: 10, type: 'string' },
|
|
266
|
-
width: 90
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
type: 'string',
|
|
270
|
-
name: 'newUom',
|
|
271
|
-
header: i18next.t('field.uom'),
|
|
272
|
-
sortable: false,
|
|
273
|
-
imex: { header: i18next.t('field.uom'), key: 'newUom', width: 5, type: 'string' },
|
|
274
|
-
width: 70
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
type: 'number',
|
|
278
|
-
name: 'outputQty',
|
|
279
|
-
header: i18next.t('field.output_qty'),
|
|
280
|
-
sortable: false,
|
|
281
|
-
imex: { header: i18next.t('field.output_qty'), key: 'outputQty', width: 10, type: 'string' },
|
|
282
|
-
width: 80
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
type: 'number',
|
|
286
|
-
name: 'newUomValue',
|
|
287
|
-
header: i18next.t('field.uom_value'),
|
|
288
|
-
sortable: false,
|
|
289
|
-
imex: { header: i18next.t('field.uom_value'), key: 'newUomValue', width: 10, type: 'string' },
|
|
290
|
-
width: 80
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
type: 'datetime',
|
|
294
|
-
name: 'completionDate',
|
|
295
|
-
header: i18next.t('field.completion_date'),
|
|
296
|
-
sortable: false,
|
|
297
|
-
imex: { header: i18next.t('field.completion_date'), key: 'completionDate', width: 20, type: 'string' },
|
|
298
|
-
width: 160
|
|
299
|
-
}
|
|
201
|
+
type: 'datetime',
|
|
202
|
+
name: 'executedAt',
|
|
203
|
+
header: i18next.t('field.latest_execution'),
|
|
204
|
+
sortable: false,
|
|
205
|
+
imex: { header: i18next.t('field.latest_execution'), key: 'executedAt', width: 20, type: 'string' },
|
|
206
|
+
width: 160
|
|
207
|
+
}
|
|
300
208
|
]
|
|
301
209
|
}
|
|
302
210
|
}
|
|
@@ -305,6 +213,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
305
213
|
this._releaseOrders = []
|
|
306
214
|
this._partners = [...(await this._fetchPartners())]
|
|
307
215
|
this._orderVass = []
|
|
216
|
+
this._vasTypes = VAS_TYPES
|
|
308
217
|
|
|
309
218
|
this._searchFields = this.searchFields
|
|
310
219
|
this._config = this.reportConfig
|
|
@@ -326,40 +235,15 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
326
235
|
items {
|
|
327
236
|
bizplace {
|
|
328
237
|
name
|
|
329
|
-
description
|
|
330
|
-
}
|
|
331
|
-
releaseGood {
|
|
332
|
-
name
|
|
333
|
-
refNo
|
|
334
|
-
}
|
|
335
|
-
orderVas {
|
|
336
|
-
batchId
|
|
337
|
-
packingType
|
|
338
|
-
uom
|
|
339
|
-
uomValue
|
|
340
|
-
newPackingType
|
|
341
|
-
newUom
|
|
342
|
-
newUomValue
|
|
343
|
-
outputQty
|
|
344
|
-
product {
|
|
345
|
-
sku
|
|
346
|
-
}
|
|
347
|
-
newProduct {
|
|
348
|
-
sku
|
|
349
|
-
}
|
|
350
238
|
}
|
|
351
239
|
orderVasItem {
|
|
352
240
|
vas {
|
|
353
241
|
name
|
|
354
242
|
description
|
|
243
|
+
type
|
|
355
244
|
}
|
|
356
245
|
vasQty
|
|
357
|
-
|
|
358
|
-
orderInventory {
|
|
359
|
-
releaseQty
|
|
360
|
-
}
|
|
361
|
-
worksheet {
|
|
362
|
-
endedAt
|
|
246
|
+
executedAt
|
|
363
247
|
}
|
|
364
248
|
}
|
|
365
249
|
}
|
|
@@ -396,22 +280,10 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
396
280
|
return {
|
|
397
281
|
...item,
|
|
398
282
|
bizplaceName: item.bizplace.name,
|
|
399
|
-
ro: item.releaseGood.name,
|
|
400
|
-
refNo: item.releaseGood.refNo,
|
|
401
|
-
sku: item.orderVas.product.sku,
|
|
402
|
-
batchId: item.orderVas.batchId,
|
|
403
|
-
packingType: item.orderVas.packingType,
|
|
404
|
-
uom: item.orderVas.uom,
|
|
405
|
-
uomValue: item.orderVas.uomValue,
|
|
406
|
-
releaseQty: item.orderInventory.releaseQty,
|
|
407
283
|
vas: `${item.orderVasItem.vas.name}(${item.orderVasItem.vas.description})`,
|
|
408
284
|
vasQty: item.orderVasItem.vasQty,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
newUom: item.orderVas.newUom,
|
|
412
|
-
outputQty: item.orderVas.outputQty,
|
|
413
|
-
newUomValue: item.orderVas.newUomValue,
|
|
414
|
-
completionDate: item.worksheet.endedAt
|
|
285
|
+
executedAt: item.orderVasItem.executedAt,
|
|
286
|
+
type: item.orderVasItem.vas.type
|
|
415
287
|
}
|
|
416
288
|
})
|
|
417
289
|
}
|
|
@@ -455,8 +327,6 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
455
327
|
if (!this.searchForm.shadowRoot.querySelector('form').checkValidity())
|
|
456
328
|
throw new Error(i18next.t('text.invalid_form_value'))
|
|
457
329
|
if (!this._bizplaceSelector.value) throw new Error(i18next.t('text.no_company_selected'))
|
|
458
|
-
// if (!this._fromDateInput.value) throw new Error(i18next.t('text.from_date_is_empty'))
|
|
459
|
-
// if (!this._toDateInput.value) throw new Error(i18next.t('text.to_date_is_empty'))
|
|
460
330
|
}
|
|
461
331
|
|
|
462
332
|
_modifyDateRange(e) {
|
|
@@ -505,11 +375,11 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
505
375
|
return {
|
|
506
376
|
header: headerSetting,
|
|
507
377
|
data: this.report.data.records.map(record => {
|
|
508
|
-
let date = new Date(parseInt(record.
|
|
378
|
+
let date = new Date(parseInt(record.orderVasItem.executedAt))
|
|
509
379
|
return flattenObject({
|
|
510
380
|
...record,
|
|
511
|
-
|
|
512
|
-
record.
|
|
381
|
+
executedAt:
|
|
382
|
+
record.orderVasItem.executedAt !== null
|
|
513
383
|
? date.getDate().toString() +
|
|
514
384
|
'/' +
|
|
515
385
|
(date.getMonth() + 1).toString() +
|
|
@@ -383,14 +383,14 @@ class VasExecution extends connect(store)(localize(i18next)(PageView)) {
|
|
|
383
383
|
|
|
384
384
|
const response = await client.mutate({
|
|
385
385
|
mutation: gql`
|
|
386
|
-
mutation
|
|
387
|
-
|
|
386
|
+
mutation executeOrderVasItems($releaseGoodNo: String!, $patches: [OrderVasItemPatch!]!) {
|
|
387
|
+
executeOrderVasItems(releaseGoodNo: $releaseGoodNo, patches: $patches) {
|
|
388
388
|
id
|
|
389
389
|
name
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
`,
|
|
393
|
-
variables: { patches }
|
|
393
|
+
variables: { releaseGoodNo: this.orderNo, patches }
|
|
394
394
|
})
|
|
395
395
|
|
|
396
396
|
if (!response.errors) {
|
package/client/route.js
CHANGED
|
@@ -489,6 +489,10 @@ export default function route(page) {
|
|
|
489
489
|
import('./pages/report/tote-loading-qc-report')
|
|
490
490
|
return page
|
|
491
491
|
|
|
492
|
+
case 'order_vas_report':
|
|
493
|
+
import('./pages/report/order-vas-report')
|
|
494
|
+
return page
|
|
495
|
+
|
|
492
496
|
case 'vas_report':
|
|
493
497
|
import('./pages/report/vas-report')
|
|
494
498
|
return page
|
package/config.development.js
CHANGED
|
@@ -1,57 +1,68 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
domainType: 'warehouse',
|
|
3
3
|
domainExtType: 'warehouse',
|
|
4
|
+
useVirtualHostBasedDomain: false,
|
|
4
5
|
fallbackRoute: '/',
|
|
5
6
|
subdomainOffset: 2,
|
|
7
|
+
port: 1100,
|
|
8
|
+
inspect: '9430',
|
|
9
|
+
// ormconfig: {
|
|
10
|
+
// name: 'default',
|
|
11
|
+
// type: 'postgres',
|
|
12
|
+
// database: 'dev',
|
|
13
|
+
// username: 'postgres',
|
|
14
|
+
// password: 'hatio',
|
|
15
|
+
// host: '192.168.0.161',
|
|
16
|
+
// port: 15432,
|
|
17
|
+
// synchronize: false,
|
|
18
|
+
// logging: true
|
|
19
|
+
// },
|
|
6
20
|
ormconfig: {
|
|
7
21
|
name: 'default',
|
|
8
22
|
type: 'postgres',
|
|
9
|
-
database: '
|
|
23
|
+
database: 'postgres',
|
|
10
24
|
username: 'postgres',
|
|
11
|
-
password: '
|
|
12
|
-
host: '
|
|
13
|
-
port:
|
|
25
|
+
password: 'abcd1234',
|
|
26
|
+
host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
27
|
+
port: 55432,
|
|
14
28
|
synchronize: false,
|
|
15
|
-
logging:
|
|
29
|
+
logging: true
|
|
16
30
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
sellercraftIntegrationConfig: {
|
|
32
|
+
apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
|
|
33
|
+
},
|
|
34
|
+
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
|
|
35
|
+
password: {
|
|
36
|
+
lowerCase: true,
|
|
37
|
+
upperCase: false,
|
|
38
|
+
digit: false,
|
|
39
|
+
specialCharacter: false,
|
|
40
|
+
allowRepeat: true,
|
|
41
|
+
useTightPattern: false,
|
|
42
|
+
useLoosePattern: true,
|
|
43
|
+
tightCharacterLength: 4,
|
|
44
|
+
looseCharacterLength: 4,
|
|
45
|
+
history: 2
|
|
46
|
+
},
|
|
47
|
+
// storage: {
|
|
48
|
+
// type: 's3',
|
|
49
|
+
// accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
|
|
50
|
+
// secretAccessKey: 'AuDAgmODf9EJNB24OveRhTSLV/OJy6IFFoRxe8k2',
|
|
51
|
+
// bucketName: 'opa-one',
|
|
52
|
+
// region: 'ap-southeast-1'
|
|
27
53
|
// },
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
|
|
39
|
-
projectId: 'operato',
|
|
40
|
-
messagingSenderId: 79537064975,
|
|
41
|
-
appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
|
|
42
|
-
},
|
|
43
|
-
serverKey:
|
|
44
|
-
'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
|
|
45
|
-
},
|
|
46
|
-
vapidKey: {
|
|
47
|
-
subject: 'mailto:heartyoh@hatiolab.com',
|
|
48
|
-
publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
|
|
49
|
-
privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
54
|
+
uploads: 'uploads',
|
|
55
|
+
attachmentsPath: 'attachments',
|
|
56
|
+
logger: {
|
|
57
|
+
file: {
|
|
58
|
+
filename: 'logs/application-%DATE%.log',
|
|
59
|
+
datePattern: 'YYYY-MM-DD-HH',
|
|
60
|
+
zippedArchive: true,
|
|
61
|
+
maxSize: '200m',
|
|
62
|
+
maxFiles: '1m',
|
|
63
|
+
level: 'info'
|
|
50
64
|
}
|
|
51
65
|
},
|
|
52
|
-
port: 9001,
|
|
53
|
-
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
|
|
54
|
-
useVirtualHostBasedDomain: false,
|
|
55
66
|
email: {
|
|
56
67
|
host: 'smtp.office365.com',
|
|
57
68
|
port: 587,
|
|
@@ -63,62 +74,32 @@ module.exports = {
|
|
|
63
74
|
secureConnection: false,
|
|
64
75
|
tls: {
|
|
65
76
|
ciphers: 'SSLv3'
|
|
66
|
-
}
|
|
67
|
-
sender: 'no-reply@hatiolab.com'
|
|
68
|
-
},
|
|
69
|
-
// marketplaceIntegrationShopee: {
|
|
70
|
-
// platform: 'shopee',
|
|
71
|
-
// isUAT: false,
|
|
72
|
-
// application: 'Operato MMS V2 Live',
|
|
73
|
-
// partnerId: 2004140,
|
|
74
|
-
// partnerKey: '825dcae5af73426f887bc8b1ddb5b494b70e0057b50b77298f85350273017bd2',
|
|
75
|
-
// v2: true
|
|
76
|
-
// },
|
|
77
|
-
marketplaceIntegrationShopee: {
|
|
78
|
-
platform: 'shopee',
|
|
79
|
-
isUAT: false,
|
|
80
|
-
application: 'Operato MMS',
|
|
81
|
-
partnerId: 846025,
|
|
82
|
-
partnerKey: 'd34cfd85a603f196a0d74ebe08043280c1a27788bb36bdffd61e7e0bb1c90b64',
|
|
83
|
-
v2: true
|
|
84
|
-
},
|
|
85
|
-
// marketplaceIntegrationShopee: {
|
|
86
|
-
// platform: 'shopee',
|
|
87
|
-
// isUAT: true,
|
|
88
|
-
// application: 'Staging MMS',
|
|
89
|
-
// partnerId: 845525,
|
|
90
|
-
// partnerKey: '4a3f4214fd0f0bda970b342a99b6f8705fc7bacad2743cffa7ed67b79840665e'
|
|
91
|
-
// },
|
|
92
|
-
marketplaceIntegrationLazada: {
|
|
93
|
-
platform: 'lazada',
|
|
94
|
-
application: 'operato-mms',
|
|
95
|
-
appKey: '120961',
|
|
96
|
-
appSecret: 'HB3RTNEXHlVSlBr9SmWF8AjbSUT7a825',
|
|
97
|
-
callback: 'https://maybank.operato-m.com/lazada-callback'
|
|
98
|
-
},
|
|
99
|
-
inspect: 9330,
|
|
100
|
-
attachment: 'attachments',
|
|
101
|
-
sellercraftIntegrationConfig: {
|
|
102
|
-
apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
|
|
77
|
+
}
|
|
103
78
|
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
79
|
+
sender: 'no-reply@hatiolab.com',
|
|
80
|
+
notification: {
|
|
81
|
+
// fcm: {
|
|
82
|
+
// serviceAccount: {
|
|
83
|
+
// project_id: 'operato',
|
|
84
|
+
// private_key:
|
|
85
|
+
// '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0MAOmyPDJz/6AaTk\nkU/A+kLzAgMBAAECggEADQ5s2gtR53VSujk1V/Xe8e0Di99DwaWUj5w6YhcK7/wX\nPdQRN4Fw6RLeLjL7xeG/rCNSwzm6hKSrQJL5zLnWW7XbMdyQRk6jdmnVAEv3zACi\nFH9+eFK3e+Q214XfgWz/v4p/FZdRLCYni5VBNHcwyWxLLS/V1ynzB3KM1sDiTRmI\npcT7+uTtwrKgJq64sXtFE2pYrFxDdCiyqzkhv/2ed4YIowAjpKBbbcCDKeVxVkoz\nC1P4PAzs9EeUuKSWYrWaUjN17lqtRlYeT1ylR1PIJuWqd4cKfgoEgz+lHwRPDCEX\nAYbk3nofiJIPBhSfCHrXS755wK48mY8vMwFdfCPJeQKBgQDsz4tjYTHdat5A25n5\nekwMxZwFQ5OvMV4eulwZUDMypTAYSz1iB6sDlgwKDm5omZIfuneqCEIvrqxV/kx3\n5wV/DANHO3hYxdp/NV7rM23xmqlaKZhHQbDono1Fm/LP6DEmJiD7N2eFKsXYcPpR\nSAIdCv0X3zkDQ4zRi51yJlCXzQKBgQDpufJBxCoXngiQJ2j14lWVAeOOdQ6zh5Ip\nBcDwF0X67cNSN3Wl40bS4yLFdolhEAyj5m0WPuYYXpjzhHhZ0W3V3ItdBkrmwIvy\nWOWu26qN0ZbwxVS2qVpHuj6iHWJKHuDZZUkFtJg3BeeBSOUHSA8TvjnA0xd83xeb\n8ZJasWoFvwKBgQDFs/gQ/gIdcq0exLfluh5nw0qgcmyHpNWJHdjqITS9IX/nqFkU\n0IYLtmdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
|
|
86
|
+
// client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
|
|
87
|
+
// },
|
|
88
|
+
// appConfig: {
|
|
89
|
+
// apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
|
|
90
|
+
// projectId: 'operato',
|
|
91
|
+
// messagingSenderId: 79537064975,
|
|
92
|
+
// appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
|
|
93
|
+
// },
|
|
94
|
+
// serverKey:
|
|
95
|
+
// 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
|
|
96
|
+
// },
|
|
97
|
+
// vapidKey: {
|
|
98
|
+
// subject: 'mailto:heartyoh@hatiolab.com',
|
|
99
|
+
// publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
|
|
100
|
+
// privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
101
|
+
// }
|
|
110
102
|
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
|
|
114
|
-
secretAccessKey: 'OG2qS0Usg4wyjPWbfv1ahPZzP80/w8z4i8MYHl+e',
|
|
115
|
-
configuration: {
|
|
116
|
-
retryAttempt: 0,
|
|
117
|
-
timeout: 0,
|
|
118
|
-
exponential_rate: 1.5,
|
|
119
|
-
interval: 1,
|
|
120
|
-
actualTimeout: 0,
|
|
121
|
-
maxRetry: 30
|
|
122
|
-
}
|
|
123
|
-
}
|
|
103
|
+
// reportApiUrl: 'localhost:8888/rest/report/show_html'
|
|
104
|
+
reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
|
|
124
105
|
}
|
|
@@ -10,5 +10,5 @@ const product_label_report_1 = require("./product-label-report");
|
|
|
10
10
|
const release_inventory_report_1 = require("./release-inventory-report");
|
|
11
11
|
const tote_loading_qc_report_1 = require("./tote-loading-qc-report");
|
|
12
12
|
const vas_report_1 = require("./vas-report");
|
|
13
|
-
exports.Query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inbound_serial_number_report_1.inboundSerialNumberReport), outbound_serial_number_report_1.outboundSerialNumberReport), costing_report_1.costingReport), inbound_order_details_report_1.inboundOrderDetailsReport), outbound_order_details_report_1.outboundOrderDetailsReport), product_label_report_1.productLabelReport), release_inventory_report_1.releaseInventoryReport), tote_loading_qc_report_1.loadingQcReport), vas_report_1.vasReport);
|
|
13
|
+
exports.Query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inbound_serial_number_report_1.inboundSerialNumberReport), outbound_serial_number_report_1.outboundSerialNumberReport), costing_report_1.costingReport), inbound_order_details_report_1.inboundOrderDetailsReport), outbound_order_details_report_1.outboundOrderDetailsReport), product_label_report_1.productLabelReport), release_inventory_report_1.releaseInventoryReport), tote_loading_qc_report_1.loadingQcReport), vas_report_1.orderVasReport), vas_report_1.vasReport);
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,mFAA4E;AAE5E,qDAAgD;AAChD,iFAA0E;AAC1E,mFAA4E;AAC5E,iEAA2D;AAC3D,yEAAmE;AACnE,qEAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,mFAA4E;AAE5E,qDAAgD;AAChD,iFAA0E;AAC1E,mFAA4E;AAC5E,iEAA2D;AAC3D,yEAAmE;AACnE,qEAA0D;AAC1D,6CAAwD;AAE3C,QAAA,KAAK,mJACb,wDAAyB,GACzB,0DAA0B,GAC1B,8BAAa,GACb,wDAAyB,GACzB,0DAA0B,GAC1B,yCAAkB,GAClB,iDAAsB,GACtB,wCAAe,GACf,2BAAc,GACd,sBAAS,EACb"}
|