Browse Source

完善车队管理

master
myTest383 6 months ago
parent
commit
0a355e9008
  1. 62
      anrui-buscenter/anrui-buscenter-ui/src/api/fleetManagement/fleetManagement.js
  2. 25
      anrui-buscenter/anrui-buscenter-ui/src/api/vehicleBusinessFileManagement/vehicleBusinessFileManagement.js
  3. 321
      anrui-buscenter/anrui-buscenter-ui/src/router/index.js
  4. 480
      anrui-buscenter/anrui-buscenter-ui/src/views/fleetManagement/fleetManagement.vue
  5. 252
      anrui-buscenter/anrui-buscenter-ui/src/views/fleetManagement/fleetManagementAdd.vue
  6. 144
      anrui-buscenter/anrui-buscenter-ui/src/views/fleetManagement/fleetManagementInfo.vue
  7. 0
      anrui-buscenter/anrui-buscenter-ui/src/views/vehicleBusinessFileManagement/vehicleBusinessFileManagement.vue
  8. 8
      anrui-buscenter/anrui-buscenter-ui/src/views/vehicleBusinessFileManagement/vehicleBusinessFileManagementInfo.vue

62
anrui-buscenter/anrui-buscenter-ui/src/api/fleetManagement/fleetManagement.js

@ -0,0 +1,62 @@
import request from '@/utils/request'
// 车队管理
export default {
// 查询分页列表
listPage: function(params) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/buscenter/v1/fleetManagement/listPage',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
saveOrUpdate: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/buscenter/v1/fleetManagement/saveOrUpdate',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
saveBusiness: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/buscenter/v1/fleetManagement/saveBusiness',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
init: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/buscenter/v1/fleetManagement/gteInitBySid/' + data,
method: 'get',
})
},
deleteBySids: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/buscenter/v1/fleetManagement/delBySids',
method: 'DELETE',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
}

25
anrui-buscenter/anrui-buscenter-ui/src/api/vehicleBusinessFileManagement/vehicleBusinessFileManagement.js

@ -0,0 +1,25 @@
import request from '@/utils/request'
// 车辆业务档案管理
export default {
// 查询分页列表
listPage: function(params) {
return request({
baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/buscenter/v1/vehicleBusinessFileManagement/listPage',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
init: function(data) {
return request({
baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/buscenter/v1/vehicleBusinessFileManagement/gteInitBySid/' + data,
method: 'get',
})
},
}

321
anrui-buscenter/anrui-buscenter-ui/src/router/index.js

@ -7,8 +7,7 @@ import codemenu from './modules/codemenu'
Vue.use(Router)
export const constantRoutes = [
{
export const constantRoutes = [{
path: '/redirect',
component: Layout,
hidden: true,
@ -77,20 +76,25 @@ export const constantRoutes = [
meta: {
title: '特殊审批'
},
children: [
{
children: [{
path: '/teshushenpi/qiankuanticheguanli',
component: () =>
import('@/views/teshushenpi/qiankuanticheguanli/qiankuanticheguanli.vue'),
name: 'qiankuanticheguanli',
meta: { title: '欠款提车', noCache: true }
meta: {
title: '欠款提车',
noCache: true
}
},
{
path: '/teshushenpi/debtrelease',
component: () =>
import('@/views/teshushenpi/debtrelease/debtrelease.vue'),
name: 'QianKuanChuKu',
meta: { title: '欠款出库', noCache: true }
meta: {
title: '欠款出库',
noCache: true
}
}
]
},
@ -102,15 +106,16 @@ export const constantRoutes = [
meta: {
title: '客户管理'
},
children: [
{
path: '/kehuguanli/kehudangan',
component: () =>
import('@/views/kehuguanli/kehudangan/kehudangan.vue'),
name: 'kehudangan',
meta: { title: '客户档案', noCache: true }
children: [{
path: '/kehuguanli/kehudangan',
component: () =>
import('@/views/kehuguanli/kehudangan/kehudangan.vue'),
name: 'kehudangan',
meta: {
title: '客户档案',
noCache: true
}
]
}]
},
// 客户查询
{
@ -120,14 +125,16 @@ export const constantRoutes = [
meta: {
title: '客户查询'
},
children: [
{
path: '/kehuguanli/kehuchaxun',
component: () =>
import('@/views/kehuguanli/kehuchaxun/kehuchaxun.vue'),
name: 'kehuchaxun',
meta: { title: '客户查询', noCache: true }
}]
children: [{
path: '/kehuguanli/kehuchaxun',
component: () =>
import('@/views/kehuguanli/kehuchaxun/kehuchaxun.vue'),
name: 'kehuchaxun',
meta: {
title: '客户查询',
noCache: true
}
}]
},
// 出库管理
{
@ -137,15 +144,16 @@ export const constantRoutes = [
meta: {
title: '出库管理'
},
children: [
{
path: '/chukuguanli/chukubanli',
component: () =>
import('@/views/chukuguanli/chukubanli/chukushenqing.vue'),
name: 'chukushenqing',
meta: { title: '出库办理', noCache: true }
children: [{
path: '/chukuguanli/chukubanli',
component: () =>
import('@/views/chukuguanli/chukubanli/chukushenqing.vue'),
name: 'chukushenqing',
meta: {
title: '出库办理',
noCache: true
}
]
}]
},
// 销售管理
{
@ -183,7 +191,8 @@ export const constantRoutes = [
import('@/views/xiaoshouguanli/xiaoshoudingdantuiche/salesorderbycar.vue'),
name: 'XiaoShouDingDanTuiChe',
meta: {
title: '销售订单退车', noCache: true
title: '销售订单退车',
noCache: true
}
},
{
@ -210,7 +219,8 @@ export const constantRoutes = [
import('@/views/xiaoshouguanli/dingdanchaxun/xiaoshoudingdanchaxun.vue'),
name: 'XiaoShouDingDanChaXun',
meta: {
title: '销售订单查询', noCache: true
title: '销售订单查询',
noCache: true
}
},
{
@ -218,14 +228,20 @@ export const constantRoutes = [
component: () =>
import('@/views/xiaoshouguanli/suicheziliaojiaojie/cardatatobehandedover.vue'),
name: 'DaiJiaoJieSuiCheZiLiao',
meta: { title: '随车资料交接管理', noCache: true }
meta: {
title: '随车资料交接管理',
noCache: true
}
},
{
path: '/xiaoshouguanli/suicheziliaoguanli',
component: () =>
import('@/views/xiaoshouguanli/suicheziliaoguanli/datapreparation.vue'),
name: 'JiaoCheCheZiLiao',
meta: { title: '交车资料管理', noCache: true }
meta: {
title: '交车资料管理',
noCache: true
}
},
// 车辆交付
{
@ -233,7 +249,10 @@ export const constantRoutes = [
component: () =>
import('@/views/xiaoshouguanli/cheliangjiaofu/cheliangjiaofu.vue'),
name: 'CheLiangJiaoFu',
meta: { title: '车辆交付', noCache: true }
meta: {
title: '车辆交付',
noCache: true
}
},
// 客户登记单
{
@ -265,20 +284,25 @@ export const constantRoutes = [
meta: {
title: '合同管理'
},
children: [
{
children: [{
path: '/hetongguanli/hetongdanganguanli',
component: () =>
import('@/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue'),
name: 'HeTongDangAnGuanLi',
meta: { title: '合同审核管理', noCache: true }
meta: {
title: '合同审核管理',
noCache: true
}
},
{
path: '/hetongguanli/hetongshenheguanli',
component: () =>
import('@/views/hetongguanli/hetongshenheguanli/hetongshenheguanli.vue'),
name: 'HeTongShenHeGuanLi',
meta: { title: '合同档案管理', noCache: true }
meta: {
title: '合同档案管理',
noCache: true
}
},
// 模板
{
@ -286,7 +310,10 @@ export const constantRoutes = [
component: () =>
import('@/views/hetongguanli/hetongmobanguanli/hetongmobanguanli.vue'),
name: 'HeTongMoBanGuanLi',
meta: { title: '合同模板管理', noCache: true }
meta: {
title: '合同模板管理',
noCache: true
}
}
]
},
@ -298,17 +325,15 @@ export const constantRoutes = [
meta: {
title: '车型简介'
},
children: [
{
path: '/chexingchaxun/modelinquire',
component: () =>
import('@/views/chexingchaxun/modelinquire/modellibrary.vue'),
name: 'chexingchaxun',
meta: {
title: '车型简介'
}
children: [{
path: '/chexingchaxun/modelinquire',
component: () =>
import('@/views/chexingchaxun/modelinquire/modellibrary.vue'),
name: 'chexingchaxun',
meta: {
title: '车型简介'
}
]
}]
},
// 盖章管理
{
@ -318,17 +343,15 @@ export const constantRoutes = [
meta: {
title: '盖章管理'
},
children: [
{
path: '/gaizhangguanli/gaizhangshenqingguanli',
component: () =>
import('@/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangguanli.vue'),
name: 'gaizhangguanli',
meta: {
title: '盖章申请管理'
}
children: [{
path: '/gaizhangguanli/gaizhangshenqingguanli',
component: () =>
import('@/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangguanli.vue'),
name: 'gaizhangguanli',
meta: {
title: '盖章申请管理'
}
]
}]
},
// 正常开票管理
@ -339,17 +362,16 @@ export const constantRoutes = [
meta: {
title: '企业开票信息管理'
},
children: [
{
path: '/kaipiaoguanli/qiyekaipiaoxinxi',
component: () =>
import('@/views/kaipiaoguanli/qiyekaipiaoxinxi/kaipiaoxinxiguanli.vue'),
name: 'kaipiaoxinxiguanli',
meta: {
title: '企业开票信息管理', noCache: true
}
children: [{
path: '/kaipiaoguanli/qiyekaipiaoxinxi',
component: () =>
import('@/views/kaipiaoguanli/qiyekaipiaoxinxi/kaipiaoxinxiguanli.vue'),
name: 'kaipiaoxinxiguanli',
meta: {
title: '企业开票信息管理',
noCache: true
}
]
}]
},
// 优惠包
{
@ -359,15 +381,16 @@ export const constantRoutes = [
meta: {
title: '优惠包申请'
},
children: [
{
path: '/discountpackage',
component: () =>
import('@/views/discountpackage/discountpackage.vue'),
name: 'YouHuiBaoShenQing',
meta: { title: '优惠包申请', noCache: true }
children: [{
path: '/discountpackage',
component: () =>
import('@/views/discountpackage/discountpackage.vue'),
name: 'YouHuiBaoShenQing',
meta: {
title: '优惠包申请',
noCache: true
}
]
}]
},
// 交车准备
{
@ -377,15 +400,16 @@ export const constantRoutes = [
meta: {
title: '交车准备'
},
children: [
{
path: '/xiaoshouguanli/jiaochezhunbei',
component: () =>
import('@/views/xiaoshouguanli/jiaochezhunbei/readyfordelivery.vue'),
name: 'DaiJiaoCheZhunBei',
meta: { title: '交车准备', noCache: true }
children: [{
path: '/xiaoshouguanli/jiaochezhunbei',
component: () =>
import('@/views/xiaoshouguanli/jiaochezhunbei/readyfordelivery.vue'),
name: 'DaiJiaoCheZhunBei',
meta: {
title: '交车准备',
noCache: true
}
]
}]
},
// 交车准备
{
@ -395,15 +419,16 @@ export const constantRoutes = [
meta: {
title: '交车办理'
},
children: [
{
path: '/xiaoshouguanli/jiaochebanli',
component: () =>
import('@/views/xiaoshouguanli/jiaochebanli/cartobedelivered.vue'),
name: 'DaiJiaoChe',
meta: { title: '交车办理', noCache: true }
children: [{
path: '/xiaoshouguanli/jiaochebanli',
component: () =>
import('@/views/xiaoshouguanli/jiaochebanli/cartobedelivered.vue'),
name: 'DaiJiaoChe',
meta: {
title: '交车办理',
noCache: true
}
]
}]
},
{
path: '/fapiaoneibujieshou',
@ -412,15 +437,16 @@ export const constantRoutes = [
meta: {
title: '发票内部接收管理'
},
children: [
{
path: '/fapiaoneibujieshou',
component: () =>
import('@/views/fapiaoneibujieshou/Internalinvoicetobereceived.vue'),
name: 'fapiaoneibudaijieshou',
meta: { title: '发票内部接收管理', noCache: true }
children: [{
path: '/fapiaoneibujieshou',
component: () =>
import('@/views/fapiaoneibujieshou/Internalinvoicetobereceived.vue'),
name: 'fapiaoneibudaijieshou',
meta: {
title: '发票内部接收管理',
noCache: true
}
]
}]
},
{
path: '/discountpackagehandover',
@ -429,15 +455,16 @@ export const constantRoutes = [
meta: {
title: '优惠包交接'
},
children: [
{
path: '/discountpackagehandover',
component: () =>
import('@/views/discountpackagehandover/discountpackagetobehandover.vue'),
name: 'YouHuiBaoDaiJiaoJie',
meta: { title: '优惠包交接', noCache: true }
children: [{
path: '/discountpackagehandover',
component: () =>
import('@/views/discountpackagehandover/discountpackagetobehandover.vue'),
name: 'YouHuiBaoDaiJiaoJie',
meta: {
title: '优惠包交接',
noCache: true
}
]
}]
},
{
path: '/valuablecustomer',
@ -446,15 +473,16 @@ export const constantRoutes = [
meta: {
title: '价值客户备案'
},
children: [
{
path: '/valuablecustomer/valuablecustomer',
component: () =>
import('@/views/valuablecustomer/valuablecustomer.vue'),
name: 'ValuableCustomer',
meta: { title: '价值客户备案', noCache: true }
children: [{
path: '/valuablecustomer/valuablecustomer',
component: () =>
import('@/views/valuablecustomer/valuablecustomer.vue'),
name: 'ValuableCustomer',
meta: {
title: '价值客户备案',
noCache: true
}
]
}]
},
{
path: '/financialschememodification',
@ -463,16 +491,57 @@ export const constantRoutes = [
meta: {
title: '金融方案变更'
},
children: [
{
path: '/financialschememodification/financialschememodification',
component: () =>
import('@/views/financialschememodification/financialschememodification.vue'),
name: 'FinancialSchemeModification',
meta: { title: '金融方案变更', noCache: true }
children: [{
path: '/financialschememodification/financialschememodification',
component: () =>
import('@/views/financialschememodification/financialschememodification.vue'),
name: 'FinancialSchemeModification',
meta: {
title: '金融方案变更',
noCache: true
}
]
}]
},
{
path: '/fleetManagement',
component: Layout,
redirect: '/fleetManagement',
meta: {
title: '车队管理'
},
children: [{
path: '/fleetManagement/fleetManagement',
component: () =>
import('@/views/fleetManagement/fleetManagement.vue'),
name: 'FleetManagement',
meta: {
title: '车队管理',
noCache: true
}
}]
},
{
path: '/vehicleBusinessFileManagement',
component: Layout,
redirect: '/vehicleBusinessFileManagement',
meta: {
title: '车辆业务档案管理'
},
children: [{
path: '/vehicleBusinessFileManagement/vehicleBusinessFileManagement',
component: () =>
import('@/views/vehicleBusinessFileManagement/vehicleBusinessFileManagement.vue'),
name: 'VehicleBusinessFileManagement',
meta: {
title: '车辆业务档案管理',
noCache: true
}
}]
},
// 流程所需页面路径
// 订金收取审批、发起人详情页面
{

480
anrui-buscenter/anrui-buscenter-ui/src/views/fleetManagement/fleetManagement.vue

@ -0,0 +1,480 @@
<template>
<div class="app-container">
<!--列表页面-->
<div v-show="viewState == 1">
<button-bar view-title="车队信息管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle" />
<!--Start查询列表部分-->
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="分公司">
<el-input v-model="listQuery.params.orgName" placeholder="" clearable />
</el-form-item>
<el-form-item label="车队名称">
<el-input v-model="listQuery.params.fleetName" placeholder="" clearable />
</el-form-item>
<el-form-item label="挂靠日期">
<el-date-picker v-model="listQuery.params.attachmentStartDate" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.attachmentEndDate" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<!--End查询列表部分-->
<div class="listtop">
<div class="tit">车队列表</div>
</div>
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;"
@selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50" />
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center" />
<el-table-column label="操作" width="80" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toInfo(scope.row)">详情</el-button>
</template>
</el-table-column>
<el-table-column prop="createOrgName" label="分公司" align="center" />
<el-table-column prop="fleetName" label="车队名称" align="center" />
<el-table-column prop="contacts" label="联系人" align="center" />
<el-table-column prop="contactNumber" label="联系电话" align="center" />
<el-table-column prop="carNum" label="车辆台数" align="center" />
<el-table-column prop="attachmentStartDate" label="挂靠开始日期" align="center" />
<el-table-column prop="attachmentEndDate" label="挂靠结束日期" align="center" />
</el-table>
</div>
<!--End 主页面主要部分-->
<div class="pages">
<div class="tit" />
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList" />
</div>
<!--End查询列表部分-->
</div>
</div>
<!--新增及修改 -->
<fleetManagementAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState"
@reloadlist="getList" />
<!--详情-->
<fleetManagementInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" />
<el-dialog title="相关业务信息" :visible.sync="dialogVisible" :before-close="handleClose">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02" style="margin-top: -30px">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">车队名称</div>
<el-form-item> <span class="addinputInfo">{{ formobj.fleetName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">车辆保险情况</div>
<el-form-item><el-input v-model="formobj.insurance" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">车辆违章情况</div>
<el-form-item><el-input v-model="formobj.illegally" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><el-input v-model="formobj.remarks" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputw addinputInfo" v-model="imgList" :limit="1" bucket="map"
:upload-data="{ type: '0001' }" @change="backData" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div style="display: flex;flex-direction: row;width: 100%;justify-content: center;align-items: center;">
<el-button type="primary" style="margin-top: 20px;" @click="saveResults"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/fleetManagement/fleetManagement'
import fleetManagementAdd from './fleetManagementAdd'
import fleetManagementInfo from './fleetManagementInfo'
import uploadImg from '@/components/uploadFile/uploadImg'
export default {
name: 'FleetManagement',
components: {
Pagination,
pageye,
ButtonBar,
uploadImg,
fleetManagementAdd,
fleetManagementInfo
},
data() {
return {
btndisabled: false,
dialogVisible: false,
btnList: [{
type: 'primary',
size: 'small',
// icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
// icon: 'plus',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'primary',
size: 'small',
// icon: 'plus',
btnKey: 'toBusiness',
btnLabel: '相关业务'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1, // 1 2 3 4
tableKey: 0,
list: [],
sids: [], // SIDs
FormLoading: false,
listLoading: false,
//
listQuery: {
current: 1,
size: 10,
total: 0,
params: {
"userSid": "",
"menuUrl": "",
"orgPath": "",
"orgName": "",
"fleetName": "",
"attachmentStartDate": "",
"attachmentEndDate": ""
}
},
sids: [],
selectionList: [],
formobj: {
sid: '',
fleetName: '',
insurance: '',
illegally: '',
remarks: '',
urls: [],
userSid: window.sessionStorage.getItem('userSid'),
},
rules: {
result: [{
required: true,
message: '审计结果不能为空',
trigger: 'blur'
}],
},
imgList: []
}
},
created() {
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'toBusiness':
this.toBusiness()
break
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
handleSelectionChange(val) {
this.selectionList = val
const aa = []
val.forEach(element => {
aa.push(element.sid)
})
this.sids = aa
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
req.listPage(this.listQuery).then(response => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery = {
current: 1,
size: 10,
total: 0,
params: {
"userSid": "",
"menuUrl": "",
"orgPath": "",
"orgName": "",
"fleetName": "",
"attachmentStartDate": "",
"attachmentEndDate": ""
}
}
this.getList()
},
toAdd() {
this.viewState = 2
this.$refs['divAdd'].showAdd()
},
toEdit() {
if (this.sids.length != 1) {
this.$message({
showClose: true,
type: 'error',
message: '请选择一条记录进行操作'
})
return
}
this.viewState = 3
this.$refs['divAdd'].showEdit(this.sids[0])
},
toBusiness() {
if (this.sids.length != 1) {
this.$message({
showClose: true,
type: 'error',
message: '请选择一条记录进行操作'
})
return
}
this.dialogVisible = true
this.formobj.sid = this.selectionList[0].sid
this.formobj.fleetName = this.selectionList[0].fleetName
},
backData(value) {
console.log('backData》》》》', value)
this.formobj.urls = []
for (var i = 0; i < value.length; i++) {
this.formobj.urls.push(value[i].url)
}
},
handleClose() {
this.dialogVisible = false
this.imgList = []
this.formobj = {
sid: '',
fleetName: '',
insurance: '',
illegally: '',
remarks: '',
urls: [],
userSid: window.sessionStorage.getItem('userSid'),
}
},
saveResults() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
req.saveBusiness(this.formobj).then((res) => {
if (res.success) {
this.getList()
this.handleClose()
}
})
}
})
},
doDel() {
if (this.sids.length === 0) {
this.$message({
showClose: true,
type: 'error',
message: '请选择至少一条记录进行删除操作'
})
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.deleteBySids(this.sids).then(resp => {
if (resp.success) {
this.$message({
type: 'success',
message: resp.msg,
showClose: true
})
}
this.getList()
loading.close()
}).catch(e => {
loading.close()
})
}).catch(() => {})
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
},
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showDetail(row.sid)
},
resetState() {
this.viewState = 1
},
}
}
</script>
<style scoped>
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
.must {
color: #f00;
}
.span-sty {
width: 130px !important;
align-items: center;
}
.addinputInfo {
margin-left: 120px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 120px !important;
width: calc(100% - 115px);
}
.first_row {
border-top: 1px solid #E0E3EB;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
</style>

252
anrui-buscenter/anrui-buscenter-ui/src/views/fleetManagement/fleetManagementAdd.vue

@ -0,0 +1,252 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty"><span class="must">*</span> 车队名称</div>
<el-form-item prop="fleetName"><el-input v-model="formobj.fleetName" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">联系人</div>
<el-form-item><el-input v-model="formobj.contacts" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">联系电话</div>
<el-form-item><el-input v-model="formobj.contactNumber" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">车辆台数</div>
<el-form-item><el-input v-model="formobj.carNum" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">挂靠开始日期</div>
<el-form-item> <el-date-picker v-model="formobj.attachmentStartDate" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" type="date" class="addinputInfo addinputw"
placeholder="选择日期"></el-date-picker></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">挂靠结束日期</div>
<el-form-item> <el-date-picker v-model="formobj.attachmentEndDate" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" type="date" class="addinputInfo addinputw"
placeholder="选择日期"></el-date-picker></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><el-input v-model="formobj.remarks" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">挂靠协议</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputw addinputInfo" v-model="imgList" :limit="1" bucket="map"
:upload-data="{ type: '0001' }" @change="backData" />
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import req from '@/api/fleetManagement/fleetManagement'
import uploadImg from '@/components/uploadFile/uploadImg'
import {
getOrgSidByPath,
fetchBySid
} from '@/api/dictcommons/dictcommons'
export default {
name: 'AuditSupervisionAdd',
components: {
uploadImg
},
data() {
return {
viewTitle: '',
submitdisabled: false,
formobj: {
"sid": "",
"fleetName": "",
"contacts": "",
"contactNumber": "",
"carNum": "",
"attachmentStartDate": "",
"attachmentEndDate": "",
"remarks": "",
"urls": [],
"createBySid": window.sessionStorage.getItem('userSid'),
"createByName": window.sessionStorage.getItem('name'),
"createOrgSid": "",
"createOrgName": ""
},
rules: {
fleetName: [{
required: true,
message: '车队名称不能为空',
trigger: 'blur'
}],
},
imgList: []
}
},
methods: {
init() {
getOrgSidByPath({
orgPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((resp) => {
if (resp.success) {
this.formobj.createOrgSid = resp.data
fetchBySid(resp.data).then((respsone) => {
if (respsone.success) {
this.formobj.createOrgName = respsone.data.name
}
})
}
})
},
backData(value) {
console.log('backData》》》》', value)
this.formobj.urls = []
for (var i = 0; i < value.length; i++) {
this.formobj.urls.push(value[i].url)
}
},
showAdd() {
this.viewTitle = '【新增】车队信息'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.init()
},
showEdit(sid) {
this.viewTitle = '【编辑】车队信息'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.init()
req.init(sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.imgList = []
for (var i = 0; i < this.formobj.urls.length; i++) {
this.imgList.push({
url: this.formobj.urls[i]
})
}
}
})
},
saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '保存成功'
})
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
"sid": "",
"fleetName": "",
"contacts": "",
"contactNumber": "",
"carNum": "",
"attachmentStartDate": "",
"attachmentEndDate": "",
"remarks": "",
"urls": [],
"createBySid": window.sessionStorage.getItem('userSid'),
"createByName": window.sessionStorage.getItem('name'),
"createOrgSid": "",
"createOrgName": ""
}
this.submitdisabled = false
this.imgList = []
this.$emit('doback')
},
}
}
</script>
<style scoped>
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
.must {
color: #f00;
}
.span-sty {
width: 130px !important;
align-items: center;
}
.addinputInfo {
margin-left: 120px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 120px !important;
width: calc(100% - 115px);
}
.first_row {
border-top: 1px solid #E0E3EB;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
</style>

144
anrui-buscenter/anrui-buscenter-ui/src/views/fleetManagement/fleetManagementInfo.vue

@ -0,0 +1,144 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">车队名称</div>
<el-form-item> <span class="addinputInfo">{{ formobj.fleetName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">联系人</div>
<el-form-item> <span class="addinputInfo">{{ formobj.contacts }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">联系电话</div>
<el-form-item> <span class="addinputInfo">{{ formobj.contactNumber }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">车辆台数</div>
<el-form-item> <span class="addinputInfo">{{ formobj.carNum }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">挂靠开始日期</div>
<el-form-item> <span class="addinputInfo">{{ formobj.attachmentStartDate }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">挂靠结束日期</div>
<el-form-item> <span class="addinputInfo">{{ formobj.attachmentEndDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">挂靠协议</div>
<el-form-item>
<template slot-scope="scope">
<span v-for="(item,index) in formobj.urls" :key="index" class="addinputInfo">
<el-popover placement="left" trigger="click" width="300">
<img :src="item" width="100%" />
<img slot="reference" :src="item" :alt="item"
style="max-height: 70px;max-width: 70px; padding: 5px" />
</el-popover>
</span>
</template>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">车辆保险情况</div>
<el-form-item> <span class="addinputInfo">{{ formobj.businessInsurance }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">车辆违章情况</div>
<el-form-item> <span class="addinputInfo">{{ formobj.businessillegally }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">相关业务备注</div>
<el-form-item> <span class="addinputInfo">{{ formobj.businessRemarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">相关业务附件</div>
<el-form-item>
<template slot-scope="scope">
<span v-for="(item,index) in formobj.businessUrls" :key="index" class="addinputInfo">
<el-popover placement="left" trigger="click" width="300">
<img :src="item" width="100%" />
<img slot="reference" :src="item" :alt="item"
style="max-height: 70px;max-width: 70px; padding: 5px" />
</el-popover>
</span>
</template>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import req from '@/api/fleetManagement/fleetManagement'
export default {
name: 'AuditSupervisionAdd',
components: {},
data() {
return {
viewTitle: '',
submitdisabled: false,
formobj: {},
}
},
methods: {
showDetail(sid) {
this.viewTitle = '车队信息详情'
req.init(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
}
this.submitdisabled = false
this.$emit('doback')
},
}
}
</script>
<style scoped>
.span-sty {
width: 160px !important;
}
.addinputInfo {
margin-left: 150px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 150px !important;
width: calc(100% - 145px);
}
</style>

0
anrui-buscenter/anrui-buscenter-ui/src/views/vehicleBusinessFileManagement/vehicleBusinessFileManagement.vue

8
anrui-buscenter/anrui-buscenter-ui/src/views/vehicleBusinessFileManagement/vehicleBusinessFileManagementInfo.vue

@ -0,0 +1,8 @@
<template>
</template>
<script>
</script>
<style>
</style>
Loading…
Cancel
Save