Commit 9adbe1a9 authored by lixy's avatar lixy

车辆预警消息

parent ffbc494c
...@@ -730,9 +730,16 @@ ...@@ -730,9 +730,16 @@
<el-input v-model="upkeepForm.approvers" placeholder="请输入保养审批人"></el-input> <el-input v-model="upkeepForm.approvers" placeholder="请输入保养审批人"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="分公司" prop="branchCompanyId"> <el-form-item label="分公司" prop="branchCompanyId">
<el-select class="filter-item" v-model="upkeepForm.branchCompanyId" placeholder="请选择分公司"> <!--<el-select class="filter-item" v-model="upkeepForm.branchCompanyId" placeholder="请选择分公司">-->
<el-option v-for="item in allCompanies" :key="item.id" :label="item.name" :value="item.id"></el-option> <!--<el-option v-for="item in allCompanies" :key="item.id" :label="item.name" :value="item.id"></el-option>-->
</el-select> <!--</el-select>-->
<el-autocomplete
class="inline-input"
v-model="upkeepForm.state1"
:fetch-suggestions="querySearch"
placeholder="请输入内容"
@select="handleSelect"
></el-autocomplete>
</el-form-item> </el-form-item>
<el-form-item label="保养项目" prop="upkeepItems"> <el-form-item label="保养项目" prop="upkeepItems">
<el-checkbox-group v-model="upkeepForm.upkeepItems"> <el-checkbox-group v-model="upkeepForm.upkeepItems">
...@@ -1124,6 +1131,7 @@ ...@@ -1124,6 +1131,7 @@
}, },
upkeepDialogVisible: false, upkeepDialogVisible: false,
upkeepForm: { upkeepForm: {
state1: "",
vehicleId: null, vehicleId: null,
numberPlate: null, numberPlate: null,
operator: null, operator: null,
...@@ -1410,6 +1418,9 @@ ...@@ -1410,6 +1418,9 @@
} }
console.log(item); console.log(item);
}, },
/**
* 保养结束
* */
upkeepEndHandler(row) { upkeepEndHandler(row) {
console.dir(row); console.dir(row);
this.$confirm('此操作将结束保养, 是否继续?', '提示', { this.$confirm('此操作将结束保养, 是否继续?', '提示', {
...@@ -1457,7 +1468,21 @@ ...@@ -1457,7 +1468,21 @@
}, },
upkeepHandler(row) { upkeepHandler(row) {
this.cleanUpkeepForm(); this.cleanUpkeepForm();
this.upkeepForm.branchCompanyId = row.subordinateBranch;
let that = this;
let selectArry = [];
this.allCompaniesArr.map(function(item){
item.value = item.name;
selectArry.push(item);
});
selectArry.map(function (iitem) {
if( row.subordinateBranch == iitem.id){
that.upkeepForm.state1 = iitem.name;
}
});
this.upkeepForm.mileage = row.mileageLastUpdate;
this.upkeepForm.vehicleId = row.id; this.upkeepForm.vehicleId = row.id;
this.upkeepForm.mileage = row.mileage;
this.upkeepForm.numberPlate = row.numberPlate; this.upkeepForm.numberPlate = row.numberPlate;
this.upkeepDialogVisible = true; this.upkeepDialogVisible = true;
}, },
...@@ -1468,6 +1493,7 @@ ...@@ -1468,6 +1493,7 @@
operator: null, operator: null,
date: null, date: null,
mileage: null, mileage: null,
state1: "",
amount: null, amount: null,
approvers: null, approvers: null,
branchCompanyId: null, branchCompanyId: null,
...@@ -1487,6 +1513,7 @@ ...@@ -1487,6 +1513,7 @@
this.arrivalDialogVisible = true; this.arrivalDialogVisible = true;
this.clearArrivalForm(); this.clearArrivalForm();
this.arrivalForm.vehicleId = row.id; this.arrivalForm.vehicleId = row.id;
this.arrivalForm.mileage = row.mileage;
this.arrivalForm.arrivalBranchCompanyId = row.subordinateBranch; this.arrivalForm.arrivalBranchCompanyId = row.subordinateBranch;
let that = this; let that = this;
let selectArry = []; let selectArry = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment