@things-factory/operato-wms 4.0.21 → 4.0.25
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/bootstrap.js +13 -6
- package/client/pages/adjustment/transfer-inventory.js +32 -6
- package/client/pages/bulk-operation/bulk-operation.js +189 -64
- package/client/pages/bulk-operation/validate-gan-popup.js +391 -0
- package/client/pages/bulk-operation/validate-ro-popup.js +52 -22
- package/client/pages/components/popup-unloading.js +47 -34
- package/client/pages/components/select-product-popup.js +74 -27
- package/client/pages/components/worksheet-information-popup.js +100 -0
- package/client/pages/inbound/putaway-product.js +184 -231
- package/client/pages/inbound/undo-unload-popup.js +295 -0
- package/client/pages/inbound/unload-product.js +229 -567
- package/client/pages/inbound/unloaded-inventories-popup.js +129 -0
- package/client/pages/inbound/worksheet-unloading.js +15 -11
- package/client/pages/inventory/inventory-adjustment.js +9 -10
- package/client/pages/master/product/product-list.js +1 -1
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +409 -21
- package/client/pages/order/arrival-notice/create-arrival-notice.js +89 -13
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +90 -10
- package/client/pages/order/arrival-notice/edit-product-popup.js +2 -2
- package/client/pages/order/release-order/b2b/b2b-order-list.js +78 -2
- package/client/pages/order/release-order/b2b/b2b-order-requests.js +32 -16
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +49 -5
- package/client/pages/order/release-order/batch-generate-single-picking-worksheet-popup.js +314 -0
- package/client/pages/order/release-order/batch-picking-popup.js +19 -2
- package/client/pages/order/release-order/create-release-order.js +194 -89
- package/client/pages/order/release-order/release-order-detail.js +390 -107
- package/client/pages/order/return-order/create-return-order.js +3 -3
- package/client/pages/order/transport-order/create-delivery-order.js +1 -1
- package/client/pages/order/transport-order/delivery-order-list.js +1 -1
- package/client/pages/outbound/packing-product.js +111 -236
- package/client/pages/outbound/picking-product.js +287 -380
- package/client/pages/outbound/sorting-product.js +66 -63
- package/client/pages/outbound/worksheet-loading.js +7 -3
- package/client/pages/outbound/worksheet-packing.js +3 -3
- package/client/pages/outbound/worksheet-picking.js +22 -18
- package/client/pages/vas/print-product-label.js +17 -9
- package/dist-server/graphql/resolvers/reports/product-label-report.js +1 -0
- package/dist-server/graphql/resolvers/reports/product-label-report.js.map +1 -1
- package/package.json +65 -65
- package/server/graphql/resolvers/reports/product-label-report.ts +1 -0
- package/translations/en.json +31 -2
- package/translations/ko.json +32 -3
- package/translations/ms.json +32 -3
- package/translations/zh.json +32 -3
|
@@ -74,7 +74,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
74
74
|
_checkTransport: Boolean,
|
|
75
75
|
_packingOption: Boolean,
|
|
76
76
|
_disableTransport: Boolean,
|
|
77
|
-
_enableTransportationServiceSetting: Boolean
|
|
77
|
+
_enableTransportationServiceSetting: Boolean,
|
|
78
|
+
_vasExpanded: Boolean
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
|
|
@@ -167,6 +168,20 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
167
168
|
grid-auto-rows: minmax(24px, auto);
|
|
168
169
|
}
|
|
169
170
|
|
|
171
|
+
.vas[collapsable] {
|
|
172
|
+
height: 40%;
|
|
173
|
+
}
|
|
174
|
+
.vas[collapsable][collapsed] {
|
|
175
|
+
display: none;
|
|
176
|
+
}
|
|
177
|
+
data-grist#vas-grist {
|
|
178
|
+
padding-top: 0px;
|
|
179
|
+
height: 100%;
|
|
180
|
+
}
|
|
181
|
+
h2.vas-title {
|
|
182
|
+
padding-bottom: 0px;
|
|
183
|
+
}
|
|
184
|
+
|
|
170
185
|
[hidden] {
|
|
171
186
|
display: none;
|
|
172
187
|
}
|
|
@@ -193,6 +208,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
193
208
|
}
|
|
194
209
|
|
|
195
210
|
get context() {
|
|
211
|
+
this._vasExpanded = false
|
|
212
|
+
|
|
196
213
|
return {
|
|
197
214
|
title: i18next.t('title.create_release_order'),
|
|
198
215
|
actions: [
|
|
@@ -285,21 +302,23 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
285
302
|
/>
|
|
286
303
|
<label for="packingOption" ?hidden="${!this._checkTransport}">${i18next.t('label.packing')}</label>
|
|
287
304
|
|
|
288
|
-
${
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
305
|
+
${
|
|
306
|
+
this._crossDocking
|
|
307
|
+
? html`
|
|
308
|
+
<input
|
|
309
|
+
id="crossDocking"
|
|
310
|
+
type="checkbox"
|
|
311
|
+
name="crossDocking"
|
|
312
|
+
?checked="${this._crossDocking}"
|
|
313
|
+
?hidden="${!this._checkTransport}"
|
|
314
|
+
disabled
|
|
315
|
+
/>
|
|
316
|
+
<label for="crossDocking" ?hidden="${!this._checkTransport}"
|
|
317
|
+
>${i18next.t('label.cross_docking')}</label
|
|
318
|
+
>
|
|
319
|
+
`
|
|
320
|
+
: ''
|
|
321
|
+
}
|
|
303
322
|
</div>
|
|
304
323
|
|
|
305
324
|
<label ?hidden="${!this._checkTransport}">${i18next.t('label.company')}</label>
|
|
@@ -333,18 +352,22 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
333
352
|
@change="${this._validateDate}"
|
|
334
353
|
/>
|
|
335
354
|
|
|
336
|
-
${
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
`
|
|
347
|
-
|
|
355
|
+
${
|
|
356
|
+
this._ownTransport
|
|
357
|
+
? html`
|
|
358
|
+
<label>${i18next.t('label.co_no')}</label>
|
|
359
|
+
<input name="collectionOrderNo" .value="${this.collectionOrderNo}" />
|
|
360
|
+
`
|
|
361
|
+
: ''
|
|
362
|
+
}
|
|
363
|
+
${
|
|
364
|
+
this._crossDocking
|
|
365
|
+
? html`
|
|
366
|
+
<label for="ganNo">${i18next.t('label.arrival_notice')}</label>
|
|
367
|
+
<input readonly name="ganNo" value="${this._ganNo}" />
|
|
368
|
+
`
|
|
369
|
+
: ''
|
|
370
|
+
}
|
|
348
371
|
|
|
349
372
|
<div attachment-wrap>
|
|
350
373
|
<label ?hidden="${!this._checkTransport}">${i18next.t('label.upload_documents')}</label>
|
|
@@ -361,46 +384,48 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
361
384
|
</fieldset>
|
|
362
385
|
</form>
|
|
363
386
|
|
|
364
|
-
${
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
<
|
|
368
|
-
<
|
|
369
|
-
<
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
387
|
+
${
|
|
388
|
+
this._exportOption
|
|
389
|
+
? html`
|
|
390
|
+
<div class="so-form-container">
|
|
391
|
+
<form name="shippingOrder" class="multi-column-form" autocomplete="off">
|
|
392
|
+
<fieldset>
|
|
393
|
+
<legend>${i18next.t('title.export_order')}</legend>
|
|
394
|
+
<label>${i18next.t('label.container_no')}</label>
|
|
395
|
+
<input name="containerNo" required .value="${this.containerNo}" />
|
|
396
|
+
|
|
397
|
+
<label>${i18next.t('label.container_arrival_date')}</label>
|
|
398
|
+
<input
|
|
399
|
+
name="containerArrivalDate"
|
|
400
|
+
type="date"
|
|
401
|
+
min="${this._getStdDate()}"
|
|
402
|
+
.value="${this.containerArrivalDate}"
|
|
403
|
+
required
|
|
404
|
+
@change="${e => {
|
|
405
|
+
this._conLeavingDateInput.setAttribute('min', e.currentTarget.value)
|
|
406
|
+
}}"
|
|
407
|
+
/>
|
|
408
|
+
|
|
409
|
+
<label>${i18next.t('label.container_leaving_date')}</label>
|
|
410
|
+
<input
|
|
411
|
+
name="containerLeavingDate"
|
|
412
|
+
type="date"
|
|
413
|
+
min="${this._getStdDate()}"
|
|
414
|
+
.value="${this.containerLeavingDate}"
|
|
415
|
+
required
|
|
416
|
+
@change="${e => {
|
|
417
|
+
this._containerArrivalDateInput.setAttribute('max', e.currentTarget.value)
|
|
418
|
+
}}"
|
|
419
|
+
/>
|
|
420
|
+
|
|
421
|
+
<label>${i18next.t('label.ship_name')}</label>
|
|
422
|
+
<input name="shipName" required .value="${this.shipName}" />
|
|
423
|
+
</fieldset>
|
|
424
|
+
</form>
|
|
425
|
+
</div>
|
|
426
|
+
`
|
|
427
|
+
: ''
|
|
428
|
+
}
|
|
404
429
|
|
|
405
430
|
<form class="picking-std-container multi-column-form">
|
|
406
431
|
<fieldset>
|
|
@@ -418,21 +443,23 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
418
443
|
/>
|
|
419
444
|
<label for="pick-by-prod">${i18next.t(PICKING_STANDARD.SELECT_BY_PRODUCT.name)}</label>
|
|
420
445
|
|
|
421
|
-
${
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
446
|
+
${
|
|
447
|
+
this._crossDocking
|
|
448
|
+
? ''
|
|
449
|
+
: html`
|
|
450
|
+
<input
|
|
451
|
+
id="pick-by-pallet"
|
|
452
|
+
name="picking-std"
|
|
453
|
+
type="radio"
|
|
454
|
+
value="${PICKING_STANDARD.SELECT_BY_PALLET.value}"
|
|
455
|
+
@change="${e => {
|
|
456
|
+
this._pickingStd = e.currentTarget.value
|
|
457
|
+
}}"
|
|
458
|
+
.checked="${this._pickingStd === PICKING_STANDARD.SELECT_BY_PALLET.value && !this._crossDocking}"
|
|
459
|
+
/>
|
|
460
|
+
<label for="pick-by-pallet">${i18next.t(PICKING_STANDARD.SELECT_BY_PALLET.name)}</label>
|
|
461
|
+
`
|
|
462
|
+
}
|
|
436
463
|
</fieldset>
|
|
437
464
|
</form>
|
|
438
465
|
|
|
@@ -440,8 +467,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
440
467
|
<div class="grist">
|
|
441
468
|
<h2>
|
|
442
469
|
<mwc-icon>list_alt</mwc-icon>${i18next.t('title.release_product_list')}${` [${i18next.t(
|
|
443
|
-
|
|
444
|
-
|
|
470
|
+
PICKING_STANDARD[this._pickingStd].name
|
|
471
|
+
)}]`}
|
|
445
472
|
</h2>
|
|
446
473
|
|
|
447
474
|
<data-grist
|
|
@@ -466,14 +493,25 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
466
493
|
@field-change="${this._onBundleFieldChanged.bind(this)}"
|
|
467
494
|
></data-grist>
|
|
468
495
|
|
|
469
|
-
<h2
|
|
470
|
-
|
|
496
|
+
<h2
|
|
497
|
+
@click="${e => {
|
|
498
|
+
this._vasExpanded = !this._vasExpanded
|
|
499
|
+
}}"
|
|
500
|
+
class="vas-title"
|
|
501
|
+
>
|
|
502
|
+
<mwc-icon>list_alt</mwc-icon>${i18next.t('title.vas')}<mwc-icon
|
|
503
|
+
>${this._vasExpanded ? 'expand_less' : 'expand_more'}</mwc-icon
|
|
504
|
+
>
|
|
505
|
+
</h2>
|
|
506
|
+
<div class="vas" collapsable ?collapsed=${!this._vasExpanded}>
|
|
471
507
|
<data-grist
|
|
472
508
|
id="vas-grist"
|
|
473
509
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
474
510
|
.config=${this.vasGristConfig}
|
|
475
511
|
.data="${this.vasData}"
|
|
476
512
|
></data-grist>
|
|
513
|
+
</div>
|
|
514
|
+
</div>
|
|
477
515
|
</div>
|
|
478
516
|
</div>
|
|
479
517
|
`
|
|
@@ -540,6 +578,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
540
578
|
this.initProperties()
|
|
541
579
|
this._pickingStd = PICKING_STANDARD.SELECT_BY_PRODUCT.value
|
|
542
580
|
this._bundleSettingData = []
|
|
581
|
+
this._vasExpanded = false
|
|
543
582
|
}
|
|
544
583
|
|
|
545
584
|
async updated(changeProps) {
|
|
@@ -1118,6 +1157,72 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1118
1157
|
}
|
|
1119
1158
|
}
|
|
1120
1159
|
|
|
1160
|
+
// _openBulkProductSelection() {
|
|
1161
|
+
// if (this._pickingStd === PICKING_STANDARD.SELECT_BY_PRODUCT.value) {
|
|
1162
|
+
// let filters = [
|
|
1163
|
+
// {
|
|
1164
|
+
// name: 'bizplace_id',
|
|
1165
|
+
// operator: 'eq',
|
|
1166
|
+
// value: this._bizplaceId
|
|
1167
|
+
// }
|
|
1168
|
+
// ]
|
|
1169
|
+
|
|
1170
|
+
// const response = await client.query({
|
|
1171
|
+
// query: gql`
|
|
1172
|
+
// query inventoryProductGroup($filters: [Filter]) {
|
|
1173
|
+
// inventoryProductGroup(filters: $filters) {
|
|
1174
|
+
// items {
|
|
1175
|
+
// productId
|
|
1176
|
+
// productSKU
|
|
1177
|
+
// productName
|
|
1178
|
+
// batchId
|
|
1179
|
+
// packingType
|
|
1180
|
+
// remainQty
|
|
1181
|
+
// remainWeight
|
|
1182
|
+
// remainUomValue
|
|
1183
|
+
// }
|
|
1184
|
+
// total
|
|
1185
|
+
// }
|
|
1186
|
+
// }
|
|
1187
|
+
// `,
|
|
1188
|
+
// variables: { filters }
|
|
1189
|
+
// })
|
|
1190
|
+
|
|
1191
|
+
// if (!response.errors) {
|
|
1192
|
+
// }
|
|
1193
|
+
// } else {
|
|
1194
|
+
// let filters = [
|
|
1195
|
+
// {
|
|
1196
|
+
// name: 'bizplace_id',
|
|
1197
|
+
// operator: 'eq',
|
|
1198
|
+
// value: this._bizplaceId
|
|
1199
|
+
// },
|
|
1200
|
+
// { name: 'status', operator: 'eq', value: INVENTORY_STATUS.STORED.value }
|
|
1201
|
+
// ]
|
|
1202
|
+
|
|
1203
|
+
// const response = await client.query({
|
|
1204
|
+
// query: gql`
|
|
1205
|
+
// query inventoryProductGroup($filters: [Filter]) {
|
|
1206
|
+
// inventoryProductGroup(filters: $filters) {
|
|
1207
|
+
// items {
|
|
1208
|
+
// productId
|
|
1209
|
+
// productSKU
|
|
1210
|
+
// productName
|
|
1211
|
+
// batchId
|
|
1212
|
+
// packingType
|
|
1213
|
+
// remainQty
|
|
1214
|
+
// remainWeight
|
|
1215
|
+
// remainUomValue
|
|
1216
|
+
// }
|
|
1217
|
+
// total
|
|
1218
|
+
// }
|
|
1219
|
+
// }
|
|
1220
|
+
// `,
|
|
1221
|
+
// variables: { filters }
|
|
1222
|
+
// })
|
|
1223
|
+
// }
|
|
1224
|
+
// }
|
|
1225
|
+
|
|
1121
1226
|
_getStdDate() {
|
|
1122
1227
|
let date = new Date()
|
|
1123
1228
|
date.setDate(date.getDate())
|
|
@@ -1396,7 +1501,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1396
1501
|
|
|
1397
1502
|
async fetchInventoriesByBundle(productBundleId, bundleReleaseQty) {
|
|
1398
1503
|
const page = 1
|
|
1399
|
-
const limit =
|
|
1504
|
+
const limit = 99999
|
|
1400
1505
|
const pagination = { page, limit }
|
|
1401
1506
|
const filters = [
|
|
1402
1507
|
{
|
|
@@ -1419,7 +1524,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1419
1524
|
|
|
1420
1525
|
const response = await client.query({
|
|
1421
1526
|
query: gql`
|
|
1422
|
-
query inventoriesByBundle($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
|
|
1527
|
+
query inventoriesByBundle($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
1423
1528
|
inventoriesByBundle(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
1424
1529
|
bundleGroup {
|
|
1425
1530
|
batchId
|