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);
|
|
|
|
};
|
|
|
|
|
2024-03-25 08:47:41 +08:00
|
|
|
export const getScrapManageList = (params) => post("/scrapmanage/list", params); // 报废管理列表
|
2024-03-14 09:03:11 +08:00
|
|
|
|
|
|
|
export const setScrapManageDelete = (params) =>
|
|
|
|
post("/scrapmanage/delete", params); // 报废管理列表
|
|
|
|
|
2024-03-25 08:47:41 +08:00
|
|
|
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) =>
|
2024-03-25 08:47:41 +08:00
|
|
|
upload("/operatingvehicles/operationvehicleList", params); // 获取所有车船税
|
2024-03-14 09:03:11 +08:00
|
|
|
|
2024-03-25 08:47:41 +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
|
|
|
|
2024-03-25 08:47:41 +08:00
|
|
|
export const getScrapFreightTrailerList = (params) =>
|
2024-04-03 17:57:47 +08:00
|
|
|
post("/scrapmanage/getScrapFreightTrailerList", params); // 车型选择货物挂车列表
|