|
@@ -915,6 +915,16 @@
|
|
|
},
|
|
|
submit() {
|
|
|
if (this.validate()) return
|
|
|
+ if(this.dataObj.cargoOwner == '个人货主'){
|
|
|
+ this.dataObj.compId == ""
|
|
|
+ }else{
|
|
|
+ for(let i = 0;i<this.qyList.length;i++){
|
|
|
+ if(this.dataObj.cargoOwner == this.qyList[i].companyName){
|
|
|
+ this.dataObj.compId = this.qyList[i].id
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
this.isShowAlert = true;
|
|
|
|
|
|
|