@things-factory/operato-wms 4.0.24 → 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/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
|
@@ -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 = ''
|
|
@@ -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"
|
|
@@ -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(
|
|
@@ -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
|
|
|
@@ -401,7 +401,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
401
401
|
return {
|
|
402
402
|
...record,
|
|
403
403
|
gtin: productDetail.gtin,
|
|
404
|
-
productName:
|
|
404
|
+
productName: product.name
|
|
405
405
|
}
|
|
406
406
|
})
|
|
407
407
|
} else {
|
|
@@ -433,7 +433,8 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
433
433
|
auxValue1: product.auxValue1 || '',
|
|
434
434
|
auxUnit2: product.auxUnit2 || '',
|
|
435
435
|
auxValue2: product.auxValue2 || '',
|
|
436
|
-
bizplaceId: arrivalNotice.bizplace.id
|
|
436
|
+
bizplaceId: arrivalNotice.bizplace.id,
|
|
437
|
+
bizplaceName: arrivalNotice.bizplace.name
|
|
437
438
|
}
|
|
438
439
|
|
|
439
440
|
if (product.productDetails && product.productDetails.length) {
|
|
@@ -441,7 +442,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
441
442
|
return {
|
|
442
443
|
...record,
|
|
443
444
|
gtin: productDetail.gtin,
|
|
444
|
-
productName:
|
|
445
|
+
productName: product.name
|
|
445
446
|
}
|
|
446
447
|
})
|
|
447
448
|
} else {
|
|
@@ -475,6 +476,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
475
476
|
id
|
|
476
477
|
batchId
|
|
477
478
|
packingType
|
|
479
|
+
releaseQty
|
|
478
480
|
product {
|
|
479
481
|
name
|
|
480
482
|
sku
|
|
@@ -549,7 +551,9 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
549
551
|
auxValue1: product.auxValue1 || '',
|
|
550
552
|
auxUnit2: product.auxUnit2 || '',
|
|
551
553
|
auxValue2: product.auxValue2 || '',
|
|
552
|
-
bizplaceId: releaseGood.bizplace.id
|
|
554
|
+
bizplaceId: releaseGood.bizplace.id,
|
|
555
|
+
bizplaceName: releaseGood.bizplace.name,
|
|
556
|
+
printQty: oi.releaseQty || 0
|
|
553
557
|
}
|
|
554
558
|
|
|
555
559
|
if (product.productDetails && product.productDetails.length) {
|
|
@@ -557,7 +561,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
557
561
|
return {
|
|
558
562
|
...record,
|
|
559
563
|
gtin: productDetail.gtin,
|
|
560
|
-
productName:
|
|
564
|
+
productName: product.name
|
|
561
565
|
}
|
|
562
566
|
})
|
|
563
567
|
} else {
|
|
@@ -588,7 +592,8 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
588
592
|
auxValue1: product.auxValue1 || '',
|
|
589
593
|
auxUnit2: product.auxUnit2 || '',
|
|
590
594
|
auxValue2: product.auxValue2 || '',
|
|
591
|
-
bizplaceId: releaseGood.bizplace.id
|
|
595
|
+
bizplaceId: releaseGood.bizplace.id,
|
|
596
|
+
bizplaceName: releaseGood.bizplace.name
|
|
592
597
|
}
|
|
593
598
|
|
|
594
599
|
if (product.productDetails && product.productDetails.length) {
|
|
@@ -596,7 +601,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
596
601
|
return {
|
|
597
602
|
...record,
|
|
598
603
|
gtin: productDetail.gtin,
|
|
599
|
-
productName:
|
|
604
|
+
productName: product.name
|
|
600
605
|
}
|
|
601
606
|
})
|
|
602
607
|
} else {
|
|
@@ -648,6 +653,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
648
653
|
}
|
|
649
654
|
bizplace {
|
|
650
655
|
id
|
|
656
|
+
name
|
|
651
657
|
}
|
|
652
658
|
expirationDate
|
|
653
659
|
}
|
|
@@ -683,7 +689,8 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
683
689
|
auxUnit2: product.auxUnit2 || '',
|
|
684
690
|
auxValue2: product.auxValue2 || '',
|
|
685
691
|
productInfo: product.description ? `${product.name} (${product.description})` : `${product.name}`,
|
|
686
|
-
bizplaceId: inventory.bizplace.id
|
|
692
|
+
bizplaceId: inventory.bizplace.id,
|
|
693
|
+
bizplaceName: inventory.bizplace.name
|
|
687
694
|
}
|
|
688
695
|
|
|
689
696
|
if (product.productDetails && product.productDetails.length) {
|
|
@@ -691,7 +698,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
691
698
|
return {
|
|
692
699
|
...record,
|
|
693
700
|
gtin: productDetail.gtin,
|
|
694
|
-
productName:
|
|
701
|
+
productName: product.name
|
|
695
702
|
}
|
|
696
703
|
})
|
|
697
704
|
} else {
|
|
@@ -755,6 +762,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
755
762
|
searchParams.append('aux_value_2', record.auxValue2)
|
|
756
763
|
searchParams.append('expiration_date', record.expirationDate)
|
|
757
764
|
searchParams.append('location', record.location)
|
|
765
|
+
searchParams.append('company_name', record.bizplaceName)
|
|
758
766
|
|
|
759
767
|
let printCounter = 0
|
|
760
768
|
try {
|
|
@@ -28,6 +28,7 @@ exports.productLabelReport = {
|
|
|
28
28
|
WHERE "bizplace_id" = '${bizplaceId}'
|
|
29
29
|
${type ? `AND "type" ilike '%${type}%'` : ''}
|
|
30
30
|
AND "date"::date BETWEEN '${fromDate}' AND '${toDate}'
|
|
31
|
+
ORDER BY type ASC, date ASC
|
|
31
32
|
`);
|
|
32
33
|
// @farishelmi any usage for this function? If no please remove.
|
|
33
34
|
/*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-label-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/product-label-report.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAEvC,+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K,EAAE,CAAC;aACT,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.25",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -41,72 +41,72 @@
|
|
|
41
41
|
"docker:run": "docker run -p 4000:3000 hatiolab/operato-wms:latest"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@operato/ghost-print": "^0.2.
|
|
45
|
-
"@operato/scene-chartjs": "^0.0.
|
|
46
|
-
"@operato/scene-clock": "^0.0.
|
|
47
|
-
"@operato/scene-clone": "^0.0.
|
|
48
|
-
"@operato/scene-compass": "^0.0.
|
|
49
|
-
"@operato/scene-gauge": "^0.0.
|
|
50
|
-
"@operato/scene-indoor-map": "^0.0.
|
|
51
|
-
"@operato/scene-legend": "^0.0.
|
|
52
|
-
"@operato/scene-progressbar": "^0.0.
|
|
53
|
-
"@operato/scene-random": "^0.0.
|
|
54
|
-
"@operato/scene-switch": "^0.0.
|
|
55
|
-
"@operato/scene-tab": "^0.0.
|
|
56
|
-
"@operato/scene-table": "^0.0.
|
|
57
|
-
"@operato/scene-wheel-sorter": "^0.0.
|
|
58
|
-
"@things-factory/apptool-ui": "^4.0.
|
|
59
|
-
"@things-factory/attachment-ui": "^4.0.
|
|
60
|
-
"@things-factory/auth-ui": "^4.0.
|
|
61
|
-
"@things-factory/barcode-ui": "^4.0.
|
|
62
|
-
"@things-factory/biz-ui": "^4.0.
|
|
63
|
-
"@things-factory/board-service": "^4.0.
|
|
64
|
-
"@things-factory/board-ui": "^4.0.
|
|
65
|
-
"@things-factory/code-ui": "^4.0.
|
|
66
|
-
"@things-factory/context-ui": "^4.0.
|
|
67
|
-
"@things-factory/export-ui": "^4.0.
|
|
68
|
-
"@things-factory/export-ui-csv": "^4.0.
|
|
69
|
-
"@things-factory/export-ui-excel": "^4.0.
|
|
70
|
-
"@things-factory/fav-base": "^4.0.
|
|
71
|
-
"@things-factory/form-ui": "^4.0.
|
|
72
|
-
"@things-factory/grist-ui": "^4.0.
|
|
73
|
-
"@things-factory/help": "^4.0.
|
|
74
|
-
"@things-factory/i18n-ui": "^4.0.
|
|
75
|
-
"@things-factory/id-rule-base": "^4.0.
|
|
76
|
-
"@things-factory/import-ui": "^4.0.
|
|
77
|
-
"@things-factory/import-ui-excel": "^4.0.
|
|
78
|
-
"@things-factory/menu-ui": "^4.0.
|
|
79
|
-
"@things-factory/more-ui": "^4.0.
|
|
80
|
-
"@things-factory/notification": "^4.0.
|
|
81
|
-
"@things-factory/pdf": "^4.0.
|
|
82
|
-
"@things-factory/print-proxy-service": "^4.0.
|
|
83
|
-
"@things-factory/print-service": "^4.0.
|
|
84
|
-
"@things-factory/print-ui": "^4.0.
|
|
85
|
-
"@things-factory/product-base": "^4.0.
|
|
86
|
-
"@things-factory/resource-ui": "^4.0.
|
|
87
|
-
"@things-factory/sales-ui": "^4.0.
|
|
88
|
-
"@things-factory/scene-data-transform": "^4.0.
|
|
89
|
-
"@things-factory/scene-excel": "^4.0.
|
|
90
|
-
"@things-factory/scene-firebase": "^4.0.
|
|
91
|
-
"@things-factory/scene-form": "^4.0.
|
|
92
|
-
"@things-factory/scene-google-map": "^4.0.
|
|
93
|
-
"@things-factory/scene-graphql": "^4.0.
|
|
44
|
+
"@operato/ghost-print": "^0.2.52",
|
|
45
|
+
"@operato/scene-chartjs": "^0.0.24",
|
|
46
|
+
"@operato/scene-clock": "^0.0.24",
|
|
47
|
+
"@operato/scene-clone": "^0.0.24",
|
|
48
|
+
"@operato/scene-compass": "^0.0.24",
|
|
49
|
+
"@operato/scene-gauge": "^0.0.24",
|
|
50
|
+
"@operato/scene-indoor-map": "^0.0.24",
|
|
51
|
+
"@operato/scene-legend": "^0.0.24",
|
|
52
|
+
"@operato/scene-progressbar": "^0.0.24",
|
|
53
|
+
"@operato/scene-random": "^0.0.24",
|
|
54
|
+
"@operato/scene-switch": "^0.0.24",
|
|
55
|
+
"@operato/scene-tab": "^0.0.24",
|
|
56
|
+
"@operato/scene-table": "^0.0.24",
|
|
57
|
+
"@operato/scene-wheel-sorter": "^0.0.24",
|
|
58
|
+
"@things-factory/apptool-ui": "^4.0.25",
|
|
59
|
+
"@things-factory/attachment-ui": "^4.0.25",
|
|
60
|
+
"@things-factory/auth-ui": "^4.0.25",
|
|
61
|
+
"@things-factory/barcode-ui": "^4.0.25",
|
|
62
|
+
"@things-factory/biz-ui": "^4.0.25",
|
|
63
|
+
"@things-factory/board-service": "^4.0.25",
|
|
64
|
+
"@things-factory/board-ui": "^4.0.25",
|
|
65
|
+
"@things-factory/code-ui": "^4.0.25",
|
|
66
|
+
"@things-factory/context-ui": "^4.0.25",
|
|
67
|
+
"@things-factory/export-ui": "^4.0.25",
|
|
68
|
+
"@things-factory/export-ui-csv": "^4.0.25",
|
|
69
|
+
"@things-factory/export-ui-excel": "^4.0.25",
|
|
70
|
+
"@things-factory/fav-base": "^4.0.25",
|
|
71
|
+
"@things-factory/form-ui": "^4.0.25",
|
|
72
|
+
"@things-factory/grist-ui": "^4.0.25",
|
|
73
|
+
"@things-factory/help": "^4.0.25",
|
|
74
|
+
"@things-factory/i18n-ui": "^4.0.25",
|
|
75
|
+
"@things-factory/id-rule-base": "^4.0.25",
|
|
76
|
+
"@things-factory/import-ui": "^4.0.25",
|
|
77
|
+
"@things-factory/import-ui-excel": "^4.0.25",
|
|
78
|
+
"@things-factory/menu-ui": "^4.0.25",
|
|
79
|
+
"@things-factory/more-ui": "^4.0.25",
|
|
80
|
+
"@things-factory/notification": "^4.0.25",
|
|
81
|
+
"@things-factory/pdf": "^4.0.25",
|
|
82
|
+
"@things-factory/print-proxy-service": "^4.0.25",
|
|
83
|
+
"@things-factory/print-service": "^4.0.25",
|
|
84
|
+
"@things-factory/print-ui": "^4.0.25",
|
|
85
|
+
"@things-factory/product-base": "^4.0.25",
|
|
86
|
+
"@things-factory/resource-ui": "^4.0.25",
|
|
87
|
+
"@things-factory/sales-ui": "^4.0.25",
|
|
88
|
+
"@things-factory/scene-data-transform": "^4.0.25",
|
|
89
|
+
"@things-factory/scene-excel": "^4.0.25",
|
|
90
|
+
"@things-factory/scene-firebase": "^4.0.25",
|
|
91
|
+
"@things-factory/scene-form": "^4.0.25",
|
|
92
|
+
"@things-factory/scene-google-map": "^4.0.25",
|
|
93
|
+
"@things-factory/scene-graphql": "^4.0.25",
|
|
94
94
|
"@things-factory/scene-half-roundrect": "^4.0.9",
|
|
95
|
-
"@things-factory/scene-label": "^4.0.
|
|
96
|
-
"@things-factory/scene-marker": "^4.0.
|
|
97
|
-
"@things-factory/scene-mqtt": "^4.0.
|
|
98
|
-
"@things-factory/scene-news-ticker": "^4.0.
|
|
99
|
-
"@things-factory/scene-restful": "^4.0.
|
|
100
|
-
"@things-factory/scene-visualizer": "^4.0.
|
|
101
|
-
"@things-factory/setting-ui": "^4.0.
|
|
102
|
-
"@things-factory/system-ui": "^4.0.
|
|
103
|
-
"@things-factory/transport-base": "^4.0.
|
|
104
|
-
"@things-factory/tutorial-ui": "^4.0.
|
|
105
|
-
"@things-factory/warehouse-base": "^4.0.
|
|
106
|
-
"@things-factory/worksheet-base": "^4.0.
|
|
95
|
+
"@things-factory/scene-label": "^4.0.25",
|
|
96
|
+
"@things-factory/scene-marker": "^4.0.25",
|
|
97
|
+
"@things-factory/scene-mqtt": "^4.0.25",
|
|
98
|
+
"@things-factory/scene-news-ticker": "^4.0.25",
|
|
99
|
+
"@things-factory/scene-restful": "^4.0.25",
|
|
100
|
+
"@things-factory/scene-visualizer": "^4.0.25",
|
|
101
|
+
"@things-factory/setting-ui": "^4.0.25",
|
|
102
|
+
"@things-factory/system-ui": "^4.0.25",
|
|
103
|
+
"@things-factory/transport-base": "^4.0.25",
|
|
104
|
+
"@things-factory/tutorial-ui": "^4.0.25",
|
|
105
|
+
"@things-factory/warehouse-base": "^4.0.25",
|
|
106
|
+
"@things-factory/worksheet-base": "^4.0.25"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@things-factory/builder": "^4.0.
|
|
109
|
+
"@things-factory/builder": "^4.0.25"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "9c44141d651dab7b4a9c0f0b6fecb8d6937d116f"
|
|
112
112
|
}
|
|
@@ -28,6 +28,7 @@ export const productLabelReport = {
|
|
|
28
28
|
WHERE "bizplace_id" = '${bizplaceId}'
|
|
29
29
|
${type ? `AND "type" ilike '%${type}%'` : ''}
|
|
30
30
|
AND "date"::date BETWEEN '${fromDate}' AND '${toDate}'
|
|
31
|
+
ORDER BY type ASC, date ASC
|
|
31
32
|
`)
|
|
32
33
|
|
|
33
34
|
// @farishelmi any usage for this function? If no please remove.
|