Ver código fonte

feature_20260115_直发类色卡销售发放时必须拍照

zhujindu 1 semana atrás
pai
commit
33d9bacfe0
1 arquivos alterados com 9 adições e 1 exclusões
  1. 9 1
      src/views/deviceWithin/addStoreVisit.vue

+ 9 - 1
src/views/deviceWithin/addStoreVisit.vue

@@ -97,7 +97,7 @@
           /></template>
         </el-table-column>
       </el-table>
-      <div class="wuliaoPhotoImg">
+      <div class="wuliaoPhotoImg" style="margin-top: 10px" v-if="wuliaoMust">
         <deleteUploadImg :imgs="wuliaoPhotoImg"></deleteUploadImg>
       </div>
     </div>
@@ -5758,6 +5758,14 @@ export default {
           checkUnManage: checkUnManage,
           wuliaoMust: this.wuliaoMust,
         };
+        if (this.wuliaoMust) {
+          let fafangValue = this.tableData1.filter((val) => val.value);
+          if (fafangValue.length) {
+            if (!this.wuliaoPhotoImg.length && this.needIssuePhoto == '1') {
+              this.$toast('请上传图片');
+            }
+          }
+        }
       } else {
         formData = {
           storeId: this.storeId,