出库数量,确认修改

master
Mr.sun 2 years ago
parent 73bac95f0d
commit a9e19e88e9
  1. 55
      pages/AvgOrderPkg/index.vue
  2. 7
      pages/checkAccept/index.vue

@ -21,40 +21,10 @@
<!-- class="sh-card" -->
<view v-for="(item, index) in dataList" :keys="item.id" :index="item.id" v-if="dataList.length > 0"
style="border-radius: 20rpx;">
<!--<view class="sh-card-title" style="border-radius: 20rpx;">
<image src="@/static/icon/edit.png" @click="editBtn(index)" style="width: 2.5vh;height: 2.5vh;position: absolute;right: 1vh;margin-top: 1vh;" />
<view class="card-content">
<view class="card-content-item" width="60%" style="margin-top: 1vh;">
<text class="item-title" >物料编号:</text>
<text class="item-value">{{item.goodNo}}</text>
</view>
</view>
<view class="card-content">
<view class="card-content-item">
<text class="item-title">物料信息:</text>
<text class="item-value">{{item.goodName}}--{{item.specifications}}</text>
</view>
</view>
<view class="card-content">
<view class="card-content-item">
<text class="item-title">缴库数量:</text>
<text class="item-value">{{item.qty}}</text>
</view>
</view>
</view> -->
<u-card :thumb="thumb" :show-foot="false" >
<view class="" slot="body">
<!-- <view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0">
<view class="u-body-item-title u-line-2">瓶身描绘的牡丹一如你初妆冉冉檀香透过窗心事我了然宣纸上走笔至此搁一半</view>
</view> -->
<view class="sh-card-title" style="border-radius: 20rpx;font-size: 34rpx;">
<image src="@/static/icon/edit.png" @click="editBtn(index)" style="width: 2.5vh;height: 2.5vh;position: absolute;right: 1vh;margin-top: -7vh;" />
<image src="@/static/icon/edit.png" @click="editBtn(index)" style="width: 2.5vh;height: 2.5vh;position: absolute;right: 1vh;margin-top: -6vh;" />
<view class="card-content">
<view class="card-content-item" width="60%" style="margin-top: 1vh;">
@ -93,7 +63,7 @@
<text>数量确认</text>
</view>
<view style="width: 100%;display: flex;align-items: baseline;">
<text style="margin: 0px 20px 0px;">待出库数量:</text> <input v-model="outQty" 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;">
@ -101,7 +71,7 @@
<button style="width: 30%;font-size: 16px;line-height: 44px;;" type="default" @click="enterUp(item)">确认</button>
</view>
</u-popup>
</u-popup>
</view>
</view>
@ -121,7 +91,7 @@
export default {
data() {
return {
show:false,
show:false,
showDiv:false,
focusFlag:true,
queryFlag: '',
@ -276,33 +246,22 @@
},
editBtn(index){
console.log(index);
this.outQty = this.dataList[index].qty
this.index= index
this.show=true
},
queryList(index,item){
console.log(index,item);
this.dataForm.containerCode=item.containerCode
},
enterUp(item){
console.log(item);
this.dataList[this.index].qty =this.outQty
// console.log(item);
// this.dataList[this.index].qty =this.outQty
this.dataList[this.index].pickQty =this.outQty
this.show=false
// this.$u.api.replaceCar.upateBusinItemInDataForQty(item).then(res=>{
// console.log(res);
// })
},
/**搜索框查询*/
inputQuery() {
// if (this.queryFlag !== '') {
// clearTimeout(this.queryFlag);
// this.loadList()
// }
if (this.dataForm.containerCode == '' || this.dataForm.containerCode == null || this.dataForm.containerCode ==
undefined) {
return
@ -345,6 +304,7 @@
if(!res.data || res.data.length == 0){
// console.log(res);
this.$u.toast("当前台车不存在");
this.dataList=res.data
}else if(res.code == '200'){
// console.log(res);
res.data.forEach((item)=>{
@ -396,6 +356,7 @@
this.$u.api.pickBy.pickAGV(obj).then(res=>{
obj={}
this.dataList=[]
this.$u.toast(res.msg);
this.dataForm.containerCode=''
})
},

@ -43,10 +43,12 @@
<text class="item-value">{{item.goodNo}}</text>
</view>
</view>
<view class="card-content"><view class="card-content-item">
<view class="card-content">
<view class="card-content-item">
<text class="item-title">商品名称</text>
<text class="item-value">{{item.goodName}}</text>
</view></view>
</view>
</view>
<view class="card-content">
<view class="card-content-item">
<text class="item-title">收货数量</text>
@ -140,7 +142,6 @@
}
},
methods: {
//
handleData(item,index){
let _ = this;

Loading…
Cancel
Save