@things-factory/operato-wms 4.3.122 → 4.3.123

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.
Files changed (26) hide show
  1. package/client/pages/outbound/show-ro-list-popup.js +35 -5
  2. package/client/pages/outbound/sorting-product.js +198 -44
  3. package/client/pages/report/tote-loading-qc-report.js +372 -0
  4. package/client/route.js +4 -0
  5. package/config.development.js +1 -1
  6. package/dist-server/graphql/resolvers/reports/index.js +2 -1
  7. package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
  8. package/dist-server/graphql/resolvers/reports/tote-loading-qc-report.js +82 -0
  9. package/dist-server/graphql/resolvers/reports/tote-loading-qc-report.js.map +1 -0
  10. package/dist-server/graphql/types/reports/index.js +6 -1
  11. package/dist-server/graphql/types/reports/index.js.map +1 -1
  12. package/dist-server/graphql/types/reports/loading-qc-report-list.js +14 -0
  13. package/dist-server/graphql/types/reports/loading-qc-report-list.js.map +1 -0
  14. package/dist-server/graphql/types/reports/loading-qc-report.js +22 -0
  15. package/dist-server/graphql/types/reports/loading-qc-report.js.map +1 -0
  16. package/package.json +16 -16
  17. package/server/graphql/resolvers/reports/index.ts +3 -1
  18. package/server/graphql/resolvers/reports/tote-loading-qc-report.ts +100 -0
  19. package/server/graphql/types/reports/index.ts +6 -1
  20. package/server/graphql/types/reports/loading-qc-report-list.ts +8 -0
  21. package/server/graphql/types/reports/loading-qc-report.ts +16 -0
  22. package/things-factory.config.js +4 -0
  23. package/translations/en.json +10 -2
  24. package/translations/ko.json +9 -1
  25. package/translations/ms.json +9 -1
  26. package/translations/zh.json +9 -1
@@ -0,0 +1,372 @@
1
+ import '@things-factory/form-ui'
2
+ import '@things-factory/grist-ui'
3
+
4
+ import gql from 'graphql-tag'
5
+ import { css, html } from 'lit-element'
6
+ import { connect } from 'pwa-helpers/connect-mixin'
7
+
8
+ import { i18next, localize } from '@things-factory/i18n-base'
9
+ import { client, PageView, store } from '@things-factory/shell'
10
+ import { flattenObject } from '@things-factory/utils'
11
+
12
+ class ToteLoadingQcReport extends connect(store)(localize(i18next)(PageView)) {
13
+ static get styles() {
14
+ return css`
15
+ :host {
16
+ display: flex;
17
+ flex-direction: column;
18
+ width: 100%;
19
+ }
20
+
21
+ data-report {
22
+ flex: 1;
23
+ }
24
+ `
25
+ }
26
+
27
+ static get properties() {
28
+ return {
29
+ _searchFields: Object,
30
+ _config: Object,
31
+ _partners: Object,
32
+ data: Object
33
+ }
34
+ }
35
+
36
+ get context() {
37
+ return {
38
+ title: i18next.t('title.loading_qc_report'),
39
+ printable: {
40
+ accept: ['preview'],
41
+ content: this
42
+ },
43
+ exportable: {
44
+ name: i18next.t('title.loading_qc_report', {
45
+ state: {
46
+ text: (() => {
47
+ let date = new Date()
48
+ return date.getFullYear().toString() + (date.getMonth() + 1).toString() + date.getDate().toString()
49
+ })()
50
+ }
51
+ }),
52
+ data: this._exportableData.bind(this)
53
+ }
54
+ }
55
+ }
56
+
57
+ get report() {
58
+ return this.shadowRoot.querySelector('data-report')
59
+ }
60
+
61
+ get searchForm() {
62
+ return this.shadowRoot.querySelector('search-form')
63
+ }
64
+
65
+ get _bizplaceSelector() {
66
+ return this.searchForm.shadowRoot.querySelector('select[name=bizplace]')
67
+ }
68
+
69
+ render() {
70
+ return html`
71
+ <search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.report.fetch()}></search-form>
72
+
73
+ <data-report .config=${this._config} .fetchHandler=${this.fetchHandler.bind(this)}></data-report>
74
+ `
75
+ }
76
+
77
+ get searchFields() {
78
+ return [
79
+ {
80
+ label: i18next.t('field.company'),
81
+ name: 'bizplace',
82
+ type: 'select',
83
+ options: [
84
+ { value: '' },
85
+ ...this._partners
86
+ .map(partner => {
87
+ return {
88
+ name: `${partner.name} ${partner.description ? `(${partner.description})` : ''}`,
89
+ value: partner.id
90
+ }
91
+ })
92
+ .sort(this._compareValues('name', 'asc'))
93
+ ],
94
+ props: { searchOper: 'eq' }
95
+ },
96
+ {
97
+ label: i18next.t('field.order_info'),
98
+ name: 'orderInfo',
99
+ type: 'text',
100
+ props: { searchOper: 'eq' }
101
+ },
102
+ {
103
+ label: i18next.t('field.release_date'),
104
+ name: 'releaseDate',
105
+ type: 'date',
106
+ props: {
107
+ searchOper: 'eq',
108
+ max: new Date().toISOString().split('T')[0]
109
+ },
110
+ value: (() => {
111
+ let date = new Date()
112
+ return date.toISOString().split('T')[0]
113
+ })()
114
+ },
115
+ {
116
+ label: i18next.t('field.route_id'),
117
+ name: 'routeId',
118
+ type: 'string',
119
+ props: { searchOper: 'i_like' }
120
+ },
121
+ {
122
+ label: i18next.t('field.stop_id'),
123
+ name: 'stopId',
124
+ type: 'string',
125
+ props: { searchOper: 'i_like' }
126
+ },
127
+ {
128
+ label: i18next.t('field.tote_id'),
129
+ name: 'toteId',
130
+ type: 'String',
131
+ props: { searchOper: 'i_like' }
132
+ },
133
+ {
134
+ label: i18next.t('field.tote_box'),
135
+ name: 'toteBox',
136
+ type: 'checkbox',
137
+ props: { searchOper: 'eq' }
138
+ }
139
+ ]
140
+ }
141
+
142
+ get reportConfig() {
143
+ return {
144
+ rows: {
145
+ selectable: false,
146
+ groups: [
147
+ { column: 'bizplaceName' },
148
+ { column: 'releaseGoodNo' },
149
+ { column: 'releaseDate' },
150
+ { column: 'routeId' },
151
+ { column: 'stopId', title: 'Sub Total' }
152
+ ],
153
+ totals: ['orderQuantity', 'tote', 'totalSeal']
154
+ },
155
+ columns: [
156
+ {
157
+ type: 'string',
158
+ name: 'bizplaceName',
159
+ header: i18next.t('field.company'),
160
+ sortable: false,
161
+ imex: { header: i18next.t('field.company'), key: 'bizplaceName', width: 30, type: 'string' },
162
+ width: 300
163
+ },
164
+ {
165
+ type: 'string',
166
+ name: 'releaseGoodNo',
167
+ header: i18next.t('field.release_good_no'),
168
+ sortable: false,
169
+ imex: { header: i18next.t('field.release_good_no'), key: 'releaseGoodNo', width: 30, type: 'string' },
170
+ width: 300
171
+ },
172
+ {
173
+ type: 'date',
174
+ name: 'releaseDate',
175
+ header: i18next.t('field.release_date'),
176
+ sortable: false,
177
+ imex: { header: i18next.t('field.release_date'), key: 'releaseDate', width: 25, type: 'date' },
178
+ width: 150
179
+ },
180
+ {
181
+ type: 'string',
182
+ name: 'routeId',
183
+ header: i18next.t('field.route_id'),
184
+ sortable: false,
185
+ imex: { header: i18next.t('field.route_id'), key: 'routeId', width: 25, type: 'string' },
186
+ width: 150
187
+ },
188
+ {
189
+ type: 'string',
190
+ name: 'stopId',
191
+ header: i18next.t('field.stop_id'),
192
+ imex: { header: i18next.t('field.stop_id'), key: 'stopId', width: 25, type: 'string' },
193
+ width: 150
194
+ },
195
+ {
196
+ type: 'integer',
197
+ name: 'orderQuantity',
198
+ header: i18next.t('field.order_quantity'),
199
+ imex: { header: i18next.t('field.order_quantity'), key: 'orderQuantity', width: 25, type: 'integer' },
200
+ width: 150
201
+ },
202
+ {
203
+ type: 'string',
204
+ name: 'tote',
205
+ header: i18next.t('field.tote_id'),
206
+ sortable: false,
207
+ imex: { header: i18next.t('field.tote_id'), key: 'tote', width: 25, type: 'string', rowCount: true },
208
+ width: 200,
209
+ rowCount: true
210
+ },
211
+ {
212
+ type: 'boolean',
213
+ name: 'toteBox',
214
+ header: i18next.t('field.tote_box'),
215
+ sortable: false,
216
+ imex: { header: i18next.t('field.tote_box'), key: 'toteBox', width: 25, type: 'boolean' },
217
+ width: 100
218
+ },
219
+ {
220
+ type: 'string',
221
+ name: 'sealId',
222
+ header: i18next.t('field.seal_id'),
223
+ sortable: false,
224
+ imex: { header: i18next.t('field.seal_id'), key: 'sealId', width: 40, type: 'string' },
225
+ width: 300
226
+ },
227
+ {
228
+ type: 'integer',
229
+ name: 'totalSeal',
230
+ header: i18next.t('field.total_seal'),
231
+ sortable: false,
232
+ imex: { header: i18next.t('field.total_seal'), key: 'totalSeal', width: 25, type: 'integer' },
233
+ width: 100
234
+ }
235
+ ]
236
+ }
237
+ }
238
+
239
+ async pageInitialized() {
240
+ this._partners = [...(await this._fetchPartners())]
241
+
242
+ this._searchFields = this.searchFields
243
+ this._config = this.reportConfig
244
+ }
245
+
246
+ pageUpdated(changes, lifecycle) {
247
+ if (this.active) {
248
+ this.report.fetch()
249
+ }
250
+ }
251
+
252
+ async fetchHandler({ page, limit, sorters = [] }) {
253
+ try {
254
+ this._validate()
255
+
256
+ const response = await client.query({
257
+ query: gql`
258
+ query loadingQcReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
259
+ loadingQcReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
260
+ bizplaceName
261
+ releaseGoodNo
262
+ routeId
263
+ stopId
264
+ releaseDate
265
+ orderQuantity
266
+ tote
267
+ toteBox
268
+ sealId
269
+ totalSeal
270
+ }
271
+ }
272
+ `,
273
+ variables: {
274
+ filters: this.searchForm.queryFilters,
275
+ pagination: { page, limit },
276
+ sortings: sorters
277
+ }
278
+ })
279
+ return {
280
+ total: 0,
281
+ records:
282
+ response.data.loadingQcReport.map(item => {
283
+ return flattenObject({
284
+ ...item
285
+ })
286
+ }) || []
287
+ }
288
+ } catch (e) {
289
+ this._showToast(e)
290
+ }
291
+ }
292
+
293
+ async _fetchPartners() {
294
+ const filters = []
295
+ const response = await client.query({
296
+ query: gql`
297
+ query partnersBizplaces($filters: [Filter!]) {
298
+ partnersBizplaces(filters: $filters) {
299
+ items {
300
+ id
301
+ name
302
+ description
303
+ }
304
+ }
305
+ }
306
+ `,
307
+ variables: { filters }
308
+ })
309
+
310
+ if (!response.errors) {
311
+ return response.data.partnersBizplaces.items
312
+ }
313
+ }
314
+ _validate() {
315
+ if (!this.searchForm.shadowRoot.querySelector('form').checkValidity())
316
+ throw new Error(i18next.t('text.invalid_form_value'))
317
+ if (!this._bizplaceSelector.value) throw new Error(i18next.t('text.no_company_selected'))
318
+ }
319
+
320
+ _compareValues(key, order = 'asc') {
321
+ return function innerSort(a, b) {
322
+ if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
323
+ return 0
324
+ }
325
+
326
+ const varA = typeof a[key] === 'string' ? a[key].toUpperCase() : a[key]
327
+ const varB = typeof b[key] === 'string' ? b[key].toUpperCase() : b[key]
328
+
329
+ let comparison = 0
330
+ if (varA > varB) {
331
+ comparison = 1
332
+ } else if (varA < varB) {
333
+ comparison = -1
334
+ }
335
+ return order === 'desc' ? comparison * -1 : comparison
336
+ }
337
+ }
338
+
339
+ _exportableData() {
340
+ try {
341
+ var headerSetting = [
342
+ ...this.report._config.columns
343
+ .filter(column => column.type !== 'gutter' && column.record !== undefined && column.imex !== undefined)
344
+ .map(column => {
345
+ return column.imex
346
+ })
347
+ ]
348
+
349
+ return {
350
+ header: headerSetting,
351
+ data: this.report.data.records,
352
+ groups: this.report._config.rows.groups,
353
+ totals: this.report._config.rows.totals
354
+ }
355
+ } catch (e) {
356
+ this._showToast(e)
357
+ }
358
+ }
359
+
360
+ _showToast({ type, message }) {
361
+ document.dispatchEvent(
362
+ new CustomEvent('notify', {
363
+ detail: {
364
+ type,
365
+ message
366
+ }
367
+ })
368
+ )
369
+ }
370
+ }
371
+
372
+ window.customElements.define('tote-loading-qc-report', ToteLoadingQcReport)
package/client/route.js CHANGED
@@ -480,6 +480,10 @@ export default function route(page) {
480
480
  import('./pages/report/release-inventory-report')
481
481
  return page
482
482
 
483
+ case 'loading_qc_report':
484
+ import('./pages/report/tote-loading-qc-report')
485
+ return page
486
+
483
487
  /**
484
488
  * Custom ELCCL Menus Section
485
489
  */
@@ -25,7 +25,7 @@ module.exports = {
25
25
  // password: 'abcd1234',
26
26
  // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
27
  // port: 55432,
28
- // synchronize: true,
28
+ // synchronize: false,
29
29
  // logging: true
30
30
  // },
31
31
  sellercraftIntegrationConfig: {
@@ -8,5 +8,6 @@ const inbound_order_details_report_1 = require("./inbound-order-details-report")
8
8
  const outbound_order_details_report_1 = require("./outbound-order-details-report");
9
9
  const product_label_report_1 = require("./product-label-report");
10
10
  const release_inventory_report_1 = require("./release-inventory-report");
11
- exports.Query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inbound_serial_number_report_1.inboundSerialNumberReport), outbound_serial_number_report_1.outboundSerialNumberReport), costing_report_1.costingReport), inbound_order_details_report_1.inboundOrderDetailsReport), outbound_order_details_report_1.outboundOrderDetailsReport), product_label_report_1.productLabelReport), release_inventory_report_1.releaseInventoryReport);
11
+ const tote_loading_qc_report_1 = require("./tote-loading-qc-report");
12
+ exports.Query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inbound_serial_number_report_1.inboundSerialNumberReport), outbound_serial_number_report_1.outboundSerialNumberReport), costing_report_1.costingReport), inbound_order_details_report_1.inboundOrderDetailsReport), outbound_order_details_report_1.outboundOrderDetailsReport), product_label_report_1.productLabelReport), release_inventory_report_1.releaseInventoryReport), tote_loading_qc_report_1.loadingQcReport);
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,mFAA4E;AAE5E,qDAAgD;AAChD,iFAA0E;AAC1E,mFAA4E;AAC5E,iEAA2D;AAC3D,yEAAmE;AAEtD,QAAA,KAAK,yGACb,wDAAyB,GACzB,0DAA0B,GAC1B,8BAAa,GACb,wDAAyB,GACzB,0DAA0B,GAC1B,yCAAkB,GAClB,iDAAsB,EAC1B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,mFAA4E;AAE5E,qDAAgD;AAChD,iFAA0E;AAC1E,mFAA4E;AAC5E,iEAA2D;AAC3D,yEAAmE;AACnE,qEAA0D;AAE7C,QAAA,KAAK,uHACb,wDAAyB,GACzB,0DAA0B,GAC1B,8BAAa,GACb,wDAAyB,GACzB,0DAA0B,GAC1B,yCAAkB,GAClB,iDAAsB,GACtB,wCAAe,EACnB"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loadingQcReport = void 0;
4
+ const typeorm_1 = require("typeorm");
5
+ const sales_base_1 = require("@things-factory/sales-base");
6
+ exports.loadingQcReport = {
7
+ async loadingQcReport(_, params, context) {
8
+ try {
9
+ const { domain } = context.state;
10
+ let bizplaceFilter = params.filters.find(filter => filter.name === 'bizplace');
11
+ let releaseDateFilter = params.filters.find(filter => filter.name === 'releaseDate');
12
+ let routeIdFilter = params.filters.find(filter => filter.name === 'routeId');
13
+ let stopIdFilter = params.filters.find(filter => filter.name === 'stopId');
14
+ let toteIdFilter = params.filters.find(filter => filter.name === 'toteId');
15
+ let orderInfoFilter;
16
+ const orderInfoParamIdx = params.filters.findIndex(param => param.name === 'orderInfo');
17
+ if (orderInfoParamIdx >= 0) {
18
+ orderInfoFilter = params.filters[orderInfoParamIdx].value.toLowerCase().split(',').join('|');
19
+ params.filters.splice(orderInfoParamIdx, 1);
20
+ }
21
+ let toteBoxFilter;
22
+ const toteBoxParamIdx = params.filters.findIndex(param => param.name === 'toteBox');
23
+ if (toteBoxParamIdx >= 0) {
24
+ toteBoxFilter = params.filters[toteBoxParamIdx].value;
25
+ params.filters.splice(toteBoxParamIdx, 1);
26
+ }
27
+ const qb = (0, typeorm_1.getRepository)(sales_base_1.ReleaseGood).createQueryBuilder('rg');
28
+ qb.select('bizplace.name', 'bizplaceName')
29
+ .addSelect('rg.name', 'releaseGoodNo')
30
+ .addSelect('rg.route_id', 'routeId')
31
+ .addSelect('rg.stop_id', 'stopId')
32
+ .addSelect('rg.release_date', 'releaseDate')
33
+ .addSelect('oti.qty', 'orderQuantity')
34
+ .addSelect('ot.name', 'tote')
35
+ .addSelect('case when ot.tote_id is null then false else true end', 'toteBox')
36
+ .addSelect('ots.name', 'sealId')
37
+ .innerJoin('worksheets', 'w', 'w.release_good_id = rg.id')
38
+ .innerJoin('order_inventories', 'oi', 'oi.release_good_id = rg.id')
39
+ .innerJoin('bizplaces', 'bizplace', 'bizplace.id = rg.bizplace_id')
40
+ .innerJoin('order_tote_items', 'oti', 'oti.order_inventory_id = oi.id')
41
+ .innerJoin('order_totes', 'ot', 'ot.id = oti.order_tote_id')
42
+ .innerJoin('order_tote_seals', 'ots', 'ots.order_tote_id = ot.id')
43
+ .where('rg.status = :status', { status: 'LOADING' })
44
+ .andWhere('bizplace.id = :bizplaceId', { bizplaceId: bizplaceFilter.value })
45
+ .andWhere('rg.release_date = :releaseDate', { releaseDate: releaseDateFilter.value })
46
+ .andWhere('w.type = :type', { type: 'LOADING' })
47
+ .andWhere('rg.domain_id = :domainId', { domainId: domain.id });
48
+ orderInfoFilter
49
+ ? qb.andWhere('(rg.name ~* :orderInfoFilter or rg.ref_no ~* :orderInfoFilter or rg.ref_no_2 ~* :orderInfoFilter or rg.ref_no_3 ~* :orderInfoFilter)', { orderInfoFilter })
50
+ : '';
51
+ toteBoxFilter ? qb.andWhere('ot.tote_id is not null') : '';
52
+ routeIdFilter ? qb.andWhere(`rg.route_id ilike :routeId`, { routeId: routeIdFilter.value }) : '';
53
+ stopIdFilter ? qb.andWhere(`rg.stop_id ilike :stopId`, { stopId: stopIdFilter.value }) : '';
54
+ toteIdFilter ? qb.andWhere(`ot.name ilike :toteId`, { toteId: toteIdFilter.value }) : '';
55
+ qb.orderBy('w.created_at', 'DESC');
56
+ qb.addOrderBy('ots.name', 'ASC');
57
+ console.time('loadingQcReport');
58
+ let items = await qb.getRawMany();
59
+ console.timeEnd('loadingQcReport');
60
+ items = items.reduce((prev, curr, idx) => {
61
+ let reducedItemIndex = prev.findIndex(itm => itm.releaseGoodNo == curr.releaseGoodNo && itm.tote == curr.tote);
62
+ if (reducedItemIndex == -1) {
63
+ prev.push(curr);
64
+ prev[prev.length - 1].totalSeal = 1;
65
+ }
66
+ else {
67
+ prev[reducedItemIndex].orderQuantity += curr.orderQuantity;
68
+ if (!prev[reducedItemIndex].sealId.includes(curr.sealId)) {
69
+ prev[reducedItemIndex].sealId = prev[reducedItemIndex].sealId.concat(', ', curr.sealId);
70
+ prev[reducedItemIndex].totalSeal++;
71
+ }
72
+ }
73
+ return prev;
74
+ }, []);
75
+ return items;
76
+ }
77
+ catch (error) {
78
+ throw error;
79
+ }
80
+ }
81
+ };
82
+ //# sourceMappingURL=tote-loading-qc-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tote-loading-qc-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/tote-loading-qc-report.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;AAK1E,2DAAwD;AAE3C,QAAA,eAAe,GAAG;IAC7B,KAAK,CAAC,eAAe,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC3D,IAAI;YACF,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;YAEpD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAC9E,IAAI,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,aAAa,CAAC,CAAA;YACpF,IAAI,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAA;YAC5E,IAAI,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA;YAC1E,IAAI,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA;YAE1E,IAAI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gB,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;wBACvF,IAAI,CAAC,gBAAgB,CAAC,CAAC,SAAS,EAAE,CAAA;qBACnC;iBACF;gBACD,OAAO,IAAI,CAAA;YACb,CAAC,EAAE,EAAE,CAAC,CAAA;YAEN,OAAO,KAAK,CAAA;SACb;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
@@ -15,6 +15,8 @@ const costing_report_1 = require("./costing-report");
15
15
  const costing_report_list_1 = require("./costing-report-list");
16
16
  const release_inventory_report_1 = require("./release-inventory-report");
17
17
  const release_inventory_report_list_1 = require("./release-inventory-report-list");
18
+ const loading_qc_report_1 = require("./loading-qc-report");
19
+ const loading_qc_report_list_1 = require("./loading-qc-report-list");
18
20
  exports.Query = `
19
21
  inboundSerialNumberReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): InboundSerialNumberReportList @transaction
20
22
  outboundSerialNumberReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): OutboundSerialNumberReportList @transaction
@@ -23,6 +25,7 @@ exports.Query = `
23
25
  productLabelReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): ProductLabelReportList @transaction
24
26
  costingReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): CostingReportList @transaction
25
27
  releaseInventoryReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): ReleaseInventoryReportList @transaction
28
+ loadingQcReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): [LoadingQcReport] @transaction
26
29
  `;
27
30
  exports.Types = [
28
31
  inbound_serial_number_report_1.InboundSerialNumberReport,
@@ -38,6 +41,8 @@ exports.Types = [
38
41
  costing_report_1.CostingReport,
39
42
  costing_report_list_1.CostingReportList,
40
43
  release_inventory_report_1.ReleaseInventoryReport,
41
- release_inventory_report_list_1.ReleaseInventoryReportList
44
+ release_inventory_report_list_1.ReleaseInventoryReportList,
45
+ loading_qc_report_1.LoadingQcReport,
46
+ loading_qc_report_list_1.LoadingQcReportList
42
47
  ];
43
48
  //# sourceMappingURL=index.js.map
@@ -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;AAE/D,QAAA,KAAK,GAAG;;;;;;;;CAQpB,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;CAC3B,CAAA"}
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;AAEjD,QAAA,KAAK,GAAG;;;;;;;;;CASpB,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;CACpB,CAAA"}
@@ -0,0 +1,14 @@
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.LoadingQcReportList = void 0;
7
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
+ exports.LoadingQcReportList = (0, graphql_tag_1.default) `
9
+ type LoadingQcReportList {
10
+ items: [LoadingQcReport]
11
+ total: Int
12
+ }
13
+ `;
14
+ //# sourceMappingURL=loading-qc-report-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loading-qc-report-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/loading-qc-report-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,mBAAmB,GAAG,IAAA,qBAAG,EAAA;;;;;CAKrC,CAAA"}
@@ -0,0 +1,22 @@
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.LoadingQcReport = void 0;
7
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
+ exports.LoadingQcReport = (0, graphql_tag_1.default) `
9
+ type LoadingQcReport {
10
+ bizplaceName: String
11
+ releaseGoodNo: String
12
+ routeId: String
13
+ stopId: String
14
+ releaseDate: Date
15
+ orderQuantity: Int
16
+ tote: String
17
+ toteBox: Boolean
18
+ sealId: String
19
+ totalSeal: Int
20
+ }
21
+ `;
22
+ //# sourceMappingURL=loading-qc-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loading-qc-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/loading-qc-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,eAAe,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;CAajC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.122",
3
+ "version": "4.3.123",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -67,32 +67,32 @@
67
67
  "@things-factory/attachment-ui": "^4.3.122",
68
68
  "@things-factory/auth-ui": "^4.3.122",
69
69
  "@things-factory/barcode-ui": "^4.3.122",
70
- "@things-factory/biz-ui": "^4.3.122",
70
+ "@things-factory/biz-ui": "^4.3.123",
71
71
  "@things-factory/board-service": "^4.3.122",
72
- "@things-factory/board-ui": "^4.3.122",
73
- "@things-factory/code-ui": "^4.3.122",
72
+ "@things-factory/board-ui": "^4.3.123",
73
+ "@things-factory/code-ui": "^4.3.123",
74
74
  "@things-factory/context-ui": "^4.3.122",
75
75
  "@things-factory/export-ui": "^4.3.122",
76
76
  "@things-factory/export-ui-csv": "^4.3.122",
77
- "@things-factory/export-ui-excel": "^4.3.122",
77
+ "@things-factory/export-ui-excel": "^4.3.123",
78
78
  "@things-factory/fav-base": "^4.3.122",
79
79
  "@things-factory/form-ui": "^4.3.122",
80
80
  "@things-factory/geography": "^4.3.122",
81
- "@things-factory/grist-ui": "^4.3.122",
81
+ "@things-factory/grist-ui": "^4.3.123",
82
82
  "@things-factory/help": "^4.3.122",
83
83
  "@things-factory/i18n-base": "^4.3.122",
84
- "@things-factory/id-rule-base": "^4.3.122",
85
- "@things-factory/import-ui": "^4.3.122",
86
- "@things-factory/import-ui-excel": "^4.3.122",
87
- "@things-factory/menu-ui": "^4.3.122",
84
+ "@things-factory/id-rule-base": "^4.3.123",
85
+ "@things-factory/import-ui": "^4.3.123",
86
+ "@things-factory/import-ui-excel": "^4.3.123",
87
+ "@things-factory/menu-ui": "^4.3.123",
88
88
  "@things-factory/more-ui": "^4.3.122",
89
89
  "@things-factory/notification": "^4.3.122",
90
90
  "@things-factory/pdf": "^4.3.122",
91
91
  "@things-factory/print-proxy-service": "^4.3.122",
92
92
  "@things-factory/print-ui": "^4.3.122",
93
93
  "@things-factory/product-base": "^4.3.122",
94
- "@things-factory/resource-ui": "^4.3.122",
95
- "@things-factory/sales-ui": "^4.3.122",
94
+ "@things-factory/resource-ui": "^4.3.123",
95
+ "@things-factory/sales-ui": "^4.3.123",
96
96
  "@things-factory/scene-data-transform": "^4.3.122",
97
97
  "@things-factory/scene-excel": "^4.3.122",
98
98
  "@things-factory/scene-firebase": "^4.3.122",
@@ -104,12 +104,12 @@
104
104
  "@things-factory/scene-mqtt": "^4.3.122",
105
105
  "@things-factory/scene-restful": "^4.3.122",
106
106
  "@things-factory/scene-visualizer": "^4.3.122",
107
- "@things-factory/setting-ui": "^4.3.122",
107
+ "@things-factory/setting-ui": "^4.3.123",
108
108
  "@things-factory/system-ui": "^4.3.122",
109
109
  "@things-factory/transport-base": "^4.3.122",
110
110
  "@things-factory/tutorial-ui": "^4.3.122",
111
- "@things-factory/warehouse-base": "^4.3.122",
112
- "@things-factory/worksheet-base": "^4.3.122"
111
+ "@things-factory/warehouse-base": "^4.3.123",
112
+ "@things-factory/worksheet-base": "^4.3.123"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@things-factory/builder": "^4.3.122",
@@ -118,5 +118,5 @@
118
118
  "cypress-localstorage-commands": "^1.6.1",
119
119
  "eslint-plugin-cypress": "^2.12.1"
120
120
  },
121
- "gitHead": "3edd80e6ca68480b22ee0e25eba34d13ab0e49f1"
121
+ "gitHead": "4b257504bfc8c0a626dd90dc0216abb7ca30d8d3"
122
122
  }