@things-factory/operato-wms 4.3.50 → 4.3.53
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-product-popup.js +40 -4
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +8 -9
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
- package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js +1 -1
- package/package.json +11 -11
- package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +14 -16
- package/server/graphql/resolvers/dashboard/outbound-order-by-status.ts +1 -1
|
@@ -121,8 +121,7 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
121
121
|
pagination: { pages: [10, 20, 50, 100] },
|
|
122
122
|
rows: {
|
|
123
123
|
appendable: false,
|
|
124
|
-
selectable: { multiple: this.selectMultipleProducts ? this.selectMultipleProducts : false }
|
|
125
|
-
handlers: { dblclick: this.selectProduct.bind(this) }
|
|
124
|
+
selectable: { multiple: this.selectMultipleProducts ? this.selectMultipleProducts : false }
|
|
126
125
|
},
|
|
127
126
|
columns: [
|
|
128
127
|
{ type: 'gutter', gutterName: 'sequence' },
|
|
@@ -241,9 +240,9 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
241
240
|
}
|
|
242
241
|
}
|
|
243
242
|
|
|
244
|
-
selectProduct(
|
|
243
|
+
selectProduct() {
|
|
245
244
|
if (this.selectMultipleProducts !== true) {
|
|
246
|
-
const selectedProduct =
|
|
245
|
+
const selectedProduct = this.productGrist.selected[0]
|
|
247
246
|
if (selectedProduct) {
|
|
248
247
|
this.dispatchEvent(
|
|
249
248
|
new CustomEvent('selected', {
|
|
@@ -273,6 +272,43 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
273
272
|
new CustomEvent('notify', { detail: { message: i18next.t('text.product_is_not_selected') } })
|
|
274
273
|
)
|
|
275
274
|
}
|
|
275
|
+
} else {
|
|
276
|
+
const selectedMultipleProducts = this.productGrist.selected
|
|
277
|
+
if (selectedMultipleProducts) {
|
|
278
|
+
const multipleProducts = selectedMultipleProducts.map(itm => {
|
|
279
|
+
return {
|
|
280
|
+
productDetailId: itm.id,
|
|
281
|
+
packingType: itm.packingType,
|
|
282
|
+
uom: itm.uom,
|
|
283
|
+
uomValue: itm.uomValue,
|
|
284
|
+
productName: `${itm.name}(${itm.description}(${itm.sku}))`,
|
|
285
|
+
isError: false,
|
|
286
|
+
productBrand: itm.brand,
|
|
287
|
+
product: {
|
|
288
|
+
id: itm.productId,
|
|
289
|
+
name: itm.name,
|
|
290
|
+
sku: itm.sku,
|
|
291
|
+
packingType: itm.packingType,
|
|
292
|
+
packingSize: itm.packingSize,
|
|
293
|
+
primaryUnit: itm.uom,
|
|
294
|
+
primaryValue: itm.uomValue
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
})
|
|
298
|
+
|
|
299
|
+
this.dispatchEvent(
|
|
300
|
+
new CustomEvent('selected', {
|
|
301
|
+
detail: {
|
|
302
|
+
multipleProducts
|
|
303
|
+
}
|
|
304
|
+
})
|
|
305
|
+
)
|
|
306
|
+
history.back()
|
|
307
|
+
} else {
|
|
308
|
+
document.dispatchEvent(
|
|
309
|
+
new CustomEvent('notify', { detail: { message: i18next.t('text.product_is_not_selected') } })
|
|
310
|
+
)
|
|
311
|
+
}
|
|
276
312
|
}
|
|
277
313
|
}
|
|
278
314
|
}
|
|
@@ -20,8 +20,9 @@ exports.elcclInventoryHistoryReport = {
|
|
|
20
20
|
let batchNoQuery = '';
|
|
21
21
|
if (batchNo) {
|
|
22
22
|
batchNoQuery =
|
|
23
|
-
'AND invh.batch_id
|
|
23
|
+
'AND Lower(invh.batch_id) LIKE ANY(ARRAY[' +
|
|
24
24
|
batchNo.value
|
|
25
|
+
.toLowerCase()
|
|
25
26
|
.split(',')
|
|
26
27
|
.map(prod => {
|
|
27
28
|
return "'%" + prod.trim().replace(/'/g, "''") + "%'";
|
|
@@ -37,14 +38,12 @@ exports.elcclInventoryHistoryReport = {
|
|
|
37
38
|
.map(prod => {
|
|
38
39
|
return "'%" + prod.trim().replace(/'/g, "''") + "%'";
|
|
39
40
|
})
|
|
40
|
-
.join(',')
|
|
41
|
-
productQuery =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
'OR prd.description ILIKE ANY(ARRAY[' +
|
|
47
|
-
productValue;
|
|
41
|
+
.join(',');
|
|
42
|
+
productQuery = `AND (
|
|
43
|
+
Lower(prd.name) LIKE ANY(ARRAY[${productValue}])
|
|
44
|
+
OR Lower(prd.sku) LIKE ANY(ARRAY[${productValue}])
|
|
45
|
+
OR Lower(prd.description) LIKE ANY(ARRAY[${productValue}])
|
|
46
|
+
)`;
|
|
48
47
|
}
|
|
49
48
|
await tx.query(`
|
|
50
49
|
create temp table temp_data_src AS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elccl-inventory-history-report.js","sourceRoot":"","sources":["../../../../../server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAGtC,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,2BAA2B,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACvE,IAAI;YACF,oDAAoD;YACpD,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YAEnD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAE1E,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACpE,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA;YAChE,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACnE,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAA;YAElE,IAAI,CAAC,cAAc,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM;gBAAE,MAAM,eAAe,CAAA;YAElE,MAAM,QAAQ,GAAa,MAAM,EAAE,CAAC,aAAa,CAAC,mBAAQ,CAAC,CAAC,OAAO,CAAC;gBAClE,EAAE,EAAE,cAAc,CAAC,KAAK;aACzB,CAAC,CAAA;YAEF,IAAI,YAAY,GAAG,EAAE,CAAA;YACrB,IAAI,OAAO,EAAE;gBACX,YAAY;oBACV,
|
|
1
|
+
{"version":3,"file":"elccl-inventory-history-report.js","sourceRoot":"","sources":["../../../../../server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAGtC,QAAA,2BAA2B,GAAG;IACzC,KAAK,CAAC,2BAA2B,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACvE,IAAI;YACF,oDAAoD;YACpD,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YAEnD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAE1E,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACpE,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,C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iBAC1B,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO,KAAK,CAAA;SACb;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
|
|
@@ -77,7 +77,7 @@ exports.outboundOrderByStatusResolver = {
|
|
|
77
77
|
UNION ALL
|
|
78
78
|
SELECT 'AWAITING DISPATCH' AS "status", count(*) FROM manifests m
|
|
79
79
|
INNER JOIN release_goods rg ON rg.manifest_id = m.id
|
|
80
|
-
WHERE m."status"
|
|
80
|
+
WHERE m."status" in ('OPEN', 'IN_QUEUE')
|
|
81
81
|
AND m."domain_id" = $1
|
|
82
82
|
AND rg."bizplace_id" IN (${bizplaceIds})
|
|
83
83
|
UNION ALL
|
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.53",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"@things-factory/board-service": "^4.3.47",
|
|
72
72
|
"@things-factory/board-ui": "^4.3.47",
|
|
73
73
|
"@things-factory/code-ui": "^4.3.47",
|
|
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.
|
|
74
|
+
"@things-factory/context-ui": "^4.3.52",
|
|
75
|
+
"@things-factory/export-ui": "^4.3.52",
|
|
76
|
+
"@things-factory/export-ui-csv": "^4.3.52",
|
|
77
|
+
"@things-factory/export-ui-excel": "^4.3.52",
|
|
78
78
|
"@things-factory/fav-base": "^4.3.47",
|
|
79
79
|
"@things-factory/form-ui": "^4.3.47",
|
|
80
80
|
"@things-factory/geography": "^4.3.47",
|
|
@@ -89,10 +89,10 @@
|
|
|
89
89
|
"@things-factory/notification": "^4.3.47",
|
|
90
90
|
"@things-factory/pdf": "^4.3.47",
|
|
91
91
|
"@things-factory/print-proxy-service": "^4.3.47",
|
|
92
|
-
"@things-factory/print-ui": "^4.3.
|
|
92
|
+
"@things-factory/print-ui": "^4.3.52",
|
|
93
93
|
"@things-factory/product-base": "^4.3.47",
|
|
94
|
-
"@things-factory/resource-ui": "^4.3.
|
|
95
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/resource-ui": "^4.3.52",
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.52",
|
|
96
96
|
"@things-factory/scene-data-transform": "^4.3.47",
|
|
97
97
|
"@things-factory/scene-excel": "^4.3.47",
|
|
98
98
|
"@things-factory/scene-firebase": "^4.3.47",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@things-factory/system-ui": "^4.3.47",
|
|
109
109
|
"@things-factory/transport-base": "^4.3.47",
|
|
110
110
|
"@things-factory/tutorial-ui": "^4.3.47",
|
|
111
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.52",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.52"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@things-factory/builder": "^4.3.47",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "d697947d50160ee5b0e67f55342e9c264400145c"
|
|
122
122
|
}
|
|
@@ -25,8 +25,9 @@ export const elcclInventoryHistoryReport = {
|
|
|
25
25
|
let batchNoQuery = ''
|
|
26
26
|
if (batchNo) {
|
|
27
27
|
batchNoQuery =
|
|
28
|
-
'AND invh.batch_id
|
|
28
|
+
'AND Lower(invh.batch_id) LIKE ANY(ARRAY[' +
|
|
29
29
|
batchNo.value
|
|
30
|
+
.toLowerCase()
|
|
30
31
|
.split(',')
|
|
31
32
|
.map(prod => {
|
|
32
33
|
return "'%" + prod.trim().replace(/'/g, "''") + "%'"
|
|
@@ -37,21 +38,18 @@ export const elcclInventoryHistoryReport = {
|
|
|
37
38
|
|
|
38
39
|
let productQuery = ''
|
|
39
40
|
if (product) {
|
|
40
|
-
let productValue =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
productValue
|
|
51
|
-
|
|
52
|
-
productValue +
|
|
53
|
-
'OR prd.description ILIKE ANY(ARRAY[' +
|
|
54
|
-
productValue
|
|
41
|
+
let productValue = product.value
|
|
42
|
+
.toLowerCase()
|
|
43
|
+
.split(',')
|
|
44
|
+
.map(prod => {
|
|
45
|
+
return "'%" + prod.trim().replace(/'/g, "''") + "%'"
|
|
46
|
+
})
|
|
47
|
+
.join(',')
|
|
48
|
+
productQuery = `AND (
|
|
49
|
+
Lower(prd.name) LIKE ANY(ARRAY[${productValue}])
|
|
50
|
+
OR Lower(prd.sku) LIKE ANY(ARRAY[${productValue}])
|
|
51
|
+
OR Lower(prd.description) LIKE ANY(ARRAY[${productValue}])
|
|
52
|
+
)`
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
await tx.query(
|
|
@@ -80,7 +80,7 @@ export const outboundOrderByStatusResolver = {
|
|
|
80
80
|
UNION ALL
|
|
81
81
|
SELECT 'AWAITING DISPATCH' AS "status", count(*) FROM manifests m
|
|
82
82
|
INNER JOIN release_goods rg ON rg.manifest_id = m.id
|
|
83
|
-
WHERE m."status"
|
|
83
|
+
WHERE m."status" in ('OPEN', 'IN_QUEUE')
|
|
84
84
|
AND m."domain_id" = $1
|
|
85
85
|
AND rg."bizplace_id" IN (${bizplaceIds})
|
|
86
86
|
UNION ALL
|