@things-factory/operato-wms 4.3.39 → 4.3.40
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/bulk-operation/bulk-operation.js +13 -2
- package/client/pages/bulk-operation/validate-ro-popup.js +40 -0
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +2 -2
- package/client/pages/order/arrival-notice/create-arrival-notice.js +2 -2
- package/client/pages/order/goods-received-note/received-note-detail.js +187 -15
- package/client/pages/order/release-order/create-release-order.js +500 -6
- package/client/pages/order/release-order/release-order-detail.js +756 -165
- package/client/pages/order/transport-order/delivery-note-popup.js +970 -126
- package/client/pages/order/transport-order/print-delivery-note.js +162 -2
- package/client/pages/outbound/loading-product.js +87 -77
- package/client/pages/outbound/merged-outbound-worksheet.js +2 -2
- package/client/pages/outbound/picking-product.js +11 -7
- package/client/pages/outbound/route-label-popup.js +283 -191
- package/client/pages/outbound/sorting-product.js +7 -7
- package/client/pages/report/inbound-serial-number-report.js +86 -9
- package/client/pages/report/inventory-report.js +10 -0
- package/client/pages/report/outbound-serial-number-report.js +87 -9
- package/dist-server/graphql/resolvers/dashboard/inventory-expiry-monitor.js +10 -5
- package/dist-server/graphql/resolvers/dashboard/inventory-expiry-monitor.js.map +1 -1
- package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js +11 -5
- package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/inbound-serial-number-report.js +33 -4
- package/dist-server/graphql/resolvers/reports/inbound-serial-number-report.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/outbound-serial-number-report.js +33 -8
- package/dist-server/graphql/resolvers/reports/outbound-serial-number-report.js.map +1 -1
- package/dist-server/utils/report-query-util.js +3 -2
- package/dist-server/utils/report-query-util.js.map +1 -1
- package/helps/release-note.ko.md +10 -12
- package/helps/release-note.md +10 -12
- package/helps/release-note.ms.md +10 -12
- package/helps/release-note.zh.md +10 -12
- package/package.json +21 -20
- package/server/graphql/resolvers/dashboard/inventory-expiry-monitor.ts +10 -8
- package/server/graphql/resolvers/dashboard/outbound-order-by-status.ts +10 -7
- package/server/graphql/resolvers/reports/inbound-serial-number-report.ts +34 -4
- package/server/graphql/resolvers/reports/outbound-serial-number-report.ts +34 -8
- package/server/utils/report-query-util.ts +3 -2
- package/translations/en.json +31 -0
- package/translations/ko.json +10 -1
- package/translations/ms.json +11 -1
- package/translations/zh.json +10 -1
|
@@ -195,6 +195,7 @@ class BulkOperation extends localize(i18next)(PageView) {
|
|
|
195
195
|
refNo3: '',
|
|
196
196
|
releaseDate: '',
|
|
197
197
|
attentionTo: '',
|
|
198
|
+
attentionCompany: '',
|
|
198
199
|
deliveryAddress1: '',
|
|
199
200
|
deliveryAddress2: '',
|
|
200
201
|
deliveryAddress3: '',
|
|
@@ -208,7 +209,12 @@ class BulkOperation extends localize(i18next)(PageView) {
|
|
|
208
209
|
packingType: '',
|
|
209
210
|
packingSize: 0,
|
|
210
211
|
uom: '',
|
|
211
|
-
releaseQty: 0
|
|
212
|
+
releaseQty: 0,
|
|
213
|
+
billingAddress: '',
|
|
214
|
+
billingPostalCode: '',
|
|
215
|
+
billingCountry: '',
|
|
216
|
+
billingState: '',
|
|
217
|
+
billingCity: ''
|
|
212
218
|
}
|
|
213
219
|
]
|
|
214
220
|
}
|
|
@@ -425,7 +431,12 @@ class BulkOperation extends localize(i18next)(PageView) {
|
|
|
425
431
|
: null,
|
|
426
432
|
postalCode: String(record.postalCode || ''),
|
|
427
433
|
phone1: String(record.phone1 || ''),
|
|
428
|
-
exportOption: false
|
|
434
|
+
exportOption: false,
|
|
435
|
+
billingAddress: String(record.billingAddress || ''),
|
|
436
|
+
billingPostalCode: String(record.billingPostalCode || ''),
|
|
437
|
+
billingCountry: String(record.billingCountry || ''),
|
|
438
|
+
billingState: String(record.billingState || ''),
|
|
439
|
+
billingCity: String(record.billingCity || '')
|
|
429
440
|
}
|
|
430
441
|
})}
|
|
431
442
|
.bizplaceId=${this._roBizplaceId}
|
|
@@ -148,6 +148,36 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
|
|
|
148
148
|
header: i18next.t('field.delivery_address_4'),
|
|
149
149
|
width: 150
|
|
150
150
|
},
|
|
151
|
+
{
|
|
152
|
+
type: 'string',
|
|
153
|
+
name: 'billingAddress',
|
|
154
|
+
header: i18next.t('field.billing_address'),
|
|
155
|
+
width: 150
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
type: 'string',
|
|
159
|
+
name: 'billingPostalCode',
|
|
160
|
+
header: i18next.t('field.billing_postal_code'),
|
|
161
|
+
width: 150
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: 'string',
|
|
165
|
+
name: 'billingCountry',
|
|
166
|
+
header: i18next.t('field.billing_country'),
|
|
167
|
+
width: 150
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
type: 'string',
|
|
171
|
+
name: 'billingState',
|
|
172
|
+
header: i18next.t('field.billing_state'),
|
|
173
|
+
width: 150
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
type: 'string',
|
|
177
|
+
name: 'billingCity',
|
|
178
|
+
header: i18next.t('field.billing_city'),
|
|
179
|
+
width: 150
|
|
180
|
+
},
|
|
151
181
|
{
|
|
152
182
|
type: 'string',
|
|
153
183
|
name: 'city',
|
|
@@ -290,6 +320,11 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
|
|
|
290
320
|
deliveryAddress2
|
|
291
321
|
deliveryAddress3
|
|
292
322
|
deliveryAddress4
|
|
323
|
+
billingAddress
|
|
324
|
+
billingCity
|
|
325
|
+
billingPostalCode
|
|
326
|
+
billingState
|
|
327
|
+
billingCountry
|
|
293
328
|
attentionTo
|
|
294
329
|
city
|
|
295
330
|
state
|
|
@@ -344,6 +379,11 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
|
|
|
344
379
|
deliveryAddress2: x.deliveryAddress2,
|
|
345
380
|
deliveryAddress3: x.deliveryAddress3,
|
|
346
381
|
deliveryAddress4: x.deliveryAddress4,
|
|
382
|
+
billingAddress: x.billingAddress,
|
|
383
|
+
billingCity: x.billingCity,
|
|
384
|
+
billingState: x.billingState,
|
|
385
|
+
billingPostalCode: x.billingPostalCode,
|
|
386
|
+
billingCountry: x.billingCountry,
|
|
347
387
|
attentionTo: x.attentionTo,
|
|
348
388
|
city: x.city,
|
|
349
389
|
state: x.state,
|
|
@@ -1308,7 +1308,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
|
|
|
1308
1308
|
palletQty: record.palletQty,
|
|
1309
1309
|
printQty: record.palletQty,
|
|
1310
1310
|
packingType: record.packingType,
|
|
1311
|
-
bizplace: this.
|
|
1311
|
+
bizplace: this._bizplaceName
|
|
1312
1312
|
}
|
|
1313
1313
|
})
|
|
1314
1314
|
}
|
|
@@ -1320,7 +1320,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
_openCartonLabelPrintPopup() {
|
|
1323
|
-
openPopup(html` <carton-label-popup .bizplaceName="${this.
|
|
1323
|
+
openPopup(html` <carton-label-popup .bizplaceName="${this._bizplaceName}"></carton-label-popup> `, {
|
|
1324
1324
|
backdrop: true,
|
|
1325
1325
|
size: 'small',
|
|
1326
1326
|
title: i18next.t('title.carton_label')
|
|
@@ -637,7 +637,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
637
637
|
display: '',
|
|
638
638
|
value: ''
|
|
639
639
|
},
|
|
640
|
-
...this.packingTypes.map(type => {
|
|
640
|
+
...(this.packingTypes || []).map(type => {
|
|
641
641
|
return { display: type.name, value: type.name }
|
|
642
642
|
})
|
|
643
643
|
]
|
|
@@ -662,7 +662,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
|
|
|
662
662
|
display: '',
|
|
663
663
|
value: ''
|
|
664
664
|
},
|
|
665
|
-
...this.uomValueUnits.map(unit => {
|
|
665
|
+
...(this.uomValueUnits || []).map(unit => {
|
|
666
666
|
return { display: unit.name, value: unit.name }
|
|
667
667
|
})
|
|
668
668
|
]
|
|
@@ -11,7 +11,8 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
|
|
|
11
11
|
return {
|
|
12
12
|
_grnNo: String,
|
|
13
13
|
_status: String,
|
|
14
|
-
_domainName: String
|
|
14
|
+
_domainName: String,
|
|
15
|
+
_data: Object
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -54,6 +55,10 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
|
|
|
54
55
|
return {
|
|
55
56
|
title: i18next.t('title.goods_received_note_details'),
|
|
56
57
|
actions,
|
|
58
|
+
exportable: {
|
|
59
|
+
name: i18next.t('title.goods_received_note_details'),
|
|
60
|
+
data: this._exportableData.bind(this)
|
|
61
|
+
},
|
|
57
62
|
help: 'operato-wms/goods-received-note/received-note-detail'
|
|
58
63
|
}
|
|
59
64
|
}
|
|
@@ -69,8 +74,7 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
|
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
if (this._grnNo) {
|
|
72
|
-
|
|
73
|
-
await this._fetchGRNTemplate()
|
|
77
|
+
this._fetchGRNTemplate()
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
this.updateContext()
|
|
@@ -105,30 +109,48 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
|
|
|
105
109
|
}
|
|
106
110
|
|
|
107
111
|
async _fetchGRN() {
|
|
112
|
+
var timezoneOffSet = new Date().getTimezoneOffset().toString()
|
|
113
|
+
|
|
108
114
|
if (!this._grnNo) return
|
|
109
115
|
const response = await client.query({
|
|
110
116
|
query: gql`
|
|
111
|
-
query goodsReceivalNote($name: String!) {
|
|
112
|
-
goodsReceivalNote(name: $name) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
query goodsReceivalNote($name: String!, $timezoneOffSet: String!) {
|
|
118
|
+
goodsReceivalNote(name: $name, timezoneOffSet: $timezoneOffSet) {
|
|
119
|
+
grnNo
|
|
120
|
+
ganNo
|
|
121
|
+
refGANNo
|
|
122
|
+
refGANNo2
|
|
123
|
+
refGANNo3
|
|
124
|
+
companyDomain
|
|
125
|
+
supplier
|
|
126
|
+
date
|
|
127
|
+
productLists {
|
|
128
|
+
po
|
|
129
|
+
productSKU
|
|
130
|
+
productName
|
|
131
|
+
productType
|
|
132
|
+
productBatch
|
|
133
|
+
expectedQty
|
|
134
|
+
actualQty
|
|
135
|
+
actualUomValue
|
|
136
|
+
productUom
|
|
137
|
+
expiryDate
|
|
138
|
+
manufactureDate
|
|
139
|
+
remark
|
|
140
|
+
batchNo
|
|
141
|
+
unitPrice
|
|
119
142
|
}
|
|
120
143
|
}
|
|
121
144
|
}
|
|
122
145
|
`,
|
|
123
146
|
variables: {
|
|
124
|
-
name: this._grnNo
|
|
147
|
+
name: this._grnNo,
|
|
148
|
+
timezoneOffSet: timezoneOffSet
|
|
125
149
|
}
|
|
126
150
|
})
|
|
127
151
|
|
|
128
152
|
if (!response.errors) {
|
|
129
|
-
|
|
130
|
-
this._status = grn.status
|
|
131
|
-
this._domainName = grn.domain.name
|
|
153
|
+
return response.data.goodsReceivalNote
|
|
132
154
|
}
|
|
133
155
|
}
|
|
134
156
|
|
|
@@ -166,6 +188,156 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
|
|
|
166
188
|
// }
|
|
167
189
|
// }
|
|
168
190
|
|
|
191
|
+
async _exportableData() {
|
|
192
|
+
const { grnNo, ganNo, refGANNo, refGANNo2, refGANNo3, companyDomain, supplier, date, productLists } =
|
|
193
|
+
await this._fetchGRN()
|
|
194
|
+
|
|
195
|
+
const exportData = productLists.map(res => {
|
|
196
|
+
return {
|
|
197
|
+
grnNo,
|
|
198
|
+
ganNo,
|
|
199
|
+
refGANNo,
|
|
200
|
+
refGANNo2,
|
|
201
|
+
refGANNo3,
|
|
202
|
+
companyDomain,
|
|
203
|
+
supplier,
|
|
204
|
+
date,
|
|
205
|
+
...res
|
|
206
|
+
}
|
|
207
|
+
})
|
|
208
|
+
|
|
209
|
+
const headerSetting = [
|
|
210
|
+
{
|
|
211
|
+
header: i18next.t('field.grn'),
|
|
212
|
+
key: 'grnNo',
|
|
213
|
+
width: 25,
|
|
214
|
+
type: 'string'
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
header: i18next.t('field.gan'),
|
|
218
|
+
key: 'ganNo',
|
|
219
|
+
width: 25,
|
|
220
|
+
type: 'string'
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
header: i18next.t('field.po'),
|
|
224
|
+
key: 'po',
|
|
225
|
+
width: 25,
|
|
226
|
+
type: 'string'
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
header: i18next.t('field.ref_no'),
|
|
230
|
+
key: 'refGANNo',
|
|
231
|
+
width: 25,
|
|
232
|
+
type: 'string'
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
header: i18next.t('field.ref_no_2'),
|
|
236
|
+
key: 'refGANNo2',
|
|
237
|
+
width: 25,
|
|
238
|
+
type: 'string'
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
header: i18next.t('field.ref_no_3'),
|
|
242
|
+
key: 'refGANNo3',
|
|
243
|
+
width: 25,
|
|
244
|
+
type: 'string'
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
header: i18next.t('field.company'),
|
|
248
|
+
key: 'companyDomain',
|
|
249
|
+
width: 25,
|
|
250
|
+
type: 'string'
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
header: i18next.t('field.supplier'),
|
|
254
|
+
key: 'supplier',
|
|
255
|
+
width: 25,
|
|
256
|
+
type: 'string'
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
header: i18next.t('field.date'),
|
|
260
|
+
key: 'date',
|
|
261
|
+
width: 25,
|
|
262
|
+
type: 'string'
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
header: i18next.t('field.batch_no'),
|
|
266
|
+
key: 'batchNo',
|
|
267
|
+
width: 25,
|
|
268
|
+
type: 'string'
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
header: i18next.t('field.batch_no'),
|
|
272
|
+
key: 'productSKU',
|
|
273
|
+
width: 25,
|
|
274
|
+
type: 'string'
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
header: i18next.t('field.product_name'),
|
|
278
|
+
key: 'productName',
|
|
279
|
+
width: 25,
|
|
280
|
+
type: 'string'
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
header: i18next.t('field.packing_type'),
|
|
284
|
+
key: 'productType',
|
|
285
|
+
width: 25,
|
|
286
|
+
type: 'string'
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
header: i18next.t('field.expected_qty'),
|
|
290
|
+
key: 'expectedQty',
|
|
291
|
+
width: 25,
|
|
292
|
+
type: 'string'
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
header: i18next.t('field.actual_qty'),
|
|
296
|
+
key: 'actualQty',
|
|
297
|
+
width: 25,
|
|
298
|
+
type: 'string'
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
header: i18next.t('field.actual_uom_value'),
|
|
302
|
+
key: 'actualUomValue',
|
|
303
|
+
width: 25,
|
|
304
|
+
type: 'string'
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
header: i18next.t('field.uom'),
|
|
308
|
+
key: 'productUom',
|
|
309
|
+
width: 25,
|
|
310
|
+
type: 'string'
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
header: i18next.t('field.expiry_date'),
|
|
314
|
+
key: 'expiryDate',
|
|
315
|
+
width: 25,
|
|
316
|
+
type: 'string'
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
header: i18next.t('field.manufacture_date'),
|
|
320
|
+
key: 'manufactureDate',
|
|
321
|
+
width: 25,
|
|
322
|
+
type: 'string'
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
header: i18next.t('field.unit_price'),
|
|
326
|
+
key: 'unitPrice',
|
|
327
|
+
width: 25,
|
|
328
|
+
type: 'number'
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
header: i18next.t('field.remark_issues'),
|
|
332
|
+
key: 'remark',
|
|
333
|
+
width: 25,
|
|
334
|
+
type: 'string'
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
|
|
338
|
+
return { header: headerSetting, data: exportData }
|
|
339
|
+
}
|
|
340
|
+
|
|
169
341
|
_showToast({ type, message }) {
|
|
170
342
|
document.dispatchEvent(
|
|
171
343
|
new CustomEvent('notify', {
|