@things-factory/operato-wms 4.3.385 → 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/client/pages/outbound/vas-list-popup.js +14 -4
- package/client/pages/report/shortage-report.js +94 -107
- 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
|
}
|
|
@@ -3,10 +3,20 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import '../components/popup-note'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
css,
|
|
8
|
+
html,
|
|
9
|
+
LitElement
|
|
10
|
+
} from 'lit-element'
|
|
7
11
|
|
|
8
|
-
import {
|
|
9
|
-
|
|
12
|
+
import {
|
|
13
|
+
MultiColumnFormStyles,
|
|
14
|
+
SingleColumnFormStyles
|
|
15
|
+
} from '@things-factory/form-ui'
|
|
16
|
+
import {
|
|
17
|
+
i18next,
|
|
18
|
+
localize
|
|
19
|
+
} from '@things-factory/i18n-base'
|
|
10
20
|
import { client } from '@things-factory/shell'
|
|
11
21
|
import { isMobileDevice } from '@things-factory/utils'
|
|
12
22
|
|
|
@@ -347,7 +357,7 @@ export class VasListPopup extends localize(i18next)(LitElement) {
|
|
|
347
357
|
...record,
|
|
348
358
|
sku: record?.product?.sku,
|
|
349
359
|
outputQty: record?.outputQty,
|
|
350
|
-
|
|
360
|
+
newSKU: record?.newProduct?.sku,
|
|
351
361
|
qty: record?.qty,
|
|
352
362
|
vas: record?.orderVasItems?.vas,
|
|
353
363
|
vasQty: record?.orderVasItems?.vasQty,
|
|
@@ -3,39 +3,28 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import '../inventory/inventory-by-product-detail'
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import {
|
|
7
|
-
css,
|
|
8
|
-
html
|
|
9
|
-
} from 'lit-element'
|
|
6
|
+
import { css, html } from 'lit-element'
|
|
10
7
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
11
8
|
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
localize
|
|
15
|
-
} from '@things-factory/i18n-base'
|
|
16
|
-
import {
|
|
17
|
-
client,
|
|
18
|
-
gqlContext,
|
|
19
|
-
PageView,
|
|
20
|
-
store
|
|
21
|
-
} from '@things-factory/shell'
|
|
9
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
10
|
+
import { client, gqlContext, PageView, store } from '@things-factory/shell'
|
|
22
11
|
// import { ScrollbarStyles } from '@things-factory/styles'
|
|
23
12
|
import { isMobileDevice } from '@things-factory/utils'
|
|
24
13
|
|
|
25
14
|
import { showToast } from '../../util'
|
|
26
15
|
|
|
27
|
-
class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
28
|
-
static get styles(){
|
|
16
|
+
class shortageReport extends connect(store)(localize(i18next)(PageView)) {
|
|
17
|
+
static get styles() {
|
|
29
18
|
return [
|
|
30
19
|
// ScrollbarStyles,
|
|
31
20
|
css`
|
|
32
21
|
:host {
|
|
33
|
-
display:flex;
|
|
22
|
+
display: flex;
|
|
34
23
|
flex-direction: column;
|
|
35
|
-
width: 100
|
|
24
|
+
width: 100%;
|
|
36
25
|
}
|
|
37
|
-
|
|
38
|
-
data-grist{
|
|
26
|
+
|
|
27
|
+
data-grist {
|
|
39
28
|
overflow-y: auto;
|
|
40
29
|
flex: 1;
|
|
41
30
|
}
|
|
@@ -58,12 +47,12 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
58
47
|
}
|
|
59
48
|
|
|
60
49
|
static get properties() {
|
|
61
|
-
return{
|
|
50
|
+
return {
|
|
62
51
|
_searchFields: Array,
|
|
63
52
|
_config: Object,
|
|
64
|
-
_gristData:Object,
|
|
65
|
-
_partners:Object,
|
|
66
|
-
items: Object
|
|
53
|
+
_gristData: Object,
|
|
54
|
+
_partners: Object,
|
|
55
|
+
items: Object
|
|
67
56
|
// importHandler: Object
|
|
68
57
|
}
|
|
69
58
|
}
|
|
@@ -82,7 +71,7 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
82
71
|
get dataGrist() {
|
|
83
72
|
return this.shadowRoot.querySelector('data-grist')
|
|
84
73
|
}
|
|
85
|
-
|
|
74
|
+
|
|
86
75
|
get searchForm() {
|
|
87
76
|
return this.shadowRoot.querySelector('search-form')
|
|
88
77
|
}
|
|
@@ -99,32 +88,32 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
99
88
|
return this.searchForm.shadowRoot.querySelector('input[name=toDate]')
|
|
100
89
|
}
|
|
101
90
|
|
|
102
|
-
render
|
|
91
|
+
render() {
|
|
103
92
|
return html`
|
|
104
93
|
<search-form
|
|
105
94
|
id="search-form"
|
|
106
95
|
.fields=${this._searchFields}
|
|
107
96
|
initFocus="description"
|
|
108
|
-
@submit=${e => this.dataGrist.fetch()}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
97
|
+
@submit=${e => this.dataGrist.fetch()}
|
|
98
|
+
></search-form>
|
|
99
|
+
|
|
100
|
+
<data-grist
|
|
101
|
+
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
102
|
+
.config=${this._config}
|
|
103
|
+
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
104
|
+
></data-grist>
|
|
105
|
+
`
|
|
106
|
+
}
|
|
118
107
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
108
|
+
get searchFields() {
|
|
109
|
+
return [
|
|
110
|
+
{
|
|
111
|
+
label: i18next.t('Company'),
|
|
112
|
+
name: 'bizplace',
|
|
113
|
+
type: 'select',
|
|
114
|
+
options: [
|
|
115
|
+
{ value: '' },
|
|
116
|
+
...this._partners
|
|
128
117
|
.map(partner => {
|
|
129
118
|
return {
|
|
130
119
|
name: `${partner.name} ${partner.description ? `(${partner.description})` : ''}`,
|
|
@@ -133,55 +122,54 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
133
122
|
})
|
|
134
123
|
.sort(this._compareValues('name', 'asc'))
|
|
135
124
|
],
|
|
136
|
-
|
|
125
|
+
props: { searchOper: 'eq' }
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: i18next.t('field.from_date'),
|
|
129
|
+
name: 'fromDate',
|
|
130
|
+
type: 'date',
|
|
131
|
+
props: {
|
|
132
|
+
searchOper: 'eq',
|
|
133
|
+
max: new Date().toISOString().split('T')[0]
|
|
137
134
|
},
|
|
138
|
-
{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
135
|
+
value: (() => {
|
|
136
|
+
let date = new Date()
|
|
137
|
+
date.setMonth(date.getMonth() - 1)
|
|
138
|
+
return date.toISOString().split('T')[0]
|
|
139
|
+
})(),
|
|
140
|
+
handlers: { change: this._modifyDateRange.bind(this) }
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: i18next.t('field.to_date'),
|
|
144
|
+
name: 'toDate',
|
|
145
|
+
type: 'date',
|
|
146
|
+
props: {
|
|
147
|
+
searchOper: 'eq',
|
|
148
|
+
min: (() => {
|
|
147
149
|
let date = new Date()
|
|
148
150
|
date.setMonth(date.getMonth() - 1)
|
|
149
151
|
return date.toISOString().split('T')[0]
|
|
150
152
|
})(),
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
label: i18next.t('field.to_date'),
|
|
155
|
-
name: 'toDate',
|
|
156
|
-
type: 'date',
|
|
157
|
-
props: {
|
|
158
|
-
searchOper: 'eq',
|
|
159
|
-
min: (() => {
|
|
160
|
-
let date = new Date()
|
|
161
|
-
date.setMonth(date.getMonth() - 1)
|
|
162
|
-
return date.toISOString().split('T')[0]
|
|
163
|
-
})(),
|
|
164
|
-
max: new Date().toISOString().split('T')[0]
|
|
165
|
-
},
|
|
166
|
-
value: new Date().toISOString().split('T')[0],
|
|
167
|
-
handlers: { change: this._submit.bind(this) }
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
label: i18next.t('field.product_info'),
|
|
171
|
-
name: 'product',
|
|
172
|
-
type: 'string',
|
|
173
|
-
props: { searchOper: 'in' }
|
|
153
|
+
max: new Date().toISOString().split('T')[0]
|
|
174
154
|
},
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
155
|
+
value: new Date().toISOString().split('T')[0],
|
|
156
|
+
handlers: { change: this._submit.bind(this) }
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: i18next.t('field.product_info'),
|
|
160
|
+
name: 'product',
|
|
161
|
+
type: 'string',
|
|
162
|
+
props: { searchOper: 'in' }
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
label: i18next.t('field.order_no'),
|
|
166
|
+
name: 'orderNo',
|
|
167
|
+
type: 'text',
|
|
168
|
+
props: { searchOper: 'custom' }
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
183
172
|
|
|
184
|
-
|
|
185
173
|
get reportConfig() {
|
|
186
174
|
// let rows = {
|
|
187
175
|
// selectable: false,
|
|
@@ -272,7 +260,7 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
272
260
|
}
|
|
273
261
|
}
|
|
274
262
|
|
|
275
|
-
async pageInitialized(){
|
|
263
|
+
async pageInitialized() {
|
|
276
264
|
this._gristData = { total: 0, records: [] }
|
|
277
265
|
this._products = []
|
|
278
266
|
|
|
@@ -282,7 +270,6 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
282
270
|
|
|
283
271
|
this._searchFields = this.searchFields
|
|
284
272
|
this._config = this.reportConfig
|
|
285
|
-
|
|
286
273
|
}
|
|
287
274
|
|
|
288
275
|
pageUpdated(changes, lifecycle) {
|
|
@@ -291,7 +278,7 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
291
278
|
}
|
|
292
279
|
}
|
|
293
280
|
|
|
294
|
-
async fetchHandler({page, limit, sorters = []}) {
|
|
281
|
+
async fetchHandler({ page, limit, sorters = [] }) {
|
|
295
282
|
try {
|
|
296
283
|
this._validate()
|
|
297
284
|
let filters = this.searchForm.queryFilters.map(filter => {
|
|
@@ -314,12 +301,12 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
314
301
|
|
|
315
302
|
const pagination = { page, limit }
|
|
316
303
|
const sortings = sorters
|
|
317
|
-
|
|
318
|
-
const response =
|
|
319
|
-
query:gql`
|
|
304
|
+
|
|
305
|
+
const response = await client.query({
|
|
306
|
+
query: gql`
|
|
320
307
|
query shortageReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
321
308
|
shortageReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
322
|
-
items {
|
|
309
|
+
items {
|
|
323
310
|
bizplaceName
|
|
324
311
|
orderNo
|
|
325
312
|
refNo
|
|
@@ -338,11 +325,11 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
338
325
|
}
|
|
339
326
|
}
|
|
340
327
|
`,
|
|
341
|
-
variables: { filters,pagination,sortings},
|
|
342
|
-
context:gqlContext()
|
|
328
|
+
variables: { filters, pagination, sortings },
|
|
329
|
+
context: gqlContext()
|
|
343
330
|
})
|
|
344
331
|
|
|
345
|
-
return{
|
|
332
|
+
return {
|
|
346
333
|
total: response.data.shortageReport.total || 0,
|
|
347
334
|
records: response.data.shortageReport.items || []
|
|
348
335
|
}
|
|
@@ -433,14 +420,14 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
433
420
|
{ header: i18next.t('field.order_no'), key: 'orderNo', width: 30, type: 'string' },
|
|
434
421
|
{ header: i18next.t('field.ref_no'), key: 'refNo', width: 60, type: 'string' },
|
|
435
422
|
{ header: i18next.t('field.sku'), key: 'productSku', width: 25, type: 'string' },
|
|
436
|
-
{header: i18next.t('field.product'), key: 'productName', width: 50, type: 'string' },
|
|
437
|
-
{header: i18next.t('field.order_quantity'), key: 'orderQty', width: 15, type: 'string' },
|
|
438
|
-
{header: i18next.t('field.available_qty'), key: 'avQty', width: 15, type: 'string' },
|
|
439
|
-
{header: i18next.t('field.nett_stock'), key: 'nettStock', width: 15, type: 'string' },
|
|
440
|
-
{header: i18next.t('field.delivery_address'), key: 'deliveryAddress', width: 15, type: 'string' },
|
|
441
|
-
{header: i18next.t('field.state'), key: 'state', width: 15, type: 'string' },
|
|
442
|
-
{header: i18next.t('field.city'), key: 'city', width: 15, type: 'string' },
|
|
443
|
-
{header: i18next.t('field.country'), key: 'country', width: 15, type: 'string' },
|
|
423
|
+
{ header: i18next.t('field.product'), key: 'productName', width: 50, type: 'string' },
|
|
424
|
+
{ header: i18next.t('field.order_quantity'), key: 'orderQty', width: 15, type: 'string' },
|
|
425
|
+
{ header: i18next.t('field.available_qty'), key: 'avQty', width: 15, type: 'string' },
|
|
426
|
+
{ header: i18next.t('field.nett_stock'), key: 'nettStock', width: 15, type: 'string' },
|
|
427
|
+
{ header: i18next.t('field.delivery_address'), key: 'deliveryAddress', width: 15, type: 'string' },
|
|
428
|
+
{ header: i18next.t('field.state'), key: 'state', width: 15, type: 'string' },
|
|
429
|
+
{ header: i18next.t('field.city'), key: 'city', width: 15, type: 'string' },
|
|
430
|
+
{ header: i18next.t('field.country'), key: 'country', width: 15, type: 'string' },
|
|
444
431
|
{ header: i18next.t('field.created_at'), key: 'createdAt', width: 30, type: 'string' }
|
|
445
432
|
]
|
|
446
433
|
|
|
@@ -449,7 +436,7 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
449
436
|
data: (await this.fetchHandler({ page: 1, limit: 9999999 })).records.map(itm => {
|
|
450
437
|
return {
|
|
451
438
|
...itm,
|
|
452
|
-
createdAt: itm.createdAt ? new Date(parseInt(itm.createdAt)).toLocaleString() : ''
|
|
439
|
+
createdAt: itm.createdAt ? new Date(parseInt(itm.createdAt)).toLocaleString() : ''
|
|
453
440
|
}
|
|
454
441
|
})
|
|
455
442
|
}
|
|
@@ -471,5 +458,5 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)){
|
|
|
471
458
|
)
|
|
472
459
|
}
|
|
473
460
|
}
|
|
474
|
-
|
|
461
|
+
|
|
475
462
|
window.customElements.define('shortage-report', shortageReport)
|
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
|
}
|