@things-factory/operato-wms 4.3.467 → 4.3.468
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/order/release-order/b2c/create-b2c-release-order.js +23 -30
- package/client/pages/order/release-order/create-release-order.js +15 -0
- package/config.development.js +11 -11
- package/package.json +5 -5
- package/translations/en.json +6 -0
- package/translations/ko.json +5 -0
- package/translations/ms.json +10 -5
- package/translations/zh.json +5 -0
|
@@ -6,38 +6,18 @@ import '../../../components/select-inventory-popup'
|
|
|
6
6
|
import '../../../components/select-product-popup'
|
|
7
7
|
|
|
8
8
|
import gql from 'graphql-tag'
|
|
9
|
-
import {
|
|
10
|
-
css,
|
|
11
|
-
html
|
|
12
|
-
} from 'lit-element'
|
|
9
|
+
import { css, html } from 'lit-element'
|
|
13
10
|
|
|
14
11
|
import { getCodeByName } from '@things-factory/code-base'
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
SingleColumnFormStyles
|
|
18
|
-
} from '@things-factory/form-ui'
|
|
19
|
-
import {
|
|
20
|
-
i18next,
|
|
21
|
-
localize
|
|
22
|
-
} from '@things-factory/i18n-base'
|
|
12
|
+
import { MultiColumnFormStyles, SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
13
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
23
14
|
import { openPopup } from '@things-factory/layout-base'
|
|
24
|
-
import {
|
|
25
|
-
client,
|
|
26
|
-
CustomAlert,
|
|
27
|
-
navigate,
|
|
28
|
-
PageView
|
|
29
|
-
} from '@things-factory/shell'
|
|
15
|
+
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
30
16
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
31
17
|
import { isMobileDevice } from '@things-factory/utils'
|
|
32
18
|
|
|
33
19
|
import { fetchSettingRule } from '../../../../fetch-setting-value'
|
|
34
|
-
import {
|
|
35
|
-
GROUP_TYPES,
|
|
36
|
-
ORDER_INVENTORY_STATUS,
|
|
37
|
-
ORDER_TYPES,
|
|
38
|
-
PICKING_STANDARD,
|
|
39
|
-
RO_TYPES
|
|
40
|
-
} from '../../../constants'
|
|
20
|
+
import { GROUP_TYPES, ORDER_INVENTORY_STATUS, ORDER_TYPES, PICKING_STANDARD, RO_TYPES } from '../../../constants'
|
|
41
21
|
|
|
42
22
|
class CreateB2CReleaseOrder extends localize(i18next)(PageView) {
|
|
43
23
|
static get properties() {
|
|
@@ -784,8 +764,13 @@ class CreateB2CReleaseOrder extends localize(i18next)(PageView) {
|
|
|
784
764
|
_clearView() {
|
|
785
765
|
this.releaseOrderForm.reset()
|
|
786
766
|
this.inventoryData = { ...this.inventoryData, records: [] }
|
|
787
|
-
|
|
788
|
-
|
|
767
|
+
|
|
768
|
+
const documents = [this._document, this._awbDocument, this._invoiceDocument]
|
|
769
|
+
|
|
770
|
+
for (const doc of documents) {
|
|
771
|
+
if (doc?._files) {
|
|
772
|
+
doc.reset()
|
|
773
|
+
}
|
|
789
774
|
}
|
|
790
775
|
}
|
|
791
776
|
|
|
@@ -915,6 +900,11 @@ class CreateB2CReleaseOrder extends localize(i18next)(PageView) {
|
|
|
915
900
|
this._getAllPostCode()
|
|
916
901
|
}
|
|
917
902
|
|
|
903
|
+
resetOption() {
|
|
904
|
+
this._isLmd = false
|
|
905
|
+
this._isCod = false
|
|
906
|
+
}
|
|
907
|
+
|
|
918
908
|
async switchPickingType() {
|
|
919
909
|
this.resetPage()
|
|
920
910
|
this.inventoryGristConfig = {
|
|
@@ -1498,11 +1488,14 @@ class CreateB2CReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1498
1488
|
|
|
1499
1489
|
if (!response.errors) {
|
|
1500
1490
|
this.resetPage()
|
|
1491
|
+
this.resetOption()
|
|
1501
1492
|
this._resetShippingInfoForm()
|
|
1493
|
+
this.__inventoryData = []
|
|
1502
1494
|
this._deliveryPostCode = []
|
|
1503
1495
|
this._billingPostCode = []
|
|
1504
1496
|
this._selectedPostCode = ''
|
|
1505
1497
|
this._selectedBillingPostCode = ''
|
|
1498
|
+
this._clearView()
|
|
1506
1499
|
|
|
1507
1500
|
navigate(`b2c_release_order_detail/${response.data.generateReleaseGood.name}`)
|
|
1508
1501
|
this._showToast({ message: i18next.t('text.release_order_created') })
|
|
@@ -1543,13 +1536,13 @@ class CreateB2CReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1543
1536
|
if (!this.releaseOrderForm.checkValidity()) {
|
|
1544
1537
|
throw new Error(i18next.t('text.release_order_form_invalid'))
|
|
1545
1538
|
}
|
|
1546
|
-
|
|
1547
|
-
if (this._isCod) {
|
|
1539
|
+
|
|
1540
|
+
if (this._isCod) {
|
|
1548
1541
|
if (!this._paidAmount.value) {
|
|
1549
1542
|
throw new Error(i18next.t('text.paid_amount_is_empty_please_fill_in_the_data_to_proceed_creating_order'))
|
|
1550
1543
|
}
|
|
1551
1544
|
}
|
|
1552
|
-
|
|
1545
|
+
|
|
1553
1546
|
if (this._isLmd) {
|
|
1554
1547
|
const checkShipmentFields = (
|
|
1555
1548
|
attentionToInput,
|
|
@@ -1387,6 +1387,13 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1387
1387
|
this._getAllPostCode()
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
|
+
resetOption() {
|
|
1391
|
+
this._ownTransport = false
|
|
1392
|
+
this._warehouseTransport = false
|
|
1393
|
+
this._exportOption = false
|
|
1394
|
+
this._recallToggle = false
|
|
1395
|
+
this._packingOption = false
|
|
1396
|
+
}
|
|
1390
1397
|
async switchPickingType() {
|
|
1391
1398
|
this.resetPage()
|
|
1392
1399
|
if (this._pickingStd === PICKING_STANDARD.SELECT_BY_PRODUCT.value) {
|
|
@@ -2382,14 +2389,18 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2382
2389
|
|
|
2383
2390
|
if (!response.errors) {
|
|
2384
2391
|
this.resetPage()
|
|
2392
|
+
this._resetReleaseOrderForm()
|
|
2385
2393
|
this._resetShippingInfoForm()
|
|
2386
2394
|
this._resetExportInfoForm()
|
|
2395
|
+
this.resetOption()
|
|
2396
|
+
this.__inventoryData = []
|
|
2387
2397
|
this._deliveryPostCode = []
|
|
2388
2398
|
this._billingPostCode = []
|
|
2389
2399
|
this._selectedPostCode = ''
|
|
2390
2400
|
this._selectedBillingPostCode = ''
|
|
2391
2401
|
this._recallInput.checked = false
|
|
2392
2402
|
|
|
2403
|
+
this._clearView()
|
|
2393
2404
|
// create order Vas
|
|
2394
2405
|
//await this.createVasOrder(response.data.generateReleaseGood)
|
|
2395
2406
|
// await this.createOrderVas(response.data.generateReleaseGood)
|
|
@@ -3803,6 +3814,10 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
3803
3814
|
this._fillupForm(this.shippingInfoForm, remapData)
|
|
3804
3815
|
}
|
|
3805
3816
|
|
|
3817
|
+
_resetReleaseOrderForm() {
|
|
3818
|
+
this.releaseOrderForm.reset()
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3806
3821
|
_resetShippingInfoForm() {
|
|
3807
3822
|
this.shippingInfoForm.reset()
|
|
3808
3823
|
}
|
package/config.development.js
CHANGED
|
@@ -6,17 +6,17 @@ module.exports = {
|
|
|
6
6
|
subdomainOffset: 2,
|
|
7
7
|
port: 1100,
|
|
8
8
|
inspect: '9430',
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
ormconfig: {
|
|
10
|
+
name: 'default',
|
|
11
|
+
type: 'postgres',
|
|
12
|
+
database: 'dev',
|
|
13
|
+
username: 'postgres',
|
|
14
|
+
password: 'hatio',
|
|
15
|
+
host: '192.168.0.161',
|
|
16
|
+
port: 15432,
|
|
17
|
+
synchronize: false,
|
|
18
|
+
logging: true
|
|
19
|
+
},
|
|
20
20
|
// ormconfig: {
|
|
21
21
|
// name: 'default',
|
|
22
22
|
// type: 'postgres',
|
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.468",
|
|
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.434",
|
|
92
92
|
"@things-factory/product-base": "^4.3.452",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.452",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.468",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.381",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.381",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.381",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.434",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.452",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.452",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.468",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.468"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.381",
|
|
@@ -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": "308509a0473091e998ebef189d11ecfa1c27a581"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -1021,6 +1021,7 @@
|
|
|
1021
1021
|
"label.pending_approval": "pending approval",
|
|
1022
1022
|
"label.pending_process": "pending process",
|
|
1023
1023
|
"label.pending_receive": "pending receive",
|
|
1024
|
+
"label.pending_review": "pending review",
|
|
1024
1025
|
"label.pending": "pending",
|
|
1025
1026
|
"label.phone_no": "phone no",
|
|
1026
1027
|
"label.picked_qty": "picked qty",
|
|
@@ -1220,6 +1221,7 @@
|
|
|
1220
1221
|
"text.activate_unloading_worksheet": "activate unloading worksheet",
|
|
1221
1222
|
"text.activate_vas_worksheet": "activate value added service worksheet",
|
|
1222
1223
|
"text.activate": "activate",
|
|
1224
|
+
"text.add_edit_products_has_been_submitted_for_approval": "add/edit order products has been submitted for approval",
|
|
1223
1225
|
"text.add_extra_product": "add extra product",
|
|
1224
1226
|
"text.adjustment_pending_admin_approval": "adjustment pending admin approval",
|
|
1225
1227
|
"text.adjustment_code_is_required_kindly_fill_in_the_adjustment_code_to_continue": "Adjustment Code is required. Kindly fill in the adjustment code to continue",
|
|
@@ -1396,6 +1398,8 @@
|
|
|
1396
1398
|
"text.full_format": "full format",
|
|
1397
1399
|
"text.gan_confirmed": "GAN confirmed",
|
|
1398
1400
|
"text.gan_has_been_deleted": "GAN has been deleted",
|
|
1401
|
+
"text.gan_has_been": "This GAN has been {arrivalNotice}.",
|
|
1402
|
+
"text.gan_status_is": "This GAN is in {arrivalNotice} status, please scan when the GAN's status is in PUTTING AWAY.",
|
|
1399
1403
|
"text.gan_now_editable": "GAN now editable",
|
|
1400
1404
|
"text.gan_pending_company_approval": "GAN pending company approval",
|
|
1401
1405
|
"text.gan_will_be_sent_for_company_approval": "GAN will be sent for company approval",
|
|
@@ -1797,6 +1801,8 @@
|
|
|
1797
1801
|
"text.warehouse_is_not_assigned": "warehouse is not assigned",
|
|
1798
1802
|
"text.warehouse_not_found": "warehouse not found!",
|
|
1799
1803
|
"text.worksheet_activated": "worksheet activated",
|
|
1804
|
+
"text.worksheet_not_activated_error": "worksheet {worksheetType} is not activated yet",
|
|
1805
|
+
"text.worksheet_status_error": "worksheet is {worksheetStatus}",
|
|
1800
1806
|
"text.worksheet_has_been_generated": "worksheet has been generated",
|
|
1801
1807
|
"text.worksheet(s)_has_been_generated": "worksheet(s) has been generated",
|
|
1802
1808
|
"text.wrong_carton_id": "wrong carton id",
|
package/translations/ko.json
CHANGED
|
@@ -1020,6 +1020,7 @@
|
|
|
1020
1020
|
"label.pending_approval": "승인 대기",
|
|
1021
1021
|
"label.pending_process": "처리 대기",
|
|
1022
1022
|
"label.pending_receive": "[ko] pending receive",
|
|
1023
|
+
"label.pending_review": "[ko] pending review",
|
|
1023
1024
|
"label.pending": "대기",
|
|
1024
1025
|
"label.phone_no": "전화 번호",
|
|
1025
1026
|
"label.picked_qty": "피킹 수량",
|
|
@@ -1377,6 +1378,8 @@
|
|
|
1377
1378
|
"text.full_format": "모든 형식",
|
|
1378
1379
|
"text.gan_confirmed": "확인된 입고요청",
|
|
1379
1380
|
"text.gan_has_been_deleted": "입고요청이 삭제되었습니다",
|
|
1381
|
+
"text.gan_has_been": "[ko]This GAN has been {arrivalNotice}.",
|
|
1382
|
+
"text.gan_status_is": "[ko]This GAN is in {arrivalNotice} status, please scan when the GAN's status is in PUTTING AWAY.",
|
|
1380
1383
|
"text.gan_now_editable": "입고주문이 수정 가능 합니다.",
|
|
1381
1384
|
"text.gan_pending_company_approval": "입고요청이 회사 승인 대기",
|
|
1382
1385
|
"text.gan_will_be_sent_for_company_approval": "회사 승인을 위해 입고요청",
|
|
@@ -1803,6 +1806,8 @@
|
|
|
1803
1806
|
"text.warehouse_is_not_selected": "warehouse is not selected",
|
|
1804
1807
|
"text.warehouse_not_found": "창고를 찾을 수 없습니다",
|
|
1805
1808
|
"text.worksheet_activated": "작업지시서가 활성화 되었습니다",
|
|
1809
|
+
"text.worksheet_not_activated_error": "[ko] worksheet {worksheetType} is not activated yet",
|
|
1810
|
+
"text.worksheet_status_error": "[ko] worksheet is {worksheetStatus}",
|
|
1806
1811
|
"text.worksheet_has_been_generated": "작업지시서가 생성 되었습니다",
|
|
1807
1812
|
"text.worksheet(s)_has_been_generated": "[ko] worksheet(s) has been generated",
|
|
1808
1813
|
"text.wrong_lot_id": "잘못된 lot ID 입니다",
|
package/translations/ms.json
CHANGED
|
@@ -984,20 +984,21 @@
|
|
|
984
984
|
"label.packing_type": "jenis pembungkusan",
|
|
985
985
|
"label.packing_unit": "packing unit",
|
|
986
986
|
"label.pail_cargo": "kargo dalam baldi",
|
|
987
|
-
"label.pallet_barcode": "
|
|
987
|
+
"label.pallet_barcode": "barkod palet",
|
|
988
988
|
"label.pallet_id": "id palet",
|
|
989
989
|
"label.pallet_qty": "kuantiti pallet",
|
|
990
990
|
"label.pallet_ref_no": "no. rujukan palet",
|
|
991
991
|
"label.pallet_type": "jenis palet",
|
|
992
992
|
"label.pallet": "palet",
|
|
993
993
|
"label.partially_unloaded": "punggah sebahagian",
|
|
994
|
-
"label.partner": "rakan
|
|
994
|
+
"label.partner": "rakan kongsi",
|
|
995
995
|
"label.password": "kata laluan",
|
|
996
996
|
"label.pending_adjustment": "menuggu perubahan",
|
|
997
997
|
"label.pending_approval": "menunggu kelulusan",
|
|
998
|
-
"label.pending_process": "
|
|
999
|
-
"label.pending_receive": "
|
|
1000
|
-
"label.
|
|
998
|
+
"label.pending_process": "menunggu proses",
|
|
999
|
+
"label.pending_receive": "menunggu menerima",
|
|
1000
|
+
"label.pending_review": "menunggu semakan",
|
|
1001
|
+
"label.pending": "menunggu",
|
|
1001
1002
|
"label.phone_no": "no. telefon",
|
|
1002
1003
|
"label.picked_qty": "kuantiti diambil",
|
|
1003
1004
|
"label.picking_location": "lokasi pengambilan",
|
|
@@ -1346,6 +1347,8 @@
|
|
|
1346
1347
|
"text.full_format": "full format",
|
|
1347
1348
|
"text.gan_confirmed": "GAN confirmed",
|
|
1348
1349
|
"text.gan_has_been_deleted": "GAN telah dipadamkan",
|
|
1350
|
+
"text.gan_has_been": "[ms] This GAN has been {arrivalNotice}.",
|
|
1351
|
+
"text.gan_status_is": "[ms] This GAN is in {arrivalNotice} status, please scan when the GAN's status is in PUTTING AWAY.",
|
|
1349
1352
|
"text.gan_now_editable": "GAN boleh disunting",
|
|
1350
1353
|
"text.gan_pending_company_approval": "GAN menuggu kelulusan syarikat",
|
|
1351
1354
|
"text.gan_will_be_sent_for_company_approval": "GAN akan dihantar untuk kelulusan syarikat",
|
|
@@ -1721,6 +1724,8 @@
|
|
|
1721
1724
|
"text.warehouse_is_not_assigned": "gudang belum ditetapkan",
|
|
1722
1725
|
"text.warehouse_not_found": "gudang tidak dijumpai!",
|
|
1723
1726
|
"text.worksheet_activated": "lembaran kerja telah diaktifkan",
|
|
1727
|
+
"text.worksheet_not_activated_error": "[ms] worksheet {worksheetType} is not activated yet",
|
|
1728
|
+
"text.worksheet_status_error": "[ms] worksheet is {worksheetStatus}",
|
|
1724
1729
|
"text.worksheet_has_been_generated": "worksheet has been generated",
|
|
1725
1730
|
"text.worksheet(s)_has_been_generated": "[ms] worksheet(s) has been generated",
|
|
1726
1731
|
"text.wrong_lot_id": "wrong lot ID",
|
package/translations/zh.json
CHANGED
|
@@ -965,6 +965,7 @@
|
|
|
965
965
|
"label.pending_approval": "pending approval",
|
|
966
966
|
"label.pending_process": "pending process",
|
|
967
967
|
"label.pending_receive": "[zh] pending receive",
|
|
968
|
+
"label.pending_review": "[zh] pending review",
|
|
968
969
|
"label.pending": "pending",
|
|
969
970
|
"label.phone_no": "电话号码",
|
|
970
971
|
"label.picked_qty": "picked qty",
|
|
@@ -1313,6 +1314,8 @@
|
|
|
1313
1314
|
"text.full_format": "full format",
|
|
1314
1315
|
"text.gan_confirmed": "GAN confirmed",
|
|
1315
1316
|
"text.gan_has_been_deleted": "GAN has been deleted",
|
|
1317
|
+
"text.gan_has_been": "[zh] This GAN has been {arrivalNotice}.",
|
|
1318
|
+
"text.gan_status_is": "[zh] This GAN is in {arrivalNotice} status, please scan when the GAN's status is in PUTTING AWAY.",
|
|
1316
1319
|
"text.gan_now_editable": "GAN now editable",
|
|
1317
1320
|
"text.gan_pending_company_approval": "GAN pending company approval",
|
|
1318
1321
|
"text.gan_will_be_sent_for_company_approval": "GAN will be sent for company approval",
|
|
@@ -1688,6 +1691,8 @@
|
|
|
1688
1691
|
"text.warehouse_is_not_assigned": "warehouse is not assigned",
|
|
1689
1692
|
"text.warehouse_not_found": "warehouse not found!",
|
|
1690
1693
|
"text.worksheet_activated": "worksheet activated",
|
|
1694
|
+
"text.worksheet_not_activated_error": "[zh] worksheet {worksheetType} is not activated yet",
|
|
1695
|
+
"text.worksheet_status_error": "[zh] worksheet is {worksheetStatus}",
|
|
1691
1696
|
"text.worksheet_has_been_generated": "worksheet has been generated",
|
|
1692
1697
|
"text.worksheet(s)_has_been_generated": "[zh] worksheet(s) has been generated",
|
|
1693
1698
|
"text.wrong_lot_id": "wrong lot ID",
|