diff --git a/src/pages/shop/IncreaseStoreManager.vue b/src/pages/shop/IncreaseStoreManager.vue index c919c28..981cb84 100644 --- a/src/pages/shop/IncreaseStoreManager.vue +++ b/src/pages/shop/IncreaseStoreManager.vue @@ -25,7 +25,8 @@ - + + @@ -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) { diff --git a/src/services/store/IncreaseStoreManager.js b/src/services/store/IncreaseStoreManager.js index d500db5..1736bd4 100644 --- a/src/services/store/IncreaseStoreManager.js +++ b/src/services/store/IncreaseStoreManager.js @@ -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} + */ +export function downloadStoreCode(params, call) { + return http.get('/store/emp/download/store/code', params).then(call); +} +/** + * 下载门店导购码 + * @param params + * @param call + * @returns {Promise} + */ +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 }