diff --git a/src/views/collect/IoCreateOrder.vue b/src/views/collect/IoCreateOrder.vue
index f5e63d1a..261825e0 100644
--- a/src/views/collect/IoCreateOrder.vue
+++ b/src/views/collect/IoCreateOrder.vue
@@ -24,36 +24,36 @@
v-show="isLinkDisabled"
>拍照解码
- 扫码剔除
-
- 结束剔除
-
- 选入已完成单据
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
选入单据
- 放弃
-
- 保存
-
+
+
+
+
+
+
+
+
+
+
item.workplaceId == this.orderFormData.workPlaceCode)
this.queueStatus = item.queueStatus
- if (this.queueStatus == 1) {
- this.redMesg = true
- this.redMesgOld = true
+ if (isBlank(this.curQueue.code)){
+ if (this.queueStatus == 1) {
+ this.redMesg = true
+ this.redMesgOld = true
+ }
}
}
@@ -1626,6 +1629,32 @@ export default {
this.orderQuery = currentRow
this.chooseDraftOrderVisible = false
this.refreshOrder(this.orderQuery)
+ let query = {
+ code : currentRow.workPlaceQueueCode,
+ workPlaceIdFk: currentRow.workPlaceCode
+ }
+ 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.redMesg = false
+ this.orderFormData.workPlaceQueueCode = this.curQueue.code
+ this.scanCode = '';
+
+ } else {
+ this.scanCode = ''
+ this.$message.error(response.message)
+ }
+ }).catch(() => {
+ })
+ // this.redMesg = false
//选入单据 判断此订单是否正在处理中
// this.upOrderStatus()
@@ -2009,14 +2038,18 @@ export default {
this.curQueueName = "当前取货槽:" + this.productName + "(" + this.curQueue.code + ")"
}
- this.redMesg = false
+
+
this.orderFormData.workPlaceQueueCode = this.curQueue.code
this.scanCode = '';
+ // //查找当前用户工位是否有正在处理的单据
+ this.getOrder()
} else {
this.scanCode = ''
this.$message.error(response.message)
}
}).catch(() => {
+
})
return true
}else if (str.includes("DMOENTER")) {
@@ -2273,16 +2306,20 @@ export default {
},
getOrder() {
let query = {
- workPlaceCode: this.workplaceId
+ workPlaceCode: this.workplaceId,
+ workPlaceQueueCode: this.curQueue.code
}
getProcessingOrder(query).then(res => {
if (res.code == 20000) {
if (res.data != null) {
this.refreshOrder(res.data)
}
- } else {
- this.$message.error('获取错误')
}
+ // this.redMesg = false
+ // else {
+ // this.$message.error('获取错误')
+ // }
+
})
},
@@ -2469,8 +2506,7 @@ export default {
this.workplaceId = this.$route.query.workplaceId
this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId)
this.orderFormData.splitBusType = 'YPCF002'
- //查找当前用户工位是否有正在处理的单据
- // this.getOrder()
+
} else {
if (this.orderQuery.workPlaceCode != null) {
this.orderFormData.workPlaceCode = String(this.orderQuery.workPlaceCode)