|
@@ -260,9 +260,12 @@ export default {
|
|
|
// },
|
|
|
changeCustomerNumber(e,index){
|
|
|
if (!index) {
|
|
|
- this.searchForm.customerName = this.customerData.find(k=>{
|
|
|
+ const customerData = this.customerData.find(k=>{
|
|
|
return k.number === e
|
|
|
- }).name
|
|
|
+ })
|
|
|
+ this.searchForm.customerName = customerData.name
|
|
|
+ this.$set(this.dataList[index],'customerId',customerData.id)
|
|
|
+
|
|
|
}else{
|
|
|
const id = this.customerData.find(k=>{
|
|
|
return k.number === e
|
|
@@ -286,7 +289,8 @@ export default {
|
|
|
|
|
|
// //返利类型数据
|
|
|
async changeCustomerFn(v, index) {
|
|
|
- if (v.customerId == '') {
|
|
|
+ console.log(v);
|
|
|
+ if (v.customerId == '' ) {
|
|
|
return
|
|
|
}
|
|
|
|