|
|
|
@ -25,14 +25,15 @@
|
|
|
|
|
>
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="paizhao()"
|
|
|
|
|
v-if="collectSet != null && collectSet.autoDecode == 0"
|
|
|
|
|
:disabled="redMeg || (splitCodes.length === 0 && queueCodes.length === 0)"
|
|
|
|
|
style="margin-right: 8px;border-radius: 5%;"
|
|
|
|
|
>拍照解码
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="fallbackCode()" :disabled="redMeg"
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="fallbackCode()" :disabled="redMeg || (splitCodes.length === 0 && queueCodes.length === 0)"
|
|
|
|
|
style="margin-right: 8px;border-radius: 5%;"
|
|
|
|
|
>回退
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="dropCode()" :disabled="redMeg"
|
|
|
|
|
<el-button size="mini" type="primary" @click.native="dropCode()" :disabled="redMeg || (splitCodes.length === 0 && queueCodes.length === 0)"
|
|
|
|
|
style="margin-right: 8px;border-radius: 5%;"
|
|
|
|
|
>放弃
|
|
|
|
|
</el-button>
|
|
|
|
@ -295,7 +296,8 @@ import {splitFifoDetail} from '@/api/inout/splitCode'
|
|
|
|
|
import {batchAddCode, batchVailCode, enterCodeWeb} from '@/api/inout/order'
|
|
|
|
|
import {getSet} from '@/api/collect/collectSet'
|
|
|
|
|
import A from '@/plugins/KeyScaner'
|
|
|
|
|
import { EventBus } from '@/eventBus'; // 引入事件总线
|
|
|
|
|
import { EventBus } from '@/eventBus';
|
|
|
|
|
import { getUserBindWork } from '@/api/basic/collectPoint/userWorkplace' // 引入事件总线
|
|
|
|
|
|
|
|
|
|
const SLOT_CODE_PREFIX = 'DMQ'
|
|
|
|
|
|
|
|
|
@ -373,7 +375,10 @@ export default {
|
|
|
|
|
valiCodes: [],
|
|
|
|
|
//weksolket
|
|
|
|
|
sitcomScan: false,
|
|
|
|
|
sictomText: ''
|
|
|
|
|
sictomText: '',
|
|
|
|
|
allWorkPlaces:[],
|
|
|
|
|
//是否开启按照槽位上货
|
|
|
|
|
queueStatus: null,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -628,8 +633,10 @@ export default {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.curQueue = response.data
|
|
|
|
|
this.productName = this.curQueue.cpmctymc
|
|
|
|
|
this.curQueueName = this.getQueueName()
|
|
|
|
|
this.curProductData = this.getCurProduct()
|
|
|
|
|
if (this.queueStatus == 1){
|
|
|
|
|
this.curQueueName = this.getQueueName()
|
|
|
|
|
this.curProductData = this.getCurProduct()
|
|
|
|
|
}
|
|
|
|
|
this.redMeg = false
|
|
|
|
|
this.isCheckQueue = true
|
|
|
|
|
this.init()
|
|
|
|
@ -723,9 +730,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 = []
|
|
|
|
@ -745,6 +752,7 @@ export default {
|
|
|
|
|
this.queueCodeTotal = 0
|
|
|
|
|
this.collectSet = null
|
|
|
|
|
this.alertInit()
|
|
|
|
|
this.findAllWorkPlaces()
|
|
|
|
|
},
|
|
|
|
|
paizhao() {
|
|
|
|
|
if (this.ws && this.ws.readyState === WebSocket.OPEN) {
|
|
|
|
@ -909,7 +917,31 @@ export default {
|
|
|
|
|
this.workplaceId = this.$route.query.workplaceId
|
|
|
|
|
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: {
|
|
|
|
|
// 计算每个分组的合并信息
|
|
|
|
@ -983,7 +1015,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.workplaceId = this.$route.query.workplaceId
|
|
|
|
|
// this.selectSysParam()
|
|
|
|
|
this.findAllWorkPlaces()
|
|
|
|
|
this.selectSysParam()
|
|
|
|
|
if (!isBlank(this.message)){
|
|
|
|
|
this.scanCode = this.message
|
|
|
|
|
this.handleSlotCodeScan()
|
|
|
|
|