Browse Source

关闭弹窗的时候失去焦点,隐藏软件盘

lijuncheng0816
lijuncheng 4 months ago
parent
commit
cd78dae974
  1. 1
      src/mycomponents/scan/winComScanBalance.vue
  2. 1
      src/mycomponents/scan/winComScanBalanceLocation.vue
  3. 4
      src/mycomponents/scan/winScanAsnNumber.vue
  4. 20
      src/mycomponents/scan/winScanContainer.vue
  5. 1
      src/mycomponents/scan/winScanItem.vue
  6. 3
      src/mycomponents/scan/winScanJobNumber.vue
  7. 1
      src/mycomponents/scan/winScanLocation.vue
  8. 1
      src/mycomponents/scan/winScanPack.vue
  9. 1
      src/mycomponents/scan/winScanPackAndCont.vue
  10. 1
      src/mycomponents/scan/winScanPackAndLocation.vue
  11. 1
      src/mycomponents/scan/winScanPackAndLocationNoBalance.vue
  12. 1
      src/mycomponents/scan/winScanPackAndPosition.vue
  13. 1
      src/mycomponents/scan/winScanPackLevel.vue
  14. 1
      src/mycomponents/scan/winScanPackage.vue
  15. 5
      src/pages/issue/coms/comScanIssuePack.vue
  16. 30
      src/pages/package/coms/comScanPackagePack.vue
  17. 6
      src/pages/package/record/overPackageRecord.vue
  18. 5
      src/pages/productionReturn/coms/comScanReturnPack.vue
  19. 5
      src/pages/repleinsh/coms/comScanReplishPack.vue
  20. 4
      src/pages/repleinsh/job/repleinshJob.vue
  21. 1
      src/pages/stockUp/coms/comScanStockUpPack.vue

1
src/mycomponents/scan/winComScanBalance.vue

@ -297,6 +297,7 @@
// this.closeScanPopup() // this.closeScanPopup()
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus();
this.$refs.popup.close() this.$refs.popup.close()
}, },
getfocus() { getfocus() {

1
src/mycomponents/scan/winComScanBalanceLocation.vue

@ -277,6 +277,7 @@
// this.closeScanPopup() // this.closeScanPopup()
}, },
closeScanPopup() { closeScanPopup() {
this.packLoseFocus()
this.$refs.popup.close() this.$refs.popup.close()
this.$emit("onCloseScanPopup") this.$emit("onCloseScanPopup")
}, },

4
src/mycomponents/scan/winScanAsnNumber.vue

@ -60,6 +60,10 @@
}, 500) }, 500)
}, },
closeScanPopup() { closeScanPopup() {
if(this.$refs.scan){
this.$refs.scan.losefocus()
}
this.$refs.popup.close() this.$refs.popup.close()
}, },
getfocus() { getfocus() {

20
src/mycomponents/scan/winScanContainer.vue

@ -12,8 +12,8 @@
</view> </view>
<view class=""> <view class="">
<view class=""> <view class="">
<win-com-scan ref="scan" headerType='HCQ' @getResult="getScanResult" :placeholder='title' :clearResult="true" <win-com-scan ref="scan" headerType='HCQ' @getResult="getScanResult" :placeholder='title'
:boxFocus="true" :isShowHistory="isShowHistory"> :clearResult="true" :boxFocus="true" :isShowHistory="isShowHistory">
</win-com-scan> </win-com-scan>
</view> </view>
</view> </view>
@ -59,6 +59,7 @@
}, 500) }, 500)
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus()
this.$refs.popup.close() this.$refs.popup.close()
}, },
scanClick() { scanClick() {
@ -81,7 +82,8 @@
if (this.containerInfo.containerStatus == 'USED') { if (this.containerInfo.containerStatus == 'USED') {
this.callBack(); this.callBack();
} else { } else {
this.showErrorMessage("器具[" + this.code + "]状态是[" + this.containerInfo.status + "],不可以绑定") this.showErrorMessage("器具[" + this.code + "]状态是[" + this.containerInfo.status +
"],不可以绑定")
} }
} else { } else {
this.showErrorMessage("未查找到器具[" + this.code + "]") this.showErrorMessage("未查找到器具[" + this.code + "]")
@ -97,10 +99,16 @@
this.$emit("getContainer", this.containerInfo); this.$emit("getContainer", this.containerInfo);
}, },
getfocus() { getfocus() {
this.$refs.scan.getfocus(); if (this.$refs.scan) {
this.$refs.scan.getfocus();
}
}, },
losefocus() { losefocus() {
this.$refs.scan.losefocus(); if (this.$refs.scan) {
this.$refs.scan.losefocus();
}
}, },
showErrorMessage(message) { showErrorMessage(message) {
setTimeout(r => { setTimeout(r => {
@ -116,4 +124,4 @@
</script> </script>
<style> <style>
</style> </style>

1
src/mycomponents/scan/winScanItem.vue

@ -81,6 +81,7 @@
}, 500) }, 500)
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus();
this.$refs.popup.close() this.$refs.popup.close()
}, },
scanClick() { scanClick() {

3
src/mycomponents/scan/winScanJobNumber.vue

@ -66,6 +66,9 @@
}, 500) }, 500)
}, },
closeScanPopup() { closeScanPopup() {
if(this.$refs.scan){
this.$refs.scan.losefocus()
}
this.$refs.popup.close() this.$refs.popup.close()
}, },
getfocus() { getfocus() {

1
src/mycomponents/scan/winScanLocation.vue

@ -74,6 +74,7 @@
this.$refs.comscansimulate.clickScanMsg(); this.$refs.comscansimulate.clickScanMsg();
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus()
if(this.$refs.popup){ if(this.$refs.popup){
this.$refs.popup.close() this.$refs.popup.close()
} }

1
src/mycomponents/scan/winScanPack.vue

@ -76,6 +76,7 @@
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus();
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("close", ''); this.$emit("close", '');
}, },

1
src/mycomponents/scan/winScanPackAndCont.vue

@ -67,6 +67,7 @@
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus()
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("close", ''); this.$emit("close", '');
}, },

1
src/mycomponents/scan/winScanPackAndLocation.vue

@ -218,6 +218,7 @@
}, },
closeScanPopup(content) { closeScanPopup(content) {
this.packLoseFocus()
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("close", ''); this.$emit("close", '');
}, },

1
src/mycomponents/scan/winScanPackAndLocationNoBalance.vue

@ -166,6 +166,7 @@
}, },
closeScanPopup(content) { closeScanPopup(content) {
this.packLoseFocus()
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("close", ''); this.$emit("close", '');
}, },

1
src/mycomponents/scan/winScanPackAndPosition.vue

@ -127,6 +127,7 @@
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus()
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("close", ''); this.$emit("close", '');
}, },

1
src/mycomponents/scan/winScanPackLevel.vue

@ -102,6 +102,7 @@
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus()
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("close", ''); this.$emit("close", '');
}, },

1
src/mycomponents/scan/winScanPackage.vue

@ -83,6 +83,7 @@
closeScanPopup() { closeScanPopup() {
this.losefocus()
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("close", ''); this.$emit("close", '');
}, },

5
src/pages/issue/coms/comScanIssuePack.vue

@ -218,6 +218,7 @@
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus()
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("closeScan") this.$emit("closeScan")
// //
@ -317,9 +318,9 @@
result.balance = res.data[0] result.balance = res.data[0]
if (result.label.packingNumber != result.balance.packingNumber) { if (result.label.packingNumber != result.balance.packingNumber) {
result.balance.handleQty = Number(result.label.qty) result.balance.qty = Number(result.label.qty)
} else { } else {
result.balance.handleQty = Number(result.balance.qty) result.balance.qty = Number(result.balance.qty)
} }
this.afterGetBalance(result.label, result.balance, result.package); this.afterGetBalance(result.label, result.balance, result.package);
} else { } else {

30
src/pages/package/coms/comScanPackagePack.vue

@ -81,6 +81,7 @@ import { getDirectoryItemArray } from '@/common/directory';
}, },
closeScanPopup() { closeScanPopup() {
this.packLoseFocus()
this.$emit("closeScan") this.$emit("closeScan")
}, },
@ -343,17 +344,17 @@ import { getDirectoryItemArray } from '@/common/directory';
this.getfocus(); this.getfocus();
}, },
getfocus() { // getfocus() {
if (this.$refs.scanPopup ) { // if (this.$refs.scanPopup ) {
this.$refs.scanPopup.getfocus(); // this.$refs.scanPopup.packGetFocus();
} // }
}, // },
losefocus() { // losefocus() {
if (this.$refs.scanPopup ) { // if (this.$refs.scanPopup ) {
this.$refs.scanPopup.losefocus(); // this.$refs.scanPopup.packLoseFocus();
} // }
}, // },
swipeClick(e, item, index) { swipeClick(e, item, index) {
if (e.content.text == "详情") { if (e.content.text == "详情") {
@ -399,10 +400,15 @@ import { getDirectoryItemArray } from '@/common/directory';
}, },
packGetFocus() { packGetFocus() {
this.$refs.scanPopup.getfocus(); if(this.$refs.scanPopup){
this.$refs.scanPopup.packGetFocus();
}
}, },
packLoseFocus() { packLoseFocus() {
this.$refs.scanPopup.packLoseFocus(); if(this.$refs.scanPopup){
this.$refs.scanPopup.packLoseFocus();
}
}, },
showMessage(message, callback) { showMessage(message, callback) {
setTimeout(r => { setTimeout(r => {

6
src/pages/package/record/overPackageRecord.vue

@ -322,6 +322,7 @@
}, },
showErrorMessage(message) { showErrorMessage(message) {
this.scanPopupLoseFocus();
this.$refs.comMessage.showErrorMessage(message, res => { this.$refs.comMessage.showErrorMessage(message, res => {
if (res) { if (res) {
this.scanPopupGetFocus() this.scanPopupGetFocus()
@ -361,6 +362,11 @@
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
} }
}, },
scanPopupLoseFocus() {
if (this.$refs.scanPopup) {
this.$refs.scanPopup.losefocus();
}
},
commit() { commit() {
// if(!this.dataContent.printerUuid){ // if(!this.dataContent.printerUuid){
// this.showErrorMessage("") // this.showErrorMessage("")

5
src/pages/productionReturn/coms/comScanReturnPack.vue

@ -174,6 +174,7 @@
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus();
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("closeScan") this.$emit("closeScan")
// //
@ -467,13 +468,13 @@
}, },
showMessage(message, callback) { showMessage(message, callback) {
setTimeout(r => { setTimeout(r => {
this.packLoseFocus(); this.losefocus();
this.$refs.comMessage.showMessage(message, callback); this.$refs.comMessage.showMessage(message, callback);
}) })
}, },
showErrorMessage(message, callback) { showErrorMessage(message, callback) {
setTimeout(r => { setTimeout(r => {
this.packLoseFocus(); this.losefocus();
this.$refs.comMessage.showErrorMessage(message, callback); this.$refs.comMessage.showErrorMessage(message, callback);
}) })

5
src/pages/repleinsh/coms/comScanReplishPack.vue

@ -180,6 +180,7 @@
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus()
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("closeScan") this.$emit("closeScan")
// //
@ -310,9 +311,9 @@
result.balance = res.data[0] result.balance = res.data[0]
if (result.label.packingNumber != result.balance.packingNumber) { if (result.label.packingNumber != result.balance.packingNumber) {
result.balance.handleQty = Number(result.label.qty) result.balance.qty = Number(result.label.qty)
} else { } else {
result.balance.handleQty = Number(result.balance.qty) result.balance.qty = Number(result.balance.qty)
} }
this.afterGetBalance(result.label, result.balance, result.package); this.afterGetBalance(result.label, result.balance, result.package);
} else { } else {

4
src/pages/repleinsh/job/repleinshJob.vue

@ -10,7 +10,7 @@
:productionline="productionlineList" ref="filter" otherTitle="" @switchChangeToday="switchChangeToday" :productionline="productionlineList" ref="filter" otherTitle="" @switchChangeToday="switchChangeToday"
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday" @switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday"
:checkedWaitTask="checkedWaitTask" :isShowItemCode="true" @productionLineCode="productionLineCode" :checkedWaitTask="checkedWaitTask" :isShowItemCode="true" @productionLineCode="productionLineCode"
@fromLocationCode="fromLocationCode" :isShowQurery='true' @onQuery="getListByFilter"> @fromLocationCode="fromLocationCodeQuery" :isShowQurery='true' @onQuery="getListByFilter">
</job-filter> </job-filter>
<view v-if="jobList.length>0"> <view v-if="jobList.length>0">
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
@ -328,7 +328,7 @@
fromLocationCode(fromLocationCode) { fromLocationCodeQuery(fromLocationCode) {
console.log('fromLocationCode', fromLocationCode) console.log('fromLocationCode', fromLocationCode)
this.fromLocationCode = fromLocationCode this.fromLocationCode = fromLocationCode
this.getList('refresh', this.fromLocationCode, this.filterItemCode) this.getList('refresh', this.fromLocationCode, this.filterItemCode)

1
src/pages/stockUp/coms/comScanStockUpPack.vue

@ -188,6 +188,7 @@ import { getDirectoryItemArray } from '../../../common/directory.js';
}, },
closeScanPopup() { closeScanPopup() {
this.losefocus();
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("closeScan") this.$emit("closeScan")
// //

Loading…
Cancel
Save