shizhongqi пре 4 година
родитељ
комит
6979ada865
2 измењених фајлова са 12 додато и 1 уклоњено
  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 AppTag from "@/components/module/app-tag.vue";
 import AppSearchModule from "@/components/module/app-search";
+import { copyCumtomer } from '@/api/custom'
 import { list } from "@/mixins";
 import { getClass, getList } from "@/api/member";
 import { mapGetters } from "vuex"
@@ -119,7 +120,13 @@ export default {
       }
     },
     syncFromDefaultShop(){
-
+      uni.showLoading({mask:true})
+      copyCumtomer({
+        hdShopAdminId: this.option.hdShopAdminId,
+        ghsShopAdminId: this.option.ghsShopAdminId
+      }).then(res => {
+        this.$msg(res.msg);
+      });
     },
     searchFn(e) {
       this.resetList();

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

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