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.
66 lines
1.4 KiB
JavaScript
66 lines
1.4 KiB
JavaScript
/**
|
|
* 门店号管理
|
|
* @author yechenhao
|
|
* @date 2020/4/14
|
|
*/
|
|
import http from '../CommonHttp'
|
|
import axios from "axios";
|
|
|
|
/**
|
|
* 上传文件
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any | never>}
|
|
*/
|
|
export function uploadUser(params, call) {
|
|
return http.post('/store/emp/import', params).then(call);
|
|
}
|
|
export function storeList(params, call) {
|
|
return http.post('/store/emp/list', params).then(call);
|
|
}
|
|
export function addStoreWX(params, call) {
|
|
return http.post('/user/add', params).then(call);
|
|
}
|
|
|
|
/**
|
|
* 下拉框数据品牌公司
|
|
*/
|
|
export function downCompanyData(params, call) {
|
|
return http.get('/retail/company',params).then(call)
|
|
}
|
|
|
|
/**
|
|
* 下载门店码
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any | never>}
|
|
*/
|
|
export function downloadStoreCode(params, call) {
|
|
return http.downloadZip('/store/emp/download/store/code','门店码', params).then(call);
|
|
}
|
|
/**
|
|
* 下载门店导购码
|
|
* @param params
|
|
* @param call
|
|
* @returns {Promise<any | never>}
|
|
*/
|
|
export function downloadStoreSellerCode(params, call) {
|
|
return http.downloadZip('/store/emp/download/store/seller/code','门店导购码', params).then(call);
|
|
}
|
|
|
|
|
|
export function getBaseUrl() {
|
|
return axios.defaults.baseURL;
|
|
}
|
|
|
|
export default {
|
|
uploadUser,
|
|
getBaseUrl,
|
|
storeList,
|
|
addStoreWX,
|
|
downCompanyData,
|
|
downloadStoreCode,
|
|
downloadStoreSellerCode,
|
|
|
|
}
|