diff --git a/mycomponents/scan/winScanProdline.vue b/mycomponents/scan/winScanProdline.vue
deleted file mode 100644
index e174fcfd..00000000
--- a/mycomponents/scan/winScanProdline.vue
+++ /dev/null
@@ -1,113 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/count/job/countDetail.vue b/pages/count/job/countDetail.vue
index b5d9c19c..375e14b7 100644
--- a/pages/count/job/countDetail.vue
+++ b/pages/count/job/countDetail.vue
@@ -288,11 +288,15 @@
this.$refs.scanPopup.openScanPopupForJob(fromlocationCode, fromlocationList, this.jobContent);
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ if(this.$refs.scanPopup!=undefined){
+ this.$refs.scanPopup.closeScanPopup();
+ }
},
scanPopupGetFocus() {
- this.$refs.scanPopup.packGetFocus();
+ if(this.$refs.scanPopup!=undefined){
+ this.$refs.scanPopup.packGetFocus();
+ }
},
getScanResult(result) {
diff --git a/pages/count/record/countRecord.vue b/pages/count/record/countRecord.vue
index 9e6dac39..8f7e4bc7 100644
--- a/pages/count/record/countRecord.vue
+++ b/pages/count/record/countRecord.vue
@@ -116,7 +116,7 @@
this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup();
} else {
- this.$refs.comMessage.showBreakMessage(res.message );
+ this.showErrorMessage(res.message)
}
});
@@ -218,11 +218,15 @@
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ if(this.$refs.scanPopup!=undefined){
+ this.$refs.scanPopup.closeScanPopup();
+ }
},
scanPopupGetFocus() {
- this.$refs.scanPopup.packGetFocus();
+ if(this.$refs.scanPopup!=undefined){
+ this.$refs.scanPopup.packGetFocus();
+ }
},
getScanResult(result) {
diff --git a/pages/customerReturn/job/returnDetail.vue b/pages/customerReturn/job/returnDetail.vue
index a0e68845..04b46221 100644
--- a/pages/customerReturn/job/returnDetail.vue
+++ b/pages/customerReturn/job/returnDetail.vue
@@ -466,11 +466,15 @@
},
scanPopupGetFocus() {
- this.$refs.scanPopup.packGetFocus();
+ if(this.$refs.scanPopup!=undefined){
+ this.$refs.scanPopup.packGetFocus();
+ }
},
scanPopupLoseFocus() {
- this.$refs.scanPopup.packLoseFocus();
+ if(this.$refs.scanPopup!=undefined){
+ this.$refs.scanPopup.packLoseFocus();
+ }
},
afterCloseMessage() {
diff --git a/pages/customerReturn/record/returnRecord.vue b/pages/customerReturn/record/returnRecord.vue
index 02ed207b..e4f854e6 100644
--- a/pages/customerReturn/record/returnRecord.vue
+++ b/pages/customerReturn/record/returnRecord.vue
@@ -218,11 +218,15 @@
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.closeScanPopup();
+ }
},
scanPopupGetFocus() {
- this.$refs.scanPopup.getfocus();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.getfocus();
+ }
},
scanLocationCode(location, code) {
@@ -388,15 +392,18 @@
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
- this.fromLocationCode = '';
- this.subList = [];
- this.detailSource = [];
- this.toLocationCode = '';
- this.dataContent = {}
- this.toWarehouseCode = ""
-
+ this.clearData()
})
},
+
+ clearData(){
+ this.fromLocationCode = '';
+ this.subList = [];
+ this.detailSource = [];
+ this.toLocationCode = '';
+ this.dataContent = {}
+ this.toWarehouseCode = ""
+ },
updateData() {
this.calcHandleQty();
diff --git a/pages/customerReturn/request/customerReturnRequest.vue b/pages/customerReturn/request/customerReturnRequest.vue
index fa2d29f1..a85fd3c7 100644
--- a/pages/customerReturn/request/customerReturnRequest.vue
+++ b/pages/customerReturn/request/customerReturnRequest.vue
@@ -33,9 +33,7 @@
goHome,
updateTitle
} from '@/common/basic.js';
- import {
- getBusinessType,
- } from '@/common/record.js';
+
import {
getCustomerReturnRequestList,
} from '@/api/request2.js';
diff --git a/pages/deliver/record/deliverRecord.vue b/pages/deliver/record/deliverRecord.vue
index 9a9af942..f4e9945e 100644
--- a/pages/deliver/record/deliverRecord.vue
+++ b/pages/deliver/record/deliverRecord.vue
@@ -251,11 +251,15 @@
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ if(this.$refs.scanPopup!=undefined){
+ this.$refs.scanPopup.closeScanPopup();
+ }
},
scanPopupGetFocus() {
- this.$refs.scanPopup.getfocus();
+ if(this.$refs.scanPopup!=undefined){
+ this.$refs.scanPopup.getfocus();
+ }
},
scanLocationCode(location, code) {
@@ -423,15 +427,18 @@
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
- this.fromLocationCode = '';
- this.subList = [];
- this.detailSource = [];
- this.toLocationCode = '';
- this.dataContent = {}
- this.toWarehouseCode = ""
-
+ this.clearData();
})
},
+
+ clearData(){
+ this.fromLocationCode = '';
+ this.subList = [];
+ this.detailSource = [];
+ this.toLocationCode = '';
+ this.dataContent = {}
+ this.toWarehouseCode = ""
+ },
updateData() {
this.calcHandleQty();
diff --git a/pages/deliver/request/deliverRequest.vue b/pages/deliver/request/deliverRequest.vue
index 2554664d..4c0f5792 100644
--- a/pages/deliver/request/deliverRequest.vue
+++ b/pages/deliver/request/deliverRequest.vue
@@ -33,9 +33,6 @@
goHome,
updateTitle
} from '@/common/basic.js';
- import {
- getBusinessType,
- } from '@/common/record.js';
import {
getDeliverRequestList,
} from '@/api/request2.js';
diff --git a/pages/inventoryMove/coms/comMove.vue b/pages/inventoryMove/coms/comMove.vue
index 8e4959a8..976003c0 100644
--- a/pages/inventoryMove/coms/comMove.vue
+++ b/pages/inventoryMove/coms/comMove.vue
@@ -271,15 +271,17 @@
},
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
- this.fromLocationCode = '';
- this.subList = [];
- this.detailSource = [];
- this.toLocationCode = '';
- this.dataContent = {}
- this.toWarehouseCode = ""
-
+ this.clearData()
})
},
+ clearData(){
+ this.fromLocationCode = '';
+ this.subList = [];
+ this.detailSource = [];
+ this.toLocationCode = '';
+ this.dataContent = {}
+ this.toWarehouseCode = ""
+ },
commit() {
if (this.toLocationCode == "") {
diff --git a/pages/issue-按批次推荐/job/issueDetail.vue b/pages/issue-按批次推荐/job/issueDetail.vue
index 5d5578af..14c05d03 100644
--- a/pages/issue-按批次推荐/job/issueDetail.vue
+++ b/pages/issue-按批次推荐/job/issueDetail.vue
@@ -597,10 +597,11 @@
},
scanPopupGetFocus() {
- this.$refs.scanPopup.getfocus();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.getfocus();
+ }
},
-
showMessage(message) {
this.$refs.comMessage.showMessage(message, res => {
if (res) {
diff --git a/pages/issue/record/issueRecord.vue b/pages/issue/record/issueRecord.vue
index 9bccea91..81613792 100644
--- a/pages/issue/record/issueRecord.vue
+++ b/pages/issue/record/issueRecord.vue
@@ -103,7 +103,7 @@
this.toInventoryStatuses = res.toInventoryStatuses
this.goScan(true)
} else {
- this.$refs.comMessage.showBreakMessage(res.message);
+ this.showErrorMessage(res.message)
}
});
diff --git a/pages/issue/request/issueRequest.vue b/pages/issue/request/issueRequest.vue
index 62eda712..8d7793ce 100644
--- a/pages/issue/request/issueRequest.vue
+++ b/pages/issue/request/issueRequest.vue
@@ -36,9 +36,6 @@
clearTirmAndWrap
} from '@/common/basic.js';
- import {
- getBusinessType,
- } from '@/common/record.js';
import {
getIssueRequestList,
issueRequestClose,
diff --git a/pages/package/record/mergePackageRecord.vue b/pages/package/record/mergePackageRecord.vue
index 9cf29be0..5f69eb74 100644
--- a/pages/package/record/mergePackageRecord.vue
+++ b/pages/package/record/mergePackageRecord.vue
@@ -35,7 +35,8 @@
-
+
+
@@ -46,7 +47,7 @@
import {
goHome
} from '@/common/basic.js';
-
+
import {
getInventoryStatusDesc,
getDirectoryItemArray
@@ -118,7 +119,7 @@
this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup();
} else {
- this.$refs.comMessage.showBreakMessage(res.message);
+ this.showErrorMessage(res.message)
}
});
},
@@ -134,7 +135,7 @@
onPullDownRefresh() {},
mounted() {},
-
+
methods: {
scanPopupPack() {
this.$refs.scanPopupPack.openScanPopup();
@@ -219,11 +220,15 @@
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.closeScanPopup();
+ }
},
scanPopupGetFocus() {
- this.$refs.scanPopup.getfocus();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.getfocus();
+ }
},
scanLocationCode(location, code) {
diff --git a/pages/package/record/overPackageRecord.vue b/pages/package/record/overPackageRecord.vue
index eef1d1d0..a0157c9a 100644
--- a/pages/package/record/overPackageRecord.vue
+++ b/pages/package/record/overPackageRecord.vue
@@ -30,7 +30,8 @@
-
+
+
@@ -43,7 +44,7 @@
import {
goHome
} from '@/common/basic.js';
-
+
import {
getInventoryStatusDesc,
getDirectoryItemArray
@@ -243,11 +244,15 @@
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.closeScanPopup();
+ }
},
scanPopupGetFocus() {
- this.$refs.scanPopup.getfocus();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.getfocus();
+ }
},
scanLocationCode(location, code) {
diff --git a/pages/package/record/splitPackageRecord.vue b/pages/package/record/splitPackageRecord.vue
index 4c70c950..a343480a 100644
--- a/pages/package/record/splitPackageRecord.vue
+++ b/pages/package/record/splitPackageRecord.vue
@@ -29,7 +29,8 @@
-
+
+
@@ -42,7 +43,7 @@
import {
goHome,
} from '@/common/basic.js';
-
+
import {
getInventoryStatusDesc,
getDirectoryItemArray
@@ -243,11 +244,15 @@
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.closeScanPopup();
+ }
},
scanPopupGetFocus() {
- this.$refs.scanPopup.getfocus();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.getfocus();
+ }
},
scanLocationCode(location, code) {
diff --git a/pages/pallet/record/bindPalletRecord.vue b/pages/pallet/record/bindPalletRecord.vue
index 6cfafc89..076051be 100644
--- a/pages/pallet/record/bindPalletRecord.vue
+++ b/pages/pallet/record/bindPalletRecord.vue
@@ -111,7 +111,7 @@
this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup();
} else {
- this.$refs.comMessage.showBreakMessage(res.message);
+ this.showErrorMessage(res.message)
}
});
},
diff --git a/pages/pallet/record/unBindPalletRecord.vue b/pages/pallet/record/unBindPalletRecord.vue
index c40b08d9..d99d928a 100644
--- a/pages/pallet/record/unBindPalletRecord.vue
+++ b/pages/pallet/record/unBindPalletRecord.vue
@@ -49,7 +49,7 @@
import {
goHome
} from '@/common/basic.js';
-
+
import {
getDirectoryItemArray
} from '@/common/directory.js';
@@ -242,15 +242,19 @@
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ this.$refs.scanPopup.closeScanPopup();
},
scanPopupGetFocus() {
- this.$refs.scanPopup.getfocus();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.getfocus();
+ }
},
scanPopupLoseFocus() {
- this.$refs.scanPopup.losefocus();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.losefocus();
+ }
},
@@ -261,7 +265,7 @@
}
},
-
+
showMessage(message) {
setTimeout(r => {
this.scanPopupLoseFocus();
diff --git a/pages/productDismantle/record/productDismantleRecord.vue b/pages/productDismantle/record/productDismantleRecord.vue
index 462309cb..a7a66579 100644
--- a/pages/productDismantle/record/productDismantleRecord.vue
+++ b/pages/productDismantle/record/productDismantleRecord.vue
@@ -119,7 +119,7 @@
this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup();
} else {
- this.$refs.comMessage.showBreakMessage(res.message);
+ this.showErrorMessage(res.message)
}
});
},
@@ -214,11 +214,15 @@
},
closeScanPopup() {
- this.$refs.scanPopup.closeScanPopup();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.closeScanPopup();
+ }
},
scanPopupGetFocus() {
- this.$refs.scanPopup.getfocus();
+ if (this.$refs.scanPopup != undefined) {
+ this.$refs.scanPopup.getfocus();
+ }
},
scanLocationCode(location, code) {
diff --git a/pages/productPutaway/record/productPutawayRecord.vue b/pages/productPutaway/record/productPutawayRecord.vue
index f1dbbdca..1ffe223d 100644
--- a/pages/productPutaway/record/productPutawayRecord.vue
+++ b/pages/productPutaway/record/productPutawayRecord.vue
@@ -18,13 +18,13 @@
-
+