@things-factory/operato-wms 4.3.57 → 4.3.59
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.
|
@@ -607,27 +607,23 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
607
607
|
if (orderDocInfo?.length === 0) {
|
|
608
608
|
this._showToast({ message: i18next.t('text.no_document_available') })
|
|
609
609
|
} else {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
this._callPrintDialog(convertedPdfUrl)
|
|
619
|
-
break
|
|
620
|
-
|
|
621
|
-
case 'lazada':
|
|
622
|
-
var decodedHTML = atob(orderDocInfo[0].file)
|
|
623
|
-
this._callPrintDialog(decodedHTML)
|
|
624
|
-
break
|
|
610
|
+
if (this.platform == 'shopee' && !orderDocInfo[0]?.isShopeeV2) {
|
|
611
|
+
const orderDocUrls = orderDocInfo.map(item => item.airwayBill)
|
|
612
|
+
for (var i = 0; i < orderDocUrls.length; i++) {
|
|
613
|
+
orderDocUrls[i] = 'urls=' + orderDocUrls[i]
|
|
614
|
+
}
|
|
615
|
+
var mergedURL = orderDocUrls.toString().replace(/,/g, '&')
|
|
616
|
+
var convertedPdfUrl = `/pdf/merge?${mergedURL}`
|
|
617
|
+
this._callPrintDialog(convertedPdfUrl)
|
|
625
618
|
|
|
626
|
-
|
|
627
|
-
|
|
619
|
+
} else if (this.platform == 'lazada') {
|
|
620
|
+
var decodedHTML = atob(orderDocInfo[0].file)
|
|
621
|
+
this._callPrintDialog(decodedHTML)
|
|
622
|
+
} else {
|
|
623
|
+
let url = new URL(window.location)
|
|
628
624
|
|
|
629
|
-
|
|
630
|
-
|
|
625
|
+
convertedPdfUrl = `${url.origin}/proxy?url=${encodeURIComponent(orderDocInfo[0].airwayBill)}`
|
|
626
|
+
this._callPrintDialog(convertedPdfUrl)
|
|
631
627
|
}
|
|
632
628
|
}
|
|
633
629
|
}
|
|
@@ -643,6 +639,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
643
639
|
mimeType
|
|
644
640
|
file
|
|
645
641
|
documentType
|
|
642
|
+
isShopeeV2
|
|
646
643
|
}
|
|
647
644
|
}
|
|
648
645
|
`,
|
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.59",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"@operato/scene-table": "^0.1.6",
|
|
65
65
|
"@operato/scene-wheel-sorter": "^0.1.6",
|
|
66
66
|
"@things-factory/apptool-ui": "^4.3.47",
|
|
67
|
-
"@things-factory/attachment-ui": "^4.3.
|
|
67
|
+
"@things-factory/attachment-ui": "^4.3.59",
|
|
68
68
|
"@things-factory/auth-ui": "^4.3.47",
|
|
69
69
|
"@things-factory/barcode-ui": "^4.3.47",
|
|
70
70
|
"@things-factory/biz-ui": "^4.3.47",
|
|
71
71
|
"@things-factory/board-service": "^4.3.47",
|
|
72
|
-
"@things-factory/board-ui": "^4.3.
|
|
72
|
+
"@things-factory/board-ui": "^4.3.59",
|
|
73
73
|
"@things-factory/code-ui": "^4.3.47",
|
|
74
74
|
"@things-factory/context-ui": "^4.3.52",
|
|
75
75
|
"@things-factory/export-ui": "^4.3.52",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@things-factory/pdf": "^4.3.47",
|
|
91
91
|
"@things-factory/print-proxy-service": "^4.3.47",
|
|
92
92
|
"@things-factory/print-ui": "^4.3.52",
|
|
93
|
-
"@things-factory/product-base": "^4.3.
|
|
93
|
+
"@things-factory/product-base": "^4.3.59",
|
|
94
94
|
"@things-factory/resource-ui": "^4.3.52",
|
|
95
|
-
"@things-factory/sales-ui": "^4.3.
|
|
95
|
+
"@things-factory/sales-ui": "^4.3.59",
|
|
96
96
|
"@things-factory/scene-data-transform": "^4.3.47",
|
|
97
97
|
"@things-factory/scene-excel": "^4.3.47",
|
|
98
98
|
"@things-factory/scene-firebase": "^4.3.47",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@things-factory/system-ui": "^4.3.47",
|
|
109
109
|
"@things-factory/transport-base": "^4.3.47",
|
|
110
110
|
"@things-factory/tutorial-ui": "^4.3.47",
|
|
111
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
112
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/warehouse-base": "^4.3.59",
|
|
112
|
+
"@things-factory/worksheet-base": "^4.3.59"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@things-factory/builder": "^4.3.47",
|
|
@@ -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": "923ea2407895243b6e4030e75580aaa87b17e9dc"
|
|
122
122
|
}
|