更新
This commit is contained in:
43
src/api/product.js
Normal file
43
src/api/product.js
Normal file
@@ -0,0 +1,43 @@
|
||||
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,
|
||||
};
|
||||
Reference in New Issue
Block a user