@things-factory/operato-wms 4.3.552 → 4.3.553
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.
|
@@ -3,16 +3,9 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import './inventory-history-by-pallet'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import {
|
|
7
|
-
css,
|
|
8
|
-
html,
|
|
9
|
-
LitElement
|
|
10
|
-
} from 'lit-element'
|
|
6
|
+
import { css, html, LitElement } from 'lit-element'
|
|
11
7
|
|
|
12
|
-
import {
|
|
13
|
-
i18next,
|
|
14
|
-
localize
|
|
15
|
-
} from '@things-factory/i18n-base'
|
|
8
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
16
9
|
import { openPopup } from '@things-factory/layout-base'
|
|
17
10
|
import { client } from '@things-factory/shell'
|
|
18
11
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
@@ -46,7 +39,8 @@ class InventoryByProductDetail extends localize(i18next)(LitElement) {
|
|
|
46
39
|
_searchFields: Array,
|
|
47
40
|
config: Object,
|
|
48
41
|
data: Object,
|
|
49
|
-
productId: String
|
|
42
|
+
productId: String,
|
|
43
|
+
bizplaceId: String
|
|
50
44
|
}
|
|
51
45
|
}
|
|
52
46
|
|
|
@@ -251,7 +245,8 @@ class InventoryByProductDetail extends localize(i18next)(LitElement) {
|
|
|
251
245
|
filters: [
|
|
252
246
|
...filters,
|
|
253
247
|
{ name: 'product_id', operator: 'eq', value: this.productId },
|
|
254
|
-
{ name: 'status', operator: 'in', value: ['STORED', 'TERMINATED', 'MISSING'] }
|
|
248
|
+
{ name: 'status', operator: 'in', value: ['STORED', 'TERMINATED', 'MISSING'] },
|
|
249
|
+
{ name: 'bizplace', operator: 'eq', value: this.bizplaceId }
|
|
255
250
|
],
|
|
256
251
|
pagination: { page, limit },
|
|
257
252
|
sortings: sorters
|
|
@@ -4,21 +4,12 @@ import '@things-factory/import-ui'
|
|
|
4
4
|
import './inventory-by-product-detail'
|
|
5
5
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
|
-
import {
|
|
8
|
-
css,
|
|
9
|
-
html
|
|
10
|
-
} from 'lit-element'
|
|
7
|
+
import { css, html } from 'lit-element'
|
|
11
8
|
|
|
12
9
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
13
|
-
import {
|
|
14
|
-
i18next,
|
|
15
|
-
localize
|
|
16
|
-
} from '@things-factory/i18n-base'
|
|
10
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
17
11
|
import { openPopup } from '@things-factory/layout-base'
|
|
18
|
-
import {
|
|
19
|
-
client,
|
|
20
|
-
PageView
|
|
21
|
-
} from '@things-factory/shell'
|
|
12
|
+
import { client, PageView } from '@things-factory/shell'
|
|
22
13
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
23
14
|
import { isMobileDevice } from '@things-factory/utils'
|
|
24
15
|
|
|
@@ -55,49 +46,48 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
55
46
|
flex: 1;
|
|
56
47
|
}
|
|
57
48
|
|
|
58
|
-
input[type=
|
|
49
|
+
input[type='checkbox'].toggle {
|
|
59
50
|
font-size: 13px;
|
|
60
51
|
-webkit-appearance: none;
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
-moz-appearance: none;
|
|
53
|
+
appearance: none;
|
|
63
54
|
width: 3.5em;
|
|
64
55
|
height: 1.5em;
|
|
65
|
-
border: 0.5px solid #
|
|
56
|
+
border: 0.5px solid #3a5877;
|
|
66
57
|
border-radius: 3em;
|
|
67
58
|
position: relative;
|
|
68
59
|
cursor: pointer;
|
|
69
60
|
outline: none;
|
|
70
|
-
-webkit-transition: all .2s ease-in-out;
|
|
71
|
-
transition: all .2s ease-in-out;
|
|
61
|
+
-webkit-transition: all 0.2s ease-in-out;
|
|
62
|
+
transition: all 0.2s ease-in-out;
|
|
72
63
|
padding: 0px 0px;
|
|
73
64
|
}
|
|
74
|
-
|
|
75
|
-
input[type=
|
|
65
|
+
|
|
66
|
+
input[type='checkbox'].toggle:checked {
|
|
76
67
|
background: #b8e0e1;
|
|
77
|
-
border: 0.5px solid #
|
|
68
|
+
border: 0.5px solid #3a5877;
|
|
78
69
|
}
|
|
79
|
-
|
|
80
|
-
input[type=
|
|
70
|
+
|
|
71
|
+
input[type='checkbox'].toggle:after {
|
|
81
72
|
padding-top: 0;
|
|
82
73
|
position: absolute;
|
|
83
|
-
content:
|
|
74
|
+
content: '';
|
|
84
75
|
width: 1.4em;
|
|
85
76
|
height: 1.4em;
|
|
86
77
|
border-radius: 50%;
|
|
87
78
|
background: #3a5877;
|
|
88
|
-
-webkit-box-shadow: 0 0 .25em rgba(0,0,0
|
|
89
|
-
|
|
90
|
-
-webkit-transform: scale(.7);
|
|
91
|
-
|
|
79
|
+
-webkit-box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
|
|
80
|
+
box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
|
|
81
|
+
-webkit-transform: scale(0.7);
|
|
82
|
+
transform: scale(0.7);
|
|
92
83
|
left: 0;
|
|
93
|
-
-webkit-transition: all .2s ease-in-out;
|
|
94
|
-
transition: all .2s ease-in-out;
|
|
84
|
+
-webkit-transition: all 0.2s ease-in-out;
|
|
85
|
+
transition: all 0.2s ease-in-out;
|
|
95
86
|
}
|
|
96
|
-
|
|
97
|
-
input[type=
|
|
87
|
+
|
|
88
|
+
input[type='checkbox'].toggle:checked:after {
|
|
98
89
|
left: calc(100% - 1.4em);
|
|
99
90
|
}
|
|
100
|
-
|
|
101
91
|
`
|
|
102
92
|
]
|
|
103
93
|
}
|
|
@@ -106,26 +96,26 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
106
96
|
super()
|
|
107
97
|
this._checkedBoxes = []
|
|
108
98
|
this._showTotalUom = false
|
|
109
|
-
// count holds value to determine if data needs to be fetch from database.
|
|
99
|
+
// count holds value to determine if data needs to be fetch from database.
|
|
110
100
|
this.count = 0
|
|
111
101
|
this.responseArr
|
|
112
102
|
}
|
|
113
103
|
|
|
114
104
|
render() {
|
|
115
105
|
return html`
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
106
|
+
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
107
|
+
<form name="uom-selection" class="multi-column-form" style="margin-top: 0px">
|
|
108
|
+
<fieldset>
|
|
109
|
+
<legend>${i18next.t('title.column_selection')}</legend>
|
|
110
|
+
</fieldset>
|
|
111
|
+
<input id="uomToggle" type="checkbox" class="toggle" @change="${this._handleShowTotalUomChange}" />
|
|
112
|
+
<label for="showTotalUom">${i18next.t('field.show_total_uom')}</label>
|
|
113
|
+
</form>
|
|
124
114
|
|
|
125
115
|
<data-grist
|
|
126
116
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
127
117
|
.config=${this.config}
|
|
128
|
-
.fetchHandler=
|
|
118
|
+
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
129
119
|
></data-grist>
|
|
130
120
|
`
|
|
131
121
|
}
|
|
@@ -133,7 +123,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
133
123
|
getResponseArr() {
|
|
134
124
|
return this.responseArr
|
|
135
125
|
}
|
|
136
|
-
|
|
126
|
+
|
|
137
127
|
get context() {
|
|
138
128
|
return {
|
|
139
129
|
title: i18next.t('title.inventory_by_product'),
|
|
@@ -468,23 +458,25 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
468
458
|
{
|
|
469
459
|
type: 'integer',
|
|
470
460
|
name: 'minQty',
|
|
471
|
-
imex: {
|
|
472
|
-
header: i18next.t('field.min_qty'),
|
|
473
|
-
key: 'minQty',
|
|
474
|
-
width: 20,
|
|
475
|
-
type: 'integer'
|
|
461
|
+
imex: {
|
|
462
|
+
header: i18next.t('field.min_qty'),
|
|
463
|
+
key: 'minQty',
|
|
464
|
+
width: 20,
|
|
465
|
+
type: 'integer'
|
|
466
|
+
},
|
|
476
467
|
header: i18next.t('field.min_qty'),
|
|
477
468
|
label: true,
|
|
478
469
|
width: 80
|
|
479
|
-
},
|
|
470
|
+
},
|
|
480
471
|
{
|
|
481
472
|
type: 'integer',
|
|
482
473
|
name: 'uomValueMinQty',
|
|
483
|
-
imex: {
|
|
484
|
-
header: i18next.t('field.total_uom_value_min'),
|
|
485
|
-
key: 'uomValueMinQty',
|
|
486
|
-
width: 60,
|
|
487
|
-
type: 'integer'
|
|
474
|
+
imex: {
|
|
475
|
+
header: i18next.t('field.total_uom_value_min'),
|
|
476
|
+
key: 'uomValueMinQty',
|
|
477
|
+
width: 60,
|
|
478
|
+
type: 'integer'
|
|
479
|
+
},
|
|
488
480
|
header: i18next.t('field.total_uom_value_min'),
|
|
489
481
|
width: 120,
|
|
490
482
|
hidden: !this._showTotalUom
|
|
@@ -500,11 +492,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
500
492
|
{
|
|
501
493
|
type: 'integer',
|
|
502
494
|
name: 'uomValueMaxQty',
|
|
503
|
-
imex: {
|
|
504
|
-
header: i18next.t('field.total_uom_value_max'),
|
|
505
|
-
key: 'uomValueTransferQty',
|
|
506
|
-
width: 60,
|
|
507
|
-
type: 'integer'
|
|
495
|
+
imex: {
|
|
496
|
+
header: i18next.t('field.total_uom_value_max'),
|
|
497
|
+
key: 'uomValueTransferQty',
|
|
498
|
+
width: 60,
|
|
499
|
+
type: 'integer'
|
|
500
|
+
},
|
|
508
501
|
header: i18next.t('field.total_uom_value_max'),
|
|
509
502
|
width: 120,
|
|
510
503
|
hidden: !this._showTotalUom
|
|
@@ -520,11 +513,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
520
513
|
{
|
|
521
514
|
type: 'integer',
|
|
522
515
|
name: 'uomValueShelfQty',
|
|
523
|
-
imex: {
|
|
524
|
-
header: i18next.t('field.total_uom_value_shelf'),
|
|
525
|
-
key: 'uomValueShelfQty',
|
|
526
|
-
width: 60,
|
|
527
|
-
type: 'integer'
|
|
516
|
+
imex: {
|
|
517
|
+
header: i18next.t('field.total_uom_value_shelf'),
|
|
518
|
+
key: 'uomValueShelfQty',
|
|
519
|
+
width: 60,
|
|
520
|
+
type: 'integer'
|
|
521
|
+
},
|
|
528
522
|
header: i18next.t('field.total_uom_value_shelf'),
|
|
529
523
|
width: 120,
|
|
530
524
|
hidden: !this._showTotalUom
|
|
@@ -540,11 +534,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
540
534
|
{
|
|
541
535
|
type: 'integer',
|
|
542
536
|
name: 'uomValueDraftQty',
|
|
543
|
-
imex: {
|
|
544
|
-
header: i18next.t('field.total_uom_value_draft'),
|
|
545
|
-
key: 'uomValueDraftQty',
|
|
546
|
-
width: 60,
|
|
547
|
-
type: 'integer'
|
|
537
|
+
imex: {
|
|
538
|
+
header: i18next.t('field.total_uom_value_draft'),
|
|
539
|
+
key: 'uomValueDraftQty',
|
|
540
|
+
width: 60,
|
|
541
|
+
type: 'integer'
|
|
542
|
+
},
|
|
548
543
|
header: i18next.t('field.total_uom_value_draft'),
|
|
549
544
|
width: 120,
|
|
550
545
|
hidden: !this._showTotalUom
|
|
@@ -560,11 +555,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
560
555
|
{
|
|
561
556
|
type: 'integer',
|
|
562
557
|
name: 'uomValueReleaseQty',
|
|
563
|
-
imex: {
|
|
564
|
-
header: i18next.t('field.total_uom_value_release'),
|
|
565
|
-
key: 'uomValueReleaseQty',
|
|
566
|
-
width: 60,
|
|
567
|
-
type: 'integer'
|
|
558
|
+
imex: {
|
|
559
|
+
header: i18next.t('field.total_uom_value_release'),
|
|
560
|
+
key: 'uomValueReleaseQty',
|
|
561
|
+
width: 60,
|
|
562
|
+
type: 'integer'
|
|
563
|
+
},
|
|
568
564
|
header: i18next.t('field.total_uom_value_release'),
|
|
569
565
|
width: 120,
|
|
570
566
|
hidden: !this._showTotalUom
|
|
@@ -580,11 +576,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
580
576
|
{
|
|
581
577
|
type: 'integer',
|
|
582
578
|
name: 'uomValueInsufficientQty',
|
|
583
|
-
imex: {
|
|
584
|
-
header: i18next.t('field.total_uom_value_insufficient'),
|
|
585
|
-
key: 'uomValueInsufficientQty',
|
|
586
|
-
width: 60,
|
|
587
|
-
type: 'integer'
|
|
579
|
+
imex: {
|
|
580
|
+
header: i18next.t('field.total_uom_value_insufficient'),
|
|
581
|
+
key: 'uomValueInsufficientQty',
|
|
582
|
+
width: 60,
|
|
583
|
+
type: 'integer'
|
|
584
|
+
},
|
|
588
585
|
header: i18next.t('field.total_uom_value_insufficient'),
|
|
589
586
|
width: 120,
|
|
590
587
|
hidden: !this._showTotalUom
|
|
@@ -600,11 +597,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
600
597
|
{
|
|
601
598
|
type: 'integer',
|
|
602
599
|
name: 'uomValuePutawayQty',
|
|
603
|
-
imex: {
|
|
604
|
-
header: i18next.t('field.total_uom_value_putaway'),
|
|
605
|
-
key: 'uomValuePutawayQty',
|
|
606
|
-
width: 60,
|
|
607
|
-
type: 'integer'
|
|
600
|
+
imex: {
|
|
601
|
+
header: i18next.t('field.total_uom_value_putaway'),
|
|
602
|
+
key: 'uomValuePutawayQty',
|
|
603
|
+
width: 60,
|
|
604
|
+
type: 'integer'
|
|
605
|
+
},
|
|
608
606
|
header: i18next.t('field.total_uom_value_putaway'),
|
|
609
607
|
width: 120,
|
|
610
608
|
hidden: !this._showTotalUom
|
|
@@ -620,11 +618,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
620
618
|
{
|
|
621
619
|
type: 'integer',
|
|
622
620
|
name: 'uomValueAvailableQty',
|
|
623
|
-
imex: {
|
|
624
|
-
header: i18next.t('field.total_uom_value_available'),
|
|
625
|
-
key: 'uomValueAvailableQty',
|
|
626
|
-
width: 60,
|
|
627
|
-
type: 'integer'
|
|
621
|
+
imex: {
|
|
622
|
+
header: i18next.t('field.total_uom_value_available'),
|
|
623
|
+
key: 'uomValueAvailableQty',
|
|
624
|
+
width: 60,
|
|
625
|
+
type: 'integer'
|
|
626
|
+
},
|
|
628
627
|
header: i18next.t('field.total_uom_value_available'),
|
|
629
628
|
width: 120,
|
|
630
629
|
hidden: !this._showTotalUom
|
|
@@ -640,11 +639,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
640
639
|
{
|
|
641
640
|
type: 'integer',
|
|
642
641
|
name: 'uomValueQuarantineQty',
|
|
643
|
-
imex: {
|
|
644
|
-
header: i18next.t('field.total_uom_value_quarantine'),
|
|
645
|
-
key: 'uomValueQuarantineQty',
|
|
646
|
-
width: 60,
|
|
647
|
-
type: 'integer'
|
|
642
|
+
imex: {
|
|
643
|
+
header: i18next.t('field.total_uom_value_quarantine'),
|
|
644
|
+
key: 'uomValueQuarantineQty',
|
|
645
|
+
width: 60,
|
|
646
|
+
type: 'integer'
|
|
647
|
+
},
|
|
648
648
|
header: i18next.t('field.total_uom_value_quarantine'),
|
|
649
649
|
width: 120,
|
|
650
650
|
hidden: !this._showTotalUom
|
|
@@ -660,11 +660,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
660
660
|
{
|
|
661
661
|
type: 'integer',
|
|
662
662
|
name: 'uomValueReserveQty',
|
|
663
|
-
imex: {
|
|
664
|
-
header: i18next.t('field.total_uom_value_reserve'),
|
|
665
|
-
key: 'uomValueReserveQty',
|
|
666
|
-
width: 60,
|
|
667
|
-
type: 'integer'
|
|
663
|
+
imex: {
|
|
664
|
+
header: i18next.t('field.total_uom_value_reserve'),
|
|
665
|
+
key: 'uomValueReserveQty',
|
|
666
|
+
width: 60,
|
|
667
|
+
type: 'integer'
|
|
668
|
+
},
|
|
668
669
|
header: i18next.t('field.total_uom_value_reserve'),
|
|
669
670
|
width: 120,
|
|
670
671
|
hidden: !this._showTotalUom
|
|
@@ -680,11 +681,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
680
681
|
{
|
|
681
682
|
type: 'integer',
|
|
682
683
|
name: 'uomValueWarehouseQty',
|
|
683
|
-
imex: {
|
|
684
|
-
header: i18next.t('field.total_uom_value_warehouse'),
|
|
685
|
-
key: 'uomValueWarehouseQty',
|
|
686
|
-
width: 60,
|
|
687
|
-
type: 'integer'
|
|
684
|
+
imex: {
|
|
685
|
+
header: i18next.t('field.total_uom_value_warehouse'),
|
|
686
|
+
key: 'uomValueWarehouseQty',
|
|
687
|
+
width: 60,
|
|
688
|
+
type: 'integer'
|
|
689
|
+
},
|
|
688
690
|
header: i18next.t('field.total_uom_value_warehouse'),
|
|
689
691
|
width: 120,
|
|
690
692
|
hidden: !this._showTotalUom
|
|
@@ -700,11 +702,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
700
702
|
{
|
|
701
703
|
type: 'integer',
|
|
702
704
|
name: 'uomValueObsoleteQty',
|
|
703
|
-
imex: {
|
|
705
|
+
imex: {
|
|
704
706
|
header: i18next.t('field.total_uom_value_obsolete'),
|
|
705
|
-
key: 'uomValueObsoleteQty',
|
|
706
|
-
width: 60,
|
|
707
|
-
type: 'integer'
|
|
707
|
+
key: 'uomValueObsoleteQty',
|
|
708
|
+
width: 60,
|
|
709
|
+
type: 'integer'
|
|
710
|
+
},
|
|
708
711
|
header: i18next.t('field.total_uom_value_obsolete'),
|
|
709
712
|
width: 120,
|
|
710
713
|
hidden: !this._showTotalUom
|
|
@@ -720,11 +723,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
720
723
|
{
|
|
721
724
|
type: 'integer',
|
|
722
725
|
name: 'uomValueDamageQty',
|
|
723
|
-
imex: {
|
|
724
|
-
header: i18next.t('field.total_uom_value_damage'),
|
|
725
|
-
key: 'uomValueDamageQty',
|
|
726
|
-
width: 60,
|
|
727
|
-
type: 'integer'
|
|
726
|
+
imex: {
|
|
727
|
+
header: i18next.t('field.total_uom_value_damage'),
|
|
728
|
+
key: 'uomValueDamageQty',
|
|
729
|
+
width: 60,
|
|
730
|
+
type: 'integer'
|
|
731
|
+
},
|
|
728
732
|
header: i18next.t('field.total_uom_value_damage'),
|
|
729
733
|
width: 120,
|
|
730
734
|
hidden: !this._showTotalUom
|
|
@@ -740,11 +744,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
740
744
|
{
|
|
741
745
|
type: 'integer',
|
|
742
746
|
name: 'uomValueStorageQty',
|
|
743
|
-
imex: {
|
|
744
|
-
header: i18next.t('field.total_uom_value_storage'),
|
|
745
|
-
key: 'uomValueStorageQty',
|
|
746
|
-
width: 60,
|
|
747
|
-
type: 'integer'
|
|
747
|
+
imex: {
|
|
748
|
+
header: i18next.t('field.total_uom_value_storage'),
|
|
749
|
+
key: 'uomValueStorageQty',
|
|
750
|
+
width: 60,
|
|
751
|
+
type: 'integer'
|
|
752
|
+
},
|
|
748
753
|
header: i18next.t('field.total_uom_value_storage'),
|
|
749
754
|
width: 120,
|
|
750
755
|
hidden: !this._showTotalUom
|
|
@@ -760,11 +765,12 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
760
765
|
{
|
|
761
766
|
type: 'integer',
|
|
762
767
|
name: 'uomValueTransferQty',
|
|
763
|
-
imex: {
|
|
764
|
-
header: i18next.t('field.total_uom_value_transfer'),
|
|
765
|
-
key: 'uomValueTransferQty',
|
|
766
|
-
width: 60,
|
|
767
|
-
type: 'integer'
|
|
768
|
+
imex: {
|
|
769
|
+
header: i18next.t('field.total_uom_value_transfer'),
|
|
770
|
+
key: 'uomValueTransferQty',
|
|
771
|
+
width: 60,
|
|
772
|
+
type: 'integer'
|
|
773
|
+
},
|
|
768
774
|
header: i18next.t('field.total_uom_value_transfer'),
|
|
769
775
|
width: 120,
|
|
770
776
|
hidden: !this._showTotalUom
|
|
@@ -777,7 +783,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
777
783
|
let records = []
|
|
778
784
|
let total
|
|
779
785
|
|
|
780
|
-
if (this.count===1) {
|
|
786
|
+
if (this.count === 1) {
|
|
781
787
|
records = this.responseArr
|
|
782
788
|
total = this.responseArr.length
|
|
783
789
|
} else {
|
|
@@ -806,6 +812,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
806
812
|
auxValue5
|
|
807
813
|
}
|
|
808
814
|
bizplace {
|
|
815
|
+
id
|
|
809
816
|
name
|
|
810
817
|
}
|
|
811
818
|
packingType
|
|
@@ -855,7 +862,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
855
862
|
record.damageQty = item.damageQty
|
|
856
863
|
record.uomValue = item.uomValue
|
|
857
864
|
|
|
858
|
-
record.uomValueMinQty = record.uomValue * record.minQty
|
|
865
|
+
record.uomValueMinQty = record.uomValue * record.minQty
|
|
859
866
|
record.uomValueMaxQty = record.uomValue * record.maxQty
|
|
860
867
|
record.uomValueShelfQty = record.uomValue * record.qty
|
|
861
868
|
record.uomValueDraftQty = record.uomValue * record.draftQty
|
|
@@ -873,7 +880,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
873
880
|
|
|
874
881
|
return record
|
|
875
882
|
})
|
|
876
|
-
this.responseArr = records
|
|
883
|
+
this.responseArr = records
|
|
877
884
|
}
|
|
878
885
|
return { records, total }
|
|
879
886
|
}
|
|
@@ -1038,11 +1045,19 @@ class InventoryByProduct extends localize(i18next)(PageView) {
|
|
|
1038
1045
|
}
|
|
1039
1046
|
|
|
1040
1047
|
_showInventoryInfo(columns, data, column, record, rowIndex) {
|
|
1041
|
-
openPopup(
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1048
|
+
openPopup(
|
|
1049
|
+
html`
|
|
1050
|
+
<inventory-by-product-detail
|
|
1051
|
+
.productId="${record.id}"
|
|
1052
|
+
.bizplaceId="${record.bizplace.id}"
|
|
1053
|
+
></inventory-by-product-detail>
|
|
1054
|
+
`,
|
|
1055
|
+
{
|
|
1056
|
+
backdrop: true,
|
|
1057
|
+
size: 'large',
|
|
1058
|
+
title: `${record.name} ${record.description ? `(${record.description})` : ''}`
|
|
1059
|
+
}
|
|
1060
|
+
)
|
|
1046
1061
|
}
|
|
1047
1062
|
|
|
1048
1063
|
_showToast({ type, message }) {
|
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.553",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.535",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.535",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.551",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.553"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.534",
|
|
@@ -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": "e16458e0795f213e33fd9bb94b96bde1b53c1e3b"
|
|
121
121
|
}
|