zhujindu hace 1 semana
padre
commit
6ce9b67566

+ 12 - 2
src/components/deleteUploadImgTaskPhoto.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="deleteUploadImgTaskPhoto">
     <van-row gutter="10">
-      <van-col span="6" style="" v-if="insert == '1'">
+      <van-col span="6" style="" v-if="insert == '1' && formData.processStatus != 1">
         <div class="addImg">
           <uploadVNormalTaskPhoto
             :imgArr="imgs"
@@ -23,7 +23,11 @@
       <van-col span="6" v-for="(urls, index) in imgs" :key="urls.id">
         <div class="imgview">
           <van-icon
-            v-if="(photoIdentifyType != 6 || photoIdentifyType != 7) && insert == '1'"
+            v-if="
+              (photoIdentifyType != 6 || photoIdentifyType != 7) &&
+              insert == '1' &&
+              formData.processStatus != 1
+            "
             name="close"
             size="16"
             v-on:click="deleteImg(index, urls.fileIdSplicing)" />
@@ -60,6 +64,12 @@ export default {
   name: 'deleteUploadImgTaskPhoto',
   components: { uploadVNormalTaskPhoto },
   props: {
+    formData: {
+      type: Object,
+      default() {
+        return {};
+      },
+    },
     imgs: {
       type: Array,
       default() {

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

@@ -798,7 +798,7 @@ export default {
               taskIds: val.taskIds.join(','),
               storeGroupId: this.storeGroupId,
               photoType: val.photoType,
-              insert: 1,
+              insert: this.insert,
             },
           });
         } else {

+ 3 - 2
src/views/deviceWithin/taskPhotoTaking.vue

@@ -1,9 +1,9 @@
 <template>
   <div class="taskPhotoTaking">
     <van-nav-bar class="navBar" left-arrow title="生动化陈列" @click-left="onClickLeft">
-      <template #right>
+      <template #right v-if="formData">
         <span
-          v-if="isEdit && insert == '1'"
+          v-if="isEdit && insert == '1' && formData.processStatus != 1"
           @click="onSubmit"
           style="
             color: white;
@@ -42,6 +42,7 @@
                 </template>
               </van-cell>
               <deleteUploadImg
+                :formData="formData"
                 :imgs="item.fileInfoList"
                 :storeGroupId="storeGroupId"
                 :taskIds="taskIds"