@things-factory/operato-wms 4.3.239 → 4.3.242
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/components/vas-templates/vas-pallet-add-popup.js +1 -0
- package/client/pages/components/vas-templates/vas-relabel.js +1 -0
- package/client/pages/components/vas-templates/vas-repack-relabel.js +1 -0
- package/client/pages/components/vas-templates/vas-repack.js +1 -0
- package/client/pages/components/vas-templates/vas-repalletizing.js +1 -0
- package/client/pages/components/vas-templates/vas-template.js +1 -0
- package/client/pages/components/vas-templates/vas-unpack.js +1 -0
- package/client/pages/constants/vas-target-type.js +1 -0
- package/client/pages/constants/worksheet.js +4 -0
- package/client/pages/inbound/adjust-pallet-qty.js +1 -1
- package/client/pages/inbound/inbound-worksheet.js +1 -0
- package/client/pages/inbound/palletizing-pallets-popup.js +1 -1
- package/client/pages/inbound/unload-product.js +1 -0
- package/client/pages/inbound/vas-selector.js +1 -0
- package/client/pages/inbound/worksheet-putaway.js +1 -0
- package/client/pages/inbound/worksheet-unloading.js +1 -0
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +1 -0
- package/client/pages/order/arrival-notice/assign-buffer-location.js +1 -0
- package/client/pages/order/arrival-notice/check-arrived-notice.js +1 -0
- package/client/pages/order/arrival-notice/create-arrival-notice.js +1 -0
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +1 -0
- package/client/pages/order/arrival-notice/receive-arrival-notice.js +1 -0
- package/client/pages/order/arrival-notice/rejected-arrival-notice.js +1 -0
- package/client/pages/order/release-order/create-release-order.js +713 -84
- package/client/pages/order/release-order/receive-release-order-request.js +1 -0
- package/client/pages/order/release-order/rejected-release-order.js +1 -0
- package/client/pages/order/release-order/release-order-detail.js +1020 -388
- package/client/pages/order/return-order/check-return-order.js +1 -0
- package/client/pages/order/return-order/rejected-return-order.js +2 -0
- package/client/pages/order/return-order/return-order-assign-buffer-location.js +1 -0
- package/client/pages/order/return-order/return-order-detail.js +1 -0
- package/client/pages/order/reverse-kitting-order/reverse-kitting-pallet-label-popup.js +1 -0
- package/client/pages/order/transfer-order/rejected-transfer-order.js +1 -0
- package/client/pages/order/vas-order/create-vas-order.js +1 -0
- package/client/pages/order/vas-order/popup/abastract-vas-create-form.js +1 -0
- package/client/pages/order/vas-order/popup/select-vas-popup.js +220 -0
- package/client/pages/order/vas-order/popup/vas-create-batch-product-type-form.js +1 -0
- package/client/pages/order/vas-order/popup/vas-create-batch-type-form.js +1 -0
- package/client/pages/order/vas-order/popup/vas-create-etc-type-form.js +1 -0
- package/client/pages/order/vas-order/popup/vas-create-popup.js +1 -0
- package/client/pages/order/vas-order/popup/vas-create-product-type-form.js +1 -0
- package/client/pages/order/vas-order/popup/vas-target-product-popup.js +644 -0
- package/client/pages/order/vas-order/receive-vas-order.js +1 -0
- package/client/pages/order/vas-order/vas-order-detail.js +1 -0
- package/client/pages/order/vas-order/vas-order-list.js +1 -0
- package/client/pages/order/vas-order/vas-order-requests.js +1 -0
- package/client/pages/outbound/loading-product.js +109 -14
- package/client/pages/outbound/picking-product.js +59 -1
- package/client/pages/outbound/vas-list-popup.js +367 -0
- package/client/pages/outbound/worksheet-loading.js +13 -8
- package/client/pages/outbound/worksheet-picking.js +4 -0
- package/client/pages/report/vas-report.js +534 -0
- package/client/pages/vas/abstract-execute-vas.js +2 -1
- package/client/pages/vas/execute-pure-vas.js +1 -0
- package/client/pages/vas/execute-ref-vas.js +1 -0
- package/client/pages/vas/execute-vas.js +2 -2
- package/client/pages/vas/related-vas-list.js +1 -0
- package/client/pages/vas/vas-execution-page.js +469 -0
- package/client/pages/vas/vas-pallet-label-popup.js +1 -0
- package/client/pages/vas/vas-worksheet-list.js +1 -0
- package/client/pages/vas/worksheet-ref-vas.js +97 -36
- package/client/pages/vas/worksheet-vas.js +1 -0
- package/client/route.js +9 -0
- package/config.development.js +67 -86
- package/dist-server/graphql/resolvers/reports/index.js +2 -1
- package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/vas-report.js +118 -0
- package/dist-server/graphql/resolvers/reports/vas-report.js.map +1 -0
- package/dist-server/graphql/types/reports/index.js +6 -1
- package/dist-server/graphql/types/reports/index.js.map +1 -1
- package/dist-server/graphql/types/reports/vas-report-list.js +14 -0
- package/dist-server/graphql/types/reports/vas-report-list.js.map +1 -0
- package/dist-server/graphql/types/reports/vas-report.js +18 -0
- package/dist-server/graphql/types/reports/vas-report.js.map +1 -0
- package/package.json +5 -5
- package/server/graphql/resolvers/reports/index.ts +3 -1
- package/server/graphql/resolvers/reports/vas-report.ts +135 -0
- package/server/graphql/types/reports/index.ts +7 -1
- package/server/graphql/types/reports/vas-report-list.ts +8 -0
- package/server/graphql/types/reports/vas-report.ts +12 -0
- package/things-factory.config.js +11 -0
- package/translations/en.json +30 -5
- package/translations/ko.json +26 -1
- package/translations/ms.json +26 -1
- package/translations/zh.json +26 -1
|
@@ -12,6 +12,7 @@ import '../../components/popup-note'
|
|
|
12
12
|
import '../../components/vas-templates'
|
|
13
13
|
import { ORDER_STATUS } from '../../constants'
|
|
14
14
|
|
|
15
|
+
//vas --inbound
|
|
15
16
|
class CheckReturnOrder extends connect(store)(localize(i18next)(PageView)) {
|
|
16
17
|
static get properties() {
|
|
17
18
|
return {
|
|
@@ -14,6 +14,7 @@ import '../../components/vas-templates'
|
|
|
14
14
|
import { ORDER_STATUS } from '../../constants'
|
|
15
15
|
import '@things-factory/warehouse-ui'
|
|
16
16
|
|
|
17
|
+
//vas --double check
|
|
17
18
|
class ReturnOrderAssignBufferLocation extends connect(store)(localize(i18next)(PageView)) {
|
|
18
19
|
static get properties() {
|
|
19
20
|
return {
|
|
@@ -11,6 +11,7 @@ import '../../components/attachment-viewer'
|
|
|
11
11
|
import '../../components/vas-templates'
|
|
12
12
|
import { ORDER_STATUS } from '../../constants'
|
|
13
13
|
|
|
14
|
+
//vas --inbound
|
|
14
15
|
class ReturnOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
15
16
|
static get properties() {
|
|
16
17
|
return {
|
|
@@ -11,6 +11,7 @@ import { isMobileDevice } from '@things-factory/utils'
|
|
|
11
11
|
|
|
12
12
|
import { PALLET_LABEL_SETTING_KEY } from '../../constants'
|
|
13
13
|
|
|
14
|
+
//vas --inbound
|
|
14
15
|
class ReverseKittingPalletLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
15
16
|
static get properties() {
|
|
16
17
|
return {
|
|
@@ -15,6 +15,7 @@ import { isMobileDevice } from '@things-factory/utils'
|
|
|
15
15
|
|
|
16
16
|
import { VAS_BATCH_AND_PRODUCT_TYPE, VAS_BATCH_NO_TYPE, VAS_PRODUCT_TYPE } from '../../constants'
|
|
17
17
|
|
|
18
|
+
//vas ---inbound. keep it for inbound.
|
|
18
19
|
class CreateVasOrder extends localize(i18next)(PageView) {
|
|
19
20
|
static get styles() {
|
|
20
21
|
return [
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import '@things-factory/grist-ui'
|
|
2
|
+
|
|
3
|
+
import gql from 'graphql-tag'
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
5
|
+
|
|
6
|
+
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
7
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
|
+
import { client } from '@things-factory/shell'
|
|
9
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
10
|
+
|
|
11
|
+
class SelectVasPopup extends localize(i18next)(LitElement) {
|
|
12
|
+
static get properties() {
|
|
13
|
+
return {
|
|
14
|
+
config: Object,
|
|
15
|
+
data: Object,
|
|
16
|
+
type: String,
|
|
17
|
+
partnerBizplaceIds: Array
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static get styles() {
|
|
22
|
+
return [
|
|
23
|
+
MultiColumnFormStyles,
|
|
24
|
+
css`
|
|
25
|
+
:host {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
background-color: white;
|
|
30
|
+
}
|
|
31
|
+
.container {
|
|
32
|
+
flex: 1;
|
|
33
|
+
display: flex;
|
|
34
|
+
overflow-y: auto;
|
|
35
|
+
min-height: 20vh;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.grist {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
flex: 1;
|
|
42
|
+
overflow-y: auto;
|
|
43
|
+
}
|
|
44
|
+
.grist h2 mwc-icon {
|
|
45
|
+
vertical-align: middle;
|
|
46
|
+
margin: var(--grist-title-icon-margin);
|
|
47
|
+
font-size: var(--grist-title-icon-size);
|
|
48
|
+
color: var(--grist-title-icon-color);
|
|
49
|
+
}
|
|
50
|
+
data-grist {
|
|
51
|
+
overflow-y: hidden;
|
|
52
|
+
flex: 1;
|
|
53
|
+
}
|
|
54
|
+
h2 {
|
|
55
|
+
padding: var(--subtitle-padding);
|
|
56
|
+
font: var(--subtitle-font);
|
|
57
|
+
color: var(--subtitle-text-color);
|
|
58
|
+
border-bottom: var(--subtitle-border-bottom);
|
|
59
|
+
}
|
|
60
|
+
.grist h2 {
|
|
61
|
+
font: var(--grist-title-font);
|
|
62
|
+
}
|
|
63
|
+
.button-container {
|
|
64
|
+
padding: var(--button-container-padding);
|
|
65
|
+
margin: var(--button-container-margin);
|
|
66
|
+
text-align: var(--button-container-align);
|
|
67
|
+
background-color: var(--button-container-background);
|
|
68
|
+
height: var(--button-container-height);
|
|
69
|
+
}
|
|
70
|
+
`
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
constructor() {
|
|
75
|
+
super()
|
|
76
|
+
this.partnerBizplaceIds = []
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
render() {
|
|
80
|
+
return html`
|
|
81
|
+
<search-form id="search-form" .fields=${this._searchFields} @submit=${() => this.dataGrist.fetch()}></search-form>
|
|
82
|
+
|
|
83
|
+
<div class="container">
|
|
84
|
+
<div class="grist">
|
|
85
|
+
<data-grist
|
|
86
|
+
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
87
|
+
.config=${this.config}
|
|
88
|
+
.fetchHandler="${this.fetchVas.bind(this)}"
|
|
89
|
+
></data-grist>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div class="button-container">
|
|
94
|
+
<mwc-button @click=${this._cancel.bind(this)} label="${`${i18next.t('button.cancel')}`}" raised></mwc-button>
|
|
95
|
+
|
|
96
|
+
<mwc-button
|
|
97
|
+
@click=${this._selectVas.bind(this)}
|
|
98
|
+
label="${`${i18next.t('button.confirm')}`}"
|
|
99
|
+
raised
|
|
100
|
+
></mwc-button>
|
|
101
|
+
</div>
|
|
102
|
+
`
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
firstUpdated() {
|
|
106
|
+
this.config = {
|
|
107
|
+
list: {
|
|
108
|
+
fields: ['name', 'description', 'type']
|
|
109
|
+
},
|
|
110
|
+
pagination: { pages: [10, 20, 50, 100] },
|
|
111
|
+
rows: {
|
|
112
|
+
selectable: {
|
|
113
|
+
multiple: true
|
|
114
|
+
},
|
|
115
|
+
appendable: false
|
|
116
|
+
// handlers: { dblclick: this._dblClickHandler.bind(this) }
|
|
117
|
+
},
|
|
118
|
+
columns: [
|
|
119
|
+
{ type: 'gutter', gutterName: 'sequence' },
|
|
120
|
+
{ type: 'gutter', gutterName: 'row-selector', multiple: true },
|
|
121
|
+
{
|
|
122
|
+
type: 'string',
|
|
123
|
+
name: 'name',
|
|
124
|
+
header: i18next.t('field.name'),
|
|
125
|
+
width: 300
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: 'string',
|
|
129
|
+
name: 'description',
|
|
130
|
+
header: i18next.t('field.description'),
|
|
131
|
+
width: 350
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
type: 'string',
|
|
135
|
+
name: 'type',
|
|
136
|
+
header: i18next.t('field.description'),
|
|
137
|
+
width: 350
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
this._searchFields = [
|
|
143
|
+
{
|
|
144
|
+
label: i18next.t('label.name'),
|
|
145
|
+
name: 'name',
|
|
146
|
+
type: 'text',
|
|
147
|
+
props: { searchOper: 'i_like' }
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
get dataGrist() {
|
|
153
|
+
return this.shadowRoot.querySelector('data-grist')
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
get searchForm() {
|
|
157
|
+
return this.shadowRoot.querySelector('search-form')
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
async fetchVas({ page, limit, sorters = [] }) {
|
|
161
|
+
let filters = await this.searchForm.getQueryFilters()
|
|
162
|
+
|
|
163
|
+
if (this.type) filters = [...filters, { name: 'type', operator: 'eq', value: this.type }]
|
|
164
|
+
if (this.partnerBizplaceIds && this.partnerBizplaceIds.length > 0)
|
|
165
|
+
filters = [...filters, { name: 'bizplace_id', operator: 'in', value: this.partnerBizplaceIds }]
|
|
166
|
+
|
|
167
|
+
const response = await client.query({
|
|
168
|
+
query: gql`
|
|
169
|
+
query vass($filters: [Filter!]!, $pagination: Pagination, $sortings: [Sorting!]!) {
|
|
170
|
+
vass(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
171
|
+
items {
|
|
172
|
+
id
|
|
173
|
+
name
|
|
174
|
+
description
|
|
175
|
+
type
|
|
176
|
+
}
|
|
177
|
+
total
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`,
|
|
181
|
+
variables: { filters, pagination: { page, limit }, sortings: sorters }
|
|
182
|
+
})
|
|
183
|
+
|
|
184
|
+
return {
|
|
185
|
+
total: response.data.vass.total || 0,
|
|
186
|
+
records:
|
|
187
|
+
response.data.vass.items.map(res => {
|
|
188
|
+
return {
|
|
189
|
+
...res,
|
|
190
|
+
fullAddress: res.address
|
|
191
|
+
? `${res.address ? res.address : ''} ${res.address2 ? res.address : ''} ${
|
|
192
|
+
res.postCode ? res.postCode + ',' : ''
|
|
193
|
+
} ${res.city ? res.city + ',' : ''} ${res.state ? res.state + ',' : ''} Malaysia`
|
|
194
|
+
: ''
|
|
195
|
+
}
|
|
196
|
+
}) || []
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
_selectVas() {
|
|
201
|
+
const selectedVas = this.dataGrist.selected
|
|
202
|
+
if (selectedVas) {
|
|
203
|
+
this.dispatchEvent(new CustomEvent('selected', { detail: this.dataGrist.selected }))
|
|
204
|
+
history.back()
|
|
205
|
+
} else {
|
|
206
|
+
document.dispatchEvent(new CustomEvent('notify', { detail: { message: i18next.t('text.nothing_selected') } }))
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// _dblClickHandler(columns, data, column, record, rowIndex, target) {
|
|
211
|
+
// this.dispatchEvent(new CustomEvent('selected', { detail: record }))
|
|
212
|
+
// history.back()
|
|
213
|
+
// }
|
|
214
|
+
|
|
215
|
+
_cancel() {
|
|
216
|
+
history.back()
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
window.customElements.define('select-vas-popup', SelectVasPopup)
|
|
@@ -3,6 +3,7 @@ import { html } from 'lit-element'
|
|
|
3
3
|
import { VAS_BATCH_NO_TYPE, VAS_PRODUCT_TYPE } from '../../../constants'
|
|
4
4
|
import { AbstractVasCreateForm } from './abastract-vas-create-form'
|
|
5
5
|
|
|
6
|
+
//vas -- inbound. Inbound still use this.
|
|
6
7
|
export class VasCreateBatchProductTypeForm extends AbstractVasCreateForm {
|
|
7
8
|
render() {
|
|
8
9
|
return html` <form
|
|
@@ -3,6 +3,7 @@ import { html } from 'lit-element'
|
|
|
3
3
|
import { VAS_BATCH_NO_TYPE } from '../../../constants'
|
|
4
4
|
import { AbstractVasCreateForm } from './abastract-vas-create-form'
|
|
5
5
|
|
|
6
|
+
//vas --inboound.Inbound still use this.
|
|
6
7
|
export class VasCreateBatchTypeForm extends AbstractVasCreateForm {
|
|
7
8
|
render() {
|
|
8
9
|
return html`
|
|
@@ -2,6 +2,7 @@ import { LitElement, html } from 'lit-element'
|
|
|
2
2
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
3
3
|
import { i18next } from '@things-factory/i18n-base'
|
|
4
4
|
|
|
5
|
+
//vas --inbound.Inbound still use this.
|
|
5
6
|
export class VasCreateEtcTypeForm extends LitElement {
|
|
6
7
|
static get properties() {
|
|
7
8
|
return {
|
|
@@ -3,6 +3,7 @@ import { html } from 'lit-element'
|
|
|
3
3
|
import { VAS_PRODUCT_TYPE } from '../../../constants'
|
|
4
4
|
import { AbstractVasCreateForm } from './abastract-vas-create-form'
|
|
5
5
|
|
|
6
|
+
//vas --inbound.Inbound still use this.
|
|
6
7
|
export class VasCreateProductTypeForm extends AbstractVasCreateForm {
|
|
7
8
|
render() {
|
|
8
9
|
return html`
|