新增global,缓存职位信息

This commit is contained in:
huangdeliang
2021-02-23 15:09:17 +08:00
parent 6b50ddcfdd
commit df52ea8f2d
20 changed files with 2333 additions and 1812 deletions

View File

@ -0,0 +1,8 @@
import request from "@/utils/request";
export function getOptions() {
return request({
url: "/custom/post/options",
method: "get"
});
}

View File

@ -1,69 +1,62 @@
import request from '@/utils/request'
import request from "@/utils/request";
// 查询销售订单列表
export function listOrder(params) {
return request({
url: '/custom/order/list',
method: 'get',
url: "/custom/order/list",
method: "get",
params: params
})
});
}
// 查询销售订单详细
export function getOrder(orderId) {
return request({
url: '/custom/order/' + orderId,
method: 'get'
})
url: "/custom/order/" + orderId,
method: "get"
});
}
// 新增销售订单
export function addOrder(data) {
return request({
url: '/custom/order',
method: 'post',
url: "/custom/order",
method: "post",
data: data
})
});
}
// 修改销售订单
export function updateOrder(data) {
return request({
url: '/custom/order',
method: 'put',
url: "/custom/order",
method: "put",
data: data
})
});
}
// 删除销售订单
export function delOrder(orderId) {
return request({
url: '/custom/order/' + orderId,
method: 'delete'
})
url: "/custom/order/" + orderId,
method: "delete"
});
}
// 导出销售订单
export function exportOrder(query) {
return request({
url: '/custom/order/export',
method: 'get',
url: "/custom/order/export",
method: "get",
params: query
})
}
export function getOptions() {
return request({
url: '/custom/post/options',
method: 'get'
})
});
}
// 查询销售订单详细
export function getInfoDetail(query) {
return request({
url: '/custom/order/getInfoDetail',
method: 'get',
url: "/custom/order/getInfoDetail",
method: "get",
params: query
})
});
}