From b3dd58b4ce2d6466ddee2d4e68865a2b81e3c8e6 Mon Sep 17 00:00:00 2001 From: xiepeng Date: Fri, 1 Mar 2024 10:27:00 +0800 Subject: [PATCH 1/2] =?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 @@ + + + + + From 845c162aadb9a2e3962aa9ac3b0119f20358c8eb Mon Sep 17 00:00:00 2001 From: xiepeng Date: Fri, 1 Mar 2024 14:32:47 +0800 Subject: [PATCH 2/2] =?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 | 9 +++++++- src/request/operation_vehicle.js | 6 +++++ .../operation_vehicle/add.vue | 23 +++++++++++++------ .../operation_vehicle/edit.vue | 23 +++++++++++++------ .../operation_vehicle/index.vue | 14 +++++------ .../operation_vehicle/view.vue | 20 ++++------------ 7 files changed, 59 insertions(+), 38 deletions(-) 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 index 3d5fc30..72f79a8 100644 --- a/src/assets/js/operation_vehicle.js +++ b/src/assets/js/operation_vehicle.js @@ -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", diff --git a/src/request/operation_vehicle.js b/src/request/operation_vehicle.js index c6587b3..5f8567a 100644 --- a/src/request/operation_vehicle.js +++ b/src/request/operation_vehicle.js @@ -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, 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 index b842b75..ad7501f 100644 --- a/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue @@ -25,7 +25,7 @@ v-for="item in getVehicleColorList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -52,7 +52,7 @@ v-for="item in getTransportationEnterpriseList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -64,7 +64,7 @@ v-for="item in getTransportCategoryList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -76,14 +76,21 @@ v-for="item in getBelongingDepartment" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> - + + + @@ -181,7 +188,7 @@ v-for="item in getFuelTypeList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -193,7 +200,7 @@ v-for="item in getEmissionStandardList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -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, 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 index 762b25f..d43738c 100644 --- a/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue @@ -25,7 +25,7 @@ v-for="item in getVehicleColorList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -52,7 +52,7 @@ v-for="item in getTransportationEnterpriseList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -64,7 +64,7 @@ v-for="item in getTransportCategoryList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -76,14 +76,21 @@ v-for="item in getBelongingDepartment" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> - + + + @@ -181,7 +188,7 @@ v-for="item in getFuelTypeList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -193,7 +200,7 @@ v-for="item in getEmissionStandardList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -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) { 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 index 53ab404..76bf2af 100644 --- a/src/views/enterprise_management/basics_info_management/operation_vehicle/index.vue +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/index.vue @@ -22,7 +22,7 @@ v-for="item in troubleshootingCycleList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -61,7 +61,7 @@ v-for="item in enterpriseLevelList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -74,7 +74,7 @@ v-for="item in networkStatusLevelList" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -87,7 +87,7 @@ v-for="item in dynamicSupervision" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -100,7 +100,7 @@ v-for="item in activeSafety" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -113,7 +113,7 @@ v-for="item in licenseStatus" :key="item.BIANMA" :label="item.NAME" - :value="item.BIANMA" + :value="item.NAME" /> @@ -157,7 +157,7 @@ - + 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 index 3ac1c73..43f8d7b 100644 --- a/src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue @@ -12,8 +12,7 @@ {{ data.FRAMES_NUMBER }} - 黄色 - 黑色 + {{ data.VEHICLE_COLOR }} {{ data.ENGINE_NUMBER }} @@ -58,9 +57,7 @@ {{ data.EXPIRE_DATE }} - - 唐山中胜运输服务有限公司 - + {{ data.TRANSPORT_ENTERPRISES }} 车辆状态 @@ -91,12 +88,10 @@ {{ data.VEHICLE_MODEL }} - 液化天然气(LNG) + {{ data.FUEL_TYPE }} - - 国Ⅴ - + {{ data.EMISSION_STANDARD }} {{ data.VOUCH_TOTALMASS }} @@ -108,12 +103,7 @@ {{ data.RACTIONMASS_QUALITY }} - - 危险货物运输(2类2项) - - - 第2类压缩液化气体 - + {{ data.TRANSPORT_TYPE }}