MrShi
3 天以前 ffba2c405154eb6de9be00d9b5632e8a33ffc366
admin/src/views/business/jkKeys.vue
@@ -6,7 +6,7 @@
        <el-input v-model="searchForm.code" placeholder="请输入钥匙编号" @keypress.enter.native="search"></el-input>
      </el-form-item>
      <el-form-item label="所属车辆" prop="carId">
        <el-select v-model="searchForm.carId" placeholder="请选择" @change="search">
        <el-select v-model="searchForm.carId" filterable placeholder="请选择" @change="search">
          <el-option
            v-for="item in carAll"
            :key="item.id"
@@ -45,7 +45,11 @@
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column prop="code" label="钥匙编号" min-width="100px"></el-table-column>
        <el-table-column prop="carCode" label="所属车辆" min-width="100px"></el-table-column>
        <el-table-column prop="rfidLable" label="RFID标签" min-width="100px"></el-table-column>
        <el-table-column prop="rfidLable" label="RFID标签" min-width="150px">
          <template slot-scope="{row}">
            <span v-if="row.rfidCode">{{row.rfidCode}} ({{row.rfidLable}})</span>
          </template>
        </el-table-column>
        <el-table-column prop="cabinetName" label="绑定钥匙柜" min-width="100px"></el-table-column>
        <el-table-column prop="gridCode" label="存放位置" min-width="100px"></el-table-column>
        <el-table-column label="绑定状态" min-width="100px">
@@ -123,7 +127,7 @@
  },
  methods: {
    getCars() {
      allList({ type: 0 })
      allList({  })
        .then(res => {
          this.carAll = res
        })