@things-factory/operato-wms 4.3.333 → 4.3.335
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/inventory/inventory-adjustment.js +49 -114
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +17 -1
- package/client/pages/order/release-order/b2c/b2c-release-order-detail.js +2093 -0
- package/client/pages/order/release-order/b2c/create-b2c-release-order.js +2354 -0
- package/client/pages/outbound/packing-product.js +153 -9
- package/client/pages/outbound/worksheet-picking.js +88 -22
- package/client/pages/outbound/worksheet-sorting.js +47 -6
- package/client/route.js +8 -1
- package/package.json +5 -5
- package/things-factory.config.js +11 -5
- package/translations/en.json +18 -16
- package/translations/ko.json +17 -2
- package/translations/ms.json +17 -2
- package/translations/zh.json +17 -2
|
@@ -7,28 +7,14 @@ import '../inventory/serial-number-list-popup'
|
|
|
7
7
|
import '../components/select-product-popup'
|
|
8
8
|
|
|
9
9
|
import gql from 'graphql-tag'
|
|
10
|
-
import {
|
|
11
|
-
css,
|
|
12
|
-
html
|
|
13
|
-
} from 'lit-element'
|
|
10
|
+
import { css, html } from 'lit-element'
|
|
14
11
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
15
12
|
|
|
16
13
|
import { DirectPrinter } from '@things-factory/barcode-base'
|
|
17
|
-
import {
|
|
18
|
-
i18next,
|
|
19
|
-
localize
|
|
20
|
-
} from '@things-factory/i18n-base'
|
|
14
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
21
15
|
import { openPopup } from '@things-factory/layout-base'
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
CustomAlert,
|
|
25
|
-
PageView,
|
|
26
|
-
store
|
|
27
|
-
} from '@things-factory/shell'
|
|
28
|
-
import {
|
|
29
|
-
CommonButtonStyles,
|
|
30
|
-
ScrollbarStyles
|
|
31
|
-
} from '@things-factory/styles'
|
|
16
|
+
import { client, CustomAlert, PageView, store } from '@things-factory/shell'
|
|
17
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
32
18
|
import { isMobileDevice } from '@things-factory/utils'
|
|
33
19
|
|
|
34
20
|
import { fetchPageSettings } from '../../util/index'
|
|
@@ -194,7 +180,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
194
180
|
props: { searchOper: 'eq' }
|
|
195
181
|
},
|
|
196
182
|
{
|
|
197
|
-
|
|
183
|
+
header: i18next.t('field.batch_id'),
|
|
198
184
|
name: 'batchId',
|
|
199
185
|
type: 'text',
|
|
200
186
|
props: { searchOper: 'i_like' }
|
|
@@ -270,7 +256,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
270
256
|
handlers: { click: this.showInventoryMovement.bind(this) }
|
|
271
257
|
},
|
|
272
258
|
{ type: 'string', name: 'inventoryItemChanges', hidden: true },
|
|
273
|
-
{ type: 'string', name: 'productDetailName', hidden: true },
|
|
274
259
|
{
|
|
275
260
|
type: 'string',
|
|
276
261
|
name: 'palletId',
|
|
@@ -290,9 +275,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
290
275
|
{
|
|
291
276
|
type: 'string',
|
|
292
277
|
name: 'batchId',
|
|
293
|
-
header: i18next.t('field.
|
|
278
|
+
header: i18next.t('field.batch_id'),
|
|
294
279
|
record: { editable: true },
|
|
295
|
-
imex: { header: i18next.t('field
|
|
280
|
+
imex: { header: i18next.t('field.batch_id'), key: 'batchId', width: 30, type: 'string' },
|
|
296
281
|
sortable: true,
|
|
297
282
|
width: 120
|
|
298
283
|
},
|
|
@@ -305,7 +290,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
305
290
|
options: { queryName: 'partnersBizplaces' }
|
|
306
291
|
},
|
|
307
292
|
imex: {
|
|
308
|
-
header: i18next.t('field
|
|
293
|
+
header: i18next.t('field.company'),
|
|
309
294
|
key: 'bizplace.name',
|
|
310
295
|
width: 50,
|
|
311
296
|
type: 'array',
|
|
@@ -318,11 +303,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
318
303
|
type: 'string',
|
|
319
304
|
name: 'sku',
|
|
320
305
|
header: i18next.t('field.sku'),
|
|
321
|
-
|
|
322
|
-
record: { editable: true },
|
|
323
|
-
imex: { header: i18next.t('field.*_sku'), key: 'sku', width: 30, type: 'string' },
|
|
324
|
-
sortable: true,
|
|
325
|
-
width: 150
|
|
306
|
+
width: 120
|
|
326
307
|
},
|
|
327
308
|
{
|
|
328
309
|
type: 'object',
|
|
@@ -338,10 +319,10 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
338
319
|
select: [
|
|
339
320
|
{ name: 'id', hidden: true },
|
|
340
321
|
{ name: 'productId', hidden: true },
|
|
341
|
-
|
|
322
|
+
{ name: 'sku', header: i18next.t('field.sku'), width: 150 },
|
|
342
323
|
{ name: 'name', header: i18next.t('field.name'), width: 250 },
|
|
343
324
|
{ name: 'brand', header: i18next.t('field.brand'), width: 150 },
|
|
344
|
-
|
|
325
|
+
{ name: 'description', header: i18next.t('field.description'), width: 450 },
|
|
345
326
|
{ name: 'type', header: i18next.t('field.type'), width: 200 },
|
|
346
327
|
{ name: 'packingType', header: i18next.t('field.packing_type'), width: 200 },
|
|
347
328
|
{ name: 'packingSize', header: i18next.t('field.packing_size'), width: 150 },
|
|
@@ -362,9 +343,10 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
362
343
|
},
|
|
363
344
|
imex: {
|
|
364
345
|
header: i18next.t('field.product'),
|
|
365
|
-
key: '
|
|
346
|
+
key: 'product.name',
|
|
366
347
|
width: 150,
|
|
367
|
-
type: '
|
|
348
|
+
type: 'array',
|
|
349
|
+
arrData: []
|
|
368
350
|
},
|
|
369
351
|
sortable: true,
|
|
370
352
|
width: 500
|
|
@@ -385,8 +367,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
385
367
|
key: 'packingType',
|
|
386
368
|
width: 50,
|
|
387
369
|
type: 'array',
|
|
388
|
-
arrData:
|
|
389
|
-
...packingType]
|
|
370
|
+
arrData: packingType
|
|
390
371
|
},
|
|
391
372
|
width: 150
|
|
392
373
|
},
|
|
@@ -410,7 +391,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
410
391
|
record: { editable: true },
|
|
411
392
|
sortable: true,
|
|
412
393
|
imex: {
|
|
413
|
-
header: i18next.t('field
|
|
394
|
+
header: i18next.t('field.qty'),
|
|
414
395
|
key: 'qty',
|
|
415
396
|
width: 10,
|
|
416
397
|
type: 'float'
|
|
@@ -458,9 +439,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
458
439
|
record: { editable: true },
|
|
459
440
|
sortable: true,
|
|
460
441
|
imex: {
|
|
461
|
-
header: i18next.t('field
|
|
442
|
+
header: i18next.t('field.total_uom_value'),
|
|
462
443
|
key: 'uomValue',
|
|
463
|
-
width:
|
|
444
|
+
width: 10,
|
|
464
445
|
type: 'float'
|
|
465
446
|
},
|
|
466
447
|
width: 80
|
|
@@ -470,8 +451,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
470
451
|
name: 'uom',
|
|
471
452
|
header: i18next.t('field.uom'),
|
|
472
453
|
record: { editable: true, codeName: 'UOM' },
|
|
473
|
-
imex: { header: i18next.t('field.uom'), key: 'uom', width: 25, type: 'array',
|
|
474
|
-
arrData:[{name:''}, ...uom ]},
|
|
454
|
+
imex: { header: i18next.t('field.uom'), key: 'uom', width: 25, type: 'array', arrData: uom },
|
|
475
455
|
sortable: true,
|
|
476
456
|
width: 80
|
|
477
457
|
},
|
|
@@ -495,7 +475,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
495
475
|
}
|
|
496
476
|
},
|
|
497
477
|
imex: {
|
|
498
|
-
header: i18next.t('field
|
|
478
|
+
header: i18next.t('field.location'),
|
|
499
479
|
key: 'location.name',
|
|
500
480
|
width: 15,
|
|
501
481
|
type: 'array',
|
|
@@ -515,7 +495,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
515
495
|
type: 'date',
|
|
516
496
|
name: 'expirationDate',
|
|
517
497
|
header: i18next.t('field.exp_date'),
|
|
518
|
-
imex: { header: i18next.t('field.exp_date'), key: 'expirationDate', width: 30, type: '
|
|
498
|
+
imex: { header: i18next.t('field.exp_date'), key: 'expirationDate', width: 30, type: 'date' },
|
|
519
499
|
record: { editable: true },
|
|
520
500
|
sortable: true,
|
|
521
501
|
width: 150
|
|
@@ -524,7 +504,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
524
504
|
type: 'date',
|
|
525
505
|
name: 'manufactureDate',
|
|
526
506
|
header: i18next.t('field.manufacture_date'),
|
|
527
|
-
imex: { header: i18next.t('field.manufacture_date'), key: 'manufactureDate', width: 40, type: '
|
|
507
|
+
imex: { header: i18next.t('field.manufacture_date'), key: 'manufactureDate', width: 40, type: 'date' },
|
|
528
508
|
record: { editable: true },
|
|
529
509
|
sortable: true,
|
|
530
510
|
width: 120
|
|
@@ -576,7 +556,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
576
556
|
]
|
|
577
557
|
},
|
|
578
558
|
imex: {
|
|
579
|
-
header: i18next.t('field
|
|
559
|
+
header: i18next.t('field.adjustment_code'),
|
|
580
560
|
key: 'adjustmentCode',
|
|
581
561
|
width: 30,
|
|
582
562
|
type: 'array',
|
|
@@ -593,7 +573,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
593
573
|
type: 'string',
|
|
594
574
|
name: 'adjustmentNote',
|
|
595
575
|
header: i18next.t('field.adjustment_note'),
|
|
596
|
-
imex: { header: i18next.t('field
|
|
576
|
+
imex: { header: i18next.t('field.adjustment_note'), key: 'adjustmentNote', width: 30, type: 'string' },
|
|
597
577
|
record: { editable: true },
|
|
598
578
|
sortable: true,
|
|
599
579
|
width: 200
|
|
@@ -664,7 +644,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
664
644
|
}
|
|
665
645
|
productDetail {
|
|
666
646
|
id
|
|
667
|
-
name
|
|
668
647
|
costPrice
|
|
669
648
|
}
|
|
670
649
|
qty
|
|
@@ -743,7 +722,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
743
722
|
}
|
|
744
723
|
productDetail {
|
|
745
724
|
id
|
|
746
|
-
name
|
|
747
725
|
costPrice
|
|
748
726
|
}
|
|
749
727
|
qty
|
|
@@ -780,8 +758,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
780
758
|
return {
|
|
781
759
|
...item,
|
|
782
760
|
sku: item.product.sku,
|
|
783
|
-
productDetailName: item.productDetail.name,
|
|
784
|
-
productName: item.product.name,
|
|
785
761
|
brand: item.product.brand,
|
|
786
762
|
unitCost: parseFloat(item.unitCost == null ? 0 : item.unitCost).toFixed(2),
|
|
787
763
|
lockedQty: item.lockedQty || 0,
|
|
@@ -1010,7 +986,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1010
986
|
|
|
1011
987
|
if (row.cuFlag == 'M') {
|
|
1012
988
|
if (
|
|
1013
|
-
|
|
989
|
+
(row.hasOwnProperty('bizplace') && !row.product) ||
|
|
1014
990
|
(row.hasOwnProperty('uom') && row.uom?.trim() == '') ||
|
|
1015
991
|
(row.hasOwnProperty('packingType') && row.packingType?.trim() == '') ||
|
|
1016
992
|
(row.hasOwnProperty('unitCost') && (row.unitCost == null || row.unitCost < 0)) ||
|
|
@@ -1025,7 +1001,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1025
1001
|
row.bizplace = row.bizplace ? { id: row.bizplace.id } : undefined
|
|
1026
1002
|
row.location = row.location ? { id: row.location.id } : undefined
|
|
1027
1003
|
row.productDetailId = row.product ? row.product.id : undefined
|
|
1028
|
-
row.product = row.product ? { id: row.product.productId} : undefined
|
|
1004
|
+
row.product = row.product ? { id: row.product.productId } : undefined
|
|
1029
1005
|
row.uomValue = row.uomValue ? parseFloat(row.uomValue) : undefined
|
|
1030
1006
|
row.unitCost = row.unitCost ? parseFloat(row.unitCost) : undefined
|
|
1031
1007
|
row.packingSize = row.packingSize ? parseInt(row.packingSize) : undefined
|
|
@@ -1086,21 +1062,12 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1086
1062
|
if (itm?.qty < 0) {
|
|
1087
1063
|
throw new Error(i18next.t('text.invalid_qty'))
|
|
1088
1064
|
}
|
|
1089
|
-
// if (itm?.batchId < 0) {
|
|
1090
|
-
// throw new Error(i18next.t('text.invalid_batch_no'))
|
|
1091
|
-
// }
|
|
1092
|
-
// if (itm?.bizplace < 0) {
|
|
1093
|
-
// throw new Error(i18next.t('text.invalid_company'))
|
|
1094
|
-
// }
|
|
1095
|
-
// if (itm?.location < 0) {
|
|
1096
|
-
// throw new Error(i18next.t('text.invalid_location'))
|
|
1097
|
-
// }
|
|
1098
1065
|
if (itm?.packingType?.trim() == '') {
|
|
1099
1066
|
throw new Error(i18next.t('text.invalid_packing_type'))
|
|
1100
1067
|
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1068
|
+
if (itm?.packingSize <= 0) {
|
|
1069
|
+
throw new Error(i18next.t('text.invalid_packing_size'))
|
|
1070
|
+
}
|
|
1104
1071
|
if (itm?.unitCost < 0) {
|
|
1105
1072
|
throw new Error(i18next.t('text.invalid_unit_cost'))
|
|
1106
1073
|
}
|
|
@@ -1122,7 +1089,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1122
1089
|
itm?.adjustmentCode?.trim() != ADJUSTMENT_CODE.AC06.value &&
|
|
1123
1090
|
itm?.adjustmentCode?.trim() != ADJUSTMENT_CODE.AC07.value)
|
|
1124
1091
|
) {
|
|
1125
|
-
throw new Error(i18next.t('text.
|
|
1092
|
+
throw new Error(i18next.t('text.invalid_adjustment_code'))
|
|
1126
1093
|
}
|
|
1127
1094
|
if (itm?.adjustmentNote?.trim() == '') {
|
|
1128
1095
|
throw new Error(i18next.t('text.invalid_adjustment_note'))
|
|
@@ -1130,50 +1097,22 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1130
1097
|
|
|
1131
1098
|
if (itm.cuFlag == '+') {
|
|
1132
1099
|
if (
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
!itm.uomValue
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1100
|
+
!itm.bizplace?.id ||
|
|
1101
|
+
!itm.location?.id ||
|
|
1102
|
+
!itm.product?.id ||
|
|
1103
|
+
!itm.batchId ||
|
|
1104
|
+
!itm.qty ||
|
|
1105
|
+
!itm.uomValue ||
|
|
1106
|
+
!itm.uom ||
|
|
1107
|
+
!itm.packingType ||
|
|
1108
|
+
!itm.adjustmentCode ||
|
|
1109
|
+
!itm.adjustmentNote
|
|
1143
1110
|
) {
|
|
1144
|
-
throw new Error(i18next.t('text.
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
if (!itm.bizplace?.id) {
|
|
1148
|
-
throw new Error(i18next.t('text.Company_required._Kindly_fill_in_the_Company_to_continue'))
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
if (!itm.location?.id) {
|
|
1152
|
-
throw new Error(i18next.t('text.Location_required._Kindly_fill_in_the_Location_to_continue'))
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
if (!itm.batchId) {
|
|
1156
|
-
throw new Error (i18next.t('text.Batch_No._required._Kindly_fill_in_the_Batch_no._to_continue'))
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
if (!itm.sku) {
|
|
1160
|
-
throw new Error(i18next.t('text.SKU_required._Kindly_fill_in_the_SKU_to_continue'))
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
if (!itm.qty) {
|
|
1164
|
-
throw new Error(i18next.t('text.Qty_required._Kindly_fill_in_the_Qty_to_continue'))
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
// if (!itm.adjustmentCode) {
|
|
1168
|
-
// throw new Error(i18next.t('text.empty_adjustment_code_in_list'))
|
|
1169
|
-
// }
|
|
1170
|
-
|
|
1171
|
-
if (!itm.adjustmentNote) {
|
|
1172
|
-
throw new Error(i18next.t('text.Adjustment_Note_required._Kindly_fill_in_the_Adjustment_note_to_continue'))
|
|
1111
|
+
throw new Error(i18next.t('text.empty_value_in_list'))
|
|
1173
1112
|
}
|
|
1174
1113
|
|
|
1175
|
-
if (itm.qty < 1 || itm.unitCost < 0 || itm.uomValue < 1) {
|
|
1176
|
-
throw new Error(i18next.t('text.invalid_value_in_list'))
|
|
1114
|
+
if (itm.qty < 1 || itm.unitCost < 0 || itm.packingSize < 1 || itm.uomValue < 1) {
|
|
1115
|
+
throw new Error(i18next.t('text.invalid_value_in_list'))
|
|
1177
1116
|
}
|
|
1178
1117
|
|
|
1179
1118
|
if (
|
|
@@ -1206,7 +1145,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1206
1145
|
}
|
|
1207
1146
|
|
|
1208
1147
|
//if user repick product after import
|
|
1209
|
-
if (itm
|
|
1148
|
+
if (itm.product.productId) {
|
|
1210
1149
|
itm.product.id = itm.product.productId
|
|
1211
1150
|
delete itm.product.productId
|
|
1212
1151
|
delete itm.product.brand
|
|
@@ -1220,7 +1159,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1220
1159
|
if (itm.expirationDate) {
|
|
1221
1160
|
let dt = new Date(itm.expirationDate)
|
|
1222
1161
|
itm.expirationDate = `${dt.getFullYear()}-${dt.getMonth() + 1}-${dt.getDate()}`
|
|
1223
|
-
// itm.expirationDate = dt
|
|
1224
1162
|
}
|
|
1225
1163
|
|
|
1226
1164
|
if (itm.manufactureDate) {
|
|
@@ -1233,7 +1171,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1233
1171
|
itm.serialNumbers = serialNumbers.replace(' ', '')
|
|
1234
1172
|
|
|
1235
1173
|
if (itm.serialNumbers.split(',').length != itm.qty) {
|
|
1236
|
-
throw new Error(i18next.t('text.
|
|
1174
|
+
throw new Error(i18next.t('text.serial_number_not_tally_with_qty'))
|
|
1237
1175
|
}
|
|
1238
1176
|
}
|
|
1239
1177
|
})
|
|
@@ -1262,7 +1200,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1262
1200
|
if (typeof record.unitCost == 'object') {
|
|
1263
1201
|
record.unitCost = 0
|
|
1264
1202
|
}
|
|
1265
|
-
// record.expirationDate = new Date(record.expirationDate)
|
|
1266
1203
|
})
|
|
1267
1204
|
|
|
1268
1205
|
let columns = this.config.columns
|
|
@@ -1272,11 +1209,6 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1272
1209
|
delete column.hidden
|
|
1273
1210
|
}
|
|
1274
1211
|
|
|
1275
|
-
if(column.name == 'product') {
|
|
1276
|
-
column.name = 'productDetailName'
|
|
1277
|
-
column.type = 'string'
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
1212
|
return { ...column }
|
|
1281
1213
|
})
|
|
1282
1214
|
|
|
@@ -1337,6 +1269,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1337
1269
|
case 'bizplace.name':
|
|
1338
1270
|
column.arrData = bizplaces
|
|
1339
1271
|
break
|
|
1272
|
+
case 'product.name':
|
|
1273
|
+
column.arrData = products
|
|
1274
|
+
break
|
|
1340
1275
|
case 'location.name':
|
|
1341
1276
|
column.arrData = locations
|
|
1342
1277
|
break
|
|
@@ -1355,7 +1290,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1355
1290
|
item.manufactureDate = new Date(item.manufactureDate).getTime()
|
|
1356
1291
|
}
|
|
1357
1292
|
|
|
1358
|
-
|
|
1293
|
+
item.product.name = item.product.productInformation
|
|
1359
1294
|
return {
|
|
1360
1295
|
id: item.id,
|
|
1361
1296
|
...this.columns
|
|
@@ -265,6 +265,13 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
265
265
|
type: 'checkbox',
|
|
266
266
|
props: { searchOper: 'eq' },
|
|
267
267
|
attrs: ['indeterminate']
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
label: i18next.t('field.lmd'),
|
|
271
|
+
name: 'lmdOption',
|
|
272
|
+
type: 'checkbox',
|
|
273
|
+
props: { searchOper: 'eq' },
|
|
274
|
+
attrs: ['indeterminate']
|
|
268
275
|
}
|
|
269
276
|
]
|
|
270
277
|
|
|
@@ -281,7 +288,7 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
281
288
|
icon: 'reorder',
|
|
282
289
|
handlers: {
|
|
283
290
|
click: (columns, data, column, record, rowIndex) => {
|
|
284
|
-
navigate(`
|
|
291
|
+
navigate(`b2c_release_order_detail/${record.name}`)
|
|
285
292
|
}
|
|
286
293
|
}
|
|
287
294
|
},
|
|
@@ -354,6 +361,14 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
354
361
|
sortable: true,
|
|
355
362
|
width: 100
|
|
356
363
|
},
|
|
364
|
+
{
|
|
365
|
+
type: 'boolean',
|
|
366
|
+
name: 'lmdOption',
|
|
367
|
+
header: i18next.t('field.lmd'),
|
|
368
|
+
imex: { header: i18next.t('field.lmd'), key: 'lmdOption', width: 20, type: 'string' },
|
|
369
|
+
sortable: true,
|
|
370
|
+
width: 100
|
|
371
|
+
},
|
|
357
372
|
{
|
|
358
373
|
type: 'string',
|
|
359
374
|
name: 'transporter',
|
|
@@ -559,6 +574,7 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
|
|
|
559
574
|
}
|
|
560
575
|
airwayBill
|
|
561
576
|
trackingNo
|
|
577
|
+
lmdOption
|
|
562
578
|
}
|
|
563
579
|
total
|
|
564
580
|
}
|