@things-factory/operato-pms 5.0.0-alpha.5 → 5.0.0-alpha.52
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.
|
@@ -209,7 +209,6 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
209
209
|
const newData = data.records.filter((_, idx) => idx !== rowIndex)
|
|
210
210
|
this.dispatchmentData = { ...this.dispatchmentData, records: newData }
|
|
211
211
|
this.dispatchmentGrist.dirtyData.records = newData
|
|
212
|
-
this._updateInventoryList()
|
|
213
212
|
}
|
|
214
213
|
}
|
|
215
214
|
},
|
|
@@ -272,7 +271,6 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
272
271
|
if (changedColumn === 'collectedRampWeight') {
|
|
273
272
|
this._validateReleaseTonnage(changeRecord.collectedRampWeight)
|
|
274
273
|
}
|
|
275
|
-
this._updateInventoryList()
|
|
276
274
|
} catch (e) {
|
|
277
275
|
const beforeValue = event.detail.before && event.detail.before[event.detail.column.name]
|
|
278
276
|
if (beforeValue) {
|
|
@@ -290,33 +288,6 @@ class DispatchmentCreateRecord extends localize(i18next)(PageView) {
|
|
|
290
288
|
}
|
|
291
289
|
}
|
|
292
290
|
|
|
293
|
-
async _updateInventoryList() {
|
|
294
|
-
const _selectedRamp = (this.dispatchmentGrist.dirtyData.records || []).map(record => record.ramp.id)
|
|
295
|
-
this.dispatchmentGristConfig = {
|
|
296
|
-
...this.dispatchmentGristConfig,
|
|
297
|
-
columns: this.dispatchmentGristConfig.columns.map(column => {
|
|
298
|
-
if (column.name === 'ramp') {
|
|
299
|
-
column.record.options.basicArgs = {
|
|
300
|
-
...column.record.options.basicArgs,
|
|
301
|
-
filters: [...column.record.options.basicArgs.filters.filter(filter => filter.name !== 'id')]
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
if (_selectedRamp.length)
|
|
305
|
-
column.record.options.basicArgs.filters = [
|
|
306
|
-
...column.record.options.basicArgs.filters,
|
|
307
|
-
{
|
|
308
|
-
name: 'id',
|
|
309
|
-
value: _selectedRamp,
|
|
310
|
-
operator: 'notin'
|
|
311
|
-
}
|
|
312
|
-
]
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
return column
|
|
316
|
-
})
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
291
|
async _generateDispatchmentRecord() {
|
|
321
292
|
try {
|
|
322
293
|
this._validateForm()
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.NoGenerator = void 0;
|
|
7
|
-
const
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
8
5
|
class NoGenerator {
|
|
9
6
|
static block() {
|
|
10
|
-
return `BLOCK-${(0,
|
|
7
|
+
return `BLOCK-${(0, uuid_1.v4)()}`;
|
|
11
8
|
}
|
|
12
9
|
static blockDetail() {
|
|
13
|
-
return `BLOCK-DETAIL-${(0,
|
|
10
|
+
return `BLOCK-DETAIL-${(0, uuid_1.v4)()}`;
|
|
14
11
|
}
|
|
15
12
|
static dailyHarvest() {
|
|
16
13
|
const currentDate = new Date();
|
|
@@ -25,28 +22,28 @@ class NoGenerator {
|
|
|
25
22
|
return `DISPATCHMENT-${currentDate.getFullYear()}${currentDate.getMonth() + 1}${currentDate.getDate()}${currentDate.getHours()}${currentDate.getMinutes()}${currentDate.getSeconds()}${currentDate.getMilliseconds()}`;
|
|
26
23
|
}
|
|
27
24
|
static dailyHarvestDetail() {
|
|
28
|
-
return `HARVEST-DETAIL-${(0,
|
|
25
|
+
return `HARVEST-DETAIL-${(0, uuid_1.v4)()}`;
|
|
29
26
|
}
|
|
30
27
|
static dailyLoadingDetail() {
|
|
31
|
-
return `LOADING-DETAIL-${(0,
|
|
28
|
+
return `LOADING-DETAIL-${(0, uuid_1.v4)()}`;
|
|
32
29
|
}
|
|
33
30
|
static dailyDispatchDetail() {
|
|
34
|
-
return `DISPATCH-DETAIL-${(0,
|
|
31
|
+
return `DISPATCH-DETAIL-${(0, uuid_1.v4)()}`;
|
|
35
32
|
}
|
|
36
33
|
static dailyLoadingRamp() {
|
|
37
|
-
return `LOADING-RAMP-${(0,
|
|
34
|
+
return `LOADING-RAMP-${(0, uuid_1.v4)()}`;
|
|
38
35
|
}
|
|
39
36
|
static transactionHistoryName() {
|
|
40
|
-
return (0,
|
|
37
|
+
return (0, uuid_1.v4)();
|
|
41
38
|
}
|
|
42
39
|
static rampTonnageHistoryName() {
|
|
43
|
-
return (0,
|
|
40
|
+
return (0, uuid_1.v4)();
|
|
44
41
|
}
|
|
45
42
|
static fieldBunchName() {
|
|
46
|
-
return (0,
|
|
43
|
+
return (0, uuid_1.v4)();
|
|
47
44
|
}
|
|
48
45
|
static rampTonnageName() {
|
|
49
|
-
return (0,
|
|
46
|
+
return (0, uuid_1.v4)();
|
|
50
47
|
}
|
|
51
48
|
}
|
|
52
49
|
exports.NoGenerator = NoGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-generator.js","sourceRoot":"","sources":["../../server/utils/no-generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"no-generator.js","sourceRoot":"","sources":["../../server/utils/no-generator.ts"],"names":[],"mappings":";;;AAAA,+BAAmC;AAEnC,MAAa,WAAW;IACtB,MAAM,CAAC,KAAK;QACV,OAAO,SAAS,IAAA,SAAM,GAAE,EAAE,CAAA;IAC5B,CAAC;IAED,MAAM,CAAC,WAAW;QAChB,OAAO,gBAAgB,IAAA,SAAM,GAAE,EAAE,CAAA;IACnC,CAAC;IAED,MAAM,CAAC,YAAY;QACjB,MAAM,WAAW,GAAG,IAAI,IAAI,EAAE,CAAA;QAC9B,OAAO,WAAW,WAAW,CAAC,WAAW,EAAE,GACzC,WAAW,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AC;IAED,MAAM,CAAC,sBAAsB;QAC3B,OAAO,IAAA,SAAM,GAAE,CAAA;IACjB,CAAC;IAED,MAAM,CAAC,sBAAsB;QAC3B,OAAO,IAAA,SAAM,GAAE,CAAA;IACjB,CAAC;IAED,MAAM,CAAC,cAAc;QACnB,OAAO,IAAA,SAAM,GAAE,CAAA;IACjB,CAAC;IAED,MAAM,CAAC,eAAe;QACpB,OAAO,IAAA,SAAM,GAAE,CAAA;IACjB,CAAC;CACF;AA7DD,kCA6DC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-pms",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.52",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -38,63 +38,61 @@
|
|
|
38
38
|
"docker:run": "docker run --platform linux/amd64 -p 4000:3000 hatiolab/operato-pms:latest"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@operato/ghost-print": "1.0.0-
|
|
42
|
-
"@operato/scene-chartjs": "^0.
|
|
43
|
-
"@operato/scene-clock": "^0.
|
|
44
|
-
"@operato/scene-clone": "^0.
|
|
45
|
-
"@operato/scene-compass": "^0.
|
|
46
|
-
"@operato/scene-
|
|
47
|
-
"@operato/scene-
|
|
48
|
-
"@operato/scene-
|
|
49
|
-
"@operato/scene-
|
|
50
|
-
"@operato/scene-
|
|
51
|
-
"@operato/scene-
|
|
52
|
-
"@operato/scene-
|
|
53
|
-
"@operato/scene-
|
|
54
|
-
"@operato/scene-
|
|
55
|
-
"@operato/scene-
|
|
56
|
-
"@operato/scene-
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@things-factory/
|
|
65
|
-
"@things-factory/
|
|
66
|
-
"@things-factory/
|
|
67
|
-
"@things-factory/
|
|
68
|
-
"@things-factory/
|
|
69
|
-
"@things-factory/
|
|
70
|
-
"@things-factory/
|
|
71
|
-
"@things-factory/
|
|
72
|
-
"@things-factory/
|
|
73
|
-
"@things-factory/
|
|
74
|
-
"@things-factory/
|
|
75
|
-
"@things-factory/
|
|
76
|
-
"@things-factory/
|
|
77
|
-
"@things-factory/
|
|
78
|
-
"@things-factory/
|
|
79
|
-
"@things-factory/
|
|
80
|
-
"@things-factory/
|
|
81
|
-
"@things-factory/
|
|
82
|
-
"@things-factory/
|
|
83
|
-
"@things-factory/
|
|
84
|
-
"@things-factory/
|
|
85
|
-
"@things-factory/
|
|
86
|
-
"@things-factory/
|
|
87
|
-
"@things-factory/
|
|
88
|
-
"@things-factory/scene-
|
|
89
|
-
"@things-factory/scene-
|
|
90
|
-
"@things-factory/
|
|
91
|
-
"@things-factory/
|
|
92
|
-
"@things-factory/
|
|
93
|
-
"@things-factory/shell": "^5.0.0-alpha.5",
|
|
94
|
-
"@things-factory/system-ui": "^5.0.0-alpha.5"
|
|
41
|
+
"@operato/ghost-print": "1.0.0-beta.26",
|
|
42
|
+
"@operato/scene-chartjs": "^1.0.0-alpha.18",
|
|
43
|
+
"@operato/scene-clock": "^1.0.0-alpha.18",
|
|
44
|
+
"@operato/scene-clone": "^1.0.0-alpha.18",
|
|
45
|
+
"@operato/scene-compass": "^1.0.0-alpha.18",
|
|
46
|
+
"@operato/scene-data-transform": "^1.0.0-alpha.18",
|
|
47
|
+
"@operato/scene-excel": "^1.0.0-alpha.18",
|
|
48
|
+
"@operato/scene-form": "^1.0.0-alpha.18",
|
|
49
|
+
"@operato/scene-gauge": "^1.0.0-alpha.18",
|
|
50
|
+
"@operato/scene-graphql": "^1.0.0-alpha.18",
|
|
51
|
+
"@operato/scene-half-roundrect": "^1.0.0-alpha.18",
|
|
52
|
+
"@operato/scene-indoor-map": "^1.0.0-alpha.18",
|
|
53
|
+
"@operato/scene-label": "^1.0.0-alpha.18",
|
|
54
|
+
"@operato/scene-legend": "^1.0.0-alpha.18",
|
|
55
|
+
"@operato/scene-marker": "^1.0.0-alpha.18",
|
|
56
|
+
"@operato/scene-news-ticker": "^1.0.0-alpha.18",
|
|
57
|
+
"@operato/scene-progressbar": "^1.0.0-alpha.18",
|
|
58
|
+
"@operato/scene-random": "^1.0.0-alpha.18",
|
|
59
|
+
"@operato/scene-restful": "^1.0.0-alpha.18",
|
|
60
|
+
"@operato/scene-switch": "^1.0.0-alpha.18",
|
|
61
|
+
"@operato/scene-tab": "^1.0.0-alpha.18",
|
|
62
|
+
"@operato/scene-table": "^1.0.0-alpha.18",
|
|
63
|
+
"@operato/scene-wheel-sorter": "^1.0.0-alpha.18",
|
|
64
|
+
"@things-factory/apptool-ui": "^5.0.0-alpha.52",
|
|
65
|
+
"@things-factory/auth-ui": "^5.0.0-alpha.52",
|
|
66
|
+
"@things-factory/biz-base": "^5.0.0-alpha.52",
|
|
67
|
+
"@things-factory/board-service": "^5.0.0-alpha.52",
|
|
68
|
+
"@things-factory/board-ui": "^5.0.0-alpha.52",
|
|
69
|
+
"@things-factory/code-ui": "^5.0.0-alpha.52",
|
|
70
|
+
"@things-factory/context-ui": "^5.0.0-alpha.52",
|
|
71
|
+
"@things-factory/dashboard": "^5.0.0-alpha.52",
|
|
72
|
+
"@things-factory/document-template-ui": "^5.0.0-alpha.52",
|
|
73
|
+
"@things-factory/export-ui": "^5.0.0-alpha.52",
|
|
74
|
+
"@things-factory/export-ui-csv": "^5.0.0-alpha.52",
|
|
75
|
+
"@things-factory/export-ui-excel": "^5.0.0-alpha.52",
|
|
76
|
+
"@things-factory/fav-base": "^5.0.0-alpha.52",
|
|
77
|
+
"@things-factory/form-ui": "^5.0.0-alpha.52",
|
|
78
|
+
"@things-factory/grist-ui": "^5.0.0-alpha.52",
|
|
79
|
+
"@things-factory/help": "^5.0.0-alpha.52",
|
|
80
|
+
"@things-factory/i18n-base": "^5.0.0-alpha.52",
|
|
81
|
+
"@things-factory/import-ui": "^5.0.0-alpha.52",
|
|
82
|
+
"@things-factory/import-ui-excel": "^5.0.0-alpha.52",
|
|
83
|
+
"@things-factory/lite-menu": "^5.0.0-alpha.52",
|
|
84
|
+
"@things-factory/more-ui": "^5.0.0-alpha.52",
|
|
85
|
+
"@things-factory/notification": "^5.0.0-alpha.52",
|
|
86
|
+
"@things-factory/print-ui": "^5.0.0-alpha.52",
|
|
87
|
+
"@things-factory/resource-ui": "^5.0.0-alpha.52",
|
|
88
|
+
"@things-factory/scene-google-map": "^5.0.0-alpha.52",
|
|
89
|
+
"@things-factory/scene-visualizer": "^5.0.0-alpha.52",
|
|
90
|
+
"@things-factory/setting-ui": "^5.0.0-alpha.52",
|
|
91
|
+
"@things-factory/shell": "^5.0.0-alpha.52",
|
|
92
|
+
"@things-factory/system-ui": "^5.0.0-alpha.52"
|
|
95
93
|
},
|
|
96
94
|
"devDependencies": {
|
|
97
|
-
"@things-factory/builder": "^5.0.0-alpha.
|
|
95
|
+
"@things-factory/builder": "^5.0.0-alpha.52"
|
|
98
96
|
},
|
|
99
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "dd9c8f2e256e256e42bd9bd26db5eaa955f85620"
|
|
100
98
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v4 as uuidv4 } from 'uuid'
|
|
2
2
|
|
|
3
3
|
export class NoGenerator {
|
|
4
4
|
static block() {
|
|
5
|
-
return `BLOCK-${
|
|
5
|
+
return `BLOCK-${uuidv4()}`
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
static blockDetail() {
|
|
9
|
-
return `BLOCK-DETAIL-${
|
|
9
|
+
return `BLOCK-DETAIL-${uuidv4()}`
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
static dailyHarvest() {
|
|
@@ -31,34 +31,34 @@ export class NoGenerator {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
static dailyHarvestDetail() {
|
|
34
|
-
return `HARVEST-DETAIL-${
|
|
34
|
+
return `HARVEST-DETAIL-${uuidv4()}`
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
static dailyLoadingDetail() {
|
|
38
|
-
return `LOADING-DETAIL-${
|
|
38
|
+
return `LOADING-DETAIL-${uuidv4()}`
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
static dailyDispatchDetail() {
|
|
42
|
-
return `DISPATCH-DETAIL-${
|
|
42
|
+
return `DISPATCH-DETAIL-${uuidv4()}`
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
static dailyLoadingRamp() {
|
|
46
|
-
return `LOADING-RAMP-${
|
|
46
|
+
return `LOADING-RAMP-${uuidv4()}`
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
static transactionHistoryName() {
|
|
50
|
-
return
|
|
50
|
+
return uuidv4()
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
static rampTonnageHistoryName() {
|
|
54
|
-
return
|
|
54
|
+
return uuidv4()
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
static fieldBunchName() {
|
|
58
|
-
return
|
|
58
|
+
return uuidv4()
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
static rampTonnageName() {
|
|
62
|
-
return
|
|
62
|
+
return uuidv4()
|
|
63
63
|
}
|
|
64
64
|
}
|