Merge remote-tracking branch 'origin/master' into xiaozy_产品列表
This commit is contained in:
69
src/api/order.js
Normal file
69
src/api/order.js
Normal file
@@ -0,0 +1,69 @@
|
||||
import request from "utils/axios.js";
|
||||
// table
|
||||
const getByPage = (params) => {
|
||||
return request.postJson("/oil-refinery/xoilRefineryOrder/getByPage", params);
|
||||
};
|
||||
//查看提货单信息
|
||||
const findDeliveryByOrderId = (id) => {
|
||||
return request.get(`/oil-refinery/xoilRefineryDelivery/findDeliveryByOrderId/${id}`);
|
||||
};
|
||||
//创建提货单
|
||||
const billSave = (params) => {
|
||||
return request.postJson("/oil-refinery/xoilRefineryDelivery/save", params);
|
||||
};
|
||||
//修改提货单
|
||||
const update = (params) => {
|
||||
return request.postPut("/oil-refinery/xoilRefineryDelivery/update", params);
|
||||
};
|
||||
//修改提货单
|
||||
const orderUpdate = (params) => {
|
||||
return request.postPut("/oil-refinery/xoilRefineryOrder/update", params);
|
||||
};
|
||||
//查看订单信息
|
||||
const findByOrderId = (id) => {
|
||||
return request.get(`/oil-refinery/xoilRefineryDelivery/findByOrderId/${id}`);
|
||||
};
|
||||
//修改提货单
|
||||
const deleteBill = (params) => {
|
||||
return request.postPut("/oil-refinery/xoilRefineryDelivery/delete", params);
|
||||
};
|
||||
//下单
|
||||
const orderSuccess = (params) => {
|
||||
return request.postJson("/oil-refinery/xoilRefineryOrder/orderSuccess", params);
|
||||
};
|
||||
//订单锁定
|
||||
const orderLock = (params) => {
|
||||
return request.postJson("/oil-refinery/xoilRefineryOrder/orderLock", params);
|
||||
};
|
||||
//确认下单
|
||||
const orderComplete = (params) => {
|
||||
return request.postJson("/oil-refinery/xoilRefineryOrder/orderComplete", params);
|
||||
};
|
||||
//订单退款
|
||||
const orderRefund = (params) => {
|
||||
return request.postJson("/oil-refinery/xoilRefineryOrder/orderRefund", params);
|
||||
};
|
||||
//油批中心信息
|
||||
const getlnfoByld = (params) => {
|
||||
return request.postJson("/oil-refinery/xoilRefineryCenterAccount/getInfoById", params);
|
||||
};
|
||||
//油批中心列表
|
||||
const getRecordsByActld = (params) => {
|
||||
return request.postJson("/oil-refinery/xoilRefineryCenterAccount/getRecordsByActId", params);
|
||||
};
|
||||
|
||||
export default {
|
||||
getByPage,
|
||||
findDeliveryByOrderId,
|
||||
billSave,
|
||||
findByOrderId,
|
||||
update,
|
||||
deleteBill,
|
||||
orderSuccess,
|
||||
orderLock,
|
||||
orderComplete,
|
||||
orderRefund,
|
||||
orderUpdate,
|
||||
getlnfoByld,
|
||||
getRecordsByActld
|
||||
};
|
||||
@@ -32,6 +32,31 @@ const modifyPrice = (params) => {
|
||||
params
|
||||
);
|
||||
};
|
||||
// 搜索客户
|
||||
const getRefineryCompanyList = (params) => {
|
||||
return request.postJson("/oil-user/oilCompanyInfo/getLikeByCompanyType", params);
|
||||
};
|
||||
// 下单
|
||||
const orderSave = (params) => {
|
||||
return request.postJson(
|
||||
"/oil-refinery/xoilRefineryOrder/save",
|
||||
params
|
||||
);
|
||||
};
|
||||
//查看企业产品
|
||||
const getRefineryProductList = (params) => {
|
||||
return request.postJson(
|
||||
"/oil-refinery/oilRefineryProduct/getRefineryProductList",
|
||||
params
|
||||
);
|
||||
};
|
||||
//查看炼厂信息
|
||||
const findByEntity = (params) => {
|
||||
return request.postJson(
|
||||
"/oil-refinery/xoilRefineryInfo/findByEntity",
|
||||
params
|
||||
);
|
||||
};
|
||||
|
||||
export default {
|
||||
getByPage,
|
||||
@@ -40,4 +65,8 @@ export default {
|
||||
getByPageRecord,
|
||||
updateBatchEnable,
|
||||
modifyPrice,
|
||||
getRefineryCompanyList,
|
||||
orderSave,
|
||||
getRefineryProductList,
|
||||
findByEntity
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user