|
|
@@ -9,6 +9,10 @@
|
|
|
</div>
|
|
|
<div class="card-body">
|
|
|
<div class="form-group row m-1">
|
|
|
+ <span class="font-weight-bold text-sm-right" v-if="asnno">
|
|
|
+ @{{ asnno }}_已收/待收数量: @{{ asn_receivedqty }}/@{{ asn_expectedqty }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="form-group row m-1 mt-1">
|
|
|
<span class="text-right">
|
|
|
<span class="fa fa-search fa-lg" aria-hidden="true" @click="selectAsnDetails()"></span>
|
|
|
<label for="sku" class="text-right text-danger font-weight-bold">产品:</label>
|
|
|
@@ -146,6 +150,8 @@
|
|
|
data:{
|
|
|
asnno:'{!! $asnno !!}',
|
|
|
customerid:'{!! $customerid !!}',
|
|
|
+ asn_expectedqty:'{!! $asn_expectedqty !!}',
|
|
|
+ asn_receivedqty:'{!! $asn_receivedqty !!}',
|
|
|
qualityStatus:{!! $qualityStatus !!},
|
|
|
attributeLocations:{!! $attributeLocations !!},
|
|
|
basSku:{},
|
|
|
@@ -233,6 +239,14 @@
|
|
|
this.info.name='';
|
|
|
this.info.expectedqty=0;
|
|
|
this.info.receivedqty=0;
|
|
|
+ this.info.amount='';
|
|
|
+ this.info.asnlineno='';
|
|
|
+ this.info.lotatt01='';
|
|
|
+ this.info.lotatt02='';
|
|
|
+ this.info.lotatt03='';
|
|
|
+ this.info.lotatt04='';
|
|
|
+ this.info.lotatt05='';
|
|
|
+ this.info.lotatt08='';
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
|
fillInfo(asnDetail){
|
|
|
@@ -260,7 +274,10 @@
|
|
|
enterVal(e){
|
|
|
let index = this.element.indexOf(e.target.id)+1;
|
|
|
let element = document.getElementById(this.element[index]);
|
|
|
- if (element)element.focus();
|
|
|
+ if (element){
|
|
|
+ element.focus();
|
|
|
+ element.select();
|
|
|
+ }
|
|
|
e.preventDefault();
|
|
|
return false;
|
|
|
},
|
|
|
@@ -275,12 +292,12 @@
|
|
|
this.$forceUpdate()
|
|
|
return;
|
|
|
}else {
|
|
|
- window.tempTip.setDuration(2000);
|
|
|
+ window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show(res.data.data);
|
|
|
this.isInit=true;
|
|
|
}
|
|
|
}).catch(err=>{
|
|
|
- window.tempTip.setDuration(2000);
|
|
|
+ window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show("网络错误:"+err);
|
|
|
})
|
|
|
},
|
|
|
@@ -300,14 +317,18 @@
|
|
|
.then(res=>{
|
|
|
if (res.data.success){
|
|
|
window.tempTip.setDuration(2000);
|
|
|
- window.tempTip.showSuccess(res.data.data);
|
|
|
- this.info={};
|
|
|
+ window.tempTip.showSuccess('收货成功');
|
|
|
+ // this.info={};
|
|
|
+ this.clearInfo();
|
|
|
+ this.asn_expectedqty=res.data.data.expectedqty;
|
|
|
+ this.asn_receivedqty=res.data.data.receivedqty;
|
|
|
this.asnDetails=[];
|
|
|
this.$forceUpdate();
|
|
|
document.getElementById("sku").focus();
|
|
|
+ document.getElementById("sku").select();
|
|
|
return;
|
|
|
}
|
|
|
- window.tempTip.setDuration(2000);
|
|
|
+ window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show(res.data.data);
|
|
|
}).catch(err=>{
|
|
|
window.tempTip.setDuration(2000);
|