This commit is contained in:
xiaozhiyong
2023-02-13 10:44:01 +08:00
parent 38e5fe394b
commit c07e56183c
11 changed files with 1031 additions and 169 deletions

43
src/api/product.js Normal file
View 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,
};