Files
refinery-admin/src/api/product.js

44 lines
970 B
JavaScript
Raw Normal View History

2023-02-13 10:44:01 +08:00
import request from "utils/axios.js";
// table
const getByPage = (params) => {
return request.postJson("/oil-refinery/oilRefineryProduct/getByPage", params);
};
// 新增
const save = (params) => {
return request.postJson("/oil-refinery/oilRefineryProduct/save", params);
};
// 修改
const update = (params) => {
return request.postJson("/oil-refinery/oilRefineryProduct/update", params);
};
// 调价记录table
const getByPageRecord = (params) => {
return request.postJson(
"/oil-refinery/oilRefineryPriceChangelog/getByPage",
params
);
};
// 批量修改
const updateBatchEnable = (params) => {
return request.postJson(
"/oil-refinery/oilRefineryProduct/updateBatchEnable",
params
);
};
// 调价
const modifyPrice = (params) => {
return request.postJson(
"/oil-refinery/oilRefineryProduct/modifyPrice",
params
);
};
export default {
getByPage,
save,
update,
getByPageRecord,
updateBatchEnable,
modifyPrice,
};