Browse Source

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

lijuncheng0816
lijuncheng 1 month 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. 18
      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()
},
closeScanPopup() {
this.losefocus();
this.$refs.popup.close()
},
getfocus() {

1
src/mycomponents/scan/winComScanBalanceLocation.vue

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

4
src/mycomponents/scan/winScanAsnNumber.vue

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

18
src/mycomponents/scan/winScanContainer.vue

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

1
src/mycomponents/scan/winScanItem.vue

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

3
src/mycomponents/scan/winScanJobNumber.vue

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

1
src/mycomponents/scan/winScanLocation.vue

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

1
src/mycomponents/scan/winScanPack.vue

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

1
src/mycomponents/scan/winScanPackAndCont.vue

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

1
src/mycomponents/scan/winScanPackAndLocation.vue

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

1
src/mycomponents/scan/winScanPackAndLocationNoBalance.vue

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

1
src/mycomponents/scan/winScanPackAndPosition.vue

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

1
src/mycomponents/scan/winScanPackLevel.vue

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

1
src/mycomponents/scan/winScanPackage.vue

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

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

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

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

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

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

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

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

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

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

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

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

@ -10,7 +10,7 @@
:productionline="productionlineList" ref="filter" otherTitle="" @switchChangeToday="switchChangeToday"
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday"
:checkedWaitTask="checkedWaitTask" :isShowItemCode="true" @productionLineCode="productionLineCode"
@fromLocationCode="fromLocationCode" :isShowQurery='true' @onQuery="getListByFilter">
@fromLocationCode="fromLocationCodeQuery" :isShowQurery='true' @onQuery="getListByFilter">
</job-filter>
<view v-if="jobList.length>0">
<uni-swipe-action ref="swipeAction">
@ -328,7 +328,7 @@
fromLocationCode(fromLocationCode) {
fromLocationCodeQuery(fromLocationCode) {
console.log('fromLocationCode', fromLocationCode)
this.fromLocationCode = fromLocationCode
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() {
this.losefocus();
this.$refs.popup.close();
this.$emit("closeScan")
//

Loading…
Cancel
Save