From e9a66a4c067f81d3cc905c741dea3fc95f6d4959 Mon Sep 17 00:00:00 2001 From: yechenhao Date: Mon, 20 Apr 2020 18:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E7=A0=81=EF=BC=8C=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E5=AF=BC=E8=B4=AD=E7=A0=81=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/IncreaseStoreManager.vue | 10 +++++++++- src/services/store/IncreaseStoreManager.js | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) 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 }