Przeglądaj źródła

增加车型搜索

@dongkboy 3 lat temu
rodzic
commit
f19f181222
1 zmienionych plików z 13 dodań i 6 usunięć
  1. 13 6
      src/views/Letter/Letter.vue

+ 13 - 6
src/views/Letter/Letter.vue

@@ -1010,6 +1010,14 @@
       </span>
     </el-dialog>
     <el-dialog title="车型选择" :visible.sync="chexingdialogVisible" width="1300px">
+      <el-form :inline="true"  class="demo-form-inline" size="small">
+        <el-form-item label="厂牌型号">
+          <el-input v-model="carInfo.modelcname" placeholder="厂牌型号" style="width:500px;"></el-input>
+        </el-form-item>
+        <el-form-item>
+          <el-button type="warning" size="small" @click="toChooseVehicleType(carInfo.modelcname)">查询</el-button>
+        </el-form-item>
+      </el-form>
       <el-table size="small" :data="reslist" height="690" border style="width: 100%" v-loading="loading"
         :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }" highlight-current-row
         @row-dblclick="reslistCurrentChange">
@@ -1659,6 +1667,8 @@ export default {
       }
     };
     return {
+      formInline:{},
+
       xlcell: 6,
       lgcell: 12,
       mdcell: 12,
@@ -5039,11 +5049,11 @@ export default {
       this.carInfo.seatCount = this.carform.approvedPassengersCapacity; //核定载客数
       this.carInfo.vehicleweight = this.carform.grossMass; //总质量
       this.carInfo.completeKerbMass = this.carform.unladenMass; //整备质量
-      if(this.timeformat(this.carform.registerDate)!='NaN-NaN-NaN'){
+      if (this.timeformat(this.carform.registerDate) != 'NaN-NaN-NaN') {
         this.carInfo.registerDate = this.carform.registerDate; //车牌号
       }
-      if(this.timeformat(this.carform.issueDate)!='NaN-NaN-NaN'){
-      this.carInfo.issueDate = this.carform.issueDate; //车牌号
+      if (this.timeformat(this.carform.issueDate) != 'NaN-NaN-NaN') {
+        this.carInfo.issueDate = this.carform.issueDate; //车牌号
       }
       this.uploadcardialogVisible = false;
     },
@@ -5177,7 +5187,6 @@ export default {
             this.ownerInfoform[key] = '';
           });
           break;
-
         case 3:
           this.userfrontImg = '';
           this.userbackImg = '';
@@ -5187,7 +5196,6 @@ export default {
             this.ownerInfoform[key] = '';
           });
           break;
-
         case 4:
           this.userfrontImg = '';
           this.userbackImg = '';
@@ -5230,7 +5238,6 @@ export default {
               return ele;
             });
           }
-
           this.queryOrders = data;
           this.logoImg = this.iconfftter(res.data.inscompany)
           this.bjddialogVisible = true;