@things-factory/operato-wms 4.1.30 → 4.1.31
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
|
|
@@ -732,21 +728,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
732
728
|
}
|
|
733
729
|
}
|
|
734
730
|
|
|
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
731
|
async _complete() {
|
|
751
732
|
const response = await client.mutate({
|
|
752
733
|
mutation: gql`
|
|
@@ -768,29 +749,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
768
749
|
}
|
|
769
750
|
}
|
|
770
751
|
|
|
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
752
|
_openWorksheetInformation() {
|
|
795
753
|
openPopup(
|
|
796
754
|
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.31",
|
|
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.31",
|
|
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.31",
|
|
106
|
+
"@things-factory/worksheet-base": "^4.1.31"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@things-factory/builder": "^4.1.28"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "87a1ee9d97613f76b7b06bbbc59a16e1029e4dc9"
|
|
112
112
|
}
|