From b3dd58b4ce2d6466ddee2d4e68865a2b81e3c8e6 Mon Sep 17 00:00:00 2001 From: xiepeng Date: Fri, 1 Mar 2024 10:27:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=90=A5=E8=BD=A6=E8=BE=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/assets/js/operation_vehicle.js | 76 ++++ src/components/operation_add/index.vue | 207 +++++++++ src/request/operation_vehicle.js | 76 ++++ .../operation_vehicle/add.vue | 382 +++++++++++++++++ .../components/select_risk.vue | 130 ++++++ .../operation_vehicle/edit.vue | 403 ++++++++++++++++++ .../operation_vehicle/index.vue | 275 ++++++++++++ .../operation_vehicle/view.vue | 175 ++++++++ 9 files changed, 1725 insertions(+), 1 deletion(-) create mode 100644 src/assets/js/operation_vehicle.js create mode 100644 src/components/operation_add/index.vue create mode 100644 src/request/operation_vehicle.js create mode 100644 src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue create mode 100644 src/views/enterprise_management/basics_info_management/operation_vehicle/components/select_risk.vue create mode 100644 src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue create mode 100644 src/views/enterprise_management/basics_info_management/operation_vehicle/index.vue create mode 100644 src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue diff --git a/.env b/.env index ab2a573..27f9985 100644 --- a/.env +++ b/.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/ diff --git a/src/assets/js/operation_vehicle.js b/src/assets/js/operation_vehicle.js new file mode 100644 index 0000000..3d5fc30 --- /dev/null +++ b/src/assets/js/operation_vehicle.js @@ -0,0 +1,76 @@ +import { + getActiveSafety, getBelongingDepartment, + getDynamicSupervision, getEmissionStandard, getFnGetFuelType, getLicenseStatus, + getNetworkStatus, + getTransportationEnterprise, getTransportCategory, + getVehicleColor +} 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 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..c6587b3 --- /dev/null +++ b/src/request/operation_vehicle.js @@ -0,0 +1,76 @@ +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 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..b842b75 --- /dev/null +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue @@ -0,0 +1,382 @@ + + + + + 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..762b25f --- /dev/null +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue @@ -0,0 +1,403 @@ + + + + + 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..53ab404 --- /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..3ac1c73 --- /dev/null +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue @@ -0,0 +1,175 @@ + + + + +