From a9f3181dd5254939352ee7c6da5fb64977f106bb Mon Sep 17 00:00:00 2001 From: "Mr.sun" <2290907227@qq.com> Date: Mon, 11 Mar 2024 12:02:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=BE=85=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/AvgOrderPkg/index.scss | 4 +- pages/AvgOrderPkg/index.vue | 104 ++++++++++++++++++++++++++--------- 2 files changed, 81 insertions(+), 27 deletions(-) diff --git a/pages/AvgOrderPkg/index.scss b/pages/AvgOrderPkg/index.scss index 730deee..9cfc3cb 100644 --- a/pages/AvgOrderPkg/index.scss +++ b/pages/AvgOrderPkg/index.scss @@ -32,7 +32,7 @@ display: flex; flex-direction:column; height: 340px; - flex: 340px; + flex: 380px; overflow: auto; .sh-card { // background-color: red; @@ -207,7 +207,7 @@ .bottom{ display: flex; - flex: 130px; + flex: 110px; position:fixed; height: 40px; width: 100%; diff --git a/pages/AvgOrderPkg/index.vue b/pages/AvgOrderPkg/index.vue index 8a91fe0..3ee0570 100644 --- a/pages/AvgOrderPkg/index.vue +++ b/pages/AvgOrderPkg/index.vue @@ -74,7 +74,9 @@ 待出库数量: {{item.qty}} - + 实际数量: + {{item.pickQty}} + @@ -84,13 +86,14 @@ + 数量确认 - 缴库数量: + 待出库数量: @@ -99,6 +102,7 @@ + @@ -128,7 +132,8 @@ pageNum: 1, pageSize: 10 }, - + outQty:0, + index:'', pickUpObj:{ pointNo:'', taskCode:'', @@ -137,26 +142,69 @@ dtlAddBos:[] }, dataList: [ - // { - // "id": 3, - // "orderNo": "FL20240306002", - // "waveCode": "BC120240300606", - // "lineId": 0, - // "goodId": 14, - // "locationId": 172, - // "qty": 10.0000, - // "packageId": 14, - // "taskType": "1", - // "sourceOrderNo": "FL20240306002", - // "sourceLineId": "", - // "upperOrderNo": "FL20240306002", - // "goodNo": "L010002", - // "locationCode": "20-18-0", - // "specifications": "件", - // "containerCode": "P10000002", - // "goodName": "铝合金规格2", - // "batchNo": "07144961" - // }, + { + "id": 3, + "orderNo": "FL20240306002", + "waveCode": "BC120240300606", + "lineId": 0, + "goodId": 14, + "locationId": 172, + "qty": 10.0000, + "packageId": 14, + "taskType": "1", + "sourceOrderNo": "FL20240306002", + "sourceLineId": "", + "upperOrderNo": "FL20240306002", + "goodNo": "L010002", + "locationCode": "20-18-0", + "specifications": "件", + "containerCode": "P10000002", + "goodName": "铝合金规格2", + "batchNo": "07144961" , + "pickQty":12 + }, + { + "id": 4, + "orderNo": "FL20240306002", + "waveCode": "BC120240300606", + "lineId": 0, + "goodId": 14, + "locationId": 172, + "qty": 12.0000, + "packageId": 14, + "taskType": "1", + "sourceOrderNo": "FL20240306002", + "sourceLineId": "", + "upperOrderNo": "FL20240306002", + "goodNo": "L010002", + "locationCode": "20-18-0", + "specifications": "件", + "containerCode": "P10000002", + "goodName": "铝合金规格2", + "batchNo": "07144961", + "pickQty":14 + }, + { + "id": 6, + "orderNo": "FL20240306002", + "waveCode": "BC120240300606", + "lineId": 0, + "goodId": 14, + "locationId": 172, + "qty": 13.0000, + "packageId": 14, + "taskType": "1", + "sourceOrderNo": "FL20240306002", + "sourceLineId": "", + "upperOrderNo": "FL20240306002", + "goodNo": "L010002", + "locationCode": "20-18-0", + "specifications": "件", + "containerCode": "P10000002", + "goodName": "铝合金规格2", + "batchNo": "07144961", + "pickQty":18 + }, ], query: { @@ -227,7 +275,10 @@ this.pickUpObj.dtlAddBos.push({qrCode:item.qrCode} ) }, - editBtn(){ + editBtn(index){ + console.log(index); + this.outQty = this.dataList[index].qty + this.index= index this.show=true }, queryList(index,item){ @@ -237,6 +288,8 @@ enterUp(item){ console.log(item); + this.dataList[this.index].qty =this.outQty + this.dataList[this.index].pickQty =this.outQty this.show=false @@ -333,7 +386,8 @@ obj.detailBoList.push( { id:item.id, - qty:item.qty + qty:item.qty, + pickQty:item.pickQty, }) })