@things-factory/product-ui 4.3.595 → 4.3.598
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/product-list.js +31 -19
- package/package.json +2 -2
|
@@ -3,29 +3,15 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import './product-details-popup'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import {
|
|
7
|
-
css,
|
|
8
|
-
html
|
|
9
|
-
} from 'lit'
|
|
6
|
+
import { css, html } from 'lit'
|
|
10
7
|
import _ from 'lodash'
|
|
11
8
|
|
|
12
9
|
import { getCodeByName } from '@things-factory/code-base'
|
|
13
|
-
import {
|
|
14
|
-
i18next,
|
|
15
|
-
localize
|
|
16
|
-
} from '@things-factory/i18n-base'
|
|
10
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
17
11
|
import { openImportPopUp } from '@things-factory/import-ui'
|
|
18
12
|
import { openPopup } from '@things-factory/layout-base'
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
CustomAlert,
|
|
22
|
-
gqlContext,
|
|
23
|
-
PageView
|
|
24
|
-
} from '@things-factory/shell'
|
|
25
|
-
import {
|
|
26
|
-
CommonButtonStyles,
|
|
27
|
-
ScrollbarStyles
|
|
28
|
-
} from '@things-factory/styles'
|
|
13
|
+
import { client, CustomAlert, gqlContext, PageView } from '@things-factory/shell'
|
|
14
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
29
15
|
import { isMobileDevice } from '@things-factory/utils'
|
|
30
16
|
|
|
31
17
|
import { PICKING_STRATEGIES } from './constants/picking-strategy'
|
|
@@ -456,6 +442,12 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
456
442
|
name: 'isRequiredCheckExpiry',
|
|
457
443
|
header: i18next.t('field.required_checking_expiry'),
|
|
458
444
|
record: { editable: true, align: 'center' },
|
|
445
|
+
imex: {
|
|
446
|
+
header: i18next.t('field.required_checking_expiry'),
|
|
447
|
+
key: 'isRequiredCheckExpiry',
|
|
448
|
+
width: 30,
|
|
449
|
+
type: 'string'
|
|
450
|
+
},
|
|
459
451
|
sortable: true,
|
|
460
452
|
width: 120
|
|
461
453
|
},
|
|
@@ -464,6 +456,12 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
464
456
|
name: 'isRequireSerialNumberScanningInbound',
|
|
465
457
|
header: i18next.t('field.require_serial_number_scanning_inbound'),
|
|
466
458
|
record: { editable: true, align: 'center' },
|
|
459
|
+
imex: {
|
|
460
|
+
header: i18next.t('field.require_serial_number_scanning_inbound'),
|
|
461
|
+
key: 'isRequireSerialNumberScanningInbound',
|
|
462
|
+
width: 30,
|
|
463
|
+
type: 'string'
|
|
464
|
+
},
|
|
467
465
|
sortable: true,
|
|
468
466
|
width: 120
|
|
469
467
|
},
|
|
@@ -472,6 +470,12 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
472
470
|
name: 'isRequireSerialNumberScanningOutbound',
|
|
473
471
|
header: i18next.t('field.require_serial_number_scanning_outbound'),
|
|
474
472
|
record: { editable: true, align: 'center' },
|
|
473
|
+
imex: {
|
|
474
|
+
header: i18next.t('field.require_serial_number_scanning_outbound'),
|
|
475
|
+
key: 'isRequireSerialNumberScanningOutbound',
|
|
476
|
+
width: 30,
|
|
477
|
+
type: 'string'
|
|
478
|
+
},
|
|
475
479
|
sortable: true,
|
|
476
480
|
width: 120
|
|
477
481
|
},
|
|
@@ -1044,6 +1048,11 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
1044
1048
|
|
|
1045
1049
|
patches = patches.map(patch => {
|
|
1046
1050
|
patch.costPrice = patch.costPrice == null ? 0 : patch.costPrice
|
|
1051
|
+
patch.isRequiredCheckExpiry = patch.isRequiredCheckExpiry?.toString().toLowerCase() === 'true'
|
|
1052
|
+
patch.isRequireSerialNumberScanningInbound =
|
|
1053
|
+
patch.isRequireSerialNumberScanningInbound?.toString().toLowerCase() === 'true'
|
|
1054
|
+
patch.isRequireSerialNumberScanningOutbound =
|
|
1055
|
+
patch.isRequireSerialNumberScanningOutbound?.toString().toLowerCase() === 'true'
|
|
1047
1056
|
|
|
1048
1057
|
return {
|
|
1049
1058
|
...patch,
|
|
@@ -1067,7 +1076,10 @@ class ProductList extends localize(i18next)(PageView) {
|
|
|
1067
1076
|
depth: patch?.depth ? parseFloat(patch.depth) : undefined,
|
|
1068
1077
|
height: patch?.height ? parseFloat(patch.height) : undefined,
|
|
1069
1078
|
grossWeight: patch?.grossWeight ? parseFloat(patch.grossWeight) : undefined,
|
|
1070
|
-
volume: patch?.volume ? parseFloat(patch.volume) : undefined
|
|
1079
|
+
volume: patch?.volume ? parseFloat(patch.volume) : undefined,
|
|
1080
|
+
isRequiredCheckExpiry: patch?.isRequiredCheckExpiry || false,
|
|
1081
|
+
isRequireSerialNumberScanningInbound: patch?.isRequireSerialNumberScanningInbound || false,
|
|
1082
|
+
isRequireSerialNumberScanningOutbound: patch?.isRequireSerialNumberScanningOutbound || false
|
|
1071
1083
|
}
|
|
1072
1084
|
})
|
|
1073
1085
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/product-ui",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.598",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@things-factory/product-base": "^4.3.595",
|
|
32
32
|
"@things-factory/shell": "^4.3.591"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "e65dbc1974cf56e879a2359b5ebc44c2ff0e76ab"
|
|
35
35
|
}
|