Browse Source

feature_20260108_陈列奖励案任务合并

zhujindu 1 week ago
parent
commit
6e981b84cf

+ 2 - 2
src/components/deleteUploadImgTaskPhoto.vue

@@ -7,7 +7,7 @@
             :imgArr="imgs"
             :shouws="true"
             :storeGroupId="storeGroupId"
-            :taskList="taskIds"
+            :taskList="taskIds.split(',')"
             :collectionItemId="collectionItemId"
             :visitModel="1 + ''"
             :visitsId="visitsId"
@@ -78,7 +78,7 @@ export default {
       type: String,
     },
     taskIds: {
-      type: Array,
+      type: [Array, String],
       default() {
         return [];
       },

+ 9 - 2
src/components/uploadVNormalTaskPhoto.vue

@@ -83,6 +83,10 @@ export default {
       type: String,
       default: '0',
     },
+    collectionItemId: {
+      type: String,
+      default: '0',
+    },
     // uploadid: {
     //   type: String,
     //   default: '',
@@ -156,6 +160,9 @@ export default {
       localIdsArr: [],
     };
   },
+  created() {
+    console.log(this.taskList);
+  },
   methods: {
     // 原生H5拍照图片
     // url: base64
@@ -327,7 +334,7 @@ export default {
         storeGroupId: that.storeGroupId, //	是	string	门店任务组,多个用逗号隔开
         visitsId: that.visitsId, //	是	string	拜访id
         taskList: that.taskList, //	是	List	任务id数组
-        collectionItemId: '', //	是	string	采集项id
+        collectionItemId: that.collectionItemId, //	是	string	采集项id
         objectType: that.objectType, //	是	string	照片类型,取任务上的照片类型,如果没有则取手动选择的照片类型
         locationRemark: that.addressesRemark, //	是	String	当前地址信息
         firstCollectionId: '', //	否	Long	第一级采集项id,取当前采集项的字段就行
@@ -447,7 +454,7 @@ export default {
           storeGroupId: this.storeGroupId, //	是	string	门店任务组,多个用逗号隔开
           visitsId: that.visitsId, //	是	string	拜访id
           taskList: this.taskList, //	是	List	任务id数组
-          collectionItemId: '', //	是	string	采集项id
+          collectionItemId: that.collectionItemId, //	是	string	采集项id
           objectType: that.objectType, //	是	string	照片类型,取任务上的照片类型,如果没有则取手动选择的照片类型
           locationRemark: this.addressesRemark, //	是	String	当前地址信息
           firstCollectionId: '', //	否	Long	第一级采集项id,取当前采集项的字段就行

+ 1 - 1
src/views/deviceWithin/taskPhotoTaking.vue

@@ -39,7 +39,7 @@
               <delete-upload-img
                 :imgs="item.fileInfoList"
                 :storeGroupId="formData.storeGroupId"
-                :taskList="taskIds"
+                :taskIds="taskIds"
                 :visitsId="visitsId"
                 :collectionItemId="item.collectionId"
                 :putInCode="formData.putInCode"