智慧教务系统 PHP-NiuCloud框架开发
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.
 
 
 
 
 
 

62 lines
1.7 KiB

import request from '@/utils/request'
// USER_CODE_BEGIN -- zhjw_sales
/**
* 获取销售管理列表
* @param params
* @returns
*/
export function getSalesList(params: Record<string, any>) {
return request.get(`zhjw/sales`, {params})
}
/**
* 获取销售管理详情
* @param id 销售管理id
* @returns
*/
export function getSalesInfo(id: number) {
return request.get(`zhjw/sales/${id}`);
}
/**
* 添加销售管理
* @param params
* @returns
*/
export function addSales(params: Record<string, any>) {
return request.post('zhjw/sales', params, { showErrorMessage: true, showSuccessMessage: true })
}
/**
* 编辑销售管理
* @param id
* @param params
* @returns
*/
export function editSales(params: Record<string, any>) {
return request.put(`zhjw/sales/${params.id}`, params, { showErrorMessage: true, showSuccessMessage: true })
}
/**
* 删除销售管理
* @param id
* @returns
*/
export function deleteSales(id: number) {
return request.delete(`zhjw/sales/${id}`, { showErrorMessage: true, showSuccessMessage: true })
}
export function getWithStaffList(params: Record<string,any>){
return request.get('zhjw/staff_all', {params})
}export function getWithStaffList(params: Record<string,any>){
return request.get('zhjw/staff_all', {params})
}export function getWithSysAreaList(params: Record<string,any>){
return request.get('zhjw/sys_area_all', {params})
}export function getWithSysAreaList(params: Record<string,any>){
return request.get('zhjw/sys_area_all', {params})
}export function getWithSysAreaList(params: Record<string,any>){
return request.get('zhjw/sys_area_all', {params})
}
// USER_CODE_END -- zhjw_sales