Commit 561e51e8 authored by jiaorz's avatar jiaorz

Merge branch 'base-modify'

parents f17d638f ad52be57
...@@ -729,12 +729,7 @@ export const asyncRouterMap = [{ ...@@ -729,12 +729,7 @@ export const asyncRouterMap = [{
component: _import('statistics/orderStatistics'), component: _import('statistics/orderStatistics'),
name: '订单统计', name: '订单统计',
authority: 'orderStatistics' authority: 'orderStatistics'
}, { }
path: 'vehicleStatistics',
component: _import('statistics/vehicleStatistics'),
name: '车辆统计',
authority: 'vehicleStatistics'
}
] ]
}, },
{ {
...@@ -759,7 +754,12 @@ export const asyncRouterMap = [{ ...@@ -759,7 +754,12 @@ export const asyncRouterMap = [{
component: _import('financial/branchCompany'), component: _import('financial/branchCompany'),
name: '总公司报表', name: '总公司报表',
authority: 'branchCompany' authority: 'branchCompany'
} }, {
path: 'vehicleStatistics',
component: _import('financial/vehicleStatistics'),
name: '车辆统计',
authority: 'vehicleStatistics'
}
] ]
} }
]; ];
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
filterable filterable
placeholder="请选择" placeholder="请选择"
getAllBranchCompanyChange getAllBranchCompanyChange
> >
<el-option :key="undefined" label="无" :value="undefined"></el-option> <el-option :key="undefined" label="无" :value="undefined"></el-option>
<el-option <el-option
v-for="item in allBranchCompany" v-for="item in allBranchCompany"
...@@ -65,7 +65,10 @@ ...@@ -65,7 +65,10 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="停靠车辆数量"> <el-table-column align="center" label="停靠车辆数量">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.vehicleNum}}</span> <!-- <span>{{scope.row.vehicleNum}}</span>
--> <span v-if="listQuery.type==1">{{scope.row.vehicleNum}}</span>
<span v-if="listQuery.type==2">{{Math.ceil(scope.row.vehicleNum/7)}}</span>
<span v-if="listQuery.type==3">{{Math.ceil(scope.row.vehicleNum/30)}}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -26,13 +26,13 @@ ...@@ -26,13 +26,13 @@
<th style="font-size: 30px"></th> <th style="font-size: 30px"></th>
<th style="font-size: 30px"></th> <th style="font-size: 30px"></th>
</tr> </tr>
<tr v-for=" row in getEevryDayThisMonth " class="el-date-table__row"> <!-- <tr v-for=" row in getEevryDayThisMonth " class="el-date-table__row">
<td v-for=" col in row " :class="col.class" :style="col.style"> <td v-for=" col in row " :class="col.class" :style="col.style">
{{col.day}} {{col.day}}
<span v-if=" col.isBooked === true " <span v-if=" col.isBooked === true "
:style="{position: 'relative', fontSize: 10+'px', color: 'rgba(15, 159, 214, 0.6)', float: 'right'}">订</span> :style="{position: 'relative', fontSize: 10+'px', color: 'rgba(15, 159, 214, 0.6)', float: 'right'}">订</span>
</td> </td>
</tr> </tr> -->
</tbody> </tbody>
</table> --> </table> -->
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
class="filter-item" class="filter-item"
v-model="listQuery.zoneId" v-model="listQuery.zoneId"
placeholder="请选择" placeholder="请选择"
@change="getProvinceRegions()"
> >
<el-option v-for="val in getAllZoneList" :key="val.id" :label="val.name" :value="val.id"></el-option> <el-option v-for="val in getAllZoneList" :key="val.id" :label="val.name" :value="val.id"></el-option>
</el-select> </el-select>
...@@ -54,12 +53,6 @@ ...@@ -54,12 +53,6 @@
@select="handleSelectProvince" @select="handleSelectProvince"
></el-autocomplete> ></el-autocomplete>
</el-form-item> </el-form-item>
<!--<el-form-item label="省份" prop="addrProvince">-->
<!--<el-select class="filter-item" v-model="listQuery.addrProvince" placeholder="请选择省份(直辖市)" @change="cityRegions4Query()">-->
<!--<el-option v-for="item in provinceArr" :key="item.id" :label="item.name"-->
<!--:value="item.id"></el-option>-->
<!--</el-select>-->
<!--</el-form-item>-->
<el-form-item label="城市" prop="addrCity"> <el-form-item label="城市" prop="addrCity">
<el-autocomplete <el-autocomplete
class="inline-input" class="inline-input"
...@@ -69,12 +62,6 @@ ...@@ -69,12 +62,6 @@
@select="handleSelectCity" @select="handleSelectCity"
></el-autocomplete> ></el-autocomplete>
</el-form-item> </el-form-item>
<!--<el-form-item label="城市" prop="addrCity">-->
<!--<el-select class="filter-item" v-model="listQuery.addrCity" placeholder="请选择城市">-->
<!--<el-option v-for="item in cityArr" :key="item.id" :label="item.name"-->
<!--:value="item.id"></el-option>-->
<!--</el-select>-->
<!--</el-form-item>-->
<el-form-item label="车型" prop="modelId"> <el-form-item label="车型" prop="modelId">
<el-autocomplete <el-autocomplete
class="inline-input" class="inline-input"
...@@ -201,12 +188,6 @@ ...@@ -201,12 +188,6 @@
v-waves v-waves
@click="handleFilter('download')" @click="handleFilter('download')"
>下载车辆信息Excel表</el-button> >下载车辆信息Excel表</el-button>
<el-button
class="filter-item"
type="primary"
v-waves
@click="handleFilter('export')"
>导出分公司车辆信息</el-button>
</div> </div>
<el-table :key="tableKey" :data="list" border fit highlight-current-row style="width: 100%"> <el-table :key="tableKey" :data="list" border fit highlight-current-row style="width: 100%">
...@@ -737,7 +718,7 @@ ...@@ -737,7 +718,7 @@
<el-form-item label="行驶证" prop="drivingLicensePath" :style="{display:'block'}"> <el-form-item label="行驶证" prop="drivingLicensePath" :style="{display:'block'}">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
:action="BASE_API + '/vehicle/vehicleInfo/upload/drivingLicense'" :action="BASE_API + '/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false" :show-file-list="false"
:headers="getHeaderWithToken" :headers="getHeaderWithToken"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
...@@ -763,7 +744,7 @@ ...@@ -763,7 +744,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
:action="BASE_API + '/vehicle/vehicleInfo/upload/drivingLicense'" :action="BASE_API + '/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false" :show-file-list="false"
:headers="getHeaderWithToken" :headers="getHeaderWithToken"
:on-success="handleAvatarSuccessF" :on-success="handleAvatarSuccessF"
...@@ -798,8 +779,8 @@ ...@@ -798,8 +779,8 @@
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="cancel('form')"> </el-button> <el-button @click="cancel('form')">取消</el-button>
<el-button v-if="dialogStatus=='create'" type="primary" @click="create('form')"> </el-button> <el-button v-if="dialogStatus=='create'" type="primary" @click="create('form')">确定</el-button>
<el-button <el-button
type="primary" type="primary"
@click="update('form')" @click="update('form')"
...@@ -1182,7 +1163,8 @@ export default { ...@@ -1182,7 +1163,8 @@ export default {
} }
}) })
}, },
trigger: 'blur' trigger: 'blur',
required: true
} }
], ],
engineNum: [ engineNum: [
...@@ -1674,14 +1656,10 @@ export default { ...@@ -1674,14 +1656,10 @@ export default {
} }
t.getAllVehicleType() //获取全部车型 t.getAllVehicleType() //获取全部车型
}) })
getAllCompany(codeAndBranchCompany => {
this.allCompanies = codeAndBranchCompany
})
getUpkeepAll().then(response => { getUpkeepAll().then(response => {
this.allUpkeepItems = response.data this.allUpkeepItems = response.data
}) })
this.getAllProvinceRegions()
this.getAllCities()
this.vehicleInfo_btn_edit = this.elements['vehicleInfo:btn_edit'] this.vehicleInfo_btn_edit = this.elements['vehicleInfo:btn_edit']
this.vehicleInfo_btn_add = this.elements['vehicleInfo:btn_add'] this.vehicleInfo_btn_add = this.elements['vehicleInfo:btn_add']
this.vehicleInfo_btn_apply = this.elements['vehicleInfo:btn_apply'] this.vehicleInfo_btn_apply = this.elements['vehicleInfo:btn_apply']
...@@ -1706,7 +1684,7 @@ export default { ...@@ -1706,7 +1684,7 @@ export default {
getAllZoneList() { getAllZoneList() {
let that = this let that = this
that.allZoneArr = getAllZone() that.allZoneArr = getAllZone()
return getAllZone() return that.allZoneArr
}, },
townRegions4Query() { townRegions4Query() {
...@@ -1862,43 +1840,7 @@ export default { ...@@ -1862,43 +1840,7 @@ export default {
} }
}, },
methods: { methods: {
/**
* 根据片区获取省份数据
* */
getProvinceRegions() {
let that = this
this.listQuery.addrCity = undefined
this.listQuery.addrProvince = undefined
if (!this.$utils.isInteger(this.listQuery.zoneId)) {
return that.getAllProvinceRegions()
}
this.allZoneArr.map(function(item) {
if (item.id == that.listQuery.zoneId) {
getSysRegionByIds(item.provinceIds).then(response => {
let listRs = undefined
if (!that.$utils.isEmpty(response.data)) {
listRs = response.data
}
that.provinceRegions = listRs
})
}
})
},
getAllProvinceRegions() {
let that = this
var zoneStr = ''
getAllZone().map(function(item) {
zoneStr = zoneStr + item.provinceIds + ','
})
let listRs = undefined
getSysRegionByIds(zoneStr).then(response => {
if (!that.$utils.isEmpty(response.data)) {
listRs = response.data
}
that.provinceRegions = listRs
})
return listRs
},
cityRegions4Query() { cityRegions4Query() {
let that = this let that = this
if (!this.$utils.isInteger(this.listQuery.addrProvince)) { if (!this.$utils.isInteger(this.listQuery.addrProvince)) {
...@@ -2448,11 +2390,15 @@ export default { ...@@ -2448,11 +2390,15 @@ export default {
this.dialogForm4LicenceVisible = true this.dialogForm4LicenceVisible = true
}, },
getDrivingLicenseUrl(drivingLicensePath) { getDrivingLicenseUrl(drivingLicensePath) {
return ( if (drivingLicensePath.indexOf('https') > -1) {
process.env.BASE_API + return drivingLicensePath
'/vehicle/vehicleInfo/download/drivingLicense?realFileRelPath=' + }else{
encodeURI(drivingLicensePath) return (
) process.env.BASE_API +
'/vehicle/vehicleInfo/download/drivingLicense?realFileRelPath=' +
encodeURI(drivingLicensePath)
)
}
}, },
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
this.form.drivingLicensePath = res.data this.form.drivingLicensePath = res.data
...@@ -2901,6 +2847,7 @@ export default { ...@@ -2901,6 +2847,7 @@ export default {
} }
}) })
} else { } else {
this.$message('必填项不能为空')
return false return false
} }
}) })
......
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