33 lines
989 B
JavaScript
33 lines
989 B
JavaScript
import axios from "@/utils/request";
|
|
//保养待办接口
|
|
export default {
|
|
queryPageList(params) {
|
|
return axios.get(`/maintenanceAgent/queryPageList`, params);
|
|
},
|
|
add(params) {
|
|
return axios.put(`/maintenanceAgent/add`, params); //接口在车辆整备那边调用
|
|
},
|
|
edit(params) {
|
|
return axios.put(`/maintenanceAgent/edit`, params);
|
|
},
|
|
getById(params) {
|
|
return axios.get(`/maintenanceAgent/getAgentInfoById`, params);
|
|
},
|
|
//获取保养记录列表
|
|
getMaintainInfoByCarId(params) {
|
|
return axios.get(`/maintenanceAgent/getNewAgentItemInfoById`, params);
|
|
},
|
|
//查看保养记录
|
|
getRecords(params) {
|
|
return axios.get(`/maintenanceAgent/getAgentItemListByIds`, params);
|
|
},
|
|
getCostInfoByIds(params) {
|
|
return axios.post(`/maintenanceAgent/getAgentItemListByIdss`, params);
|
|
},
|
|
getPayeeType() {
|
|
return axios.get(`/dic/queryByDicType`, {
|
|
dicType: "dic_maintenance_payee_type",
|
|
}); // 字典数据 收款方类型
|
|
},
|
|
};
|