@things-factory/operato-wms 4.3.319 → 4.3.322
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/order/draft-release-good/draft-release-good-detail.js +9 -28
- package/client/pages/outbound/picking-product.js +64 -47
- package/client/pages/outbound/sorting-product.js +1 -2
- package/client/pages/report/inbound-order-details-report.js +24 -4
- package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +4 -0
- package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js.map +1 -1
- package/package.json +4 -4
- package/server/graphql/resolvers/reports/inbound-order-details-report.ts +4 -0
|
@@ -4,38 +4,20 @@ import '@things-factory/warehouse-ui'
|
|
|
4
4
|
import '@things-factory/import-ui'
|
|
5
5
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
|
-
import {
|
|
8
|
-
css,
|
|
9
|
-
html
|
|
10
|
-
} from 'lit-element'
|
|
7
|
+
import { css, html } from 'lit-element'
|
|
11
8
|
import isEmpty from 'lodash-es/isEmpty'
|
|
12
9
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
13
10
|
|
|
14
11
|
import { getCodeByName } from '@things-factory/code-base'
|
|
15
12
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
16
|
-
import {
|
|
17
|
-
i18next,
|
|
18
|
-
localize
|
|
19
|
-
} from '@things-factory/i18n-base'
|
|
13
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
20
14
|
import { openPopup } from '@things-factory/layout-base'
|
|
21
15
|
import { fetchSettingRule } from '@things-factory/setting-ui'
|
|
22
|
-
import {
|
|
23
|
-
client,
|
|
24
|
-
CustomAlert,
|
|
25
|
-
navigate,
|
|
26
|
-
PageView,
|
|
27
|
-
store
|
|
28
|
-
} from '@things-factory/shell'
|
|
16
|
+
import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
|
|
29
17
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
30
|
-
import {
|
|
31
|
-
flattenObject,
|
|
32
|
-
isMobileDevice
|
|
33
|
-
} from '@things-factory/utils'
|
|
18
|
+
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
34
19
|
|
|
35
|
-
import {
|
|
36
|
-
DRAFT_RELEASE_ORDER_STATUS,
|
|
37
|
-
PRODUCT_GROUP_TYPES
|
|
38
|
-
} from '../../../constants'
|
|
20
|
+
import { DRAFT_RELEASE_ORDER_STATUS, PRODUCT_GROUP_TYPES } from '../../../constants'
|
|
39
21
|
|
|
40
22
|
class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
41
23
|
static get properties() {
|
|
@@ -733,6 +715,7 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
733
715
|
productId: record?.product?.id || record?.product?.productId,
|
|
734
716
|
packingType: record?.packingType,
|
|
735
717
|
packingSize: record?.packingSize,
|
|
718
|
+
productDetail: record?.productDetail,
|
|
736
719
|
uom: record?.uom,
|
|
737
720
|
groupType: record?.groupType
|
|
738
721
|
}
|
|
@@ -1126,8 +1109,9 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
1126
1109
|
id: record.id ? record.id.toString() : null,
|
|
1127
1110
|
name: record.name ? record.name.toString() : null,
|
|
1128
1111
|
product: { id: record.product.id },
|
|
1129
|
-
productDetail: { id: record.productDetail.id },
|
|
1112
|
+
productDetail: { id: record.productDetailId || record.productDetail.id },
|
|
1130
1113
|
packingType: record.packingType,
|
|
1114
|
+
packingSize: record.packingSize,
|
|
1131
1115
|
uomValue: record?.uomValue ? record.uomValue : 0,
|
|
1132
1116
|
uom: record.uom,
|
|
1133
1117
|
releaseQty: record.releaseQty,
|
|
@@ -1171,10 +1155,7 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
1171
1155
|
this._draftOrderData?.shippingOrder?.containerLeavingDate == this._shippingOrderForm.containerLeavingDate.value &&
|
|
1172
1156
|
this._draftOrderData?.shippingOrder?.shipName == this._shippingOrderForm.shipName.value
|
|
1173
1157
|
// check changes in product
|
|
1174
|
-
let checkProductDataChange = this._compareArray(
|
|
1175
|
-
this._productGrist.dirtyData.records,
|
|
1176
|
-
this._productData.records
|
|
1177
|
-
)
|
|
1158
|
+
let checkProductDataChange = this._compareArray(this._productGrist.dirtyData.records, this._productData.records)
|
|
1178
1159
|
if (checkFormInfoChange == true && checkProductDataChange != true && checkShippingFormInfo == true)
|
|
1179
1160
|
throw new Error(i18next.t('text.nothing_changed'))
|
|
1180
1161
|
}
|
|
@@ -297,6 +297,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
+
//set the initial value of object attributes
|
|
300
301
|
constructor() {
|
|
301
302
|
super()
|
|
302
303
|
|
|
@@ -1709,7 +1710,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1709
1710
|
})
|
|
1710
1711
|
|
|
1711
1712
|
if (!response.errors) {
|
|
1712
|
-
if (!this._selectedOrderInventory) this.clearView()
|
|
1713
|
+
//if (!this._selectedOrderInventory) this.clearView()
|
|
1713
1714
|
this.taskNo = pickingRefNo
|
|
1714
1715
|
if (!response.data?.batchPickingWorksheet) return
|
|
1715
1716
|
|
|
@@ -1891,63 +1892,79 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1891
1892
|
return
|
|
1892
1893
|
}
|
|
1893
1894
|
|
|
1894
|
-
this.
|
|
1895
|
+
if (this._isExecuting) {
|
|
1896
|
+
return
|
|
1897
|
+
} else {
|
|
1898
|
+
await this.complete()
|
|
1899
|
+
}
|
|
1895
1900
|
}
|
|
1896
1901
|
|
|
1897
1902
|
async complete() {
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1903
|
+
if (this._isExecuting) {
|
|
1904
|
+
return
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
this._isExecuting = true
|
|
1908
|
+
|
|
1909
|
+
try{
|
|
1910
|
+
let response
|
|
1911
|
+
switch (this.refPickingType) {
|
|
1912
|
+
case PICKING_TYPES.PICKING.value:
|
|
1913
|
+
response = await client.mutate({
|
|
1914
|
+
mutation: gql`
|
|
1915
|
+
mutation completePicking($releaseGoodNo: String!) {
|
|
1916
|
+
completePicking(releaseGoodNo: $releaseGoodNo) {
|
|
1917
|
+
obsolete
|
|
1918
|
+
}
|
|
1906
1919
|
}
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
break
|
|
1920
|
+
`,
|
|
1921
|
+
variables: { releaseGoodNo: this.releaseGoodNo }
|
|
1922
|
+
})
|
|
1923
|
+
break
|
|
1912
1924
|
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1925
|
+
case PICKING_TYPES.BATCH_PICKING.value:
|
|
1926
|
+
response = await client.mutate({
|
|
1927
|
+
mutation: gql`
|
|
1928
|
+
mutation completeBatchPicking($taskNo: String!) {
|
|
1929
|
+
completeBatchPicking(taskNo: $taskNo) {
|
|
1930
|
+
obsolete
|
|
1931
|
+
}
|
|
1919
1932
|
}
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
}
|
|
1933
|
+
`,
|
|
1934
|
+
variables: { taskNo: this.taskNo }
|
|
1935
|
+
})
|
|
1936
|
+
break
|
|
1937
|
+
}
|
|
1926
1938
|
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1939
|
+
if (!response.errors) {
|
|
1940
|
+
if (response.data?.completePicking?.obsolete || response.data?.completeBatchPicking?.obsolete) {
|
|
1941
|
+
showToast({ message: i18next.t('text.obsolete_inventory_found_please_reassign') })
|
|
1942
|
+
} else {
|
|
1943
|
+
this.clearView()
|
|
1944
|
+
this._orderNo = ''
|
|
1945
|
+
this._bizplaceName = ''
|
|
1946
|
+
this._currentBinLocation = ''
|
|
1947
|
+
this._selectedOrderInventory = null
|
|
1948
|
+
await CustomAlert({
|
|
1949
|
+
title: i18next.t('title.picking'),
|
|
1950
|
+
text: i18next.t('text.picking_is_completed'),
|
|
1951
|
+
confirmButton: { text: i18next.t('button.confirm') }
|
|
1952
|
+
})
|
|
1941
1953
|
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1954
|
+
if (!this.orderNo) {
|
|
1955
|
+
if (this.refPickingType === PICKING_TYPES.PICKING.value) {
|
|
1956
|
+
this.releaseGoodNoInput.value = ''
|
|
1957
|
+
} else {
|
|
1958
|
+
this.taskNoInput.value = ''
|
|
1959
|
+
}
|
|
1947
1960
|
}
|
|
1961
|
+
this.updateContext()
|
|
1948
1962
|
}
|
|
1949
|
-
this.updateContext()
|
|
1950
1963
|
}
|
|
1964
|
+
}catch(e){
|
|
1965
|
+
showToast(e)
|
|
1966
|
+
} finally{
|
|
1967
|
+
this._isExecuting= false
|
|
1951
1968
|
}
|
|
1952
1969
|
}
|
|
1953
1970
|
|
|
@@ -588,8 +588,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
588
588
|
let response
|
|
589
589
|
if (this._enableProductScanning) {
|
|
590
590
|
const records = this.data.records.filter(
|
|
591
|
-
record =>
|
|
592
|
-
record.productBarcodes.find(pb => pb.gtin === this.productBarcodeInput.value) && record.status !== 'SORTED'
|
|
591
|
+
record => record.productBarcodes.find(pb => pb.gtin) && record.status !== 'SORTED'
|
|
593
592
|
)
|
|
594
593
|
|
|
595
594
|
if (records.length > 1 && !this?._lastScannedProductId) {
|
|
@@ -3,12 +3,26 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import '../inventory/inventory-by-product-detail'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
css,
|
|
8
|
+
html
|
|
9
|
+
} from 'lit-element'
|
|
7
10
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
8
11
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
import {
|
|
13
|
+
i18next,
|
|
14
|
+
localize
|
|
15
|
+
} from '@things-factory/i18n-base'
|
|
16
|
+
import {
|
|
17
|
+
client,
|
|
18
|
+
gqlContext,
|
|
19
|
+
PageView,
|
|
20
|
+
store
|
|
21
|
+
} from '@things-factory/shell'
|
|
22
|
+
import {
|
|
23
|
+
flattenObject,
|
|
24
|
+
isMobileDevice
|
|
25
|
+
} from '@things-factory/utils'
|
|
12
26
|
|
|
13
27
|
class InboundOrderDetailsReport extends connect(store)(localize(i18next)(PageView)) {
|
|
14
28
|
static get styles() {
|
|
@@ -172,6 +186,12 @@ class InboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVie
|
|
|
172
186
|
name: 'doNo',
|
|
173
187
|
type: 'text',
|
|
174
188
|
props: { searchOper: 'custom' }
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
label: i18next.t('field.lot_id'),
|
|
192
|
+
name: 'palletId',
|
|
193
|
+
type: 'text',
|
|
194
|
+
props: { searchOper: 'custom' }
|
|
175
195
|
}
|
|
176
196
|
]
|
|
177
197
|
}
|
|
@@ -16,6 +16,7 @@ exports.inboundOrderDetailsReport = {
|
|
|
16
16
|
let grnNo = params.filters.find(data => data.name === 'grnNo');
|
|
17
17
|
let poNo = params.filters.find(data => data.name === 'poNo');
|
|
18
18
|
let doNo = params.filters.find(data => data.name === 'doNo');
|
|
19
|
+
let lotId = params.filters.find(data => data.name == 'palletId');
|
|
19
20
|
if (userFilter) {
|
|
20
21
|
const user = await tx.getRepository(auth_base_1.User).findOne({
|
|
21
22
|
where: { id: userFilter.value },
|
|
@@ -48,6 +49,9 @@ exports.inboundOrderDetailsReport = {
|
|
|
48
49
|
if (doNo) {
|
|
49
50
|
extraQueryFilters = `${extraQueryFilters} and delivery_order_no like '%${doNo.value}%' `;
|
|
50
51
|
}
|
|
52
|
+
if (lotId) {
|
|
53
|
+
extraQueryFilters = `${extraQueryFilters} and pallet_id like '%${lotId.value}%' `;
|
|
54
|
+
}
|
|
51
55
|
await tx.query(`
|
|
52
56
|
create temp table temp_inbound_order_report on commit drop as (
|
|
53
57
|
select * from (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/inbound-order-details-report.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACrE,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;YAClE,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,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;YAC9D,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;YAC9D,IAAI,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;YAC5D,IAAI,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"inbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/inbound-order-details-report.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACrE,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;YAClE,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,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EAAE;oBACnB,IAAI,CAAC,UAAU,CAAC,GAAG;wBACjB,EAAE,EAAE,GAAG,CAAC,WAAW;wBACnB,IAAI,EAAE,GAAG,CAAC,aAAa;qBACxB,CAAA;iBACF;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"}
|
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.322",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@things-factory/print-ui": "^4.3.281",
|
|
92
92
|
"@things-factory/product-base": "^4.3.318",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.281",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.321",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.281",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.281",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.281",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.301",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.281",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.318",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.322"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.281",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "c5d7ae00a340ee35d829d4cd1b0fb2b7bc3452e2"
|
|
121
121
|
}
|
|
@@ -18,6 +18,7 @@ export const inboundOrderDetailsReport = {
|
|
|
18
18
|
let grnNo = params.filters.find(data => data.name === 'grnNo')
|
|
19
19
|
let poNo = params.filters.find(data => data.name === 'poNo')
|
|
20
20
|
let doNo = params.filters.find(data => data.name === 'doNo')
|
|
21
|
+
let lotId = params.filters.find(data => data.name == 'palletId')
|
|
21
22
|
|
|
22
23
|
if (userFilter) {
|
|
23
24
|
const user: User = await tx.getRepository(User).findOne({
|
|
@@ -55,6 +56,9 @@ export const inboundOrderDetailsReport = {
|
|
|
55
56
|
if (doNo) {
|
|
56
57
|
extraQueryFilters = `${extraQueryFilters} and delivery_order_no like '%${doNo.value}%' `
|
|
57
58
|
}
|
|
59
|
+
if(lotId) {
|
|
60
|
+
extraQueryFilters = `${extraQueryFilters} and pallet_id like '%${lotId.value}%' `
|
|
61
|
+
}
|
|
58
62
|
|
|
59
63
|
await tx.query(
|
|
60
64
|
`
|