Browse Source

修改msg

Qukatie 2 weeks ago
parent
commit
37b839f94d
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/claimSettlement/detailsPage.vue

+ 8 - 2
src/views/claimSettlement/detailsPage.vue

@@ -438,7 +438,10 @@ export default {
         this.$refs.form.validate((valid, done) => {
         this.$refs.form.validate((valid, done) => {
           done();
           done();
           if (valid) {
           if (valid) {
-            if (this.form.claimAttachmentList.length != 4) return this.$message.error("请上传4张图片");
+            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("请上传鼓包处照片");
             this.$confirm("是否提交审批?", "提示", {
             this.$confirm("是否提交审批?", "提示", {
               confirmButtonText: "确定",
               confirmButtonText: "确定",
               cancelButtonText: "取消",
               cancelButtonText: "取消",
@@ -481,7 +484,10 @@ export default {
       this.$refs.form.validate((valid, done) => {
       this.$refs.form.validate((valid, done) => {
         done();
         done();
         if (valid) {
         if (valid) {
-          if (this.form.claimAttachmentList.length != 4) return this.$message.error("请上传4张图片");
+          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("请上传鼓包处照片");
           const loading = this.$loading({
           const loading = this.$loading({
             lock: true,
             lock: true,
             text: "加载中",
             text: "加载中",