@things-factory/operato-pms 4.0.28 → 4.0.33
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.33",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -38,63 +38,63 @@
|
|
|
38
38
|
"docker:run": "docker run -p 4000:3000 hatiolab/operato-pms:latest"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@operato/ghost-print": "^0.3.
|
|
42
|
-
"@operato/scene-chartjs": "^0.1.
|
|
43
|
-
"@operato/scene-clock": "^0.1.
|
|
44
|
-
"@operato/scene-clone": "^0.1.
|
|
45
|
-
"@operato/scene-compass": "^0.1.
|
|
46
|
-
"@operato/scene-gauge": "^0.1.
|
|
47
|
-
"@operato/scene-indoor-map": "^0.1.
|
|
48
|
-
"@operato/scene-legend": "^0.1.
|
|
49
|
-
"@operato/scene-progressbar": "^0.1.
|
|
50
|
-
"@operato/scene-random": "^0.1.
|
|
51
|
-
"@operato/scene-switch": "^0.1.
|
|
52
|
-
"@operato/scene-tab": "^0.1.
|
|
53
|
-
"@operato/scene-table": "^0.1.
|
|
54
|
-
"@operato/scene-wheel-sorter": "^0.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.
|
|
41
|
+
"@operato/ghost-print": "^0.3.14",
|
|
42
|
+
"@operato/scene-chartjs": "^0.1.2",
|
|
43
|
+
"@operato/scene-clock": "^0.1.2",
|
|
44
|
+
"@operato/scene-clone": "^0.1.2",
|
|
45
|
+
"@operato/scene-compass": "^0.1.2",
|
|
46
|
+
"@operato/scene-gauge": "^0.1.2",
|
|
47
|
+
"@operato/scene-indoor-map": "^0.1.2",
|
|
48
|
+
"@operato/scene-legend": "^0.1.2",
|
|
49
|
+
"@operato/scene-progressbar": "^0.1.2",
|
|
50
|
+
"@operato/scene-random": "^0.1.2",
|
|
51
|
+
"@operato/scene-switch": "^0.1.2",
|
|
52
|
+
"@operato/scene-tab": "^0.1.2",
|
|
53
|
+
"@operato/scene-table": "^0.1.2",
|
|
54
|
+
"@operato/scene-wheel-sorter": "^0.1.2",
|
|
55
|
+
"@things-factory/apptool-ui": "^4.0.33",
|
|
56
|
+
"@things-factory/auth-ui": "^4.0.33",
|
|
57
|
+
"@things-factory/biz-base": "^4.0.33",
|
|
58
|
+
"@things-factory/board-service": "^4.0.33",
|
|
59
|
+
"@things-factory/board-ui": "^4.0.33",
|
|
60
|
+
"@things-factory/code-ui": "^4.0.33",
|
|
61
|
+
"@things-factory/context-ui": "^4.0.33",
|
|
62
|
+
"@things-factory/dashboard": "^4.0.33",
|
|
63
|
+
"@things-factory/document-template-ui": "^4.0.33",
|
|
64
|
+
"@things-factory/export-ui": "^4.0.33",
|
|
65
|
+
"@things-factory/export-ui-csv": "^4.0.33",
|
|
66
|
+
"@things-factory/export-ui-excel": "^4.0.33",
|
|
67
|
+
"@things-factory/fav-base": "^4.0.33",
|
|
68
|
+
"@things-factory/form-ui": "^4.0.33",
|
|
69
|
+
"@things-factory/grist-ui": "^4.0.33",
|
|
70
|
+
"@things-factory/help": "^4.0.33",
|
|
71
|
+
"@things-factory/i18n-ui": "^4.0.33",
|
|
72
|
+
"@things-factory/import-ui": "^4.0.33",
|
|
73
|
+
"@things-factory/import-ui-excel": "^4.0.33",
|
|
74
|
+
"@things-factory/lite-menu": "^4.0.33",
|
|
75
|
+
"@things-factory/more-ui": "^4.0.33",
|
|
76
|
+
"@things-factory/notification": "^4.0.33",
|
|
77
|
+
"@things-factory/print-ui": "^4.0.33",
|
|
78
|
+
"@things-factory/resource-ui": "^4.0.33",
|
|
79
|
+
"@things-factory/scene-data-transform": "^4.0.33",
|
|
80
|
+
"@things-factory/scene-excel": "^4.0.33",
|
|
81
|
+
"@things-factory/scene-firebase": "^4.0.33",
|
|
82
|
+
"@things-factory/scene-form": "^4.0.33",
|
|
83
|
+
"@things-factory/scene-google-map": "^4.0.33",
|
|
84
|
+
"@things-factory/scene-graphql": "^4.0.33",
|
|
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.33",
|
|
87
|
+
"@things-factory/scene-marker": "^4.0.33",
|
|
88
|
+
"@things-factory/scene-mqtt": "^4.0.33",
|
|
89
|
+
"@things-factory/scene-news-ticker": "^4.0.33",
|
|
90
|
+
"@things-factory/scene-restful": "^4.0.33",
|
|
91
|
+
"@things-factory/scene-visualizer": "^4.0.33",
|
|
92
|
+
"@things-factory/setting-ui": "^4.0.33",
|
|
93
|
+
"@things-factory/shell": "^4.0.33",
|
|
94
|
+
"@things-factory/system-ui": "^4.0.33"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@things-factory/builder": "^4.0.
|
|
97
|
+
"@things-factory/builder": "^4.0.33"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "0cd5e3b224feb8d526dd5ebc0ee838ff55e2c91c"
|
|
100
100
|
}
|