|
|
|
@ -296,6 +296,7 @@ import {batchAddCode, batchVailCode, enterCodeWeb} from '@/api/inout/order'
|
|
|
|
|
import {getSet} from '@/api/collect/collectSet'
|
|
|
|
|
import A from '@/plugins/KeyScaner'
|
|
|
|
|
import { EventBus } from '@/eventBus'; // 引入事件总线
|
|
|
|
|
import { getUserBindWork } from '@/api/basic/collectPoint/userWorkplace'
|
|
|
|
|
|
|
|
|
|
const SLOT_CODE_PREFIX = 'DMQ'
|
|
|
|
|
|
|
|
|
@ -373,7 +374,10 @@ export default {
|
|
|
|
|
valiCodes: [],
|
|
|
|
|
//weksolket
|
|
|
|
|
sitcomScan: false,
|
|
|
|
|
sictomText: ''
|
|
|
|
|
sictomText: '',
|
|
|
|
|
allWorkPlaces:[],
|
|
|
|
|
//是否开启按照槽位上货
|
|
|
|
|
queueStatus: null,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -493,8 +497,8 @@ export default {
|
|
|
|
|
this.getSplitCodes()
|
|
|
|
|
this.init()
|
|
|
|
|
//扫码结果
|
|
|
|
|
console.log("shanchu wan ma",this.message)
|
|
|
|
|
if (!isBlank(this.message)){
|
|
|
|
|
// console.log("shanchu wan ma",this.message)
|
|
|
|
|
if (!isBlank(this.message) && this.message.includes("DMQ")){
|
|
|
|
|
EventBus.$emit('sendCreateData', { message: this.message });
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
@ -535,7 +539,7 @@ export default {
|
|
|
|
|
this.getCodes()
|
|
|
|
|
this.getSplitCodes()
|
|
|
|
|
this.printMutiCodeResult(res.data.vailCodeResultResponses)
|
|
|
|
|
if (!isBlank(this.message)){
|
|
|
|
|
if (!isBlank(this.message) && this.message.includes("DMQ")){
|
|
|
|
|
EventBus.$emit('sendCreateData', { message: this.message });
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
@ -631,8 +635,10 @@ export default {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.curQueue = response.data
|
|
|
|
|
this.productName = this.curQueue.cpmctymc
|
|
|
|
|
if (this.queueStatus == 1){
|
|
|
|
|
this.curQueueName = this.getQueueName()
|
|
|
|
|
this.curProductData = this.getCurProduct()
|
|
|
|
|
}
|
|
|
|
|
this.redMeg = false
|
|
|
|
|
this.isCheckQueue = true
|
|
|
|
|
this.init()
|
|
|
|
@ -713,7 +719,7 @@ export default {
|
|
|
|
|
this.getSplitCodes()
|
|
|
|
|
this.init()
|
|
|
|
|
this.alertInit()
|
|
|
|
|
if (!isBlank(this.message)){
|
|
|
|
|
if (!isBlank(this.message) && this.message.includes("DMQ")){
|
|
|
|
|
EventBus.$emit('sendCreateData', { message: this.message });
|
|
|
|
|
}
|
|
|
|
|
return this.$message.success('回退成功')
|
|
|
|
@ -729,9 +735,9 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
dropCode() {
|
|
|
|
|
this.redMeg = true
|
|
|
|
|
// this.redMeg = true
|
|
|
|
|
this.curQueueName = ''
|
|
|
|
|
this.isCheckQueue = false
|
|
|
|
|
// this.isCheckQueue = false
|
|
|
|
|
this.curProductData = ''
|
|
|
|
|
this.curQueue = null
|
|
|
|
|
this.queueCodes = []
|
|
|
|
@ -754,6 +760,7 @@ export default {
|
|
|
|
|
if (!isBlank(this.message) && this.message.includes("DMQ")){
|
|
|
|
|
EventBus.$emit('sendCreateData', { message: this.message });
|
|
|
|
|
}
|
|
|
|
|
this.findAllWorkPlaces()
|
|
|
|
|
},
|
|
|
|
|
paizhao() {
|
|
|
|
|
if (this.ws && this.ws.readyState === WebSocket.OPEN) {
|
|
|
|
@ -919,7 +926,31 @@ export default {
|
|
|
|
|
this.handleSlotCodeScan()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
findAllWorkPlaces() {
|
|
|
|
|
let query = {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 100,
|
|
|
|
|
}
|
|
|
|
|
getUserBindWork(query).then((res) => {
|
|
|
|
|
this.allWorkPlaces = res.data.list || [];
|
|
|
|
|
{
|
|
|
|
|
let item = this.allWorkPlaces.find(item => item.workplaceId == this.workplaceId )
|
|
|
|
|
this.queueStatus = item.queueStatus
|
|
|
|
|
if (this.curQueue == null){
|
|
|
|
|
if (this.queueStatus == 0) {
|
|
|
|
|
this.redMeg = false
|
|
|
|
|
this.isCheckQueue = true
|
|
|
|
|
}else {
|
|
|
|
|
this.redMeg = true
|
|
|
|
|
this.isCheckQueue = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
// 计算每个分组的合并信息
|
|
|
|
@ -993,7 +1024,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.workplaceId = this.$route.query.workplaceId
|
|
|
|
|
// this.selectSysParam()
|
|
|
|
|
this.findAllWorkPlaces()
|
|
|
|
|
this.selectSysParam()
|
|
|
|
|
if (!isBlank(this.message) && this.message.includes("DMQ")){
|
|
|
|
|
this.scanCode = this.message
|
|
|
|
|
this.handleSlotCodeScan()
|
|
|
|
|