import commonFunctions from '~/mixin/commonFunctions.js'; export default { mixins: [commonFunctions], methods: { checkAndSetSeamtFr(){ // if amt to is a number if(!isNaN(this.model.seaamtto)){ // if amount to is a number, while amount from it not, then set amt from default value 0.00. if(this.model.seaamtfr === ''||isNaN(this.model.seaamtfr)){ this.model.seaamtfr = 0.00; } } }, // if seapty has changed, set the seaptyNotEmpty flag seaptyChange(){ if(this.model.seapty!=null&&this.model.seapty!=''){ this.seaptyNotEmpty=true; }else{ this.seaptyNotEmpty=false; } }, // if ptyExtkey has changed, set the ptyExtkeyNotEmpty flag ptyExtkeyChange(){ // this.queryNam() if(this.model.ptyExtkey!=null&&this.model.ptyExtkey!='') { this.ptyExtkeyNotEmpty = true; }else{ this.ptyExtkeyNotEmpty = false; } }, }, } //你可以添加自动default处理