Ver código fonte

feature_20260420_陈列任务识别排面数修改

zhujindu 1 dia atrás
pai
commit
d68040b8c3
2 arquivos alterados com 19 adições e 0 exclusões
  1. 9 0
      src/api/index.js
  2. 10 0
      src/views/historicalVisit/perfectStoreTask.vue

+ 9 - 0
src/api/index.js

@@ -1205,3 +1205,12 @@ export function shareReportMobile(data) {
     data,
     data,
   });
   });
 }
 }
+
+//修改陈列奖励案牌面数
+export function updateDisplayRewardCaseSkuCount(data) {
+  return request({
+    url: '/mobile/storeGroup/updateDisplayRewardCaseSkuCount',
+    method: 'post',
+    data,
+  });
+}

+ 10 - 0
src/views/historicalVisit/perfectStoreTask.vue

@@ -196,6 +196,7 @@ import {
   addCollectionAnswerBatch,
   addCollectionAnswerBatch,
   getVisitsDetailPerfectStore,
   getVisitsDetailPerfectStore,
   getVisitsDetailPerfectStoreByTaskId,
   getVisitsDetailPerfectStoreByTaskId,
+  updateDisplayRewardCaseSkuCount,
 } from '@/api/index';
 } from '@/api/index';
 import taskTips from '@/views/deviceWithin/taskTips';
 import taskTips from '@/views/deviceWithin/taskTips';
 import deleteUploadImg from '@/components/deleteUploadImgTaskPhoto';
 import deleteUploadImg from '@/components/deleteUploadImgTaskPhoto';
@@ -217,6 +218,7 @@ export default {
       taskPhotoRecognitionResult: null,
       taskPhotoRecognitionResult: null,
       spanArr: [],
       spanArr: [],
       editTableFlag: false,
       editTableFlag: false,
+      editCountArr: [],
     };
     };
   },
   },
   activated() {
   activated() {
@@ -226,6 +228,7 @@ export default {
     this.objectType = this.$route.query.photoType || '';
     this.objectType = this.$route.query.photoType || '';
     this.insert = this.$route.query.insert;
     this.insert = this.$route.query.insert;
     this.formData = null;
     this.formData = null;
+    this.editCountArr = [];
     this.getVisitsDetailFun();
     this.getVisitsDetailFun();
   },
   },
   methods: {
   methods: {
@@ -323,6 +326,13 @@ export default {
         if (current < original) {
         if (current < original) {
           this.$toast('排面数不能小于原始值');
           this.$toast('排面数不能小于原始值');
           row.identifyTheNumberOfCards = String(original);
           row.identifyTheNumberOfCards = String(original);
+        } else {
+          this.editCountArr.push({
+            taskId: '', //	Long	任务id
+            visitId: '', //	Long	拜访id
+            skuProductCode: '', //	String	产品code
+            editCount: '', //	integer	修改产品数字的差值,为正整数。
+          });
         }
         }
       } else {
       } else {
         this.$toast('排面数不能为空');
         this.$toast('排面数不能为空');