@axelor/aos-mobile-quality 8.0.8 → 8.0.9
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/lib/api/control-entry-api.d.ts +2 -2
- package/lib/api/control-entry-api.js +18 -5
- package/lib/api/control-entry-api.js.map +1 -1
- package/lib/api/control-entry-sample-api.js +1 -0
- package/lib/api/control-entry-sample-api.js.map +1 -1
- package/lib/api/control-entry-sample-line-api.js +10 -4
- package/lib/api/control-entry-sample-line-api.js.map +1 -1
- package/lib/api/control-plan-api.js +1 -0
- package/lib/api/control-plan-api.js.map +1 -1
- package/package.json +3 -3
|
@@ -11,9 +11,9 @@ export function fetchControlEntryById({ controlEntryId }: {
|
|
|
11
11
|
}): Promise<any>;
|
|
12
12
|
export function updateControlEntry({ controlEntry }: {
|
|
13
13
|
controlEntry: any;
|
|
14
|
-
}): Promise<
|
|
14
|
+
}): Promise<void>;
|
|
15
15
|
export function getProgressValues({ controlEntryId, characteristicId, sampleId, }: {
|
|
16
16
|
controlEntryId: any;
|
|
17
17
|
characteristicId: any;
|
|
18
18
|
sampleId: any;
|
|
19
|
-
}): Promise<
|
|
19
|
+
}): Promise<void>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import {
|
|
18
|
+
import { createStandardFetch, createStandardSearch, getActionApi, getEndOfDay, getSearchCriterias, getStartOfDay, } from '@axelor/aos-mobile-core';
|
|
19
19
|
const createControlEntryCriteria = (searchValue, isInspector, userId, date, selectedStatus) => {
|
|
20
20
|
const criteria = [getSearchCriterias('quality_controlEntry', searchValue)];
|
|
21
21
|
if (isInspector && userId != null) {
|
|
@@ -53,6 +53,7 @@ export async function searchControlEntry({ searchValue = null, page = 0, isInspe
|
|
|
53
53
|
fieldKey: 'quality_controlEntry',
|
|
54
54
|
sortKey: 'quality_controlEntry',
|
|
55
55
|
page: page,
|
|
56
|
+
provider: 'model',
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
59
|
export async function fetchControlEntryById({ controlEntryId }) {
|
|
@@ -60,24 +61,36 @@ export async function fetchControlEntryById({ controlEntryId }) {
|
|
|
60
61
|
model: 'com.axelor.apps.quality.db.ControlEntry',
|
|
61
62
|
id: controlEntryId,
|
|
62
63
|
fieldKey: 'quality_controlEntry',
|
|
64
|
+
provider: 'model',
|
|
63
65
|
});
|
|
64
66
|
}
|
|
65
67
|
export async function updateControlEntry({ controlEntry }) {
|
|
66
|
-
return
|
|
68
|
+
return getActionApi().send({
|
|
67
69
|
url: '/ws/rest/com.axelor.apps.quality.db.ControlEntry/',
|
|
68
|
-
|
|
70
|
+
method: 'post',
|
|
71
|
+
body: {
|
|
69
72
|
data: controlEntry,
|
|
70
73
|
},
|
|
74
|
+
description: 'update control entry',
|
|
75
|
+
matchers: {
|
|
76
|
+
id: controlEntry.id,
|
|
77
|
+
modelName: 'com.axelor.apps.quality.db.ControlEntry',
|
|
78
|
+
fields: {
|
|
79
|
+
'data.statusSelect': 'statusSelect',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
71
82
|
});
|
|
72
83
|
}
|
|
73
84
|
export async function getProgressValues({ controlEntryId, characteristicId, sampleId, }) {
|
|
74
|
-
return
|
|
85
|
+
return getActionApi().send({
|
|
75
86
|
url: 'ws/aos/controlentry/progressValues',
|
|
76
|
-
|
|
87
|
+
method: 'post',
|
|
88
|
+
body: {
|
|
77
89
|
controlEntryId,
|
|
78
90
|
characteristicId,
|
|
79
91
|
sampleId,
|
|
80
92
|
},
|
|
93
|
+
description: 'get progress values',
|
|
81
94
|
});
|
|
82
95
|
}
|
|
83
96
|
//# sourceMappingURL=control-entry-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-entry-api.js","sourceRoot":"","sources":["../../src/api/control-entry-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;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,CAAC,EACtC,cAAc,EACd,gBAAgB,EAChB,QAAQ,GACT;IACC,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,oCAAoC;QACzC,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,cAAc;YACd,gBAAgB;YAChB,QAAQ;SACT;QACD,WAAW,EAAE,qBAAqB;KACnC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -32,6 +32,7 @@ export async function searchControlEntrySample({ page = 0, controlEntryId }) {
|
|
|
32
32
|
fieldKey: 'quality_controlEntrySample',
|
|
33
33
|
sortKey: 'quality_controlEntrySample',
|
|
34
34
|
page: page,
|
|
35
|
+
provider: 'model',
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
//# sourceMappingURL=control-entry-sample-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-entry-sample-api.js","sourceRoot":"","sources":["../../src/api/control-entry-sample-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAE7D,MAAM,gCAAgC,GAAG,cAAc,CAAC,EAAE;IACxD,OAAO;QACL;YACE,SAAS,EAAE,iBAAiB;YAC5B,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,cAAc;SACtB;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,EAAC,IAAI,GAAG,CAAC,EAAE,cAAc,EAAC;IACvE,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,+CAA+C;QACtD,QAAQ,EAAE,gCAAgC,CAAC,cAAc,CAAC;QAC1D,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE,4BAA4B;QACrC,IAAI,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"control-entry-sample-api.js","sourceRoot":"","sources":["../../src/api/control-entry-sample-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAE7D,MAAM,gCAAgC,GAAG,cAAc,CAAC,EAAE;IACxD,OAAO;QACL;YACE,SAAS,EAAE,iBAAiB;YAC5B,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,cAAc;SACtB;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,EAAC,IAAI,GAAG,CAAC,EAAE,cAAc,EAAC;IACvE,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,+CAA+C;QACtD,QAAQ,EAAE,gCAAgC,CAAC,cAAc,CAAC;QAC1D,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE,4BAA4B;QACrC,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { createStandardSearch, createStandardFetch,
|
|
18
|
+
import { createStandardSearch, createStandardFetch, getActionApi, } from '@axelor/aos-mobile-core';
|
|
19
19
|
import { ControlEntry } from '../types';
|
|
20
20
|
const createControlEntrySampleLineCriteria = controlEntrySampleId => {
|
|
21
21
|
return [
|
|
@@ -33,6 +33,7 @@ export async function searchControlEntrySampleLine({ page = 0, controlEntrySampl
|
|
|
33
33
|
fieldKey: 'quality_controlEntrySampleLine',
|
|
34
34
|
sortKey: 'quality_controlEntrySampleLine',
|
|
35
35
|
page: page,
|
|
36
|
+
provider: 'model',
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
39
|
const createSampleLineOfControlEntryCriteria = controlEntryId => {
|
|
@@ -52,6 +53,7 @@ export async function searchControlEntrySampleLineOfControlEntry({ controlEntryI
|
|
|
52
53
|
sortKey: 'quality_controlEntrySampleLine',
|
|
53
54
|
numberElementsByPage: null,
|
|
54
55
|
page: 0,
|
|
56
|
+
provider: 'model',
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
59
|
export async function fetchControlEntrySampleLine({ id }) {
|
|
@@ -59,13 +61,15 @@ export async function fetchControlEntrySampleLine({ id }) {
|
|
|
59
61
|
model: 'com.axelor.apps.quality.db.ControlEntryPlanLine',
|
|
60
62
|
id,
|
|
61
63
|
fieldKey: 'quality_controlEntrySampleLine',
|
|
64
|
+
provider: 'model',
|
|
62
65
|
});
|
|
63
66
|
}
|
|
64
67
|
export async function checkComformity({ object }) {
|
|
65
|
-
return
|
|
66
|
-
.
|
|
68
|
+
return getActionApi()
|
|
69
|
+
.send({
|
|
67
70
|
url: 'ws/action',
|
|
68
|
-
|
|
71
|
+
method: 'post',
|
|
72
|
+
body: {
|
|
69
73
|
action: 'action-quality-control-entry-line-method-control-conformity',
|
|
70
74
|
data: {
|
|
71
75
|
context: {
|
|
@@ -75,11 +79,13 @@ export async function checkComformity({ object }) {
|
|
|
75
79
|
},
|
|
76
80
|
model: 'com.axelor.apps.quality.db.ControlEntryPlanLine',
|
|
77
81
|
},
|
|
82
|
+
description: 'check conformity',
|
|
78
83
|
})
|
|
79
84
|
.then(() => createStandardFetch({
|
|
80
85
|
model: 'com.axelor.apps.quality.db.ControlEntryPlanLine',
|
|
81
86
|
id: object.id,
|
|
82
87
|
fieldKey: 'quality_controlEntrySampleLine',
|
|
88
|
+
provider: 'model',
|
|
83
89
|
}))
|
|
84
90
|
.then(({ data: { data } }) => {
|
|
85
91
|
if (data?.[0] != null) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-entry-sample-line-api.js","sourceRoot":"","sources":["../../src/api/control-entry-sample-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"control-entry-sample-line-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;;;GAgBG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAE5D,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EAAC,EAAE,EAAC;IAC7C,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,wCAAwC;QAC/C,EAAE;QACF,QAAQ,EAAE,qBAAqB;
|
|
1
|
+
{"version":3,"file":"control-plan-api.js","sourceRoot":"","sources":["../../src/api/control-plan-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAE5D,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EAAC,EAAE,EAAC;IAC7C,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,wCAAwC;QAC/C,EAAE;QACF,QAAQ,EAAE,qBAAqB;QAC/B,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axelor/aos-mobile-quality",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.9",
|
|
4
4
|
"author": "Axelor",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react-i18next": "^11.18.6"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@axelor/aos-mobile-core": "8.0.
|
|
32
|
-
"@axelor/aos-mobile-ui": "8.0.
|
|
31
|
+
"@axelor/aos-mobile-core": "8.0.9",
|
|
32
|
+
"@axelor/aos-mobile-ui": "8.0.9",
|
|
33
33
|
"@reduxjs/toolkit": "^1.8.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|