|
@@ -47,8 +47,11 @@ const SettleAccount = {
|
|
this.defaultVal = newValue||undefined
|
|
this.defaultVal = newValue||undefined
|
|
},
|
|
},
|
|
settleStyleSn(a,b){
|
|
settleStyleSn(a,b){
|
|
|
|
+ console.log(a,b)
|
|
if(a){
|
|
if(a){
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+ }else{
|
|
|
|
+ this.handleChange(undefined)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -65,9 +68,9 @@ const SettleAccount = {
|
|
},
|
|
},
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
this.defaultVal = value;
|
|
this.defaultVal = value;
|
|
- const accountName = this.list.find(item => item[this.defValKey] == value).accountName
|
|
|
|
|
|
+ const row = this.list.find(item => item[this.defValKey] == value)
|
|
this.$emit('input', value);
|
|
this.$emit('input', value);
|
|
- this.$emit('change', this.value, accountName);
|
|
|
|
|
|
+ this.$emit('change', this.defaultVal, row?row.accountName:'');
|
|
},
|
|
},
|
|
// 列表数据
|
|
// 列表数据
|
|
getList () {
|
|
getList () {
|