@things-factory/operato-wms 4.3.127 → 4.3.129
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,12 +2,26 @@ import '@things-factory/form-ui'
|
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
3
|
|
|
4
4
|
import gql from 'graphql-tag'
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
css,
|
|
7
|
+
html
|
|
8
|
+
} from 'lit-element'
|
|
6
9
|
|
|
7
10
|
import { getCodeByName } from '@things-factory/code-base'
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
import {
|
|
12
|
+
i18next,
|
|
13
|
+
localize
|
|
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'
|
|
11
25
|
import { isMobileDevice } from '@things-factory/utils'
|
|
12
26
|
|
|
13
27
|
import { WORKSHEET_TYPE } from '../constants'
|
|
@@ -206,7 +220,7 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
206
220
|
type: 'object',
|
|
207
221
|
name: 'releaseGood',
|
|
208
222
|
header: i18next.t('field.release_good_no'),
|
|
209
|
-
imex: { header: i18next.t('field.release_good_no'), key: 'releaseGood
|
|
223
|
+
imex: { header: i18next.t('field.release_good_no'), key: 'releaseGood', width: 30, type: 'string' },
|
|
210
224
|
sortable: true,
|
|
211
225
|
width: 150
|
|
212
226
|
},
|
|
@@ -222,7 +236,7 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
222
236
|
type: 'object',
|
|
223
237
|
name: 'bizplace',
|
|
224
238
|
header: i18next.t('field.company'),
|
|
225
|
-
imex: { header: i18next.t('field.company'), key: 'bizplace
|
|
239
|
+
imex: { header: i18next.t('field.company'), key: 'bizplace', width: 30, type: 'string' },
|
|
226
240
|
sortable: true,
|
|
227
241
|
width: 240
|
|
228
242
|
},
|
|
@@ -246,7 +260,7 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
246
260
|
type: 'datetime',
|
|
247
261
|
name: 'createdAt',
|
|
248
262
|
header: i18next.t('field.created_at'),
|
|
249
|
-
imex: { header: i18next.t('field.created_at'), key: 'createdAt', width: 30, type: '
|
|
263
|
+
imex: { header: i18next.t('field.created_at'), key: 'createdAt', width: 30, type: 'date' },
|
|
250
264
|
sortable: true,
|
|
251
265
|
width: 160
|
|
252
266
|
},
|
|
@@ -254,7 +268,7 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
254
268
|
type: 'datetime',
|
|
255
269
|
name: 'startedAt',
|
|
256
270
|
header: i18next.t('field.started_at'),
|
|
257
|
-
imex: { header: i18next.t('field.started_at'), key: 'startedAt', width: 30, type: '
|
|
271
|
+
imex: { header: i18next.t('field.started_at'), key: 'startedAt', width: 30, type: 'date' },
|
|
258
272
|
sortable: true,
|
|
259
273
|
width: 160
|
|
260
274
|
},
|
|
@@ -262,7 +276,7 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
262
276
|
type: 'datetime',
|
|
263
277
|
name: 'endedAt',
|
|
264
278
|
header: i18next.t('field.ended_at'),
|
|
265
|
-
imex: { header: i18next.t('field.ended_at'), key: 'endedAt', width: 30, type: '
|
|
279
|
+
imex: { header: i18next.t('field.ended_at'), key: 'endedAt', width: 30, type: 'date' },
|
|
266
280
|
sortable: true,
|
|
267
281
|
width: 160
|
|
268
282
|
},
|
|
@@ -270,7 +284,7 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
270
284
|
type: 'object',
|
|
271
285
|
name: 'updater',
|
|
272
286
|
header: i18next.t('field.updater'),
|
|
273
|
-
imex: { header: i18next.t('field.updater'), key: 'updater
|
|
287
|
+
imex: { header: i18next.t('field.updater'), key: 'updater', width: 30, type: 'string' },
|
|
274
288
|
sortable: true,
|
|
275
289
|
width: 150
|
|
276
290
|
}
|
|
@@ -458,7 +472,6 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
458
472
|
|
|
459
473
|
var data = records.map(item => {
|
|
460
474
|
return {
|
|
461
|
-
id: item.id,
|
|
462
475
|
...this._columns
|
|
463
476
|
.filter(column => column.type !== 'gutter' && column.record !== undefined && column.imex !== undefined)
|
|
464
477
|
.reduce((record, column) => {
|
|
@@ -469,7 +482,18 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
469
482
|
record[column.imex.key] = new Date(parseInt(record[column.imex.key])).toLocaleString()
|
|
470
483
|
}
|
|
471
484
|
return record
|
|
472
|
-
}, {})
|
|
485
|
+
}, {}),
|
|
486
|
+
id: item.id,
|
|
487
|
+
releaseGood: item.releaseGood.name,
|
|
488
|
+
releaseRefNo: item.releaseRefNo,
|
|
489
|
+
bizplace: item.bizplace.name,
|
|
490
|
+
type: item.type,
|
|
491
|
+
status:item.status,
|
|
492
|
+
createdAt: item.createdAt,
|
|
493
|
+
startedAt: item.startedAt,
|
|
494
|
+
endedAt: item.endedAt,
|
|
495
|
+
updater:item.updater.name,
|
|
496
|
+
|
|
473
497
|
}
|
|
474
498
|
})
|
|
475
499
|
return { header: headerSetting, data: data }
|
package/config.development.js
CHANGED
|
@@ -4,15 +4,15 @@ module.exports = {
|
|
|
4
4
|
useVirtualHostBasedDomain: false,
|
|
5
5
|
fallbackRoute: '/',
|
|
6
6
|
subdomainOffset: 2,
|
|
7
|
-
port:
|
|
8
|
-
inspect: '
|
|
7
|
+
port: 4000,
|
|
8
|
+
inspect: '9330',
|
|
9
9
|
ormconfig: {
|
|
10
10
|
name: 'default',
|
|
11
11
|
type: 'postgres',
|
|
12
|
-
database: '
|
|
12
|
+
database: 'postgres',
|
|
13
13
|
username: 'postgres',
|
|
14
14
|
password: 'hatio',
|
|
15
|
-
host: '
|
|
15
|
+
host: 'localhost',
|
|
16
16
|
port: 15432,
|
|
17
17
|
synchronize: true,
|
|
18
18
|
logging: true
|
|
@@ -20,17 +20,29 @@ module.exports = {
|
|
|
20
20
|
// ormconfig: {
|
|
21
21
|
// name: 'default',
|
|
22
22
|
// type: 'postgres',
|
|
23
|
-
// database: 'postgres',
|
|
24
|
-
// username: 'postgres',
|
|
25
|
-
// password: 'abcd1234',
|
|
26
23
|
// host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
27
24
|
// port: 55432,
|
|
25
|
+
// database: 'dev2',
|
|
26
|
+
// username: 'postgres',
|
|
27
|
+
// password: 'abcd1234',
|
|
28
28
|
// synchronize: false,
|
|
29
|
-
// logging: true
|
|
29
|
+
// logging: true,
|
|
30
|
+
// connectTimeoutMS: 30000,
|
|
31
|
+
// extra: { poolSize: 30 }
|
|
30
32
|
// },
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
//ormconfig: {
|
|
34
|
+
// name: 'default',
|
|
35
|
+
// type: 'postgres',
|
|
36
|
+
// database: 'dev2',
|
|
37
|
+
// username: 'postgres',
|
|
38
|
+
// password: 'hatio',
|
|
39
|
+
// host: 'localhost',
|
|
40
|
+
// port: 15432,
|
|
41
|
+
// synchronize: false,
|
|
42
|
+
// logging: true,
|
|
43
|
+
// connectTimeoutMS: 30000,
|
|
44
|
+
// extra: { poolSize: 30 }
|
|
45
|
+
//},
|
|
34
46
|
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
|
|
35
47
|
password: {
|
|
36
48
|
lowerCase: true,
|
|
@@ -44,13 +56,6 @@ module.exports = {
|
|
|
44
56
|
looseCharacterLength: 4,
|
|
45
57
|
history: 2
|
|
46
58
|
},
|
|
47
|
-
// storage: {
|
|
48
|
-
// type: 's3',
|
|
49
|
-
// accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
|
|
50
|
-
// secretAccessKey: 'AuDAgmODf9EJNB24OveRhTSLV/OJy6IFFoRxe8k2',
|
|
51
|
-
// bucketName: 'opa-one',
|
|
52
|
-
// region: 'ap-southeast-1'
|
|
53
|
-
// },
|
|
54
59
|
uploads: 'uploads',
|
|
55
60
|
attachmentsPath: 'attachments',
|
|
56
61
|
logger: {
|
|
@@ -100,5 +105,7 @@ module.exports = {
|
|
|
100
105
|
// privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
101
106
|
// }
|
|
102
107
|
},
|
|
103
|
-
reportApiUrl: 'http://
|
|
108
|
+
// reportApiUrl: 'http://localhost:8888/rest/report/show_html'
|
|
109
|
+
// reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
|
|
110
|
+
reportApiUrl: 'http://10.100.109.66:8090/rest/report/show_html'
|
|
104
111
|
}
|
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.129",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@things-factory/print-ui": "^4.3.122",
|
|
93
93
|
"@things-factory/product-base": "^4.3.122",
|
|
94
94
|
"@things-factory/resource-ui": "^4.3.123",
|
|
95
|
-
"@things-factory/sales-ui": "^4.3.
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.129",
|
|
96
96
|
"@things-factory/scene-data-transform": "^4.3.122",
|
|
97
97
|
"@things-factory/scene-excel": "^4.3.122",
|
|
98
98
|
"@things-factory/scene-firebase": "^4.3.122",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@things-factory/system-ui": "^4.3.122",
|
|
109
109
|
"@things-factory/transport-base": "^4.3.122",
|
|
110
110
|
"@things-factory/tutorial-ui": "^4.3.122",
|
|
111
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.129",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.129"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@things-factory/builder": "^4.3.122",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "e34b57b1a0974f4bcc4ef92e63e2327b800613b3"
|
|
122
122
|
}
|