diff --git a/.env b/.env index d2d76c3..27f9985 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -VITE_BASE_URL=http://192.168.0.49:8093/ +VITE_BASE_URL=http://192.168.0.62:8093/ VITE_PROXY=/api/ VITE_PROXY_QAAQ=/qaaq_api/ VITE_QAAQ_URL=https://gateway.qhdsafety.com/ diff --git a/src/assets/js/operation_vehicle.js b/src/assets/js/operation_vehicle.js new file mode 100644 index 0000000..72f79a8 --- /dev/null +++ b/src/assets/js/operation_vehicle.js @@ -0,0 +1,83 @@ +import { + getActiveSafety, getBelongingDepartment, + getDynamicSupervision, getEmissionStandard, getFnGetFuelType, getLicenseStatus, + getNetworkStatus, + getTransportationEnterprise, getTransportCategory, + getVehicleColor, getVehicleType +} from "@/request/operation_vehicle.js"; +import { ref } from "vue"; + +export const layoutFnGetVehicleColor = async () => { + const resData = await getVehicleColor({ + DICTIONARIES_ID: "xer11f2b259a42609512dfad07c4fb53", + }); + return ref(resData.list); +}; + +export const layoutFnGetTransportationEnterprise = async () => { + const resData = await getTransportationEnterprise({ + DICTIONARIES_ID: "73211f2b259a42609512dfad07c4f11a", + }); + return ref(resData.list); +}; + +export const layoutFnGetNetworkStatus = async () => { + const resData = await getNetworkStatus({ + DICTIONARIES_ID: "xes11f2b259a42609512dfad07c4fb53", + }); + return ref(resData.list); +}; + +export const layoutFnGetDynamicSupervision = async () => { + const resData = await getDynamicSupervision({ + DICTIONARIES_ID: "51011f2b259a42609512dfad07c4f11a", + }); + return ref(resData.list); +}; + +export const layoutFnGetActiveSafety = async () => { + const resData = await getActiveSafety({ + DICTIONARIES_ID: "59111f2b259a42609512dfad07c4f11a", + }); + return ref(resData.list); +}; + +export const layoutFnGetLicenseStatus = async () => { + const resData = await getLicenseStatus({ + DICTIONARIES_ID: "77711f2b259a42609512dfad07c4f11a", + }); + return ref(resData.list); +}; +export const layoutFnGetTransportCategory = async () => { + const resData = await getTransportCategory({ + DICTIONARIES_ID: "08411f2b259a42609512dfad07c4f11a", + }); + return ref(resData.list); +}; +export const layoutFnGetBelongingDepartment = async () => { + const resData = await getBelongingDepartment({ + DICTIONARIES_ID: "80x11f2b259a42609512dfad07c4f11a", + }); + 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", + }); + return ref(resData.list); +}; +export const layoutFnGetEmissionStandard = async () => { + const resData = await getEmissionStandard({ + DICTIONARIES_ID: "4xe11f2b259a42609512dfad07c4f11a", + }); + return ref(resData.list); +}; + + diff --git a/src/components/operation_add/index.vue b/src/components/operation_add/index.vue new file mode 100644 index 0000000..66cbfef --- /dev/null +++ b/src/components/operation_add/index.vue @@ -0,0 +1,207 @@ + + + + + diff --git a/src/request/operation_vehicle.js b/src/request/operation_vehicle.js new file mode 100644 index 0000000..5f8567a --- /dev/null +++ b/src/request/operation_vehicle.js @@ -0,0 +1,82 @@ +import { post, upload } from "@/request/axios.js"; + +export const getVehicleColor = (params) => + post("/dictionaries/getVehicleColor", { + loading: false, + ...params, + }); + +export const getTransportationEnterprise = (params) => + post("/dictionaries/getTransportationEnterprise", { + loading: false, + ...params, + }); + +export const getNetworkStatus = (params) => + post("/dictionaries/getNetworkStatus", { + loading: false, + ...params, + }); + +export const getDynamicSupervision = (params) => + post("/dictionaries/getDynamicSupervision", { + loading: false, + ...params, + }); + +export const getActiveSafety = (params) => + post("/dictionaries/getActiveSafety", { + loading: false, + ...params, + }); + +export const getLicenseStatus = (params) => + post("/dictionaries/getLicenseStatus", { + loading: false, + ...params, + }); + +export const getTransportCategory = (params) => + post("/dictionaries/getTransportCategory", { + loading: false, + ...params, + }); + +export const getBelongingDepartment = (params) => + post("/dictionaries/getBelongingDepartment", { + loading: false, + ...params, + }); + +export const getVehicleType = (params) => + post("/dictionaries/getVehicleType", { + loading: false, + ...params, + }); + +export const getFnGetFuelType = (params) => + post("/dictionaries/getFnGetFuelType", { + loading: false, + ...params, + }); + +export const getEmissionStandard = (params) => + post("/dictionaries/getEmissionStandard", { + loading: false, + ...params, + }); + +export const getOperationVehicleList = (params) => + post("/operatingvehicles/list", params); // 运营车辆列表export const getOperationVehicleList = (params) => + +export const addOperatingVehicleInfo = (params) => + upload("/operatingvehicles/add", params); // 资料课件维护添加 + +export const findByIdOperatingVehicleInfo = (params) => + post("/operatingvehicles/goEdit", params); // 新增运营车辆 + +export const editOperatingVehicleInfo = (params) => + upload("/operatingvehicles/edit", params); // 修改运营车辆 + + + diff --git a/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue b/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue new file mode 100644 index 0000000..ad7501f --- /dev/null +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue @@ -0,0 +1,391 @@ + + + + + diff --git a/src/views/enterprise_management/basics_info_management/operation_vehicle/components/select_risk.vue b/src/views/enterprise_management/basics_info_management/operation_vehicle/components/select_risk.vue new file mode 100644 index 0000000..523fae7 --- /dev/null +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/components/select_risk.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue b/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue new file mode 100644 index 0000000..d43738c --- /dev/null +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue @@ -0,0 +1,412 @@ + + + + + diff --git a/src/views/enterprise_management/basics_info_management/operation_vehicle/index.vue b/src/views/enterprise_management/basics_info_management/operation_vehicle/index.vue new file mode 100644 index 0000000..76bf2af --- /dev/null +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/index.vue @@ -0,0 +1,275 @@ + + + + diff --git a/src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue b/src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue new file mode 100644 index 0000000..43f8d7b --- /dev/null +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue @@ -0,0 +1,165 @@ + + + + +