@things-factory/operato-wms 4.3.77 → 4.3.79-alpha.1
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/client/pages/components/select-inventory-popup.js +7 -1
- package/client/pages/components/select-product-popup.js +10 -2
- package/client/pages/inventory/inventory-adjustment.js +259 -238
- package/client/pages/inventory/serial-number-list-popup.js +24 -7
- package/client/pages/inventory-check/create-cycle-count.js +2 -3
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +7 -1
- package/client/pages/order/release-order/create-release-order.js +23 -0
- package/client/pages/order/release-order/release-extra-product-popup.js +4 -1
- package/client/pages/order/release-order/release-order-detail.js +7 -3
- package/client/pages/outbound/generate-worksheet-popup.js +21 -7
- package/client/pages/outbound/inventory-reassign-popup.js +6 -0
- package/client/pages/outbound/packing-product.js +94 -30
- package/client/pages/outbound/picking-product.js +11 -1
- package/client/util/index.js +1 -0
- package/client/util/page-settings.js +43 -0
- package/dist-server/graphql/resolvers/index.js +5 -4
- package/dist-server/graphql/resolvers/index.js.map +1 -1
- package/dist-server/graphql/resolvers/{extra → other}/add-release-good-products.js +7 -11
- package/dist-server/graphql/resolvers/other/add-release-good-products.js.map +1 -0
- package/dist-server/graphql/resolvers/{extra → other}/index.js +3 -1
- package/dist-server/graphql/resolvers/other/index.js.map +1 -0
- package/dist-server/graphql/resolvers/other/page-settings.js +87 -0
- package/dist-server/graphql/resolvers/other/page-settings.js.map +1 -0
- package/dist-server/graphql/types/index.js +7 -2
- package/dist-server/graphql/types/index.js.map +1 -1
- package/dist-server/graphql/types/other/index.js +19 -0
- package/dist-server/graphql/types/other/index.js.map +1 -0
- package/dist-server/graphql/types/other/page-setting.js +36 -0
- package/dist-server/graphql/types/other/page-setting.js.map +1 -0
- package/helps/release-note.ko.md +6 -19
- package/helps/release-note.md +6 -19
- package/helps/release-note.ms.md +6 -19
- package/helps/release-note.zh.md +6 -19
- package/package.json +50 -50
- package/server/graphql/resolvers/index.ts +5 -4
- package/server/graphql/resolvers/{extra → other}/add-release-good-products.ts +8 -12
- package/server/graphql/resolvers/other/index.ts +10 -0
- package/server/graphql/resolvers/other/page-settings.ts +105 -0
- package/server/graphql/types/index.ts +8 -2
- package/server/graphql/types/other/index.ts +19 -0
- package/server/graphql/types/other/page-setting.ts +33 -0
- package/translations/en.json +11 -3
- package/translations/ko.json +9 -1
- package/translations/ms.json +9 -1
- package/translations/zh.json +9 -1
- package/dist-server/graphql/resolvers/extra/add-release-good-products.js.map +0 -1
- package/dist-server/graphql/resolvers/extra/index.js.map +0 -1
- package/dist-server/graphql/types/extra/index.js +0 -11
- package/dist-server/graphql/types/extra/index.js.map +0 -1
- package/server/graphql/resolvers/extra/index.ts +0 -5
- package/server/graphql/types/extra/index.ts +0 -7
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Types = exports.Mutation = exports.Query = void 0;
|
|
4
|
+
const page_setting_1 = require("./page-setting");
|
|
5
|
+
exports.Query = `
|
|
6
|
+
pageSettings(
|
|
7
|
+
codes: [Filter!]
|
|
8
|
+
partners: [Filter!]
|
|
9
|
+
): [PageSettingType] @transaction
|
|
10
|
+
`;
|
|
11
|
+
exports.Mutation = `
|
|
12
|
+
addReleaseGoodProducts (
|
|
13
|
+
name: String!
|
|
14
|
+
orderInventories: [NewOrderInventory]
|
|
15
|
+
existingOrderInventories: [NewOrderInventory]
|
|
16
|
+
): Boolean @privilege(category: "order_customer", privilege: "mutation") @transaction
|
|
17
|
+
`;
|
|
18
|
+
exports.Types = [page_setting_1.PageSettingType, page_setting_1.PageSetting, page_setting_1.PageSettingDetails, page_setting_1.PageSettingInput];
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/other/index.ts"],"names":[],"mappings":";;;AACA,iDAAmG;AAEtF,QAAA,KAAK,GAAG;;;;;CAKpB,CAAA;AAEY,QAAA,QAAQ,GAAiB;;;;;;CAMrC,CAAA;AAEY,QAAA,KAAK,GAAG,CAAC,8BAAe,EAAE,0BAAW,EAAE,iCAAkB,EAAE,+BAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PageSettingInput = exports.PageSettingDetails = exports.PageSetting = exports.PageSettingType = void 0;
|
|
7
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
exports.PageSettingType = (0, graphql_tag_1.default) `
|
|
9
|
+
type PageSettingType {
|
|
10
|
+
type: String
|
|
11
|
+
details: [PageSetting]
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
exports.PageSetting = (0, graphql_tag_1.default) `
|
|
15
|
+
type PageSetting {
|
|
16
|
+
id: String
|
|
17
|
+
name: String
|
|
18
|
+
description: String
|
|
19
|
+
settingDetails: [PageSettingDetails]
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
exports.PageSettingDetails = (0, graphql_tag_1.default) `
|
|
23
|
+
type PageSettingDetails {
|
|
24
|
+
id: String
|
|
25
|
+
name: String
|
|
26
|
+
description: String
|
|
27
|
+
rank: Int
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
exports.PageSettingInput = (0, graphql_tag_1.default) `
|
|
31
|
+
input PageSettingInput {
|
|
32
|
+
query: Boolean
|
|
33
|
+
filters: [Filter!]
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
//# sourceMappingURL=page-setting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-setting.js","sourceRoot":"","sources":["../../../../server/graphql/types/other/page-setting.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,eAAe,GAAG,IAAA,qBAAG,EAAA;;;;;CAKjC,CAAA;AAEY,QAAA,WAAW,GAAG,IAAA,qBAAG,EAAA;;;;;;;CAO7B,CAAA;AAEY,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;;CAOpC,CAAA;AAEY,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;CAKlC,CAAA"}
|
package/helps/release-note.ko.md
CHANGED
|
@@ -2,32 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 22 August Update
|
|
6
6
|
|
|
7
|
-
#### V4.
|
|
7
|
+
#### V4.8.0 Release Note
|
|
8
8
|
|
|
9
9
|
#### Greetings to all,
|
|
10
10
|
|
|
11
|
-
####
|
|
11
|
+
#### This month, we are getting the Packing process even better than before!
|
|
12
|
+
|
|
13
|
+
#### Meanwhile, our team is working on getting the bugs fixed, for a stable and consistent Operato WMS.
|
|
12
14
|
|
|
13
|
-
<div>
|
|
14
|
-
1. Quick Product Scanning
|
|
15
|
-
</div>
|
|
16
|
-
<div>
|
|
17
|
-
2. Stock Recall
|
|
18
|
-
</div>
|
|
19
|
-
<div>
|
|
20
|
-
3. Accumulative Locked Inventory
|
|
21
|
-
</div>
|
|
22
|
-
<div>
|
|
23
|
-
4. Batch Picking Simplification
|
|
24
|
-
</div>
|
|
25
|
-
<div>
|
|
26
|
-
And More enhancements!
|
|
27
|
-
</div>
|
|
28
15
|
<br>
|
|
29
16
|
For additional information about the aspects of the release, see the following link
|
|
30
|
-
<a href="https://bit.ly/
|
|
17
|
+
<a href="https://bit.ly/20220821_Hatio_Release">V4.8.0 Release Note</a>
|
|
31
18
|
<br>
|
|
32
19
|
|
|
33
20
|
Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
|
package/helps/release-note.md
CHANGED
|
@@ -2,32 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 22 August Update
|
|
6
6
|
|
|
7
|
-
#### V4.
|
|
7
|
+
#### V4.8.0 Release Note
|
|
8
8
|
|
|
9
9
|
#### Greetings to all,
|
|
10
10
|
|
|
11
|
-
####
|
|
11
|
+
#### This month, we are getting the Packing process even better than before!
|
|
12
|
+
|
|
13
|
+
#### Meanwhile, our team is working on getting the bugs fixed, for a stable and consistent Operato WMS.
|
|
12
14
|
|
|
13
|
-
<div>
|
|
14
|
-
1. Quick Product Scanning
|
|
15
|
-
</div>
|
|
16
|
-
<div>
|
|
17
|
-
2. Stock Recall
|
|
18
|
-
</div>
|
|
19
|
-
<div>
|
|
20
|
-
3. Accumulative Locked Inventory
|
|
21
|
-
</div>
|
|
22
|
-
<div>
|
|
23
|
-
4. Batch Picking Simplification
|
|
24
|
-
</div>
|
|
25
|
-
<div>
|
|
26
|
-
And More enhancements!
|
|
27
|
-
</div>
|
|
28
15
|
<br>
|
|
29
16
|
For additional information about the aspects of the release, see the following link
|
|
30
|
-
<a href="https://bit.ly/
|
|
17
|
+
<a href="https://bit.ly/20220821_Hatio_Release">V4.8.0 Release Note</a>
|
|
31
18
|
<br>
|
|
32
19
|
|
|
33
20
|
Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
|
package/helps/release-note.ms.md
CHANGED
|
@@ -2,32 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 22 August Update
|
|
6
6
|
|
|
7
|
-
#### V4.
|
|
7
|
+
#### V4.8.0 Release Note
|
|
8
8
|
|
|
9
9
|
#### Greetings to all,
|
|
10
10
|
|
|
11
|
-
####
|
|
11
|
+
#### This month, we are getting the Packing process even better than before!
|
|
12
|
+
|
|
13
|
+
#### Meanwhile, our team is working on getting the bugs fixed, for a stable and consistent Operato WMS.
|
|
12
14
|
|
|
13
|
-
<div>
|
|
14
|
-
1. Quick Product Scanning
|
|
15
|
-
</div>
|
|
16
|
-
<div>
|
|
17
|
-
2. Stock Recall
|
|
18
|
-
</div>
|
|
19
|
-
<div>
|
|
20
|
-
3. Accumulative Locked Inventory
|
|
21
|
-
</div>
|
|
22
|
-
<div>
|
|
23
|
-
4. Batch Picking Simplification
|
|
24
|
-
</div>
|
|
25
|
-
<div>
|
|
26
|
-
And More enhancements!
|
|
27
|
-
</div>
|
|
28
15
|
<br>
|
|
29
16
|
For additional information about the aspects of the release, see the following link
|
|
30
|
-
<a href="https://bit.ly/
|
|
17
|
+
<a href="https://bit.ly/20220821_Hatio_Release">V4.8.0 Release Note</a>
|
|
31
18
|
<br>
|
|
32
19
|
|
|
33
20
|
Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
|
package/helps/release-note.zh.md
CHANGED
|
@@ -2,32 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 22 August Update
|
|
6
6
|
|
|
7
|
-
#### V4.
|
|
7
|
+
#### V4.8.0 Release Note
|
|
8
8
|
|
|
9
9
|
#### Greetings to all,
|
|
10
10
|
|
|
11
|
-
####
|
|
11
|
+
#### This month, we are getting the Packing process even better than before!
|
|
12
|
+
|
|
13
|
+
#### Meanwhile, our team is working on getting the bugs fixed, for a stable and consistent Operato WMS.
|
|
12
14
|
|
|
13
|
-
<div>
|
|
14
|
-
1. Quick Product Scanning
|
|
15
|
-
</div>
|
|
16
|
-
<div>
|
|
17
|
-
2. Stock Recall
|
|
18
|
-
</div>
|
|
19
|
-
<div>
|
|
20
|
-
3. Accumulative Locked Inventory
|
|
21
|
-
</div>
|
|
22
|
-
<div>
|
|
23
|
-
4. Batch Picking Simplification
|
|
24
|
-
</div>
|
|
25
|
-
<div>
|
|
26
|
-
And More enhancements!
|
|
27
|
-
</div>
|
|
28
15
|
<br>
|
|
29
16
|
For additional information about the aspects of the release, see the following link
|
|
30
|
-
<a href="https://bit.ly/
|
|
17
|
+
<a href="https://bit.ly/20220821_Hatio_Release">V4.8.0 Release Note</a>
|
|
31
18
|
<br>
|
|
32
19
|
|
|
33
20
|
Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.79-alpha.1",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -63,60 +63,60 @@
|
|
|
63
63
|
"@operato/scene-tab": "^0.1.8",
|
|
64
64
|
"@operato/scene-table": "^0.1.8",
|
|
65
65
|
"@operato/scene-wheel-sorter": "^0.1.8",
|
|
66
|
-
"@things-factory/apptool-ui": "^4.3.
|
|
67
|
-
"@things-factory/attachment-ui": "^4.3.
|
|
68
|
-
"@things-factory/auth-ui": "^4.3.
|
|
69
|
-
"@things-factory/barcode-ui": "^4.3.
|
|
70
|
-
"@things-factory/biz-ui": "^4.3.
|
|
71
|
-
"@things-factory/board-service": "^4.3.
|
|
72
|
-
"@things-factory/board-ui": "^4.3.
|
|
73
|
-
"@things-factory/code-ui": "^4.3.
|
|
74
|
-
"@things-factory/context-ui": "^4.3.
|
|
75
|
-
"@things-factory/export-ui": "^4.3.
|
|
76
|
-
"@things-factory/export-ui-csv": "^4.3.
|
|
77
|
-
"@things-factory/export-ui-excel": "^4.3.
|
|
78
|
-
"@things-factory/fav-base": "^4.3.
|
|
79
|
-
"@things-factory/form-ui": "^4.3.
|
|
80
|
-
"@things-factory/geography": "^4.3.
|
|
81
|
-
"@things-factory/grist-ui": "^4.3.
|
|
82
|
-
"@things-factory/help": "^4.3.
|
|
83
|
-
"@things-factory/i18n-base": "^4.3.
|
|
84
|
-
"@things-factory/id-rule-base": "^4.3.
|
|
85
|
-
"@things-factory/import-ui": "^4.3.
|
|
86
|
-
"@things-factory/import-ui-excel": "^4.3.
|
|
87
|
-
"@things-factory/menu-ui": "^4.3.
|
|
88
|
-
"@things-factory/more-ui": "^4.3.
|
|
89
|
-
"@things-factory/notification": "^4.3.
|
|
90
|
-
"@things-factory/pdf": "^4.3.
|
|
91
|
-
"@things-factory/print-proxy-service": "^4.3.
|
|
92
|
-
"@things-factory/print-ui": "^4.3.
|
|
93
|
-
"@things-factory/product-base": "^4.3.
|
|
94
|
-
"@things-factory/resource-ui": "^4.3.
|
|
95
|
-
"@things-factory/sales-ui": "^4.3.
|
|
96
|
-
"@things-factory/scene-data-transform": "^4.3.
|
|
97
|
-
"@things-factory/scene-excel": "^4.3.
|
|
98
|
-
"@things-factory/scene-firebase": "^4.3.
|
|
99
|
-
"@things-factory/scene-form": "^4.3.
|
|
100
|
-
"@things-factory/scene-google-map": "^4.3.
|
|
101
|
-
"@things-factory/scene-graphql": "^4.3.
|
|
102
|
-
"@things-factory/scene-label": "^4.3.
|
|
103
|
-
"@things-factory/scene-marker": "^4.3.
|
|
104
|
-
"@things-factory/scene-mqtt": "^4.3.
|
|
105
|
-
"@things-factory/scene-restful": "^4.3.
|
|
106
|
-
"@things-factory/scene-visualizer": "^4.3.
|
|
107
|
-
"@things-factory/setting-ui": "^4.3.
|
|
108
|
-
"@things-factory/system-ui": "^4.3.
|
|
109
|
-
"@things-factory/transport-base": "^4.3.
|
|
110
|
-
"@things-factory/tutorial-ui": "^4.3.
|
|
111
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
66
|
+
"@things-factory/apptool-ui": "^4.3.79-alpha.0",
|
|
67
|
+
"@things-factory/attachment-ui": "^4.3.79-alpha.0",
|
|
68
|
+
"@things-factory/auth-ui": "^4.3.79-alpha.0",
|
|
69
|
+
"@things-factory/barcode-ui": "^4.3.79-alpha.0",
|
|
70
|
+
"@things-factory/biz-ui": "^4.3.79-alpha.0",
|
|
71
|
+
"@things-factory/board-service": "^4.3.79-alpha.0",
|
|
72
|
+
"@things-factory/board-ui": "^4.3.79-alpha.0",
|
|
73
|
+
"@things-factory/code-ui": "^4.3.79-alpha.0",
|
|
74
|
+
"@things-factory/context-ui": "^4.3.79-alpha.0",
|
|
75
|
+
"@things-factory/export-ui": "^4.3.79-alpha.0",
|
|
76
|
+
"@things-factory/export-ui-csv": "^4.3.79-alpha.0",
|
|
77
|
+
"@things-factory/export-ui-excel": "^4.3.79-alpha.0",
|
|
78
|
+
"@things-factory/fav-base": "^4.3.79-alpha.0",
|
|
79
|
+
"@things-factory/form-ui": "^4.3.79-alpha.0",
|
|
80
|
+
"@things-factory/geography": "^4.3.79-alpha.0",
|
|
81
|
+
"@things-factory/grist-ui": "^4.3.79-alpha.0",
|
|
82
|
+
"@things-factory/help": "^4.3.79-alpha.0",
|
|
83
|
+
"@things-factory/i18n-base": "^4.3.79-alpha.0",
|
|
84
|
+
"@things-factory/id-rule-base": "^4.3.79-alpha.0",
|
|
85
|
+
"@things-factory/import-ui": "^4.3.79-alpha.0",
|
|
86
|
+
"@things-factory/import-ui-excel": "^4.3.79-alpha.0",
|
|
87
|
+
"@things-factory/menu-ui": "^4.3.79-alpha.0",
|
|
88
|
+
"@things-factory/more-ui": "^4.3.79-alpha.0",
|
|
89
|
+
"@things-factory/notification": "^4.3.79-alpha.0",
|
|
90
|
+
"@things-factory/pdf": "^4.3.79-alpha.0",
|
|
91
|
+
"@things-factory/print-proxy-service": "^4.3.79-alpha.0",
|
|
92
|
+
"@things-factory/print-ui": "^4.3.79-alpha.0",
|
|
93
|
+
"@things-factory/product-base": "^4.3.79-alpha.0",
|
|
94
|
+
"@things-factory/resource-ui": "^4.3.79-alpha.0",
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.79-alpha.1",
|
|
96
|
+
"@things-factory/scene-data-transform": "^4.3.79-alpha.0",
|
|
97
|
+
"@things-factory/scene-excel": "^4.3.79-alpha.0",
|
|
98
|
+
"@things-factory/scene-firebase": "^4.3.79-alpha.0",
|
|
99
|
+
"@things-factory/scene-form": "^4.3.79-alpha.0",
|
|
100
|
+
"@things-factory/scene-google-map": "^4.3.79-alpha.0",
|
|
101
|
+
"@things-factory/scene-graphql": "^4.3.79-alpha.0",
|
|
102
|
+
"@things-factory/scene-label": "^4.3.79-alpha.0",
|
|
103
|
+
"@things-factory/scene-marker": "^4.3.79-alpha.0",
|
|
104
|
+
"@things-factory/scene-mqtt": "^4.3.79-alpha.0",
|
|
105
|
+
"@things-factory/scene-restful": "^4.3.79-alpha.0",
|
|
106
|
+
"@things-factory/scene-visualizer": "^4.3.79-alpha.0",
|
|
107
|
+
"@things-factory/setting-ui": "^4.3.79-alpha.0",
|
|
108
|
+
"@things-factory/system-ui": "^4.3.79-alpha.0",
|
|
109
|
+
"@things-factory/transport-base": "^4.3.79-alpha.0",
|
|
110
|
+
"@things-factory/tutorial-ui": "^4.3.79-alpha.0",
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.79-alpha.1",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.79-alpha.1"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@things-factory/builder": "^4.3.
|
|
115
|
+
"@things-factory/builder": "^4.3.79-alpha.0",
|
|
116
116
|
"cypress": "^9.4.1",
|
|
117
117
|
"cypress-file-upload": "^5.0.8",
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "781aa433ce81cb1cd08d6a3c4abb2934f0a192c1"
|
|
122
122
|
}
|
|
@@ -2,7 +2,7 @@ import * as BoardSetting from './board-setting'
|
|
|
2
2
|
import * as CustomElccl from './custom/elccl'
|
|
3
3
|
import * as CustomKimeda from './custom/kimeda'
|
|
4
4
|
import * as Dashboard from './dashboard'
|
|
5
|
-
import * as
|
|
5
|
+
import * as Other from './other'
|
|
6
6
|
import * as OpaMenu from './opa-menu'
|
|
7
7
|
import * as Reports from './reports'
|
|
8
8
|
import * as InventoryComparison from './inventory-comparison'
|
|
@@ -14,10 +14,11 @@ export const queries = [
|
|
|
14
14
|
CustomElccl.Query,
|
|
15
15
|
CustomKimeda.Query,
|
|
16
16
|
Dashboard.Query,
|
|
17
|
+
InventoryComparison.Query,
|
|
17
18
|
OpaMenu.Query,
|
|
19
|
+
Other.Query,
|
|
18
20
|
Reports.Query,
|
|
19
|
-
|
|
20
|
-
ShippingProviders.Query,
|
|
21
|
+
ShippingProviders.Query
|
|
21
22
|
]
|
|
22
23
|
|
|
23
|
-
export const mutations = [
|
|
24
|
+
export const mutations = [Other.Mutation, WarehouseInventoryAdjustment.Mutation]
|
|
@@ -2,7 +2,7 @@ import { EntityManager, In, Not } from 'typeorm'
|
|
|
2
2
|
|
|
3
3
|
import { User } from '@things-factory/auth-base'
|
|
4
4
|
import { Bizplace } from '@things-factory/biz-base'
|
|
5
|
-
import { Product } from '@things-factory/product-base'
|
|
5
|
+
import { Product, ProductDetail } from '@things-factory/product-base'
|
|
6
6
|
import {
|
|
7
7
|
ORDER_INVENTORY_STATUS,
|
|
8
8
|
ORDER_PRODUCT_STATUS,
|
|
@@ -48,7 +48,7 @@ export const addReleaseGoodProducts = {
|
|
|
48
48
|
curOrderInv.domain = domain
|
|
49
49
|
curOrderInv.bizplace = bizplace
|
|
50
50
|
curOrderInv.releaseGood = releaseGood
|
|
51
|
-
curOrderInv.
|
|
51
|
+
curOrderInv.productDetail = await tx.getRepository(ProductDetail).findOne(oi.productDetail.id)
|
|
52
52
|
|
|
53
53
|
let existingOrderInv: OrderInventory
|
|
54
54
|
|
|
@@ -59,9 +59,8 @@ export const addReleaseGoodProducts = {
|
|
|
59
59
|
existingOrderInv = await tx.getRepository(OrderInventory).findOne({
|
|
60
60
|
where: {
|
|
61
61
|
releaseGood,
|
|
62
|
-
|
|
62
|
+
productDetail: curOrderInv.productDetail,
|
|
63
63
|
batchId: curOrderInv.batchId,
|
|
64
|
-
packingType: curOrderInv.packingType,
|
|
65
64
|
inventory: foundInv
|
|
66
65
|
}
|
|
67
66
|
})
|
|
@@ -204,7 +203,6 @@ export const addReleaseGoodProducts = {
|
|
|
204
203
|
newOrderInv.status = pickingWorksheet ? ORDER_INVENTORY_STATUS.PICKING : ORDER_INVENTORY_STATUS.PENDING
|
|
205
204
|
newOrderInv.name = OrderNoGenerator.orderInventory()
|
|
206
205
|
newOrderInv.releaseGood = releaseGood
|
|
207
|
-
newOrderInv.product = await tx.getRepository(Product).findOne(oi.product.id)
|
|
208
206
|
newOrderInv.creator = user
|
|
209
207
|
newOrderInv.updater = user
|
|
210
208
|
|
|
@@ -215,8 +213,7 @@ export const addReleaseGoodProducts = {
|
|
|
215
213
|
domain,
|
|
216
214
|
releaseGood,
|
|
217
215
|
batchId: oi.batchId,
|
|
218
|
-
|
|
219
|
-
product: newOrderInv.product
|
|
216
|
+
productDetail: newOrderInv.productDetail
|
|
220
217
|
}
|
|
221
218
|
})
|
|
222
219
|
|
|
@@ -232,9 +229,8 @@ export const addReleaseGoodProducts = {
|
|
|
232
229
|
existingOrderInv = await tx.getRepository(OrderInventory).findOne({
|
|
233
230
|
where: {
|
|
234
231
|
releaseGood,
|
|
235
|
-
|
|
232
|
+
productDetail: newOrderInv.productDetail,
|
|
236
233
|
batchId: newOrderInv.batchId,
|
|
237
|
-
packingType: newOrderInv.packingType,
|
|
238
234
|
inventory: foundInv
|
|
239
235
|
}
|
|
240
236
|
})
|
|
@@ -263,9 +259,8 @@ export const addReleaseGoodProducts = {
|
|
|
263
259
|
existingOrderInv = await tx.getRepository(OrderInventory).findOne({
|
|
264
260
|
where: {
|
|
265
261
|
releaseGood,
|
|
266
|
-
|
|
267
|
-
batchId: newOrderInv.batchId
|
|
268
|
-
packingType: newOrderInv.packingType
|
|
262
|
+
productDetail: newOrderInv.productDetail,
|
|
263
|
+
batchId: newOrderInv.batchId
|
|
269
264
|
}
|
|
270
265
|
})
|
|
271
266
|
}
|
|
@@ -325,6 +320,7 @@ export const addReleaseGoodProducts = {
|
|
|
325
320
|
savedOrderInv.packingType = newOrderInv.packingType
|
|
326
321
|
savedOrderInv.uom = newOrderInv.uom
|
|
327
322
|
savedOrderInv.product = newOrderInv.product
|
|
323
|
+
savedOrderInv.productDetail = newOrderInv.productDetail
|
|
328
324
|
savedOrderInv.inventory = newOrderInv.inventory
|
|
329
325
|
savedOrderInv.status = newOrderInv.status
|
|
330
326
|
savedOrderInv.releaseGood = newOrderInv.releaseGood
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { getRepository, EntityManager, In } from 'typeorm'
|
|
2
|
+
|
|
3
|
+
import { Sequence, SEQUENCE_TYPE } from '@things-factory/id-rule-base'
|
|
4
|
+
import { buildQuery, Domain, ListParam, convertListParams } from '@things-factory/shell'
|
|
5
|
+
import { User } from '@things-factory/auth-base'
|
|
6
|
+
import {
|
|
7
|
+
getMyBizplace,
|
|
8
|
+
getPartnerBizplaceIds,
|
|
9
|
+
getPartnersBizplaces,
|
|
10
|
+
getPartnersCompanyBizplaces,
|
|
11
|
+
getPermittedBizplaceIds,
|
|
12
|
+
Bizplace
|
|
13
|
+
} from '@things-factory/biz-base'
|
|
14
|
+
|
|
15
|
+
import { CommonCode as CommonCodeEntity, CommonCodeDetail as CommonCodeDetailEntity } from '@things-factory/code-base'
|
|
16
|
+
|
|
17
|
+
export const pageSettings = {
|
|
18
|
+
async pageSettings(_: any, { codes, partners }, context: any) {
|
|
19
|
+
const { domain, user, tx }: { domain: Domain; user: User; tx: EntityManager } = context.state
|
|
20
|
+
try {
|
|
21
|
+
let promiseTask = []
|
|
22
|
+
if (codes) {
|
|
23
|
+
promiseTask.push(queryCommonCode(codes, domain, tx, context))
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (partners) {
|
|
27
|
+
promiseTask.push(queryPartners(partners, domain, tx, context))
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return await Promise.all(promiseTask)
|
|
31
|
+
} catch (error) {
|
|
32
|
+
throw error
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async function queryCommonCode(codes, domain, tx, context) {
|
|
38
|
+
const codeQb = tx.getRepository(CommonCodeEntity).createQueryBuilder('cc')
|
|
39
|
+
buildQuery(codeQb, { filters: codes }, context)
|
|
40
|
+
|
|
41
|
+
codes = (await codeQb
|
|
42
|
+
.leftJoinAndSelect('cc.details', 'ccdet')
|
|
43
|
+
.orderBy('cc.name')
|
|
44
|
+
.addOrderBy('ccdet.rank')
|
|
45
|
+
.addOrderBy('ccdet.name')
|
|
46
|
+
.getMany()).map((cc: CommonCodeEntity) => {
|
|
47
|
+
return {
|
|
48
|
+
id: cc.id,
|
|
49
|
+
name: cc.name,
|
|
50
|
+
description: cc.description,
|
|
51
|
+
settingDetails: cc.details.map(det => {
|
|
52
|
+
return {
|
|
53
|
+
id: det.id,
|
|
54
|
+
name: det.name,
|
|
55
|
+
description: det.description,
|
|
56
|
+
rank: det.rank
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
type: 'code',
|
|
64
|
+
details: codes
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function queryPartners(partners, domain, tx, context) {
|
|
69
|
+
let partnersBizplaceIds = []
|
|
70
|
+
let bizplaceIndex: any = partners.filters?.findIndex(x => x.name === 'bizplace')
|
|
71
|
+
if (bizplaceIndex && bizplaceIndex > -1) {
|
|
72
|
+
partnersBizplaceIds = partners.filters
|
|
73
|
+
.filter(x => x.name === 'bizplace')
|
|
74
|
+
.map(item => {
|
|
75
|
+
return item.value
|
|
76
|
+
})
|
|
77
|
+
partners.filters.splice(bizplaceIndex, 1)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const convertedParams = convertListParams({ filters: partners })
|
|
81
|
+
|
|
82
|
+
if (!(partnersBizplaceIds.length > 0)) {
|
|
83
|
+
const partnersBizplaces: Bizplace[] = await getPartnersBizplaces(context.state.domain, context.state.user)
|
|
84
|
+
partnersBizplaceIds = partnersBizplaces.map((bizplace: Bizplace) => bizplace.id || null)
|
|
85
|
+
convertedParams.where.id = In(partnersBizplaceIds)
|
|
86
|
+
} else {
|
|
87
|
+
convertedParams.where.id = In(partnersBizplaceIds)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
partners = ((await tx.getRepository(Bizplace).find({
|
|
91
|
+
...convertedParams,
|
|
92
|
+
relations: ['domain', 'company', 'users', 'creator', 'updater']
|
|
93
|
+
})).map((biz: Bizplace) => {
|
|
94
|
+
return {
|
|
95
|
+
id: biz.id,
|
|
96
|
+
name: biz.name,
|
|
97
|
+
description: biz.description,
|
|
98
|
+
}
|
|
99
|
+
}))
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
type: 'partner',
|
|
103
|
+
details: partners
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -2,12 +2,13 @@ import * as BoardSetting from './board-setting'
|
|
|
2
2
|
import * as CustomElccl from './custom/elccl'
|
|
3
3
|
import * as CustomKimeda from './custom/kimeda'
|
|
4
4
|
import * as Dashboard from './dashboard'
|
|
5
|
-
import * as
|
|
5
|
+
import * as Other from './other'
|
|
6
6
|
import * as OpaMenu from './opa-menu'
|
|
7
7
|
import * as Reports from './reports'
|
|
8
8
|
import * as InventoryComparison from './inventory-comparison'
|
|
9
9
|
import * as ShippingProvider from './shipping-provider'
|
|
10
10
|
import * as WarehouseInventory from './warehouse-inventory-adjustment'
|
|
11
|
+
|
|
11
12
|
export const queries = [
|
|
12
13
|
BoardSetting.Query,
|
|
13
14
|
CustomElccl.Query,
|
|
@@ -17,9 +18,13 @@ export const queries = [
|
|
|
17
18
|
Reports.Query,
|
|
18
19
|
InventoryComparison.Query,
|
|
19
20
|
ShippingProvider.Query,
|
|
21
|
+
Other.Query
|
|
20
22
|
]
|
|
21
23
|
|
|
22
|
-
export const mutations = [
|
|
24
|
+
export const mutations = [
|
|
25
|
+
Other.Mutation,
|
|
26
|
+
WarehouseInventory.Mutation
|
|
27
|
+
]
|
|
23
28
|
|
|
24
29
|
export const types = [
|
|
25
30
|
...BoardSetting.Types,
|
|
@@ -29,4 +34,5 @@ export const types = [
|
|
|
29
34
|
...Reports.Types,
|
|
30
35
|
...InventoryComparison.Types,
|
|
31
36
|
...ShippingProvider.Types,
|
|
37
|
+
...Other.Types
|
|
32
38
|
]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { PageSettingType, PageSetting, PageSettingDetails, PageSettingInput } from './page-setting'
|
|
3
|
+
|
|
4
|
+
export const Query = `
|
|
5
|
+
pageSettings(
|
|
6
|
+
codes: [Filter!]
|
|
7
|
+
partners: [Filter!]
|
|
8
|
+
): [PageSettingType] @transaction
|
|
9
|
+
`
|
|
10
|
+
|
|
11
|
+
export const Mutation = /* GraphQL */ `
|
|
12
|
+
addReleaseGoodProducts (
|
|
13
|
+
name: String!
|
|
14
|
+
orderInventories: [NewOrderInventory]
|
|
15
|
+
existingOrderInventories: [NewOrderInventory]
|
|
16
|
+
): Boolean @privilege(category: "order_customer", privilege: "mutation") @transaction
|
|
17
|
+
`
|
|
18
|
+
|
|
19
|
+
export const Types = [PageSettingType, PageSetting, PageSettingDetails, PageSettingInput]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import gql from 'graphql-tag'
|
|
2
|
+
|
|
3
|
+
export const PageSettingType = gql`
|
|
4
|
+
type PageSettingType {
|
|
5
|
+
type: String
|
|
6
|
+
details: [PageSetting]
|
|
7
|
+
}
|
|
8
|
+
`
|
|
9
|
+
|
|
10
|
+
export const PageSetting = gql`
|
|
11
|
+
type PageSetting {
|
|
12
|
+
id: String
|
|
13
|
+
name: String
|
|
14
|
+
description: String
|
|
15
|
+
settingDetails: [PageSettingDetails]
|
|
16
|
+
}
|
|
17
|
+
`
|
|
18
|
+
|
|
19
|
+
export const PageSettingDetails = gql`
|
|
20
|
+
type PageSettingDetails {
|
|
21
|
+
id: String
|
|
22
|
+
name: String
|
|
23
|
+
description: String
|
|
24
|
+
rank: Int
|
|
25
|
+
}
|
|
26
|
+
`
|
|
27
|
+
|
|
28
|
+
export const PageSettingInput = gql`
|
|
29
|
+
input PageSettingInput {
|
|
30
|
+
query: Boolean
|
|
31
|
+
filters: [Filter!]
|
|
32
|
+
}
|
|
33
|
+
`
|