From 5e3468343ad6626531f8d8090d284508e8a49222 Mon Sep 17 00:00:00 2001 From: xiepeng Date: Thu, 14 Mar 2024 09:03:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=88=B7=E7=AE=A1=E7=90=86=20=20?= =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/assigned_manage.js | 12 +- src/request/operation_vehicle.js | 5 +- src/request/scrap_manage.js | 30 ++ .../mechanical_files/assigned_manage/add.vue | 24 +- .../assigned_manage/index.vue | 28 +- .../mechanical_files/scrap_manage/add.vue | 354 ++++++++++++++++++ .../mechanical_files/scrap_manage/index.vue | 210 +++++++++++ .../mechanical_files/scrap_manage/view.vue | 77 ++++ 8 files changed, 702 insertions(+), 38 deletions(-) create mode 100644 src/request/scrap_manage.js create mode 100644 src/views/mechanical_files/scrap_manage/add.vue create mode 100644 src/views/mechanical_files/scrap_manage/index.vue create mode 100644 src/views/mechanical_files/scrap_manage/view.vue diff --git a/src/request/assigned_manage.js b/src/request/assigned_manage.js index 598d260..1fd01f3 100644 --- a/src/request/assigned_manage.js +++ b/src/request/assigned_manage.js @@ -37,6 +37,13 @@ export const getAssignedVehicle = (params) => loading: false, ...params, }); + +export const layoutFnGetScrapVehicleType = async () => { + const resData = await getLevelsByParentId({ + parentId: "0000ad963949823e8c9501bab16001aa", + }); + return ref(resData); +}; export const getAssignedList = (params) => post("/assignedmanage/list", params); // 过户管理列表 @@ -50,8 +57,11 @@ export const findByIdAssignedManageInfo = (params) => post("/assignedmanage/goEdit", params); // 查看过户信息 export const setAssignedManageDelete = (params) => - post("/assignedmanage/delete", params); // 获取查看 + post("/assignedmanage/delete", params); // 删除过户信息 export const getOperationVehicleList = (params) => upload("/operatingvehicles/operationvehicleList", params); // 获取所有车船税 +export const getVehicleView = (params) => + upload("/operatingvehicles/operationvehicleList", params); // 获取所有车船税 + diff --git a/src/request/operation_vehicle.js b/src/request/operation_vehicle.js index d32ff0d..7b239ca 100644 --- a/src/request/operation_vehicle.js +++ b/src/request/operation_vehicle.js @@ -71,7 +71,7 @@ export const getEmissionStandard = (params) => ...params, }); -export const getOperationList = (params) => +export const getOperationVehicleList = (params) => post("/operatingvehicles/list", params); // 运营车辆列表 export const setOperationVehicleDelete = (params) => @@ -86,6 +86,9 @@ export const findByIdOperatingVehicleInfo = (params) => export const editOperatingVehicleInfo = (params) => upload("/operatingvehicles/edit", params); // 修改运营车辆 +export const getOperationVehicleInfo = (params) => + post("/operatingvehicles/findById", params); // 根据Id获取运营车辆信息 + diff --git a/src/request/scrap_manage.js b/src/request/scrap_manage.js new file mode 100644 index 0000000..13a8241 --- /dev/null +++ b/src/request/scrap_manage.js @@ -0,0 +1,30 @@ +import { ref } from "vue"; +import { getLevelsByParentId } from "@/request/data_dictionary.js"; +import { post, upload } from "@/request/axios.js"; + +export const layoutFnGetScrapType = async () => { + const resData = await getLevelsByParentId({ + parentId: "78452f4ec77e4d98ae8cdd9c3386ae0c", + }); + return ref(resData); +}; + +export const getScrapManageList = (params) => + post("/scrapmanage/list", params); // 报废管理列表 + +export const setScrapManageDelete = (params) => + post("/scrapmanage/delete", params); // 报废管理列表 + +export const setScrapManageAdd = (params) => + upload("/scrapmanage/add", params); // 过户管理添加 + +export const setScrapManageEdit = (params) => + upload("/scrapmanage/goEdit", params); // 过户管理修改 + +export const findByIdScrapManageInfo = (params) => + post("/scrapmanage/goEdit", params); // 查看过户信息 + +export const getOperationVehicleList = (params) => + upload("/operatingvehicles/operationvehicleList", params); // 获取所有车船税 + + diff --git a/src/views/mechanical_files/assigned_manage/add.vue b/src/views/mechanical_files/assigned_manage/add.vue index c4b4cdc..4c57ffb 100644 --- a/src/views/mechanical_files/assigned_manage/add.vue +++ b/src/views/mechanical_files/assigned_manage/add.vue @@ -245,19 +245,25 @@ import { } from "@/assets/js/assigned_manage.js"; import { getFreightTrailerList, + getFreightTrailerView } from "@/request/enterprise_management.js" import { - getOperationList, + getOperationVehicleList, + findByIdOperatingVehicleInfo } from "@/request/operation_vehicle.js" import LayoutUpload from "@/components/upload/index.vue"; import { debounce } from "throttle-debounce"; import useFormValidate from "@/assets/js/useFormValidate.js"; import { addingPrefixToFile } from "@/assets/js/utils.js"; -import { setAssignedManageAdd, setAssignedManageEdit } from "@/request/assigned_manage.js"; +import { + setAssignedManageAdd, + setAssignedManageEdit, + layoutFnGetScrapVehicleType, +} from "@/request/assigned_manage.js"; import { setUploadImg } from "@/request/api.js"; import { ElMessage } from "element-plus"; import { useRoute, useRouter } from "vue-router"; -import { getVehicleView,layoutFnGetScrapVehicleType } from "@/request/scrap_manage.js"; + const route = useRoute(); const router = useRouter(); const ASSIGNED_ID = route.query.ASSIGNED_ID @@ -272,8 +278,8 @@ onMounted(async () => { }); const getFreightVehicleList = await getFreightTrailerList(); -const getOperationVehicleList = await getOperationList(); - +const getOperationList = await getOperationVehicleList(); +console.log(getOperationList,'55555555'); const assignedWayList = await layoutFnGetAssignedWay(); const rules = { @@ -349,7 +355,7 @@ const fnEditVehicleModel = async () => { form.value.VEHICLE_PLATE_NUMBER = null; form.value.VEHICLE = {}; if(form.value.ASSIGNED_VEHICLE_MODEL === "运输车辆") { - form.value.ALLVEHICLE = getOperationVehicleList.varList + form.value.ALLVEHICLE = getOperationList.varList form.value.OPERATIONVEHICLELIST = form.value.ALLVEHICLE }else if(form.value.ASSIGNED_VEHICLE_MODEL === "货运挂车") { form.value.ALLVEHICLE = getFreightVehicleList.varList @@ -361,9 +367,8 @@ const fnGetVehicleInfo = async () => { for (let i = 0; i < form.value.OPERATIONVEHICLELIST.length; i++) { if(form.value.OPERATIONVEHICLELIST[i].PLATE_NUMBER === form.value.VEHICLE_PLATE_NUMBER) { const OPERATING_ID = form.value.OPERATIONVEHICLELIST[i].OPERATING_ID - const resData = await getVehicleView({ OPERATING_ID }); + const resData = await findByIdOperatingVehicleInfo({ OPERATING_ID }); info.value = resData.pd; - console.log("选中的营运车辆",info.value); form.value.VEHICLE.PLATE_NUMBER = info.value.PLATE_NUMBER form.value.VEHICLE.RAW_OWNERS = info.value.VEHICLEOWNER form.value.VEHICLE.RAW_OWNERS_NUMBER = info.value.VEHICLEOWNER_NUMBER @@ -387,7 +392,8 @@ const fnGetVehicleInfo = async () => { for (let i = 0; i < form.value.FREIGHTVEHICLELIST.length; i++) { if(form.value.FREIGHTVEHICLELIST[i].PLATE_NUMBER === form.value.VEHICLE_PLATE_NUMBER) { const FREIGHTTRAILER_ID = form.value.FREIGHTVEHICLELIST[i].FREIGHTTRAILER_ID - const resData = await getVehicleView({ FREIGHTTRAILER_ID }); + const resData = await getFreightTrailerView({ FREIGHTTRAILER_ID }); + console.log("选中的货运挂车信息",resData); info.value = resData.pd; form.value.VEHICLE.PLATE_NUMBER = info.value.PLATE_NUMBER form.value.VEHICLE.RAW_OWNERS = info.value.CAR_OWNERS diff --git a/src/views/mechanical_files/assigned_manage/index.vue b/src/views/mechanical_files/assigned_manage/index.vue index d676035..c1942cb 100644 --- a/src/views/mechanical_files/assigned_manage/index.vue +++ b/src/views/mechanical_files/assigned_manage/index.vue @@ -169,32 +169,6 @@ > 查看 - - 画像 - - - 修改 - { diff --git a/src/views/mechanical_files/scrap_manage/add.vue b/src/views/mechanical_files/scrap_manage/add.vue new file mode 100644 index 0000000..b38d5fa --- /dev/null +++ b/src/views/mechanical_files/scrap_manage/add.vue @@ -0,0 +1,354 @@ + + + + + diff --git a/src/views/mechanical_files/scrap_manage/index.vue b/src/views/mechanical_files/scrap_manage/index.vue new file mode 100644 index 0000000..a7db22e --- /dev/null +++ b/src/views/mechanical_files/scrap_manage/index.vue @@ -0,0 +1,210 @@ + + + + diff --git a/src/views/mechanical_files/scrap_manage/view.vue b/src/views/mechanical_files/scrap_manage/view.vue new file mode 100644 index 0000000..860bf11 --- /dev/null +++ b/src/views/mechanical_files/scrap_manage/view.vue @@ -0,0 +1,77 @@ + + + + +