Commit 26d15031 authored by 我在何方's avatar 我在何方

创建收款单客户优化

parent ee3e3291
......@@ -811,7 +811,27 @@ export default {
that.calculation()
getOrder(that.$route.query.orderId).then(response => {
// console.log(response.data)
if(response.data.customerId) that.$set(that.form,'customerId',response.data.customerId)
if(response.data.customerId){
that.$set(that.form,'customerId',response.data.customerId)
}else{
if(response.data.drawee==1){
that.$set(that.form,'customerId',response.data.consignorVO.customerId)
}else if(response.data.drawee==2){
that.$set(that.form,'customerId',response.data.consigneeVO.customerId)
}else{
if(response.data.customDraweeVOList){
response.data.customDraweeVOList.map(v=>{
if(v.name == 'freight'){
if(v.value==1){
that.$set(that.form,'customerId',response.data.consignorVO.customerId)
}else{
that.$set(that.form,'customerId',response.data.consigneeVO.customerId)
}
}
})
}
}
}
})
getDestCountryByOrderId({orderId:that.$route.query.orderId}).then(response => {
// console.log(response.data)
......@@ -854,7 +874,27 @@ export default {
})
this.calculation()
getOrder(that.$route.query.orderId).then(response => {
if(response.data.customerId) this.$set(this.form,'customerId',response.data.customerId)
if(response.data.customerId){
that.$set(that.form,'customerId',response.data.customerId)
}else{
if(response.data.drawee==1){
that.$set(that.form,'customerId',response.data.consignorVO.customerId)
}else if(response.data.drawee==2){
that.$set(that.form,'customerId',response.data.consigneeVO.customerId)
}else{
if(response.data.customDraweeVOList){
response.data.customDraweeVOList.map(v=>{
if(v.name == 'freight'){
if(v.value==1){
that.$set(that.form,'customerId',response.data.consignorVO.customerId)
}else{
that.$set(that.form,'customerId',response.data.consigneeVO.customerId)
}
}
})
}
}
}
})
})
getDestCountryByOrderId({orderId:this.$route.query.orderId}).then(response => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment