integrated_traffic_vue/src/request/scrap_manage.js

33 lines
1.3 KiB
JavaScript
Raw Normal View History

2024-03-14 09:03:11 +08:00
import { ref } from "vue";
2024-04-18 17:49:12 +08:00
import { getLevels } from "@/request/data_dictionary.js";
2024-03-14 09:03:11 +08:00
import { post, upload } from "@/request/axios.js";
export const layoutFnGetScrapType = async () => {
2024-04-18 17:49:12 +08:00
const resData = await getLevels({
2024-04-10 16:53:36 +08:00
DICTIONARIES_ID: "78452f4ec77e4d98ae8cdd9c3386ae0c",
2024-03-14 09:03:11 +08:00
});
return ref(resData);
};
export const getScrapManageList = (params) => post("/scrapmanage/list", params); // 报废管理列表
2024-03-14 09:03:11 +08:00
export const setScrapManageDelete = (params) =>
post("/scrapmanage/delete", params); // 报废管理列表
export const setScrapManageAdd = (params) => upload("/scrapmanage/add", params); // 过户管理添加
2024-03-14 09:03:11 +08:00
export const setScrapManageEdit = (params) =>
upload("/scrapmanage/goEdit", params); // 过户管理修改
export const findByIdScrapManageInfo = (params) =>
post("/scrapmanage/goEdit", params); // 查看过户信息
export const getOperationVehicleList = (params) =>
upload("/operatingvehicles/operationvehicleList", params); // 获取所有车船税
2024-03-14 09:03:11 +08:00
export const getScrapOperationVehicleList = (params) =>
2024-04-03 17:57:47 +08:00
post("/scrapmanage/getScrapOperationVehicleList", params); // 车型选择营运车辆列表
2024-03-14 09:03:11 +08:00
export const getScrapFreightTrailerList = (params) =>
2024-04-03 17:57:47 +08:00
post("/scrapmanage/getScrapFreightTrailerList", params); // 车型选择货物挂车列表