@things-factory/operato-wms 4.3.161 → 4.3.163
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '@things-factory/grist-ui'
|
|
2
|
+
import '@things-factory/warehouse-ui'
|
|
2
3
|
import '../../components/attachment-viewer'
|
|
3
4
|
import '../../components/vas-templates'
|
|
4
5
|
import '../../components/popup-note'
|
|
@@ -7,7 +8,6 @@ import '../../inbound/pallet-label-popup'
|
|
|
7
8
|
import './edit-product-popup'
|
|
8
9
|
import './proceed-edit-product-popup'
|
|
9
10
|
import './view-product-changes-popup'
|
|
10
|
-
import { BufferLocationSelector } from '@things-factory/warehouse-ui'
|
|
11
11
|
|
|
12
12
|
import gql from 'graphql-tag'
|
|
13
13
|
import { css, html } from 'lit-element'
|
|
@@ -20,8 +20,8 @@ import { openPopup } from '@things-factory/layout-base'
|
|
|
20
20
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
21
21
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
22
22
|
import { isMobileDevice } from '@things-factory/utils'
|
|
23
|
-
import { fetchSettingRule } from '../../../fetch-setting-value'
|
|
24
23
|
|
|
24
|
+
import { fetchSettingRule } from '../../../fetch-setting-value'
|
|
25
25
|
import {
|
|
26
26
|
ORDER_PRODUCT_STATUS,
|
|
27
27
|
ORDER_STATUS,
|
|
@@ -1016,7 +1016,6 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
|
|
|
1016
1016
|
this.setProductGristConfig()
|
|
1017
1017
|
this.productData = {
|
|
1018
1018
|
records: orderProducts.map(record => {
|
|
1019
|
-
record.unitPrice = record.unitPrice.toFixed(2)
|
|
1020
1019
|
return {
|
|
1021
1020
|
...record,
|
|
1022
1021
|
productSku: record.product.sku,
|
|
@@ -1690,17 +1690,19 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
1690
1690
|
if (!response.errors) {
|
|
1691
1691
|
const data = response.data.bulkUploadValidateOrderProducts.map(item => {
|
|
1692
1692
|
item.unitPrice =
|
|
1693
|
-
item
|
|
1693
|
+
item?.unitPrice || item?.unitPrice == 0
|
|
1694
1694
|
? item.unitPrice
|
|
1695
|
-
: item
|
|
1695
|
+
: item?.productDetail?.costPrice
|
|
1696
1696
|
? item.productDetail.costPrice
|
|
1697
1697
|
: null
|
|
1698
|
+
|
|
1698
1699
|
return {
|
|
1699
1700
|
...item,
|
|
1700
1701
|
productName: item?.productName,
|
|
1701
|
-
unitPrice: item
|
|
1702
|
+
unitPrice: (item?.unitPrice || 0).toFixed(2),
|
|
1702
1703
|
packQty: parseFloat(item.packQty) || '',
|
|
1703
|
-
palletQty: parseFloat(item.palletQty) || ''
|
|
1704
|
+
palletQty: parseFloat(item.palletQty) || '',
|
|
1705
|
+
productDetail: { id: item?.productDetail?.id || null }
|
|
1704
1706
|
}
|
|
1705
1707
|
})
|
|
1706
1708
|
this.productData = {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import '@things-factory/grist-ui'
|
|
2
|
+
|
|
3
|
+
import { css, html, LitElement } from 'lit-element'
|
|
4
|
+
|
|
2
5
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
6
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
4
7
|
import { isMobileDevice } from '@things-factory/utils'
|
|
5
|
-
|
|
8
|
+
|
|
6
9
|
import { ORDER_PRODUCT_STATUS } from '../../constants'
|
|
7
10
|
|
|
8
11
|
export class ViewProductChangesPopup extends localize(i18next)(LitElement) {
|
|
@@ -100,9 +103,6 @@ export class ViewProductChangesPopup extends localize(i18next)(LitElement) {
|
|
|
100
103
|
if (changedProps.has('data')) {
|
|
101
104
|
this.productData = {
|
|
102
105
|
...this.data,
|
|
103
|
-
records: this.data.records.map(item => {
|
|
104
|
-
item.adjustedUnitPrice = item.adjustedUnitPrice.toFixed(2)
|
|
105
|
-
}),
|
|
106
106
|
records: this.data.records.filter(
|
|
107
107
|
item => item.status === ORDER_PRODUCT_STATUS.ADDED.value || item.status === ORDER_PRODUCT_STATUS.EDITED.value
|
|
108
108
|
)
|
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.163",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -63,35 +63,35 @@
|
|
|
63
63
|
"@operato/scene-table": "^0.1.8",
|
|
64
64
|
"@operato/scene-wheel-sorter": "^0.1.8",
|
|
65
65
|
"@things-factory/apptool-ui": "^4.3.159",
|
|
66
|
-
"@things-factory/attachment-ui": "^4.3.
|
|
67
|
-
"@things-factory/auth-ui": "^4.3.
|
|
66
|
+
"@things-factory/attachment-ui": "^4.3.163",
|
|
67
|
+
"@things-factory/auth-ui": "^4.3.163",
|
|
68
68
|
"@things-factory/barcode-ui": "^4.3.159",
|
|
69
|
-
"@things-factory/biz-ui": "^4.3.
|
|
70
|
-
"@things-factory/board-service": "^4.3.
|
|
71
|
-
"@things-factory/board-ui": "^4.3.
|
|
72
|
-
"@things-factory/code-ui": "^4.3.
|
|
69
|
+
"@things-factory/biz-ui": "^4.3.163",
|
|
70
|
+
"@things-factory/board-service": "^4.3.163",
|
|
71
|
+
"@things-factory/board-ui": "^4.3.163",
|
|
72
|
+
"@things-factory/code-ui": "^4.3.163",
|
|
73
73
|
"@things-factory/context-ui": "^4.3.159",
|
|
74
74
|
"@things-factory/export-ui": "^4.3.159",
|
|
75
75
|
"@things-factory/export-ui-csv": "^4.3.159",
|
|
76
76
|
"@things-factory/export-ui-excel": "^4.3.159",
|
|
77
|
-
"@things-factory/fav-base": "^4.3.
|
|
77
|
+
"@things-factory/fav-base": "^4.3.163",
|
|
78
78
|
"@things-factory/form-ui": "^4.3.159",
|
|
79
|
-
"@things-factory/geography": "^4.3.
|
|
79
|
+
"@things-factory/geography": "^4.3.163",
|
|
80
80
|
"@things-factory/grist-ui": "^4.3.159",
|
|
81
81
|
"@things-factory/help": "^4.3.159",
|
|
82
82
|
"@things-factory/i18n-base": "^4.3.159",
|
|
83
|
-
"@things-factory/id-rule-base": "^4.3.
|
|
83
|
+
"@things-factory/id-rule-base": "^4.3.163",
|
|
84
84
|
"@things-factory/import-ui": "^4.3.159",
|
|
85
85
|
"@things-factory/import-ui-excel": "^4.3.159",
|
|
86
|
-
"@things-factory/menu-ui": "^4.3.
|
|
86
|
+
"@things-factory/menu-ui": "^4.3.163",
|
|
87
87
|
"@things-factory/more-ui": "^4.3.159",
|
|
88
|
-
"@things-factory/notification": "^4.3.
|
|
88
|
+
"@things-factory/notification": "^4.3.163",
|
|
89
89
|
"@things-factory/pdf": "^4.3.159",
|
|
90
90
|
"@things-factory/print-proxy-service": "^4.3.159",
|
|
91
91
|
"@things-factory/print-ui": "^4.3.159",
|
|
92
|
-
"@things-factory/product-base": "^4.3.
|
|
93
|
-
"@things-factory/resource-ui": "^4.3.
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
92
|
+
"@things-factory/product-base": "^4.3.163",
|
|
93
|
+
"@things-factory/resource-ui": "^4.3.163",
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.163",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.159",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.159",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.159",
|
|
@@ -103,12 +103,12 @@
|
|
|
103
103
|
"@things-factory/scene-mqtt": "^4.3.159",
|
|
104
104
|
"@things-factory/scene-restful": "^4.3.159",
|
|
105
105
|
"@things-factory/scene-visualizer": "^4.3.159",
|
|
106
|
-
"@things-factory/setting-ui": "^4.3.
|
|
106
|
+
"@things-factory/setting-ui": "^4.3.163",
|
|
107
107
|
"@things-factory/system-ui": "^4.3.159",
|
|
108
|
-
"@things-factory/transport-base": "^4.3.
|
|
109
|
-
"@things-factory/tutorial-ui": "^4.3.
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
108
|
+
"@things-factory/transport-base": "^4.3.163",
|
|
109
|
+
"@things-factory/tutorial-ui": "^4.3.163",
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.163",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.163"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.159",
|
|
@@ -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": "082339ccf43992dc550c7078c605cc2794758c7f"
|
|
121
121
|
}
|