@things-factory/operato-wms 4.3.302 → 4.3.304
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.
|
@@ -12,14 +12,26 @@ import '../../order/vas-order/popup/vas-target-product-popup'
|
|
|
12
12
|
import '../../order/vas-order/popup/select-vas-popup'
|
|
13
13
|
|
|
14
14
|
import gql from 'graphql-tag'
|
|
15
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
css,
|
|
17
|
+
html
|
|
18
|
+
} from 'lit-element'
|
|
16
19
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
17
20
|
|
|
18
21
|
import { getCodeByName } from '@things-factory/code-base'
|
|
19
22
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
20
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
i18next,
|
|
25
|
+
localize
|
|
26
|
+
} from '@things-factory/i18n-base'
|
|
21
27
|
import { openPopup } from '@things-factory/layout-base'
|
|
22
|
-
import {
|
|
28
|
+
import {
|
|
29
|
+
client,
|
|
30
|
+
CustomAlert,
|
|
31
|
+
navigate,
|
|
32
|
+
PageView,
|
|
33
|
+
store
|
|
34
|
+
} from '@things-factory/shell'
|
|
23
35
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
24
36
|
import { isMobileDevice } from '@things-factory/utils'
|
|
25
37
|
|
|
@@ -463,10 +475,11 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
463
475
|
|
|
464
476
|
<label ?hidden="${this.roType === 'b2b'}">${i18next.t('label.tracking_no')}</label>
|
|
465
477
|
<textarea
|
|
466
|
-
name="
|
|
478
|
+
name="trackingNo"
|
|
467
479
|
?hidden="${this.roType === 'b2b'}"
|
|
468
480
|
rows="5"
|
|
469
|
-
?
|
|
481
|
+
?disabled="${!(this._roInfo?.orderPackages?.length === 1) || this._source !== 'OTHERS'}"
|
|
482
|
+
?readonly="${!this?._editable || this._manifestedAt == true}"
|
|
470
483
|
></textarea>
|
|
471
484
|
|
|
472
485
|
${this._crossDocking
|
|
@@ -503,12 +516,18 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
503
516
|
<legend>${i18next.t('title.shipping_information')} (${this._releaseOrderNo})</legend>
|
|
504
517
|
|
|
505
518
|
<label>${i18next.t('label.company')}</label>
|
|
506
|
-
<input
|
|
519
|
+
<input
|
|
520
|
+
name="attentionCompany"
|
|
521
|
+
.value="${this._releaseOrder.attentionCompany}"
|
|
522
|
+
?readonly="${!this?._editable}"
|
|
523
|
+
/>
|
|
507
524
|
|
|
508
525
|
<label>${i18next.t('label.attention_to')}</label>
|
|
509
|
-
<input name="attentionTo" .value="${this._releaseOrder.attentionTo}" />
|
|
526
|
+
<input name="attentionTo" .value="${this._releaseOrder.attentionTo}" ?readonly="${!this?._editable}" />
|
|
510
527
|
|
|
511
|
-
<button type="button" @click="${this._openContactPointSelector.bind(this)}">
|
|
528
|
+
<button type="button" ?disabled=${!this?._editable} @click="${this._openContactPointSelector.bind(this)}">
|
|
529
|
+
import
|
|
530
|
+
</button>
|
|
512
531
|
|
|
513
532
|
<!-- delivery -->
|
|
514
533
|
|
|
@@ -570,7 +589,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
570
589
|
|
|
571
590
|
<select
|
|
572
591
|
name="billingCountry"
|
|
573
|
-
?disabled
|
|
592
|
+
?disabled="${this._disableBillingAddress}"
|
|
574
593
|
@change=${e => {
|
|
575
594
|
this._validateBillingCountry(e)
|
|
576
595
|
}}
|
|
@@ -597,7 +616,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
597
616
|
/>
|
|
598
617
|
`
|
|
599
618
|
: html`<select
|
|
600
|
-
?disabled
|
|
619
|
+
?disabled="${this._disableBillingAddress}"
|
|
601
620
|
name="billingPostalCode"
|
|
602
621
|
@change=${e => {
|
|
603
622
|
this._getStateAndCityByPostCode(e.target.value, e.target.name)
|
|
@@ -769,6 +788,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
769
788
|
this._showReleasedOrderInfo = false
|
|
770
789
|
this._showShippingInfo = true
|
|
771
790
|
this._attentionTo = ''
|
|
791
|
+
this._source = ''
|
|
792
|
+
this._manifestedAt = false
|
|
772
793
|
this._companyName = ''
|
|
773
794
|
this._deliveryPostCode = []
|
|
774
795
|
this._deliveryState = ''
|
|
@@ -1354,6 +1375,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1354
1375
|
postalCode
|
|
1355
1376
|
country
|
|
1356
1377
|
remark
|
|
1378
|
+
source
|
|
1357
1379
|
bizplace {
|
|
1358
1380
|
id
|
|
1359
1381
|
name
|
|
@@ -1391,6 +1413,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1391
1413
|
id
|
|
1392
1414
|
name
|
|
1393
1415
|
trackingNo
|
|
1416
|
+
manifestedAt
|
|
1394
1417
|
}
|
|
1395
1418
|
orderProducts {
|
|
1396
1419
|
id
|
|
@@ -1535,6 +1558,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1535
1558
|
this._roInfo = releaseOrder
|
|
1536
1559
|
this.roType = releaseOrder.type
|
|
1537
1560
|
this._orderMethod = releaseOrder.orderMethod
|
|
1561
|
+
this._source = releaseOrder.source
|
|
1562
|
+
this._manifestedAt = orderPackages.some(op => op.manifestedAt)
|
|
1538
1563
|
this._isInBatchPicking = releaseOrder.inventoryInfos.some(inventoryInfo => inventoryInfo.refWorksheetId)
|
|
1539
1564
|
const orderInventories = releaseOrder.inventoryInfos.map(inventoryInfo => {
|
|
1540
1565
|
let roundedUomValue = parseFloat(inventoryInfo.releaseUomValue.toFixed(2))
|
|
@@ -1608,7 +1633,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1608
1633
|
this._fillupRGForm({
|
|
1609
1634
|
...releaseOrder,
|
|
1610
1635
|
bizplaceName: releaseOrder.bizplace?.name,
|
|
1611
|
-
|
|
1636
|
+
trackingNo: orderPackages.length > 0 ? orderPackages.map(op => op.trackingNo).join(', ') : ''
|
|
1612
1637
|
})
|
|
1613
1638
|
|
|
1614
1639
|
if (shippingOrder) {
|
|
@@ -1926,7 +1951,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1926
1951
|
this._showReleasedOrderInfo = false
|
|
1927
1952
|
this._showShippingInfo = true
|
|
1928
1953
|
this._showExportInfo = true
|
|
1929
|
-
|
|
1954
|
+
this._source = ''
|
|
1955
|
+
this._manifestedAt = false
|
|
1930
1956
|
this._releaseOrder = {}
|
|
1931
1957
|
this._status = null
|
|
1932
1958
|
this.roType = 'b2b'
|
|
@@ -2684,14 +2710,31 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2684
2710
|
delete releaseOrder.status
|
|
2685
2711
|
delete releaseOrder.ganNo
|
|
2686
2712
|
delete releaseOrder.recall
|
|
2713
|
+
let oldResorder = this._releaseOrder
|
|
2687
2714
|
|
|
2688
2715
|
let formChanged
|
|
2689
2716
|
for (const key in releaseOrder) {
|
|
2690
|
-
if (
|
|
2717
|
+
if (oldResorder.orderPackages.length > 0) {
|
|
2718
|
+
if (key == 'trackingNo' && releaseOrder[key] !== oldResorder.orderPackages[0].trackingNo) {
|
|
2719
|
+
if (
|
|
2720
|
+
!(
|
|
2721
|
+
(releaseOrder[key] == '' || releaseOrder[key] == null) &&
|
|
2722
|
+
(oldResorder.orderPackages[0].trackingNo == '' || oldResorder.orderPackages[0].trackingNo == null)
|
|
2723
|
+
)
|
|
2724
|
+
) {
|
|
2725
|
+
if (this._roInfo?.orderPackages.length === 1) {
|
|
2726
|
+
formChanged = true
|
|
2727
|
+
break
|
|
2728
|
+
} else {
|
|
2729
|
+
throw new Error(i18next.t('text.does_not_support_multi_package'))
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2733
|
+
} else if (releaseOrder.hasOwnProperty(key) && releaseOrder[key] !== oldResorder[key]) {
|
|
2691
2734
|
if (
|
|
2692
2735
|
!(
|
|
2693
2736
|
(releaseOrder[key] == '' || releaseOrder[key] == null) &&
|
|
2694
|
-
(
|
|
2737
|
+
(oldResorder[key] == '' || oldResorder[key] == null)
|
|
2695
2738
|
)
|
|
2696
2739
|
) {
|
|
2697
2740
|
formChanged = true
|
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.304",
|
|
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.281",
|
|
92
92
|
"@things-factory/product-base": "^4.3.301",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.281",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.304",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.281",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.281",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.281",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.281",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.301",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.281",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.304",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.304"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.281",
|
|
@@ -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": "3da3e6712bc2233e782c0fa79403e86b193080bf"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -1275,6 +1275,7 @@
|
|
|
1275
1275
|
"text.do_you_want_to_print": "do you want to print",
|
|
1276
1276
|
"text.do_you_want_to_proceed": "do you want to proceed",
|
|
1277
1277
|
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "Do you wish to proceed? The selected product will be removed.",
|
|
1278
|
+
"text.does_not_support_multi_package": "Does not support multi-package",
|
|
1278
1279
|
"text.document_has_been_generated": "document has been generated",
|
|
1279
1280
|
"text.draft_order_form_invalid": "draft order form invalid",
|
|
1280
1281
|
"text.draft_purchase_order": "draft purchase order",
|
package/translations/ko.json
CHANGED
|
@@ -1269,6 +1269,7 @@
|
|
|
1269
1269
|
"text.do_you_want_to_print": "인쇄 하시겠습니까?",
|
|
1270
1270
|
"text.do_you_want_to_proceed": "[ko] do you want to proceed",
|
|
1271
1271
|
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "[ko] Do you wish to proceed? The selected product will be removed.",
|
|
1272
|
+
"text.does_not_support_multi_package": "[ko] Does not support multi-package",
|
|
1272
1273
|
"text.document_has_been_generated": "[ko] document has been generated",
|
|
1273
1274
|
"text.draft_order_form_invalid": "[ko] draft order form invalid",
|
|
1274
1275
|
"text.driver_and_vehicle_is_not_selected": "운송기사와 차량이 선택되지 않았습니다",
|
package/translations/ms.json
CHANGED
|
@@ -1241,6 +1241,7 @@
|
|
|
1241
1241
|
"text.do_you_want_to_print": "adakah anda mahu catak",
|
|
1242
1242
|
"text.do_you_want_to_proceed": "[ms] do you want to proceed",
|
|
1243
1243
|
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "[ms] Do you wish to proceed? The selected product will be removed.",
|
|
1244
|
+
"text.does_not_support_multi_package": "[ms] Does not support multi-package",
|
|
1244
1245
|
"text.document_has_been_generated": "[ms] document has been generated",
|
|
1245
1246
|
"text.draft_order_form_invalid": "[ms] draft order form invalid",
|
|
1246
1247
|
"text.driver_and_vehicle_is_not_selected": "pemandu dan kenderaan belum dipilih",
|
package/translations/zh.json
CHANGED
|
@@ -1209,6 +1209,7 @@
|
|
|
1209
1209
|
"text.do_you_want_to_print": "do you want to print",
|
|
1210
1210
|
"text.do_you_want_to_proceed": "[zh] do you want to proceed",
|
|
1211
1211
|
"text.do_you_wish_to_proceed_the_selected_products_will_be_removed": "Do you wish to proceed? The selected product will be removed.",
|
|
1212
|
+
"text.does_not_support_multi_package": "[zh] Does not support multi-package",
|
|
1212
1213
|
"text.document_has_been_generated": "[zh] document has been generated",
|
|
1213
1214
|
"text.draft_order_form_invalid": "[zh] draft order form invalid",
|
|
1214
1215
|
"text.driver_and_vehicle_is_not_selected": "driver and vehicle is not selected",
|