Browse Source

fix(SCRM-5668): 完善车牌管理交互,在燃油tab下点击绿叶,跳转到新能源tab

john 1 year ago
parent
commit
4e74827552

+ 2 - 3
src/pages/parkingFee/mixins/vehicleAddOrEdit.js

@@ -109,14 +109,13 @@ export default {
     },
     },
     // 唤起键盘
     // 唤起键盘
     clickShowKeyboard(index) {
     clickShowKeyboard(index) {
-      this.ind = index;
-      this.active = index;
       // console.log('唤起键盘', this.ind, this.active);
       // console.log('唤起键盘', this.ind, this.active);
       if ( index === 7) {
       if ( index === 7) {
-        console.log(2222)
         this.carType = 1
         this.carType = 1
         this.$refs['k-tab-edit'].changeTab(this.carType)
         this.$refs['k-tab-edit'].changeTab(this.carType)
       }
       }
+      this.ind = index;
+      this.active = index;
       this.$nextTick(() => {
       this.$nextTick(() => {
         // return;
         // return;
         if (index === 0) {
         if (index === 0) {

+ 2 - 2
src/pages/parkingFeeV2/mixins/vehicleAddOrEdit.js

@@ -88,12 +88,12 @@ export default {
     // 唤起键盘
     // 唤起键盘
     clickShowKeyboard(index) {
     clickShowKeyboard(index) {
       // if (this.carType !== 1 && index === 7) return
       // if (this.carType !== 1 && index === 7) return
-      this.ind = index;
-      this.active = index;
       if ( index === 7) {
       if ( index === 7) {
         this.carType = 1
         this.carType = 1
         this.$refs['k-tab'].changeTab(this.carType)
         this.$refs['k-tab'].changeTab(this.carType)
       }
       }
+      this.ind = index;
+      this.active = index;
       // console.log('唤起键盘', this.ind, this.active);
       // console.log('唤起键盘', this.ind, this.active);
       this.$nextTick(() => {
       this.$nextTick(() => {
         // return;
         // return;