67 lines
2.1 KiB
JavaScript
67 lines
2.1 KiB
JavaScript
import axios from "@/utils/request";
|
|
|
|
export default {
|
|
queryPageList(params) {
|
|
return axios.post(`/standbyVehicleMain/queryPageList`, params);
|
|
},
|
|
getTodo(params) {
|
|
return axios.get(`/standbyVehicleMain/getTodo`, params)
|
|
},
|
|
getById(params) {
|
|
return axios.get(`/standbyVehicleMain/getById`, params)
|
|
},
|
|
saveStandbyVehicleDetail(params) {
|
|
return axios.post(`/standbyVehicleMain/saveStandbyVehicleDetail`, params)
|
|
},
|
|
getVehicleBrand() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_vehicle_brand" })
|
|
},
|
|
getBrandListByMode(params) {
|
|
return axios.get(`/truck/getBrandListByMode`, params)
|
|
},
|
|
getTruckType() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_truck_type" })
|
|
},
|
|
getYesNoDic() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_yes_no" })
|
|
},
|
|
getTypeName() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_failure_type" })// 故障类型
|
|
},
|
|
getFailureStatusName() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_is_settle_status" })// 故障状态
|
|
},
|
|
getFaultSourceName() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_fault_source" })// 故障来源
|
|
},
|
|
getCityName() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_unusual_action_apply_city_code" })// 城市
|
|
},
|
|
getCostTypeName() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_fault_cost_type" })// 费用类型
|
|
},
|
|
getPayerName() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_fault_payer" })// 付款方
|
|
},
|
|
getPaymentStatusDic() {
|
|
return axios.get(`/dic/queryByDicType`, { dicType: "dic_pub_payment_status" })// 付款状态
|
|
},
|
|
saveCache(params) {
|
|
return axios.post(`/standbyVehicleMain/saveCache`, params);
|
|
},
|
|
getCache(params) {
|
|
return axios.get(`/standbyVehicleMain/getCache`, params)
|
|
},
|
|
delCache(params) {
|
|
return axios.get(`/standbyVehicleMain/delCache`, params);
|
|
},
|
|
getOpManagerPhone(params) {
|
|
return axios.get(`/standbyVehicleMain/getOperationsManagerByRegion`, params)
|
|
},
|
|
edit(params) {
|
|
return axios.put(`/standbyVehicleMain/edit`, params)
|
|
},
|
|
getFormDataListByTruckId(params) {
|
|
return axios.get(`/standbyVehicleMain/getFormDataListByTruckId`, params)
|
|
}
|
|
} |