浏览代码

修改上传校验

Qukatie 1 周之前
父节点
当前提交
97fa010292
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/views/claimSettlement/detailsPage.vue

+ 6 - 6
src/views/claimSettlement/detailsPage.vue

@@ -423,10 +423,10 @@ export default {
             if (!/^[1][3,4,5,7,8,9][0-9]{9}$/.test(this.form.consumerPhone)) {
               return this.$message.error("请输入正确电话");
             }
-            if (this.form.claimAttachmentList.length == 0) return this.$message.error("请上传鼓包并向照片");
+            if (this.form.claimAttachmentList.length == 0) return this.$message.error("请上传病象");
             if (this.form.claimAttachmentList.length == 1) return this.$message.error("请上传轮胎DOT");
-            if (this.form.claimAttachmentList.length == 2) return this.$message.error("请上传车头照片");
-            if (this.form.claimAttachmentList.length == 3) return this.$message.error("请上传鼓包处照片");
+            if (this.form.claimAttachmentList.length == 2) return this.$message.error("请上传花纹深度");
+            // if (this.form.claimAttachmentList.length == 3) return this.$message.error("请上传鼓包处照片");
             this.form.claimAttachmentList.forEach((item, index) => {
               item.fileProperties = index + 1;
             });
@@ -476,10 +476,10 @@ export default {
           if (!/^[1][3,4,5,7,8,9][0-9]{9}$/.test(this.form.consumerPhone)) {
             return this.$message.error("请输入正确电话");
           }
-          if (this.form.claimAttachmentList.length == 0) return this.$message.error("请上传鼓包并向照片");
+          if (this.form.claimAttachmentList.length == 0) return this.$message.error("请上传病象");
           if (this.form.claimAttachmentList.length == 1) return this.$message.error("请上传轮胎DOT");
-          if (this.form.claimAttachmentList.length == 2) return this.$message.error("请上传车头照片");
-          if (this.form.claimAttachmentList.length == 3) return this.$message.error("请上传鼓包处照片");
+          if (this.form.claimAttachmentList.length == 2) return this.$message.error("请上传花纹深度");
+          // if (this.form.claimAttachmentList.length == 3) return this.$message.error("请上传鼓包处照片");
           this.form.claimAttachmentList.forEach((item, index) => {
             item.fileProperties = index + 1;
           });