|
|
|
@ -639,14 +639,14 @@ export default {
|
|
|
|
|
codeArray: [],
|
|
|
|
|
curQueueName: "",
|
|
|
|
|
scanReCount: 0,
|
|
|
|
|
curQueue: null,
|
|
|
|
|
curQueue: {},
|
|
|
|
|
redMesg: false,
|
|
|
|
|
redMesgOld: false,
|
|
|
|
|
productName: null,
|
|
|
|
|
orderStatus: false,//是否调用子组件
|
|
|
|
|
workPlaceQueueCode:"",
|
|
|
|
|
collectSet: {},
|
|
|
|
|
sharedData: ''
|
|
|
|
|
sharedData: '',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
@ -1196,6 +1196,14 @@ export default {
|
|
|
|
|
this.$refs.inputRef.focus()
|
|
|
|
|
this.$refs.inputRef.select()
|
|
|
|
|
this.orderFormData.relId = null
|
|
|
|
|
if (response.data.queueCode != null){
|
|
|
|
|
//虚拟槽位上货
|
|
|
|
|
this.curQueue.code = response.data.queueCode
|
|
|
|
|
this.sharedData = response.data.queueCode
|
|
|
|
|
EventBus.$emit('update-data', { message: this.sharedData });
|
|
|
|
|
// //查找当前用户工位是否有正在处理的单据
|
|
|
|
|
this.getOrder()
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (response.code == 502) {
|
|
|
|
|
//该产品绑定多个产品ID处理
|
|
|
|
@ -1341,7 +1349,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
getOrderData(orderDetail) {
|
|
|
|
|
this.productName = orderDetail.coName
|
|
|
|
|
this.curQueueName = "当前取货槽:" + this.productName + "(" + this.curQueue.code + ")"
|
|
|
|
|
if (this.queueStatus == 1){
|
|
|
|
|
this.curQueueName = "当前取货槽:" + this.productName + "(" + this.curQueue.code + ")"
|
|
|
|
|
}
|
|
|
|
|
this.orderStatus = true
|
|
|
|
|
},
|
|
|
|
|
getCount(count){
|
|
|
|
@ -1810,19 +1820,21 @@ export default {
|
|
|
|
|
|
|
|
|
|
if (this.splitType == 'out') {
|
|
|
|
|
if (!this.scanCode.includes("DMQ")) {
|
|
|
|
|
if (this.queueStatus == "0" && this.orderFormData.workPlaceQueueCode) {
|
|
|
|
|
this.$message.warning('当前工位无需按取货槽上架')
|
|
|
|
|
return;
|
|
|
|
|
} else if (this.queueStatus == "1" && isBlank(this.orderFormData.workPlaceQueueCode)) {
|
|
|
|
|
// if (this.queueStatus == "0" && this.orderFormData.workPlaceQueueCode) {
|
|
|
|
|
// this.$message.warning('当前工位无需按取货槽上架')
|
|
|
|
|
// return;
|
|
|
|
|
// } else
|
|
|
|
|
if (this.queueStatus == "1" && isBlank(this.orderFormData.workPlaceQueueCode)) {
|
|
|
|
|
this.scanCode = ''
|
|
|
|
|
this.$message.warning('当前工位需按取货槽上架')
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (this.queueStatus == "0" && this.orderFormData.workPlaceQueueCode) {
|
|
|
|
|
this.$message.warning('当前工位无需按取货槽上架')
|
|
|
|
|
return;
|
|
|
|
|
} else if (this.queueStatus == "1" && !this.orderFormData.workPlaceQueueCode) {
|
|
|
|
|
// if (this.queueStatus == "0" && this.orderFormData.workPlaceQueueCode) {
|
|
|
|
|
// this.$message.warning('当前工位无需按取货槽上架')
|
|
|
|
|
// return;
|
|
|
|
|
// } else
|
|
|
|
|
if (this.queueStatus == "1" && !this.orderFormData.workPlaceQueueCode) {
|
|
|
|
|
this.$message.warning('当前工位需按取货槽上架')
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -2471,33 +2483,41 @@ export default {
|
|
|
|
|
code : data,
|
|
|
|
|
workPlaceIdFk : this.workplaceId
|
|
|
|
|
}
|
|
|
|
|
getByCode(query).then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.curQueue = response.data;
|
|
|
|
|
this.productName = this.curQueue.cpmctymc
|
|
|
|
|
if (isBlank(this.productName)) {
|
|
|
|
|
this.curQueueName = "当前取货槽:" + this.curQueue.code
|
|
|
|
|
if (this.queueStatus == 0){
|
|
|
|
|
this.sharedData = this.curQueue.code
|
|
|
|
|
EventBus.$emit('update-data', { message: this.sharedData });
|
|
|
|
|
// //查找当前用户工位是否有正在处理的单据
|
|
|
|
|
this.getOrder()
|
|
|
|
|
}else {
|
|
|
|
|
getByCode(query).then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.curQueue = response.data;
|
|
|
|
|
this.productName = this.curQueue.cpmctymc
|
|
|
|
|
if (isBlank(this.productName)) {
|
|
|
|
|
this.curQueueName = "当前取货槽:" + this.curQueue.code
|
|
|
|
|
} else {
|
|
|
|
|
this.curQueueName = "当前取货槽:" + this.productName + "(" + this.curQueue.code + ")"
|
|
|
|
|
}
|
|
|
|
|
this.orderFormData.workPlaceQueueCode = this.curQueue.code
|
|
|
|
|
this.scanCode = '';
|
|
|
|
|
this.redMesg = false
|
|
|
|
|
//发送信息
|
|
|
|
|
// 发送事件并传递数据
|
|
|
|
|
this.sharedData = this.curQueue.code
|
|
|
|
|
EventBus.$emit('update-data', { message: this.sharedData });
|
|
|
|
|
// //查找当前用户工位是否有正在处理的单据
|
|
|
|
|
this.getOrder()
|
|
|
|
|
} else {
|
|
|
|
|
this.curQueueName = "当前取货槽:" + this.productName + "(" + this.curQueue.code + ")"
|
|
|
|
|
this.scanCode = ''
|
|
|
|
|
this.$message.error(response.message)
|
|
|
|
|
}
|
|
|
|
|
this.orderFormData.workPlaceQueueCode = this.curQueue.code
|
|
|
|
|
this.scanCode = '';
|
|
|
|
|
this.redMesg = false
|
|
|
|
|
//发送信息
|
|
|
|
|
// 发送事件并传递数据
|
|
|
|
|
this.sharedData = this.curQueue.code
|
|
|
|
|
EventBus.$emit('update-data', { message: this.sharedData });
|
|
|
|
|
// //查找当前用户工位是否有正在处理的单据
|
|
|
|
|
this.getOrder()
|
|
|
|
|
} else {
|
|
|
|
|
this.scanCode = ''
|
|
|
|
|
this.$message.error(response.message)
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
filters: {},
|
|
|
|
|