md
This commit is contained in:
parent
364d304d36
commit
24da9fcb71
@ -1268,6 +1268,8 @@ methods: {
|
||||
this.form.intoWarehouseAddress=item.address;
|
||||
this.form.intoWarehouseContact=item.contact;
|
||||
this.form.intoWarehousePhone=item.tel;
|
||||
|
||||
this.calcSendSite();
|
||||
},
|
||||
selectGoods(e){
|
||||
this.form.goodsInfo = e.target.innerText;
|
||||
@ -1818,17 +1820,23 @@ methods: {
|
||||
this.calcSendSite();
|
||||
},
|
||||
calcSendSite(){
|
||||
let queryParams = {
|
||||
province:this.form.sender.province,
|
||||
city:this.form.sender.city,
|
||||
county:this.form.sender.county
|
||||
};
|
||||
if(this.form.sender.province){
|
||||
getSendSite(queryParams).then(response => {
|
||||
this.form.sendSiteCode= response.data.siteCode;
|
||||
this.form.sendSiteName= response.data.siteName;
|
||||
this.preCalcFee();
|
||||
});
|
||||
if(this.form.pickMethod==2){
|
||||
let queryParams = {
|
||||
province:this.form.sender.province,
|
||||
city:this.form.sender.city,
|
||||
county:this.form.sender.county
|
||||
};
|
||||
if(this.form.sender.province){
|
||||
getSendSite(queryParams).then(response => {
|
||||
this.form.sendSiteCode= response.data.siteCode;
|
||||
this.form.sendSiteName= response.data.siteName;
|
||||
this.preCalcFee();
|
||||
});
|
||||
}
|
||||
}else{
|
||||
this.form.sendSiteCode= this.form.intoWarehouseCode;
|
||||
this.form.sendSiteName= this.form.intoWarehouseName;
|
||||
this.preCalcFee();
|
||||
}
|
||||
},
|
||||
// 计算目的站点
|
||||
|
||||
Loading…
Reference in New Issue
Block a user