|
@@ -1,11 +1,29 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <el-form
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryForm"
|
|
|
+ :inline="true"
|
|
|
+ v-show="showSearch"
|
|
|
+ label-width="68px"
|
|
|
+ >
|
|
|
<el-form-item prop="unitName">
|
|
|
- <el-input v-model="queryParams.unitName" placeholder="请输入所属单位" clearable size="small" @input="handleQuery" />
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.unitName"
|
|
|
+ placeholder="请输入所属单位"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @input="handleQuery"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="vehiclenumber">
|
|
|
- <el-input v-model="queryParams.vehiclenumber" placeholder="请输入车牌号" clearable size="small" @input="handleQuery" />
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.vehiclenumber"
|
|
|
+ placeholder="请输入车牌号"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @input="handleQuery"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button size="btr" @click="resetQuery">重置</el-button>
|
|
@@ -14,42 +32,108 @@
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
|
|
- v-hasPermi="['militaryvehicleManagement:thebus:add']">新增</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ icon="el-icon-plus"
|
|
|
+ size="mini"
|
|
|
+ @click="handleAdd"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebus:add']"
|
|
|
+ >新增</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
|
|
- v-hasPermi="['militaryvehicleManagement:thebus:edit']">修改</el-button>
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ icon="el-icon-edit"
|
|
|
+ size="mini"
|
|
|
+ :disabled="single"
|
|
|
+ @click="handleUpdate"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebus:edit']"
|
|
|
+ >修改</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
|
|
- v-hasPermi="['militaryvehicleManagement:thebus:remove']">删除</el-button>
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ plain
|
|
|
+ icon="el-icon-delete"
|
|
|
+ size="mini"
|
|
|
+ :disabled="multiple"
|
|
|
+ @click="handleDelete"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebus:remove']"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button class="box" type="warning" plain icon="el-icon-download" size="mini" :loading="exportLoading"
|
|
|
- @click="handleExport" v-hasPermi="['medicalhealth:bdgldurgarchives:export']">导出</el-button>
|
|
|
+ <el-button
|
|
|
+ class="box"
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ :loading="exportLoading"
|
|
|
+ @click="handleExport"
|
|
|
+ v-hasPermi="['medicalhealth:bdgldurgarchives:export']"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="thebusList" @selection-change="handleSelectionChange"
|
|
|
- :header-cell-style="{ background: '#003C69', color: 'white' }">
|
|
|
+ <el-table
|
|
|
+ v-loading="loading"
|
|
|
+ :data="thebusList"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ :header-cell-style="{ background: '#003C69', color: 'white' }"
|
|
|
+ >
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="序号" align="center" prop="id">
|
|
|
<template scope="scope">
|
|
|
<span>{{
|
|
|
- (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
+ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="车牌号" align="center" prop="vehiclenumber" width="100" />
|
|
|
- <el-table-column label="车辆型号" align="center" prop="vehiclemodel" :formatter="vehicleModel" />
|
|
|
- <el-table-column label="车辆负责人" align="center" prop="peopleNames" width="120" />
|
|
|
- <el-table-column label="所属单位" align="center" prop="unitName" width="200px" />
|
|
|
- <el-table-column label="联系方式" align="center" prop="contactnumber" width="120" />
|
|
|
+ <el-table-column
|
|
|
+ label="车牌号"
|
|
|
+ align="center"
|
|
|
+ prop="vehiclenumber"
|
|
|
+ width="100"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="车辆型号"
|
|
|
+ align="center"
|
|
|
+ prop="vehiclemodel"
|
|
|
+ :formatter="vehicleModel"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="车辆负责人"
|
|
|
+ align="center"
|
|
|
+ prop="peopleNames"
|
|
|
+ width="120"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="所属单位"
|
|
|
+ align="center"
|
|
|
+ prop="unitName"
|
|
|
+ width="200px"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="联系方式"
|
|
|
+ align="center"
|
|
|
+ prop="contactnumber"
|
|
|
+ width="120"
|
|
|
+ />
|
|
|
<el-table-column label="发动机号" align="center" prop="engineNumber" />
|
|
|
<el-table-column label="车架号" align="center" prop="frameNumber" />
|
|
|
- <el-table-column label="车辆来源" align="center" prop="source" width="200" />
|
|
|
+ <el-table-column
|
|
|
+ label="车辆来源"
|
|
|
+ align="center"
|
|
|
+ prop="source"
|
|
|
+ width="200"
|
|
|
+ />
|
|
|
<el-table-column label="车辆颜色" align="center" prop="vehiclecolor" />
|
|
|
<el-table-column label="出厂日期" align="center" prop="date1" width="100">
|
|
|
<template slot-scope="scope">
|
|
@@ -58,7 +142,13 @@
|
|
|
<!-- :formatter="vehiclePresence" -->
|
|
|
</el-table-column>
|
|
|
<!-- 车辆在位情况1:在位,2:值班,3:出车,4待修 -->
|
|
|
- <el-table-column label="车辆在位情况" align="center" prop="status" width="100" :formatter="zaiWei">
|
|
|
+ <el-table-column
|
|
|
+ label="车辆在位情况"
|
|
|
+ align="center"
|
|
|
+ prop="status"
|
|
|
+ width="100"
|
|
|
+ :formatter="zaiWei"
|
|
|
+ >
|
|
|
<!-- <template slot-scope="scope">
|
|
|
<span v-if="scope.row.status == 1" style="color: #13ce66">在位</span>
|
|
|
<span v-if="scope.row.status == 2" style="colo: #00eaff">值班</span>
|
|
@@ -67,9 +157,25 @@
|
|
|
</template> -->
|
|
|
</el-table-column>
|
|
|
<el-table-column label="所在位置" align="center" prop="position" />
|
|
|
- <el-table-column label="是否上牌" align="center" prop="isListing" :formatter="licensePlate" />
|
|
|
- <el-table-column label="固定座位数" align="center" prop="seatCount" width="120" />
|
|
|
- <el-table-column label="备注" align="center" prop="remarks" width="120" show-overflow-tooltip />
|
|
|
+ <el-table-column
|
|
|
+ label="是否上牌"
|
|
|
+ align="center"
|
|
|
+ prop="isListing"
|
|
|
+ :formatter="licensePlate"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="固定座位数"
|
|
|
+ align="center"
|
|
|
+ prop="seatCount"
|
|
|
+ width="120"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="备注"
|
|
|
+ align="center"
|
|
|
+ prop="remarks"
|
|
|
+ width="120"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
<!-- <el-table-column label="创建时间" align="center" prop="createtime" /> -->
|
|
|
<!-- <el-table-column
|
|
|
label="车位号"
|
|
@@ -84,39 +190,96 @@
|
|
|
|
|
|
<el-table-column label="ETC品牌" align="center" prop="etcBrand" />
|
|
|
<el-table-column label="ETC编码" align="center" prop="etcNumber" /> -->
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ align="center"
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
+ width="200"
|
|
|
+ fixed="right"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="btu" type="text" @click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['militaryvehicleManagement:thebus:edit']">修改</el-button>
|
|
|
- <el-button size="btd" type="text" @click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['militaryvehicleManagement:thebus:remove']">删除</el-button>
|
|
|
+ <el-button
|
|
|
+ size="btu"
|
|
|
+ type="text"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebus:edit']"
|
|
|
+ >修改</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ size="btd"
|
|
|
+ type="text"
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebus:remove']"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
- @pagination="getList" />
|
|
|
+ <pagination
|
|
|
+ v-show="total > 0"
|
|
|
+ :total="total"
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
|
|
|
<!-- 添加或修改军车管理对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body :close-on-click-modal="false">
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="80px" inline>
|
|
|
+ <el-dialog
|
|
|
+ :title="title"
|
|
|
+ :visible.sync="open"
|
|
|
+ width="500px"
|
|
|
+ append-to-body
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
+ <el-form
|
|
|
+ ref="form"
|
|
|
+ :model="form"
|
|
|
+ :rules="rules"
|
|
|
+ label-width="80px"
|
|
|
+ inline
|
|
|
+ >
|
|
|
<el-form-item label="车属单位" prop="unitId">
|
|
|
- <treeselect v-model="form.unitId" :options="treeList" placeholder="选择单位" @select="selectPeo" />
|
|
|
+ <treeselect
|
|
|
+ v-model="form.unitId"
|
|
|
+ :options="treeList"
|
|
|
+ placeholder="选择单位"
|
|
|
+ @select="selectPeo"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车辆负责人" prop="peopleId">
|
|
|
- <el-select v-model="form.peopleId" placeholder="请输入负责人" filterable>
|
|
|
- <el-option v-for="(item, i) in renYuan" :key="i" :label="item.peopleName" :value="item.peopleId"
|
|
|
- @click.native="cheRen(item)" class="input_xiala">
|
|
|
+ <el-select
|
|
|
+ v-model="form.peopleId"
|
|
|
+ placeholder="请输入负责人"
|
|
|
+ filterable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, i) in renYuan"
|
|
|
+ :key="i"
|
|
|
+ :label="item.peopleName"
|
|
|
+ :value="item.peopleId"
|
|
|
+ @click.native="cheRen(item)"
|
|
|
+ class="input_xiala"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="联系方式" prop="contactnumber">
|
|
|
- <el-input v-model="form.contactnumber" placeholder="请输入联系方式" readonly />
|
|
|
+ <el-input
|
|
|
+ v-model="form.contactnumber"
|
|
|
+ placeholder="请输入联系方式"
|
|
|
+ readonly
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车牌型号" prop="vehiclemodel">
|
|
|
<el-select v-model="form.vehiclemodel" placeholder="请输入车牌型号">
|
|
|
- <el-option v-for="(item, i) in brand" :key="i" :label="item.dictLabel" :value="item.dictValue"
|
|
|
- class="input_xiala">
|
|
|
+ <el-option
|
|
|
+ v-for="(item, i) in brand"
|
|
|
+ :key="i"
|
|
|
+ :label="item.dictLabel"
|
|
|
+ :value="item.dictValue"
|
|
|
+ class="input_xiala"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -124,7 +287,10 @@
|
|
|
<el-input v-model="form.vehiclecolor" placeholder="请输入车辆颜色" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车位号" prop="parkingspacenumber">
|
|
|
- <el-input v-model="form.parkingspacenumber" placeholder="请输入车位号" />
|
|
|
+ <el-input
|
|
|
+ v-model="form.parkingspacenumber"
|
|
|
+ placeholder="请输入车位号"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="发动机号" prop="engineNumber">
|
|
|
<el-input v-model="form.engineNumber" placeholder="请输入发动机号" />
|
|
@@ -136,8 +302,14 @@
|
|
|
<el-input v-model="form.source" placeholder="请输入车辆来源" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="出厂日期" prop="date1">
|
|
|
- <el-date-picker clearable size="small" v-model="form.date1" type="date" value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择出厂日期">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ v-model="form.date1"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择出厂日期"
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="ETC品牌" prop="etcBrand">
|
|
@@ -151,8 +323,13 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="是否上牌" prop="isListing">
|
|
|
<el-select v-model="form.isListing" placeholder="请输入是否上牌">
|
|
|
- <el-option v-for="(item, i) in license" :key="i" :label="item.dictLabel" :value="item.dictValue"
|
|
|
- class="input_xiala">
|
|
|
+ <el-option
|
|
|
+ v-for="(item, i) in license"
|
|
|
+ :key="i"
|
|
|
+ :label="item.dictLabel"
|
|
|
+ :value="item.dictValue"
|
|
|
+ class="input_xiala"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -163,24 +340,47 @@
|
|
|
<el-input v-model="form.seatCount" placeholder="请输入固定座位数" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="车辆类别" prop="chelaingleibie">
|
|
|
- <el-input v-model="form.chelaingleibie" placeholder="请输入车辆类别" />
|
|
|
+ <el-input
|
|
|
+ v-model="form.chelaingleibie"
|
|
|
+ placeholder="请输入车辆类别"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审查结果" prop="shenhejieguo">
|
|
|
<el-input v-model="form.shenhejieguo" placeholder="请输入审查结果" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="状态" prop="status">
|
|
|
- <el-select v-model="form.status" placeholder="请输入是否在位" :disabled="chuF">
|
|
|
- <el-option v-for="(item, i) in military" :key="i" :label="item.dictLabel" :value="item.dictValue"
|
|
|
- class="input_xiala">
|
|
|
+ <el-select
|
|
|
+ v-model="form.status"
|
|
|
+ placeholder="请输入是否在位"
|
|
|
+ :disabled="chuF"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, i) in military"
|
|
|
+ :key="i"
|
|
|
+ :label="item.dictLabel"
|
|
|
+ :value="item.dictValue"
|
|
|
+ class="input_xiala"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="用途" prop="carUse">
|
|
|
<el-input v-model="form.carUse" placeholder="请输入用途" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="排序" prop="orders">
|
|
|
+ <el-input
|
|
|
+ v-model="form.orders"
|
|
|
+ oninput="value=value.replace(/[^\d]/g,'')"
|
|
|
+ placeholder="请输入排序"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
<div class="jiben">备注</div>
|
|
|
<el-form-item prop="remarks">
|
|
|
- <el-input v-model="form.remarks" type="textarea" placeholder="请输入内容" />
|
|
|
+ <el-input
|
|
|
+ v-model="form.remarks"
|
|
|
+ type="textarea"
|
|
|
+ placeholder="请输入内容"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -202,9 +402,7 @@ import {
|
|
|
getDept,
|
|
|
getRen,
|
|
|
} from "@/api/militaryvehicleManagement/thebus";
|
|
|
-import {
|
|
|
- updatestatus
|
|
|
-} from "@/api/combatduty/militarydutyinfo";
|
|
|
+import { updatestatus } from "@/api/combatduty/militarydutyinfo";
|
|
|
|
|
|
// 导入树形结构
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
@@ -270,9 +468,7 @@ export default {
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
- adminId: [
|
|
|
- { required: true, message: "创建人ID不能为空", trigger: "blur" },
|
|
|
- ],
|
|
|
+ orders: [{ required: true, message: "排序不能为空", trigger: "blur" }],
|
|
|
},
|
|
|
// 树形列表
|
|
|
treeList: [],
|
|
@@ -300,8 +496,7 @@ export default {
|
|
|
methods: {
|
|
|
// 更改军车状态
|
|
|
getStatuse() {
|
|
|
- updatestatus().then(res => {
|
|
|
- })
|
|
|
+ updatestatus().then((res) => {});
|
|
|
},
|
|
|
// 翻译
|
|
|
zaiWei(rows) {
|
|
@@ -383,7 +578,7 @@ export default {
|
|
|
this.thebusList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
- this.getStatuse()
|
|
|
+ this.getStatuse();
|
|
|
});
|
|
|
},
|
|
|
// 取消按钮
|
|
@@ -444,7 +639,7 @@ export default {
|
|
|
this.open = true;
|
|
|
this.chuF = false;
|
|
|
this.title = "添加军车管理";
|
|
|
- this.form.status="1";
|
|
|
+ this.form.status = "1";
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
@@ -495,7 +690,7 @@ export default {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
})
|
|
|
- .catch(() => { });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
@@ -510,7 +705,7 @@ export default {
|
|
|
this.$download.name(response.msg);
|
|
|
this.exportLoading = false;
|
|
|
})
|
|
|
- .catch(() => { });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
},
|
|
|
};
|