@things-factory/operato-wms 4.3.767 → 4.3.769
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/bulk-operation/validate-gan-popup.js +2 -2
- package/client/pages/inventory/inventory-adjustment.js +46 -43
- package/client/pages/order/arrival-notice/create-arrival-notice.js +209 -206
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +132 -129
- package/client/pages/order/arrival-notice/edit-product-popup.js +97 -92
- package/package.json +5 -5
|
@@ -353,8 +353,8 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
|
|
|
353
353
|
containerNo: raw.containerNo,
|
|
354
354
|
containerSize: raw.containerSize,
|
|
355
355
|
sku: raw.sku,
|
|
356
|
-
batchId: raw.batchId,
|
|
357
|
-
batchIdRef: raw.batchIdRef,
|
|
356
|
+
batchId: raw.batchId ? raw.batchId.trim() : raw.batchId,
|
|
357
|
+
batchIdRef: raw.batchIdRef ? raw.batchIdRef.trim() : raw.batchIdRef,
|
|
358
358
|
packingType: raw.packingType,
|
|
359
359
|
packingSize: raw.packingSize,
|
|
360
360
|
uom: raw.uom,
|
|
@@ -1220,6 +1220,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1220
1220
|
row.transferQty = toFloatOrUndefined(row.transferQty)
|
|
1221
1221
|
row.transferUomValue = toFloatOrUndefined(row.transferUomValue)
|
|
1222
1222
|
|
|
1223
|
+
if (row?.batchId) row.batchId = row.batchId.trim()
|
|
1224
|
+
if (row?.batchIdRef) row.batchIdRef = row.batchIdRef.trim()
|
|
1225
|
+
|
|
1223
1226
|
if (row?.inventoryItemChanges) {
|
|
1224
1227
|
row.inventoryItemChangesJson = row.inventoryItemChanges
|
|
1225
1228
|
delete row.inventoryItemChanges
|
|
@@ -1423,9 +1426,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1423
1426
|
<import-pop-up
|
|
1424
1427
|
.records=${records}
|
|
1425
1428
|
.config=${{
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
+
rows: this.config.rows,
|
|
1430
|
+
columns: columns
|
|
1431
|
+
}}
|
|
1429
1432
|
.importHandler="${this.importHandler.bind(this)}"
|
|
1430
1433
|
@field-change="${this.fieldChange.bind(this)}"
|
|
1431
1434
|
></import-pop-up>
|
|
@@ -1604,15 +1607,15 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1604
1607
|
.title="${i18next.t('title.inventory_remark')}"
|
|
1605
1608
|
.value="${record.remark}"
|
|
1606
1609
|
@submit="${async e => {
|
|
1607
|
-
|
|
1610
|
+
await this.updateRemark(record.id, e.detail.value)
|
|
1608
1611
|
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1612
|
+
this.dataGrist._data = {
|
|
1613
|
+
records: this.dataGrist._data.records.map(updateRecord => {
|
|
1614
|
+
if (updateRecord.id === record.id) updateRecord.remark = e.detail.value
|
|
1615
|
+
return updateRecord
|
|
1616
|
+
})
|
|
1617
|
+
}
|
|
1618
|
+
}}"
|
|
1616
1619
|
></popup-note>
|
|
1617
1620
|
`,
|
|
1618
1621
|
{
|
|
@@ -1626,13 +1629,13 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1626
1629
|
openSerialNumberPopup(inventory, rowIndex, records) {
|
|
1627
1630
|
const removable =
|
|
1628
1631
|
inventory?.product?.isRequireSerialNumberScanningOutbound &&
|
|
1629
|
-
|
|
1632
|
+
inventory?.product?.isRequireSerialNumberScanningInbound
|
|
1630
1633
|
? true
|
|
1631
1634
|
: false
|
|
1632
1635
|
|
|
1633
1636
|
const updatable =
|
|
1634
1637
|
inventory?.product?.isRequireSerialNumberScanningOutbound &&
|
|
1635
|
-
|
|
1638
|
+
inventory?.product?.isRequireSerialNumberScanningInbound
|
|
1636
1639
|
? true
|
|
1637
1640
|
: false
|
|
1638
1641
|
|
|
@@ -1645,43 +1648,43 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1645
1648
|
.enableRemove=${removable}
|
|
1646
1649
|
.enableUpdateBtn=${updatable}
|
|
1647
1650
|
@confirm-serial-number-list="${e => {
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1651
|
+
let totalSerialNumber = 0
|
|
1652
|
+
let newRecords = []
|
|
1653
|
+
for (let i = 0; i < e.detail.inventoryItemChanges.length; i++) {
|
|
1654
|
+
let inventoryItemChange = e.detail.inventoryItemChanges[i]
|
|
1655
|
+
newRecords.push(inventoryItemChange)
|
|
1653
1656
|
|
|
1654
|
-
|
|
1657
|
+
if (inventoryItemChange.type == INVENTORY_ITEM_CHANGE_TYPE.NEW.value) totalSerialNumber++
|
|
1655
1658
|
|
|
1656
|
-
|
|
1657
|
-
|
|
1659
|
+
if (inventoryItemChange.type == INVENTORY_ITEM_CHANGE_TYPE.REMOVED.value) totalSerialNumber--
|
|
1660
|
+
}
|
|
1658
1661
|
|
|
1659
|
-
|
|
1660
|
-
|
|
1662
|
+
let inventoryItemChangesJson = JSON.stringify(newRecords)
|
|
1663
|
+
let currentInventoryItemCount = records[rowIndex]?.inventoryItemCount || 0
|
|
1661
1664
|
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
}
|
|
1665
|
+
this.dataGrist.dirtyData.records[rowIndex].inventoryItemChanges = inventoryItemChangesJson
|
|
1666
|
+
this.dataGrist.dirtyData.records[rowIndex].inventoryItemCount =
|
|
1667
|
+
currentInventoryItemCount + totalSerialNumber
|
|
1668
|
+
if (!this.dataGrist?.dirtyData?.records[rowIndex]?.__dirtyfields__) {
|
|
1669
|
+
this.dataGrist.dirtyData.records[rowIndex].__dirtyfields__ = {
|
|
1670
|
+
inventoryItemChanges: { before: '', after: inventoryItemChangesJson }
|
|
1671
|
+
}
|
|
1672
|
+
} else {
|
|
1673
|
+
this.dataGrist.dirtyData.records[rowIndex].__dirtyfields__ = {
|
|
1674
|
+
...this.dataGrist.dirtyData.records[rowIndex].__dirtyfields__,
|
|
1675
|
+
inventoryItemChanges: {
|
|
1676
|
+
before: '',
|
|
1677
|
+
after: inventoryItemChangesJson
|
|
1676
1678
|
}
|
|
1677
1679
|
}
|
|
1678
|
-
|
|
1680
|
+
}
|
|
1681
|
+
this.dataGrist.dirtyData.records[rowIndex].__dirty__ = 'M'
|
|
1679
1682
|
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1683
|
+
if (records[rowIndex]) {
|
|
1684
|
+
records[rowIndex].inventoryItemChanges = inventoryItemChangesJson
|
|
1685
|
+
records[rowIndex].inventoryItemCount = currentInventoryItemCount + totalSerialNumber
|
|
1686
|
+
}
|
|
1687
|
+
}}"
|
|
1685
1688
|
></serial-number-list-popup>
|
|
1686
1689
|
`,
|
|
1687
1690
|
{
|