Parcourir la source

feature_20250917_仿石漆潜在客户区域创建

zhujindu il y a 2 mois
Parent
commit
5834182633
2 fichiers modifiés avec 12 ajouts et 3 suppressions
  1. 9 0
      src/api/store.js
  2. 3 3
      src/views/storeManagement/competingStoresEdit.vue

+ 9 - 0
src/api/store.js

@@ -54,3 +54,12 @@ export function addQzStore(data) {
     data,
   });
 }
+
+// 修改潜在客户接口
+export function updateQzStore(data) {
+  return request({
+    url: 'mobile/store/updateQzStore',
+    method: 'post',
+    data,
+  });
+}

+ 3 - 3
src/views/storeManagement/competingStoresEdit.vue

@@ -278,7 +278,7 @@ import { phoneCheck, streetQuery, getById } from '@/api/index';
 import { getPosition, getTicketFun, getGeocoder } from '@/utils/TXApiFun';
 import { jsonp } from 'vue-jsonp';
 import { getstreetInfoList } from '@/api/addDesigner';
-import { qzStoreCategory, getChildDeptList, addQzStore } from '@/api/store';
+import { qzStoreCategory, getChildDeptList, addQzStore, updateQzStore } from '@/api/store';
 export default {
   data() {
     return {
@@ -344,7 +344,7 @@ export default {
       districtNameOld: '',
     };
     this.showmap = false;
-    // this.toastLoading(0, '加载中...', true);
+    this.toastLoading(0, '加载中...', true);
     // 授权
     getTicketFun(['getLocation', 'chooseImage', 'uploadImage']).then(() => {
       this.$nextTick(() => {
@@ -472,7 +472,7 @@ export default {
     onSubmit(value) {
       this.toastLoading(0, '提交中...', true);
       console.log(this.fromData);
-      addQzStore(this.fromData).then((res) => {
+      updateQzStore(this.fromData).then((res) => {
         this.toastLoading().clear();
         if (res.code == 200) {
           this.$dialog