@things-factory/operato-wms 4.3.386 → 4.3.387
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 -3
- package/client/pages/order/release-order/b2c/b2c-release-order-detail.js +8 -2
- package/client/pages/order/release-order/release-order-detail.js +8 -2
- package/client/pages/outbound/packing-product.js +17 -5
- package/client/pages/outbound/picking-product.js +1 -1
- package/package.json +4 -4
|
@@ -558,7 +558,8 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
_initialiseProductGristConfig() {
|
|
561
|
-
|
|
561
|
+
let bundleData = this._draftOrderData?.orderProducts.find(op => op.productBundle)
|
|
562
|
+
this._editable = this._draftOrderData?.status == DRAFT_RELEASE_ORDER_STATUS.DRAFT && !bundleData
|
|
562
563
|
this._orderProductGristConfig = {
|
|
563
564
|
pagination: { infinite: true },
|
|
564
565
|
rows: {
|
|
@@ -830,6 +831,11 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
830
831
|
productDetail {
|
|
831
832
|
id
|
|
832
833
|
}
|
|
834
|
+
productBundle{
|
|
835
|
+
name
|
|
836
|
+
sku
|
|
837
|
+
description
|
|
838
|
+
}
|
|
833
839
|
packingType
|
|
834
840
|
packingSize
|
|
835
841
|
uomValue
|
|
@@ -1108,8 +1114,8 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
1108
1114
|
let orderProduct = {
|
|
1109
1115
|
id: record.id ? record.id.toString() : null,
|
|
1110
1116
|
name: record.name ? record.name.toString() : null,
|
|
1111
|
-
product: { id: record.product.id },
|
|
1112
|
-
productDetail: { id: record.productDetailId
|
|
1117
|
+
product: { id: record?.groupType == 'SINGLE' ? record.product.id : record?.productBundle?.id },
|
|
1118
|
+
productDetail: { id: record.productDetailId },
|
|
1113
1119
|
packingType: record.packingType,
|
|
1114
1120
|
packingSize: record.packingSize,
|
|
1115
1121
|
uomValue: record?.uomValue ? record.uomValue : 0,
|
|
@@ -1020,6 +1020,11 @@ class B2CReleaseOrderDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
1020
1020
|
id
|
|
1021
1021
|
name
|
|
1022
1022
|
}
|
|
1023
|
+
productBundle {
|
|
1024
|
+
name
|
|
1025
|
+
description
|
|
1026
|
+
sku
|
|
1027
|
+
}
|
|
1023
1028
|
uom
|
|
1024
1029
|
releaseQty
|
|
1025
1030
|
releaseUomValue
|
|
@@ -1083,8 +1088,9 @@ class B2CReleaseOrderDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
1083
1088
|
let roundedUomValue = parseFloat(op.releaseUomValue.toFixed(2))
|
|
1084
1089
|
return {
|
|
1085
1090
|
...op,
|
|
1086
|
-
productSKU: op?.product?.sku || '',
|
|
1087
|
-
productName:
|
|
1091
|
+
productSKU: op?.product?.sku || op?.productBundle?.sku ||'',
|
|
1092
|
+
productName: op?.product?.name ? `${op?.product?.name} (${op?.product?.description})` :
|
|
1093
|
+
op?.productBundle?.name ? `${op?.productBundle?.name} (${op?.productBundle?.description})` : '',
|
|
1088
1094
|
productBrand: op?.product?.brand || '',
|
|
1089
1095
|
roundedUomValue: `${roundedUomValue} ${op.uom}`,
|
|
1090
1096
|
releaseUomValueWithUom: op.releaseUomValue + ' ' + op.uom
|
|
@@ -1438,6 +1438,11 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1438
1438
|
id
|
|
1439
1439
|
name
|
|
1440
1440
|
}
|
|
1441
|
+
productBundle {
|
|
1442
|
+
name
|
|
1443
|
+
description
|
|
1444
|
+
sku
|
|
1445
|
+
}
|
|
1441
1446
|
uom
|
|
1442
1447
|
releaseQty
|
|
1443
1448
|
releaseUomValue
|
|
@@ -1552,8 +1557,9 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1552
1557
|
let roundedUomValue = parseFloat(op.releaseUomValue.toFixed(2))
|
|
1553
1558
|
return {
|
|
1554
1559
|
...op,
|
|
1555
|
-
productSKU: op?.product?.sku || '',
|
|
1556
|
-
productName:
|
|
1560
|
+
productSKU: op?.product?.sku || op?.productBundle?.sku ||'',
|
|
1561
|
+
productName: op?.product?.name ? `${op?.product?.name} (${op?.product?.description})` :
|
|
1562
|
+
op?.productBundle?.name ? `${op?.productBundle?.name} (${op?.productBundle?.description})` : '',
|
|
1557
1563
|
productBrand: op?.product?.brand || '',
|
|
1558
1564
|
roundedUomValue: `${roundedUomValue} ${op.uom}`,
|
|
1559
1565
|
releaseUomValueWithUom: op.releaseUomValue + ' ' + op.uom
|
|
@@ -1110,15 +1110,28 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1110
1110
|
if (!response.errors) {
|
|
1111
1111
|
const { worksheetDetailInfos } = response.data.scanProductPacking
|
|
1112
1112
|
|
|
1113
|
+
//will change for the next enhancement
|
|
1113
1114
|
let rec = this.data.records.map(data => {
|
|
1114
|
-
let
|
|
1115
|
+
let ids = data.id.split(',').map(id => id.trim())
|
|
1116
|
+
let info = worksheetDetailInfos.find(wd => ids.includes(wd.id))
|
|
1115
1117
|
if (info) {
|
|
1118
|
+
if(info?.packedQty <= data.packedQty){
|
|
1119
|
+
let newPackQty = data?.packedQty + 1
|
|
1120
|
+
return {
|
|
1121
|
+
...data,
|
|
1122
|
+
packingProgress: `${newPackQty} / ${data.releaseQty}`,
|
|
1123
|
+
packedQty : newPackQty,
|
|
1124
|
+
status : newPackQty === data.releaseQty ? 'DONE' : 'PROCESSING',
|
|
1125
|
+
completed : newPackQty === data.releaseQty
|
|
1126
|
+
}
|
|
1127
|
+
} else {
|
|
1128
|
+
}
|
|
1116
1129
|
return {
|
|
1117
1130
|
...data,
|
|
1118
|
-
packingProgress: `${info?.packedQty} / ${
|
|
1131
|
+
packingProgress: `${info?.packedQty} / ${data.releaseQty}`,
|
|
1119
1132
|
packedQty: info.packedQty,
|
|
1120
|
-
status: info.
|
|
1121
|
-
completed: info.
|
|
1133
|
+
status: info.packedQty === data.releaseQty ? 'DONE' : 'PROCESSING',
|
|
1134
|
+
completed: info.packedQty === data.releaseQty
|
|
1122
1135
|
}
|
|
1123
1136
|
} else {
|
|
1124
1137
|
return data
|
|
@@ -1211,7 +1224,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1211
1224
|
this._selectedOrderInventory = foundOrderInventory
|
|
1212
1225
|
|
|
1213
1226
|
if (
|
|
1214
|
-
this._selectedOrderInventory?.status === WORKSHEET_STATUS.DONE.value ||
|
|
1215
1227
|
this._selectedOrderInventory?.packedQty === this._selectedOrderInventory?.releaseQty
|
|
1216
1228
|
) {
|
|
1217
1229
|
this._selectedOrderInventory = null
|
|
@@ -827,7 +827,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
827
827
|
if (this._isRequireSerialNumberScanningOutbound) {
|
|
828
828
|
this.serialInput.value = ''
|
|
829
829
|
} else if (this._enableProductScanning) {
|
|
830
|
-
this.productBarcodeInput.value = ''
|
|
830
|
+
if (this.productBarcodeInput) this.productBarcodeInput.value = ''
|
|
831
831
|
} else {
|
|
832
832
|
this.releaseQtyInput.value = ''
|
|
833
833
|
}
|
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.387",
|
|
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.381",
|
|
92
92
|
"@things-factory/product-base": "^4.3.383",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.381",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.387",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.381",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.381",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.381",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.381",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.381",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.384",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.387"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.381",
|
|
@@ -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": "a0ec10d77ded47f46f7da01810086129b2a9adb9"
|
|
121
121
|
}
|