@things-factory/operato-wms 4.0.21 → 4.0.25
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/bootstrap.js +13 -6
- package/client/pages/adjustment/transfer-inventory.js +32 -6
- package/client/pages/bulk-operation/bulk-operation.js +189 -64
- package/client/pages/bulk-operation/validate-gan-popup.js +391 -0
- package/client/pages/bulk-operation/validate-ro-popup.js +52 -22
- package/client/pages/components/popup-unloading.js +47 -34
- package/client/pages/components/select-product-popup.js +74 -27
- package/client/pages/components/worksheet-information-popup.js +100 -0
- package/client/pages/inbound/putaway-product.js +184 -231
- package/client/pages/inbound/undo-unload-popup.js +295 -0
- package/client/pages/inbound/unload-product.js +229 -567
- package/client/pages/inbound/unloaded-inventories-popup.js +129 -0
- package/client/pages/inbound/worksheet-unloading.js +15 -11
- package/client/pages/inventory/inventory-adjustment.js +9 -10
- package/client/pages/master/product/product-list.js +1 -1
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +409 -21
- package/client/pages/order/arrival-notice/create-arrival-notice.js +89 -13
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +90 -10
- package/client/pages/order/arrival-notice/edit-product-popup.js +2 -2
- package/client/pages/order/release-order/b2b/b2b-order-list.js +78 -2
- package/client/pages/order/release-order/b2b/b2b-order-requests.js +32 -16
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +49 -5
- package/client/pages/order/release-order/batch-generate-single-picking-worksheet-popup.js +314 -0
- package/client/pages/order/release-order/batch-picking-popup.js +19 -2
- package/client/pages/order/release-order/create-release-order.js +194 -89
- package/client/pages/order/release-order/release-order-detail.js +390 -107
- package/client/pages/order/return-order/create-return-order.js +3 -3
- package/client/pages/order/transport-order/create-delivery-order.js +1 -1
- package/client/pages/order/transport-order/delivery-order-list.js +1 -1
- package/client/pages/outbound/packing-product.js +111 -236
- package/client/pages/outbound/picking-product.js +287 -380
- package/client/pages/outbound/sorting-product.js +66 -63
- package/client/pages/outbound/worksheet-loading.js +7 -3
- package/client/pages/outbound/worksheet-packing.js +3 -3
- package/client/pages/outbound/worksheet-picking.js +22 -18
- package/client/pages/vas/print-product-label.js +17 -9
- package/dist-server/graphql/resolvers/reports/product-label-report.js +1 -0
- package/dist-server/graphql/resolvers/reports/product-label-report.js.map +1 -1
- package/package.json +65 -65
- package/server/graphql/resolvers/reports/product-label-report.ts +1 -0
- package/translations/en.json +31 -2
- package/translations/ko.json +32 -3
- package/translations/ms.json +32 -3
- package/translations/zh.json +32 -3
|
@@ -17,7 +17,8 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
17
17
|
bizplaceId: String,
|
|
18
18
|
searchFields: Array,
|
|
19
19
|
_productName: String,
|
|
20
|
-
productDetailData: Array
|
|
20
|
+
productDetailData: Array,
|
|
21
|
+
selectMultipleProducts: Boolean
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -118,10 +119,17 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
118
119
|
|
|
119
120
|
this.productConfig = {
|
|
120
121
|
pagination: { pages: [10, 20, 50, 100] },
|
|
121
|
-
rows: {
|
|
122
|
+
rows: {
|
|
123
|
+
appendable: false,
|
|
124
|
+
selectable: { multiple: this.selectMultipleProducts ? this.selectMultipleProducts : false }
|
|
125
|
+
},
|
|
122
126
|
columns: [
|
|
123
127
|
{ type: 'gutter', gutterName: 'sequence' },
|
|
124
|
-
{
|
|
128
|
+
{
|
|
129
|
+
type: 'gutter',
|
|
130
|
+
gutterName: 'row-selector',
|
|
131
|
+
multiple: this.selectMultipleProducts ? this.selectMultipleProducts : false
|
|
132
|
+
},
|
|
125
133
|
{
|
|
126
134
|
type: 'string',
|
|
127
135
|
name: 'productId',
|
|
@@ -233,35 +241,74 @@ class SelectProductPopup extends localize(i18next)(LitElement) {
|
|
|
233
241
|
}
|
|
234
242
|
|
|
235
243
|
selectProduct() {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
if (this.selectMultipleProducts !== true) {
|
|
245
|
+
const selectedProduct = this.productGrist.selected[0]
|
|
246
|
+
if (selectedProduct) {
|
|
247
|
+
this.dispatchEvent(
|
|
248
|
+
new CustomEvent('selected', {
|
|
249
|
+
detail: {
|
|
250
|
+
productDetailId: selectedProduct.id,
|
|
251
|
+
packingType: selectedProduct.packingType,
|
|
252
|
+
uom: selectedProduct.uom,
|
|
253
|
+
uomValue: selectedProduct.uomValue,
|
|
254
|
+
productName: `${selectedProduct.name}(${selectedProduct.description}(${selectedProduct.sku}))`,
|
|
255
|
+
isError: false,
|
|
256
|
+
productBrand: selectedProduct.brand,
|
|
257
|
+
product: {
|
|
258
|
+
id: selectedProduct.productId,
|
|
259
|
+
name: selectedProduct.name,
|
|
260
|
+
sku: selectedProduct.sku,
|
|
261
|
+
packingType: selectedProduct.packingType,
|
|
262
|
+
packingSize: selectedProduct.packingSize,
|
|
263
|
+
primaryUnit: selectedProduct.uom,
|
|
264
|
+
primaryValue: selectedProduct.uomValue
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
})
|
|
268
|
+
)
|
|
269
|
+
history.back()
|
|
270
|
+
} else {
|
|
271
|
+
document.dispatchEvent(
|
|
272
|
+
new CustomEvent('notify', { detail: { message: i18next.t('text.product_is_not_selected') } })
|
|
273
|
+
)
|
|
274
|
+
}
|
|
275
|
+
} else {
|
|
276
|
+
const selectedMultipleProducts = this.productGrist.selected
|
|
277
|
+
if (selectedMultipleProducts) {
|
|
278
|
+
const multipleProducts = selectedMultipleProducts.map(itm => {
|
|
279
|
+
return {
|
|
280
|
+
productDetailId: itm.id,
|
|
281
|
+
packingType: itm.packingType,
|
|
282
|
+
uom: itm.uom,
|
|
283
|
+
uomValue: itm.uomValue,
|
|
284
|
+
productName: `${itm.name}(${itm.description}(${itm.sku}))`,
|
|
246
285
|
isError: false,
|
|
247
|
-
productBrand:
|
|
286
|
+
productBrand: itm.brand,
|
|
248
287
|
product: {
|
|
249
|
-
id:
|
|
250
|
-
name:
|
|
251
|
-
sku:
|
|
252
|
-
packingType:
|
|
253
|
-
packingSize:
|
|
254
|
-
primaryUnit:
|
|
255
|
-
primaryValue:
|
|
288
|
+
id: itm.productId,
|
|
289
|
+
name: itm.name,
|
|
290
|
+
sku: itm.sku,
|
|
291
|
+
packingType: itm.packingType,
|
|
292
|
+
packingSize: itm.packingSize,
|
|
293
|
+
primaryUnit: itm.uom,
|
|
294
|
+
primaryValue: itm.uomValue
|
|
256
295
|
}
|
|
257
296
|
}
|
|
258
297
|
})
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
298
|
+
|
|
299
|
+
this.dispatchEvent(
|
|
300
|
+
new CustomEvent('selected', {
|
|
301
|
+
detail: {
|
|
302
|
+
multipleProducts
|
|
303
|
+
}
|
|
304
|
+
})
|
|
305
|
+
)
|
|
306
|
+
history.back()
|
|
307
|
+
} else {
|
|
308
|
+
document.dispatchEvent(
|
|
309
|
+
new CustomEvent('notify', { detail: { message: i18next.t('text.product_is_not_selected') } })
|
|
310
|
+
)
|
|
311
|
+
}
|
|
265
312
|
}
|
|
266
313
|
}
|
|
267
314
|
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import '@things-factory/grist-ui'
|
|
2
|
+
|
|
3
|
+
import { css, html, LitElement } from 'lit-element'
|
|
4
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
|
5
|
+
|
|
6
|
+
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
7
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
|
+
import { store } from '@things-factory/shell'
|
|
9
|
+
|
|
10
|
+
class WorksheetInformationPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
11
|
+
static get properties() {
|
|
12
|
+
return {
|
|
13
|
+
worksheetInformation: Object
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static get styles() {
|
|
18
|
+
return [
|
|
19
|
+
MultiColumnFormStyles,
|
|
20
|
+
css`
|
|
21
|
+
:host {
|
|
22
|
+
padding: 10px;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
overflow-x: overlay;
|
|
26
|
+
background-color: var(--main-section-background-color);
|
|
27
|
+
}
|
|
28
|
+
`
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get infoForm() {
|
|
33
|
+
return this.shadowRoot.querySelector('form#info-form')
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
render() {
|
|
37
|
+
return html`
|
|
38
|
+
<form id="info-form" class="multi-column-form">
|
|
39
|
+
<fieldset>
|
|
40
|
+
<label>${i18next.t('label.company')}</label>
|
|
41
|
+
<input name="bizplaceName" readonly />
|
|
42
|
+
|
|
43
|
+
<label>${i18next.t('label.container_no')}</label>
|
|
44
|
+
<input name="containerNo" readonly />
|
|
45
|
+
|
|
46
|
+
<label>${i18next.t('label.ref_no')}</label>
|
|
47
|
+
<input name="refNo" readonly />
|
|
48
|
+
|
|
49
|
+
<label>${i18next.t('label.ref_no_2')}</label>
|
|
50
|
+
<input name="refNo2" readonly />
|
|
51
|
+
|
|
52
|
+
<label>${i18next.t('label.ref_no_3')}</label>
|
|
53
|
+
<input name="refNo3" readonly />
|
|
54
|
+
|
|
55
|
+
<label>${i18next.t('label.shipping_provider')}</label>
|
|
56
|
+
<input name="shippingProvider" readonly />
|
|
57
|
+
|
|
58
|
+
<label>${i18next.t('label.tracking_no')}</label>
|
|
59
|
+
<input name="trackingNo" readonly />
|
|
60
|
+
|
|
61
|
+
<label>${i18next.t('label.status')}</label>
|
|
62
|
+
<input name="marketplaceStatus" readonly />
|
|
63
|
+
|
|
64
|
+
<label>${i18next.t('label.staging_area')}</label>
|
|
65
|
+
<input name="bufferLocation" readonly />
|
|
66
|
+
|
|
67
|
+
<label>${i18next.t('label.started_at')}</label>
|
|
68
|
+
<input name="startedAt" type="datetime-local" readonly />
|
|
69
|
+
</fieldset>
|
|
70
|
+
</form>
|
|
71
|
+
`
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
firstUpdated() {
|
|
75
|
+
if (this.worksheetInformation) this._fillUpForm(this.infoForm, this.worksheetInformation)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
_fillUpForm(form, data) {
|
|
79
|
+
for (let key in data) {
|
|
80
|
+
Array.from(form.querySelectorAll('input')).forEach(field => {
|
|
81
|
+
if (field.name === key && field.type === 'checkbox') {
|
|
82
|
+
field.checked = data[key]
|
|
83
|
+
} else if (field.name === key && field.type === 'datetime-local') {
|
|
84
|
+
const datetime = Number(data[key])
|
|
85
|
+
const timezoneOffset = new Date(datetime).getTimezoneOffset() * 60000
|
|
86
|
+
field.value = new Date(datetime - timezoneOffset).toISOString().slice(0, -1)
|
|
87
|
+
} else if (field.name === key) {
|
|
88
|
+
if (data[key] instanceof Object) {
|
|
89
|
+
const objectData = data[key]
|
|
90
|
+
field.value = `${objectData.name} ${objectData.description ? `(${objectData.description})` : ''}`
|
|
91
|
+
} else {
|
|
92
|
+
field.value = data[key]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
window.customElements.define('worksheet-information-popup', WorksheetInformationPopup)
|