Parcourir la source

从首店复制客户

shizhongqi il y a 4 ans
Parent
commit
6979ada865
2 fichiers modifiés avec 12 ajouts et 1 suppressions
  1. 8 1
      ghsApp/src/admin/home/member.vue
  2. 4 0
      ghsApp/src/api/custom/index.js

+ 8 - 1
ghsApp/src/admin/home/member.vue

@@ -56,6 +56,7 @@ import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import appVipModule from "@/components/module/app-vip";
 import appVipModule from "@/components/module/app-vip";
 import AppTag from "@/components/module/app-tag.vue";
 import AppTag from "@/components/module/app-tag.vue";
 import AppSearchModule from "@/components/module/app-search";
 import AppSearchModule from "@/components/module/app-search";
+import { copyCumtomer } from '@/api/custom'
 import { list } from "@/mixins";
 import { list } from "@/mixins";
 import { getClass, getList } from "@/api/member";
 import { getClass, getList } from "@/api/member";
 import { mapGetters } from "vuex"
 import { mapGetters } from "vuex"
@@ -119,7 +120,13 @@ export default {
       }
       }
     },
     },
     syncFromDefaultShop(){
     syncFromDefaultShop(){
-
+      uni.showLoading({mask:true})
+      copyCumtomer({
+        hdShopAdminId: this.option.hdShopAdminId,
+        ghsShopAdminId: this.option.ghsShopAdminId
+      }).then(res => {
+        this.$msg(res.msg);
+      });
     },
     },
     searchFn(e) {
     searchFn(e) {
       this.resetList();
       this.resetList();

+ 4 - 0
ghsApp/src/api/custom/index.js

@@ -25,4 +25,8 @@ export const debtChangeList = data => {
 
 
 export const createCumtomer = data => {
 export const createCumtomer = data => {
 	return https.post('/custom/create-customers', data)
 	return https.post('/custom/create-customers', data)
+}
+
+export const copyCumtomer = data => {
+	return https.post('/custom/copy-customers', data)
 }
 }