forked from integrated_whb/integrated_whb_vue
运营车辆
parent
62597aa135
commit
845c162aad
2
.env
2
.env
|
@ -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_QAAQ=/qaaq_api/
|
||||
VITE_QAAQ_URL=https://gateway.qhdsafety.com/
|
||||
|
|
|
@ -3,7 +3,7 @@ import {
|
|||
getDynamicSupervision, getEmissionStandard, getFnGetFuelType, getLicenseStatus,
|
||||
getNetworkStatus,
|
||||
getTransportationEnterprise, getTransportCategory,
|
||||
getVehicleColor
|
||||
getVehicleColor, getVehicleType
|
||||
} from "@/request/operation_vehicle.js";
|
||||
import { ref } from "vue";
|
||||
|
||||
|
@ -60,6 +60,13 @@ export const layoutFnGetBelongingDepartment = async () => {
|
|||
});
|
||||
return ref(resData.list);
|
||||
};
|
||||
|
||||
export const layoutFnGetVehicleType = async () => {
|
||||
const resData = await getVehicleType({
|
||||
DICTIONARIES_ID: "08411f2b259a45681512dfad07c4f11a",
|
||||
});
|
||||
return ref(resData.list);
|
||||
};
|
||||
export const layoutFnGetFuelType = async () => {
|
||||
const resData = await getFnGetFuelType({
|
||||
DICTIONARIES_ID: "8xe11f2b259a42609512dfad07c4f11a",
|
||||
|
|
|
@ -48,6 +48,12 @@ export const getBelongingDepartment = (params) =>
|
|||
...params,
|
||||
});
|
||||
|
||||
export const getVehicleType = (params) =>
|
||||
post("/dictionaries/getVehicleType", {
|
||||
loading: false,
|
||||
...params,
|
||||
});
|
||||
|
||||
export const getFnGetFuelType = (params) =>
|
||||
post("/dictionaries/getFnGetFuelType", {
|
||||
loading: false,
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
v-for="item in getVehicleColorList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -52,7 +52,7 @@
|
|||
v-for="item in getTransportationEnterpriseList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -64,7 +64,7 @@
|
|||
v-for="item in getTransportCategoryList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -76,14 +76,21 @@
|
|||
v-for="item in getBelongingDepartment"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<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-col>
|
||||
<el-col :span="6">
|
||||
|
@ -181,7 +188,7 @@
|
|||
v-for="item in getFuelTypeList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -193,7 +200,7 @@
|
|||
v-for="item in getEmissionStandardList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -280,6 +287,7 @@ import {
|
|||
layoutFnGetBelongingDepartment,
|
||||
layoutFnGetFuelType,
|
||||
layoutFnGetEmissionStandard,
|
||||
layoutFnGetVehicleType
|
||||
} from "@/assets/js/operation_vehicle.js";
|
||||
import {
|
||||
addOperatingVehicleInfo,
|
||||
|
@ -354,6 +362,7 @@ const getTransportCategoryList = await layoutFnGetTransportCategory();
|
|||
const getBelongingDepartment = await layoutFnGetBelongingDepartment();
|
||||
const getFuelTypeList = await layoutFnGetFuelType();
|
||||
const getEmissionStandardList = await layoutFnGetEmissionStandard();
|
||||
const getVehicleTypeList = await layoutFnGetVehicleType();
|
||||
|
||||
const fnSubmit = debounce(
|
||||
1000,
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
v-for="item in getVehicleColorList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -52,7 +52,7 @@
|
|||
v-for="item in getTransportationEnterpriseList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -64,7 +64,7 @@
|
|||
v-for="item in getTransportCategoryList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -76,14 +76,21 @@
|
|||
v-for="item in getBelongingDepartment"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<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-col>
|
||||
<el-col :span="6">
|
||||
|
@ -181,7 +188,7 @@
|
|||
v-for="item in getFuelTypeList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -193,7 +200,7 @@
|
|||
v-for="item in getEmissionStandardList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -280,6 +287,7 @@ import {
|
|||
layoutFnGetBelongingDepartment,
|
||||
layoutFnGetFuelType,
|
||||
layoutFnGetEmissionStandard,
|
||||
layoutFnGetVehicleType
|
||||
} from "@/assets/js/operation_vehicle.js";
|
||||
import {
|
||||
findByIdOperatingVehicleInfo,
|
||||
|
@ -362,6 +370,7 @@ const getTransportCategoryList = await layoutFnGetTransportCategory();
|
|||
const getBelongingDepartment = await layoutFnGetBelongingDepartment();
|
||||
const getFuelTypeList = await layoutFnGetFuelType();
|
||||
const getEmissionStandardList = await layoutFnGetEmissionStandard();
|
||||
const getVehicleTypeList = await layoutFnGetVehicleType();
|
||||
|
||||
const fnGetData = async () => {
|
||||
if(OPERATING_ID) {
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-for="item in troubleshootingCycleList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -61,7 +61,7 @@
|
|||
v-for="item in enterpriseLevelList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -74,7 +74,7 @@
|
|||
v-for="item in networkStatusLevelList"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -87,7 +87,7 @@
|
|||
v-for="item in dynamicSupervision"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -100,7 +100,7 @@
|
|||
v-for="item in activeSafety"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -113,7 +113,7 @@
|
|||
v-for="item in licenseStatus"
|
||||
:key="item.BIANMA"
|
||||
:label="item.NAME"
|
||||
:value="item.BIANMA"
|
||||
:value="item.NAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -157,7 +157,7 @@
|
|||
<el-table-column prop="FRAMES_NUMBER" label="车架号" />
|
||||
<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="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="EXPIRE_DATE" label="到期日期" width="140" show-overflow-tooltip />
|
||||
<el-table-column prop="BELONGING_DEPARTMENT" label="归属部门" width="140" show-overflow-tooltip>
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
{{ data.FRAMES_NUMBER }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="车辆颜色">
|
||||
<span v-if="data.VEHICLE_COLOR === 'vehiclecolor_001'"> 黄色 </span>
|
||||
<span v-if="data.VEHICLE_COLOR === 'vehiclecolor_002'"> 黑色 </span>
|
||||
{{ data.VEHICLE_COLOR }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="发动机号">
|
||||
{{ data.ENGINE_NUMBER }}
|
||||
|
@ -58,9 +57,7 @@
|
|||
{{ data.EXPIRE_DATE }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="运输企业">
|
||||
<span v-if="data.TRANSPORT_ENTERPRISES === 'transportenterprises_001'">
|
||||
唐山中胜运输服务有限公司
|
||||
</span>
|
||||
{{ data.TRANSPORT_ENTERPRISES }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<el-divider content-position="left">车辆状态</el-divider>
|
||||
|
@ -91,12 +88,10 @@
|
|||
{{ data.VEHICLE_MODEL }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="燃料类型">
|
||||
<span v-if="data.FUEL_TYPE === 'fueltype_001'"> 液化天然气(LNG) </span>
|
||||
{{ data.FUEL_TYPE }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="排放标准">
|
||||
<span v-if="data.EMISSION_STANDARD === 'emissionstandard_001'">
|
||||
国Ⅴ
|
||||
</span>
|
||||
{{ data.EMISSION_STANDARD }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="核定总质量">
|
||||
{{ data.VOUCH_TOTALMASS }}
|
||||
|
@ -108,12 +103,7 @@
|
|||
{{ data.RACTIONMASS_QUALITY }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="运输类别">
|
||||
<span v-if="data.TRANSPORT_TYPE === 'transportcategory_001'">
|
||||
危险货物运输(2类2项)
|
||||
</span>
|
||||
<span v-if="data.TRANSPORT_TYPE === 'transportcategory_002'">
|
||||
第2类压缩液化气体
|
||||
</span>
|
||||
{{ data.TRANSPORT_TYPE }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<el-descriptions :column="1" border>
|
||||
|
|
Loading…
Reference in New Issue