|
@@ -240,10 +240,10 @@
|
|
<div style="text-align:center">
|
|
<div style="text-align:center">
|
|
<el-form ref="form" label-width="110px">
|
|
<el-form ref="form" label-width="110px">
|
|
<el-form-item label="客户名">
|
|
<el-form-item label="客户名">
|
|
- <el-select filterable clearable v-model="customerName" placeholder="请选择客户" class="typeselect"
|
|
|
|
|
|
+ <el-select filterable clearable v-model="customerNumberCard" placeholder="请选择客户" class="typeselect"
|
|
@change="customerChange">
|
|
@change="customerChange">
|
|
- <el-option v-for="item in customerlist" :key="item.customerName" :label="item.customerName"
|
|
|
|
- :value="item.customerName" />
|
|
|
|
|
|
+ <el-option v-for="item in customerlist" :key="item.customerNumberCard" :label="item.customerName"
|
|
|
|
+ :value="item.customerNumberCard" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="手机号">
|
|
<el-form-item label="手机号">
|
|
@@ -751,11 +751,10 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
customerChange(e){
|
|
customerChange(e){
|
|
- this.customerName = e
|
|
|
|
for(let i = 0 ; i < this.customerlist.length ; i++){
|
|
for(let i = 0 ; i < this.customerlist.length ; i++){
|
|
- if(this.customerName == this.customerlist[i].customerName){
|
|
|
|
|
|
+ if(this.customerNumberCard == this.customerlist[i].customerNumberCard){
|
|
this.customerPhone = this.customerlist[i].customerPhone
|
|
this.customerPhone = this.customerlist[i].customerPhone
|
|
- this.customerNumberCard = this.customerlist[i].customerNumberCard
|
|
|
|
|
|
+ this.customerName = this.customerlist[i].customerName
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|