@things-factory/operato-wms 4.3.101 → 4.3.103
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.
|
@@ -63,6 +63,10 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
63
63
|
get context() {
|
|
64
64
|
return {
|
|
65
65
|
title: i18next.t('title.draft_release_order'),
|
|
66
|
+
exportable: {
|
|
67
|
+
name: i18next.t('title.draft_release_order'),
|
|
68
|
+
data: this.exportableData.bind(this)
|
|
69
|
+
},
|
|
66
70
|
actions: [
|
|
67
71
|
{
|
|
68
72
|
title: i18next.t('button.create_release_order'),
|
|
@@ -193,7 +197,7 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
193
197
|
this.config = {
|
|
194
198
|
rows: { selectable: { multiple: true }, appendable: false },
|
|
195
199
|
list: { fields: ['name', 'releaseDate', 'status', 'updatedAt'] },
|
|
196
|
-
pagination: { limit:
|
|
200
|
+
pagination: { limit: 50, pages: [50, 100, 200, 500] },
|
|
197
201
|
columns: [
|
|
198
202
|
{ type: 'gutter', gutterName: 'sequence' },
|
|
199
203
|
{ type: 'gutter', gutterName: 'row-selector', multiple: true },
|
|
@@ -541,6 +545,52 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
|
|
|
541
545
|
|
|
542
546
|
return response.data.contactPoints.items || []
|
|
543
547
|
}
|
|
548
|
+
|
|
549
|
+
async exportableData() {
|
|
550
|
+
try {
|
|
551
|
+
let records = []
|
|
552
|
+
|
|
553
|
+
const bizplaceFilters = (await this.searchForm.getQueryFilters()).filter(x => x.name === 'bizplaceId')
|
|
554
|
+
|
|
555
|
+
if (bizplaceFilters.length == 0) {
|
|
556
|
+
throw new Error(`Please select a customer for export.`)
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
|
|
560
|
+
records = this.dataGrist.selected
|
|
561
|
+
} else {
|
|
562
|
+
records = this.dataGrist.data.records
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
var headerSetting = this.dataGrist._config.columns
|
|
566
|
+
.filter(column => column.type !== 'gutter' /* && column.record !== undefined */ && column.imex !== undefined)
|
|
567
|
+
.map(column => {
|
|
568
|
+
return column.imex
|
|
569
|
+
})
|
|
570
|
+
|
|
571
|
+
var data = records.map(item => {
|
|
572
|
+
return {
|
|
573
|
+
id: item.id,
|
|
574
|
+
...this._columns
|
|
575
|
+
.filter(
|
|
576
|
+
column => column.type !== 'gutter' /* && column.record !== undefined */ && column.imex !== undefined
|
|
577
|
+
)
|
|
578
|
+
.reduce((record, column) => {
|
|
579
|
+
record[column.imex.key] = column.imex.key
|
|
580
|
+
.split('.')
|
|
581
|
+
.reduce((obj, key) => (obj && obj[key] !== 'undefined' ? obj[key] : undefined), item)
|
|
582
|
+
if (column.type === 'datetime') {
|
|
583
|
+
record[column.imex.key] = new Date(parseInt(record[column.imex.key])).toLocaleString()
|
|
584
|
+
}
|
|
585
|
+
return record
|
|
586
|
+
}, {})
|
|
587
|
+
}
|
|
588
|
+
})
|
|
589
|
+
return { header: headerSetting, data: data }
|
|
590
|
+
} catch (e) {
|
|
591
|
+
this._showToast(e)
|
|
592
|
+
}
|
|
593
|
+
}
|
|
544
594
|
}
|
|
545
595
|
|
|
546
596
|
window.customElements.define('draft-release-good-list', DraftReleaseGoodList)
|
|
@@ -89,20 +89,18 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
89
89
|
|
|
90
90
|
get context() {
|
|
91
91
|
var actions = []
|
|
92
|
-
if (this.releaseGoodNo && this.platform
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
})
|
|
92
|
+
if (this.releaseGoodNo && this.platform === PLATFORM.LAZADA.value && this.completed && this.trackingNo) {
|
|
93
|
+
actions.push({
|
|
94
|
+
title: i18next.t('button.print_airway_bill'),
|
|
95
|
+
action: this.printAirwayBill.bind(this),
|
|
96
|
+
...CommonButtonStyles.label
|
|
97
|
+
})
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
99
|
+
actions.push({
|
|
100
|
+
title: i18next.t('button.print_invoice'),
|
|
101
|
+
action: this.printInvoice.bind(this),
|
|
102
|
+
...CommonButtonStyles.label
|
|
103
|
+
})
|
|
106
104
|
}
|
|
107
105
|
|
|
108
106
|
if (this.releaseGoodNo && this.platform == 'operato' && this.completed) {
|
|
@@ -151,7 +149,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
151
149
|
if (this.orderRemark) {
|
|
152
150
|
actions.push({
|
|
153
151
|
title: i18next.t('button.order_remark'),
|
|
154
|
-
action: this.
|
|
152
|
+
action: this.openOrderRemarkPopup.bind(this),
|
|
155
153
|
...CommonButtonStyles.inspect
|
|
156
154
|
})
|
|
157
155
|
}
|
|
@@ -159,7 +157,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
159
157
|
if (this.toggleComplete) {
|
|
160
158
|
actions.push({
|
|
161
159
|
title: i18next.t('button.complete'),
|
|
162
|
-
action: this.
|
|
160
|
+
action: this.complete.bind(this),
|
|
163
161
|
...CommonButtonStyles.submit
|
|
164
162
|
})
|
|
165
163
|
}
|
|
@@ -209,19 +207,19 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
209
207
|
return this._selectedTaskStatus && this._selectedTaskStatus === WORKSHEET_STATUS.EXECUTING.value
|
|
210
208
|
}
|
|
211
209
|
|
|
212
|
-
|
|
210
|
+
focusOnProductBarcodeInput() {
|
|
213
211
|
setTimeout(() => this.productBarcodeInput.focus(), 100)
|
|
214
212
|
}
|
|
215
213
|
|
|
216
|
-
|
|
214
|
+
focusOnReleaseGoodInput() {
|
|
217
215
|
setTimeout(() => this.releaseGoodNoInput.focus(), 100)
|
|
218
216
|
}
|
|
219
217
|
|
|
220
|
-
|
|
218
|
+
focusOnReleaseQtyInput() {
|
|
221
219
|
setTimeout(() => this.releaseQtyInput.focus(), 100)
|
|
222
220
|
}
|
|
223
221
|
|
|
224
|
-
|
|
222
|
+
focusOnSerialInput() {
|
|
225
223
|
if (this.serialInput) {
|
|
226
224
|
setTimeout(() => this.serialInput.focus(), 50)
|
|
227
225
|
}
|
|
@@ -239,7 +237,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
239
237
|
if (e.keyCode === 13) {
|
|
240
238
|
e.preventDefault()
|
|
241
239
|
if (this.releaseGoodNoInput.value) {
|
|
242
|
-
this.
|
|
240
|
+
this.fetchInventories(this.releaseGoodNoInput.value)
|
|
243
241
|
this.releaseGoodNoInput.value = ''
|
|
244
242
|
}
|
|
245
243
|
}
|
|
@@ -276,7 +274,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
276
274
|
${i18next.t('title.order_no')}: ${this.releaseGoodNo}
|
|
277
275
|
${this.releaseGoodNo
|
|
278
276
|
? html`(${this._bizplaceName})
|
|
279
|
-
<mwc-icon @click="${this.
|
|
277
|
+
<mwc-icon @click="${this.openWorksheetInformation.bind(this)}">info</mwc-icon>`
|
|
280
278
|
: ''}
|
|
281
279
|
</legend>
|
|
282
280
|
</fieldset>
|
|
@@ -320,8 +318,8 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
320
318
|
this._selectedTaskStatus = record.status
|
|
321
319
|
this._isRequireSerialNumberScanningOutbound = record.product.isRequireSerialNumberScanningOutbound
|
|
322
320
|
|
|
323
|
-
if (this._enableProductScanning) this.
|
|
324
|
-
else this.
|
|
321
|
+
if (this._enableProductScanning) this.focusOnProductBarcodeInput()
|
|
322
|
+
else this.focusOnReleaseQtyInput()
|
|
325
323
|
}
|
|
326
324
|
|
|
327
325
|
this.updateContext()
|
|
@@ -386,11 +384,11 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
386
384
|
|
|
387
385
|
pageUpdated() {
|
|
388
386
|
if (this.active) {
|
|
389
|
-
this.
|
|
387
|
+
this.focusOnReleaseGoodInput()
|
|
390
388
|
}
|
|
391
389
|
}
|
|
392
390
|
|
|
393
|
-
async
|
|
391
|
+
async fetchInventories(releaseGoodNo) {
|
|
394
392
|
if (!releaseGoodNo) return
|
|
395
393
|
const response = await client.query({
|
|
396
394
|
query: gql`
|
|
@@ -540,9 +538,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
540
538
|
this._enableProductScanning = await fetchSettingRule('enable-product-scanning', worksheetInfo.partnerDomainId)
|
|
541
539
|
|
|
542
540
|
if (this._enableProductScanning) {
|
|
543
|
-
this.
|
|
541
|
+
this.focusOnProductBarcodeInput()
|
|
544
542
|
} else {
|
|
545
|
-
this.
|
|
543
|
+
this.focusOnReleaseQtyInput()
|
|
546
544
|
}
|
|
547
545
|
|
|
548
546
|
this.updateContext()
|
|
@@ -563,7 +561,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
563
561
|
.sort((a, b) => a.completed - b.completed)
|
|
564
562
|
}
|
|
565
563
|
|
|
566
|
-
|
|
564
|
+
clearView() {
|
|
567
565
|
this.data = { records: [] }
|
|
568
566
|
this.infoForm.reset()
|
|
569
567
|
this.inputForm.reset()
|
|
@@ -651,9 +649,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
651
649
|
}
|
|
652
650
|
|
|
653
651
|
// print PDF document
|
|
654
|
-
this.
|
|
652
|
+
this.callPrintDialog(convertedPdfUrl)
|
|
655
653
|
} catch (error) {
|
|
656
|
-
this.
|
|
654
|
+
this.showToast({ message: 'Waiting for AWB from marketplace. Please retry in a while.' })
|
|
657
655
|
}
|
|
658
656
|
}
|
|
659
657
|
|
|
@@ -661,12 +659,12 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
661
659
|
var orderDocInfo = await this.getOrderDocument(this.refNo, 'invoice')
|
|
662
660
|
|
|
663
661
|
if (orderDocInfo?.length === 0) {
|
|
664
|
-
this.
|
|
662
|
+
this.showToast({ message: i18next.t('text.no_document_available') })
|
|
665
663
|
} else {
|
|
666
664
|
switch (this.platform) {
|
|
667
665
|
case 'lazada':
|
|
668
666
|
var decodedHTML = atob(orderDocInfo[0].file)
|
|
669
|
-
this.
|
|
667
|
+
this.callPrintDialog(decodedHTML)
|
|
670
668
|
break
|
|
671
669
|
}
|
|
672
670
|
}
|
|
@@ -676,25 +674,23 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
676
674
|
var orderDocInfo = await this.getOrderDocument(this.refNo, 'shippingLabel')
|
|
677
675
|
|
|
678
676
|
if (orderDocInfo?.length === 0) {
|
|
679
|
-
this.
|
|
677
|
+
this.showToast({ message: i18next.t('text.no_document_available') })
|
|
680
678
|
} else {
|
|
679
|
+
let content
|
|
681
680
|
if (this.platform == 'shopee' && !orderDocInfo[0]?.isShopeeV2) {
|
|
682
681
|
const orderDocUrls = orderDocInfo.map(item => item.airwayBill)
|
|
683
682
|
for (var i = 0; i < orderDocUrls.length; i++) {
|
|
684
683
|
orderDocUrls[i] = 'urls=' + orderDocUrls[i]
|
|
685
684
|
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
this._callPrintDialog(convertedPdfUrl)
|
|
685
|
+
let mergedURL = orderDocUrls.toString().replace(/,/g, '&')
|
|
686
|
+
content = `/pdf/merge?${mergedURL}`
|
|
689
687
|
} else if (this.platform == 'lazada') {
|
|
690
|
-
|
|
691
|
-
this._callPrintDialog(decodedHTML)
|
|
688
|
+
content = atob(orderDocInfo[0].file)
|
|
692
689
|
} else {
|
|
693
690
|
let url = new URL(window.location)
|
|
694
|
-
|
|
695
|
-
convertedPdfUrl = `${url.origin}/proxy?url=${encodeURIComponent(orderDocInfo[0].airwayBill)}`
|
|
696
|
-
this._callPrintDialog(convertedPdfUrl)
|
|
691
|
+
content = `${url.origin}/proxy?url=${encodeURIComponent(orderDocInfo[0].airwayBill)}`
|
|
697
692
|
}
|
|
693
|
+
this.callPrintDialog(content)
|
|
698
694
|
}
|
|
699
695
|
}
|
|
700
696
|
|
|
@@ -720,18 +716,18 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
720
716
|
return response.data.getOrderDocument
|
|
721
717
|
}
|
|
722
718
|
} catch (e) {
|
|
723
|
-
this.
|
|
719
|
+
this.showToast(e)
|
|
724
720
|
}
|
|
725
721
|
}
|
|
726
722
|
|
|
727
|
-
async
|
|
723
|
+
async callPrintDialog(contentSource) {
|
|
728
724
|
switch (this.platform) {
|
|
729
725
|
case 'lazada':
|
|
730
726
|
GhostPrint.print({
|
|
731
727
|
srcdoc: contentSource,
|
|
732
728
|
pending: 1000,
|
|
733
729
|
onfinish: () => {
|
|
734
|
-
this.
|
|
730
|
+
this.showToast({ message: i18next.t('text.document_has_been_generated') })
|
|
735
731
|
}
|
|
736
732
|
})
|
|
737
733
|
break
|
|
@@ -741,7 +737,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
741
737
|
GhostPrint.print({
|
|
742
738
|
src: contentSource,
|
|
743
739
|
onfinish: () => {
|
|
744
|
-
this.
|
|
740
|
+
this.showToast({ message: i18next.t('text.document_has_been_generated') })
|
|
745
741
|
}
|
|
746
742
|
})
|
|
747
743
|
break
|
|
@@ -753,7 +749,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
753
749
|
e.preventDefault()
|
|
754
750
|
console.time('time execution for product barcode scanning')
|
|
755
751
|
try {
|
|
756
|
-
await this.
|
|
752
|
+
await this.validatePacking()
|
|
757
753
|
|
|
758
754
|
let response = this._enableProductScanning ? await this.productBarcodePacking() : await this.commonPacking()
|
|
759
755
|
|
|
@@ -773,7 +769,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
773
769
|
this.serialInput.value = ''
|
|
774
770
|
}
|
|
775
771
|
|
|
776
|
-
this.
|
|
772
|
+
this.fetchInventories(this.releaseGoodNo)
|
|
777
773
|
}
|
|
778
774
|
} catch (e) {
|
|
779
775
|
if (this._isRequireSerialNumberScanningOutbound && this._isBatchPicking) this.serialInput.value = ''
|
|
@@ -784,7 +780,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
784
780
|
this._selectedTaskStatus = null
|
|
785
781
|
}
|
|
786
782
|
this._selectedOrderInventory = null
|
|
787
|
-
this.
|
|
783
|
+
this.showToast(e)
|
|
788
784
|
} finally {
|
|
789
785
|
this._enableProductScanning && !this._isRequireSerialNumberScanningOutbound
|
|
790
786
|
? (this.productBarcodeInput.value = '')
|
|
@@ -797,7 +793,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
797
793
|
}
|
|
798
794
|
|
|
799
795
|
async productBarcodePacking() {
|
|
800
|
-
if (this._scanning) return this.
|
|
796
|
+
if (this._scanning) return this.showToast({ message: i18next.t('text.previous_scan_is_executing') })
|
|
801
797
|
this._scanning = true
|
|
802
798
|
let response = await client.mutate({
|
|
803
799
|
mutation: gql`
|
|
@@ -821,7 +817,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
821
817
|
}
|
|
822
818
|
|
|
823
819
|
async commonPacking() {
|
|
824
|
-
if (this._scanning) return this.
|
|
820
|
+
if (this._scanning) return this.showToast({ message: i18next.t('text.previous_scan_is_executing') })
|
|
825
821
|
this._scanning = true
|
|
826
822
|
return await client.mutate({
|
|
827
823
|
mutation: gql`
|
|
@@ -841,12 +837,12 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
841
837
|
})
|
|
842
838
|
}
|
|
843
839
|
|
|
844
|
-
|
|
840
|
+
validatePacking() {
|
|
845
841
|
// validate for order selection
|
|
846
842
|
if (this._enableProductScanning) {
|
|
847
843
|
//if no input
|
|
848
844
|
if (!this.productBarcodeInput.value) {
|
|
849
|
-
this.
|
|
845
|
+
this.focusOnProductBarcodeInput()
|
|
850
846
|
throw new Error(i18next.t('text.no_product_barcode_detected'))
|
|
851
847
|
}
|
|
852
848
|
|
|
@@ -874,27 +870,26 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
874
870
|
|
|
875
871
|
// Release qty existing
|
|
876
872
|
if (!parseInt(this.releaseQtyInput.value)) {
|
|
877
|
-
this.
|
|
873
|
+
this.focusOnReleaseQtyInput()
|
|
878
874
|
throw new Error(i18next.t('text.release_qty_is_empty'))
|
|
879
875
|
}
|
|
880
876
|
|
|
881
877
|
// typed qty should be matched with release qty.
|
|
882
878
|
if (parseInt(this.releaseQtyInput.value) !== this._selectedOrderInventory.releaseQty) {
|
|
883
|
-
this.
|
|
879
|
+
this.focusOnReleaseQtyInput()
|
|
884
880
|
throw new Error(i18next.t('text.wrong_release_qty'))
|
|
885
881
|
}
|
|
886
882
|
}
|
|
887
883
|
|
|
888
884
|
if (this._isRequireSerialNumberScanningOutbound && this._isBatchPicking) {
|
|
889
885
|
if (!this.serialInput?.value) {
|
|
890
|
-
this.
|
|
886
|
+
this.focusOnSerialInput()
|
|
891
887
|
throw new Error(i18next.t('text.empty_serial_number'))
|
|
892
888
|
}
|
|
893
889
|
}
|
|
894
890
|
}
|
|
895
891
|
|
|
896
|
-
async
|
|
897
|
-
const totalBinRO = this.totalBinRO
|
|
892
|
+
async complete() {
|
|
898
893
|
const response = await client.mutate({
|
|
899
894
|
mutation: gql`
|
|
900
895
|
mutation completePacking($releaseGoodNo: String!) {
|
|
@@ -905,7 +900,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
905
900
|
})
|
|
906
901
|
|
|
907
902
|
if (!response.errors) {
|
|
908
|
-
if (totalBinRO > 1) {
|
|
903
|
+
if (this.totalBinRO > 1) {
|
|
909
904
|
const resultNextOrder = await CustomAlert({
|
|
910
905
|
title: i18next.t('title.packing'),
|
|
911
906
|
text: i18next.t('text.packing_is_completed'),
|
|
@@ -913,23 +908,23 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
913
908
|
})
|
|
914
909
|
|
|
915
910
|
if (!resultNextOrder.value) {
|
|
916
|
-
this.
|
|
917
|
-
this.
|
|
911
|
+
this.focusOnReleaseGoodInput()
|
|
912
|
+
this.clearView()
|
|
918
913
|
this.updateContext()
|
|
919
914
|
return
|
|
920
915
|
}
|
|
921
916
|
|
|
922
|
-
this.
|
|
917
|
+
this.clearView()
|
|
923
918
|
this.updateContext()
|
|
924
919
|
|
|
925
920
|
this.checkedRemarkAt = ''
|
|
926
|
-
await this.
|
|
921
|
+
await this.fetchInventories(this.binRo)
|
|
927
922
|
this.toggleComplete = false
|
|
928
|
-
this.
|
|
923
|
+
this.focusOnProductBarcodeInput()
|
|
929
924
|
} else {
|
|
930
925
|
this.toggleComplete = false
|
|
931
926
|
|
|
932
|
-
this.
|
|
927
|
+
this.clearView()
|
|
933
928
|
this.updateContext()
|
|
934
929
|
|
|
935
930
|
const result = await CustomAlert({
|
|
@@ -939,13 +934,13 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
939
934
|
})
|
|
940
935
|
|
|
941
936
|
if (result.dismiss === 'timer' && result.isDismissed) {
|
|
942
|
-
this.
|
|
937
|
+
this.focusOnReleaseGoodInput()
|
|
943
938
|
}
|
|
944
939
|
}
|
|
945
940
|
}
|
|
946
941
|
}
|
|
947
942
|
|
|
948
|
-
async
|
|
943
|
+
async openOrderRemarkPopup() {
|
|
949
944
|
await sleep(1010)
|
|
950
945
|
openPopup(
|
|
951
946
|
html`
|
|
@@ -954,8 +949,8 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
954
949
|
.releaseGoodNo="${this.releaseGoodNo}"
|
|
955
950
|
.checkedRemarkAt="${this.checkedRemarkAt}"
|
|
956
951
|
@remark-checked="${async () => {
|
|
957
|
-
await this.
|
|
958
|
-
this.
|
|
952
|
+
await this.fetchInventories(this.releaseGoodNo)
|
|
953
|
+
this.showToast({ message: i18next.t('text.order_remark_has_been_checked') })
|
|
959
954
|
}}"
|
|
960
955
|
></order-remark-popup>
|
|
961
956
|
`,
|
|
@@ -967,7 +962,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
967
962
|
)
|
|
968
963
|
}
|
|
969
964
|
|
|
970
|
-
|
|
965
|
+
openWorksheetInformation() {
|
|
971
966
|
openPopup(
|
|
972
967
|
html`
|
|
973
968
|
<worksheet-information-popup .worksheetInformation="${this._worksheetInfo}"></worksheet-information-popup>
|
|
@@ -1003,7 +998,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1003
998
|
.orderId="${this.releaseGoodId}"
|
|
1004
999
|
.data="${this?._selectedOrderInventory}"
|
|
1005
1000
|
@close-serial-number-popup="${async e => {
|
|
1006
|
-
await this.
|
|
1001
|
+
await this.fetchInventories(this.releaseGoodNo)
|
|
1007
1002
|
}}"
|
|
1008
1003
|
></serial-number-popup>
|
|
1009
1004
|
`,
|
|
@@ -1017,7 +1012,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1017
1012
|
)
|
|
1018
1013
|
}
|
|
1019
1014
|
|
|
1020
|
-
async
|
|
1015
|
+
async setOrderToRTS() {
|
|
1021
1016
|
let result = await CustomAlert({
|
|
1022
1017
|
title: i18next.t('title.are_you_sure'),
|
|
1023
1018
|
text: i18next.t('text.set_order_to_ready_to_ship'),
|
|
@@ -1078,14 +1073,14 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1078
1073
|
}
|
|
1079
1074
|
|
|
1080
1075
|
if (!response.errors) {
|
|
1081
|
-
this.
|
|
1076
|
+
this.showToast({ message: i18next.t('text.order_has_been_set_to_ready_to_ship') })
|
|
1082
1077
|
}
|
|
1083
1078
|
} catch (e) {
|
|
1084
|
-
this.
|
|
1079
|
+
this.showToast(e)
|
|
1085
1080
|
}
|
|
1086
1081
|
}
|
|
1087
1082
|
|
|
1088
|
-
|
|
1083
|
+
showToast({ type, message }) {
|
|
1089
1084
|
document.dispatchEvent(
|
|
1090
1085
|
new CustomEvent('notify', {
|
|
1091
1086
|
detail: {
|
package/config.development.js
CHANGED
|
@@ -30,6 +30,19 @@ module.exports = {
|
|
|
30
30
|
connectTimeoutMS: 30000,
|
|
31
31
|
extra: { poolSize: 30 }
|
|
32
32
|
},
|
|
33
|
+
//ormconfig: {
|
|
34
|
+
// name: 'default',
|
|
35
|
+
// type: 'postgres',
|
|
36
|
+
// database: 'dev2',
|
|
37
|
+
// username: 'postgres',
|
|
38
|
+
// password: 'hatio',
|
|
39
|
+
// host: 'localhost',
|
|
40
|
+
// port: 15432,
|
|
41
|
+
// synchronize: false,
|
|
42
|
+
// logging: true,
|
|
43
|
+
// connectTimeoutMS: 30000,
|
|
44
|
+
// extra: { poolSize: 30 }
|
|
45
|
+
//},
|
|
33
46
|
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
|
|
34
47
|
password: {
|
|
35
48
|
lowerCase: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.103",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@things-factory/print-ui": "^4.3.99",
|
|
93
93
|
"@things-factory/product-base": "^4.3.101",
|
|
94
94
|
"@things-factory/resource-ui": "^4.3.99",
|
|
95
|
-
"@things-factory/sales-ui": "^4.3.
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.103",
|
|
96
96
|
"@things-factory/scene-data-transform": "^4.3.99",
|
|
97
97
|
"@things-factory/scene-excel": "^4.3.99",
|
|
98
98
|
"@things-factory/scene-firebase": "^4.3.99",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@things-factory/system-ui": "^4.3.99",
|
|
109
109
|
"@things-factory/transport-base": "^4.3.99",
|
|
110
110
|
"@things-factory/tutorial-ui": "^4.3.99",
|
|
111
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.103",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.103"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@things-factory/builder": "^4.3.99",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"cypress-localstorage-commands": "^1.6.1",
|
|
119
119
|
"eslint-plugin-cypress": "^2.12.1"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "f67847c87df7aa8d7857d5198fe47edb2672cb9d"
|
|
122
122
|
}
|