1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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;
}
},
relFlagReset(){
if(this.model.seaauthorized ==='') {
this.model.relflg = '';
}
}
},
}
//你可以添加自动default处理