@banch0u/core-project-test-repository 2.3.10 → 2.3.14
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/dist/assets/icons/index.js +37 -0
- package/dist/pages/Platform/constant.js +8 -2
- package/dist/pages/Questionnnaires/QuestionnairesInventoryCategoriesContent/index.js +21 -5
- package/dist/store/slices/questionnaire/service.js +24 -24
- package/dist/translations/index.json +3 -0
- package/package.json +1 -1
|
@@ -700,4 +700,41 @@ export var ThreeDotsIcon = function ThreeDotsIcon() {
|
|
|
700
700
|
strokeLinecap: "round",
|
|
701
701
|
strokeLinejoin: "round"
|
|
702
702
|
}));
|
|
703
|
+
};
|
|
704
|
+
export var ProcurementIcon = function ProcurementIcon() {
|
|
705
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
706
|
+
width: "26",
|
|
707
|
+
height: "26",
|
|
708
|
+
viewBox: "0 0 26 26",
|
|
709
|
+
fill: "none",
|
|
710
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
711
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
712
|
+
d: "M2 2H3.74001C4.82001 2 5.67 2.93 5.58 4L4.75 13.96C4.61 15.59 5.89999 16.99 7.53999 16.99H18.19C19.63 16.99 20.89 15.81 21 14.38L21.54 6.88C21.66 5.22 20.4 3.87 18.73 3.87H5.82001",
|
|
713
|
+
stroke: "#035FB5",
|
|
714
|
+
strokeWidth: "1.5",
|
|
715
|
+
strokeMiterlimit: "10",
|
|
716
|
+
strokeLinecap: "round",
|
|
717
|
+
strokeLinejoin: "round"
|
|
718
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
719
|
+
d: "M16.25 22C16.9404 22 17.5 21.4404 17.5 20.75C17.5 20.0596 16.9404 19.5 16.25 19.5C15.5596 19.5 15 20.0596 15 20.75C15 21.4404 15.5596 22 16.25 22Z",
|
|
720
|
+
stroke: "#035FB5",
|
|
721
|
+
strokeWidth: "1.5",
|
|
722
|
+
strokeMiterlimit: "10",
|
|
723
|
+
strokeLinecap: "round",
|
|
724
|
+
strokeLinejoin: "round"
|
|
725
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
726
|
+
d: "M8.25 22C8.94036 22 9.5 21.4404 9.5 20.75C9.5 20.0596 8.94036 19.5 8.25 19.5C7.55964 19.5 7 20.0596 7 20.75C7 21.4404 7.55964 22 8.25 22Z",
|
|
727
|
+
stroke: "#035FB5",
|
|
728
|
+
strokeWidth: "1.5",
|
|
729
|
+
strokeMiterlimit: "10",
|
|
730
|
+
strokeLinecap: "round",
|
|
731
|
+
strokeLinejoin: "round"
|
|
732
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
733
|
+
d: "M9 8H21",
|
|
734
|
+
stroke: "#035FB5",
|
|
735
|
+
strokeWidth: "1.5",
|
|
736
|
+
strokeMiterlimit: "10",
|
|
737
|
+
strokeLinecap: "round",
|
|
738
|
+
strokeLinejoin: "round"
|
|
739
|
+
}));
|
|
703
740
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
|
-
import { ContractsIcon, DocumentCirculationIcon, HRIcon, ArchiveIcon, TransportIcon, LabIcon, UserIcon } from "../../assets/icons";
|
|
2
|
+
import { ContractsIcon, DocumentCirculationIcon, HRIcon, ArchiveIcon, TransportIcon, LabIcon, UserIcon, ProcurementIcon } from "../../assets/icons";
|
|
3
3
|
import { useLang } from "../../hooks/useLang";
|
|
4
4
|
import text from "../../translations/index.json";
|
|
5
5
|
var getRootUrl = function getRootUrl() {
|
|
@@ -14,7 +14,7 @@ export function useEntryData() {
|
|
|
14
14
|
return getRootUrl();
|
|
15
15
|
}, []);
|
|
16
16
|
return useMemo(function () {
|
|
17
|
-
var _text$lang, _text$lang$pages$plat, _text$lang2, _text$lang$pages$plat2, _text$lang3, _text$lang$pages$plat3, _text$lang4, _text$lang$pages$plat4, _text$lang5, _text$lang$pages$plat5, _text$lang6, _text$lang$pages$plat6, _text$lang7;
|
|
17
|
+
var _text$lang, _text$lang$pages$plat, _text$lang2, _text$lang$pages$plat2, _text$lang3, _text$lang$pages$plat3, _text$lang4, _text$lang$pages$plat4, _text$lang5, _text$lang$pages$plat5, _text$lang6, _text$lang$pages$plat6, _text$lang7, _text$lang$pages$plat7, _text$lang8;
|
|
18
18
|
return [{
|
|
19
19
|
id: 1,
|
|
20
20
|
value: text === null || text === void 0 || (_text$lang = text[lang]) === null || _text$lang === void 0 || (_text$lang = _text$lang.pages) === null || _text$lang === void 0 || (_text$lang = _text$lang.platform) === null || _text$lang === void 0 || (_text$lang = _text$lang.projects) === null || _text$lang === void 0 ? void 0 : _text$lang.docflow,
|
|
@@ -57,6 +57,12 @@ export function useEntryData() {
|
|
|
57
57
|
pathname: "".concat(rootUrl, "/lab/flasks"),
|
|
58
58
|
icon: /*#__PURE__*/React.createElement(LabIcon, null),
|
|
59
59
|
scopes: "lab"
|
|
60
|
+
}, {
|
|
61
|
+
id: 8,
|
|
62
|
+
value: (_text$lang$pages$plat7 = text === null || text === void 0 || (_text$lang8 = text[lang]) === null || _text$lang8 === void 0 || (_text$lang8 = _text$lang8.pages) === null || _text$lang8 === void 0 || (_text$lang8 = _text$lang8.platform) === null || _text$lang8 === void 0 || (_text$lang8 = _text$lang8.projects) === null || _text$lang8 === void 0 ? void 0 : _text$lang8.procurement) !== null && _text$lang$pages$plat7 !== void 0 ? _text$lang$pages$plat7 : "Satınalma",
|
|
63
|
+
pathname: "".concat(rootUrl, "/procurement/budgets"),
|
|
64
|
+
icon: /*#__PURE__*/React.createElement(ProcurementIcon, null),
|
|
65
|
+
scopes: "procurement"
|
|
60
66
|
}];
|
|
61
67
|
}, [lang, rootUrl]);
|
|
62
68
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
1
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
var _excluded = ["children"];
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2
7
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
8
|
import style from "../Questionnaires.module.scss";
|
|
4
9
|
import { Form, Input, Layout, TreeSelect } from "antd";
|
|
@@ -36,12 +41,10 @@ var QuestionnairesInventoryCategoriesContent = function QuestionnairesInventoryC
|
|
|
36
41
|
var InventoryCategories = useSelector(function (state) {
|
|
37
42
|
return state.questionnaire.inventoryCategories;
|
|
38
43
|
});
|
|
39
|
-
|
|
40
|
-
// ✅ BUILD TREE WITH LEVEL
|
|
41
44
|
var buildTree = function buildTree(list) {
|
|
42
45
|
var map = {};
|
|
43
46
|
var roots = [];
|
|
44
|
-
list.forEach(function (item
|
|
47
|
+
list.forEach(function (item) {
|
|
45
48
|
map[item.id] = {
|
|
46
49
|
key: item.id,
|
|
47
50
|
id: item.id,
|
|
@@ -49,7 +52,6 @@ var QuestionnairesInventoryCategoriesContent = function QuestionnairesInventoryC
|
|
|
49
52
|
code: item.code,
|
|
50
53
|
parentId: item.parentId,
|
|
51
54
|
isActive: item.isActive,
|
|
52
|
-
// num: index + 1,
|
|
53
55
|
children: [],
|
|
54
56
|
level: 0,
|
|
55
57
|
className: "rowClassName1"
|
|
@@ -66,7 +68,21 @@ var QuestionnairesInventoryCategoriesContent = function QuestionnairesInventoryC
|
|
|
66
68
|
roots.push(map[item.id]);
|
|
67
69
|
}
|
|
68
70
|
});
|
|
69
|
-
|
|
71
|
+
|
|
72
|
+
// ✅ Remove empty children so Ant Design hides the +/- icon on leaf nodes
|
|
73
|
+
var _stripEmptyChildren = function stripEmptyChildren(nodes) {
|
|
74
|
+
return nodes.map(function (node) {
|
|
75
|
+
if (node.children.length === 0) {
|
|
76
|
+
var children = node.children,
|
|
77
|
+
rest = _objectWithoutProperties(node, _excluded);
|
|
78
|
+
return rest;
|
|
79
|
+
}
|
|
80
|
+
return _objectSpread(_objectSpread({}, node), {}, {
|
|
81
|
+
children: _stripEmptyChildren(node.children)
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
return _stripEmptyChildren(roots);
|
|
70
86
|
};
|
|
71
87
|
var treeData = useMemo(function () {
|
|
72
88
|
return buildTree((InventoryCategories === null || InventoryCategories === void 0 ? void 0 : InventoryCategories.items) || []);
|
|
@@ -9549,7 +9549,7 @@ _defineProperty(Services, "getInventoryBrands", /*#__PURE__*/function () {
|
|
|
9549
9549
|
while (1) switch (_context493.prev = _context493.next) {
|
|
9550
9550
|
case 0:
|
|
9551
9551
|
_context493.next = 1;
|
|
9552
|
-
return api.get("/
|
|
9552
|
+
return api.get("/inventory/brands/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
9553
9553
|
case 1:
|
|
9554
9554
|
response = _context493.sent;
|
|
9555
9555
|
return _context493.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9570,7 +9570,7 @@ _defineProperty(Services, "getInventoryBrandsAll", /*#__PURE__*/function () {
|
|
|
9570
9570
|
while (1) switch (_context494.prev = _context494.next) {
|
|
9571
9571
|
case 0:
|
|
9572
9572
|
_context494.next = 1;
|
|
9573
|
-
return api.get("/
|
|
9573
|
+
return api.get("/inventory/brands?visibility=".concat(visibility));
|
|
9574
9574
|
case 1:
|
|
9575
9575
|
response = _context494.sent;
|
|
9576
9576
|
return _context494.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9591,7 +9591,7 @@ _defineProperty(Services, "addInventoryBrands", /*#__PURE__*/function () {
|
|
|
9591
9591
|
while (1) switch (_context495.prev = _context495.next) {
|
|
9592
9592
|
case 0:
|
|
9593
9593
|
_context495.next = 1;
|
|
9594
|
-
return api.post("/
|
|
9594
|
+
return api.post("/inventory/brands", value);
|
|
9595
9595
|
case 1:
|
|
9596
9596
|
response = _context495.sent;
|
|
9597
9597
|
return _context495.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9612,7 +9612,7 @@ _defineProperty(Services, "editInventoryBrands", /*#__PURE__*/function () {
|
|
|
9612
9612
|
while (1) switch (_context496.prev = _context496.next) {
|
|
9613
9613
|
case 0:
|
|
9614
9614
|
_context496.next = 1;
|
|
9615
|
-
return api.put("/
|
|
9615
|
+
return api.put("/inventory/brands/".concat(data === null || data === void 0 ? void 0 : data.id), data);
|
|
9616
9616
|
case 1:
|
|
9617
9617
|
response = _context496.sent;
|
|
9618
9618
|
return _context496.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9633,7 +9633,7 @@ _defineProperty(Services, "deleteInventoryBrands", /*#__PURE__*/function () {
|
|
|
9633
9633
|
while (1) switch (_context497.prev = _context497.next) {
|
|
9634
9634
|
case 0:
|
|
9635
9635
|
_context497.next = 1;
|
|
9636
|
-
return api["delete"]("/
|
|
9636
|
+
return api["delete"]("/inventory/brands/".concat(id));
|
|
9637
9637
|
case 1:
|
|
9638
9638
|
response = _context497.sent;
|
|
9639
9639
|
return _context497.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9654,7 +9654,7 @@ _defineProperty(Services, "inventoryBrandsVisibility", /*#__PURE__*/function ()
|
|
|
9654
9654
|
while (1) switch (_context498.prev = _context498.next) {
|
|
9655
9655
|
case 0:
|
|
9656
9656
|
_context498.next = 1;
|
|
9657
|
-
return api.patch("/
|
|
9657
|
+
return api.patch("/inventory/brands/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
9658
9658
|
case 1:
|
|
9659
9659
|
response = _context498.sent;
|
|
9660
9660
|
return _context498.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9677,7 +9677,7 @@ _defineProperty(Services, "getInventoryCategories", /*#__PURE__*/function () {
|
|
|
9677
9677
|
while (1) switch (_context499.prev = _context499.next) {
|
|
9678
9678
|
case 0:
|
|
9679
9679
|
_context499.next = 1;
|
|
9680
|
-
return api.get("/
|
|
9680
|
+
return api.get("/inventory/categories/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility));
|
|
9681
9681
|
case 1:
|
|
9682
9682
|
response = _context499.sent;
|
|
9683
9683
|
return _context499.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9698,7 +9698,7 @@ _defineProperty(Services, "getInventoryCategoriesAll", /*#__PURE__*/function ()
|
|
|
9698
9698
|
while (1) switch (_context500.prev = _context500.next) {
|
|
9699
9699
|
case 0:
|
|
9700
9700
|
_context500.next = 1;
|
|
9701
|
-
return api.get("/
|
|
9701
|
+
return api.get("/inventory/categories?visibility=".concat(visibility));
|
|
9702
9702
|
case 1:
|
|
9703
9703
|
response = _context500.sent;
|
|
9704
9704
|
return _context500.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9719,7 +9719,7 @@ _defineProperty(Services, "addInventoryCategories", /*#__PURE__*/function () {
|
|
|
9719
9719
|
while (1) switch (_context501.prev = _context501.next) {
|
|
9720
9720
|
case 0:
|
|
9721
9721
|
_context501.next = 1;
|
|
9722
|
-
return api.post("/
|
|
9722
|
+
return api.post("/inventory/categories", value);
|
|
9723
9723
|
case 1:
|
|
9724
9724
|
response = _context501.sent;
|
|
9725
9725
|
return _context501.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9740,7 +9740,7 @@ _defineProperty(Services, "editInventoryCategories", /*#__PURE__*/function () {
|
|
|
9740
9740
|
while (1) switch (_context502.prev = _context502.next) {
|
|
9741
9741
|
case 0:
|
|
9742
9742
|
_context502.next = 1;
|
|
9743
|
-
return api.put("/
|
|
9743
|
+
return api.put("/inventory/categories/".concat(data === null || data === void 0 ? void 0 : data.id), data);
|
|
9744
9744
|
case 1:
|
|
9745
9745
|
response = _context502.sent;
|
|
9746
9746
|
return _context502.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9761,7 +9761,7 @@ _defineProperty(Services, "deleteInventoryCategories", /*#__PURE__*/function ()
|
|
|
9761
9761
|
while (1) switch (_context503.prev = _context503.next) {
|
|
9762
9762
|
case 0:
|
|
9763
9763
|
_context503.next = 1;
|
|
9764
|
-
return api["delete"]("/
|
|
9764
|
+
return api["delete"]("/inventory/categories/".concat(id));
|
|
9765
9765
|
case 1:
|
|
9766
9766
|
response = _context503.sent;
|
|
9767
9767
|
return _context503.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9782,7 +9782,7 @@ _defineProperty(Services, "inventoryCategoriesVisibility", /*#__PURE__*/function
|
|
|
9782
9782
|
while (1) switch (_context504.prev = _context504.next) {
|
|
9783
9783
|
case 0:
|
|
9784
9784
|
_context504.next = 1;
|
|
9785
|
-
return api.patch("/
|
|
9785
|
+
return api.patch("/inventory/categories/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
9786
9786
|
case 1:
|
|
9787
9787
|
response = _context504.sent;
|
|
9788
9788
|
return _context504.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9933,7 +9933,7 @@ _defineProperty(Services, "getinventoryPackageTypes", /*#__PURE__*/function () {
|
|
|
9933
9933
|
while (1) switch (_context511.prev = _context511.next) {
|
|
9934
9934
|
case 0:
|
|
9935
9935
|
_context511.next = 1;
|
|
9936
|
-
return api.get("/
|
|
9936
|
+
return api.get("/inventory/packagetypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
9937
9937
|
case 1:
|
|
9938
9938
|
response = _context511.sent;
|
|
9939
9939
|
return _context511.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9954,7 +9954,7 @@ _defineProperty(Services, "getinventoryPackageTypesAll", /*#__PURE__*/function (
|
|
|
9954
9954
|
while (1) switch (_context512.prev = _context512.next) {
|
|
9955
9955
|
case 0:
|
|
9956
9956
|
_context512.next = 1;
|
|
9957
|
-
return api.get("/
|
|
9957
|
+
return api.get("/inventory/packagetypes?visibility=".concat(visibility));
|
|
9958
9958
|
case 1:
|
|
9959
9959
|
response = _context512.sent;
|
|
9960
9960
|
return _context512.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9975,7 +9975,7 @@ _defineProperty(Services, "addinventoryPackageTypes", /*#__PURE__*/function () {
|
|
|
9975
9975
|
while (1) switch (_context513.prev = _context513.next) {
|
|
9976
9976
|
case 0:
|
|
9977
9977
|
_context513.next = 1;
|
|
9978
|
-
return api.post("/
|
|
9978
|
+
return api.post("/inventory/packagetypes", value);
|
|
9979
9979
|
case 1:
|
|
9980
9980
|
response = _context513.sent;
|
|
9981
9981
|
return _context513.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -9996,7 +9996,7 @@ _defineProperty(Services, "editinventoryPackageTypes", /*#__PURE__*/function ()
|
|
|
9996
9996
|
while (1) switch (_context514.prev = _context514.next) {
|
|
9997
9997
|
case 0:
|
|
9998
9998
|
_context514.next = 1;
|
|
9999
|
-
return api.put("/
|
|
9999
|
+
return api.put("/inventory/packagetypes/".concat(data === null || data === void 0 ? void 0 : data.id), data);
|
|
10000
10000
|
case 1:
|
|
10001
10001
|
response = _context514.sent;
|
|
10002
10002
|
return _context514.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -10017,7 +10017,7 @@ _defineProperty(Services, "deleteinventoryPackageTypes", /*#__PURE__*/function (
|
|
|
10017
10017
|
while (1) switch (_context515.prev = _context515.next) {
|
|
10018
10018
|
case 0:
|
|
10019
10019
|
_context515.next = 1;
|
|
10020
|
-
return api["delete"]("/
|
|
10020
|
+
return api["delete"]("/inventory/packagetypes/".concat(id));
|
|
10021
10021
|
case 1:
|
|
10022
10022
|
response = _context515.sent;
|
|
10023
10023
|
return _context515.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -10038,7 +10038,7 @@ _defineProperty(Services, "inventoryPackageTypesVisibility", /*#__PURE__*/functi
|
|
|
10038
10038
|
while (1) switch (_context516.prev = _context516.next) {
|
|
10039
10039
|
case 0:
|
|
10040
10040
|
_context516.next = 1;
|
|
10041
|
-
return api.patch("/
|
|
10041
|
+
return api.patch("/inventory/packagetypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
10042
10042
|
case 1:
|
|
10043
10043
|
response = _context516.sent;
|
|
10044
10044
|
return _context516.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -10061,7 +10061,7 @@ _defineProperty(Services, "getInventoryTechnicalDetails", /*#__PURE__*/function
|
|
|
10061
10061
|
while (1) switch (_context517.prev = _context517.next) {
|
|
10062
10062
|
case 0:
|
|
10063
10063
|
_context517.next = 1;
|
|
10064
|
-
return api.get("/
|
|
10064
|
+
return api.get("/inventory/technicaldetails/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name, "&inventoryCategoryId=").concat(inventoryCategoryId));
|
|
10065
10065
|
case 1:
|
|
10066
10066
|
response = _context517.sent;
|
|
10067
10067
|
return _context517.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -10082,7 +10082,7 @@ _defineProperty(Services, "getInventoryTechnicalDetailsAll", /*#__PURE__*/functi
|
|
|
10082
10082
|
while (1) switch (_context518.prev = _context518.next) {
|
|
10083
10083
|
case 0:
|
|
10084
10084
|
_context518.next = 1;
|
|
10085
|
-
return api.get("/
|
|
10085
|
+
return api.get("/inventory/technicaldetails?visibility=".concat(visibility, "&inventoryCategoryId=").concat(inventoryCategoryId));
|
|
10086
10086
|
case 1:
|
|
10087
10087
|
response = _context518.sent;
|
|
10088
10088
|
return _context518.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -10103,7 +10103,7 @@ _defineProperty(Services, "addInventoryTechnicalDetails", /*#__PURE__*/function
|
|
|
10103
10103
|
while (1) switch (_context519.prev = _context519.next) {
|
|
10104
10104
|
case 0:
|
|
10105
10105
|
_context519.next = 1;
|
|
10106
|
-
return api.post("/
|
|
10106
|
+
return api.post("/inventory/technicaldetails", value);
|
|
10107
10107
|
case 1:
|
|
10108
10108
|
response = _context519.sent;
|
|
10109
10109
|
return _context519.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -10124,7 +10124,7 @@ _defineProperty(Services, "editInventoryTechnicalDetails", /*#__PURE__*/function
|
|
|
10124
10124
|
while (1) switch (_context520.prev = _context520.next) {
|
|
10125
10125
|
case 0:
|
|
10126
10126
|
_context520.next = 1;
|
|
10127
|
-
return api.put("/
|
|
10127
|
+
return api.put("/inventory/technicaldetails/".concat(data === null || data === void 0 ? void 0 : data.id), data);
|
|
10128
10128
|
case 1:
|
|
10129
10129
|
response = _context520.sent;
|
|
10130
10130
|
return _context520.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -10145,7 +10145,7 @@ _defineProperty(Services, "deleteInventoryTechnicalDetails", /*#__PURE__*/functi
|
|
|
10145
10145
|
while (1) switch (_context521.prev = _context521.next) {
|
|
10146
10146
|
case 0:
|
|
10147
10147
|
_context521.next = 1;
|
|
10148
|
-
return api["delete"]("/
|
|
10148
|
+
return api["delete"]("/inventory/technicaldetails/".concat(id, "/category/").concat(category));
|
|
10149
10149
|
case 1:
|
|
10150
10150
|
response = _context521.sent;
|
|
10151
10151
|
return _context521.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -10166,7 +10166,7 @@ _defineProperty(Services, "inventoryTechnicalDetailsVisibility", /*#__PURE__*/fu
|
|
|
10166
10166
|
while (1) switch (_context522.prev = _context522.next) {
|
|
10167
10167
|
case 0:
|
|
10168
10168
|
_context522.next = 1;
|
|
10169
|
-
return api.patch("/
|
|
10169
|
+
return api.patch("/inventory/technicaldetails/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
10170
10170
|
case 1:
|
|
10171
10171
|
response = _context522.sent;
|
|
10172
10172
|
return _context522.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"archive": "Arxiv",
|
|
38
38
|
"transport": "Nəqliyyat",
|
|
39
39
|
"lab": "Laboratoriya",
|
|
40
|
+
"procurement": "Satınalma",
|
|
40
41
|
"settings": "Tənzimləmələr"
|
|
41
42
|
}
|
|
42
43
|
},
|
|
@@ -159,6 +160,7 @@
|
|
|
159
160
|
"archive": "Archive",
|
|
160
161
|
"transport": "Transport",
|
|
161
162
|
"lab": "Laboratory",
|
|
163
|
+
"procurement": "Procurement",
|
|
162
164
|
"settings": "Settings"
|
|
163
165
|
}
|
|
164
166
|
},
|
|
@@ -279,6 +281,7 @@
|
|
|
279
281
|
"archive": "Архив",
|
|
280
282
|
"transport": "Автотранспорт",
|
|
281
283
|
"lab": "Лаборатория",
|
|
284
|
+
"procurement": "Закупки",
|
|
282
285
|
"settings": "Настройки"
|
|
283
286
|
}
|
|
284
287
|
},
|