|
@@ -72,9 +72,9 @@
|
|
|
if(this.form.carNum.length == 1) {
|
|
|
this.$refs.uKeyboard.changeCarInputMode();
|
|
|
}
|
|
|
- if(this.form.carNum.length == 8 && this.form.carNum.slice(1,3) == 'DD') {
|
|
|
+ if(this.form.carNum.length == 8) {
|
|
|
this.carName = '新能源车';
|
|
|
- } else if (this.form.carNum.length == 7 && this.form.carNum.slice(1,3) != 'DD') {
|
|
|
+ } else if (this.form.carNum.length == 7) {
|
|
|
this.carName = '燃油车';
|
|
|
} else {
|
|
|
this.carName = '';
|
|
@@ -91,9 +91,9 @@
|
|
|
if(this.form.carNum.length == 0 && aaa) {
|
|
|
this.$refs.uKeyboard.changeCarInputMode();
|
|
|
}
|
|
|
- if(this.form.carNum.length == 8 && this.form.carNum.slice(1,3) == 'DD') {
|
|
|
+ if(this.form.carNum.length == 8) {
|
|
|
this.carName = '新能源车';
|
|
|
- } else if (this.form.carNum.length == 7 && this.form.carNum.slice(1,3) != 'DD') {
|
|
|
+ } else if (this.form.carNum.length == 7) {
|
|
|
this.carName = '燃油车';
|
|
|
} else {
|
|
|
this.carName = '';
|
|
@@ -113,9 +113,9 @@
|
|
|
if(this.form.id == carId) {
|
|
|
this.form.carNum = this.carList[i].carNum;
|
|
|
this.form.defaultFlag = this.carList[i].defaultFlag;
|
|
|
- if(this.form.carNum.length == 8 && this.form.carNum.slice(1,3) == 'DD') {
|
|
|
+ if(this.form.carNum.length == 8) {
|
|
|
this.carName = '新能源车';
|
|
|
- } else if (this.form.carNum.length == 7 && this.form.carNum.slice(1,3) != 'DD') {
|
|
|
+ } else if (this.form.carNum.length == 7) {
|
|
|
this.carName = '燃油车';
|
|
|
} else {
|
|
|
this.carName = '';
|