选择待出库数量

master
Mr.sun 2 years ago
parent 78501aa0ba
commit a9f3181dd5
  1. 4
      pages/AvgOrderPkg/index.scss
  2. 102
      pages/AvgOrderPkg/index.vue

@ -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%;

@ -74,6 +74,8 @@
<view class="card-content-item" style="margin-top: 8rpx;">
<text class="item-title">待出库数量:</text>
<text class="item-value">{{item.qty}}</text>
<text class="item-title" style="margin-left: 32px;">实际数量:</text>
<text class="item-value">{{item.pickQty}}</text>
</view>
</view>
@ -84,13 +86,14 @@
</view>
<view class="" slot="foot"><u-icon name="chat-fill" size="34" color="" label="30评论"></u-icon></view>
</u-card>
<u-popup v-model="show" width='90%' height="220px" :mask-close-able="false" :mask="true" @close="close" mode="center">
<view style="height: 44px;text-align: center;line-height: 44px;font-size: 18px;margin-bottom: 18px;">
<text>数量确认</text>
</view>
<view style="width: 100%;display: flex;align-items: baseline;">
<text style="margin: 0px 20px 0px;">库数量:</text> <input v-model="item.qty" style="border:1px solid #000;padding-right: 20px;"></u-input>
<text style="margin: 0px 20px 0px;">待出库数量:</text> <input v-model="outQty" style="border:1px solid #000;padding-right: 20px;"></u-input>
</view>
<view style="width: 100%; display: flex;margin-top: 40px;font-size: 14px;">
@ -99,6 +102,7 @@
</view>
</u-popup>
</view>
</view>
@ -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,
})
})

Loading…
Cancel
Save