作者 王勇

校验车牌号存在问题

... ... @@ -15,15 +15,15 @@
<el-row :gutter="24">
<el-col :span="5">
<el-input v-model="queryInfo.driverName" prefix-icon="el-icon-search" clearable
placeholder="请输入驾驶员姓名"></el-input>
placeholder="请输入驾驶员姓名"></el-input>
</el-col>
<el-col :span="5">
<el-input v-model="queryInfo.driverMobile" prefix-icon="el-icon-search" clearable
placeholder="请输入驾驶员联系方式"></el-input>
placeholder="请输入联系方式"></el-input>
</el-col>
<el-col :span="5">
<el-input v-model="queryInfo.driverCompany" prefix-icon="el-icon-search" clearable
placeholder="请输入驾驶员所属公司"></el-input>
placeholder="请输入公司名称"></el-input>
</el-col>
<el-col :span="5">
<el-select v-model="queryInfo.driverStatus" clearable placeholder="请选择驾驶员状态">
... ... @@ -50,9 +50,6 @@
<el-table-column type="index" align="center"></el-table-column>
<el-table-column label="姓名" prop="driverName" align="center" width="100"></el-table-column>
<el-table-column label="联系方式" prop="driverMobile" align="center" width="130"></el-table-column>
<el-table-column label="驾驶证" prop="driverLicenseNumber" align="center"
width="150"></el-table-column>
<el-table-column label="工号" prop="jobNumber" align="center" width="120"></el-table-column>
<el-table-column label="职位" prop="driverPosition" align="center" width="100">
<template slot-scope="scope">
<span v-if="scope.row.driverPosition ==='1'">队长</span>
... ... @@ -61,7 +58,6 @@
<span v-if="scope.row.driverPosition ==='4'">员工</span>
</template>
</el-table-column>
<el-table-column label="公司" prop="driverCompany" align="center" width="160"></el-table-column>
<el-table-column label="状态" prop="driverStatus" align="center" width="120">
<template slot-scope="scope">
<span v-if="scope.row.driverStatus ==='1'">空闲状态</span>
... ... @@ -70,6 +66,10 @@
<span v-if="scope.row.driverStatus ==='4'">请假状态</span>
</template>
</el-table-column>
<el-table-column label="驾驶证" prop="driverLicenseNumber" align="center"
width="200"></el-table-column>
<el-table-column label="工号" prop="jobNumber" align="center" width="150"></el-table-column>
<el-table-column label="公司" prop="driverCompany" align="center" width="160"></el-table-column>
<el-table-column label="操作" width="220px" align="center" fixed="right">
<template slot-scope="scope">
<!--查看按钮-->
... ...
... ... @@ -211,7 +211,7 @@
<div>
<br>
<el-form-item label="车牌号码:" prop="licensePlateNumber">
<el-input v-model="editVehicleInfoForm.licensePlateNumber" clearable
<el-input v-model="editVehicleInfoForm.licensePlateNumber" clearable readonly
style="width:250px"
placeholder="请输入车牌号码"></el-input>
</el-form-item>
... ... @@ -527,6 +527,9 @@
if (res.code !== '200') {
//关闭加载
this.addLoading = false;
if(res.code === '406'){
return this.$message.error('该车牌号已存在,请重新填写');
}
return this.$message.error('添加车辆信息,失败');
}
//关闭加载
... ...