|
|
@ -50,6 +50,8 @@ const toLocationCombox = ref() |
|
|
|
const comMessageRef = ref() |
|
|
|
const detailOptions = ref([]) |
|
|
|
const comscan = ref() |
|
|
|
const scanPopup = ref(null) |
|
|
|
const balanceSelect = ref(null) |
|
|
|
onMounted(() => { |
|
|
|
detailOptions.value = getDetailOption() |
|
|
|
scanOptions.value = getDetailEditRemoveOption() |
|
|
@ -62,6 +64,7 @@ const openScanPopup = (content, jobcontent) => { |
|
|
|
scanPopup.value.openScanPopupForJob(fromLocationCode.value, fromLocationList.value, jobContent.value) |
|
|
|
} |
|
|
|
const closeScanPopup = () => { |
|
|
|
packLoseFocus() |
|
|
|
show.value = false |
|
|
|
emit('closeScan') |
|
|
|
// 清除数据,恢复默认值 |
|
|
@ -277,17 +280,17 @@ const addRecord = (batch, label, balance, packageInfo) => { |
|
|
|
calcBatchHandleQty(batch) |
|
|
|
getfocus() |
|
|
|
} |
|
|
|
const getfocus = () => { |
|
|
|
if (scanPopup.value) { |
|
|
|
scanPopup.value.getfocus() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const losefocus = () => { |
|
|
|
if (scanPopup.value) { |
|
|
|
scanPopup.value.losefocus() |
|
|
|
} |
|
|
|
} |
|
|
|
// const getfocus = () => { |
|
|
|
// if (scanPopup.value) { |
|
|
|
// scanPopup.value.getfocus() |
|
|
|
// } |
|
|
|
// } |
|
|
|
// |
|
|
|
// const losefocus = () => { |
|
|
|
// if (scanPopup.value) { |
|
|
|
// scanPopup.value.losefocus() |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
const swipeClick = (params, item) => { |
|
|
|
const { text } = scanOptions.value[params[1]] |
|
|
@ -330,10 +333,14 @@ const remove = (record, index) => { |
|
|
|
}) |
|
|
|
} |
|
|
|
const packGetFocus = () => { |
|
|
|
scanPopup.value.getfocus() |
|
|
|
if(scanOptions.value){ |
|
|
|
scanPopup.value.packGetFocus() |
|
|
|
} |
|
|
|
} |
|
|
|
const packLoseFocus = () => { |
|
|
|
scanPopup.value.losefocus() |
|
|
|
if(scanPopup.value){ |
|
|
|
scanPopup.value.packLoseFocus() |
|
|
|
} |
|
|
|
} |
|
|
|
const showMessage = (message, callback) => { |
|
|
|
setTimeout((r) => { |
|
|
|