Selaa lähdekoodia

feature_20250819_门店拜访任务连拍接口修改

zhujindu 3 kuukautta sitten
vanhempi
commit
263144b14b
2 muutettua tiedostoa jossa 21 lisäystä ja 3 poistoa
  1. 18 0
      src/api/index.js
  2. 3 3
      src/components/uploadVNormal.vue

+ 18 - 0
src/api/index.js

@@ -931,3 +931,21 @@ export function addPhotoToDB(data) {
     data: data,
   });
 }
+// 拜访
+export function chainsGroupAddPhoto(data, signal) {
+  return request({
+    url: '/mobile/chainsGroup/addPhoto',
+    method: 'post',
+    data: data,
+    signal: signal,
+  });
+}
+
+// 仍要上传图片入库
+export function chainsGroupAddPhotoToDB(data) {
+  return request({
+    url: 'mobile/chainsGroup/addPhotoToDB',
+    method: 'post',
+    data: data,
+  });
+}

+ 3 - 3
src/components/uploadVNormal.vue

@@ -26,7 +26,7 @@
 </template>
 
 <script>
-import { addstorePhoto, addVisitsPosition, addPhotoToDB } from '@/api/index';
+import { addPhoto, addVisitsPosition, addPhotoToDB } from '@/api/index';
 import imageAIVerifyErr from './imageAIVerifyErr';
 import axios from 'axios';
 
@@ -278,7 +278,7 @@ export default {
       } else {
         this.toastLoading(0, '上传中...', true);
       }
-      addstorePhoto(form, this.controller ? this.controller.signal : null)
+      chainsGroupAddPhoto(form, this.controller ? this.controller.signal : null)
         .then((res) => {
           this.toastLoading().clear();
           if (res.code == -1) {
@@ -361,7 +361,7 @@ export default {
           form.isUpdate = 'true';
           form.feedbackMessage = res.feedbackMessage;
         }
-        addPhotoToDB(form).then((resData) => {
+        chainsGroupAddPhotoToDB(form).then((resData) => {
           if (resData.code == 200) {
             console.log(resData);
             res.data.fileId = resData.data.fileId;