@things-factory/operato-wms 4.3.197 → 4.3.199
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.
|
@@ -9,15 +9,27 @@ import '@things-factory/component-ui'
|
|
|
9
9
|
import '@things-factory/import-ui'
|
|
10
10
|
|
|
11
11
|
import gql from 'graphql-tag'
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
css,
|
|
14
|
+
html
|
|
15
|
+
} from 'lit-element'
|
|
13
16
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
14
17
|
|
|
15
18
|
import { getCodeByName } from '@things-factory/code-base'
|
|
16
19
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
17
20
|
import { getRenderer } from '@things-factory/grist-ui'
|
|
18
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
i18next,
|
|
23
|
+
localize
|
|
24
|
+
} from '@things-factory/i18n-base'
|
|
19
25
|
import { openPopup } from '@things-factory/layout-base'
|
|
20
|
-
import {
|
|
26
|
+
import {
|
|
27
|
+
client,
|
|
28
|
+
CustomAlert,
|
|
29
|
+
navigate,
|
|
30
|
+
PageView,
|
|
31
|
+
store
|
|
32
|
+
} from '@things-factory/shell'
|
|
21
33
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
22
34
|
import { isMobileDevice } from '@things-factory/utils'
|
|
23
35
|
|
|
@@ -1380,7 +1392,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1380
1392
|
return {
|
|
1381
1393
|
...op,
|
|
1382
1394
|
productSKU: op?.product?.sku || '',
|
|
1383
|
-
productName
|
|
1395
|
+
productName:` ${op?.product?.name} (${op?.product?.description})` || '',
|
|
1384
1396
|
productBrand: op?.product?.brand || '',
|
|
1385
1397
|
roundedUomValue: `${roundedUomValue} ${op.uom}`,
|
|
1386
1398
|
releaseUomValueWithUom: op.releaseUomValue + ' ' + op.uom
|
|
@@ -4,14 +4,28 @@ import './return-pallet-check-popup'
|
|
|
4
4
|
import './transport-vehicles-popup'
|
|
5
5
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
css,
|
|
9
|
+
html
|
|
10
|
+
} from 'lit-element'
|
|
8
11
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
9
12
|
|
|
10
13
|
import { sleep } from '@operato/utils'
|
|
11
|
-
import {
|
|
12
|
-
|
|
14
|
+
import {
|
|
15
|
+
MultiColumnFormStyles,
|
|
16
|
+
SingleColumnFormStyles
|
|
17
|
+
} from '@things-factory/form-ui'
|
|
18
|
+
import {
|
|
19
|
+
i18next,
|
|
20
|
+
localize
|
|
21
|
+
} from '@things-factory/i18n-base'
|
|
13
22
|
import { openPopup } from '@things-factory/layout-base'
|
|
14
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
client,
|
|
25
|
+
CustomAlert,
|
|
26
|
+
PageView,
|
|
27
|
+
store
|
|
28
|
+
} from '@things-factory/shell'
|
|
15
29
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
16
30
|
import { isMobileDevice } from '@things-factory/utils'
|
|
17
31
|
|
|
@@ -834,7 +848,12 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
834
848
|
}
|
|
835
849
|
//2. validate whether delivery order is empty or not. It should only validate if enable-loading-delivery-information is set to true
|
|
836
850
|
if (this._requireDeliveryInformation) {
|
|
837
|
-
if
|
|
851
|
+
if(this._ownCollection){
|
|
852
|
+
if (!this.palletQty.value || !this.truckInput.value) {
|
|
853
|
+
throw new Error(i18next.t('text.empty_field_in_delivery_information'))
|
|
854
|
+
}
|
|
855
|
+
} else
|
|
856
|
+
if (!this.palletQty.value || !this.warehouseTruckInput.value) {
|
|
838
857
|
throw new Error(i18next.t('text.empty_field_in_delivery_information'))
|
|
839
858
|
}
|
|
840
859
|
}
|
package/config.development.js
CHANGED
|
@@ -4,45 +4,33 @@ module.exports = {
|
|
|
4
4
|
useVirtualHostBasedDomain: false,
|
|
5
5
|
fallbackRoute: '/',
|
|
6
6
|
subdomainOffset: 2,
|
|
7
|
-
port:
|
|
8
|
-
inspect: '
|
|
7
|
+
port: 1100,
|
|
8
|
+
inspect: '9430',
|
|
9
|
+
// ormconfig: {
|
|
10
|
+
// name: 'default',
|
|
11
|
+
// type: 'postgres',
|
|
12
|
+
// database: 'dev2',
|
|
13
|
+
// username: 'postgres',
|
|
14
|
+
// password: 'hatio',
|
|
15
|
+
// host: '192.168.0.161',
|
|
16
|
+
// port: 15432,
|
|
17
|
+
// synchronize: false,
|
|
18
|
+
// logging: false
|
|
19
|
+
// },
|
|
9
20
|
ormconfig: {
|
|
10
21
|
name: 'default',
|
|
11
22
|
type: 'postgres',
|
|
12
23
|
database: 'postgres',
|
|
13
24
|
username: 'postgres',
|
|
14
|
-
password: '
|
|
15
|
-
host: '
|
|
16
|
-
port:
|
|
25
|
+
password: 'abcd1234',
|
|
26
|
+
host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
27
|
+
port: 55432,
|
|
17
28
|
synchronize: false,
|
|
18
29
|
logging: true
|
|
19
30
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
24
|
-
// port: 55432,
|
|
25
|
-
// database: 'dev2',
|
|
26
|
-
// username: 'postgres',
|
|
27
|
-
// password: 'abcd1234',
|
|
28
|
-
// synchronize: false,
|
|
29
|
-
// logging: true,
|
|
30
|
-
// connectTimeoutMS: 30000,
|
|
31
|
-
// extra: { poolSize: 30 }
|
|
32
|
-
// },
|
|
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
|
-
//},
|
|
31
|
+
sellercraftIntegrationConfig: {
|
|
32
|
+
apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
|
|
33
|
+
},
|
|
46
34
|
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
|
|
47
35
|
password: {
|
|
48
36
|
lowerCase: true,
|
|
@@ -56,6 +44,13 @@ module.exports = {
|
|
|
56
44
|
looseCharacterLength: 4,
|
|
57
45
|
history: 2
|
|
58
46
|
},
|
|
47
|
+
// storage: {
|
|
48
|
+
// type: 's3',
|
|
49
|
+
// accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
|
|
50
|
+
// secretAccessKey: 'AuDAgmODf9EJNB24OveRhTSLV/OJy6IFFoRxe8k2',
|
|
51
|
+
// bucketName: 'opa-one',
|
|
52
|
+
// region: 'ap-southeast-1'
|
|
53
|
+
// },
|
|
59
54
|
uploads: 'uploads',
|
|
60
55
|
attachmentsPath: 'attachments',
|
|
61
56
|
logger: {
|
|
@@ -105,14 +100,5 @@ module.exports = {
|
|
|
105
100
|
// privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
106
101
|
// }
|
|
107
102
|
},
|
|
108
|
-
reportApiUrl: 'http://
|
|
109
|
-
// reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
|
|
110
|
-
// reportApiUrl: 'http://10.100.109.66:8090/rest/report/show_html',
|
|
111
|
-
awbFileStorage: {
|
|
112
|
-
type: 's3',
|
|
113
|
-
accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
|
|
114
|
-
secretAccessKey: 'OG2qS0Usg4wyjPWbfv1ahPZzP80/w8z4i8MYHl+e',
|
|
115
|
-
bucketName: 'operato-awb',
|
|
116
|
-
region: 'ap-southeast-1'
|
|
117
|
-
}
|
|
103
|
+
reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
|
|
118
104
|
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
domainType: 'warehouse',
|
|
3
|
+
domainExtType: 'warehouse',
|
|
4
|
+
useVirtualHostBasedDomain: false,
|
|
5
|
+
fallbackRoute: '/',
|
|
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: true,
|
|
18
|
+
logging: false
|
|
19
|
+
},
|
|
20
|
+
// ormconfig: {
|
|
21
|
+
// name: 'default',
|
|
22
|
+
// type: 'postgres',
|
|
23
|
+
// database: 'dev',
|
|
24
|
+
// username: 'postgres',
|
|
25
|
+
// password: 'abcd1234',
|
|
26
|
+
// host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
27
|
+
// port: 55432,
|
|
28
|
+
// synchronize: true,
|
|
29
|
+
// logging: true
|
|
30
|
+
// },
|
|
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'
|
|
53
|
+
// },
|
|
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'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
email: {
|
|
67
|
+
host: 'smtp.office365.com',
|
|
68
|
+
port: 587,
|
|
69
|
+
secure: false, // true for 465, false for other ports
|
|
70
|
+
auth: {
|
|
71
|
+
user: 'no-reply@hatiolab.com', // generated ethereal user
|
|
72
|
+
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
73
|
+
},
|
|
74
|
+
secureConnection: false,
|
|
75
|
+
tls: {
|
|
76
|
+
ciphers: 'SSLv3'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
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\nJIyl6f26dNX1VT3UgTmSmCS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wLcwpgPULoskd34/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
|
+
// }
|
|
102
|
+
},
|
|
103
|
+
reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
|
|
104
|
+
}
|
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.199",
|
|
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.179",
|
|
92
92
|
"@things-factory/product-base": "^4.3.186",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.179",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.199",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.159",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.159",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.159",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.179",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.179",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.179",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.198",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.199"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.179",
|
|
@@ -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": "492113514cc38cb74d70e770e003c2aa7c53eea1"
|
|
121
121
|
}
|