@things-factory/operato-wms 4.3.2 → 4.4.0-alpha.0
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/constants/index.js +0 -1
- package/client/pages/constants/setting.js +0 -1
- package/client/pages/inbound/putaway-product.js +1 -3
- package/client/pages/inbound/unload-product.js +11 -21
- package/client/pages/inventory/inventory-adjustment-approval.js +9 -24
- package/client/pages/inventory/inventory-adjustment.js +13 -79
- package/client/pages/master/product/product-list.js +1 -1
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +2 -0
- package/client/pages/order/arrival-notice/receive-arrival-notice.js +2 -0
- package/client/pages/order/goods-received-note/customer-received-note.js +0 -3
- package/client/pages/order/goods-received-note/received-note-detail.js +0 -3
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +30 -21
- package/client/pages/order/release-order/bulk-print-packing-list.js +0 -4
- package/client/pages/order/release-order/receive-release-order-request.js +2 -0
- package/client/pages/order/release-order/release-order-detail.js +26 -44
- package/client/pages/order/return-order/receive-return-order-requests.js +2 -0
- package/client/pages/order/transfer-order/receive-transfer-order-request.js +1 -1
- package/client/pages/order/transport-order/print-delivery-note.js +1 -0
- package/client/pages/order/transport-order/view-delivery-note.js +1 -1
- package/client/pages/order/vas-order/receive-vas-order.js +2 -0
- package/client/pages/outbound/inventory-assign-popup.js +2 -7
- package/client/pages/outbound/inventory-auto-assign-popup.js +1 -2
- package/client/pages/outbound/loading-product.js +11 -49
- package/client/pages/outbound/packing-product.js +6 -42
- package/client/pages/outbound/packing-worksheet-list.js +0 -15
- package/client/pages/outbound/picking-product.js +13 -150
- package/client/pages/outbound/single-outbound-worksheet.js +22 -10
- package/client/pages/outbound/sorting-product.js +15 -78
- package/client/pages/outbound/worksheet-batch-picking.js +2 -9
- package/client/pages/outbound/worksheet-packing.js +2 -7
- package/client/pages/outbound/worksheet-picking.js +2 -9
- package/client/pages/report/inventory-summary-report.js +0 -8
- package/client/pages/report/outbound-order-details-report.js +0 -18
- package/client/pages/vas/abstract-execute-vas.js +7 -12
- package/client/pages/vas/print-product-label.js +6 -15
- package/client/pages/vas/reverse-kitting/execute-reverse-kitting.js +1 -3
- package/client/pages/vas/reverse-kitting/popup-reverse-kitting-template.js +1 -3
- package/client/route.js +0 -12
- package/dist-server/entities/index.js +1 -2
- package/dist-server/entities/index.js.map +1 -1
- package/dist-server/graphql/index.js +5 -1
- package/dist-server/graphql/index.js.map +1 -1
- package/dist-server/graphql/resolvers/board-setting/board-settings.js +1 -2
- package/dist-server/graphql/resolvers/board-setting/board-settings.js.map +1 -1
- package/dist-server/graphql/resolvers/index.js +7 -4
- package/dist-server/graphql/resolvers/index.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +1 -3
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
- package/dist-server/graphql/types/index.js +8 -5
- package/dist-server/graphql/types/index.js.map +1 -1
- package/dist-server/graphql/types/reports/outbound-order-details-report.js +0 -2
- package/dist-server/graphql/types/reports/outbound-order-details-report.js.map +1 -1
- package/dist-server/index.js +5 -2
- package/dist-server/index.js.map +1 -1
- package/dist-server/opa-app-setting-constants.js +1 -2
- package/dist-server/opa-app-setting-constants.js.map +1 -1
- package/dist-server/utils/index.js +5 -1
- package/dist-server/utils/index.js.map +1 -1
- package/helps/release-note.ko.md +9 -11
- package/helps/release-note.md +9 -11
- package/helps/release-note.ms.md +9 -11
- package/helps/release-note.zh.md +9 -11
- package/package.json +50 -50
- package/server/entities/index.ts +2 -2
- package/server/graphql/resolvers/board-setting/board-settings.ts +2 -4
- package/server/graphql/resolvers/index.ts +2 -3
- package/server/graphql/resolvers/reports/outbound-order-details-report.ts +2 -6
- package/server/graphql/types/index.ts +4 -4
- package/server/graphql/types/reports/outbound-order-details-report.ts +0 -2
- package/server/index.ts +1 -2
- package/server/opa-app-setting-constants.ts +0 -1
- package/things-factory.config.js +0 -13
- package/translations/en.json +8 -48
- package/translations/ko.json +1 -35
- package/translations/ms.json +1 -35
- package/translations/zh.json +1 -35
- package/client/constants/index.js +0 -1
- package/client/constants/order.js +0 -14
- package/client/pages/constants/tote.js +0 -14
- package/client/pages/master/tote-list.js +0 -740
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +0 -1163
- package/client/pages/order/draft-release-good/draft-release-good-list.js +0 -546
- package/client/pages/outbound/order-remark-popup.js +0 -112
- package/client/pages/outbound/tote-popup.js +0 -461
- package/dist-server/entities/warehouse-bizplace-onhand-inventory.js +0 -168
- package/dist-server/entities/warehouse-bizplace-onhand-inventory.js.map +0 -1
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/index.js +0 -6
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/index.js.map +0 -1
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.js +0 -58
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.js.map +0 -1
- package/dist-server/graphql/types/warehouse-inventory-adjustment/index.js +0 -9
- package/dist-server/graphql/types/warehouse-inventory-adjustment/index.js.map +0 -1
- package/server/entities/warehouse-bizplace-onhand-inventory.ts +0 -141
- package/server/graphql/resolvers/warehouse-inventory-adjustment/index.ts +0 -5
- package/server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts +0 -68
- package/server/graphql/types/warehouse-inventory-adjustment/index.ts +0 -5
|
@@ -55,7 +55,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
55
55
|
_containerArrivalDate: Date,
|
|
56
56
|
_containerLeavingDate: Date,
|
|
57
57
|
_vasExpanded: Boolean,
|
|
58
|
-
_beforeRemark: String,
|
|
59
58
|
isUserBelongsDomain: Boolean
|
|
60
59
|
}
|
|
61
60
|
}
|
|
@@ -310,10 +309,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
310
309
|
<label ?hidden="${this.roType === 'b2b'}">${i18next.t('label.delivery_address')}</label>
|
|
311
310
|
<textarea name="deliveryAddress1" ?hidden="${this.roType === 'b2b'}" rows="5" readonly></textarea>
|
|
312
311
|
|
|
313
|
-
<label ?hidden="${this.roType === 'b2b'}">${i18next.t('label.order_remark')}</label>
|
|
314
|
-
<textarea name="remark" ?hidden="${this.roType === 'b2b'}" rows="5" ?readonly="${!this
|
|
315
|
-
?._editable}"></textarea>
|
|
316
|
-
|
|
317
312
|
${
|
|
318
313
|
this._crossDocking
|
|
319
314
|
? html`
|
|
@@ -562,10 +557,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
562
557
|
return this.shadowRoot.querySelector('input[name=warehouseTransport]')
|
|
563
558
|
}
|
|
564
559
|
|
|
565
|
-
get _remarkInput() {
|
|
566
|
-
return this.shadowRoot.querySelector('textarea[name=remark]')
|
|
567
|
-
}
|
|
568
|
-
|
|
569
560
|
get _exportInput() {
|
|
570
561
|
return this.shadowRoot.querySelector('input[name=exportOption]')
|
|
571
562
|
}
|
|
@@ -758,6 +749,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
758
749
|
type: 'object',
|
|
759
750
|
name: 'vas',
|
|
760
751
|
header: i18next.t('field.vas'),
|
|
752
|
+
record: { options: { queryName: 'vass' } },
|
|
761
753
|
width: 250
|
|
762
754
|
},
|
|
763
755
|
{
|
|
@@ -798,7 +790,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
798
790
|
attentionTo
|
|
799
791
|
phone1
|
|
800
792
|
deliveryAddress1
|
|
801
|
-
remark
|
|
802
793
|
bizplace {
|
|
803
794
|
id
|
|
804
795
|
name
|
|
@@ -943,7 +934,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
943
934
|
this.partnerBizplaceId = releaseOrder.bizplace.id
|
|
944
935
|
this._exportOption = releaseOrder.exportOption
|
|
945
936
|
|
|
946
|
-
this._beforeRemark = releaseOrder?.remark
|
|
947
937
|
this._courierOption = releaseOrder.courierOption
|
|
948
938
|
this._packingOption = releaseOrder.packingOption
|
|
949
939
|
this._crossDocking = releaseOrder?.crossDocking
|
|
@@ -974,9 +964,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
974
964
|
this._attachments = releaseOrder && releaseOrder.attachment
|
|
975
965
|
}
|
|
976
966
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
if (!nonEditableStatus.includes(releaseOrder.status) && this.isUserBelongsDomain) {
|
|
967
|
+
if (releaseOrder.status !== 'DONE' && this.isUserBelongsDomain) {
|
|
980
968
|
this._editable = true
|
|
981
969
|
} else {
|
|
982
970
|
this._editable = false
|
|
@@ -1056,6 +1044,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1056
1044
|
title: i18next.t('title.reject_release_order')
|
|
1057
1045
|
}
|
|
1058
1046
|
)
|
|
1047
|
+
|
|
1048
|
+
popup.onclosed
|
|
1059
1049
|
}
|
|
1060
1050
|
|
|
1061
1051
|
async _receiveReleaseOrder() {
|
|
@@ -1219,7 +1209,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1219
1209
|
this._packingOption = false
|
|
1220
1210
|
this._ownTransport = true
|
|
1221
1211
|
this._downloadable = true
|
|
1222
|
-
this._beforeRemark = null
|
|
1223
1212
|
this._attachments = []
|
|
1224
1213
|
this.inventoryData = { records: [] }
|
|
1225
1214
|
this.vasData = { records: [] }
|
|
@@ -1227,6 +1216,10 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1227
1216
|
|
|
1228
1217
|
async _deleteReleaseOrder() {
|
|
1229
1218
|
try {
|
|
1219
|
+
let userIsOfficeAdmin = this._userRoles
|
|
1220
|
+
? this._userRoles.find(x => x.name?.toLowerCase() === 'office admin')
|
|
1221
|
+
: false
|
|
1222
|
+
|
|
1230
1223
|
let result = await CustomAlert({
|
|
1231
1224
|
title: i18next.t('title.are_you_sure'),
|
|
1232
1225
|
text: i18next.t('text.you_wont_be_able_to_revert_this'),
|
|
@@ -1267,6 +1260,10 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1267
1260
|
}
|
|
1268
1261
|
|
|
1269
1262
|
async _submitCancellationReleaseOrder() {
|
|
1263
|
+
let userIsOfficeAdmin = this._userRoles
|
|
1264
|
+
? this._userRoles.find(x => x.name?.toLowerCase() === 'office admin')
|
|
1265
|
+
: false
|
|
1266
|
+
|
|
1270
1267
|
try {
|
|
1271
1268
|
const result = await CustomAlert({
|
|
1272
1269
|
title: i18next.t('title.are_you_sure'),
|
|
@@ -1314,6 +1311,10 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1314
1311
|
}
|
|
1315
1312
|
|
|
1316
1313
|
async _confirmReleaseOrder() {
|
|
1314
|
+
let userIsOfficeAdmin = this._userRoles
|
|
1315
|
+
? this._userRoles.find(x => x.name?.toLowerCase() === 'office admin')
|
|
1316
|
+
: false
|
|
1317
|
+
|
|
1317
1318
|
let result = await CustomAlert({
|
|
1318
1319
|
title: i18next.t('title.are_you_sure'),
|
|
1319
1320
|
text: i18next.t('text.confirm_release_good'),
|
|
@@ -1359,7 +1360,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1359
1360
|
try {
|
|
1360
1361
|
const response = await client.query({
|
|
1361
1362
|
query: gql`
|
|
1362
|
-
query
|
|
1363
|
+
query {
|
|
1363
1364
|
checkUserBelongsDomain
|
|
1364
1365
|
}
|
|
1365
1366
|
`
|
|
@@ -1430,31 +1431,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1430
1431
|
this._validateTransport()
|
|
1431
1432
|
this._validateForm()
|
|
1432
1433
|
|
|
1433
|
-
let releaseOrder = this._getFormInfo()
|
|
1434
|
-
delete releaseOrder.warehouseTransport
|
|
1435
|
-
delete releaseOrder.bizplaceId
|
|
1436
|
-
delete releaseOrder.bizplaceName
|
|
1437
|
-
delete releaseOrder.status
|
|
1438
|
-
delete releaseOrder.ganNo
|
|
1439
|
-
|
|
1440
|
-
let afterRemarkValue
|
|
1441
|
-
if (releaseOrder?.remark) {
|
|
1442
|
-
afterRemarkValue = releaseOrder.remark = releaseOrder.remark.trimStart()
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
if (this._beforeRemark !== afterRemarkValue) {
|
|
1446
|
-
if (!afterRemarkValue) {
|
|
1447
|
-
const remarkResult = await CustomAlert({
|
|
1448
|
-
title: i18next.t('title.removing_order_remark'),
|
|
1449
|
-
text: i18next.t('text.do_you_want_to_proceed'),
|
|
1450
|
-
confirmButton: { text: i18next.t('button.proceed') },
|
|
1451
|
-
cancelButton: { text: i18next.t('button.cancel') }
|
|
1452
|
-
})
|
|
1453
|
-
|
|
1454
|
-
if (!remarkResult.value) return
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
1434
|
const result = await CustomAlert({
|
|
1459
1435
|
title: i18next.t('title.are_you_sure'),
|
|
1460
1436
|
text: i18next.t('text.update_release_order_details'),
|
|
@@ -1464,6 +1440,13 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1464
1440
|
|
|
1465
1441
|
if (!result.value) return
|
|
1466
1442
|
|
|
1443
|
+
let releaseOrder = this._getFormInfo()
|
|
1444
|
+
delete releaseOrder.warehouseTransport
|
|
1445
|
+
delete releaseOrder.bizplaceId
|
|
1446
|
+
delete releaseOrder.bizplaceName
|
|
1447
|
+
delete releaseOrder.status
|
|
1448
|
+
delete releaseOrder.ganNo
|
|
1449
|
+
|
|
1467
1450
|
let shippingOrder = this._exportOption ? this._serializeForm(this.shippingOrderForm) : null
|
|
1468
1451
|
|
|
1469
1452
|
const response = await client.mutate({
|
|
@@ -1496,15 +1479,14 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1496
1479
|
}
|
|
1497
1480
|
|
|
1498
1481
|
_getFormInfo() {
|
|
1499
|
-
|
|
1482
|
+
const formData = this._serializeForm(this.releaseOrderForm)
|
|
1500
1483
|
delete formData.importedOrder
|
|
1501
|
-
|
|
1502
1484
|
return formData
|
|
1503
1485
|
}
|
|
1504
1486
|
|
|
1505
1487
|
_serializeForm(form) {
|
|
1506
1488
|
let obj = {}
|
|
1507
|
-
Array.from(form.querySelectorAll('input, select
|
|
1489
|
+
Array.from(form.querySelectorAll('input, select')).forEach(field => {
|
|
1508
1490
|
if (!field.hasAttribute('hidden')) {
|
|
1509
1491
|
obj[field.name] = field.type === 'checkbox' ? field.checked : field.value
|
|
1510
1492
|
}
|
|
@@ -34,8 +34,7 @@ class InventoryAssignPopup extends localize(i18next)(LitElement) {
|
|
|
34
34
|
_data: Object,
|
|
35
35
|
data: Object,
|
|
36
36
|
pickQty: Number,
|
|
37
|
-
pickUomValue: Number
|
|
38
|
-
orderProductId: String
|
|
37
|
+
pickUomValue: Number
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
|
|
@@ -512,11 +511,7 @@ class InventoryAssignPopup extends localize(i18next)(LitElement) {
|
|
|
512
511
|
product: { id: record.product.id },
|
|
513
512
|
releaseQty: record.pickQty,
|
|
514
513
|
releaseUomValue: record.pickUomValue,
|
|
515
|
-
type: ORDER_TYPES.RELEASE_OF_GOODS.value
|
|
516
|
-
uom: record.uom
|
|
517
|
-
},
|
|
518
|
-
targetProduct: {
|
|
519
|
-
id: this.orderProductId
|
|
514
|
+
type: ORDER_TYPES.RELEASE_OF_GOODS.value
|
|
520
515
|
}
|
|
521
516
|
}
|
|
522
517
|
})
|
|
@@ -232,8 +232,7 @@ class InventoryAutoAssignPopup extends localize(i18next)(LitElement) {
|
|
|
232
232
|
uom: item.uom,
|
|
233
233
|
releaseQty: item.releaseQty,
|
|
234
234
|
releaseUomValue: item.releaseUomValue,
|
|
235
|
-
pickingStrategy: item.product.pickingStrategy
|
|
236
|
-
orderProductId: item.orderProduct.id
|
|
235
|
+
pickingStrategy: item.product.pickingStrategy
|
|
237
236
|
}
|
|
238
237
|
})
|
|
239
238
|
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import '@things-factory/barcode-ui'
|
|
2
|
-
import '@things-factory/grist-ui'
|
|
3
|
-
import './return-pallet-check-popup'
|
|
4
|
-
import './transport-vehicles-popup'
|
|
5
|
-
|
|
6
|
-
import gql from 'graphql-tag'
|
|
7
|
-
import { css, html } from 'lit-element'
|
|
8
|
-
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
9
|
-
|
|
10
|
-
import { sleep } from '@operato/utils'
|
|
11
2
|
import { MultiColumnFormStyles, SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
3
|
+
import '@things-factory/grist-ui'
|
|
12
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
13
5
|
import { openPopup } from '@things-factory/layout-base'
|
|
14
6
|
import { client, CustomAlert, PageView, store } from '@things-factory/shell'
|
|
15
7
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
16
8
|
import { isMobileDevice } from '@things-factory/utils'
|
|
17
|
-
|
|
9
|
+
import gql from 'graphql-tag'
|
|
10
|
+
import { css, html } from 'lit-element'
|
|
11
|
+
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
18
12
|
import { WORKSHEET_STATUS } from '../constants'
|
|
13
|
+
import './return-pallet-check-popup'
|
|
14
|
+
import './transport-vehicles-popup'
|
|
19
15
|
|
|
20
16
|
class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
21
17
|
static get properties() {
|
|
@@ -289,8 +285,7 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
289
285
|
}
|
|
290
286
|
}
|
|
291
287
|
|
|
292
|
-
|
|
293
|
-
await sleep(1010)
|
|
288
|
+
_openBufferSelector() {
|
|
294
289
|
openPopup(
|
|
295
290
|
html`
|
|
296
291
|
<transport-vehicles-popup
|
|
@@ -342,12 +337,6 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
342
337
|
columns: [
|
|
343
338
|
{ type: 'gutter', gutterName: 'sequence' },
|
|
344
339
|
{ type: 'gutter', gutterName: 'row-selector', multiple: true },
|
|
345
|
-
{
|
|
346
|
-
type: 'string',
|
|
347
|
-
name: 'toteName',
|
|
348
|
-
header: i18next.t('field.tote'),
|
|
349
|
-
width: 140
|
|
350
|
-
},
|
|
351
340
|
{
|
|
352
341
|
type: 'string',
|
|
353
342
|
name: 'palletId',
|
|
@@ -531,7 +520,6 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
531
520
|
}
|
|
532
521
|
worksheetDetailInfos {
|
|
533
522
|
name
|
|
534
|
-
toteName
|
|
535
523
|
palletId
|
|
536
524
|
batchId
|
|
537
525
|
batchIdRef
|
|
@@ -600,34 +588,9 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
600
588
|
async _loading() {
|
|
601
589
|
try {
|
|
602
590
|
this._validateLoading()
|
|
603
|
-
const
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
if (toteList[0]?.toteName) {
|
|
608
|
-
loadedWorksheetDetails = this.pickedProductGrist.selected
|
|
609
|
-
.map(record => {
|
|
610
|
-
return { name: record.name, loadedQty: record.loadedQty, toteName: record.toteName }
|
|
611
|
-
})
|
|
612
|
-
.filter(itm => !itm.toteName)
|
|
613
|
-
|
|
614
|
-
let toteRecords = this.pickedProductGrist.data.records
|
|
615
|
-
.filter(record => {
|
|
616
|
-
return toteList.some(list => {
|
|
617
|
-
return list.toteName == record.toteName
|
|
618
|
-
})
|
|
619
|
-
})
|
|
620
|
-
.map(itm => {
|
|
621
|
-
return { name: itm.name, loadedQty: itm.loadedQty, toteName: itm.toteName }
|
|
622
|
-
})
|
|
623
|
-
|
|
624
|
-
loadedWorksheetDetails = loadedWorksheetDetails.concat(toteRecords)
|
|
625
|
-
} else {
|
|
626
|
-
loadedWorksheetDetails = this.pickedProductGrist.selected.map(record => {
|
|
627
|
-
return { name: record.name, loadedQty: record.loadedQty, toteName: record.toteName }
|
|
628
|
-
})
|
|
629
|
-
}
|
|
630
|
-
|
|
591
|
+
const loadedWorksheetDetails = this.pickedProductGrist.selected.map(record => {
|
|
592
|
+
return { name: record.name, loadedQty: record.loadedQty }
|
|
593
|
+
})
|
|
631
594
|
let truckNo = null
|
|
632
595
|
if (!this._ownCollection) {
|
|
633
596
|
truckNo = this.warehouseTruckInput.value
|
|
@@ -877,8 +840,7 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
877
840
|
}
|
|
878
841
|
}
|
|
879
842
|
|
|
880
|
-
|
|
881
|
-
await sleep(1010)
|
|
843
|
+
_validateRemainPallets(data) {
|
|
882
844
|
openPopup(
|
|
883
845
|
html`
|
|
884
846
|
<return-pallet-check-popup
|
|
@@ -2,14 +2,12 @@ import '@things-factory/barcode-ui'
|
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
3
|
import '../components/worksheet-information-popup'
|
|
4
4
|
import './serial-number-popup'
|
|
5
|
-
import './order-remark-popup'
|
|
6
5
|
|
|
7
6
|
import gql from 'graphql-tag'
|
|
8
7
|
import { css, html } from 'lit-element'
|
|
9
8
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
10
9
|
|
|
11
10
|
import { GhostPrint } from '@operato/ghost-print'
|
|
12
|
-
import { sleep } from '@operato/utils'
|
|
13
11
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
14
12
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
15
13
|
import { openPopup } from '@things-factory/layout-base'
|
|
@@ -24,12 +22,10 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
24
22
|
static get properties() {
|
|
25
23
|
return {
|
|
26
24
|
airwayBill: String,
|
|
27
|
-
checkedRemarkAt: String,
|
|
28
25
|
config: Object,
|
|
29
26
|
data: Object,
|
|
30
27
|
invoice: String,
|
|
31
28
|
orderInformation: String,
|
|
32
|
-
orderRemark: String,
|
|
33
29
|
platform: String,
|
|
34
30
|
releaseGoodNo: String,
|
|
35
31
|
releaseGoodId: String,
|
|
@@ -78,11 +74,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
78
74
|
}
|
|
79
75
|
|
|
80
76
|
get completed() {
|
|
81
|
-
|
|
82
|
-
return this.data.records.every(record => record.completed) && Boolean(this.checkedRemarkAt)
|
|
83
|
-
} else {
|
|
84
|
-
return this.data.records.every(record => record.completed)
|
|
85
|
-
}
|
|
77
|
+
return this.data.records.every(record => record.completed)
|
|
86
78
|
}
|
|
87
79
|
|
|
88
80
|
get context() {
|
|
@@ -144,11 +136,11 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
144
136
|
})
|
|
145
137
|
}
|
|
146
138
|
|
|
147
|
-
if (this.
|
|
139
|
+
if (this._selectedTaskStatus === 'EXECUTING') {
|
|
148
140
|
actions.push({
|
|
149
|
-
title: i18next.t('button.
|
|
150
|
-
action: this.
|
|
151
|
-
...CommonButtonStyles.
|
|
141
|
+
title: i18next.t('button.pack'),
|
|
142
|
+
action: this.packing.bind(this),
|
|
143
|
+
...CommonButtonStyles.submit
|
|
152
144
|
})
|
|
153
145
|
}
|
|
154
146
|
|
|
@@ -393,12 +385,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
393
385
|
releaseGood {
|
|
394
386
|
id
|
|
395
387
|
name
|
|
396
|
-
remark
|
|
397
|
-
checkedRemarkAt
|
|
398
388
|
}
|
|
399
389
|
bizplaceName
|
|
400
390
|
partnerDomainId
|
|
401
|
-
checkedRemarkBy
|
|
402
391
|
refNo
|
|
403
392
|
refNo2
|
|
404
393
|
refNo3
|
|
@@ -490,8 +479,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
490
479
|
this.platform = worksheetInfo.platform
|
|
491
480
|
this.shippingProvider = worksheetInfo.shippingProvider
|
|
492
481
|
this.orderInformation = worksheetInfo.marketplaceOrder
|
|
493
|
-
this.orderRemark = worksheetInfo.releaseGood?.remark
|
|
494
|
-
this.checkedRemarkAt = worksheetInfo.releaseGood?.checkedRemarkAt
|
|
495
482
|
|
|
496
483
|
this._isBatchPicking = worksheetDetailInfos[0].relatedOrderInv?.refWorksheetId ? true : false
|
|
497
484
|
|
|
@@ -844,28 +831,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
844
831
|
}
|
|
845
832
|
}
|
|
846
833
|
|
|
847
|
-
async _openOrderRemarkPopup() {
|
|
848
|
-
await sleep(1010)
|
|
849
|
-
openPopup(
|
|
850
|
-
html`
|
|
851
|
-
<order-remark-popup
|
|
852
|
-
.orderRemark="${this.orderRemark}"
|
|
853
|
-
.releaseGoodNo="${this.releaseGoodNo}"
|
|
854
|
-
.checkedRemarkAt="${this.checkedRemarkAt}"
|
|
855
|
-
@remark-checked="${async () => {
|
|
856
|
-
await this._fetchInventories(this.releaseGoodNo)
|
|
857
|
-
this._showToast({ message: i18next.t('text.order_remark_has_been_checked') })
|
|
858
|
-
}}"
|
|
859
|
-
></order-remark-popup>
|
|
860
|
-
`,
|
|
861
|
-
{
|
|
862
|
-
backdrop: true,
|
|
863
|
-
size: 'medium',
|
|
864
|
-
title: i18next.t('title.order_remark')
|
|
865
|
-
}
|
|
866
|
-
)
|
|
867
|
-
}
|
|
868
|
-
|
|
869
834
|
_openWorksheetInformation() {
|
|
870
835
|
openPopup(
|
|
871
836
|
html`
|
|
@@ -879,8 +844,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
879
844
|
)
|
|
880
845
|
}
|
|
881
846
|
|
|
882
|
-
|
|
883
|
-
await sleep(1010)
|
|
847
|
+
openSerialNumberPopup() {
|
|
884
848
|
openPopup(
|
|
885
849
|
html`
|
|
886
850
|
<serial-number-popup
|
|
@@ -159,13 +159,6 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
159
159
|
})()
|
|
160
160
|
},
|
|
161
161
|
value: new Date().toISOString().split('T')[0]
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
label: i18next.t('field.order_remark'),
|
|
165
|
-
name: 'orderRemark',
|
|
166
|
-
type: 'checkbox',
|
|
167
|
-
props: { searchOper: 'eq' },
|
|
168
|
-
attrs: ['indeterminate']
|
|
169
162
|
}
|
|
170
163
|
]
|
|
171
164
|
|
|
@@ -194,13 +187,6 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
194
187
|
}
|
|
195
188
|
}
|
|
196
189
|
},
|
|
197
|
-
{
|
|
198
|
-
type: 'boolean',
|
|
199
|
-
name: 'orderRemark',
|
|
200
|
-
header: i18next.t('field.order_remark'),
|
|
201
|
-
sortable: true,
|
|
202
|
-
width: 100
|
|
203
|
-
},
|
|
204
190
|
{
|
|
205
191
|
type: 'object',
|
|
206
192
|
name: 'releaseGood',
|
|
@@ -310,7 +296,6 @@ class PackingWorksheetList extends localize(i18next)(PageView) {
|
|
|
310
296
|
name
|
|
311
297
|
description
|
|
312
298
|
}
|
|
313
|
-
orderRemark
|
|
314
299
|
name
|
|
315
300
|
type
|
|
316
301
|
status
|