|
|
|
@ -15,20 +15,24 @@ import axios from 'axios'
|
|
|
|
|
export function uploadUser(params, call) {
|
|
|
|
|
return http.post('/store/emp/import', params).then(call)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function storeList(params, call, errorCallBack) {
|
|
|
|
|
return http
|
|
|
|
|
.post('/store/emp/list', params)
|
|
|
|
|
.then(call)
|
|
|
|
|
.catch(errorCallBack)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function addStoreWX(params, call) {
|
|
|
|
|
return http.post('/user/add', params).then(call)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function modifyStoreWX(params, call) {
|
|
|
|
|
return http.post('/user/update', params).then(call);
|
|
|
|
|
}
|
|
|
|
|
export function downloadImg(params,name, call) {
|
|
|
|
|
return http.downloadImg('/user/img/download',name, params).then(call);
|
|
|
|
|
|
|
|
|
|
export function downloadImg(params, name, call) {
|
|
|
|
|
return http.downloadImg('/user/img/download', name, params).then(call);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -37,6 +41,7 @@ export function downloadImg(params,name, call) {
|
|
|
|
|
export function downCompanyData(params, call) {
|
|
|
|
|
return http.get('/retail/company', params).then(call)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 下拉框数据品牌公司
|
|
|
|
|
*/
|
|
|
|
@ -55,6 +60,7 @@ export function downloadStoreCode(params, call) {
|
|
|
|
|
.downloadZip('/store/emp/download/store/code/bsd', '门店码', params)
|
|
|
|
|
.then(call)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 下载门店导购码
|
|
|
|
|
* @param params
|
|
|
|
@ -96,9 +102,21 @@ export function downloadDataListToList(params, call, errorCallBack) {
|
|
|
|
|
export function getWelcomeList(params, call) {
|
|
|
|
|
return http.get('/activity/instance/list', params).then(call)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function deleteWelcome(params, call) {
|
|
|
|
|
return http.get('/activity/instance/deleteWelcome', params).then(call)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 重置二维码
|
|
|
|
|
* @param params
|
|
|
|
|
* @param call
|
|
|
|
|
* @returns {Promise<any>}
|
|
|
|
|
*/
|
|
|
|
|
export function postStoreStaffQrCodeReset(params, call) {
|
|
|
|
|
return http.post('/store/staff/qrcode/reset', params).then(call)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
uploadUser,
|
|
|
|
|
getBaseUrl,
|
|
|
|
@ -113,4 +131,5 @@ export default {
|
|
|
|
|
downloadDataListToList,
|
|
|
|
|
getWelcomeList,
|
|
|
|
|
deleteWelcome,
|
|
|
|
|
postStoreStaffQrCodeReset
|
|
|
|
|
}
|
|
|
|
|