@things-factory/operato-wms 4.1.30 → 4.1.33
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '@things-factory/barcode-ui'
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
|
-
import './logistics-init/logistics-init-popup'
|
|
4
3
|
import '../components/worksheet-information-popup'
|
|
5
4
|
|
|
6
5
|
import gql from 'graphql-tag'
|
|
@@ -427,9 +426,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
427
426
|
|
|
428
427
|
const { worksheetInfo, worksheetDetailInfos } = response.data.packingWorksheet
|
|
429
428
|
this.data = { records: this.formatWorksheetDetailInfos(worksheetDetailInfos) }
|
|
430
|
-
if (this.data?.records?.length && !this.data.records.some(record => record.completed == false)) {
|
|
431
|
-
return this._completeHandler()
|
|
432
|
-
}
|
|
433
429
|
|
|
434
430
|
this.trackingNo = worksheetInfo.trackingNo
|
|
435
431
|
this.airwayBill = worksheetInfo.airwayBill
|
|
@@ -515,9 +511,14 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
515
511
|
}
|
|
516
512
|
|
|
517
513
|
printSellercraftAirwayBill() {
|
|
518
|
-
let
|
|
514
|
+
let convertedPdfUrl = ''
|
|
515
|
+
if (this.airwayBill.includes('partner.shopeemobile.com')) {
|
|
516
|
+
convertedPdfUrl = `/pdf/merge?urls=${this.airwayBill}`
|
|
517
|
+
} else {
|
|
518
|
+
let url = new URL(window.location)
|
|
519
|
+
convertedPdfUrl = `${url.origin}/proxy?url=${this.airwayBill}`
|
|
520
|
+
}
|
|
519
521
|
|
|
520
|
-
var convertedPdfUrl = `${url.origin}/proxy?url=${this.airwayBill}`
|
|
521
522
|
this._callPrintDialog(convertedPdfUrl)
|
|
522
523
|
}
|
|
523
524
|
|
|
@@ -732,21 +733,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
732
733
|
}
|
|
733
734
|
}
|
|
734
735
|
|
|
735
|
-
async _completeHandler() {
|
|
736
|
-
if (!this.data?.records?.length || this.data.records.some(record => !record.completed)) return
|
|
737
|
-
|
|
738
|
-
const result = await CustomAlert({
|
|
739
|
-
title: i18next.t('title.packing'),
|
|
740
|
-
text: i18next.t('text.do_you_want_to_complete'),
|
|
741
|
-
confirmButton: { text: i18next.t('button.complete') },
|
|
742
|
-
cancelButton: { text: i18next.t('button.cancel') }
|
|
743
|
-
})
|
|
744
|
-
|
|
745
|
-
if (!result.value) return
|
|
746
|
-
|
|
747
|
-
this._complete()
|
|
748
|
-
}
|
|
749
|
-
|
|
750
736
|
async _complete() {
|
|
751
737
|
const response = await client.mutate({
|
|
752
738
|
mutation: gql`
|
|
@@ -768,29 +754,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
768
754
|
}
|
|
769
755
|
}
|
|
770
756
|
|
|
771
|
-
_showLogisticsInitPopup() {
|
|
772
|
-
if (this.checkShippingProviderAndDeliveryType() == true) {
|
|
773
|
-
this.initLogistics()
|
|
774
|
-
} else {
|
|
775
|
-
openPopup(
|
|
776
|
-
html`
|
|
777
|
-
<logistics-init-popup
|
|
778
|
-
.orderInformation="${this.orderInformation}"
|
|
779
|
-
@order-initialised="${() => {
|
|
780
|
-
this._logisticsInitiated = true
|
|
781
|
-
}}"
|
|
782
|
-
></logistics-init-popup>
|
|
783
|
-
`,
|
|
784
|
-
{
|
|
785
|
-
backdrop: true,
|
|
786
|
-
escapable: false,
|
|
787
|
-
size: 'medium',
|
|
788
|
-
title: i18next.t('title.ready_to_ship')
|
|
789
|
-
}
|
|
790
|
-
)
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
|
|
794
757
|
_openWorksheetInformation() {
|
|
795
758
|
openPopup(
|
|
796
759
|
html`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.33",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@things-factory/print-ui": "^4.1.28",
|
|
87
87
|
"@things-factory/product-base": "^4.1.28",
|
|
88
88
|
"@things-factory/resource-ui": "^4.1.28",
|
|
89
|
-
"@things-factory/sales-ui": "^4.1.
|
|
89
|
+
"@things-factory/sales-ui": "^4.1.33",
|
|
90
90
|
"@things-factory/scene-data-transform": "^4.1.28",
|
|
91
91
|
"@things-factory/scene-excel": "^4.1.28",
|
|
92
92
|
"@things-factory/scene-firebase": "^4.1.28",
|
|
@@ -102,11 +102,11 @@
|
|
|
102
102
|
"@things-factory/system-ui": "^4.1.28",
|
|
103
103
|
"@things-factory/transport-base": "^4.1.28",
|
|
104
104
|
"@things-factory/tutorial-ui": "^4.1.28",
|
|
105
|
-
"@things-factory/warehouse-base": "^4.1.
|
|
106
|
-
"@things-factory/worksheet-base": "^4.1.
|
|
105
|
+
"@things-factory/warehouse-base": "^4.1.33",
|
|
106
|
+
"@things-factory/worksheet-base": "^4.1.33"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@things-factory/builder": "^4.1.28"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "1be06c783733190b91ab6c4b7b32f34d22aeaed6"
|
|
112
112
|
}
|