44 lines
970 B
JavaScript
44 lines
970 B
JavaScript
|
|
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,
|
||
|
|
};
|