油批
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.0 KiB

2 years ago
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);
2 years ago
};
//查看订单信息
const findByOrderId = (id) => {
return request.get(`/oil-refinery/xoilRefineryDelivery/findByOrderId/${id}`);
};
//修改提货单
const deleteBill = (params) => {
return request.postPut("/oil-refinery/xoilRefineryDelivery/delete", params);
2 years ago
};
//下单
const orderSuccess = (params) => {
return request.postJson("/oil-refinery/xoilRefineryOrder/orderSuccess", params);
};
2 years ago
//订单锁定
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);
2 years ago
};
2 years ago
export default {
getByPage,
findDeliveryByOrderId,
billSave,
findByOrderId,
update,
deleteBill,
2 years ago
orderSuccess,
orderLock,
orderComplete,
orderRefund,
orderUpdate,
getlnfoByld,
getRecordsByActld
2 years ago
};