|
@@ -49,6 +49,8 @@ const SettleAccount = {
|
|
|
settleStyleSn(a,b){
|
|
|
if(a){
|
|
|
this.getList()
|
|
|
+ }else{
|
|
|
+ this.clearVal()
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -67,7 +69,7 @@ const SettleAccount = {
|
|
|
this.defaultVal = value;
|
|
|
const accountName = this.list.find(item => item[this.defValKey] == value).accountName
|
|
|
this.$emit('input', value);
|
|
|
- this.$emit('change', this.value, accountName);
|
|
|
+ this.$emit('change', value, accountName);
|
|
|
},
|
|
|
// 列表数据
|
|
|
getList () {
|
|
@@ -80,6 +82,12 @@ const SettleAccount = {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ clearVal(){
|
|
|
+ this.list = []
|
|
|
+ this.defaultVal = undefined
|
|
|
+ this.$emit('input', undefined);
|
|
|
+ this.$emit('change', undefined, undefined);
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
|