diff --git a/src/views/collect/IoCreateOrder.vue b/src/views/collect/IoCreateOrder.vue index 01bb6c3b..c7164141 100644 --- a/src/views/collect/IoCreateOrder.vue +++ b/src/views/collect/IoCreateOrder.vue @@ -9,12 +9,17 @@ > +
+ 扫码总数量: + {{ scanReCount }} +
请先扫取货槽编码 {{ curQueueName }} + @@ -604,6 +610,7 @@ export default { scanStatus: null, // 1:扫码剔除 codeArray: [], curQueueName: "", + scanReCount: 0, curQueue: null, redMesg: false, redMesgOld: false, @@ -683,6 +690,7 @@ export default { this.curQueueName = ''; this.redMesg = this.redMesgOld this.orderStatus = false + this.scanReCount = 0 this.refreshCodesPanel() }, //获取用户仓库列表 @@ -1293,6 +1301,9 @@ export default { this.curQueueName = "当前取货槽:" + this.productName + "(" + this.curQueue.code + ")" this.orderStatus = true }, + getCount(count){ + this.scanReCount = count + }, refreshOrder(orderQuery) { this.orderFormData = orderQuery diff --git a/src/views/collect/PanelCreateCodeDetail.vue b/src/views/collect/PanelCreateCodeDetail.vue index 78f3cf6c..7cba7856 100644 --- a/src/views/collect/PanelCreateCodeDetail.vue +++ b/src/views/collect/PanelCreateCodeDetail.vue @@ -103,6 +103,7 @@ export default { this.query.orderId = this.idQuery.billNo; getDetailCodes(this.query) //查找该单号下的所有条码 .then((response) => { + this.detailList = response.data.list || []; this.total = response.data.total || 0; this.loading = false; @@ -111,6 +112,13 @@ export default { this.$emit('getOrderData', this.orderDetail) } this.$emit('clearBillNo', this.detailList.length > 0? false : true); + let count = 0; + if (this.detailList && this.detailList.length > 0) { + this.detailList.forEach(item => { + count += item.reCount; + }); + this.$emit('getCount', count); + } }) .catch(() => { this.loading = false;