@things-factory/operato-pms 4.0.28 → 4.0.30
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.
|
@@ -196,7 +196,7 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
196
196
|
this.dispatchmentGristConfig = {
|
|
197
197
|
pagination: { infinite: true },
|
|
198
198
|
list: {
|
|
199
|
-
fields: ['
|
|
199
|
+
fields: ['ramp', 'totalTonnage', 'releaseTonange']
|
|
200
200
|
},
|
|
201
201
|
columns: [
|
|
202
202
|
{ type: 'gutter', gutterName: 'sequence' },
|
|
@@ -221,11 +221,13 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
221
221
|
editable: true,
|
|
222
222
|
options: {
|
|
223
223
|
queryName: 'ramps',
|
|
224
|
+
basicArgs: { filters: [] },
|
|
224
225
|
select: [
|
|
225
226
|
{ name: 'id', hidden: true },
|
|
226
|
-
{ name: 'name', header: i18next.t('field.name'), width: 200 }
|
|
227
|
+
{ name: 'name', header: i18next.t('field.name'), width: 200 },
|
|
228
|
+
{ name: 'block', type: 'object', queryName: 'blocks', field: 'name', width: 200 }
|
|
227
229
|
],
|
|
228
|
-
list: { fields: ['id', 'name'] }
|
|
230
|
+
list: { fields: ['id', 'name', 'block'] }
|
|
229
231
|
}
|
|
230
232
|
},
|
|
231
233
|
width: 130
|
|
@@ -336,7 +338,8 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
336
338
|
...dailyDispatch,
|
|
337
339
|
driver: { id: this.selectedDriverID, name: this.selectedDriverName },
|
|
338
340
|
transport: { id: this.selectedTruckID, name: this.selectedTruckName },
|
|
339
|
-
dispatchTo: { id: this.selectedMillID, name: this.selectedMillName }
|
|
341
|
+
dispatchTo: { id: this.selectedMillID, name: this.selectedMillName },
|
|
342
|
+
percentage: parseFloat(dailyDispatch.percentage)
|
|
340
343
|
}
|
|
341
344
|
|
|
342
345
|
const response = await client.mutate({
|
|
@@ -362,8 +365,6 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
362
365
|
}
|
|
363
366
|
|
|
364
367
|
_validateForm() {
|
|
365
|
-
if (!this.dispatchmentForm.checkValidity()) throw new Error(i18next.t('text.dispatch_record_invalid'))
|
|
366
|
-
|
|
367
368
|
if (this.percentageInput?.value) {
|
|
368
369
|
if (isNaN(this.percentageInput.value) || this.percentageInput?.value <= 0) {
|
|
369
370
|
throw new Error(i18next.t('text.x_has_invalid_value', { state: 'label.percentage' }))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-pms",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.30",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"docker:run": "docker run -p 4000:3000 hatiolab/operato-pms:latest"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@operato/ghost-print": "^0.3.
|
|
41
|
+
"@operato/ghost-print": "^0.3.7",
|
|
42
42
|
"@operato/scene-chartjs": "^0.1.1",
|
|
43
43
|
"@operato/scene-clock": "^0.1.1",
|
|
44
44
|
"@operato/scene-clone": "^0.1.1",
|
|
@@ -52,49 +52,49 @@
|
|
|
52
52
|
"@operato/scene-tab": "^0.1.1",
|
|
53
53
|
"@operato/scene-table": "^0.1.1",
|
|
54
54
|
"@operato/scene-wheel-sorter": "^0.1.1",
|
|
55
|
-
"@things-factory/apptool-ui": "^4.0.
|
|
56
|
-
"@things-factory/auth-ui": "^4.0.
|
|
57
|
-
"@things-factory/biz-base": "^4.0.
|
|
58
|
-
"@things-factory/board-service": "^4.0.
|
|
59
|
-
"@things-factory/board-ui": "^4.0.
|
|
60
|
-
"@things-factory/code-ui": "^4.0.
|
|
61
|
-
"@things-factory/context-ui": "^4.0.
|
|
62
|
-
"@things-factory/dashboard": "^4.0.
|
|
63
|
-
"@things-factory/document-template-ui": "^4.0.
|
|
64
|
-
"@things-factory/export-ui": "^4.0.
|
|
65
|
-
"@things-factory/export-ui-csv": "^4.0.
|
|
66
|
-
"@things-factory/export-ui-excel": "^4.0.
|
|
67
|
-
"@things-factory/fav-base": "^4.0.
|
|
68
|
-
"@things-factory/form-ui": "^4.0.
|
|
69
|
-
"@things-factory/grist-ui": "^4.0.
|
|
70
|
-
"@things-factory/help": "^4.0.
|
|
71
|
-
"@things-factory/i18n-ui": "^4.0.
|
|
72
|
-
"@things-factory/import-ui": "^4.0.
|
|
73
|
-
"@things-factory/import-ui-excel": "^4.0.
|
|
74
|
-
"@things-factory/lite-menu": "^4.0.
|
|
75
|
-
"@things-factory/more-ui": "^4.0.
|
|
76
|
-
"@things-factory/notification": "^4.0.
|
|
77
|
-
"@things-factory/print-ui": "^4.0.
|
|
78
|
-
"@things-factory/resource-ui": "^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-google-map": "^4.0.
|
|
84
|
-
"@things-factory/scene-graphql": "^4.0.
|
|
55
|
+
"@things-factory/apptool-ui": "^4.0.30",
|
|
56
|
+
"@things-factory/auth-ui": "^4.0.30",
|
|
57
|
+
"@things-factory/biz-base": "^4.0.30",
|
|
58
|
+
"@things-factory/board-service": "^4.0.30",
|
|
59
|
+
"@things-factory/board-ui": "^4.0.30",
|
|
60
|
+
"@things-factory/code-ui": "^4.0.30",
|
|
61
|
+
"@things-factory/context-ui": "^4.0.30",
|
|
62
|
+
"@things-factory/dashboard": "^4.0.30",
|
|
63
|
+
"@things-factory/document-template-ui": "^4.0.30",
|
|
64
|
+
"@things-factory/export-ui": "^4.0.30",
|
|
65
|
+
"@things-factory/export-ui-csv": "^4.0.30",
|
|
66
|
+
"@things-factory/export-ui-excel": "^4.0.30",
|
|
67
|
+
"@things-factory/fav-base": "^4.0.30",
|
|
68
|
+
"@things-factory/form-ui": "^4.0.30",
|
|
69
|
+
"@things-factory/grist-ui": "^4.0.30",
|
|
70
|
+
"@things-factory/help": "^4.0.30",
|
|
71
|
+
"@things-factory/i18n-ui": "^4.0.30",
|
|
72
|
+
"@things-factory/import-ui": "^4.0.30",
|
|
73
|
+
"@things-factory/import-ui-excel": "^4.0.30",
|
|
74
|
+
"@things-factory/lite-menu": "^4.0.30",
|
|
75
|
+
"@things-factory/more-ui": "^4.0.30",
|
|
76
|
+
"@things-factory/notification": "^4.0.30",
|
|
77
|
+
"@things-factory/print-ui": "^4.0.30",
|
|
78
|
+
"@things-factory/resource-ui": "^4.0.30",
|
|
79
|
+
"@things-factory/scene-data-transform": "^4.0.30",
|
|
80
|
+
"@things-factory/scene-excel": "^4.0.30",
|
|
81
|
+
"@things-factory/scene-firebase": "^4.0.30",
|
|
82
|
+
"@things-factory/scene-form": "^4.0.30",
|
|
83
|
+
"@things-factory/scene-google-map": "^4.0.30",
|
|
84
|
+
"@things-factory/scene-graphql": "^4.0.30",
|
|
85
85
|
"@things-factory/scene-half-roundrect": "^4.0.9",
|
|
86
|
-
"@things-factory/scene-label": "^4.0.
|
|
87
|
-
"@things-factory/scene-marker": "^4.0.
|
|
88
|
-
"@things-factory/scene-mqtt": "^4.0.
|
|
89
|
-
"@things-factory/scene-news-ticker": "^4.0.
|
|
90
|
-
"@things-factory/scene-restful": "^4.0.
|
|
91
|
-
"@things-factory/scene-visualizer": "^4.0.
|
|
92
|
-
"@things-factory/setting-ui": "^4.0.
|
|
93
|
-
"@things-factory/shell": "^4.0.
|
|
94
|
-
"@things-factory/system-ui": "^4.0.
|
|
86
|
+
"@things-factory/scene-label": "^4.0.30",
|
|
87
|
+
"@things-factory/scene-marker": "^4.0.30",
|
|
88
|
+
"@things-factory/scene-mqtt": "^4.0.30",
|
|
89
|
+
"@things-factory/scene-news-ticker": "^4.0.30",
|
|
90
|
+
"@things-factory/scene-restful": "^4.0.30",
|
|
91
|
+
"@things-factory/scene-visualizer": "^4.0.30",
|
|
92
|
+
"@things-factory/setting-ui": "^4.0.30",
|
|
93
|
+
"@things-factory/shell": "^4.0.30",
|
|
94
|
+
"@things-factory/system-ui": "^4.0.30"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@things-factory/builder": "^4.0.
|
|
97
|
+
"@things-factory/builder": "^4.0.30"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "4ab590326e3fc60d113fb438e90eefee708f1f19"
|
|
100
100
|
}
|