@things-factory/operato-wms 4.3.273 → 4.3.281
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/constants/vas.js +4 -0
- package/client/pages/constants/order.js +2 -1
- package/client/pages/order/release-order/release-order-detail.js +5 -12
- package/client/pages/outbound/worksheet-picking.js +3 -2
- package/client/pages/report/order-vas-report.js +577 -0
- package/client/pages/report/vas-report.js +52 -182
- package/client/pages/vas/vas-execution-page.js +3 -3
- package/client/route.js +4 -0
- package/config.development.js +77 -96
- package/dist-server/graphql/resolvers/reports/index.js +1 -1
- package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/vas-report.js +166 -24
- package/dist-server/graphql/resolvers/reports/vas-report.js.map +1 -1
- package/dist-server/graphql/types/reports/index.js +4 -1
- package/dist-server/graphql/types/reports/index.js.map +1 -1
- package/dist-server/graphql/types/reports/vas-report-list.js +9 -3
- package/dist-server/graphql/types/reports/vas-report-list.js.map +1 -1
- package/dist-server/graphql/types/reports/vas-report.js +12 -2
- package/dist-server/graphql/types/reports/vas-report.js.map +1 -1
- package/package.json +50 -50
- package/server/graphql/resolvers/reports/index.ts +2 -1
- package/server/graphql/resolvers/reports/vas-report.ts +186 -23
- package/server/graphql/types/reports/index.ts +6 -3
- package/server/graphql/types/reports/vas-report-list.ts +8 -2
- package/server/graphql/types/reports/vas-report.ts +13 -2
- package/things-factory.config.js +4 -0
- package/translations/en.json +12 -2
- package/translations/ko.json +14 -3
- package/translations/ms.json +13 -3
- package/translations/zh.json +13 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.vasReport = void 0;
|
|
3
|
+
exports.vasReport = exports.orderVasReport = void 0;
|
|
4
4
|
const biz_base_1 = require("@things-factory/biz-base");
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
|
-
exports.
|
|
7
|
-
async
|
|
6
|
+
exports.orderVasReport = {
|
|
7
|
+
async orderVasReport(_, params, context) {
|
|
8
8
|
try {
|
|
9
9
|
const { tx } = context.state;
|
|
10
10
|
let bizplaceFilter = params.filters.find(data => data.name === 'bizplace');
|
|
@@ -38,40 +38,79 @@ exports.vasReport = {
|
|
|
38
38
|
extraQueryFilter = `${extraQueryFilter} and order_no ilike '%${orderNo.value}%' `;
|
|
39
39
|
}
|
|
40
40
|
if (fromDate) {
|
|
41
|
-
extraQueryFilter = `${extraQueryFilter} and
|
|
41
|
+
extraQueryFilter = `${extraQueryFilter} and executed_at >= '%${fromDate.value}%' `;
|
|
42
42
|
}
|
|
43
43
|
if (toDate) {
|
|
44
|
-
extraQueryFilter = `${extraQueryFilter} and
|
|
44
|
+
extraQueryFilter = `${extraQueryFilter} and executed_at <= '%${toDate.value}%' `;
|
|
45
45
|
}
|
|
46
46
|
await tx.query(`
|
|
47
47
|
create temp table temp_vas_order_report on commit drop as (
|
|
48
48
|
select * from (
|
|
49
|
-
select
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
49
|
+
select
|
|
50
|
+
ov.id as "order_vas_id",
|
|
51
|
+
ov.name as "order_vas_name",
|
|
52
|
+
b.name as "company",
|
|
53
|
+
rg.name as "order_no",
|
|
54
|
+
rg.ref_no as "ref_no",
|
|
55
|
+
p.sku as "sku",
|
|
56
|
+
ov.batch_id as "batch_no",
|
|
57
|
+
ov.packing_type as "packing_type",
|
|
58
|
+
ov.uom as "uom",
|
|
59
|
+
v.id as "vas_id",
|
|
60
|
+
v.name as "vas_name",
|
|
61
|
+
v.description as "vas_description",
|
|
62
|
+
ovi.vas_qty as "vas_qty",
|
|
63
|
+
p2.sku as "new_sku",
|
|
64
|
+
ov.new_packing_type as "new_packing_type",
|
|
65
|
+
ov.new_uom as "new_uom",
|
|
66
|
+
ov.new_uom_value as "new_uom_value",
|
|
67
|
+
w.ended_at as "completion_date",
|
|
68
|
+
p.name as "old_product_name",
|
|
69
|
+
p.description as "old_p_description",
|
|
70
|
+
p.brand as "old_p_brand",
|
|
71
|
+
p.brand_sku as "old_p_brand_sku",
|
|
72
|
+
p2.name as "new_product_name",
|
|
73
|
+
p2.description as "new_p_description",
|
|
74
|
+
p2.brand as "new_p_brand",
|
|
75
|
+
p2.brand_sku as "new_p_brand_sku",
|
|
76
|
+
ovi.executed_at as "executed_at",
|
|
77
|
+
ov.created_at as "created_at",
|
|
78
|
+
(SELECT coalesce(SUM(op.release_qty), 0)
|
|
79
|
+
FROM order_products op
|
|
80
|
+
WHERE op.release_good_id = rg.id and p.id = op.product_id and pd.id = op.product_detail_id and op.batch_id = ov.batch_id) as "release_qty",
|
|
81
|
+
(SELECT coalesce(SUM(ov2.qty), 0)
|
|
82
|
+
FROM order_vass ov2
|
|
83
|
+
WHERE ov2.id = ov.id) as "qty",
|
|
84
|
+
(SELECT coalesce(SUM(ov3.output_qty), 0)
|
|
85
|
+
FROM order_vass ov3
|
|
86
|
+
WHERE ov3.id = ov.id) as "output_qty"
|
|
87
|
+
from order_vas_items ovi
|
|
88
|
+
inner join order_vass ov on ovi.order_vas_id = ov.id
|
|
89
|
+
inner join products p on ov.product_id = p.id
|
|
90
|
+
inner join product_details pd on pd.id = ov.product_detail_id
|
|
91
|
+
left join products p2 on p2.id = ov.new_product_id
|
|
92
|
+
left join product_details pd2 on pd2.id = ov.new_product_detail_id
|
|
93
|
+
inner join vass v on v.id = ovi.vas_id
|
|
94
|
+
inner join worksheet_details wd on ov.id = wd.target_vas_id
|
|
95
|
+
inner join worksheets w on w.id = wd.worksheet_id
|
|
96
|
+
inner join release_goods rg on w.release_good_id = rg.id
|
|
97
|
+
inner join bizplaces b on b.id = rg.bizplace_id
|
|
98
|
+
where b.id = $1
|
|
99
|
+
and w.type = 'VAS'
|
|
100
|
+
and ((w.status <> 'CANCELLED'
|
|
101
|
+
and rg.status not in ('CANCELLED', 'PENDING_CANCEL'))
|
|
102
|
+
or (ovi.executed_at notnull and rg.status in ('CANCELLED', 'PENDING_CANCEL')))
|
|
65
103
|
) src
|
|
66
104
|
where 1=1
|
|
67
105
|
${extraQueryFilter}
|
|
68
|
-
)
|
|
106
|
+
)
|
|
69
107
|
`, [bizplace.id]);
|
|
70
108
|
const total = await tx.query(`
|
|
71
109
|
select count(*) from temp_vas_order_report
|
|
72
110
|
`);
|
|
73
111
|
const result = await tx.query(`
|
|
74
112
|
select * from temp_vas_order_report
|
|
113
|
+
order by "created_at" desc, "order_no", "sku", "batch_no", "order_vas_name"
|
|
75
114
|
`);
|
|
76
115
|
let items = result.map(item => {
|
|
77
116
|
let data = {
|
|
@@ -84,6 +123,8 @@ exports.vasReport = {
|
|
|
84
123
|
refNo: item.ref_no
|
|
85
124
|
},
|
|
86
125
|
orderVas: {
|
|
126
|
+
id: item.order_vas_id,
|
|
127
|
+
name: item.order_vas_name,
|
|
87
128
|
batchId: item.batch_no,
|
|
88
129
|
packingType: item.packing_type,
|
|
89
130
|
uom: item.uom,
|
|
@@ -93,11 +134,13 @@ exports.vasReport = {
|
|
|
93
134
|
newUomValue: item.new_uom_value,
|
|
94
135
|
outputQty: item.output_qty,
|
|
95
136
|
product: { sku: item.sku },
|
|
96
|
-
newProduct: { sku: item.new_sku }
|
|
137
|
+
newProduct: { sku: item.new_sku },
|
|
138
|
+
qty: item.qty
|
|
97
139
|
},
|
|
98
140
|
orderVasItem: {
|
|
99
141
|
vas: { id: item.vas_id, name: item.vas_name, description: item.vas_description },
|
|
100
|
-
vasQty: item.vas_qty
|
|
142
|
+
vasQty: item.vas_qty,
|
|
143
|
+
executedAt: item.executed_at
|
|
101
144
|
},
|
|
102
145
|
orderInventory: {
|
|
103
146
|
releaseQty: item.release_qty
|
|
@@ -118,4 +161,103 @@ exports.vasReport = {
|
|
|
118
161
|
}
|
|
119
162
|
}
|
|
120
163
|
};
|
|
164
|
+
exports.vasReport = {
|
|
165
|
+
async vasReport(_, params, context) {
|
|
166
|
+
try {
|
|
167
|
+
const { tx } = context.state;
|
|
168
|
+
let bizplaceFilter = params.filters.find(data => data.name === 'bizplace');
|
|
169
|
+
let fromDate = params.filters.find(data => data.name === 'fromDate');
|
|
170
|
+
let toDate = params.filters.find(data => data.name === 'toDate');
|
|
171
|
+
let vasFilter = params.filters.find(data => data.name === 'vas');
|
|
172
|
+
let typeFilter = params.filters.find(data => data.name === 'type');
|
|
173
|
+
const domain = context.state.domain;
|
|
174
|
+
if (!bizplaceFilter) {
|
|
175
|
+
throw 'Invalid input';
|
|
176
|
+
}
|
|
177
|
+
const bizplace = await tx.getRepository(biz_base_1.Bizplace).findOne({
|
|
178
|
+
id: bizplaceFilter.value
|
|
179
|
+
});
|
|
180
|
+
await (0, utils_1.rawProductsQuery)(tx, params, bizplace);
|
|
181
|
+
let extraQueryFilter = '';
|
|
182
|
+
if (fromDate) {
|
|
183
|
+
extraQueryFilter = `${extraQueryFilter} and executed_at >= '%${fromDate.value}%' `;
|
|
184
|
+
}
|
|
185
|
+
if (toDate) {
|
|
186
|
+
extraQueryFilter = `${extraQueryFilter} and executed_at <= '%${toDate.value}%' `;
|
|
187
|
+
}
|
|
188
|
+
if (vasFilter) {
|
|
189
|
+
extraQueryFilter = `${extraQueryFilter} and (
|
|
190
|
+
vas_name ilike '%${vasFilter.value}%'
|
|
191
|
+
or vas_description ilike '%${vasFilter.value}%') `;
|
|
192
|
+
}
|
|
193
|
+
if (typeFilter) {
|
|
194
|
+
extraQueryFilter = `${extraQueryFilter} and vas_type = '${typeFilter.value}' `;
|
|
195
|
+
}
|
|
196
|
+
await tx.query(`
|
|
197
|
+
create temp table temp_vas_order_report on commit drop as (
|
|
198
|
+
select * from (
|
|
199
|
+
select v.id as "vas_id",
|
|
200
|
+
v."name" as "vas_name",
|
|
201
|
+
v.description as "vas_description",
|
|
202
|
+
v.type as "vas_type",
|
|
203
|
+
(SELECT coalesce(SUM(ovi.vas_qty), 0)
|
|
204
|
+
FROM order_vas_items ovi
|
|
205
|
+
inner join order_vass ov on ov.id = ovi.order_vas_id
|
|
206
|
+
inner join worksheet_details wd on ov.id = wd.target_vas_id
|
|
207
|
+
inner join worksheets w on wd.worksheet_id = w.id
|
|
208
|
+
inner join release_goods rg on w.release_good_id = rg.id
|
|
209
|
+
inner join bizplaces b on rg.bizplace_id = b.id
|
|
210
|
+
WHERE ovi.vas_id = v.id
|
|
211
|
+
and b.id = $1
|
|
212
|
+
and ((w.status <> 'CANCELLED'
|
|
213
|
+
and rg.status not in ('CANCELLED', 'PENDING_CANCEL'))
|
|
214
|
+
or (ovi.executed_at notnull and rg.status in ('CANCELLED', 'PENDING_CANCEL')))
|
|
215
|
+
) as "vas_qty",
|
|
216
|
+
(SELECT max(ovi2.executed_at)
|
|
217
|
+
FROM order_vas_items ovi2
|
|
218
|
+
inner join order_vass ov2 on ov2.id = ovi2.order_vas_id
|
|
219
|
+
inner join worksheet_details wd2 on wd2.target_vas_id = ov2.id
|
|
220
|
+
inner join worksheets w2 on w2.id = wd2.worksheet_id
|
|
221
|
+
inner join release_goods rg2 on rg2.id = w2.release_good_id
|
|
222
|
+
inner join bizplaces b2 on b2.id = rg2.bizplace_id
|
|
223
|
+
WHERE ovi2.vas_id = v.id
|
|
224
|
+
and b2.id = $1
|
|
225
|
+
) as "executed_at"
|
|
226
|
+
from vass v
|
|
227
|
+
where v.domain_id = $2
|
|
228
|
+
)src
|
|
229
|
+
where 1=1
|
|
230
|
+
${extraQueryFilter}
|
|
231
|
+
)
|
|
232
|
+
`, [bizplace.id, domain.id]);
|
|
233
|
+
const total = await tx.query(`
|
|
234
|
+
select count(*) from temp_vas_order_report
|
|
235
|
+
`);
|
|
236
|
+
const result = await tx.query(`
|
|
237
|
+
select * from temp_vas_order_report
|
|
238
|
+
order by "vas_name", "vas_description"
|
|
239
|
+
`);
|
|
240
|
+
let items = result.map(item => {
|
|
241
|
+
let data = {
|
|
242
|
+
bizplace: {
|
|
243
|
+
name: bizplace.name
|
|
244
|
+
},
|
|
245
|
+
orderVasItem: {
|
|
246
|
+
vas: { id: item.vas_id, name: item.vas_name, description: item.vas_description, type: item.vas_type },
|
|
247
|
+
vasQty: item.vas_qty,
|
|
248
|
+
executedAt: item.executed_at
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
return data;
|
|
252
|
+
});
|
|
253
|
+
return {
|
|
254
|
+
items,
|
|
255
|
+
total: total[0].count
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
catch (error) {
|
|
259
|
+
throw error;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
};
|
|
121
263
|
//# sourceMappingURL=vas-report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/vas-report.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,
|
|
1
|
+
{"version":3,"file":"vas-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/vas-report.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,KAAK,CAAC,cAAc,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC1D,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAC1E,IAAI,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,CAAA;YAC1E,IAAI,OAAO,GAAG,MAAM,CAA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CAAC,CAAA;YAEJ,MAAM,MAAM,GAAQ,MAAM,EAAE,CAAC,KAAK,CAChC;;;WAGG,CACJ,CAAA;YAED,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAC5B,IAAI,IAAI,GAAG;oBACT,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ,CAAC,IAAI;qBACpB;oBACD,YAAY,EAAE;wBACZ,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAC;wBACpG,MAAM,EAAE,IAAI,CAAC,OAAO;wBACpB,UAAU,EAAE,IAAI,CAAC,WAAW;qBAC7B;iBACF,CAAA;gBAED,OAAO,IAAI,CAAA;YACb,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,KAAK;gBACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK;aACtB,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
|
|
@@ -28,7 +28,8 @@ exports.Query = `
|
|
|
28
28
|
costingReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): CostingReportList @transaction
|
|
29
29
|
releaseInventoryReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): ReleaseInventoryReportList @transaction
|
|
30
30
|
loadingQcReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): [LoadingQcReport] @transaction
|
|
31
|
-
|
|
31
|
+
orderVasReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): OrderVasReportList @transaction
|
|
32
|
+
vasReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): OrderVasReportList @transaction
|
|
32
33
|
`;
|
|
33
34
|
exports.Types = [
|
|
34
35
|
inbound_serial_number_report_1.InboundSerialNumberReport,
|
|
@@ -47,6 +48,8 @@ exports.Types = [
|
|
|
47
48
|
release_inventory_report_list_1.ReleaseInventoryReportList,
|
|
48
49
|
loading_qc_report_1.LoadingQcReport,
|
|
49
50
|
loading_qc_report_list_1.LoadingQcReportList,
|
|
51
|
+
vas_report_1.OrderVasReport,
|
|
52
|
+
vas_report_list_1.OrderVasReportList,
|
|
50
53
|
vas_report_1.VasReport,
|
|
51
54
|
vas_report_list_1.VasReportList
|
|
52
55
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,2FAAmF;AACnF,mFAA4E;AAC5E,6FAAqF;AAErF,iFAA0E;AAC1E,2FAAmF;AACnF,mFAA4E;AAC5E,6FAAqF;AACrF,iEAA2D;AAC3D,2EAAoE;AAEpE,qDAAgD;AAChD,+DAAyD;AACzD,yEAAmE;AACnE,mFAA4E;AAC5E,2DAAqD;AACrD,qEAA8D;AAE9D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,2FAAmF;AACnF,mFAA4E;AAC5E,6FAAqF;AAErF,iFAA0E;AAC1E,2FAAmF;AACnF,mFAA4E;AAC5E,6FAAqF;AACrF,iEAA2D;AAC3D,2EAAoE;AAEpE,qDAAgD;AAChD,+DAAyD;AACzD,yEAAmE;AACnE,mFAA4E;AAC5E,2DAAqD;AACrD,qEAA8D;AAE9D,6CAAwD;AACxD,uDAAqE;AAExD,QAAA,KAAK,GAAG;;;;;;;;;;;CAWpB,CAAA;AAEY,QAAA,KAAK,GAAG;IACnB,wDAAyB;IACzB,iEAA6B;IAC7B,0DAA0B;IAC1B,mEAA8B;IAC9B,wDAAyB;IACzB,iEAA6B;IAC7B,0DAA0B;IAC1B,mEAA8B;IAC9B,yCAAkB;IAClB,kDAAsB;IACtB,8BAAa;IACb,uCAAiB;IACjB,iDAAsB;IACtB,0DAA0B;IAC1B,mCAAe;IACf,4CAAmB;IACnB,2BAAc;IACd,oCAAkB;IAClB,sBAAS;IACT,+BAAa;CACd,CAAA"}
|
|
@@ -3,11 +3,17 @@ 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
|
-
exports.VasReportList = void 0;
|
|
6
|
+
exports.VasReportList = exports.OrderVasReportList = void 0;
|
|
7
7
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
exports.OrderVasReportList = (0, graphql_tag_1.default) `
|
|
9
|
+
type OrderVasReportList {
|
|
10
|
+
items: [OrderVasReport]
|
|
11
|
+
total: Int
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
8
14
|
exports.VasReportList = (0, graphql_tag_1.default) `
|
|
9
|
-
type
|
|
10
|
-
items: [
|
|
15
|
+
type OrderVasReportList {
|
|
16
|
+
items: [OrderVasReport]
|
|
11
17
|
total: Int
|
|
12
18
|
}
|
|
13
19
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-report-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/vas-report-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,aAAa,GAAG,IAAA,qBAAG,EAAA;;;;;CAK/B,CAAA"}
|
|
1
|
+
{"version":3,"file":"vas-report-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/vas-report-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;CAKpC,CAAA;AACY,QAAA,aAAa,GAAG,IAAA,qBAAG,EAAA;;;;;CAK/B,CAAA"}
|
|
@@ -3,10 +3,20 @@ 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
|
-
exports.VasReport = void 0;
|
|
6
|
+
exports.VasReport = exports.OrderVasReport = void 0;
|
|
7
7
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
exports.OrderVasReport = (0, graphql_tag_1.default) `
|
|
9
|
+
type OrderVasReport {
|
|
10
|
+
bizplace: Bizplace
|
|
11
|
+
releaseGood: ReleaseGood
|
|
12
|
+
orderVas: OrderVas
|
|
13
|
+
orderVasItem: OrderVasItem
|
|
14
|
+
orderInventory: OrderInventory
|
|
15
|
+
worksheet: Worksheet
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
8
18
|
exports.VasReport = (0, graphql_tag_1.default) `
|
|
9
|
-
type
|
|
19
|
+
type OrderVasReport {
|
|
10
20
|
bizplace: Bizplace
|
|
11
21
|
releaseGood: ReleaseGood
|
|
12
22
|
orderVas: OrderVas
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/vas-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,SAAS,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;CAS3B,CAAA"}
|
|
1
|
+
{"version":3,"file":"vas-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/vas-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,cAAc,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;CAShC,CAAA;AAEY,QAAA,SAAS,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;CAS3B,CAAA"}
|
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.281",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -62,60 +62,60 @@
|
|
|
62
62
|
"@operato/scene-tab": "^0.1.8",
|
|
63
63
|
"@operato/scene-table": "^0.1.8",
|
|
64
64
|
"@operato/scene-wheel-sorter": "^0.1.8",
|
|
65
|
-
"@things-factory/apptool-ui": "^4.3.
|
|
66
|
-
"@things-factory/attachment-ui": "^4.3.
|
|
67
|
-
"@things-factory/auth-ui": "^4.3.
|
|
68
|
-
"@things-factory/barcode-ui": "^4.3.
|
|
69
|
-
"@things-factory/biz-ui": "^4.3.
|
|
70
|
-
"@things-factory/board-service": "^4.3.
|
|
71
|
-
"@things-factory/board-ui": "^4.3.
|
|
72
|
-
"@things-factory/code-ui": "^4.3.
|
|
73
|
-
"@things-factory/context-ui": "^4.3.
|
|
74
|
-
"@things-factory/export-ui": "^4.3.
|
|
75
|
-
"@things-factory/export-ui-csv": "^4.3.
|
|
76
|
-
"@things-factory/export-ui-excel": "^4.3.
|
|
77
|
-
"@things-factory/fav-base": "^4.3.
|
|
78
|
-
"@things-factory/form-ui": "^4.3.
|
|
79
|
-
"@things-factory/geography": "^4.3.
|
|
80
|
-
"@things-factory/grist-ui": "^4.3.
|
|
81
|
-
"@things-factory/help": "^4.3.
|
|
82
|
-
"@things-factory/i18n-base": "^4.3.
|
|
83
|
-
"@things-factory/id-rule-base": "^4.3.
|
|
84
|
-
"@things-factory/import-ui": "^4.3.
|
|
85
|
-
"@things-factory/import-ui-excel": "^4.3.
|
|
86
|
-
"@things-factory/menu-ui": "^4.3.
|
|
87
|
-
"@things-factory/more-ui": "^4.3.
|
|
88
|
-
"@things-factory/notification": "^4.3.
|
|
89
|
-
"@things-factory/pdf": "^4.3.
|
|
90
|
-
"@things-factory/print-proxy-service": "^4.3.
|
|
91
|
-
"@things-factory/print-ui": "^4.3.
|
|
92
|
-
"@things-factory/product-base": "^4.3.
|
|
93
|
-
"@things-factory/resource-ui": "^4.3.
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
95
|
-
"@things-factory/scene-data-transform": "^4.3.
|
|
96
|
-
"@things-factory/scene-excel": "^4.3.
|
|
97
|
-
"@things-factory/scene-firebase": "^4.3.
|
|
98
|
-
"@things-factory/scene-form": "^4.3.
|
|
99
|
-
"@things-factory/scene-google-map": "^4.3.
|
|
100
|
-
"@things-factory/scene-graphql": "^4.3.
|
|
101
|
-
"@things-factory/scene-label": "^4.3.
|
|
102
|
-
"@things-factory/scene-marker": "^4.3.
|
|
103
|
-
"@things-factory/scene-mqtt": "^4.3.
|
|
104
|
-
"@things-factory/scene-restful": "^4.3.
|
|
105
|
-
"@things-factory/scene-visualizer": "^4.3.
|
|
106
|
-
"@things-factory/setting-ui": "^4.3.
|
|
107
|
-
"@things-factory/system-ui": "^4.3.
|
|
108
|
-
"@things-factory/transport-base": "^4.3.
|
|
109
|
-
"@things-factory/tutorial-ui": "^4.3.
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
65
|
+
"@things-factory/apptool-ui": "^4.3.281",
|
|
66
|
+
"@things-factory/attachment-ui": "^4.3.281",
|
|
67
|
+
"@things-factory/auth-ui": "^4.3.281",
|
|
68
|
+
"@things-factory/barcode-ui": "^4.3.281",
|
|
69
|
+
"@things-factory/biz-ui": "^4.3.281",
|
|
70
|
+
"@things-factory/board-service": "^4.3.281",
|
|
71
|
+
"@things-factory/board-ui": "^4.3.281",
|
|
72
|
+
"@things-factory/code-ui": "^4.3.281",
|
|
73
|
+
"@things-factory/context-ui": "^4.3.281",
|
|
74
|
+
"@things-factory/export-ui": "^4.3.281",
|
|
75
|
+
"@things-factory/export-ui-csv": "^4.3.281",
|
|
76
|
+
"@things-factory/export-ui-excel": "^4.3.281",
|
|
77
|
+
"@things-factory/fav-base": "^4.3.281",
|
|
78
|
+
"@things-factory/form-ui": "^4.3.281",
|
|
79
|
+
"@things-factory/geography": "^4.3.281",
|
|
80
|
+
"@things-factory/grist-ui": "^4.3.281",
|
|
81
|
+
"@things-factory/help": "^4.3.281",
|
|
82
|
+
"@things-factory/i18n-base": "^4.3.281",
|
|
83
|
+
"@things-factory/id-rule-base": "^4.3.281",
|
|
84
|
+
"@things-factory/import-ui": "^4.3.281",
|
|
85
|
+
"@things-factory/import-ui-excel": "^4.3.281",
|
|
86
|
+
"@things-factory/menu-ui": "^4.3.281",
|
|
87
|
+
"@things-factory/more-ui": "^4.3.281",
|
|
88
|
+
"@things-factory/notification": "^4.3.281",
|
|
89
|
+
"@things-factory/pdf": "^4.3.281",
|
|
90
|
+
"@things-factory/print-proxy-service": "^4.3.281",
|
|
91
|
+
"@things-factory/print-ui": "^4.3.281",
|
|
92
|
+
"@things-factory/product-base": "^4.3.281",
|
|
93
|
+
"@things-factory/resource-ui": "^4.3.281",
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.281",
|
|
95
|
+
"@things-factory/scene-data-transform": "^4.3.281",
|
|
96
|
+
"@things-factory/scene-excel": "^4.3.281",
|
|
97
|
+
"@things-factory/scene-firebase": "^4.3.281",
|
|
98
|
+
"@things-factory/scene-form": "^4.3.281",
|
|
99
|
+
"@things-factory/scene-google-map": "^4.3.281",
|
|
100
|
+
"@things-factory/scene-graphql": "^4.3.281",
|
|
101
|
+
"@things-factory/scene-label": "^4.3.281",
|
|
102
|
+
"@things-factory/scene-marker": "^4.3.281",
|
|
103
|
+
"@things-factory/scene-mqtt": "^4.3.281",
|
|
104
|
+
"@things-factory/scene-restful": "^4.3.281",
|
|
105
|
+
"@things-factory/scene-visualizer": "^4.3.281",
|
|
106
|
+
"@things-factory/setting-ui": "^4.3.281",
|
|
107
|
+
"@things-factory/system-ui": "^4.3.281",
|
|
108
|
+
"@things-factory/transport-base": "^4.3.281",
|
|
109
|
+
"@things-factory/tutorial-ui": "^4.3.281",
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.281",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.281"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@things-factory/builder": "^4.3.
|
|
114
|
+
"@things-factory/builder": "^4.3.281",
|
|
115
115
|
"cypress": "^9.4.1",
|
|
116
116
|
"cypress-file-upload": "^5.0.8",
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "188bb788d3bf0de2e9ae82ac0433e8f08b979bfc"
|
|
121
121
|
}
|
|
@@ -7,7 +7,7 @@ import { outboundOrderDetailsReport } from './outbound-order-details-report'
|
|
|
7
7
|
import { productLabelReport } from './product-label-report'
|
|
8
8
|
import { releaseInventoryReport } from './release-inventory-report'
|
|
9
9
|
import { loadingQcReport } from './tote-loading-qc-report'
|
|
10
|
-
import { vasReport } from './vas-report'
|
|
10
|
+
import { orderVasReport, vasReport } from './vas-report'
|
|
11
11
|
|
|
12
12
|
export const Query = {
|
|
13
13
|
...inboundSerialNumberReport,
|
|
@@ -18,5 +18,6 @@ export const Query = {
|
|
|
18
18
|
...productLabelReport,
|
|
19
19
|
...releaseInventoryReport,
|
|
20
20
|
...loadingQcReport,
|
|
21
|
+
...orderVasReport,
|
|
21
22
|
...vasReport
|
|
22
23
|
}
|