@things-factory/operato-wms 4.3.656 → 4.3.660
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/components/select-product-popup.js +9 -4
- package/client/pages/inbound/carton-label-popup.js +247 -13
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +140 -22
- package/client/pages/order/arrival-notice/create-arrival-notice.js +272 -29
- package/client/pages/order/arrival-notice/edit-product-popup.js +513 -278
- package/client/pages/order/arrival-notice/proceed-edit-product-popup.js +193 -138
- package/client/pages/order/arrival-notice/view-product-changes-popup.js +199 -137
- package/client/pages/report/inbound-order-details-report.js +2 -2
- package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +20 -3
- package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js.map +1 -1
- package/package.json +10 -10
- package/server/graphql/resolvers/reports/inbound-order-details-report.ts +20 -3
- package/translations/en.json +4 -0
- package/translations/ko.json +5 -1
- package/translations/ms.json +5 -1
- package/translations/zh.json +5 -1
|
@@ -71,7 +71,8 @@ export class ProceedEditProductPopup extends localize(i18next)(LitElement) {
|
|
|
71
71
|
config: Object,
|
|
72
72
|
data: Object,
|
|
73
73
|
bizplace: Object,
|
|
74
|
-
ganNo: String
|
|
74
|
+
ganNo: String,
|
|
75
|
+
enableDirectInbound: Boolean
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
|
|
@@ -146,6 +147,196 @@ export class ProceedEditProductPopup extends localize(i18next)(LitElement) {
|
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
firstUpdated() {
|
|
150
|
+
const columns = [
|
|
151
|
+
{ type: 'gutter', gutterName: 'sequence' },
|
|
152
|
+
{ type: 'gutter', gutterName: 'row-selector', multiple: true },
|
|
153
|
+
{
|
|
154
|
+
type: 'string',
|
|
155
|
+
name: 'batchId',
|
|
156
|
+
header: i18next.t('field.batch_id'),
|
|
157
|
+
width: 150
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'string',
|
|
161
|
+
name: 'adjustedBatchId',
|
|
162
|
+
header: i18next.t('field.adjusted_batch_id'),
|
|
163
|
+
width: 150
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
type: 'string',
|
|
167
|
+
name: 'productSku',
|
|
168
|
+
header: i18next.t('field.sku'),
|
|
169
|
+
width: 150
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
type: 'object',
|
|
173
|
+
name: 'product',
|
|
174
|
+
header: i18next.t('field.product'),
|
|
175
|
+
record: { options: { queryName: 'products' } },
|
|
176
|
+
width: 350
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
type: 'string',
|
|
180
|
+
name: 'packingType',
|
|
181
|
+
header: i18next.t('field.packing_type'),
|
|
182
|
+
width: 150
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
type: 'string',
|
|
186
|
+
name: 'adjustedPackingType',
|
|
187
|
+
header: i18next.t('field.adjusted_packing_type'),
|
|
188
|
+
width: 150
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
type: 'float',
|
|
192
|
+
name: 'uomValue',
|
|
193
|
+
header: i18next.t('field.uom_value'),
|
|
194
|
+
width: 80
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
type: 'float',
|
|
198
|
+
name: 'adjustedUomValue',
|
|
199
|
+
header: i18next.t('field.adjusted_uom_value'),
|
|
200
|
+
width: 80
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
type: 'string',
|
|
204
|
+
name: 'uom',
|
|
205
|
+
header: i18next.t('field.uom'),
|
|
206
|
+
width: 80
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
type: 'string',
|
|
210
|
+
name: 'adjustedUom',
|
|
211
|
+
header: i18next.t('field.adjusted_uom'),
|
|
212
|
+
width: 80
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
type: 'float',
|
|
216
|
+
name: 'packQty',
|
|
217
|
+
header: i18next.t('field.pack_qty'),
|
|
218
|
+
width: 80
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
type: 'float',
|
|
222
|
+
name: 'adjustedPackQty',
|
|
223
|
+
header: i18next.t('field.adjusted_pack_qty'),
|
|
224
|
+
width: 80
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
type: 'float',
|
|
228
|
+
name: 'totalUomValue',
|
|
229
|
+
header: i18next.t('field.total_uom_value'),
|
|
230
|
+
width: 120
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
type: 'integer',
|
|
234
|
+
name: 'adjustedTotalUomValue',
|
|
235
|
+
header: i18next.t('field.adjusted_total_uom_value'),
|
|
236
|
+
width: 120
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
type: 'integer',
|
|
240
|
+
name: 'palletQty',
|
|
241
|
+
header: i18next.t('field.pallet_qty'),
|
|
242
|
+
width: 80
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
type: 'integer',
|
|
246
|
+
name: 'adjustedPalletQty',
|
|
247
|
+
header: i18next.t('field.adjusted_pallet_qty'),
|
|
248
|
+
width: 80
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
type: 'date',
|
|
252
|
+
name: 'manufactureDate',
|
|
253
|
+
header: i18next.t('field.manufacture_date'),
|
|
254
|
+
width: 120
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
type: 'string',
|
|
258
|
+
name: 'batchIdRef',
|
|
259
|
+
header: i18next.t('field.batch_no_ref'),
|
|
260
|
+
width: 150
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
type: 'string',
|
|
264
|
+
name: 'adjustedBatchIdRef',
|
|
265
|
+
header: i18next.t('field.adjusted_batch_id_ref'),
|
|
266
|
+
width: 150
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
type: 'float',
|
|
270
|
+
name: 'unitPrice',
|
|
271
|
+
header: i18next.t('field.unit_price'),
|
|
272
|
+
width: 80
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
type: 'float',
|
|
276
|
+
name: 'adjustedUnitPrice',
|
|
277
|
+
header: i18next.t('field.adjusted_unit_price'),
|
|
278
|
+
width: 80
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
type: 'string',
|
|
282
|
+
name: 'remark',
|
|
283
|
+
header: i18next.t('field.remark'),
|
|
284
|
+
width: 200
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
function insertAfter(cols, anchorName, newCols) {
|
|
289
|
+
const idx = cols.findIndex(c => c.name === anchorName)
|
|
290
|
+
if (idx >= 0) cols.splice(idx + 1, 0, ...newCols)
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
const expDateColumn = {
|
|
294
|
+
type: 'date',
|
|
295
|
+
name: 'expDate',
|
|
296
|
+
header: i18next.t('field.exp_date'),
|
|
297
|
+
width: 120
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const adjustedExpDateColumn = {
|
|
301
|
+
type: 'date',
|
|
302
|
+
name: 'adjustedExpDate',
|
|
303
|
+
header: i18next.t('field.adjusted_exp_date'),
|
|
304
|
+
width: 120
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const locationColumn = {
|
|
308
|
+
type: 'object',
|
|
309
|
+
name: 'location',
|
|
310
|
+
header: i18next.t('field.location'),
|
|
311
|
+
width: 150
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
const adjustedLocationColumn = {
|
|
315
|
+
type: 'object',
|
|
316
|
+
name: 'adjustedLocation',
|
|
317
|
+
header: i18next.t('field.adjusted_location'),
|
|
318
|
+
width: 150
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
const warehouseColumn = {
|
|
322
|
+
type: 'object',
|
|
323
|
+
name: 'warehouse',
|
|
324
|
+
header: i18next.t('field.warehouse'),
|
|
325
|
+
width: 150
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
const adjustedWarehouseColumn = {
|
|
329
|
+
type: 'object',
|
|
330
|
+
name: 'adjustedWarehouse',
|
|
331
|
+
header: i18next.t('field.adjusted_warehouse'),
|
|
332
|
+
width: 150
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
if (this.enableDirectInbound) {
|
|
336
|
+
insertAfter(columns, 'adjustedPalletQty', [expDateColumn, adjustedExpDateColumn] )
|
|
337
|
+
insertAfter(columns, 'adjustedBatchIdRef', [warehouseColumn, locationColumn, adjustedWarehouseColumn, adjustedLocationColumn])
|
|
338
|
+
}
|
|
339
|
+
|
|
149
340
|
this.config = this.productGristConfig = {
|
|
150
341
|
list: {
|
|
151
342
|
fields: [
|
|
@@ -171,143 +362,7 @@ export class ProceedEditProductPopup extends localize(i18next)(LitElement) {
|
|
|
171
362
|
},
|
|
172
363
|
pagination: { infinite: true },
|
|
173
364
|
rows: { selectable: { multiple: true }, appendable: false },
|
|
174
|
-
columns
|
|
175
|
-
{ type: 'gutter', gutterName: 'sequence' },
|
|
176
|
-
{ type: 'gutter', gutterName: 'row-selector', multiple: true },
|
|
177
|
-
{
|
|
178
|
-
type: 'string',
|
|
179
|
-
name: 'batchId',
|
|
180
|
-
header: i18next.t('field.batch_id'),
|
|
181
|
-
width: 150
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
type: 'string',
|
|
185
|
-
name: 'adjustedBatchId',
|
|
186
|
-
header: i18next.t('field.adjusted_batch_id'),
|
|
187
|
-
width: 150
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
type: 'string',
|
|
191
|
-
name: 'productSku',
|
|
192
|
-
header: i18next.t('field.sku'),
|
|
193
|
-
width: 150
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
type: 'object',
|
|
197
|
-
name: 'product',
|
|
198
|
-
header: i18next.t('field.product'),
|
|
199
|
-
record: { options: { queryName: 'products' } },
|
|
200
|
-
width: 350
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
type: 'string',
|
|
204
|
-
name: 'packingType',
|
|
205
|
-
header: i18next.t('field.packing_type'),
|
|
206
|
-
width: 150
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
type: 'string',
|
|
210
|
-
name: 'adjustedPackingType',
|
|
211
|
-
header: i18next.t('field.adjusted_packing_type'),
|
|
212
|
-
width: 150
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
type: 'float',
|
|
216
|
-
name: 'uomValue',
|
|
217
|
-
header: i18next.t('field.uom_value'),
|
|
218
|
-
width: 80
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
type: 'float',
|
|
222
|
-
name: 'adjustedUomValue',
|
|
223
|
-
header: i18next.t('field.adjusted_uom_value'),
|
|
224
|
-
width: 80
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
type: 'string',
|
|
228
|
-
name: 'uom',
|
|
229
|
-
header: i18next.t('field.uom'),
|
|
230
|
-
width: 80
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
type: 'string',
|
|
234
|
-
name: 'adjustedUom',
|
|
235
|
-
header: i18next.t('field.adjusted_uom'),
|
|
236
|
-
width: 80
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
type: 'float',
|
|
240
|
-
name: 'packQty',
|
|
241
|
-
header: i18next.t('field.pack_qty'),
|
|
242
|
-
width: 80
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
type: 'float',
|
|
246
|
-
name: 'adjustedPackQty',
|
|
247
|
-
header: i18next.t('field.adjusted_pack_qty'),
|
|
248
|
-
width: 80
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
type: 'float',
|
|
252
|
-
name: 'totalUomValue',
|
|
253
|
-
header: i18next.t('field.total_uom_value'),
|
|
254
|
-
width: 120
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
type: 'integer',
|
|
258
|
-
name: 'adjustedTotalUomValue',
|
|
259
|
-
header: i18next.t('field.adjusted_total_uom_value'),
|
|
260
|
-
width: 120
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
type: 'integer',
|
|
264
|
-
name: 'palletQty',
|
|
265
|
-
header: i18next.t('field.pallet_qty'),
|
|
266
|
-
width: 80
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
type: 'integer',
|
|
270
|
-
name: 'adjustedPalletQty',
|
|
271
|
-
header: i18next.t('field.adjusted_pallet_qty'),
|
|
272
|
-
width: 80
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
type: 'date',
|
|
276
|
-
name: 'manufactureDate',
|
|
277
|
-
header: i18next.t('field.manufacture_date'),
|
|
278
|
-
width: 120
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
type: 'string',
|
|
282
|
-
name: 'batchIdRef',
|
|
283
|
-
header: i18next.t('field.batch_no_ref'),
|
|
284
|
-
width: 150
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
type: 'string',
|
|
288
|
-
name: 'adjustedBatchIdRef',
|
|
289
|
-
header: i18next.t('field.adjusted_batch_id_ref'),
|
|
290
|
-
width: 150
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
type: 'float',
|
|
294
|
-
name: 'unitPrice',
|
|
295
|
-
header: i18next.t('field.unit_price'),
|
|
296
|
-
width: 80
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
type: 'float',
|
|
300
|
-
name: 'adjustedUnitPrice',
|
|
301
|
-
header: i18next.t('field.adjusted_unit_price'),
|
|
302
|
-
width: 80
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
type: 'string',
|
|
306
|
-
name: 'remark',
|
|
307
|
-
header: i18next.t('field.remark'),
|
|
308
|
-
width: 200
|
|
309
|
-
}
|
|
310
|
-
]
|
|
365
|
+
columns
|
|
311
366
|
}
|
|
312
367
|
}
|
|
313
368
|
|
|
@@ -66,7 +66,8 @@ export class ViewProductChangesPopup extends localize(i18next)(LitElement) {
|
|
|
66
66
|
static get properties() {
|
|
67
67
|
return {
|
|
68
68
|
config: Object,
|
|
69
|
-
data: Object
|
|
69
|
+
data: Object,
|
|
70
|
+
enableDirectInbound: Boolean
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
|
|
@@ -111,6 +112,202 @@ export class ViewProductChangesPopup extends localize(i18next)(LitElement) {
|
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
firstUpdated() {
|
|
115
|
+
const columns = [
|
|
116
|
+
{ type: 'gutter', gutterName: 'sequence' },
|
|
117
|
+
{
|
|
118
|
+
type: 'string',
|
|
119
|
+
name: 'batchId',
|
|
120
|
+
header: i18next.t('field.batch_id'),
|
|
121
|
+
width: 150
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
type: 'string',
|
|
125
|
+
name: 'adjustedBatchId',
|
|
126
|
+
header: i18next.t('field.adjusted_batch_id'),
|
|
127
|
+
width: 150
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: 'string',
|
|
131
|
+
name: 'batchIdRef',
|
|
132
|
+
header: i18next.t('field.batch_no_ref'),
|
|
133
|
+
width: 150
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
type: 'string',
|
|
137
|
+
name: 'adjustedBatchIdRef',
|
|
138
|
+
header: i18next.t('field.adjusted_batch_id_ref'),
|
|
139
|
+
width: 150
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
type: 'string',
|
|
143
|
+
name: 'productSku',
|
|
144
|
+
header: i18next.t('field.sku'),
|
|
145
|
+
width: 150
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
type: 'object',
|
|
149
|
+
name: 'product',
|
|
150
|
+
header: i18next.t('field.product'),
|
|
151
|
+
record: { options: { queryName: 'products' } },
|
|
152
|
+
width: 350
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
type: 'string',
|
|
156
|
+
name: 'packingType',
|
|
157
|
+
header: i18next.t('field.packing_type'),
|
|
158
|
+
width: 150
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
type: 'string',
|
|
162
|
+
name: 'adjustedPackingType',
|
|
163
|
+
header: i18next.t('field.adjusted_packing_type'),
|
|
164
|
+
width: 150
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
type: 'float',
|
|
168
|
+
name: 'uomValue',
|
|
169
|
+
header: i18next.t('field.uom_value'),
|
|
170
|
+
width: 80
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
type: 'float',
|
|
174
|
+
name: 'adjustedUomValue',
|
|
175
|
+
header: i18next.t('field.adjusted_uom_value'),
|
|
176
|
+
width: 80
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
type: 'string',
|
|
180
|
+
name: 'uom',
|
|
181
|
+
header: i18next.t('field.uom'),
|
|
182
|
+
width: 80
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
type: 'string',
|
|
186
|
+
name: 'adjustedUom',
|
|
187
|
+
header: i18next.t('field.adjusted_uom'),
|
|
188
|
+
width: 80
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
type: 'float',
|
|
192
|
+
name: 'packQty',
|
|
193
|
+
header: i18next.t('field.pack_qty'),
|
|
194
|
+
width: 80
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
type: 'float',
|
|
198
|
+
name: 'adjustedPackQty',
|
|
199
|
+
header: i18next.t('field.adjusted_pack_qty'),
|
|
200
|
+
width: 80
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
type: 'float',
|
|
204
|
+
name: 'totalUomValue',
|
|
205
|
+
header: i18next.t('field.total_uom_value'),
|
|
206
|
+
width: 120
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
type: 'integer',
|
|
210
|
+
name: 'adjustedTotalUomValue',
|
|
211
|
+
header: i18next.t('field.adjusted_total_uom_value'),
|
|
212
|
+
width: 120
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
type: 'integer',
|
|
216
|
+
name: 'palletQty',
|
|
217
|
+
header: i18next.t('field.pallet_qty'),
|
|
218
|
+
width: 80
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
type: 'integer',
|
|
222
|
+
name: 'adjustedPalletQty',
|
|
223
|
+
header: i18next.t('field.adjusted_pallet_qty'),
|
|
224
|
+
width: 80
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
type: 'date',
|
|
228
|
+
name: 'manufactureDate',
|
|
229
|
+
header: i18next.t('field.manufacture_date'),
|
|
230
|
+
width: 120
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
type: 'float',
|
|
234
|
+
name: 'unitPrice',
|
|
235
|
+
header: i18next.t('field.unit_price'),
|
|
236
|
+
width: 80
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
type: 'float',
|
|
240
|
+
name: 'adjustedUnitPrice',
|
|
241
|
+
header: i18next.t('field.adjusted_unit_price'),
|
|
242
|
+
width: 80
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
type: 'string',
|
|
246
|
+
name: 'remark',
|
|
247
|
+
header: i18next.t('field.remark'),
|
|
248
|
+
width: 200
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
|
|
252
|
+
function insertAfter(cols, anchorName, newCols) {
|
|
253
|
+
const idx = cols.findIndex(c => c.name === anchorName)
|
|
254
|
+
if (idx >= 0) cols.splice(idx + 1, 0, ...newCols)
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
const expDateColumn = {
|
|
258
|
+
type: 'date',
|
|
259
|
+
name: 'expDate',
|
|
260
|
+
header: i18next.t('field.exp_date'),
|
|
261
|
+
record: { editable: true },
|
|
262
|
+
width: 120
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
const adjustedExpDateColumn = {
|
|
266
|
+
type: 'date',
|
|
267
|
+
name: 'adjustedExpDate',
|
|
268
|
+
header: i18next.t('field.adjusted_exp_date'),
|
|
269
|
+
width: 120
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const locationColumn = {
|
|
273
|
+
type: 'object',
|
|
274
|
+
name: 'location',
|
|
275
|
+
header: i18next.t('field.location'),
|
|
276
|
+
record: { editable: true },
|
|
277
|
+
handlers: {
|
|
278
|
+
click: (columns, data, column, record, rowIndex) => {
|
|
279
|
+
this._openLocationSelection(rowIndex)
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
width: 150
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
const adjustedLocationColumn = {
|
|
286
|
+
type: 'object',
|
|
287
|
+
name: 'adjustedLocation',
|
|
288
|
+
header: i18next.t('field.adjusted_location'),
|
|
289
|
+
width: 150
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const warehouseColumn = {
|
|
293
|
+
type: 'object',
|
|
294
|
+
name: 'warehouse',
|
|
295
|
+
header: i18next.t('field.warehouse'),
|
|
296
|
+
width: 150
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
const adjustedWarehouseColumn = {
|
|
300
|
+
type: 'object',
|
|
301
|
+
name: 'adjustedWarehouse',
|
|
302
|
+
header: i18next.t('field.adjusted_warehouse'),
|
|
303
|
+
width: 150
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
if (this.enableDirectInbound) {
|
|
307
|
+
insertAfter(columns, 'adjustedPalletQty', [expDateColumn, adjustedExpDateColumn] )
|
|
308
|
+
insertAfter(columns, 'manufactureDate', [warehouseColumn, locationColumn, adjustedWarehouseColumn, adjustedLocationColumn])
|
|
309
|
+
}
|
|
310
|
+
|
|
114
311
|
this.config = {
|
|
115
312
|
list: {
|
|
116
313
|
fields: [
|
|
@@ -135,142 +332,7 @@ export class ViewProductChangesPopup extends localize(i18next)(LitElement) {
|
|
|
135
332
|
},
|
|
136
333
|
pagination: { infinite: true },
|
|
137
334
|
rows: { appendable: false },
|
|
138
|
-
columns
|
|
139
|
-
{ type: 'gutter', gutterName: 'sequence' },
|
|
140
|
-
{
|
|
141
|
-
type: 'string',
|
|
142
|
-
name: 'batchId',
|
|
143
|
-
header: i18next.t('field.batch_id'),
|
|
144
|
-
width: 150
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
type: 'string',
|
|
148
|
-
name: 'adjustedBatchId',
|
|
149
|
-
header: i18next.t('field.adjusted_batch_id'),
|
|
150
|
-
width: 150
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
type: 'string',
|
|
154
|
-
name: 'batchIdRef',
|
|
155
|
-
header: i18next.t('field.batch_no_ref'),
|
|
156
|
-
width: 150
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
type: 'string',
|
|
160
|
-
name: 'adjustedBatchIdRef',
|
|
161
|
-
header: i18next.t('field.adjusted_batch_id_ref'),
|
|
162
|
-
width: 150
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
type: 'string',
|
|
166
|
-
name: 'productSku',
|
|
167
|
-
header: i18next.t('field.sku'),
|
|
168
|
-
width: 150
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
type: 'object',
|
|
172
|
-
name: 'product',
|
|
173
|
-
header: i18next.t('field.product'),
|
|
174
|
-
record: { options: { queryName: 'products' } },
|
|
175
|
-
width: 350
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
type: 'string',
|
|
179
|
-
name: 'packingType',
|
|
180
|
-
header: i18next.t('field.packing_type'),
|
|
181
|
-
width: 150
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
type: 'string',
|
|
185
|
-
name: 'adjustedPackingType',
|
|
186
|
-
header: i18next.t('field.adjusted_packing_type'),
|
|
187
|
-
width: 150
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
type: 'float',
|
|
191
|
-
name: 'uomValue',
|
|
192
|
-
header: i18next.t('field.uom_value'),
|
|
193
|
-
width: 80
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
type: 'float',
|
|
197
|
-
name: 'adjustedUomValue',
|
|
198
|
-
header: i18next.t('field.adjusted_uom_value'),
|
|
199
|
-
width: 80
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
type: 'string',
|
|
203
|
-
name: 'uom',
|
|
204
|
-
header: i18next.t('field.uom'),
|
|
205
|
-
width: 80
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
type: 'string',
|
|
209
|
-
name: 'adjustedUom',
|
|
210
|
-
header: i18next.t('field.adjusted_uom'),
|
|
211
|
-
width: 80
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
type: 'float',
|
|
215
|
-
name: 'packQty',
|
|
216
|
-
header: i18next.t('field.pack_qty'),
|
|
217
|
-
width: 80
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
type: 'float',
|
|
221
|
-
name: 'adjustedPackQty',
|
|
222
|
-
header: i18next.t('field.adjusted_pack_qty'),
|
|
223
|
-
width: 80
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
type: 'float',
|
|
227
|
-
name: 'totalUomValue',
|
|
228
|
-
header: i18next.t('field.total_uom_value'),
|
|
229
|
-
width: 120
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
type: 'integer',
|
|
233
|
-
name: 'adjustedTotalUomValue',
|
|
234
|
-
header: i18next.t('field.adjusted_total_uom_value'),
|
|
235
|
-
width: 120
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
type: 'integer',
|
|
239
|
-
name: 'palletQty',
|
|
240
|
-
header: i18next.t('field.pallet_qty'),
|
|
241
|
-
width: 80
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
type: 'integer',
|
|
245
|
-
name: 'adjustedPalletQty',
|
|
246
|
-
header: i18next.t('field.adjusted_pallet_qty'),
|
|
247
|
-
width: 80
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
type: 'date',
|
|
251
|
-
name: 'manufactureDate',
|
|
252
|
-
header: i18next.t('field.manufacture_date'),
|
|
253
|
-
width: 120
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
type: 'float',
|
|
257
|
-
name: 'unitPrice',
|
|
258
|
-
header: i18next.t('field.unit_price'),
|
|
259
|
-
width: 80
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
type: 'float',
|
|
263
|
-
name: 'adjustedUnitPrice',
|
|
264
|
-
header: i18next.t('field.adjusted_unit_price'),
|
|
265
|
-
width: 80
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
type: 'string',
|
|
269
|
-
name: 'remark',
|
|
270
|
-
header: i18next.t('field.remark'),
|
|
271
|
-
width: 200
|
|
272
|
-
}
|
|
273
|
-
]
|
|
335
|
+
columns
|
|
274
336
|
}
|
|
275
337
|
}
|
|
276
338
|
|
|
@@ -468,10 +468,10 @@ class InboundOrderDetailsReport extends connect(store)(localize(i18next)(PageVie
|
|
|
468
468
|
width: 150
|
|
469
469
|
},
|
|
470
470
|
{
|
|
471
|
-
type: '
|
|
471
|
+
type: 'date',
|
|
472
472
|
name: 'expirationDate',
|
|
473
473
|
header: i18next.t('field.exp_date'),
|
|
474
|
-
width:
|
|
474
|
+
width: 120
|
|
475
475
|
},
|
|
476
476
|
{
|
|
477
477
|
type: 'date',
|