@things-factory/operato-hub 3.6.45 → 3.6.49
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-server/routers/api/restful-apis/unstable/cancel-release-order.js +4 -2
- package/dist-server/routers/api/restful-apis/unstable/cancel-release-order.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v1/cancel-release-order.js +4 -2
- package/dist-server/routers/api/restful-apis/v1/cancel-release-order.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v2/cancel-release-order.js +4 -2
- package/dist-server/routers/api/restful-apis/v2/cancel-release-order.js.map +1 -1
- package/package.json +27 -27
- package/server/routers/api/restful-apis/unstable/cancel-release-order.ts +6 -2
- package/server/routers/api/restful-apis/v1/cancel-release-order.ts +6 -2
- package/server/routers/api/restful-apis/v2/cancel-release-order.ts +6 -2
|
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const typeorm_1 = require("typeorm");
|
|
6
8
|
const api_1 = require("@things-factory/api");
|
|
7
9
|
const biz_base_1 = require("@things-factory/biz-base");
|
|
8
10
|
const sales_base_1 = require("@things-factory/sales-base");
|
|
9
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
10
|
-
const typeorm_1 = require("typeorm");
|
|
11
11
|
const business_middleware_1 = require("../../../../middlewares/business-middleware");
|
|
12
12
|
const warehouse_middleware_1 = require("../../../../middlewares/warehouse-middleware");
|
|
13
13
|
const debug = require('debug')('things-factory:operato-hub:restful-api:unstable:cancel-release-order');
|
|
@@ -26,6 +26,8 @@ api_1.restfulApiRouter.post('/unstable/warehouse/:warehouseId/cancel-release-ord
|
|
|
26
26
|
const releaseOrder = await (0, typeorm_1.getRepository)(sales_base_1.ReleaseGood).findOne({
|
|
27
27
|
where: [{ id: bodyReq.releaseOrderId }, { refNo: bodyReq.orderNo }]
|
|
28
28
|
});
|
|
29
|
+
if (!releaseOrder)
|
|
30
|
+
context.throw(400, t('error.release order not exist'));
|
|
29
31
|
debug('post:/cancel-release-order body request', bodyReq);
|
|
30
32
|
context.body = {
|
|
31
33
|
result: (await client.mutate({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-release-order.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/unstable/cancel-release-order.ts"],"names":[],"mappings":";;;;;AAAA,6CAAgE;AAChE,uDAAmD;AACnD,2DAAwD;
|
|
1
|
+
{"version":3,"file":"cancel-release-order.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/unstable/cancel-release-order.ts"],"names":[],"mappings":";;;;;AAAA,8DAA6B;AAC7B,qCAAuC;AAEvC,6CAAgE;AAChE,uDAAmD;AACnD,2DAAwD;AAExD,qFAAgF;AAChF,uFAAkF;AAElF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,sEAAsE,CAAC,CAAA;AAEtG,sBAAM,CAAC,IAAI,CACT,uDAAuD,EACvD,wCAAkB,EAClB,0CAAmB,EACnB,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;IACtB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;IACxC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,CAAA;IACrB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAA;IAEpC,IAAI,OAAO,OAAO,KAAK,SAAS,IAAI,CAAC,CAAA,MAAA,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,0CAAE,MAAM,CAAA,EAAE;QACjE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAA;KAC3D;IAED,MAAM,gBAAgB,GAAa,MAAM,IAAA,uBAAa,EAAC,mBAAQ,CAAC,CAAC,OAAO,CAAC;QACvE,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE;KAC3B,CAAC,CAAA;IAEF,MAAM,YAAY,GAAgB,MAAM,IAAA,uBAAa,EAAC,wBAAW,CAAC,CAAC,OAAO,CAAC;QACzE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,cAAc,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;KACpE,CAAC,CAAA;IAEF,IAAI,CAAC,YAAY;QAAE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAA;IAEzE,KAAK,CAAC,yCAAyC,EAAE,OAAO,CAAC,CAAA;IAEzD,OAAO,CAAC,IAAI,GAAG;QACb,MAAM,EAAE,CACN,MAAM,MAAM,CAAC,MAAM,CAAC;YAClB,QAAQ,EAAE,IAAA,qBAAG,EAAA;;;;WAIZ;YACD,SAAS,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,IAAI,EAAE;YACtC,OAAO,kCACF,OAAO,KACV,KAAK,kCACA,OAAO,CAAC,KAAK,KAChB,gBAAgB;oBAChB,MAAM,EACN,IAAI,EAAE,KAAK,MAEd;SACK,CAAC,CACV,CAAC,IAAI;KACP,CAAA;AACH,CAAC,CACF,CAAA"}
|
|
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const typeorm_1 = require("typeorm");
|
|
6
8
|
const api_1 = require("@things-factory/api");
|
|
7
9
|
const biz_base_1 = require("@things-factory/biz-base");
|
|
8
10
|
const sales_base_1 = require("@things-factory/sales-base");
|
|
9
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
10
|
-
const typeorm_1 = require("typeorm");
|
|
11
11
|
const business_middleware_1 = require("../../../../middlewares/business-middleware");
|
|
12
12
|
const warehouse_middleware_1 = require("../../../../middlewares/warehouse-middleware");
|
|
13
13
|
const debug = require('debug')('things-factory:operato-hub:restful-api:v1:cancel-release-order');
|
|
@@ -26,6 +26,8 @@ api_1.restfulApiRouter.post('/v1/warehouse/:warehouseId/cancel-release-order', b
|
|
|
26
26
|
const releaseOrder = await (0, typeorm_1.getRepository)(sales_base_1.ReleaseGood).findOne({
|
|
27
27
|
where: [{ id: bodyReq.releaseOrderId }, { refNo: bodyReq.orderNo }]
|
|
28
28
|
});
|
|
29
|
+
if (!releaseOrder)
|
|
30
|
+
context.throw(400, t('error.release order not exist'));
|
|
29
31
|
debug('post:/cancel-release-order body request', bodyReq);
|
|
30
32
|
context.body = {
|
|
31
33
|
result: (await client.mutate({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-release-order.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/v1/cancel-release-order.ts"],"names":[],"mappings":";;;;;AAAA,6CAAgE;AAChE,uDAAmD;AACnD,2DAAwD;
|
|
1
|
+
{"version":3,"file":"cancel-release-order.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/v1/cancel-release-order.ts"],"names":[],"mappings":";;;;;AAAA,8DAA6B;AAC7B,qCAAuC;AAEvC,6CAAgE;AAChE,uDAAmD;AACnD,2DAAwD;AAExD,qFAAgF;AAChF,uFAAkF;AAElF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,gEAAgE,CAAC,CAAA;AAEhG,sBAAM,CAAC,IAAI,CACT,iDAAiD,EACjD,wCAAkB,EAClB,0CAAmB,EACnB,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;IACtB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;IACxC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,CAAA;IACrB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAA;IAEpC,IAAI,OAAO,OAAO,KAAK,SAAS,IAAI,CAAC,CAAA,MAAA,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,0CAAE,MAAM,CAAA,EAAE;QACjE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAA;KAC3D;IAED,MAAM,gBAAgB,GAAa,MAAM,IAAA,uBAAa,EAAC,mBAAQ,CAAC,CAAC,OAAO,CAAC;QACvE,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE;KAC3B,CAAC,CAAA;IAEF,MAAM,YAAY,GAAgB,MAAM,IAAA,uBAAa,EAAC,wBAAW,CAAC,CAAC,OAAO,CAAC;QACzE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,cAAc,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;KACpE,CAAC,CAAA;IAEF,IAAI,CAAC,YAAY;QAAE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAA;IAEzE,KAAK,CAAC,yCAAyC,EAAE,OAAO,CAAC,CAAA;IAEzD,OAAO,CAAC,IAAI,GAAG;QACb,MAAM,EAAE,CACN,MAAM,MAAM,CAAC,MAAM,CAAC;YAClB,QAAQ,EAAE,IAAA,qBAAG,EAAA;;;;WAIZ;YACD,SAAS,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,IAAI,EAAE;YACtC,OAAO,kCACF,OAAO,KACV,KAAK,kCACA,OAAO,CAAC,KAAK,KAChB,gBAAgB;oBAChB,MAAM,EACN,IAAI,EAAE,KAAK,MAEd;SACK,CAAC,CACV,CAAC,IAAI;KACP,CAAA;AACH,CAAC,CACF,CAAA"}
|
|
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const typeorm_1 = require("typeorm");
|
|
6
8
|
const api_1 = require("@things-factory/api");
|
|
7
9
|
const biz_base_1 = require("@things-factory/biz-base");
|
|
8
10
|
const sales_base_1 = require("@things-factory/sales-base");
|
|
9
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
10
|
-
const typeorm_1 = require("typeorm");
|
|
11
11
|
const business_middleware_1 = require("../../../../middlewares/business-middleware");
|
|
12
12
|
const warehouse_middleware_1 = require("../../../../middlewares/warehouse-middleware");
|
|
13
13
|
const debug = require('debug')('things-factory:operato-hub:restful-api:v2:cancel-release-order');
|
|
@@ -26,6 +26,8 @@ api_1.restfulApiRouter.post('/v2/warehouse/:warehouseId/cancel-release-order', b
|
|
|
26
26
|
const releaseOrder = await (0, typeorm_1.getRepository)(sales_base_1.ReleaseGood).findOne({
|
|
27
27
|
where: [{ id: bodyReq.releaseOrderId }, { refNo: bodyReq.orderNo }]
|
|
28
28
|
});
|
|
29
|
+
if (!releaseOrder)
|
|
30
|
+
context.throw(400, t('error.release order not exist'));
|
|
29
31
|
debug('post:/cancel-release-order body request', bodyReq);
|
|
30
32
|
context.body = {
|
|
31
33
|
result: (await client.mutate({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-release-order.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/v2/cancel-release-order.ts"],"names":[],"mappings":";;;;;AAAA,6CAAgE;AAChE,uDAAmD;AACnD,2DAAwD;
|
|
1
|
+
{"version":3,"file":"cancel-release-order.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/v2/cancel-release-order.ts"],"names":[],"mappings":";;;;;AAAA,8DAA6B;AAC7B,qCAAuC;AAEvC,6CAAgE;AAChE,uDAAmD;AACnD,2DAAwD;AAExD,qFAAgF;AAChF,uFAAkF;AAElF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,gEAAgE,CAAC,CAAA;AAEhG,sBAAM,CAAC,IAAI,CACT,iDAAiD,EACjD,wCAAkB,EAClB,0CAAmB,EACnB,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;IACtB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;IACxC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,CAAA;IACrB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAA;IAEpC,IAAI,OAAO,OAAO,KAAK,SAAS,IAAI,CAAC,CAAA,MAAA,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,0CAAE,MAAM,CAAA,EAAE;QACjE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAA;KAC3D;IAED,MAAM,gBAAgB,GAAa,MAAM,IAAA,uBAAa,EAAC,mBAAQ,CAAC,CAAC,OAAO,CAAC;QACvE,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE;KAC3B,CAAC,CAAA;IAEF,MAAM,YAAY,GAAgB,MAAM,IAAA,uBAAa,EAAC,wBAAW,CAAC,CAAC,OAAO,CAAC;QACzE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,cAAc,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;KACpE,CAAC,CAAA;IAEF,IAAI,CAAC,YAAY;QAAE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAA;IAEzE,KAAK,CAAC,yCAAyC,EAAE,OAAO,CAAC,CAAA;IAEzD,OAAO,CAAC,IAAI,GAAG;QACb,MAAM,EAAE,CACN,MAAM,MAAM,CAAC,MAAM,CAAC;YAClB,QAAQ,EAAE,IAAA,qBAAG,EAAA;;;;WAIZ;YACD,SAAS,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,IAAI,EAAE;YACtC,OAAO,kCACF,OAAO,KACV,KAAK,kCACA,OAAO,CAAC,KAAK,KAChB,gBAAgB;oBAChB,MAAM,EACN,IAAI,EAAE,KAAK,MAEd;SACK,CAAC,CACV,CAAC,IAAI;KACP,CAAA;AACH,CAAC,CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-hub",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.49",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -41,40 +41,40 @@
|
|
|
41
41
|
"@material/mwc-formfield": "^0.22.1",
|
|
42
42
|
"@material/mwc-linear-progress": "^0.22.1",
|
|
43
43
|
"@material/mwc-radio": "^0.22.1",
|
|
44
|
-
"@things-factory/api": "^3.6.
|
|
44
|
+
"@things-factory/api": "^3.6.49",
|
|
45
45
|
"@things-factory/apptool-ui": "^3.6.45",
|
|
46
|
-
"@things-factory/attachment-base": "^3.6.
|
|
47
|
-
"@things-factory/auth-base": "^3.6.
|
|
48
|
-
"@things-factory/auth-ui": "^3.6.
|
|
49
|
-
"@things-factory/biz-base": "^3.6.
|
|
50
|
-
"@things-factory/biz-ui": "^3.6.
|
|
51
|
-
"@things-factory/board-service": "^3.6.
|
|
52
|
-
"@things-factory/board-ui": "^3.6.
|
|
53
|
-
"@things-factory/code-ui": "^3.6.
|
|
46
|
+
"@things-factory/attachment-base": "^3.6.49",
|
|
47
|
+
"@things-factory/auth-base": "^3.6.49",
|
|
48
|
+
"@things-factory/auth-ui": "^3.6.49",
|
|
49
|
+
"@things-factory/biz-base": "^3.6.49",
|
|
50
|
+
"@things-factory/biz-ui": "^3.6.49",
|
|
51
|
+
"@things-factory/board-service": "^3.6.49",
|
|
52
|
+
"@things-factory/board-ui": "^3.6.49",
|
|
53
|
+
"@things-factory/code-ui": "^3.6.49",
|
|
54
54
|
"@things-factory/component-ui": "^3.6.45",
|
|
55
55
|
"@things-factory/context-ui": "^3.6.45",
|
|
56
|
-
"@things-factory/document-template-ui": "^3.6.
|
|
56
|
+
"@things-factory/document-template-ui": "^3.6.49",
|
|
57
57
|
"@things-factory/export-ui": "^3.6.45",
|
|
58
58
|
"@things-factory/export-ui-csv": "^3.6.45",
|
|
59
59
|
"@things-factory/export-ui-excel": "^3.6.45",
|
|
60
60
|
"@things-factory/grist-ui": "^3.6.45",
|
|
61
61
|
"@things-factory/i18n-base": "^3.6.45",
|
|
62
|
-
"@things-factory/i18n-ui": "^3.6.
|
|
62
|
+
"@things-factory/i18n-ui": "^3.6.49",
|
|
63
63
|
"@things-factory/import-ui": "^3.6.45",
|
|
64
64
|
"@things-factory/import-ui-excel": "^3.6.45",
|
|
65
|
-
"@things-factory/integration-accounting": "^3.6.
|
|
66
|
-
"@things-factory/integration-fulfillment": "^3.6.
|
|
67
|
-
"@things-factory/integration-lmd": "^3.6.
|
|
68
|
-
"@things-factory/integration-marketplace": "^3.6.
|
|
69
|
-
"@things-factory/integration-pos": "^3.6.
|
|
70
|
-
"@things-factory/integration-sellercraft": "^3.6.
|
|
71
|
-
"@things-factory/lite-menu": "^3.6.
|
|
65
|
+
"@things-factory/integration-accounting": "^3.6.49",
|
|
66
|
+
"@things-factory/integration-fulfillment": "^3.6.49",
|
|
67
|
+
"@things-factory/integration-lmd": "^3.6.49",
|
|
68
|
+
"@things-factory/integration-marketplace": "^3.6.49",
|
|
69
|
+
"@things-factory/integration-pos": "^3.6.49",
|
|
70
|
+
"@things-factory/integration-sellercraft": "^3.6.49",
|
|
71
|
+
"@things-factory/lite-menu": "^3.6.49",
|
|
72
72
|
"@things-factory/more-ui": "^3.6.45",
|
|
73
|
-
"@things-factory/notification": "^3.6.
|
|
73
|
+
"@things-factory/notification": "^3.6.49",
|
|
74
74
|
"@things-factory/pdf": "^3.6.45",
|
|
75
|
-
"@things-factory/product-ui": "^3.6.
|
|
76
|
-
"@things-factory/resource-ui": "^3.6.
|
|
77
|
-
"@things-factory/sales-base": "^3.6.
|
|
75
|
+
"@things-factory/product-ui": "^3.6.49",
|
|
76
|
+
"@things-factory/resource-ui": "^3.6.49",
|
|
77
|
+
"@things-factory/sales-base": "^3.6.49",
|
|
78
78
|
"@things-factory/scene-chartjs": "^3.6.45",
|
|
79
79
|
"@things-factory/scene-clock": "^3.6.45",
|
|
80
80
|
"@things-factory/scene-clone": "^3.6.45",
|
|
@@ -101,11 +101,11 @@
|
|
|
101
101
|
"@things-factory/scene-table": "^3.6.45",
|
|
102
102
|
"@things-factory/scene-visualizer": "^3.6.45",
|
|
103
103
|
"@things-factory/scene-wheel-sorter": "^3.6.45",
|
|
104
|
-
"@things-factory/setting-ui": "^3.6.
|
|
104
|
+
"@things-factory/setting-ui": "^3.6.49",
|
|
105
105
|
"@things-factory/shell": "^3.6.45",
|
|
106
106
|
"@things-factory/system-ui": "^3.6.45",
|
|
107
|
-
"@things-factory/warehouse-base": "^3.6.
|
|
108
|
-
"@things-factory/worksheet-base": "^3.6.
|
|
107
|
+
"@things-factory/warehouse-base": "^3.6.49",
|
|
108
|
+
"@things-factory/worksheet-base": "^3.6.49",
|
|
109
109
|
"koa2-swagger-ui": "^5.0.2",
|
|
110
110
|
"swagger-jsdoc": "^5.0.0",
|
|
111
111
|
"yamljs": "^0.3.0"
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"resolutions": {
|
|
117
117
|
"core-js": "^3.16.0"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "5333dd82de9aae441deed3a4b7d5ba228c1b0092"
|
|
120
120
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import gql from 'graphql-tag'
|
|
2
|
+
import { getRepository } from 'typeorm'
|
|
3
|
+
|
|
1
4
|
import { restfulApiRouter as router } from '@things-factory/api'
|
|
2
5
|
import { Bizplace } from '@things-factory/biz-base'
|
|
3
6
|
import { ReleaseGood } from '@things-factory/sales-base'
|
|
4
|
-
|
|
5
|
-
import { getRepository } from 'typeorm'
|
|
7
|
+
|
|
6
8
|
import { businessMiddleware } from '../../../../middlewares/business-middleware'
|
|
7
9
|
import { warehouseMiddleware } from '../../../../middlewares/warehouse-middleware'
|
|
8
10
|
|
|
@@ -30,6 +32,8 @@ router.post(
|
|
|
30
32
|
where: [{ id: bodyReq.releaseOrderId }, { refNo: bodyReq.orderNo }]
|
|
31
33
|
})
|
|
32
34
|
|
|
35
|
+
if (!releaseOrder) context.throw(400, t('error.release order not exist'))
|
|
36
|
+
|
|
33
37
|
debug('post:/cancel-release-order body request', bodyReq)
|
|
34
38
|
|
|
35
39
|
context.body = {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import gql from 'graphql-tag'
|
|
2
|
+
import { getRepository } from 'typeorm'
|
|
3
|
+
|
|
1
4
|
import { restfulApiRouter as router } from '@things-factory/api'
|
|
2
5
|
import { Bizplace } from '@things-factory/biz-base'
|
|
3
6
|
import { ReleaseGood } from '@things-factory/sales-base'
|
|
4
|
-
|
|
5
|
-
import { getRepository } from 'typeorm'
|
|
7
|
+
|
|
6
8
|
import { businessMiddleware } from '../../../../middlewares/business-middleware'
|
|
7
9
|
import { warehouseMiddleware } from '../../../../middlewares/warehouse-middleware'
|
|
8
10
|
|
|
@@ -30,6 +32,8 @@ router.post(
|
|
|
30
32
|
where: [{ id: bodyReq.releaseOrderId }, { refNo: bodyReq.orderNo }]
|
|
31
33
|
})
|
|
32
34
|
|
|
35
|
+
if (!releaseOrder) context.throw(400, t('error.release order not exist'))
|
|
36
|
+
|
|
33
37
|
debug('post:/cancel-release-order body request', bodyReq)
|
|
34
38
|
|
|
35
39
|
context.body = {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import gql from 'graphql-tag'
|
|
2
|
+
import { getRepository } from 'typeorm'
|
|
3
|
+
|
|
1
4
|
import { restfulApiRouter as router } from '@things-factory/api'
|
|
2
5
|
import { Bizplace } from '@things-factory/biz-base'
|
|
3
6
|
import { ReleaseGood } from '@things-factory/sales-base'
|
|
4
|
-
|
|
5
|
-
import { getRepository } from 'typeorm'
|
|
7
|
+
|
|
6
8
|
import { businessMiddleware } from '../../../../middlewares/business-middleware'
|
|
7
9
|
import { warehouseMiddleware } from '../../../../middlewares/warehouse-middleware'
|
|
8
10
|
|
|
@@ -30,6 +32,8 @@ router.post(
|
|
|
30
32
|
where: [{ id: bodyReq.releaseOrderId }, { refNo: bodyReq.orderNo }]
|
|
31
33
|
})
|
|
32
34
|
|
|
35
|
+
if (!releaseOrder) context.throw(400, t('error.release order not exist'))
|
|
36
|
+
|
|
33
37
|
debug('post:/cancel-release-order body request', bodyReq)
|
|
34
38
|
|
|
35
39
|
context.body = {
|