@things-factory/operato-wms 4.3.43 → 4.3.46
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.
|
@@ -644,11 +644,13 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
644
644
|
records: worksheetDetailInfo
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
-
if (
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
647
|
+
if (this._selectedOrderProduct) {
|
|
648
|
+
let quantityTally = worksheetDetailInfo.filter(
|
|
649
|
+
itm => itm.id == this._selectedOrderProduct.id && itm.actualPackQty == itm.packQty
|
|
650
|
+
)
|
|
651
|
+
if (quantityTally?.length == 1) {
|
|
652
|
+
this._selectedOrderProduct = null
|
|
653
|
+
}
|
|
652
654
|
}
|
|
653
655
|
|
|
654
656
|
const partnerDomainId = worksheetInfo.partnerDomainId
|
|
@@ -847,14 +849,17 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
847
849
|
e.preventDefault()
|
|
848
850
|
try {
|
|
849
851
|
if (!this._enableCartonLabel) return this._unloadSelected()
|
|
850
|
-
await this._validateUnloading()
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
return this._scanSerialNumberUnload()
|
|
852
|
+
let orderProducts = await this._validateUnloading()
|
|
853
|
+
if (orderProducts?.length > 1) {
|
|
854
|
+
this.selectOrderProduct(orderProducts)
|
|
854
855
|
} else {
|
|
855
|
-
if (
|
|
856
|
+
if (this._isRequireSerialNumberScanningInbound) {
|
|
857
|
+
return this._scanSerialNumberUnload()
|
|
858
|
+
} else {
|
|
859
|
+
if (!(this._enableProductScanning && !this._enableInputQty)) return this._qtyUnload()
|
|
860
|
+
}
|
|
861
|
+
this._scanProductUnload()
|
|
856
862
|
}
|
|
857
|
-
this._scanProductUnload()
|
|
858
863
|
} catch (e) {
|
|
859
864
|
this._showToast(e)
|
|
860
865
|
}
|
|
@@ -1090,14 +1095,18 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1090
1095
|
if (this._selectedOrderProduct && this._selectedOrderProduct.product.sku !== product.sku)
|
|
1091
1096
|
this._selectedOrderProduct = null
|
|
1092
1097
|
|
|
1093
|
-
if (
|
|
1094
|
-
if (
|
|
1095
|
-
this.
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
} else
|
|
1099
|
-
|
|
1098
|
+
if (foundOrderProducts?.length > 1) {
|
|
1099
|
+
if (this._isRequireSerialNumberScanningInbound) {
|
|
1100
|
+
if (!this._selectedOrderProduct) {
|
|
1101
|
+
return foundOrderProducts
|
|
1102
|
+
}
|
|
1103
|
+
} else {
|
|
1104
|
+
return foundOrderProducts
|
|
1100
1105
|
}
|
|
1106
|
+
} else if (foundOrderProducts?.length == 1) {
|
|
1107
|
+
this._selectedOrderProduct = foundOrderProducts[0]
|
|
1108
|
+
} else if (foundOrderProducts?.length == 0 && foundParentProducts?.length > 0) {
|
|
1109
|
+
this._selectedOrderProduct = foundParentProducts[0]
|
|
1101
1110
|
}
|
|
1102
1111
|
}
|
|
1103
1112
|
} catch (e) {
|
|
@@ -1114,12 +1123,17 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1114
1123
|
this._selectedOrderProduct = e.detail
|
|
1115
1124
|
|
|
1116
1125
|
if (e.detail.product.isRequireSerialNumberScanningInbound) {
|
|
1126
|
+
this._isRequireSerialNumberScanningInbound = true
|
|
1127
|
+
if (!this.serialNumberInput.value) {
|
|
1128
|
+
this._focusOnSerialNumberInput()
|
|
1129
|
+
this._showToast(Error(i18next.t('text.serial_number_is_empty')))
|
|
1130
|
+
}
|
|
1117
1131
|
await this._scanSerialNumberUnload()
|
|
1118
1132
|
} else {
|
|
1119
1133
|
if (this._enableProductScanning && !this._enableInputQty) {
|
|
1120
1134
|
await this._scanProductUnload()
|
|
1121
1135
|
} else {
|
|
1122
|
-
this.
|
|
1136
|
+
await this._qtyUnload()
|
|
1123
1137
|
}
|
|
1124
1138
|
}
|
|
1125
1139
|
}}"
|
|
@@ -1182,7 +1196,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1182
1196
|
throw new Error(i18next.t('text.scan_product_barcode'))
|
|
1183
1197
|
}
|
|
1184
1198
|
|
|
1185
|
-
await this._checkedScannedProduct()
|
|
1199
|
+
let orderProducts = await this._checkedScannedProduct()
|
|
1186
1200
|
|
|
1187
1201
|
if (this._enableInputQty && !this._isRequireSerialNumberScanningInbound) {
|
|
1188
1202
|
if (!parseInt(this.actualQtyInput.value)) {
|
|
@@ -1195,9 +1209,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1195
1209
|
throw new Error(i18next.t('text.qty_should_be_positive'))
|
|
1196
1210
|
}
|
|
1197
1211
|
} else if (this._isRequireSerialNumberScanningInbound) {
|
|
1198
|
-
if (
|
|
1199
|
-
this.
|
|
1200
|
-
|
|
1212
|
+
if (this.serialNumberInput) {
|
|
1213
|
+
if (!this.serialNumberInput.value) {
|
|
1214
|
+
this._focusOnSerialNumberInput()
|
|
1215
|
+
throw new Error(i18next.t('text.enter_serial_number'))
|
|
1216
|
+
}
|
|
1201
1217
|
}
|
|
1202
1218
|
}
|
|
1203
1219
|
|
|
@@ -1207,6 +1223,10 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1207
1223
|
throw new Error(i18next.t('text.expiry_date_is_empty'))
|
|
1208
1224
|
}
|
|
1209
1225
|
}
|
|
1226
|
+
|
|
1227
|
+
if (orderProducts?.length > 1) {
|
|
1228
|
+
return orderProducts
|
|
1229
|
+
}
|
|
1210
1230
|
}
|
|
1211
1231
|
}
|
|
1212
1232
|
|
|
@@ -17,7 +17,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
17
17
|
import { openPopup } from '@things-factory/layout-base'
|
|
18
18
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
19
19
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
20
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
20
|
+
import { isMobileDevice, sleep } from '@things-factory/utils'
|
|
21
21
|
|
|
22
22
|
import { fetchSettingRule } from '../../fetch-setting-value'
|
|
23
23
|
import {
|
|
@@ -253,7 +253,7 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
253
253
|
// await this.fetchVas()
|
|
254
254
|
// await this.fetchOrderVas()
|
|
255
255
|
this.updateContext()
|
|
256
|
-
this._updateGristConfig()
|
|
256
|
+
await this._updateGristConfig()
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
|
|
@@ -435,6 +435,7 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
435
435
|
}
|
|
436
436
|
]
|
|
437
437
|
}
|
|
438
|
+
this.config = this.preConfig
|
|
438
439
|
}
|
|
439
440
|
|
|
440
441
|
updated(changedProps) {
|
|
@@ -723,7 +724,7 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
723
724
|
})
|
|
724
725
|
}
|
|
725
726
|
|
|
726
|
-
_updateGristConfig() {
|
|
727
|
+
async _updateGristConfig() {
|
|
727
728
|
const statusColumnConfig = {
|
|
728
729
|
type: 'string',
|
|
729
730
|
name: 'status',
|
|
@@ -886,7 +887,7 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
886
887
|
|
|
887
888
|
await this.fetchWorksheet()
|
|
888
889
|
this.updateContext()
|
|
889
|
-
this._updateGristConfig()
|
|
890
|
+
await this._updateGristConfig()
|
|
890
891
|
}
|
|
891
892
|
} catch (e) {
|
|
892
893
|
this._showToast(e)
|
|
@@ -935,7 +936,8 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
935
936
|
})
|
|
936
937
|
}
|
|
937
938
|
|
|
938
|
-
_openLotLabelPrintPopup() {
|
|
939
|
+
async _openLotLabelPrintPopup() {
|
|
940
|
+
await sleep(1010)
|
|
939
941
|
const _pallets = {
|
|
940
942
|
records: this.data.records.map(record => {
|
|
941
943
|
return {
|
|
@@ -957,7 +959,8 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
957
959
|
})
|
|
958
960
|
}
|
|
959
961
|
|
|
960
|
-
_openCartonLabelPrintPopup() {
|
|
962
|
+
async _openCartonLabelPrintPopup() {
|
|
963
|
+
await sleep(1010)
|
|
961
964
|
openPopup(html` <carton-label-popup .bizplaceName="${this._bizplace}"></carton-label-popup> `, {
|
|
962
965
|
backdrop: true,
|
|
963
966
|
size: 'small',
|
|
@@ -965,7 +968,8 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
965
968
|
})
|
|
966
969
|
}
|
|
967
970
|
|
|
968
|
-
_showPutawayWorksheetPopup() {
|
|
971
|
+
async _showPutawayWorksheetPopup() {
|
|
972
|
+
await sleep(1010)
|
|
969
973
|
openPopup(
|
|
970
974
|
html`
|
|
971
975
|
<putaway-worksheet-generate-popup
|
|
@@ -585,6 +585,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
585
585
|
purchaseOrderNo
|
|
586
586
|
orderProductRemark
|
|
587
587
|
arrivalNoticeRefNo
|
|
588
|
+
arrivalNoticeNo
|
|
588
589
|
}
|
|
589
590
|
total
|
|
590
591
|
}
|
|
@@ -1330,6 +1331,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1330
1331
|
searchParams.append('purchaseOrderNo', record.purchaseOrderNo)
|
|
1331
1332
|
searchParams.append('orderProductRemark', record.orderProductRemark)
|
|
1332
1333
|
searchParams.append('refNo', record.arrivalNoticeRefNo)
|
|
1334
|
+
searchParams.append('ganNo', record.arrivalNoticeNo)
|
|
1333
1335
|
|
|
1334
1336
|
try {
|
|
1335
1337
|
const response = await fetch(`label-command/${labelId}?${searchParams.toString()}`, {
|
|
@@ -178,6 +178,18 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
178
178
|
header: i18next.t('field.total_uom_value'),
|
|
179
179
|
width: 110
|
|
180
180
|
},
|
|
181
|
+
{
|
|
182
|
+
type: 'number',
|
|
183
|
+
name: 'nonLoadedQty',
|
|
184
|
+
header: i18next.t('field.non_loaded_qty'),
|
|
185
|
+
width: 80
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
type: 'float',
|
|
189
|
+
name: 'nonLoadedUomValue',
|
|
190
|
+
header: i18next.t('field.non_loaded_uom_value'),
|
|
191
|
+
width: 110
|
|
192
|
+
},
|
|
181
193
|
{
|
|
182
194
|
type: 'string',
|
|
183
195
|
name: 'uom',
|
|
@@ -408,6 +420,8 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
408
420
|
}
|
|
409
421
|
qty
|
|
410
422
|
remainQty
|
|
423
|
+
nonLoadedQty
|
|
424
|
+
nonLoadedUomValue
|
|
411
425
|
warehouse {
|
|
412
426
|
id
|
|
413
427
|
name
|
|
@@ -510,11 +524,12 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
|
|
|
510
524
|
{ header: i18next.t('field.packing_type'), key: 'packingType', width: 20, type: 'string' },
|
|
511
525
|
{ header: i18next.t('field.qty'), key: 'remainQty', width: 15, type: 'string' },
|
|
512
526
|
{ header: i18next.t('field.total_uom_value'), key: 'uomValue', width: 25, type: 'string' },
|
|
527
|
+
{ header: i18next.t('field.non_loaded_qty'), key: 'nonLoadedQty', width: 25, type: 'string' },
|
|
528
|
+
{ header: i18next.t('field.non_loaded_uom_value'), key: 'nonLoadedUomValue', width: 25, type: 'string' },
|
|
513
529
|
{ header: i18next.t('field.uom'), key: 'uom', width: 15, type: 'string' },
|
|
514
530
|
{ header: i18next.t('field.location'), key: 'location_name', width: 25, type: 'string' },
|
|
515
531
|
{ header: i18next.t('field.remark'), key: 'remark', width: 40, type: 'string' },
|
|
516
532
|
{ header: i18next.t('field.exp_date'), key: 'expirationDate', width: 30, type: 'date' },
|
|
517
|
-
{ header: i18next.t('field.batch_id'), key: 'batchId', width: 30, type: 'string' },
|
|
518
533
|
{ header: i18next.t('field.batch_no_ref'), key: 'batchIdRef', width: 50, type: 'string' },
|
|
519
534
|
{ header: i18next.t('field.volume_m3'), key: 'volume', width: 25, type: 'float' },
|
|
520
535
|
{ header: i18next.t('field.unit_cost'), key: 'unitCost', width: 25, type: 'float' }
|
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.46",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -63,61 +63,61 @@
|
|
|
63
63
|
"@operato/scene-tab": "^0.1.6",
|
|
64
64
|
"@operato/scene-table": "^0.1.6",
|
|
65
65
|
"@operato/scene-wheel-sorter": "^0.1.6",
|
|
66
|
-
"@things-factory/apptool-ui": "^4.3.
|
|
67
|
-
"@things-factory/attachment-ui": "^4.3.
|
|
68
|
-
"@things-factory/auth-ui": "^4.3.
|
|
69
|
-
"@things-factory/barcode-ui": "^4.3.
|
|
70
|
-
"@things-factory/biz-ui": "^4.3.
|
|
71
|
-
"@things-factory/board-service": "^4.3.
|
|
72
|
-
"@things-factory/board-ui": "^4.3.
|
|
73
|
-
"@things-factory/code-ui": "^4.3.
|
|
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.
|
|
78
|
-
"@things-factory/fav-base": "^4.3.
|
|
79
|
-
"@things-factory/form-ui": "^4.3.
|
|
80
|
-
"@things-factory/geography": "^4.3.
|
|
81
|
-
"@things-factory/grist-ui": "^4.3.
|
|
82
|
-
"@things-factory/help": "^4.3.
|
|
83
|
-
"@things-factory/i18n-base": "^4.3.
|
|
84
|
-
"@things-factory/id-rule-base": "^4.3.
|
|
85
|
-
"@things-factory/import-ui": "^4.3.
|
|
86
|
-
"@things-factory/import-ui-excel": "^4.3.
|
|
87
|
-
"@things-factory/menu-ui": "^4.3.
|
|
88
|
-
"@things-factory/more-ui": "^4.3.
|
|
89
|
-
"@things-factory/notification": "^4.3.
|
|
90
|
-
"@things-factory/pdf": "^4.3.
|
|
91
|
-
"@things-factory/print-proxy-service": "^4.3.
|
|
92
|
-
"@things-factory/print-service": "^4.3.
|
|
93
|
-
"@things-factory/print-ui": "^4.3.
|
|
94
|
-
"@things-factory/product-base": "^4.3.
|
|
95
|
-
"@things-factory/resource-ui": "^4.3.
|
|
96
|
-
"@things-factory/sales-ui": "^4.3.
|
|
97
|
-
"@things-factory/scene-data-transform": "^4.3.
|
|
98
|
-
"@things-factory/scene-excel": "^4.3.
|
|
99
|
-
"@things-factory/scene-firebase": "^4.3.
|
|
100
|
-
"@things-factory/scene-form": "^4.3.
|
|
101
|
-
"@things-factory/scene-google-map": "^4.3.
|
|
102
|
-
"@things-factory/scene-graphql": "^4.3.
|
|
103
|
-
"@things-factory/scene-label": "^4.3.
|
|
104
|
-
"@things-factory/scene-marker": "^4.3.
|
|
105
|
-
"@things-factory/scene-mqtt": "^4.3.
|
|
106
|
-
"@things-factory/scene-restful": "^4.3.
|
|
107
|
-
"@things-factory/scene-visualizer": "^4.3.
|
|
108
|
-
"@things-factory/setting-ui": "^4.3.
|
|
109
|
-
"@things-factory/system-ui": "^4.3.
|
|
110
|
-
"@things-factory/transport-base": "^4.3.
|
|
111
|
-
"@things-factory/tutorial-ui": "^4.3.
|
|
112
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
113
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
66
|
+
"@things-factory/apptool-ui": "^4.3.46",
|
|
67
|
+
"@things-factory/attachment-ui": "^4.3.46",
|
|
68
|
+
"@things-factory/auth-ui": "^4.3.46",
|
|
69
|
+
"@things-factory/barcode-ui": "^4.3.46",
|
|
70
|
+
"@things-factory/biz-ui": "^4.3.46",
|
|
71
|
+
"@things-factory/board-service": "^4.3.46",
|
|
72
|
+
"@things-factory/board-ui": "^4.3.46",
|
|
73
|
+
"@things-factory/code-ui": "^4.3.46",
|
|
74
|
+
"@things-factory/context-ui": "^4.3.46",
|
|
75
|
+
"@things-factory/export-ui": "^4.3.46",
|
|
76
|
+
"@things-factory/export-ui-csv": "^4.3.46",
|
|
77
|
+
"@things-factory/export-ui-excel": "^4.3.46",
|
|
78
|
+
"@things-factory/fav-base": "^4.3.46",
|
|
79
|
+
"@things-factory/form-ui": "^4.3.46",
|
|
80
|
+
"@things-factory/geography": "^4.3.46",
|
|
81
|
+
"@things-factory/grist-ui": "^4.3.46",
|
|
82
|
+
"@things-factory/help": "^4.3.46",
|
|
83
|
+
"@things-factory/i18n-base": "^4.3.46",
|
|
84
|
+
"@things-factory/id-rule-base": "^4.3.46",
|
|
85
|
+
"@things-factory/import-ui": "^4.3.46",
|
|
86
|
+
"@things-factory/import-ui-excel": "^4.3.46",
|
|
87
|
+
"@things-factory/menu-ui": "^4.3.46",
|
|
88
|
+
"@things-factory/more-ui": "^4.3.46",
|
|
89
|
+
"@things-factory/notification": "^4.3.46",
|
|
90
|
+
"@things-factory/pdf": "^4.3.46",
|
|
91
|
+
"@things-factory/print-proxy-service": "^4.3.46",
|
|
92
|
+
"@things-factory/print-service": "^4.3.46",
|
|
93
|
+
"@things-factory/print-ui": "^4.3.46",
|
|
94
|
+
"@things-factory/product-base": "^4.3.46",
|
|
95
|
+
"@things-factory/resource-ui": "^4.3.46",
|
|
96
|
+
"@things-factory/sales-ui": "^4.3.46",
|
|
97
|
+
"@things-factory/scene-data-transform": "^4.3.46",
|
|
98
|
+
"@things-factory/scene-excel": "^4.3.46",
|
|
99
|
+
"@things-factory/scene-firebase": "^4.3.46",
|
|
100
|
+
"@things-factory/scene-form": "^4.3.46",
|
|
101
|
+
"@things-factory/scene-google-map": "^4.3.46",
|
|
102
|
+
"@things-factory/scene-graphql": "^4.3.46",
|
|
103
|
+
"@things-factory/scene-label": "^4.3.46",
|
|
104
|
+
"@things-factory/scene-marker": "^4.3.46",
|
|
105
|
+
"@things-factory/scene-mqtt": "^4.3.46",
|
|
106
|
+
"@things-factory/scene-restful": "^4.3.46",
|
|
107
|
+
"@things-factory/scene-visualizer": "^4.3.46",
|
|
108
|
+
"@things-factory/setting-ui": "^4.3.46",
|
|
109
|
+
"@things-factory/system-ui": "^4.3.46",
|
|
110
|
+
"@things-factory/transport-base": "^4.3.46",
|
|
111
|
+
"@things-factory/tutorial-ui": "^4.3.46",
|
|
112
|
+
"@things-factory/warehouse-base": "^4.3.46",
|
|
113
|
+
"@things-factory/worksheet-base": "^4.3.46"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"@things-factory/builder": "^4.3.
|
|
116
|
+
"@things-factory/builder": "^4.3.46",
|
|
117
117
|
"cypress": "^9.4.1",
|
|
118
118
|
"cypress-file-upload": "^5.0.8",
|
|
119
119
|
"cypress-localstorage-commands": "^1.6.1",
|
|
120
120
|
"eslint-plugin-cypress": "^2.12.1"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "83ecc645c3cc602bdae8941bc10b8f17b7d6c279"
|
|
123
123
|
}
|