@things-factory/operato-wms 4.0.24 → 4.0.28
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 +1 -1
- package/client/pages/adjustment/transfer-inventory.js +32 -6
- package/client/pages/billing/claim-chit/claim-chit-detail.js +32 -35
- package/client/pages/billing/claim-chit/claim-chit-list.js +17 -17
- package/client/pages/billing/claim-chit/create-claim-chit.js +39 -30
- package/client/pages/billing/transport-summary-report.js +21 -23
- 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 +44 -54
- 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/expiry-date-popup.js +2 -2
- package/client/pages/inbound/inbound-reusable-pallet.js +21 -19
- package/client/pages/inbound/palletizing-pallets-popup.js +10 -9
- package/client/pages/inbound/putaway-product.js +196 -235
- package/client/pages/inbound/putaway-worksheet-generate-popup.js +4 -4
- package/client/pages/inbound/undo-unload-popup.js +295 -0
- package/client/pages/inbound/unload-product.js +236 -646
- package/client/pages/inbound/unloaded-inventories-popup.js +129 -0
- package/client/pages/inbound/vas-selector.js +9 -8
- package/client/pages/inbound/worksheet-unloading.js +15 -11
- package/client/pages/inventory/inventory-adjustment.js +9 -10
- package/client/pages/inventory-check/check-inventory-popup.js +20 -18
- package/client/pages/inventory-check/cycle-count-recheck-popup.js +25 -15
- package/client/pages/inventory-check/inspecting-product.js +2 -2
- package/client/pages/inventory-check/inventory-check-list.js +30 -19
- package/client/pages/inventory-check/search-popup.js +15 -14
- package/client/pages/inventory-check/worksheet-cycle-count.js +17 -15
- package/client/pages/master/location-list.js +61 -52
- package/client/pages/master/pallet-list.js +34 -30
- package/client/pages/master/print-location-label.js +142 -156
- package/client/pages/master/product/product-list.js +1 -1
- package/client/pages/master/warehouse-list.js +33 -29
- package/client/pages/master/worker-list.js +30 -30
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +409 -21
- package/client/pages/order/arrival-notice/assign-buffer-location.js +1 -1
- 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/goods-received-note/customer-grn-list.js +9 -8
- package/client/pages/order/goods-received-note/customer-received-note.js +8 -7
- package/client/pages/order/goods-received-note/received-note-detail.js +7 -6
- package/client/pages/order/goods-received-note/received-note-list.js +9 -8
- 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-extra-product-popup.js +3 -7
- package/client/pages/order/release-order/release-order-detail.js +392 -109
- package/client/pages/order/return-order/check-return-order.js +15 -13
- package/client/pages/order/return-order/create-return-order.js +3 -3
- package/client/pages/order/return-order/receive-return-order-requests.js +25 -22
- package/client/pages/order/return-order/rejected-return-order.js +8 -14
- package/client/pages/order/return-order/return-order-assign-buffer-location.js +16 -14
- package/client/pages/order/return-order/return-order-detail.js +35 -31
- package/client/pages/order/return-order/return-order-list.js +9 -8
- package/client/pages/order/return-order/return-order-requests.js +20 -18
- package/client/pages/order/reverse-kitting-order/reverse-kitting-order-list.js +9 -8
- package/client/pages/order/transfer-order/receive-transfer-order-request.js +67 -66
- package/client/pages/order/transfer-order/rejected-transfer-order.js +7 -6
- package/client/pages/order/transfer-order/transfer-order-detail.js +7 -6
- package/client/pages/order/transfer-order/transfer-order-requests.js +20 -18
- package/client/pages/order/transport-order/contact-point-selector-popup.js +20 -20
- package/client/pages/order/transport-order/create-delivery-order.js +1 -1
- package/client/pages/order/transport-order/delivery-note-popup.js +52 -46
- package/client/pages/order/transport-order/delivery-order-list.js +1 -1
- package/client/pages/order/transport-order/print-delivery-note.js +17 -16
- package/client/pages/order/transport-order/upload-delivery-note.js +21 -18
- package/client/pages/order/transport-order/view-delivery-note.js +19 -22
- package/client/pages/order/vas-order/create-vas-order.js +12 -11
- package/client/pages/order/vas-order/receive-vas-order.js +25 -22
- package/client/pages/order/vas-order/vas-order-detail.js +26 -23
- package/client/pages/order/vas-order/vas-order-list.js +9 -8
- package/client/pages/order/vas-order/vas-order-requests.js +11 -12
- package/client/pages/outbound/outbound-reusable-pallet.js +25 -33
- package/client/pages/outbound/packing-product.js +115 -234
- package/client/pages/outbound/picking-product.js +288 -380
- package/client/pages/outbound/single-outbound-worksheet.js +9 -8
- package/client/pages/outbound/sorting-product.js +66 -63
- package/client/pages/outbound/worksheet-loading.js +23 -17
- package/client/pages/outbound/worksheet-packing.js +18 -16
- package/client/pages/outbound/worksheet-picking.js +22 -18
- package/client/pages/report/custom-elccl/elccl-daily-collection-report.js +8 -9
- package/client/pages/report/custom-elccl/elccl-daily-order-inventory-report.js +26 -25
- package/client/pages/report/custom-elccl/elccl-delivery-order-summary.js +10 -9
- package/client/pages/report/custom-elccl/elccl-inventory-pallet-detail-report.js +13 -8
- package/client/pages/report/custom-elccl/elccl-inventory-report.js +11 -10
- package/client/pages/report/inventory-pallet-report.js +13 -12
- package/client/pages/report/job-sheet-list.js +9 -8
- package/client/pages/report/job-sheet-popup.js +9 -9
- package/client/pages/report/job-sheet-report.js +6 -6
- package/client/pages/system/location-sorting-rule.js +53 -46
- package/client/pages/vas/abstract-execute-vas.js +47 -34
- package/client/pages/vas/execute-pure-vas.js +66 -62
- package/client/pages/vas/execute-ref-vas.js +39 -41
- package/client/pages/vas/print-product-label.js +17 -9
- package/client/pages/vas/related-vas-list.js +7 -6
- package/client/pages/vas/target-inventory-assignment-popup.js +16 -14
- package/client/pages/vas/vas-pallet-label-popup.js +1 -1
- package/client/pages/vas/vas-worksheet-list.js +9 -8
- package/client/pages/vas/worksheet-ref-vas.js +7 -6
- package/client/pages/vas/worksheet-vas.js +16 -14
- package/client/route.js +16 -32
- 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/things-factory.config.js +0 -16
- package/translations/en.json +34 -2
- package/translations/ko.json +34 -3
- package/translations/ms.json +34 -3
- package/translations/zh.json +34 -3
- package/client/pages/inbound/location-selector.js +0 -224
- package/client/pages/master/picking-bin-list.js +0 -354
- package/client/pages/order/retail-replenishment-order/retail-replenishment-order-detail.js +0 -315
- package/client/pages/order/retail-replenishment-order/retail-replenishment-order-requests.js +0 -307
- package/client/pages/order/vas-order/rejected-vas-order.js +0 -300
|
@@ -8,7 +8,7 @@ import { getCodeByName } from '@things-factory/code-base'
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
10
10
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
11
|
-
import {
|
|
11
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
12
12
|
|
|
13
13
|
import { WORKSHEET_STATUS, WORKSHEET_TYPE } from '../constants'
|
|
14
14
|
|
|
@@ -346,12 +346,8 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
346
346
|
|
|
347
347
|
const response = await client.query({
|
|
348
348
|
query: gql`
|
|
349
|
-
query {
|
|
350
|
-
worksheets(${
|
|
351
|
-
filters,
|
|
352
|
-
pagination: { page, limit },
|
|
353
|
-
sortings: sorters
|
|
354
|
-
})}) {
|
|
349
|
+
query worksheets($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
350
|
+
worksheets(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
355
351
|
items {
|
|
356
352
|
id
|
|
357
353
|
name
|
|
@@ -383,7 +379,12 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
383
379
|
total
|
|
384
380
|
}
|
|
385
381
|
}
|
|
386
|
-
|
|
382
|
+
`,
|
|
383
|
+
variables: {
|
|
384
|
+
filters,
|
|
385
|
+
pagination: { page, limit },
|
|
386
|
+
sortings: sorters
|
|
387
|
+
}
|
|
387
388
|
})
|
|
388
389
|
|
|
389
390
|
if (!response.errors) {
|
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
import '@things-factory/barcode-ui'
|
|
2
|
-
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
3
2
|
import '@things-factory/grist-ui'
|
|
3
|
+
import './show-ro-list-popup'
|
|
4
|
+
import '../components/worksheet-information-popup'
|
|
5
|
+
|
|
6
|
+
import gql from 'graphql-tag'
|
|
7
|
+
import { css, html } from 'lit-element'
|
|
8
|
+
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
9
|
+
|
|
10
|
+
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
4
11
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
12
|
import { openPopup } from '@things-factory/layout-base'
|
|
6
13
|
import { client, CustomAlert, PageView, store } from '@things-factory/shell'
|
|
7
14
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
8
15
|
import { isMobileDevice } from '@things-factory/utils'
|
|
9
|
-
|
|
10
|
-
import { css, html } from 'lit-element'
|
|
11
|
-
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
16
|
+
|
|
12
17
|
import { fetchSettingRule } from '../../fetch-setting-value'
|
|
13
18
|
import { WORKSHEET_STATUS } from '../constants'
|
|
14
|
-
import './show-ro-list-popup'
|
|
15
19
|
|
|
16
20
|
class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
17
21
|
static get properties() {
|
|
18
22
|
return {
|
|
19
|
-
|
|
23
|
+
_bizplaceName: String,
|
|
20
24
|
_enableProductScanning: Boolean,
|
|
21
|
-
|
|
25
|
+
_productName: String,
|
|
22
26
|
_selectedOrderInventory: Object,
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
_selectedTaskStatus: String,
|
|
28
|
+
_worksheetInfo: Object,
|
|
25
29
|
config: Object,
|
|
26
|
-
data: Object
|
|
30
|
+
data: Object,
|
|
31
|
+
releaseOrders: Array,
|
|
32
|
+
taskNo: String
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
|
|
@@ -45,6 +51,21 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
45
51
|
#form-section {
|
|
46
52
|
background-color: white;
|
|
47
53
|
}
|
|
54
|
+
|
|
55
|
+
h2 {
|
|
56
|
+
padding: var(--subtitle-padding);
|
|
57
|
+
font: var(--subtitle-font);
|
|
58
|
+
color: var(--subtitle-text-color);
|
|
59
|
+
border-bottom: var(--subtitle-border-bottom);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
legend mwc-icon {
|
|
63
|
+
vertical-align: middle;
|
|
64
|
+
margin: var(--grist-title-icon-margin);
|
|
65
|
+
font-size: var(--grist-title-icon-size);
|
|
66
|
+
color: var(--grist-title-icon-color);
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
48
69
|
`
|
|
49
70
|
]
|
|
50
71
|
}
|
|
@@ -74,8 +95,12 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
74
95
|
}
|
|
75
96
|
}
|
|
76
97
|
|
|
77
|
-
get
|
|
78
|
-
return this.
|
|
98
|
+
get completed() {
|
|
99
|
+
return this.data.records.every(record => record.completed)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
get grist() {
|
|
103
|
+
return this.shadowRoot.querySelector('data-grist')
|
|
79
104
|
}
|
|
80
105
|
|
|
81
106
|
get infoForm() {
|
|
@@ -92,28 +117,20 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
92
117
|
.shadowRoot.querySelector('input')
|
|
93
118
|
}
|
|
94
119
|
|
|
95
|
-
get completed() {
|
|
96
|
-
return this.data.records.every(record => record.completed)
|
|
97
|
-
}
|
|
98
|
-
|
|
99
120
|
get releaseGoodNoInput() {
|
|
100
121
|
return this.shadowRoot.querySelector('input[name=releaseGoodNo]')
|
|
101
122
|
}
|
|
102
123
|
|
|
103
|
-
get sortingQtyInput() {
|
|
104
|
-
return this.shadowRoot.querySelector('input[name=sortingQty]')
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
get grist() {
|
|
108
|
-
return this.shadowRoot.querySelector('data-grist')
|
|
109
|
-
}
|
|
110
|
-
|
|
111
124
|
get scannable() {
|
|
112
125
|
return this._selectedTaskStatus && this._selectedTaskStatus === WORKSHEET_STATUS.EXECUTING.value
|
|
113
126
|
}
|
|
114
127
|
|
|
115
|
-
get
|
|
116
|
-
return this.
|
|
128
|
+
get sortingQtyInput() {
|
|
129
|
+
return this.shadowRoot.querySelector('input[name=sortingQty]')
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
get taskNoInput() {
|
|
133
|
+
return this.shadowRoot.querySelector('barcode-scanable-input[name=taskNo]').shadowRoot.querySelector('input')
|
|
117
134
|
}
|
|
118
135
|
|
|
119
136
|
_focusOnTaskNoInput() {
|
|
@@ -166,10 +183,13 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
166
183
|
<div slot="headroom" id="form-section">
|
|
167
184
|
<form id="info-form" class="multi-column-form">
|
|
168
185
|
<fieldset>
|
|
169
|
-
<legend
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
186
|
+
<legend>
|
|
187
|
+
${i18next.t('title.order_no')}: ${this.taskNo}
|
|
188
|
+
${this.taskNo
|
|
189
|
+
? html`(${this._bizplaceName})
|
|
190
|
+
<mwc-icon @click="${this._openWorksheetInformation.bind(this)}">info</mwc-icon>`
|
|
191
|
+
: ''}
|
|
192
|
+
</legend>
|
|
173
193
|
</fieldset>
|
|
174
194
|
</form>
|
|
175
195
|
</div>
|
|
@@ -180,11 +200,10 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
180
200
|
constructor() {
|
|
181
201
|
super()
|
|
182
202
|
this.data = { records: [] }
|
|
183
|
-
this._productName = ''
|
|
184
203
|
this.taskNo = ''
|
|
204
|
+
this._enableProductScanning = false
|
|
185
205
|
this._selectedOrderInventory = null
|
|
186
206
|
this._selectedTaskStatus = null
|
|
187
|
-
this._enableProductScanning = false
|
|
188
207
|
}
|
|
189
208
|
|
|
190
209
|
updated(changedProps) {
|
|
@@ -208,13 +227,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
208
227
|
if (data.records.length && record) {
|
|
209
228
|
this._selectedOrderInventory = record
|
|
210
229
|
this._selectedTaskStatus = record.status
|
|
211
|
-
this._productName = record.product?.name
|
|
212
|
-
? `${record.product.sku + ' - ' + record.product.name} ${
|
|
213
|
-
record.product?.description ? `(${record.product.description})` : ''
|
|
214
|
-
}`
|
|
215
|
-
: ''
|
|
216
230
|
|
|
217
|
-
this._fillUpForm(this.inputForm, record)
|
|
218
231
|
if (this.scannable) {
|
|
219
232
|
if (this._enableProductScanning) this._focusOnProductBarcodeInput()
|
|
220
233
|
}
|
|
@@ -334,6 +347,19 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
334
347
|
)
|
|
335
348
|
}
|
|
336
349
|
|
|
350
|
+
_openWorksheetInformation() {
|
|
351
|
+
openPopup(
|
|
352
|
+
html`
|
|
353
|
+
<worksheet-information-popup .worksheetInformation="${this._worksheetInfo}"></worksheet-information-popup>
|
|
354
|
+
`,
|
|
355
|
+
{
|
|
356
|
+
backdrop: true,
|
|
357
|
+
size: 'large',
|
|
358
|
+
title: i18next.t('title.order_information')
|
|
359
|
+
}
|
|
360
|
+
)
|
|
361
|
+
}
|
|
362
|
+
|
|
337
363
|
async _fetchItemList(releaseOrderNo) {
|
|
338
364
|
const response = await client.query({
|
|
339
365
|
query: gql`
|
|
@@ -344,6 +370,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
344
370
|
partnerDomainId
|
|
345
371
|
refNo
|
|
346
372
|
refNo2
|
|
373
|
+
refNo3
|
|
347
374
|
startedAt
|
|
348
375
|
releaseGood {
|
|
349
376
|
id
|
|
@@ -376,7 +403,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
376
403
|
})
|
|
377
404
|
if (!response.errors) {
|
|
378
405
|
const { worksheetInfo, worksheetDetailInfos } = response.data.sortingWorksheet
|
|
379
|
-
this.
|
|
406
|
+
this._worksheetInfo = worksheetInfo
|
|
380
407
|
|
|
381
408
|
this.data = { records: this.formatWorksheetDetailInfos(worksheetDetailInfos) }
|
|
382
409
|
this.updateContext()
|
|
@@ -539,7 +566,6 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
539
566
|
record.completed = record.sortedQty == record.releaseQty
|
|
540
567
|
record.sku = record?.productSku
|
|
541
568
|
record.product = { id: record.productId, name: record.productName, description: record.productDescription }
|
|
542
|
-
record.packingTypeSize = `${record.packingType}(${record.packingSize})`
|
|
543
569
|
record.progress = `${record.sortedQty} / ${record.releaseQty}`
|
|
544
570
|
|
|
545
571
|
return record
|
|
@@ -547,33 +573,10 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
547
573
|
.sort((a, b) => a.completed - b.completed)
|
|
548
574
|
}
|
|
549
575
|
|
|
550
|
-
_fillUpForm(form, data) {
|
|
551
|
-
form.reset()
|
|
552
|
-
for (let key in data) {
|
|
553
|
-
Array.from(form.querySelectorAll('input')).forEach(field => {
|
|
554
|
-
if (field.name === key && field.type === 'checkbox') {
|
|
555
|
-
field.checked = data[key]
|
|
556
|
-
} else if (field.name === key && field.type === 'datetime-local') {
|
|
557
|
-
const datetime = Number(data[key])
|
|
558
|
-
const timezoneOffset = new Date(datetime).getTimezoneOffset() * 60000
|
|
559
|
-
field.value = new Date(datetime - timezoneOffset).toISOString().slice(0, -1)
|
|
560
|
-
} else if (field.name === key) {
|
|
561
|
-
if (data[key] instanceof Object) {
|
|
562
|
-
const objectData = data[key]
|
|
563
|
-
field.value = `${objectData.name} ${objectData.description ? `(${objectData.description})` : ''}`
|
|
564
|
-
} else {
|
|
565
|
-
field.value = data[key]
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
})
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
|
|
572
576
|
_clearView() {
|
|
573
577
|
this.data = { records: [] }
|
|
574
578
|
this.infoForm.reset()
|
|
575
579
|
this.inputForm.reset()
|
|
576
|
-
this._productName = ''
|
|
577
580
|
this.taskNo = ''
|
|
578
581
|
this.taskNoInput.value = ''
|
|
579
582
|
if (this._enableProductScanning) this.productBarcodeInput.value = ''
|
|
@@ -4,7 +4,7 @@ import '@things-factory/grist-ui'
|
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { getRenderer } from '@things-factory/grist-ui'
|
|
6
6
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
7
|
-
import {
|
|
7
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
8
8
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
9
9
|
import gql from 'graphql-tag'
|
|
10
10
|
import { css, html } from 'lit-element'
|
|
@@ -121,6 +121,13 @@ class WorksheetLoading extends localize(i18next)(PageView) {
|
|
|
121
121
|
<form class="multi-column-form">
|
|
122
122
|
<fieldset>
|
|
123
123
|
<legend>${i18next.t('title.loading')}</legend>
|
|
124
|
+
|
|
125
|
+
<label>${i18next.t('label.options')}</label>
|
|
126
|
+
<div options-wrap>
|
|
127
|
+
<input id="ownCollection" type="checkbox" name="ownCollection" disabled />
|
|
128
|
+
<label for="ownCollection">${i18next.t('label.own_collection')}</label>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
124
131
|
<label>${i18next.t('label.release_good_no')}</label>
|
|
125
132
|
<input name="releaseGood" readonly />
|
|
126
133
|
|
|
@@ -130,9 +137,6 @@ class WorksheetLoading extends localize(i18next)(PageView) {
|
|
|
130
137
|
<label>${i18next.t('label.ref_no')}</label>
|
|
131
138
|
<input name="refNo" readonly />
|
|
132
139
|
|
|
133
|
-
<input id="ownCollection" type="checkbox" name="ownCollection" disabled />
|
|
134
|
-
<label for="ownCollection">${i18next.t('label.own_collection')}</label>
|
|
135
|
-
|
|
136
140
|
<label>${i18next.t('label.status')}</label>
|
|
137
141
|
<input
|
|
138
142
|
name="status"
|
|
@@ -363,10 +367,8 @@ class WorksheetLoading extends localize(i18next)(PageView) {
|
|
|
363
367
|
if (!this._worksheetNo) return
|
|
364
368
|
const response = await client.query({
|
|
365
369
|
query: gql`
|
|
366
|
-
query {
|
|
367
|
-
worksheet(${
|
|
368
|
-
name: this._worksheetNo
|
|
369
|
-
})}) {
|
|
370
|
+
query worksheet($name: String!) {
|
|
371
|
+
worksheet(name: $name) {
|
|
370
372
|
status
|
|
371
373
|
releaseGood {
|
|
372
374
|
name
|
|
@@ -430,7 +432,10 @@ class WorksheetLoading extends localize(i18next)(PageView) {
|
|
|
430
432
|
}
|
|
431
433
|
}
|
|
432
434
|
}
|
|
433
|
-
|
|
435
|
+
`,
|
|
436
|
+
variables: {
|
|
437
|
+
name: this._worksheetNo
|
|
438
|
+
}
|
|
434
439
|
})
|
|
435
440
|
|
|
436
441
|
if (!response.errors) {
|
|
@@ -537,17 +542,18 @@ class WorksheetLoading extends localize(i18next)(PageView) {
|
|
|
537
542
|
return
|
|
538
543
|
}
|
|
539
544
|
|
|
540
|
-
const response = await client.
|
|
541
|
-
|
|
542
|
-
mutation {
|
|
543
|
-
activateLoading(${
|
|
544
|
-
worksheetNo: this._worksheetNo,
|
|
545
|
-
loadingWorksheetDetails: this._getLoadingWorksheetDetails()
|
|
546
|
-
})}) {
|
|
545
|
+
const response = await client.mutate({
|
|
546
|
+
mutation: gql`
|
|
547
|
+
mutation activateLoading($worksheetNo: String!, $loadingWorksheetDetails: [WorksheetDetailPatch]) {
|
|
548
|
+
activateLoading(worksheetNo: $worksheetNo, loadingWorksheetDetails: $loadingWorksheetDetails) {
|
|
547
549
|
name
|
|
548
550
|
}
|
|
549
551
|
}
|
|
550
|
-
|
|
552
|
+
`,
|
|
553
|
+
variables: {
|
|
554
|
+
worksheetNo: this._worksheetNo,
|
|
555
|
+
loadingWorksheetDetails: this._getLoadingWorksheetDetails()
|
|
556
|
+
}
|
|
551
557
|
})
|
|
552
558
|
if (!response.errors) {
|
|
553
559
|
this._showToast({ message: i18next.t('text.worksheet_activated') })
|
|
@@ -10,7 +10,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
10
10
|
import { openPopup } from '@things-factory/layout-base'
|
|
11
11
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
12
12
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
13
|
-
import {
|
|
13
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
14
14
|
|
|
15
15
|
import { MARKETPLACE_STATUS, WORKSHEET_STATUS } from '../constants'
|
|
16
16
|
|
|
@@ -158,6 +158,9 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
158
158
|
<label>${i18next.t('label.company')}</label>
|
|
159
159
|
<input name="bizplace" readonly />
|
|
160
160
|
|
|
161
|
+
<label>${i18next.t('label.release_date')}</label>
|
|
162
|
+
<input name="releaseDate" type="date" readonly />
|
|
163
|
+
|
|
161
164
|
<label>${i18next.t('label.ref_no')}</label>
|
|
162
165
|
<input name="refNo" readonly />
|
|
163
166
|
|
|
@@ -170,9 +173,6 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
170
173
|
<label>${i18next.t('label.tracking_no')}</label>
|
|
171
174
|
<input name="trackingNo" readonly />
|
|
172
175
|
|
|
173
|
-
<label>${i18next.t('label.release_date')}</label>
|
|
174
|
-
<input name="releaseDate" type="date" readonly />
|
|
175
|
-
|
|
176
176
|
<label>${i18next.t('label.status')}</label>
|
|
177
177
|
<select name="status" disabled>
|
|
178
178
|
${Object.keys(WORKSHEET_STATUS).map(
|
|
@@ -298,10 +298,8 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
298
298
|
if (!this._worksheetNo) return
|
|
299
299
|
const response = await client.query({
|
|
300
300
|
query: gql`
|
|
301
|
-
query {
|
|
302
|
-
worksheet(${
|
|
303
|
-
name: this._worksheetNo
|
|
304
|
-
})}) {
|
|
301
|
+
query worksheet($name: String!) {
|
|
302
|
+
worksheet(name: $name) {
|
|
305
303
|
status
|
|
306
304
|
releaseGood {
|
|
307
305
|
name
|
|
@@ -384,7 +382,10 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
384
382
|
}
|
|
385
383
|
}
|
|
386
384
|
}
|
|
387
|
-
|
|
385
|
+
`,
|
|
386
|
+
variables: {
|
|
387
|
+
name: this._worksheetNo
|
|
388
|
+
}
|
|
388
389
|
})
|
|
389
390
|
|
|
390
391
|
if (!response.errors) {
|
|
@@ -486,16 +487,17 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
486
487
|
return
|
|
487
488
|
}
|
|
488
489
|
|
|
489
|
-
const response = await client.
|
|
490
|
-
|
|
491
|
-
mutation {
|
|
492
|
-
activatePacking(${
|
|
493
|
-
worksheetNo: this._worksheetNo
|
|
494
|
-
})}) {
|
|
490
|
+
const response = await client.mutate({
|
|
491
|
+
mutation: gql`
|
|
492
|
+
mutation activatePacking($worksheetNo: String!) {
|
|
493
|
+
activatePacking(worksheetNo: $worksheetNo) {
|
|
495
494
|
name
|
|
496
495
|
}
|
|
497
496
|
}
|
|
498
|
-
|
|
497
|
+
`,
|
|
498
|
+
variables: {
|
|
499
|
+
worksheetNo: this._worksheetNo
|
|
500
|
+
}
|
|
499
501
|
})
|
|
500
502
|
if (!response.errors) {
|
|
501
503
|
this._showToast({ message: i18next.t('text.worksheet_activated') })
|
|
@@ -186,12 +186,34 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
186
186
|
<form class="multi-column-form">
|
|
187
187
|
<fieldset>
|
|
188
188
|
<legend>${i18next.t('title.picking')}</legend>
|
|
189
|
+
|
|
190
|
+
<label>${i18next.t('label.options')}</label>
|
|
191
|
+
<div options-wrap>
|
|
192
|
+
<input id="ownCollection" type="checkbox" name="ownCollection" disabled />
|
|
193
|
+
<label for="ownCollection">${i18next.t('label.own_collection')}</label>
|
|
194
|
+
|
|
195
|
+
<input name="crossDocking" type="checkbox" .checked="${this.crossDocking}" disabled />
|
|
196
|
+
<label>${i18next.t('field.cross_docking')}</label>
|
|
197
|
+
|
|
198
|
+
<input name="courierOption" type="checkbox" .checked="${this.courierOption}" disabled />
|
|
199
|
+
<label>${i18next.t('field.courier')}</label>
|
|
200
|
+
|
|
201
|
+
<input name="packingOption" type="checkbox" .checked="${this.packingOption}" disabled />
|
|
202
|
+
<label>${i18next.t('field.packing')}</label>
|
|
203
|
+
|
|
204
|
+
<input name="exportOption" type="checkbox" .checked="${this.exportOption}" disabled />
|
|
205
|
+
<label>${i18next.t('field.export')}</label>
|
|
206
|
+
</div>
|
|
207
|
+
|
|
189
208
|
<label>${i18next.t('label.release_good_no')}</label>
|
|
190
209
|
<input name="releaseGood" readonly />
|
|
191
210
|
|
|
192
211
|
<label>${i18next.t('label.company')}</label>
|
|
193
212
|
<input name="bizplace" readonly />
|
|
194
213
|
|
|
214
|
+
<label>${i18next.t('label.release_date')}</label>
|
|
215
|
+
<input name="releaseDate" type="date" readonly />
|
|
216
|
+
|
|
195
217
|
<label>${i18next.t('label.ref_no')}</label>
|
|
196
218
|
<input name="refNo" readonly />
|
|
197
219
|
|
|
@@ -201,9 +223,6 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
201
223
|
<label>${i18next.t('label.ref_no_3')}</label>
|
|
202
224
|
<input name="refNo3" readonly />
|
|
203
225
|
|
|
204
|
-
<label>${i18next.t('label.release_date')}</label>
|
|
205
|
-
<input name="releaseDate" type="date" readonly />
|
|
206
|
-
|
|
207
226
|
${this.exportOption
|
|
208
227
|
? html`
|
|
209
228
|
<label>${i18next.t('label.container_no')}</label>
|
|
@@ -224,21 +243,6 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
224
243
|
|
|
225
244
|
<label>${i18next.t('label.assignee')}</label>
|
|
226
245
|
<input name="assignee" readonly />
|
|
227
|
-
|
|
228
|
-
<input id="ownCollection" type="checkbox" name="ownCollection" disabled />
|
|
229
|
-
<label for="ownCollection">${i18next.t('label.own_collection')}</label>
|
|
230
|
-
|
|
231
|
-
<input name="crossDocking" type="checkbox" .checked="${this.crossDocking}" disabled />
|
|
232
|
-
<label>${i18next.t('field.cross_docking')}</label>
|
|
233
|
-
|
|
234
|
-
<input name="courierOption" type="checkbox" .checked="${this.courierOption}" disabled />
|
|
235
|
-
<label>${i18next.t('field.courier')}</label>
|
|
236
|
-
|
|
237
|
-
<input name="packingOption" type="checkbox" .checked="${this.packingOption}" disabled />
|
|
238
|
-
<label>${i18next.t('field.packing')}</label>
|
|
239
|
-
|
|
240
|
-
<input name="exportOption" type="checkbox" .checked="${this.exportOption}" disabled />
|
|
241
|
-
<label>${i18next.t('field.export')}</label>
|
|
242
246
|
</fieldset>
|
|
243
247
|
</form>
|
|
244
248
|
|
|
@@ -7,8 +7,6 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { gqlBuilder } from '@things-factory/utils'
|
|
11
|
-
|
|
12
10
|
class ElcclDailyCollectionReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
11
|
static get styles() {
|
|
14
12
|
return css`
|
|
@@ -235,12 +233,8 @@ class ElcclDailyCollectionReport extends connect(store)(localize(i18next)(PageVi
|
|
|
235
233
|
var tzoffset = new Date().getTimezoneOffset() * 60
|
|
236
234
|
const response = await client.query({
|
|
237
235
|
query: gql`
|
|
238
|
-
query {
|
|
239
|
-
elcclDailyCollectionReport(${
|
|
240
|
-
filters: [...this.searchForm.queryFilters, { name: 'tzoffset', operator: 'custom', value: tzoffset }],
|
|
241
|
-
pagination: { page, limit },
|
|
242
|
-
sortings: sorters
|
|
243
|
-
})}) {
|
|
236
|
+
query elcclDailyCollectionReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
237
|
+
elcclDailyCollectionReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
244
238
|
arrival_notice_name
|
|
245
239
|
bizplace_name
|
|
246
240
|
ended_at
|
|
@@ -255,7 +249,12 @@ class ElcclDailyCollectionReport extends connect(store)(localize(i18next)(PageVi
|
|
|
255
249
|
delivery_summary
|
|
256
250
|
}
|
|
257
251
|
}
|
|
258
|
-
|
|
252
|
+
`,
|
|
253
|
+
variables: {
|
|
254
|
+
filters: [...this.searchForm.queryFilters, { name: 'tzoffset', operator: 'custom', value: tzoffset }],
|
|
255
|
+
pagination: { page, limit },
|
|
256
|
+
sortings: sorters
|
|
257
|
+
}
|
|
259
258
|
})
|
|
260
259
|
|
|
261
260
|
this.data = {
|
|
@@ -7,7 +7,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { flattenObject,
|
|
10
|
+
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class ElcclDailyOrderInventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
13
|
static get styles() {
|
|
@@ -261,33 +261,34 @@ class ElcclDailyOrderInventoryReport extends connect(store)(localize(i18next)(Pa
|
|
|
261
261
|
|
|
262
262
|
const response = await client.query({
|
|
263
263
|
query: gql`
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
})}) {
|
|
270
|
-
items{
|
|
271
|
-
bizplace {
|
|
272
|
-
name
|
|
273
|
-
}
|
|
274
|
-
bag
|
|
275
|
-
bagRunningTotal
|
|
276
|
-
basket
|
|
277
|
-
basketRunningTotal
|
|
278
|
-
carton
|
|
279
|
-
cartonRunningTotal
|
|
280
|
-
createdAt
|
|
281
|
-
doRefNo
|
|
282
|
-
orderNo
|
|
283
|
-
orderRefNo
|
|
284
|
-
pallet
|
|
285
|
-
palletRunningTotal
|
|
264
|
+
query elcclDailyOrderInventoryReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
265
|
+
elcclDailyOrderInventoryReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
266
|
+
items {
|
|
267
|
+
bizplace {
|
|
268
|
+
name
|
|
286
269
|
}
|
|
287
|
-
|
|
270
|
+
bag
|
|
271
|
+
bagRunningTotal
|
|
272
|
+
basket
|
|
273
|
+
basketRunningTotal
|
|
274
|
+
carton
|
|
275
|
+
cartonRunningTotal
|
|
276
|
+
createdAt
|
|
277
|
+
doRefNo
|
|
278
|
+
orderNo
|
|
279
|
+
orderRefNo
|
|
280
|
+
pallet
|
|
281
|
+
palletRunningTotal
|
|
288
282
|
}
|
|
283
|
+
total
|
|
289
284
|
}
|
|
290
|
-
|
|
285
|
+
}
|
|
286
|
+
`,
|
|
287
|
+
variables: {
|
|
288
|
+
filters: [...filter, { name: 'tzoffset', operator: 'custom', value: tzoffset }],
|
|
289
|
+
pagination: { page, limit },
|
|
290
|
+
sortings: sorters
|
|
291
|
+
}
|
|
291
292
|
})
|
|
292
293
|
return {
|
|
293
294
|
total: response.data.elcclDailyOrderInventoryReport.total,
|
|
@@ -7,7 +7,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { flattenObject,
|
|
10
|
+
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageView)) {
|
|
13
13
|
static get styles() {
|
|
@@ -229,12 +229,8 @@ class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageVie
|
|
|
229
229
|
|
|
230
230
|
const response = await client.query({
|
|
231
231
|
query: gql`
|
|
232
|
-
query {
|
|
233
|
-
deliveryOrders(${
|
|
234
|
-
filters: [...filters],
|
|
235
|
-
pagination: { page, limit },
|
|
236
|
-
sortings: sorters
|
|
237
|
-
})}) {
|
|
232
|
+
query deliveryOrders($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
233
|
+
deliveryOrders(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
238
234
|
items {
|
|
239
235
|
id
|
|
240
236
|
name
|
|
@@ -246,7 +242,7 @@ class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageVie
|
|
|
246
242
|
orderInventories {
|
|
247
243
|
inventory {
|
|
248
244
|
batchId
|
|
249
|
-
product{
|
|
245
|
+
product {
|
|
250
246
|
name
|
|
251
247
|
description
|
|
252
248
|
}
|
|
@@ -266,7 +262,12 @@ class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageVie
|
|
|
266
262
|
total
|
|
267
263
|
}
|
|
268
264
|
}
|
|
269
|
-
|
|
265
|
+
`,
|
|
266
|
+
variables: {
|
|
267
|
+
filters: [...filters],
|
|
268
|
+
pagination: { page, limit },
|
|
269
|
+
sortings: sorters
|
|
270
|
+
}
|
|
270
271
|
})
|
|
271
272
|
|
|
272
273
|
if (!response.errors) {
|