运营车辆

dev
xiepeng 2024-03-01 14:32:47 +08:00
parent 62597aa135
commit 845c162aad
7 changed files with 59 additions and 38 deletions

2
.env
View File

@ -1,4 +1,4 @@
VITE_BASE_URL=http://192.168.0.42:8099/ VITE_BASE_URL=http://192.168.0.62:8093/
VITE_PROXY=/api/ VITE_PROXY=/api/
VITE_PROXY_QAAQ=/qaaq_api/ VITE_PROXY_QAAQ=/qaaq_api/
VITE_QAAQ_URL=https://gateway.qhdsafety.com/ VITE_QAAQ_URL=https://gateway.qhdsafety.com/

View File

@ -3,7 +3,7 @@ import {
getDynamicSupervision, getEmissionStandard, getFnGetFuelType, getLicenseStatus, getDynamicSupervision, getEmissionStandard, getFnGetFuelType, getLicenseStatus,
getNetworkStatus, getNetworkStatus,
getTransportationEnterprise, getTransportCategory, getTransportationEnterprise, getTransportCategory,
getVehicleColor getVehicleColor, getVehicleType
} from "@/request/operation_vehicle.js"; } from "@/request/operation_vehicle.js";
import { ref } from "vue"; import { ref } from "vue";
@ -60,6 +60,13 @@ export const layoutFnGetBelongingDepartment = async () => {
}); });
return ref(resData.list); return ref(resData.list);
}; };
export const layoutFnGetVehicleType = async () => {
const resData = await getVehicleType({
DICTIONARIES_ID: "08411f2b259a45681512dfad07c4f11a",
});
return ref(resData.list);
};
export const layoutFnGetFuelType = async () => { export const layoutFnGetFuelType = async () => {
const resData = await getFnGetFuelType({ const resData = await getFnGetFuelType({
DICTIONARIES_ID: "8xe11f2b259a42609512dfad07c4f11a", DICTIONARIES_ID: "8xe11f2b259a42609512dfad07c4f11a",

View File

@ -48,6 +48,12 @@ export const getBelongingDepartment = (params) =>
...params, ...params,
}); });
export const getVehicleType = (params) =>
post("/dictionaries/getVehicleType", {
loading: false,
...params,
});
export const getFnGetFuelType = (params) => export const getFnGetFuelType = (params) =>
post("/dictionaries/getFnGetFuelType", { post("/dictionaries/getFnGetFuelType", {
loading: false, loading: false,

View File

@ -25,7 +25,7 @@
v-for="item in getVehicleColorList" v-for="item in getVehicleColorList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -52,7 +52,7 @@
v-for="item in getTransportationEnterpriseList" v-for="item in getTransportationEnterpriseList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -64,7 +64,7 @@
v-for="item in getTransportCategoryList" v-for="item in getTransportCategoryList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -76,14 +76,21 @@
v-for="item in getBelongingDepartment" v-for="item in getBelongingDepartment"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="车辆类型" prop="VEHICLE_TYPE"> <el-form-item label="车辆类型" prop="VEHICLE_TYPE">
<el-input v-model="data.form.VEHICLE_TYPE" placeholder="请填写车辆类型"></el-input> <el-select v-model="data.form.VEHICLE_TYPE">
<el-option
v-for="item in getVehicleTypeList"
:key="item.BIANMA"
:label="item.NAME"
:value="item.NAME"
/>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -181,7 +188,7 @@
v-for="item in getFuelTypeList" v-for="item in getFuelTypeList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -193,7 +200,7 @@
v-for="item in getEmissionStandardList" v-for="item in getEmissionStandardList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -280,6 +287,7 @@ import {
layoutFnGetBelongingDepartment, layoutFnGetBelongingDepartment,
layoutFnGetFuelType, layoutFnGetFuelType,
layoutFnGetEmissionStandard, layoutFnGetEmissionStandard,
layoutFnGetVehicleType
} from "@/assets/js/operation_vehicle.js"; } from "@/assets/js/operation_vehicle.js";
import { import {
addOperatingVehicleInfo, addOperatingVehicleInfo,
@ -354,6 +362,7 @@ const getTransportCategoryList = await layoutFnGetTransportCategory();
const getBelongingDepartment = await layoutFnGetBelongingDepartment(); const getBelongingDepartment = await layoutFnGetBelongingDepartment();
const getFuelTypeList = await layoutFnGetFuelType(); const getFuelTypeList = await layoutFnGetFuelType();
const getEmissionStandardList = await layoutFnGetEmissionStandard(); const getEmissionStandardList = await layoutFnGetEmissionStandard();
const getVehicleTypeList = await layoutFnGetVehicleType();
const fnSubmit = debounce( const fnSubmit = debounce(
1000, 1000,

View File

@ -25,7 +25,7 @@
v-for="item in getVehicleColorList" v-for="item in getVehicleColorList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -52,7 +52,7 @@
v-for="item in getTransportationEnterpriseList" v-for="item in getTransportationEnterpriseList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -64,7 +64,7 @@
v-for="item in getTransportCategoryList" v-for="item in getTransportCategoryList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -76,14 +76,21 @@
v-for="item in getBelongingDepartment" v-for="item in getBelongingDepartment"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="车辆类型" prop="VEHICLE_TYPE"> <el-form-item label="车辆类型" prop="VEHICLE_TYPE">
<el-input v-model="data.form.VEHICLE_TYPE" placeholder="请填写车辆类型"></el-input> <el-select v-model="data.form.VEHICLE_TYPE">
<el-option
v-for="item in getVehicleTypeList"
:key="item.BIANMA"
:label="item.NAME"
:value="item.NAME"
/>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -181,7 +188,7 @@
v-for="item in getFuelTypeList" v-for="item in getFuelTypeList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -193,7 +200,7 @@
v-for="item in getEmissionStandardList" v-for="item in getEmissionStandardList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -280,6 +287,7 @@ import {
layoutFnGetBelongingDepartment, layoutFnGetBelongingDepartment,
layoutFnGetFuelType, layoutFnGetFuelType,
layoutFnGetEmissionStandard, layoutFnGetEmissionStandard,
layoutFnGetVehicleType
} from "@/assets/js/operation_vehicle.js"; } from "@/assets/js/operation_vehicle.js";
import { import {
findByIdOperatingVehicleInfo, findByIdOperatingVehicleInfo,
@ -362,6 +370,7 @@ const getTransportCategoryList = await layoutFnGetTransportCategory();
const getBelongingDepartment = await layoutFnGetBelongingDepartment(); const getBelongingDepartment = await layoutFnGetBelongingDepartment();
const getFuelTypeList = await layoutFnGetFuelType(); const getFuelTypeList = await layoutFnGetFuelType();
const getEmissionStandardList = await layoutFnGetEmissionStandard(); const getEmissionStandardList = await layoutFnGetEmissionStandard();
const getVehicleTypeList = await layoutFnGetVehicleType();
const fnGetData = async () => { const fnGetData = async () => {
if(OPERATING_ID) { if(OPERATING_ID) {

View File

@ -22,7 +22,7 @@
v-for="item in troubleshootingCycleList" v-for="item in troubleshootingCycleList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -61,7 +61,7 @@
v-for="item in enterpriseLevelList" v-for="item in enterpriseLevelList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -74,7 +74,7 @@
v-for="item in networkStatusLevelList" v-for="item in networkStatusLevelList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -87,7 +87,7 @@
v-for="item in dynamicSupervision" v-for="item in dynamicSupervision"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -100,7 +100,7 @@
v-for="item in activeSafety" v-for="item in activeSafety"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -113,7 +113,7 @@
v-for="item in licenseStatus" v-for="item in licenseStatus"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.NAME"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -157,7 +157,7 @@
<el-table-column prop="FRAMES_NUMBER" label="车架号" /> <el-table-column prop="FRAMES_NUMBER" label="车架号" />
<el-table-column prop="CONTACT" label="联系人" width="140" show-overflow-tooltip /> <el-table-column prop="CONTACT" label="联系人" width="140" show-overflow-tooltip />
<el-table-column prop="CONTACT_NUMBER" label="联系电话" width="140" show-overflow-tooltip /> <el-table-column prop="CONTACT_NUMBER" label="联系电话" width="140" show-overflow-tooltip />
<el-table-column prop="VEHICLE_TYPE" label="车辆类型" width="140" show-overflow-tooltip /> <el-table-column prop="VEHICLE_TYPE" label="车辆类型" width="140"/>
<el-table-column prop="FIRSTSHOW_DATE" label="初登日期" width="140" show-overflow-tooltip /> <el-table-column prop="FIRSTSHOW_DATE" label="初登日期" width="140" show-overflow-tooltip />
<el-table-column prop="EXPIRE_DATE" label="到期日期" width="140" show-overflow-tooltip /> <el-table-column prop="EXPIRE_DATE" label="到期日期" width="140" show-overflow-tooltip />
<el-table-column prop="BELONGING_DEPARTMENT" label="归属部门" width="140" show-overflow-tooltip> <el-table-column prop="BELONGING_DEPARTMENT" label="归属部门" width="140" show-overflow-tooltip>

View File

@ -12,8 +12,7 @@
{{ data.FRAMES_NUMBER }} {{ data.FRAMES_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车辆颜色"> <el-descriptions-item label="车辆颜色">
<span v-if="data.VEHICLE_COLOR === 'vehiclecolor_001'"> </span> {{ data.VEHICLE_COLOR }}
<span v-if="data.VEHICLE_COLOR === 'vehiclecolor_002'"> </span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="发动机号"> <el-descriptions-item label="发动机号">
{{ data.ENGINE_NUMBER }} {{ data.ENGINE_NUMBER }}
@ -58,9 +57,7 @@
{{ data.EXPIRE_DATE }} {{ data.EXPIRE_DATE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="运输企业"> <el-descriptions-item label="运输企业">
<span v-if="data.TRANSPORT_ENTERPRISES === 'transportenterprises_001'"> {{ data.TRANSPORT_ENTERPRISES }}
唐山中胜运输服务有限公司
</span>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-divider content-position="left">车辆状态</el-divider> <el-divider content-position="left">车辆状态</el-divider>
@ -91,12 +88,10 @@
{{ data.VEHICLE_MODEL }} {{ data.VEHICLE_MODEL }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="燃料类型"> <el-descriptions-item label="燃料类型">
<span v-if="data.FUEL_TYPE === 'fueltype_001'"> (LNG) </span> {{ data.FUEL_TYPE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="排放标准"> <el-descriptions-item label="排放标准">
<span v-if="data.EMISSION_STANDARD === 'emissionstandard_001'"> {{ data.EMISSION_STANDARD }}
国Ⅴ
</span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="核定总质量"> <el-descriptions-item label="核定总质量">
{{ data.VOUCH_TOTALMASS }} {{ data.VOUCH_TOTALMASS }}
@ -108,12 +103,7 @@
{{ data.RACTIONMASS_QUALITY }} {{ data.RACTIONMASS_QUALITY }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="运输类别"> <el-descriptions-item label="运输类别">
<span v-if="data.TRANSPORT_TYPE === 'transportcategory_001'"> {{ data.TRANSPORT_TYPE }}
危险货物运输2类2项
</span>
<span v-if="data.TRANSPORT_TYPE === 'transportcategory_002'">
第2类压缩液化气体
</span>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions :column="1" border> <el-descriptions :column="1" border>