@things-factory/operato-wms 4.3.561 → 4.3.563
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/bulk-operation/bulk-operation.js +34 -3
- package/client/pages/bulk-operation/validate-b2c-ro-popup.js +56 -5
- package/client/pages/bulk-operation/validate-ro-popup.js +41 -1
- package/client/pages/order/release-order/b2b/b2b-order-list.js +0 -1
- package/client/pages/order/release-order/b2c/b2c-release-order-detail.js +152 -49
- package/client/pages/order/release-order/b2c/create-b2c-release-order.js +153 -40
- package/client/pages/order/release-order/create-release-order.js +145 -38
- package/client/pages/order/release-order/release-order-detail.js +148 -56
- package/client/pages/order/transport-order/delivery-note-popup.js +187 -46
- package/client/pages/report/inventory-summary-report.js +6 -1
- package/package.json +21 -21
- package/translations/en.json +22 -1
- package/translations/ko.json +22 -3
- package/translations/ms.json +22 -3
- package/translations/zh.json +23 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import '@things-factory/biz-ui'
|
|
2
|
+
import '@things-factory/component-ui'
|
|
2
3
|
import '@things-factory/grist-ui'
|
|
4
|
+
import '@things-factory/import-ui'
|
|
3
5
|
import '../../components/attachment-viewer'
|
|
4
|
-
import '../../components/vas-templates'
|
|
5
|
-
import './release-extra-product-popup'
|
|
6
6
|
import '../../components/popup-note'
|
|
7
|
-
import '../release-order/tracking-information-popup'
|
|
8
|
-
import '@things-factory/component-ui'
|
|
9
|
-
import '@things-factory/import-ui'
|
|
10
7
|
import '../../components/select-product-popup'
|
|
11
|
-
import '../../
|
|
12
|
-
import '../../order/vas-order/popup/select-vas-popup'
|
|
8
|
+
import '../../components/vas-templates'
|
|
13
9
|
import '../../order/vas-order/popup/proceed-edit-vas-popup'
|
|
10
|
+
import '../../order/vas-order/popup/select-vas-popup'
|
|
14
11
|
import '../../order/vas-order/popup/vas-changes-popup'
|
|
12
|
+
import '../../order/vas-order/popup/vas-target-product-popup'
|
|
13
|
+
import '../release-order/tracking-information-popup'
|
|
14
|
+
import './release-extra-product-popup'
|
|
15
15
|
|
|
16
16
|
import gql from 'graphql-tag'
|
|
17
17
|
import { css, html } from 'lit-element'
|
|
@@ -264,6 +264,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
264
264
|
margin-top: 10px !important;
|
|
265
265
|
font-weight: 600 !important;
|
|
266
266
|
}
|
|
267
|
+
|
|
267
268
|
.quick-find-content-container {
|
|
268
269
|
margin: 0 15px;
|
|
269
270
|
}
|
|
@@ -276,6 +277,51 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
276
277
|
margin: 0;
|
|
277
278
|
}
|
|
278
279
|
}
|
|
280
|
+
|
|
281
|
+
.header-with-checkbox {
|
|
282
|
+
display: flex;
|
|
283
|
+
align-self: flex-end;
|
|
284
|
+
align-items: center;
|
|
285
|
+
grid-column: span 36 / auto !important;
|
|
286
|
+
text-align: left !important;
|
|
287
|
+
margin-top: 10px !important;
|
|
288
|
+
font-weight: 600 !important;
|
|
289
|
+
margin-right: 2px; /* Spacing between header and checkbox */
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
.checkbox-container label {
|
|
294
|
+
margin-left: 1px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.checkbox-wrapper{
|
|
298
|
+
margin-top: 10px;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.checkbox-wrapper::before {
|
|
302
|
+
content: "("; /* Left bracket */
|
|
303
|
+
margin-left: 2em;
|
|
304
|
+
font-size: 0.9em; /* Adjust size as needed */
|
|
305
|
+
font-weight: 100 !important;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.checkbox-wrapper::after {
|
|
309
|
+
content: ")"; /* Right bracket */
|
|
310
|
+
margin-left: 1em; /* Space between bracket and checkbox */
|
|
311
|
+
font-size: 0.9em; /* Adjust size as needed */
|
|
312
|
+
font-weight: 100 !important;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.checkbox-wrapper input[type='checkbox'] {
|
|
316
|
+
width: 10px;
|
|
317
|
+
height: 10px;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
#matchDeliveryAddress {
|
|
321
|
+
margin-top: 5px !important;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
|
|
279
325
|
`
|
|
280
326
|
]
|
|
281
327
|
}
|
|
@@ -520,13 +566,50 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
520
566
|
<label>${i18next.t('label.attention_to')}</label>
|
|
521
567
|
<input name="attentionTo" .value="${this._releaseOrder.attentionTo}" ?readonly="${!this?._editable}" />
|
|
522
568
|
|
|
523
|
-
<button type="button" ?disabled=${!this?._editable} @click="${this._openContactPointSelector.bind(this)}">
|
|
569
|
+
<button type="button" class="button" ?disabled=${!this?._editable} @click="${this._openContactPointSelector.bind(this)}">
|
|
524
570
|
import
|
|
525
571
|
</button>
|
|
526
572
|
|
|
573
|
+
<label class="section-header2"></label>
|
|
574
|
+
|
|
575
|
+
<label> </label>
|
|
576
|
+
<label> </label>
|
|
577
|
+
|
|
578
|
+
<label>${i18next.t('label.contact')}</label>
|
|
579
|
+
<input name="phone1" value="${this._releaseOrder.phone1}" />
|
|
580
|
+
|
|
527
581
|
<!-- delivery -->
|
|
582
|
+
<div class="header-with-checkbox">
|
|
583
|
+
<label class="section-header">${i18next.t('label.delivery_address')}</label>
|
|
584
|
+
<div class="checkbox-wrapper">
|
|
585
|
+
<input
|
|
586
|
+
type="checkbox"
|
|
587
|
+
id="matchDeliveryAddress"
|
|
588
|
+
name="matchDeliveryAddressInput"
|
|
589
|
+
?checked="${this._disableBillingAddress}"
|
|
590
|
+
@change=${e => {
|
|
591
|
+
this._disableBillingAddress = e.currentTarget.checked;
|
|
592
|
+
}}
|
|
593
|
+
/>
|
|
594
|
+
<label for="matchDeliveryAddress">${i18next.t('label.use_as_billing_address')}</label>
|
|
595
|
+
</div>
|
|
596
|
+
</div>
|
|
597
|
+
|
|
598
|
+
<label>${i18next.t('label.address_1')}</label>
|
|
599
|
+
<textarea name="deliveryAddress1" .value="${this._releaseOrder.deliveryAddress1}"></textarea>
|
|
600
|
+
|
|
601
|
+
<label>${i18next.t('label.address_2')}</label>
|
|
602
|
+
<textarea name="deliveryAddress2" .value="${this._releaseOrder.deliveryAddress2}"></textarea>
|
|
603
|
+
|
|
604
|
+
<label>${i18next.t('label.address_3')}</label>
|
|
605
|
+
<textarea name="deliveryAddress3" .value="${this._releaseOrder.deliveryAddress3}"></textarea>
|
|
606
|
+
|
|
607
|
+
<label>${i18next.t('label.address_4')}</label>
|
|
608
|
+
<textarea name="deliveryAddress4" .value="${this._releaseOrder.deliveryAddress4}"></textarea>
|
|
609
|
+
|
|
610
|
+
<label>${i18next.t('label.address_5')}</label>
|
|
611
|
+
<textarea name="deliveryAddress5" .value="${this._releaseOrder.deliveryAddress5}"></textarea>
|
|
528
612
|
|
|
529
|
-
<label class="section-header">${i18next.t('label.delivery_address')}</label>
|
|
530
613
|
<label>${i18next.t('label.country')}</label>
|
|
531
614
|
<select
|
|
532
615
|
name="country"
|
|
@@ -572,17 +655,26 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
572
655
|
<label>${i18next.t('label.city')}</label>
|
|
573
656
|
<input name="city" .value="${this._releaseOrder.city}" />
|
|
574
657
|
|
|
575
|
-
|
|
576
|
-
<
|
|
658
|
+
<!-- billing -->
|
|
659
|
+
<label ?hidden=${this._disableBillingAddress} class="section-header">${i18next.t('label.billing_address')}</label>
|
|
577
660
|
|
|
578
|
-
<label>${i18next.t('label.
|
|
579
|
-
<
|
|
661
|
+
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_1')}</label>
|
|
662
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress" .value="${this._releaseOrder.billingAddress}"></textarea>
|
|
663
|
+
|
|
664
|
+
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_2')}</label>
|
|
665
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress2" .value="${this._releaseOrder.billingAddress2}"></textarea>
|
|
580
666
|
|
|
581
|
-
|
|
582
|
-
<
|
|
583
|
-
<label>${i18next.t('label.country')}</label>
|
|
667
|
+
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_3')}</label>
|
|
668
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress3" .value="${this._releaseOrder.billingAddress3}"></textarea>
|
|
584
669
|
|
|
585
|
-
<
|
|
670
|
+
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_4')}</label>
|
|
671
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress4" .value="${this._releaseOrder.billingAddress4}"></textarea>
|
|
672
|
+
|
|
673
|
+
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.address_5')}</label>
|
|
674
|
+
<textarea ?hidden=${this._disableBillingAddress} name="billingAddress5" .value="${this._releaseOrder.billingAddress5}"></textarea>
|
|
675
|
+
|
|
676
|
+
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.country')}</label>
|
|
677
|
+
<select ?hidden=${this._disableBillingAddress}
|
|
586
678
|
name="billingCountry"
|
|
587
679
|
?disabled="${this._disableBillingAddress}"
|
|
588
680
|
@change=${e => {
|
|
@@ -600,18 +692,16 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
600
692
|
)}
|
|
601
693
|
</select>
|
|
602
694
|
|
|
603
|
-
<label>${i18next.t('label.zip_postal_code')}</label>
|
|
604
|
-
|
|
605
|
-
${this._selectedBillingCountry !== 'MY'
|
|
695
|
+
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.zip_postal_code')}</label>
|
|
696
|
+
${this._selectedBillingCountry !== 'MY'
|
|
606
697
|
? html`
|
|
607
|
-
<input
|
|
608
|
-
?disabled=${this._disableBillingAddress}
|
|
698
|
+
<input ?hidden=${this._disableBillingAddress}
|
|
609
699
|
name="billingPostalCode"
|
|
610
700
|
.value=${this._releaseOrder.billingPostalCode || this._releaseOrder.postalCode}
|
|
611
701
|
/>
|
|
612
702
|
`
|
|
613
703
|
: html`<select
|
|
614
|
-
?
|
|
704
|
+
?hidden="${this._disableBillingAddress}"
|
|
615
705
|
name="billingPostalCode"
|
|
616
706
|
@change=${e => {
|
|
617
707
|
this._getStateAndCityByPostCode(e.target.value, e.target.name)
|
|
@@ -632,36 +722,17 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
632
722
|
)}
|
|
633
723
|
</select>`}
|
|
634
724
|
|
|
635
|
-
<label>${i18next.t('label.state')}</label>
|
|
725
|
+
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.state')}</label>
|
|
636
726
|
<input
|
|
637
|
-
?
|
|
727
|
+
?hidden=${this._disableBillingAddress}
|
|
638
728
|
name="billingState"
|
|
639
729
|
.value="${this._releaseOrder.billingState}"
|
|
640
730
|
/>
|
|
641
731
|
|
|
642
|
-
<label>${i18next.t('label.city')}</label>
|
|
643
|
-
<input ?
|
|
732
|
+
<label ?hidden=${this._disableBillingAddress}>${i18next.t('label.city')}</label>
|
|
733
|
+
<input ?hidden=${this._disableBillingAddress} name="billingCity" .value="${this._releaseOrder.billingCity}" />
|
|
644
734
|
|
|
645
|
-
<label>${i18next.t('label.billing_address')}</label>
|
|
646
|
-
<textarea
|
|
647
|
-
?disabled=${this._disableBillingAddress}
|
|
648
|
-
name="billingAddress"
|
|
649
|
-
.value="${this._releaseOrder.billingAddress || ''}"
|
|
650
|
-
></textarea>
|
|
651
735
|
|
|
652
|
-
<input
|
|
653
|
-
type="checkbox"
|
|
654
|
-
id="matchDeliveryAddress"
|
|
655
|
-
name="matchDeliveryAddressInput"
|
|
656
|
-
?checked=${this._releaseOrder.postalCode == this._releaseOrder.billingPostalCode &&
|
|
657
|
-
this._releaseOrder.billingAddress == this._releaseOrder.deliveryAddress1}
|
|
658
|
-
@click=${e => {
|
|
659
|
-
e.currentTarget.checked ? (this._disableBillingAddress = true) : (this._disableBillingAddress = false)
|
|
660
|
-
e.currentTarget.checked ? this.matchDeliveryAddress() : ''
|
|
661
|
-
this.matchDeliveryAddressInput.value = this.matchDeliveryAddressInput.value === 'on' ? 'off' : 'on'
|
|
662
|
-
}}
|
|
663
|
-
/>
|
|
664
|
-
<label for="matchDeliveryAddress">${i18next.t('label.match_delivery_address')}</label>
|
|
665
736
|
</form>
|
|
666
737
|
|
|
667
738
|
<form name="exportInfo" ?hidden="${this._showExportInfo}" class="multi-column-form" autocomplete="off">
|
|
@@ -736,7 +807,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
736
807
|
<input name="exportRemark" required />
|
|
737
808
|
</form>
|
|
738
809
|
|
|
739
|
-
<div class="container" ?hidden=${!this._showVasInfo || !this._showVasSummary}>
|
|
810
|
+
<div class="container" ?hidden=${!this._showVasInfo || !this._showVasSummary || !this._showShippingInfo}>
|
|
740
811
|
<div class="grist">
|
|
741
812
|
<!-- release product list-->
|
|
742
813
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.release_product_list')}</h2>
|
|
@@ -798,6 +869,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
798
869
|
this._billingContact = ''
|
|
799
870
|
this._selectedPostCode = ''
|
|
800
871
|
this._selectedBillingPostCode = ''
|
|
872
|
+
this._disableBillingAddress = true
|
|
801
873
|
this.currentTab = {
|
|
802
874
|
selected: 'order'
|
|
803
875
|
}
|
|
@@ -845,7 +917,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
845
917
|
}
|
|
846
918
|
|
|
847
919
|
if (this.isUserBelongsDomain) {
|
|
848
|
-
if (this._status === ORDER_STATUS.PENDING_RECEIVE.value && !this._crossDocking) {
|
|
920
|
+
if (this._status === ORDER_STATUS.PENDING_RECEIVE.value && !this._crossDocking ) {
|
|
849
921
|
actions.push(
|
|
850
922
|
{
|
|
851
923
|
title: i18next.t('button.reject'),
|
|
@@ -1426,7 +1498,15 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1426
1498
|
attentionCompany
|
|
1427
1499
|
phone1
|
|
1428
1500
|
deliveryAddress1
|
|
1501
|
+
deliveryAddress2
|
|
1502
|
+
deliveryAddress3
|
|
1503
|
+
deliveryAddress4
|
|
1504
|
+
deliveryAddress5
|
|
1429
1505
|
billingAddress
|
|
1506
|
+
billingAddress2
|
|
1507
|
+
billingAddress3
|
|
1508
|
+
billingAddress4
|
|
1509
|
+
billingAddress5
|
|
1430
1510
|
billingCity
|
|
1431
1511
|
billingCountry
|
|
1432
1512
|
billingPostalCode
|
|
@@ -1731,7 +1811,11 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1731
1811
|
|
|
1732
1812
|
if (
|
|
1733
1813
|
releaseOrder?.postalCode === releaseOrder?.billingPostalCode &&
|
|
1734
|
-
releaseOrder?.billingAddress === releaseOrder.deliveryAddress1
|
|
1814
|
+
releaseOrder?.billingAddress === releaseOrder.deliveryAddress1 &&
|
|
1815
|
+
releaseOrder?.billingAddress2 === releaseOrder.deliveryAddress2 &&
|
|
1816
|
+
releaseOrder?.billingAddress3 === releaseOrder.deliveryAddress3 &&
|
|
1817
|
+
releaseOrder?.billingAddress4 === releaseOrder.deliveryAddress4 &&
|
|
1818
|
+
releaseOrder?.billingAddress5 === releaseOrder.deliveryAddress5
|
|
1735
1819
|
) {
|
|
1736
1820
|
this._disableBillingAddress = true
|
|
1737
1821
|
} else {
|
|
@@ -2103,7 +2187,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2103
2187
|
this._downloadable = true
|
|
2104
2188
|
this._beforeRemark = null
|
|
2105
2189
|
this._attachments = []
|
|
2106
|
-
|
|
2107
2190
|
this.inventoryData = { records: [] }
|
|
2108
2191
|
this.orderInventoryData = { records: [] }
|
|
2109
2192
|
this.vasData = { records: [] }
|
|
@@ -2929,6 +3012,10 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
2929
3012
|
// If match delivery address is ticked, all the billing address info will be the same with delivery address info
|
|
2930
3013
|
if (this._disableBillingAddress) {
|
|
2931
3014
|
shippingOrderInfo.billingAddress = contactPointInfo.deliveryAddress1
|
|
3015
|
+
shippingOrderInfo.billingAddress2 = contactPointInfo.deliveryAddress2
|
|
3016
|
+
shippingOrderInfo.billingAddress3 = contactPointInfo.deliveryAddress3
|
|
3017
|
+
shippingOrderInfo.billingAddress4 = contactPointInfo.deliveryAddress4
|
|
3018
|
+
shippingOrderInfo.billingAddress5 = contactPointInfo.deliveryAddress5
|
|
2932
3019
|
shippingOrderInfo.billingPostalCode = contactPointInfo.postalCode
|
|
2933
3020
|
shippingOrderInfo.billingCity = contactPointInfo.city
|
|
2934
3021
|
shippingOrderInfo.billingState = contactPointInfo.state
|
|
@@ -3134,6 +3221,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
3134
3221
|
this._stateBillingInput.value = ''
|
|
3135
3222
|
return
|
|
3136
3223
|
}
|
|
3224
|
+
}else{
|
|
3225
|
+
|
|
3137
3226
|
}
|
|
3138
3227
|
|
|
3139
3228
|
try {
|
|
@@ -3158,11 +3247,12 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
3158
3247
|
case 'postalCode':
|
|
3159
3248
|
this._cityInput.value = stateName
|
|
3160
3249
|
this._stateInput.value = cityName.toUpperCase()
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3250
|
+
// may be deleted as the new field is hidden (previously only disable)
|
|
3251
|
+
// if (this.matchDeliveryAddressInput.value === 'on') {
|
|
3252
|
+
// this._cityBillingInput.value = stateName
|
|
3253
|
+
// this._stateBillingInput.value = cityName.toUpperCase()
|
|
3254
|
+
// this._billingPostCode.value = postcode
|
|
3255
|
+
// }
|
|
3166
3256
|
this._releaseOrder = { ...this._releaseOrder, city: cityName.toUpperCase(), state: stateName }
|
|
3167
3257
|
break
|
|
3168
3258
|
|
|
@@ -3173,7 +3263,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
3173
3263
|
break
|
|
3174
3264
|
}
|
|
3175
3265
|
}
|
|
3176
|
-
} catch (
|
|
3266
|
+
} catch (e) {
|
|
3177
3267
|
this._showToast(e)
|
|
3178
3268
|
}
|
|
3179
3269
|
}
|
|
@@ -3309,6 +3399,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
3309
3399
|
this._showShippingInfo = true
|
|
3310
3400
|
this._showExportInfo = false
|
|
3311
3401
|
}
|
|
3402
|
+
|
|
3403
|
+
this.updateContext()
|
|
3312
3404
|
}
|
|
3313
3405
|
|
|
3314
3406
|
_fillUpDeliveryInfo(data) {
|