@things-factory/operato-wms 4.3.581 → 4.3.583
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.
|
@@ -4,38 +4,20 @@ import '@things-factory/warehouse-ui'
|
|
|
4
4
|
import '@things-factory/import-ui'
|
|
5
5
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
|
-
import {
|
|
8
|
-
css,
|
|
9
|
-
html
|
|
10
|
-
} from 'lit-element'
|
|
7
|
+
import { css, html } from 'lit-element'
|
|
11
8
|
import isEmpty from 'lodash-es/isEmpty'
|
|
12
9
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
13
10
|
|
|
14
11
|
import { getCodeByName } from '@things-factory/code-base'
|
|
15
12
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
16
|
-
import {
|
|
17
|
-
i18next,
|
|
18
|
-
localize
|
|
19
|
-
} from '@things-factory/i18n-base'
|
|
13
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
20
14
|
import { openPopup } from '@things-factory/layout-base'
|
|
21
15
|
import { fetchSettingRule } from '@things-factory/setting-ui'
|
|
22
|
-
import {
|
|
23
|
-
client,
|
|
24
|
-
CustomAlert,
|
|
25
|
-
navigate,
|
|
26
|
-
PageView,
|
|
27
|
-
store
|
|
28
|
-
} from '@things-factory/shell'
|
|
16
|
+
import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
|
|
29
17
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
30
|
-
import {
|
|
31
|
-
flattenObject,
|
|
32
|
-
isMobileDevice
|
|
33
|
-
} from '@things-factory/utils'
|
|
18
|
+
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
34
19
|
|
|
35
|
-
import {
|
|
36
|
-
DRAFT_RELEASE_ORDER_STATUS,
|
|
37
|
-
PRODUCT_GROUP_TYPES
|
|
38
|
-
} from '../../../constants'
|
|
20
|
+
import { DRAFT_RELEASE_ORDER_STATUS, PRODUCT_GROUP_TYPES } from '../../../constants'
|
|
39
21
|
|
|
40
22
|
class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
41
23
|
static get properties() {
|
|
@@ -613,7 +595,10 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
|
|
|
613
595
|
options: {
|
|
614
596
|
queryName: 'allBizplaceProductInventory',
|
|
615
597
|
basicArgs: {
|
|
616
|
-
filters: [
|
|
598
|
+
filters: [
|
|
599
|
+
{ name: 'bizplace_id', operator: 'eq', value: this._bizplaceId },
|
|
600
|
+
{ name: 'deleted_at', operator: 'eq', value: true }
|
|
601
|
+
]
|
|
617
602
|
},
|
|
618
603
|
nameField: 'productSKU',
|
|
619
604
|
descriptionField: 'productName',
|
|
@@ -166,7 +166,7 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
166
166
|
},
|
|
167
167
|
value: (() => {
|
|
168
168
|
let date = new Date()
|
|
169
|
-
date.setMonth(date.getMonth() -
|
|
169
|
+
date.setMonth(date.getMonth() - 3)
|
|
170
170
|
return date.toISOString().split('T')[0]
|
|
171
171
|
})(),
|
|
172
172
|
handlers: { change: this._modifyDateRange.bind(this) }
|
|
@@ -444,10 +444,13 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
444
444
|
let orderIds = []
|
|
445
445
|
let selectedGristData = this.dataGrist.selected
|
|
446
446
|
|
|
447
|
-
if (
|
|
447
|
+
if (
|
|
448
|
+
selectedGristData.filter(itm => itm.status == DRAFT_RELEASE_ORDER_STATUS.DRAFT).length <= 0 &&
|
|
449
|
+
selectedGristData.filter(itm => itm.status == DRAFT_RELEASE_ORDER_STATUS.INSUFFICIENT).length <= 0
|
|
450
|
+
)
|
|
448
451
|
throw new Error(i18next.t('text.please_select_a_valid_draft_order_to_generate_release_order'))
|
|
449
452
|
|
|
450
|
-
let selectedOrders = selectedGristData
|
|
453
|
+
let selectedOrders = selectedGristData
|
|
451
454
|
orderIds = selectedOrders.map(record => ({ id: record.id, releaseType: 'release' }))
|
|
452
455
|
|
|
453
456
|
let result = await CustomAlert({
|
|
@@ -471,6 +474,9 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
471
474
|
mutation generateReleaseGoodsfromDraft($releaseInfo: [DraftReleaseGoodInfos!]!) {
|
|
472
475
|
generateReleaseGoodsfromDraft(releaseInfo: $releaseInfo) {
|
|
473
476
|
draftName
|
|
477
|
+
successCount
|
|
478
|
+
insufficientCount
|
|
479
|
+
deletedCount
|
|
474
480
|
}
|
|
475
481
|
}
|
|
476
482
|
`,
|
|
@@ -480,17 +486,40 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
480
486
|
})
|
|
481
487
|
|
|
482
488
|
if (!response.errors) {
|
|
483
|
-
|
|
484
|
-
|
|
489
|
+
let successCount = response.data.generateReleaseGoodsfromDraft[0].successCount
|
|
490
|
+
let insufficientCount = response.data.generateReleaseGoodsfromDraft[0].insufficientCount
|
|
491
|
+
let deletedCount = response.data.generateReleaseGoodsfromDraft[0].deletedCount
|
|
492
|
+
|
|
493
|
+
if (insufficientCount > 0 && deletedCount == 0) {
|
|
494
|
+
CustomAlert({
|
|
495
|
+
title: i18next.t('title.completed'),
|
|
496
|
+
text: 'Notice: ' + insufficientCount + ' ' + i18next.t('text.draft_order_insufficient'),
|
|
497
|
+
confirmButton: { text: i18next.t('button.confirm') }
|
|
498
|
+
})
|
|
499
|
+
} else if (deletedCount > 0 && insufficientCount == 0) {
|
|
500
|
+
CustomAlert({
|
|
485
501
|
title: i18next.t('title.completed'),
|
|
486
|
-
text: i18next.t('text.
|
|
502
|
+
text: 'Notice: ' + deletedCount + ' ' + i18next.t('text.draft_order_deleted_detail'),
|
|
503
|
+
confirmButton: { text: i18next.t('button.confirm') }
|
|
504
|
+
})
|
|
505
|
+
} else if (deletedCount > 0 && insufficientCount > 0) {
|
|
506
|
+
CustomAlert({
|
|
507
|
+
title: i18next.t('title.completed'),
|
|
508
|
+
text:
|
|
509
|
+
'Notice: ' +
|
|
510
|
+
insufficientCount +
|
|
511
|
+
' ' +
|
|
512
|
+
i18next.t('text.draft_order_insufficient') +
|
|
513
|
+
', ' +
|
|
514
|
+
deletedCount +
|
|
515
|
+
' ' +
|
|
516
|
+
i18next.t('text.draft_order_deleted_detail'),
|
|
487
517
|
confirmButton: { text: i18next.t('button.confirm') }
|
|
488
518
|
})
|
|
489
519
|
} else {
|
|
490
|
-
// this.dataGrist.fetch()
|
|
491
520
|
CustomAlert({
|
|
492
|
-
title: i18next.t('title.
|
|
493
|
-
text: i18next.t('text.
|
|
521
|
+
title: i18next.t('title.completed'),
|
|
522
|
+
text: successCount + ' ' + i18next.t('text.draft_order_success'),
|
|
494
523
|
confirmButton: { text: i18next.t('button.confirm') }
|
|
495
524
|
})
|
|
496
525
|
}
|
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.583",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -63,35 +63,35 @@
|
|
|
63
63
|
"@operato/scene-table": "^0.1.8",
|
|
64
64
|
"@operato/scene-wheel-sorter": "^0.1.8",
|
|
65
65
|
"@things-factory/apptool-ui": "^4.3.535",
|
|
66
|
-
"@things-factory/attachment-ui": "^4.3.
|
|
67
|
-
"@things-factory/auth-ui": "^4.3.
|
|
66
|
+
"@things-factory/attachment-ui": "^4.3.582",
|
|
67
|
+
"@things-factory/auth-ui": "^4.3.582",
|
|
68
68
|
"@things-factory/barcode-ui": "^4.3.535",
|
|
69
|
-
"@things-factory/biz-ui": "^4.3.
|
|
70
|
-
"@things-factory/board-service": "^4.3.
|
|
71
|
-
"@things-factory/board-ui": "^4.3.
|
|
72
|
-
"@things-factory/code-ui": "^4.3.
|
|
69
|
+
"@things-factory/biz-ui": "^4.3.582",
|
|
70
|
+
"@things-factory/board-service": "^4.3.582",
|
|
71
|
+
"@things-factory/board-ui": "^4.3.582",
|
|
72
|
+
"@things-factory/code-ui": "^4.3.582",
|
|
73
73
|
"@things-factory/context-ui": "^4.3.535",
|
|
74
74
|
"@things-factory/export-ui": "^4.3.535",
|
|
75
75
|
"@things-factory/export-ui-csv": "^4.3.535",
|
|
76
76
|
"@things-factory/export-ui-excel": "^4.3.535",
|
|
77
|
-
"@things-factory/fav-base": "^4.3.
|
|
77
|
+
"@things-factory/fav-base": "^4.3.582",
|
|
78
78
|
"@things-factory/form-ui": "^4.3.535",
|
|
79
|
-
"@things-factory/geography": "^4.3.
|
|
79
|
+
"@things-factory/geography": "^4.3.582",
|
|
80
80
|
"@things-factory/grist-ui": "^4.3.535",
|
|
81
81
|
"@things-factory/help": "^4.3.535",
|
|
82
82
|
"@things-factory/i18n-base": "^4.3.535",
|
|
83
|
-
"@things-factory/id-rule-base": "^4.3.
|
|
83
|
+
"@things-factory/id-rule-base": "^4.3.582",
|
|
84
84
|
"@things-factory/import-ui": "^4.3.535",
|
|
85
85
|
"@things-factory/import-ui-excel": "^4.3.535",
|
|
86
|
-
"@things-factory/menu-ui": "^4.3.
|
|
86
|
+
"@things-factory/menu-ui": "^4.3.582",
|
|
87
87
|
"@things-factory/more-ui": "^4.3.535",
|
|
88
|
-
"@things-factory/notification": "^4.3.
|
|
88
|
+
"@things-factory/notification": "^4.3.582",
|
|
89
89
|
"@things-factory/pdf": "^4.3.534",
|
|
90
90
|
"@things-factory/print-proxy-service": "^4.3.535",
|
|
91
91
|
"@things-factory/print-ui": "^4.3.535",
|
|
92
|
-
"@things-factory/product-base": "^4.3.
|
|
93
|
-
"@things-factory/resource-ui": "^4.3.
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
92
|
+
"@things-factory/product-base": "^4.3.582",
|
|
93
|
+
"@things-factory/resource-ui": "^4.3.582",
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.583",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.534",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.534",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.534",
|
|
@@ -103,12 +103,12 @@
|
|
|
103
103
|
"@things-factory/scene-mqtt": "^4.3.534",
|
|
104
104
|
"@things-factory/scene-restful": "^4.3.534",
|
|
105
105
|
"@things-factory/scene-visualizer": "^4.3.534",
|
|
106
|
-
"@things-factory/setting-ui": "^4.3.
|
|
106
|
+
"@things-factory/setting-ui": "^4.3.582",
|
|
107
107
|
"@things-factory/system-ui": "^4.3.535",
|
|
108
|
-
"@things-factory/transport-base": "^4.3.
|
|
109
|
-
"@things-factory/tutorial-ui": "^4.3.
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
108
|
+
"@things-factory/transport-base": "^4.3.582",
|
|
109
|
+
"@things-factory/tutorial-ui": "^4.3.582",
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.582",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.583"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.534",
|
|
@@ -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": "1deef6368e91eb3e4db1b91da707e7d6a9631f1a"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -1426,6 +1426,9 @@
|
|
|
1426
1426
|
"text.document_has_been_generated": "document has been generated",
|
|
1427
1427
|
"text.does_not_support_multi_package": "Does not support multi-package",
|
|
1428
1428
|
"text.draft_order_form_invalid": "draft order form invalid",
|
|
1429
|
+
"text.draft_order_success": "Draft order successfully converted to RO",
|
|
1430
|
+
"text.draft_order_insufficient": "Draft order failed: Insufficient quantity",
|
|
1431
|
+
"text.draft_order_deleted_detail": "Draft order failed: Missing Product Details",
|
|
1429
1432
|
"text.draft_purchase_order": "draft purchase order",
|
|
1430
1433
|
"text.driver_and_vehicle_is_not_selected": "driver and vehicle is not selected",
|
|
1431
1434
|
"text.driver_is_empty": "driver name is empty",
|