@things-factory/operato-wms 4.0.0 → 4.0.4
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/inbound/putaway-product.js +4 -4
- package/client/pages/master/transport-driver.js +8 -6
- package/client/pages/master/transport-vehicle.js +10 -8
- package/client/pages/order/arrival-notice/create-arrival-notice.js +1 -1
- package/package.json +65 -65
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
- package/config.development.js +0 -48
|
@@ -1008,14 +1008,14 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1008
1008
|
const foundLocation = await this._fetchLocation(this.locationInput.value.trim())
|
|
1009
1009
|
if (!foundLocation) {
|
|
1010
1010
|
const locationNameSplit = this.locationInput.value.split('-')
|
|
1011
|
+
if (locationNameSplit.length !== 3) throw new Error(i18next.t('text.invalid_format_of_location_id'))
|
|
1012
|
+
|
|
1011
1013
|
const zonePortions = locationNameSplit[0].match(/[a-zA-Z0-9]+/g)
|
|
1012
1014
|
const rowPortions = locationNameSplit[1].match(/[a-zA-Z0-9]+/g)
|
|
1013
1015
|
const columnPortions = locationNameSplit[2].match(/[a-zA-Z0-9]+/g)
|
|
1014
1016
|
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
this.locations = await this._fetchLocations(zonePortions[0], rowPortions[0], columnPortions[0])
|
|
1018
|
-
}
|
|
1017
|
+
this.incompleteLocationName = true
|
|
1018
|
+
this.locations = await this._fetchLocations(zonePortions[0], rowPortions[0], columnPortions[0])
|
|
1019
1019
|
} else {
|
|
1020
1020
|
this.incompleteLocationName = false
|
|
1021
1021
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
|
-
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
3
|
import '@things-factory/import-ui'
|
|
4
|
+
|
|
5
|
+
import gql from 'graphql-tag'
|
|
6
|
+
import { css, html } from 'lit-element'
|
|
7
|
+
|
|
8
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
9
|
import { openPopup } from '@things-factory/layout-base'
|
|
6
10
|
import { client, CustomAlert, PageView } from '@things-factory/shell'
|
|
7
11
|
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
8
12
|
import { isMobileDevice } from '@things-factory/utils'
|
|
9
|
-
import gql from 'graphql-tag'
|
|
10
|
-
import { css, html } from 'lit-element'
|
|
11
13
|
|
|
12
14
|
class TransportDriver extends localize(i18next)(PageView) {
|
|
13
15
|
static get properties() {
|
|
@@ -228,7 +230,7 @@ class TransportDriver extends localize(i18next)(PageView) {
|
|
|
228
230
|
async importHandler(patches) {
|
|
229
231
|
const response = await client.mutate({
|
|
230
232
|
mutation: gql`
|
|
231
|
-
mutation updateMultipleTransportDriver($patches: [TransportDriverPatch]!) {
|
|
233
|
+
mutation updateMultipleTransportDriver($patches: [TransportDriverPatch!]!) {
|
|
232
234
|
updateMultipleTransportDriver(patches: $patches) {
|
|
233
235
|
name
|
|
234
236
|
}
|
|
@@ -254,7 +256,7 @@ class TransportDriver extends localize(i18next)(PageView) {
|
|
|
254
256
|
} else {
|
|
255
257
|
const response = await client.mutate({
|
|
256
258
|
mutation: gql`
|
|
257
|
-
mutation updateMultipleTransportDriver($patches: [TransportDriverPatch]!) {
|
|
259
|
+
mutation updateMultipleTransportDriver($patches: [TransportDriverPatch!]!) {
|
|
258
260
|
updateMultipleTransportDriver(patches: $patches) {
|
|
259
261
|
name
|
|
260
262
|
}
|
|
@@ -290,7 +292,7 @@ class TransportDriver extends localize(i18next)(PageView) {
|
|
|
290
292
|
|
|
291
293
|
const response = await client.mutate({
|
|
292
294
|
mutation: gql`
|
|
293
|
-
mutation deleteTransportDrivers($ids: [String]!) {
|
|
295
|
+
mutation deleteTransportDrivers($ids: [String!]!) {
|
|
294
296
|
deleteTransportDrivers(ids: $ids)
|
|
295
297
|
}
|
|
296
298
|
`,
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import '@things-factory/form-ui'
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
|
-
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
3
|
import '@things-factory/import-ui'
|
|
5
|
-
|
|
6
|
-
import { client, CustomAlert, PageView } from '@things-factory/shell'
|
|
7
|
-
import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
|
|
8
|
-
import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
|
|
4
|
+
|
|
9
5
|
import gql from 'graphql-tag'
|
|
10
6
|
import { css, html } from 'lit-element'
|
|
11
7
|
|
|
8
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
|
+
import { openPopup } from '@things-factory/layout-base'
|
|
10
|
+
import { client, CustomAlert, PageView } from '@things-factory/shell'
|
|
11
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
12
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
13
|
+
|
|
12
14
|
class TransportVehicle extends localize(i18next)(PageView) {
|
|
13
15
|
static get styles() {
|
|
14
16
|
return [
|
|
@@ -239,7 +241,7 @@ class TransportVehicle extends localize(i18next)(PageView) {
|
|
|
239
241
|
async importHandler(patches) {
|
|
240
242
|
const response = await client.mutate({
|
|
241
243
|
mutation: gql`
|
|
242
|
-
mutation updateMultipleTransportVehicle($patches: [TransportVehiclePatch]!) {
|
|
244
|
+
mutation updateMultipleTransportVehicle($patches: [TransportVehiclePatch!]!) {
|
|
243
245
|
updateMultipleTransportVehicle(patches: $patches) {
|
|
244
246
|
name
|
|
245
247
|
}
|
|
@@ -265,7 +267,7 @@ class TransportVehicle extends localize(i18next)(PageView) {
|
|
|
265
267
|
} else {
|
|
266
268
|
const response = await client.mutate({
|
|
267
269
|
mutation: gql`
|
|
268
|
-
mutation updateMultipleTransportVehicle($patches: [TransportVehiclePatch]!) {
|
|
270
|
+
mutation updateMultipleTransportVehicle($patches: [TransportVehiclePatch!]!) {
|
|
269
271
|
updateMultipleTransportVehicle(patches: $patches) {
|
|
270
272
|
name
|
|
271
273
|
}
|
|
@@ -301,7 +303,7 @@ class TransportVehicle extends localize(i18next)(PageView) {
|
|
|
301
303
|
|
|
302
304
|
const response = await client.mutate({
|
|
303
305
|
mutation: gql`
|
|
304
|
-
mutation deleteTransportVehicles($ids: [String]!) {
|
|
306
|
+
mutation deleteTransportVehicles($ids: [String!]!) {
|
|
305
307
|
deleteTransportVehicles(ids: $ids)
|
|
306
308
|
}
|
|
307
309
|
`,
|
|
@@ -987,7 +987,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
987
987
|
|
|
988
988
|
const response = await client.mutate({
|
|
989
989
|
mutation: gql`
|
|
990
|
-
mutation generateArrivalNotice($arrivalNotice: NewArrivalNotice!, $files: Upload) {
|
|
990
|
+
mutation generateArrivalNotice($arrivalNotice: NewArrivalNotice!, $files: [Upload!]) {
|
|
991
991
|
generateArrivalNotice(arrivalNotice: $arrivalNotice, files: $files) {
|
|
992
992
|
id
|
|
993
993
|
name
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -42,71 +42,71 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@operato/ghost-print": "0.1.14",
|
|
45
|
-
"@things-factory/apptool-ui": "^4.0.
|
|
46
|
-
"@things-factory/attachment-ui": "^4.0.
|
|
47
|
-
"@things-factory/auth-ui": "^4.0.
|
|
48
|
-
"@things-factory/barcode-ui": "^4.0.
|
|
49
|
-
"@things-factory/biz-ui": "^4.0.
|
|
50
|
-
"@things-factory/board-service": "^4.0.
|
|
51
|
-
"@things-factory/board-ui": "^4.0.
|
|
52
|
-
"@things-factory/code-ui": "^4.0.
|
|
53
|
-
"@things-factory/context-ui": "^4.0.
|
|
54
|
-
"@things-factory/export-ui": "^4.0.
|
|
55
|
-
"@things-factory/export-ui-csv": "^4.0.
|
|
56
|
-
"@things-factory/export-ui-excel": "^4.0.
|
|
57
|
-
"@things-factory/fav-base": "^4.0.
|
|
58
|
-
"@things-factory/form-ui": "^4.0.
|
|
59
|
-
"@things-factory/grist-ui": "^4.0.
|
|
60
|
-
"@things-factory/help": "^4.0.
|
|
61
|
-
"@things-factory/i18n-ui": "^4.0.
|
|
62
|
-
"@things-factory/id-rule-base": "^4.0.
|
|
63
|
-
"@things-factory/import-ui": "^4.0.
|
|
64
|
-
"@things-factory/import-ui-excel": "^4.0.
|
|
65
|
-
"@things-factory/menu-ui": "^4.0.
|
|
66
|
-
"@things-factory/more-ui": "^4.0.
|
|
67
|
-
"@things-factory/notification": "^4.0.
|
|
68
|
-
"@things-factory/pdf": "^4.0.
|
|
69
|
-
"@things-factory/print-proxy-service": "^4.0.
|
|
70
|
-
"@things-factory/print-service": "^4.0.
|
|
71
|
-
"@things-factory/print-ui": "^4.0.
|
|
72
|
-
"@things-factory/product-base": "^4.0.
|
|
73
|
-
"@things-factory/resource-ui": "^4.0.
|
|
74
|
-
"@things-factory/sales-ui": "^4.0.
|
|
75
|
-
"@things-factory/scene-chartjs": "^4.0.
|
|
76
|
-
"@things-factory/scene-clock": "^4.0.
|
|
77
|
-
"@things-factory/scene-clone": "^4.0.
|
|
78
|
-
"@things-factory/scene-compass": "^4.0.
|
|
79
|
-
"@things-factory/scene-data-transform": "^4.0.
|
|
80
|
-
"@things-factory/scene-excel": "^4.0.
|
|
81
|
-
"@things-factory/scene-firebase": "^4.0.
|
|
82
|
-
"@things-factory/scene-form": "^4.0.
|
|
83
|
-
"@things-factory/scene-gauge": "^4.0.
|
|
84
|
-
"@things-factory/scene-google-map": "^4.0.
|
|
85
|
-
"@things-factory/scene-graphql": "^4.0.
|
|
86
|
-
"@things-factory/scene-half-roundrect": "^4.0.
|
|
87
|
-
"@things-factory/scene-indoor-map": "^4.0.
|
|
88
|
-
"@things-factory/scene-label": "^4.0.
|
|
89
|
-
"@things-factory/scene-legend": "^4.0.
|
|
90
|
-
"@things-factory/scene-marker": "^4.0.
|
|
91
|
-
"@things-factory/scene-mqtt": "^4.0.
|
|
92
|
-
"@things-factory/scene-news-ticker": "^4.0.
|
|
93
|
-
"@things-factory/scene-progressbar": "^4.0.
|
|
94
|
-
"@things-factory/scene-random": "^4.0.
|
|
95
|
-
"@things-factory/scene-restful": "^4.0.
|
|
96
|
-
"@things-factory/scene-switch": "^4.0.
|
|
97
|
-
"@things-factory/scene-tab": "^4.0.
|
|
98
|
-
"@things-factory/scene-table": "^4.0.
|
|
99
|
-
"@things-factory/scene-visualizer": "^4.0.
|
|
100
|
-
"@things-factory/scene-wheel-sorter": "^4.0.
|
|
101
|
-
"@things-factory/setting-ui": "^4.0.
|
|
102
|
-
"@things-factory/system-ui": "^4.0.
|
|
103
|
-
"@things-factory/transport-base": "^4.0.
|
|
104
|
-
"@things-factory/tutorial-ui": "^4.0.
|
|
105
|
-
"@things-factory/warehouse-base": "^4.0.
|
|
106
|
-
"@things-factory/worksheet-base": "^4.0.
|
|
45
|
+
"@things-factory/apptool-ui": "^4.0.4",
|
|
46
|
+
"@things-factory/attachment-ui": "^4.0.4",
|
|
47
|
+
"@things-factory/auth-ui": "^4.0.4",
|
|
48
|
+
"@things-factory/barcode-ui": "^4.0.4",
|
|
49
|
+
"@things-factory/biz-ui": "^4.0.4",
|
|
50
|
+
"@things-factory/board-service": "^4.0.4",
|
|
51
|
+
"@things-factory/board-ui": "^4.0.4",
|
|
52
|
+
"@things-factory/code-ui": "^4.0.4",
|
|
53
|
+
"@things-factory/context-ui": "^4.0.4",
|
|
54
|
+
"@things-factory/export-ui": "^4.0.4",
|
|
55
|
+
"@things-factory/export-ui-csv": "^4.0.4",
|
|
56
|
+
"@things-factory/export-ui-excel": "^4.0.4",
|
|
57
|
+
"@things-factory/fav-base": "^4.0.4",
|
|
58
|
+
"@things-factory/form-ui": "^4.0.4",
|
|
59
|
+
"@things-factory/grist-ui": "^4.0.1",
|
|
60
|
+
"@things-factory/help": "^4.0.4",
|
|
61
|
+
"@things-factory/i18n-ui": "^4.0.4",
|
|
62
|
+
"@things-factory/id-rule-base": "^4.0.4",
|
|
63
|
+
"@things-factory/import-ui": "^4.0.4",
|
|
64
|
+
"@things-factory/import-ui-excel": "^4.0.4",
|
|
65
|
+
"@things-factory/menu-ui": "^4.0.4",
|
|
66
|
+
"@things-factory/more-ui": "^4.0.4",
|
|
67
|
+
"@things-factory/notification": "^4.0.4",
|
|
68
|
+
"@things-factory/pdf": "^4.0.1",
|
|
69
|
+
"@things-factory/print-proxy-service": "^4.0.4",
|
|
70
|
+
"@things-factory/print-service": "^4.0.4",
|
|
71
|
+
"@things-factory/print-ui": "^4.0.4",
|
|
72
|
+
"@things-factory/product-base": "^4.0.4",
|
|
73
|
+
"@things-factory/resource-ui": "^4.0.4",
|
|
74
|
+
"@things-factory/sales-ui": "^4.0.4",
|
|
75
|
+
"@things-factory/scene-chartjs": "^4.0.4",
|
|
76
|
+
"@things-factory/scene-clock": "^4.0.4",
|
|
77
|
+
"@things-factory/scene-clone": "^4.0.4",
|
|
78
|
+
"@things-factory/scene-compass": "^4.0.4",
|
|
79
|
+
"@things-factory/scene-data-transform": "^4.0.4",
|
|
80
|
+
"@things-factory/scene-excel": "^4.0.4",
|
|
81
|
+
"@things-factory/scene-firebase": "^4.0.4",
|
|
82
|
+
"@things-factory/scene-form": "^4.0.4",
|
|
83
|
+
"@things-factory/scene-gauge": "^4.0.4",
|
|
84
|
+
"@things-factory/scene-google-map": "^4.0.4",
|
|
85
|
+
"@things-factory/scene-graphql": "^4.0.4",
|
|
86
|
+
"@things-factory/scene-half-roundrect": "^4.0.4",
|
|
87
|
+
"@things-factory/scene-indoor-map": "^4.0.4",
|
|
88
|
+
"@things-factory/scene-label": "^4.0.4",
|
|
89
|
+
"@things-factory/scene-legend": "^4.0.4",
|
|
90
|
+
"@things-factory/scene-marker": "^4.0.4",
|
|
91
|
+
"@things-factory/scene-mqtt": "^4.0.4",
|
|
92
|
+
"@things-factory/scene-news-ticker": "^4.0.4",
|
|
93
|
+
"@things-factory/scene-progressbar": "^4.0.4",
|
|
94
|
+
"@things-factory/scene-random": "^4.0.4",
|
|
95
|
+
"@things-factory/scene-restful": "^4.0.4",
|
|
96
|
+
"@things-factory/scene-switch": "^4.0.4",
|
|
97
|
+
"@things-factory/scene-tab": "^4.0.4",
|
|
98
|
+
"@things-factory/scene-table": "^4.0.4",
|
|
99
|
+
"@things-factory/scene-visualizer": "^4.0.4",
|
|
100
|
+
"@things-factory/scene-wheel-sorter": "^4.0.4",
|
|
101
|
+
"@things-factory/setting-ui": "^4.0.4",
|
|
102
|
+
"@things-factory/system-ui": "^4.0.4",
|
|
103
|
+
"@things-factory/transport-base": "^4.0.4",
|
|
104
|
+
"@things-factory/tutorial-ui": "^4.0.4",
|
|
105
|
+
"@things-factory/warehouse-base": "^4.0.4",
|
|
106
|
+
"@things-factory/worksheet-base": "^4.0.4"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@things-factory/builder": "^4.0.
|
|
109
|
+
"@things-factory/builder": "^4.0.3"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "292d7c4e2675d228d6be474ea6a0525d26ac1657"
|
|
112
112
|
}
|
package/translations/en.json
CHANGED
|
@@ -1251,6 +1251,7 @@
|
|
|
1251
1251
|
"text.you_wont_be_able_to_revert_this": "you won't be able to revert this",
|
|
1252
1252
|
"text.you.are.now.in": "you are now in {state.text}",
|
|
1253
1253
|
"text.your_work_has_completed": "your work has completed",
|
|
1254
|
+
"text.invalid_format_of_location_id": "invalid format of location id",
|
|
1254
1255
|
"title.add_product": "add product",
|
|
1255
1256
|
"title.add_rule_field": "add rule field",
|
|
1256
1257
|
"title.adjust_batch_id": "adjust batch no",
|
package/translations/ko.json
CHANGED
|
@@ -1351,6 +1351,7 @@
|
|
|
1351
1351
|
"text.you.are.now.in": "당신은 {state} 입니다",
|
|
1352
1352
|
"text.your_work_has_completed": "작업이 완료 되었습니다",
|
|
1353
1353
|
"text.your_working_is_completed": "your task for putaway is done",
|
|
1354
|
+
"text.invalid_format_of_location_id": "유효하지 않은 유형의 로케이션 아이디 입니다",
|
|
1354
1355
|
"title.add_product": "[ko] add product",
|
|
1355
1356
|
"title.add_rule_field": "규칙 필드 추가",
|
|
1356
1357
|
"title.adjust_batch_id": "배치번호 조정",
|
package/translations/ms.json
CHANGED
|
@@ -1262,6 +1262,7 @@
|
|
|
1262
1262
|
"text.you_wont_be_able_to_revert_this": "anda tidak boleh kembali selepas langkah ini",
|
|
1263
1263
|
"text.you.are.now.in": "anda berada di {state}",
|
|
1264
1264
|
"text.your_work_has_completed": "kerja anda telah selesai",
|
|
1265
|
+
"text.invalid_format_of_location_id": "[ms]invalid format of location id",
|
|
1265
1266
|
"title.add_product": "[ms] add product",
|
|
1266
1267
|
"title.add_rule_field": "add rule field",
|
|
1267
1268
|
"title.adjust_batch_id": "adjust batch no",
|
package/translations/zh.json
CHANGED
|
@@ -1229,6 +1229,7 @@
|
|
|
1229
1229
|
"text.you_wont_be_able_to_revert_this": "you won't be able to revert this",
|
|
1230
1230
|
"text.you.are.now.in": "you are now in {state.text}",
|
|
1231
1231
|
"text.your_work_has_completed": "your work has completed",
|
|
1232
|
+
"text.invalid_format_of_location_id": "[zh]invalid format of location id",
|
|
1232
1233
|
"title.add_product": "[zh] add product",
|
|
1233
1234
|
"title.add_rule_field": "add rule field",
|
|
1234
1235
|
"title.adjust_batch_id": "adjust batch no",
|
package/config.development.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
port: 4000,
|
|
3
|
-
domainType: 'warehouse',
|
|
4
|
-
domainExtType: 'warehouse',
|
|
5
|
-
useVirtualHostBasedDomain: false,
|
|
6
|
-
subdomainOffset: 2,
|
|
7
|
-
SECRET: '0xD58F835B61C217A76CA5FA4a70a1D0d4D79dBD20',
|
|
8
|
-
reportApiUrl: 'https://operatowms.com/rest/report/show_html',
|
|
9
|
-
email: {
|
|
10
|
-
host: 'smtp.office365.com', // your sender-email smtp host
|
|
11
|
-
port: 587, // smtp server port
|
|
12
|
-
secure: false, // true for 465, false for other ports
|
|
13
|
-
auth: {
|
|
14
|
-
user: 'no-reply@hatiolab.com',
|
|
15
|
-
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
16
|
-
},
|
|
17
|
-
secureConnection: false,
|
|
18
|
-
tls: {
|
|
19
|
-
ciphers: 'SSLv3'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
logger: {
|
|
23
|
-
file: {
|
|
24
|
-
filename: 'logs/application-%DATE%.log',
|
|
25
|
-
datePattern: 'YYYY-MM-DD-HH',
|
|
26
|
-
zippedArchive: false,
|
|
27
|
-
maxSize: '20m',
|
|
28
|
-
maxFiles: '2d',
|
|
29
|
-
level: 'info'
|
|
30
|
-
},
|
|
31
|
-
console: {
|
|
32
|
-
level: 'silly'
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
ormconfig: {
|
|
36
|
-
name: 'default',
|
|
37
|
-
type: 'postgres',
|
|
38
|
-
host: 'localhost',
|
|
39
|
-
port: 5432,
|
|
40
|
-
database: 'tg-test',
|
|
41
|
-
username: 'postgres',
|
|
42
|
-
password: '1',
|
|
43
|
-
synchronize: true,
|
|
44
|
-
logging: true
|
|
45
|
-
},
|
|
46
|
-
uploads: 'uploads',
|
|
47
|
-
attachmentsPath: 'attachments'
|
|
48
|
-
}
|