|
@@ -4,9 +4,24 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<div class="top">
|
|
|
- <el-input placeholder="客户" class="input-demo" v-model="customerName"></el-input>
|
|
|
- <el-input placeholder="企业" class="input-demo" v-model="companyName"></el-input>
|
|
|
- <el-button type="success" style="margin-left: 1%;" @click="loadData">查询</el-button>
|
|
|
+ <div class="demo-input-suffix">
|
|
|
+ <el-input placeholder="客户名称" class="input-demo" v-model="formCondition.companyName"></el-input>
|
|
|
+ <el-input placeholder="企业编号" class="input-demo" v-model="formCondition.companyNum"></el-input>
|
|
|
+ <el-input placeholder="etc卡号" class="input-demo" v-model="formCondition.etcNum"></el-input>
|
|
|
+ <el-input placeholder="车牌号" class="input-demo" v-model="formCondition.carNum"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="demo-input-suffix" style="margin-top: 5px;margin-left: 10px;">
|
|
|
+
|
|
|
+ <el-select v-model="formCondition.recStatus" placeholder="备案状态">
|
|
|
+ <el-option
|
|
|
+ v-for="item in recLists"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-button type="success" style="margin-left: 1%;" @click="loadData">查询</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -21,13 +36,13 @@
|
|
|
border
|
|
|
tooltip-effect="dark">
|
|
|
<el-table-column
|
|
|
- label="客户名称"
|
|
|
- prop="customerName"
|
|
|
+ label="企业编号"
|
|
|
+ prop="companyNum"
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="companyName"
|
|
|
- label="公司名称"
|
|
|
+ label="客户名称"
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -50,16 +65,16 @@
|
|
|
label="车辆颜色"
|
|
|
show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.plateColor == 0" style="color: green">蓝色</span>
|
|
|
- <span v-else-if="scope.row.plateColor == 1" >黄色</span>
|
|
|
- <span v-else-if="scope.row.plateColor == 2" >黑色</span>
|
|
|
- <span v-else-if="scope.row.plateColor == 3" >白色</span>
|
|
|
- <span v-else-if="scope.row.plateColor == 4" >渐变绿色</span>
|
|
|
- <span v-else-if="scope.row.plateColor == 5" >黄绿渐变色</span>
|
|
|
- <span v-else-if="scope.row.plateColor == 6" >蓝白渐变色</span>
|
|
|
- <span v-else-if="scope.row.plateColor == 7" >未确定</span>
|
|
|
- <span v-else-if="scope.row.plateColor == 8" >未确定</span>
|
|
|
- <span v-else-if="scope.row.plateColor == 9" >未确定</span>
|
|
|
+ <span v-if="scope.row.carColor == 0">蓝色</span>
|
|
|
+ <span v-else-if="scope.row.carColor == 1" >黄色</span>
|
|
|
+ <span v-else-if="scope.row.carColor == 2" >黑色</span>
|
|
|
+ <span v-else-if="scope.row.carColor == 3" >白色</span>
|
|
|
+ <span v-else-if="scope.row.carColor == 4" >渐变绿色</span>
|
|
|
+ <span v-else-if="scope.row.carColor == 5" >黄绿渐变色</span>
|
|
|
+ <span v-else-if="scope.row.carColor == 6" >蓝白渐变色</span>
|
|
|
+ <span v-else-if="scope.row.carColor == 7" >未确定</span>
|
|
|
+ <span v-else-if="scope.row.carColor == 8" >未确定</span>
|
|
|
+ <span v-else-if="scope.row.carColor == 9" >未确定</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -125,8 +140,10 @@
|
|
|
data(){
|
|
|
return{
|
|
|
selfcarRecCarTable:[],
|
|
|
- companyName:'',
|
|
|
- customerName:'',
|
|
|
+ recLists:[{"label":"备案失败","value":"1"},{"label":"备案成功","value":"2"}],
|
|
|
+ formCondition:{
|
|
|
+ businessType: "0"
|
|
|
+ },
|
|
|
current: 1,
|
|
|
pagesize: 8,
|
|
|
total:''
|
|
@@ -141,9 +158,9 @@
|
|
|
const formData = new FormData();
|
|
|
formData.append('current', this.current);
|
|
|
formData.append('size', this.pagesize);
|
|
|
- formData.append('companyName', this.companyName);
|
|
|
- formData.append('customerName', this.customerName);
|
|
|
- formData.append('businessType', 0);
|
|
|
+ for(var i in this.formCondition){
|
|
|
+ formData.append(i,this.formCondition[i]);
|
|
|
+ }
|
|
|
const response = await this.$http.post(`noCar/findCarRec`, formData);
|
|
|
if (response.data.code === 0) {
|
|
|
this.selfcarRecCarTable = response.data.data.records;
|