高拍仪批量扫码问题

20240912_adapter
yewj 11 months ago
parent f6799b0b46
commit 7828bbf1aa

@ -6,7 +6,7 @@ ENV = 'development'
# 开发环境
# VUE_APP_BASE_API = 'https://mudi.dsxyy.org/UDI_WMS_MC/'
VUE_APP_BASE_API = 'http://192.168.0.166:9991'
VUE_APP_BASE_API = 'http://127.0.0.1:9991'
VUE_APP_SYNC_API ="http://127.0.0.1:10001"
# VUE_APP_BASE_API = 'http://dm.xmglxp.com:81/UDI_WMS_MC/'
# 应用访问路径 例如使用前缀 /admin/

@ -26,7 +26,6 @@ export function deleteCodesTempById(query) {
}
export function deleteCodesTempByCodes(query) {
return axios({
url: "warehouse/inout/deleteCodesTempBycodes",

@ -1860,14 +1860,6 @@ export default {
this.$refs.multipleTable.clearSelection()
this.$refs.multipleTable.toggleAllSelection()
},
handleSizeChange(val) {
this.query.limit = val
this.getCodeList()
},
handleCurrentChange(val) {
this.query.page = val
this.getCodeList()
},
intentBack() {
this.$router.go(-1)
@ -2178,10 +2170,19 @@ export default {
},
handleScanComplete(fullScanData) {
console.log('接收 recCodes event:', fullScanData.join(';'))
if (this.scanStatus == 1) {
let query = {
orderId: this.orderFormData.billNo,
codeList: fullScanData
}
//
this.removeCodesTemp(query)
} else {
let params = {
codeList: fullScanData
}
this.batchVailCode(params)
}
},
socketListener() {
@ -2231,7 +2232,6 @@ export default {
console.log('工位上货WebSocket 连接中 ...')
self.socketListener()
}
}
} else {
if (this.ws && this.ws.readyState === WebSocket.OPEN) {
@ -2278,22 +2278,8 @@ export default {
window.addEventListener('gwsh', this.handleRecCodesEvent)
}
document.addEventListener('visibilitychange', this.handleVisibilityChange)
// window.addEventListener('storage', (event) => {
// console.log("websocket")
// if (this.ws && this.ws.readyState === WebSocket.OPEN) {
// this.ws.close();
// console.log("websocket")
// } else {
// if (!this.ws) {
// this.ws = new WebSocket("ws://127.0.0.1:9988");
// this.ws.onopen = function (evt) {
// console.log("WebSocket ...");
// };
// this.socketListener()
// }
// }
// });
// window.dispatchEvent(new CustomEvent('storage', null));
this.handleVisibilityChange()
},
beforeDestroy() {
window.removeEventListener('gwsh', this.handleRecCodesEvent)

Loading…
Cancel
Save