You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.2 KiB
JavaScript
85 lines
2.2 KiB
JavaScript
/**
|
|
* 组织管理 server层
|
|
* @author dexiang.jiang
|
|
* @date 2020/06/07 16:14
|
|
*/
|
|
|
|
import http from '../CommonHttp'
|
|
|
|
/**
|
|
* 查询大区列表
|
|
* @param params 参数
|
|
* @param call 成功回调
|
|
* @param errorCallback 错误回调
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function getOrganizationRegionList(params, call, errorCallback) {
|
|
return http.get('/organization/region/list', params).then(call).catch(errorCallback)
|
|
}
|
|
|
|
/**
|
|
* 修改组织 大区 公司 客户
|
|
* @param params 参数
|
|
* @param call 成功回调
|
|
* @param errorCallback 错误回调
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function postOrganizationRegionModify(params, call, errorCallback) {
|
|
return http.post('/organization/modify', params).then(call).catch(errorCallback)
|
|
}
|
|
|
|
/**
|
|
* 添加组织 大区
|
|
* @param params 参数
|
|
* @param call 成功回调
|
|
* @param errorCallback 错误回调
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function postOrganizationRegionAdd(params, call, errorCallback) {
|
|
return http.post('/organization/region/add', params).then(call).catch(errorCallback)
|
|
}
|
|
|
|
/**
|
|
* 删除
|
|
* @param params 参数
|
|
* @param call 成功回调
|
|
* @param errorCallback 错误回调
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function postOrganizationRemoveId(params, call, errorCallback) {
|
|
return http.post('/organization/remove/id', params).then(call).catch(errorCallback)
|
|
}
|
|
|
|
/**
|
|
* 查询零售公司列表
|
|
* @param params 参数
|
|
* @param call 成功回调
|
|
* @param errorCallback 错误回调
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function postOrganizationCompanyList(params, call, errorCallback) {
|
|
return http.post('/organization/company/list', params).then(call).catch(errorCallback)
|
|
}
|
|
|
|
/**
|
|
* 添加组织 公司
|
|
* @param params 参数
|
|
* @param call 成功回调
|
|
* @param errorCallback 错误回调
|
|
* @returns {Promise<any>}
|
|
*/
|
|
export function postOrganizationCompanyAdd(params, call, errorCallback) {
|
|
return http.post('/organization/company/add', params).then(call).catch(errorCallback)
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
getOrganizationRegionList,
|
|
postOrganizationRegionModify,
|
|
postOrganizationRegionAdd,
|
|
postOrganizationRemoveId,
|
|
postOrganizationCompanyList,
|
|
postOrganizationCompanyAdd
|
|
}
|