@things-factory/operato-wms 4.3.125 → 4.3.127
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/outbound/packing-product.js +1 -1
- package/client/pages/outbound/picking-product.js +22 -5
- package/client/pages/outbound/worksheet-sorting.js +41 -3
- package/config.development.js +16 -16
- package/package.json +5 -5
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -532,7 +532,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
532
532
|
worksheetDetailInfos[0].product?.isRequireSerialNumberScanningOutbound
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
if (this.completed && this.airwayBill) {
|
|
535
|
+
if (this.completed && this.airwayBill && !this.ownTransport) {
|
|
536
536
|
this.printBill()
|
|
537
537
|
}
|
|
538
538
|
|
|
@@ -146,6 +146,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
146
146
|
|
|
147
147
|
if (
|
|
148
148
|
(this.releaseGoodId || this.taskNo) &&
|
|
149
|
+
this._releaseGoodType === 'b2b' &&
|
|
149
150
|
this._selectedOrderInventory?.status !== 'MISSING' &&
|
|
150
151
|
this._selectedOrderInventory?.hasMissingInventoryChanges !== true &&
|
|
151
152
|
this._selectedOrderInventory?.status !== 'DONE'
|
|
@@ -429,10 +430,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
429
430
|
></barcode-scanable-input>
|
|
430
431
|
`
|
|
431
432
|
: ''}
|
|
432
|
-
${!this._isRequireSerialNumberScanningOutbound &&
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
(this._enableInputQty == 2 && this._releaseGoodType == RO_TYPES.B2C.value) ||
|
|
433
|
+
${!this._isRequireSerialNumberScanningOutbound && (this._enableInputQty !== 0 || !this._isCartonLabel)
|
|
434
|
+
? html`${(this._enableInputQty == 1 && this._releaseGoodType) ||
|
|
435
|
+
(this._enableInputQty == 2 && !this._releaseGoodType) ||
|
|
436
436
|
this._enableInputQty == 3 ||
|
|
437
437
|
!this._isCartonLabel
|
|
438
438
|
? html`<label>${i18next.t('label.picked_qty')}</label>
|
|
@@ -1377,7 +1377,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1377
1377
|
|
|
1378
1378
|
//this.releaseGoodNo will be incorrect if worksheet list is used, therefore it's assigned here
|
|
1379
1379
|
//this._selectedOrderInventory still has the value of previous order, therefore it's cleared here
|
|
1380
|
-
if
|
|
1380
|
+
//it should check if this.releaseGoodNo exist or not first, if it exist then only will run this logic, this logic is only suitable for single picking
|
|
1381
|
+
if (this.releaseGoodNo && this.releaseGoodNo !== pickingRefNo) {
|
|
1381
1382
|
this.releaseGoodNo = pickingRefNo
|
|
1382
1383
|
this._selectedOrderInventory = null
|
|
1383
1384
|
}
|
|
@@ -1627,6 +1628,22 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1627
1628
|
|
|
1628
1629
|
if (!this._selectedOrderInventory) {
|
|
1629
1630
|
this._selectedOrderInventory = this.data.records[0]
|
|
1631
|
+
} else {
|
|
1632
|
+
let currentData = this.data.records.find(
|
|
1633
|
+
record =>
|
|
1634
|
+
record.product.sku === this._selectedOrderInventory.product.sku &&
|
|
1635
|
+
record.palletId === this._selectedOrderInventory.palletId
|
|
1636
|
+
)
|
|
1637
|
+
if (currentData.completed) {
|
|
1638
|
+
if (this.cartonInput) this.cartonInput.value = ''
|
|
1639
|
+
if (this.palletInput) this.palletInput.value = ''
|
|
1640
|
+
let nextData = this.data.records.filter(recs => !recs.completed)
|
|
1641
|
+
if (nextData.length > 0) {
|
|
1642
|
+
this._selectedOrderInventory = nextData[0]
|
|
1643
|
+
} else {
|
|
1644
|
+
this._selectedOrderInventory = null
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1630
1647
|
}
|
|
1631
1648
|
|
|
1632
1649
|
if (
|
|
@@ -2,7 +2,7 @@ import '@things-factory/barcode-ui'
|
|
|
2
2
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
3
3
|
import '@things-factory/grist-ui'
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
|
-
import { client, PageView } from '@things-factory/shell'
|
|
5
|
+
import { client, PageView, CustomAlert, navigate } from '@things-factory/shell'
|
|
6
6
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
7
7
|
import { isMobileDevice } from '@things-factory/utils'
|
|
8
8
|
import gql from 'graphql-tag'
|
|
@@ -15,6 +15,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
|
|
|
15
15
|
_taskNo: String,
|
|
16
16
|
_worksheetNo: String,
|
|
17
17
|
_worksheetStatus: String,
|
|
18
|
+
_worksheetDetails: Array,
|
|
18
19
|
config: Object,
|
|
19
20
|
data: Object
|
|
20
21
|
}
|
|
@@ -245,6 +246,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
|
|
|
245
246
|
name
|
|
246
247
|
}
|
|
247
248
|
worksheetDetails {
|
|
249
|
+
name
|
|
248
250
|
status
|
|
249
251
|
targetInventory {
|
|
250
252
|
batchId
|
|
@@ -283,7 +285,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
|
|
|
283
285
|
|
|
284
286
|
if (!response.errors) {
|
|
285
287
|
const worksheet = response.data.worksheet
|
|
286
|
-
|
|
288
|
+
this._worksheetDetails = worksheet.worksheetDetails
|
|
287
289
|
this._worksheetStatus = worksheet.status
|
|
288
290
|
this._taskNo = worksheet.taskNo
|
|
289
291
|
|
|
@@ -293,7 +295,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
|
|
|
293
295
|
})
|
|
294
296
|
|
|
295
297
|
this.data = {
|
|
296
|
-
records:
|
|
298
|
+
records: this._worksheetDetails.map(worksheetDetail => {
|
|
297
299
|
return {
|
|
298
300
|
...worksheetDetail,
|
|
299
301
|
...worksheetDetail.targetInventory,
|
|
@@ -331,6 +333,42 @@ class WorksheetSorting extends localize(i18next)(PageView) {
|
|
|
331
333
|
this.data = { ...this.data }
|
|
332
334
|
}
|
|
333
335
|
|
|
336
|
+
async _activateWorksheet() {
|
|
337
|
+
try {
|
|
338
|
+
const result = await CustomAlert({
|
|
339
|
+
title: i18next.t('title.are_you_sure'),
|
|
340
|
+
text: i18next.t('text.activate_sorting_worksheet'),
|
|
341
|
+
confirmButton: { text: i18next.t('button.confirm') },
|
|
342
|
+
cancelButton: { text: i18next.t('button.cancel') }
|
|
343
|
+
})
|
|
344
|
+
|
|
345
|
+
if (!result.value) return
|
|
346
|
+
|
|
347
|
+
const response = await client.mutate({
|
|
348
|
+
mutation: gql`
|
|
349
|
+
mutation activateSorting($worksheetNo: String!, $sortingWorksheetDetails: [WorksheetDetailPatch]) {
|
|
350
|
+
activateSorting(worksheetNo: $worksheetNo, sortingWorksheetDetails: $sortingWorksheetDetails) {
|
|
351
|
+
name
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
`,
|
|
355
|
+
variables: {
|
|
356
|
+
worksheetNo: this._worksheetNo,
|
|
357
|
+
sortingWorksheetDetails: this._worksheetDetails.map(wsd => {
|
|
358
|
+
return { name: wsd.name }
|
|
359
|
+
})
|
|
360
|
+
}
|
|
361
|
+
})
|
|
362
|
+
if (!response.errors) {
|
|
363
|
+
this._showToast({ message: i18next.t('text.worksheet_activated') })
|
|
364
|
+
this.updateContext()
|
|
365
|
+
navigate(`merged_outbound_worksheets`)
|
|
366
|
+
}
|
|
367
|
+
} catch (e) {
|
|
368
|
+
this._showToast(e)
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
334
372
|
_fillupForm(data) {
|
|
335
373
|
for (let key in data) {
|
|
336
374
|
Array.from(this.form.querySelectorAll('input, select')).forEach(field => {
|
package/config.development.js
CHANGED
|
@@ -6,28 +6,28 @@ module.exports = {
|
|
|
6
6
|
subdomainOffset: 2,
|
|
7
7
|
port: 1100,
|
|
8
8
|
inspect: '9430',
|
|
9
|
-
// ormconfig: {
|
|
10
|
-
// name: 'default',
|
|
11
|
-
// type: 'postgres',
|
|
12
|
-
// database: 'dev3',
|
|
13
|
-
// username: 'postgres',
|
|
14
|
-
// password: 'hatio',
|
|
15
|
-
// host: '192.168.0.153',
|
|
16
|
-
// port: 15432,
|
|
17
|
-
// synchronize: true,
|
|
18
|
-
// logging: true
|
|
19
|
-
// },
|
|
20
9
|
ormconfig: {
|
|
21
10
|
name: 'default',
|
|
22
11
|
type: 'postgres',
|
|
23
|
-
database: '
|
|
12
|
+
database: 'dev3',
|
|
24
13
|
username: 'postgres',
|
|
25
|
-
password: '
|
|
26
|
-
host: '
|
|
27
|
-
port:
|
|
28
|
-
synchronize:
|
|
14
|
+
password: 'hatio',
|
|
15
|
+
host: '192.168.0.153',
|
|
16
|
+
port: 15432,
|
|
17
|
+
synchronize: true,
|
|
29
18
|
logging: true
|
|
30
19
|
},
|
|
20
|
+
// ormconfig: {
|
|
21
|
+
// name: 'default',
|
|
22
|
+
// type: 'postgres',
|
|
23
|
+
// database: 'postgres',
|
|
24
|
+
// username: 'postgres',
|
|
25
|
+
// password: 'abcd1234',
|
|
26
|
+
// host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
27
|
+
// port: 55432,
|
|
28
|
+
// synchronize: false,
|
|
29
|
+
// logging: true
|
|
30
|
+
// },
|
|
31
31
|
sellercraftIntegrationConfig: {
|
|
32
32
|
apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
|
|
33
33
|
},
|
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.127",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@things-factory/print-ui": "^4.3.122",
|
|
93
93
|
"@things-factory/product-base": "^4.3.122",
|
|
94
94
|
"@things-factory/resource-ui": "^4.3.123",
|
|
95
|
-
"@things-factory/sales-ui": "^4.3.
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.127",
|
|
96
96
|
"@things-factory/scene-data-transform": "^4.3.122",
|
|
97
97
|
"@things-factory/scene-excel": "^4.3.122",
|
|
98
98
|
"@things-factory/scene-firebase": "^4.3.122",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@things-factory/system-ui": "^4.3.122",
|
|
109
109
|
"@things-factory/transport-base": "^4.3.122",
|
|
110
110
|
"@things-factory/tutorial-ui": "^4.3.122",
|
|
111
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.127",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.127"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@things-factory/builder": "^4.3.122",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "ed6406fce1541dd5ca6a7508047934e8fa5698b1"
|
|
122
122
|
}
|
package/translations/en.json
CHANGED
|
@@ -1091,6 +1091,7 @@
|
|
|
1091
1091
|
"text.activate_picking_worksheet": "activate picking worksheet",
|
|
1092
1092
|
"text.activate_putaway_worksheet": "activate putaway worksheet",
|
|
1093
1093
|
"text.activate_return_worksheet": "activate return worksheet",
|
|
1094
|
+
"text.activate_sorting_worksheet": "activate sorting worksheet",
|
|
1094
1095
|
"text.activate_unloading_worksheet": "activate unloading worksheet",
|
|
1095
1096
|
"text.activate_vas_worksheet": "activate value added service worksheet",
|
|
1096
1097
|
"text.activate": "activate",
|
package/translations/ko.json
CHANGED
|
@@ -1098,6 +1098,7 @@
|
|
|
1098
1098
|
"text.activate_picking_worksheet": "피킹 작업지시서 활성화",
|
|
1099
1099
|
"text.activate_putaway_worksheet": "적치 작업지시서 활성화",
|
|
1100
1100
|
"text.activate_return_worksheet": "반품 작업지시서 활성화",
|
|
1101
|
+
"text.activate_sorting_worksheet": "[ko]activate sorting worksheet",
|
|
1101
1102
|
"text.activate_unloading_worksheet": "하차 작업지시서 활성화",
|
|
1102
1103
|
"text.activate_vas_worksheet": "부가서비스 작업지시서 활성화",
|
|
1103
1104
|
"text.activate": "활성화",
|
package/translations/ms.json
CHANGED
|
@@ -1073,6 +1073,7 @@
|
|
|
1073
1073
|
"text.activate_picking_worksheet": "activate picking worksheet",
|
|
1074
1074
|
"text.activate_putaway_worksheet": "aktifkan putaway worksheet",
|
|
1075
1075
|
"text.activate_return_worksheet": "mengaktifkan lembaran kerja",
|
|
1076
|
+
"text.activate_sorting_worksheet": "[ms]activate sorting worksheet",
|
|
1076
1077
|
"text.activate_unloading_worksheet": "aktifkan ",
|
|
1077
1078
|
"text.activate_vas_worksheet": "aktifkan value added service lembaran kerja",
|
|
1078
1079
|
"text.activate": "activate",
|
package/translations/zh.json
CHANGED
|
@@ -1039,6 +1039,7 @@
|
|
|
1039
1039
|
"text.activate_picking_worksheet": "activate picking worksheet",
|
|
1040
1040
|
"text.activate_putaway_worksheet": "activate putaway worksheet",
|
|
1041
1041
|
"text.activate_return_worksheet": "activate return worksheet",
|
|
1042
|
+
"text.activate_sorting_worksheet": "[zh]activate sorting worksheet",
|
|
1042
1043
|
"text.activate_unloading_worksheet": "activate unloading worksheet",
|
|
1043
1044
|
"text.activate_vas_worksheet": "activate value added service worksheet",
|
|
1044
1045
|
"text.activate": "activate",
|