门店码,门店导购码下载

master
yechenhao 6 years ago
parent 8bc0a81872
commit e9a66a4c06

@ -25,7 +25,8 @@
<Button type="primary">查询</Button>
</i-col>
<i-col span="12" style="text-align: right;padding-right: 20px;">
<Button type="primary" style="margin-right: 10px;">批量下载</Button>
<Button type="primary" @click="downloadStoreCode" style="margin-right: 10px;">批量下载门店码</Button>
<Button type="primary" @click="downloadStoreSellerCode" style="margin-right: 10px;">批量下载导购码</Button>
<Button type="primary" @click="showImport" style="margin-right: 10px;">批量开通</Button>
</i-col>
</Row>
@ -176,6 +177,7 @@
isShowAdd: false,
showStoreName: '',
updateUrl: http.getBaseUrl() + "/store/emp/import",
downLoadStoreCodeUrl: http.getBaseUrl() + "/store/emp/download/store/code",
qrCodeImage: '',
selectedRegion: null,
regionList: [],
@ -310,6 +312,12 @@
this.isShowImport = true;
this.isShowError = false
},
downloadStoreCode(){
http.downloadStoreCode({},null);
},
downloadStoreSellerCode(){
http.downloadStoreSellerCode({},null);
},
handleSubmit (name) {
this.$refs[name].validate((valid) => {
if (valid) {

@ -15,6 +15,24 @@ import axios from "axios";
export function uploadUser(params, call) {
return http.post('/store/emp/import', params).then(call);
}
/**
* 下载门店码
* @param params
* @param call
* @returns {Promise<any | never>}
*/
export function downloadStoreCode(params, call) {
return http.get('/store/emp/download/store/code', params).then(call);
}
/**
* 下载门店导购码
* @param params
* @param call
* @returns {Promise<any | never>}
*/
export function downloadStoreSellerCode(params, call) {
return http.get('/store/emp/download/store/seller/code', params).then(call);
}
export function getBaseUrl() {
@ -23,5 +41,7 @@ export function getBaseUrl() {
export default {
uploadUser,
downloadStoreCode,
downloadStoreSellerCode,
getBaseUrl
}

Loading…
Cancel
Save