From 9fc445bbce410837087fa4b929d8e840c0cc4bc3 Mon Sep 17 00:00:00 2001 From: yechenhao Date: Mon, 8 Jun 2020 16:20:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=97=A8=E5=BA=97=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/IncreaseStoreManager.vue | 109 ++++++++++++++++++++++-- 1 file changed, 104 insertions(+), 5 deletions(-) diff --git a/src/pages/shop/IncreaseStoreManager.vue b/src/pages/shop/IncreaseStoreManager.vue index abcb172..2e472f9 100644 --- a/src/pages/shop/IncreaseStoreManager.vue +++ b/src/pages/shop/IncreaseStoreManager.vue @@ -17,6 +17,7 @@ + @@ -32,7 +33,7 @@ class="table-img-qr-code"/> @@ -57,7 +58,7 @@
开通企业微信号
@@ -85,6 +86,38 @@
+ + +
开通企业微信号
+ +
+ + + + + + + + + + + + + + + + + + + +
+
+ item.level === 3); + let customerIds = customerList.map(item => item.id); + let request = + {userId: that.userId, customerIds: JSON.stringify(customerIds)}; + staff.downShopData(request, function (data) { + data = data.data.results; + if (data) { + that.cpShopList = [{"id": 0, "name": "全部"}]; + for (let i = 0; i < data.length; i++) { + let entity = data[i]; + if (entity) { + that.cpShopList.push(entity); + } + } + } + }) + }, changeData: function (value) { if (value == 0) { return null; @@ -436,9 +512,23 @@ cancel: function () { this.isShow = false; }, - open: function (item) { + open: function () { this.isShowAdd = true; + this.formValidate = { + alias: "", + cpUserName: "", + userId: "", + id: "", + mobile: "", + checkbox: ['vail'], + storeId: "", + shopName: "", + } + }, + openModify: function (item) { + this.isShowModify = true; + this.formValidate = { alias: item.alias, cpUserName: item.cpUserName, @@ -465,8 +555,17 @@ this.$Message.error('Fail!'); } }, + handleSubmitAdd(value) { + if (value) { + // 调用添加接口 + this.addStoreWX(value); + } else { + this.$Message.error('Fail!'); + } + }, handleReset(name) { this.$refs[name].resetFields(); + this.isShowModify = false; this.isShowAdd = false; }, downLoadImportExcel() {