whj 1 năm trước cách đây
mục cha
commit
d507def14a
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      src/views/preparation/preparation/modules/BaseForm.vue

+ 10 - 0
src/views/preparation/preparation/modules/BaseForm.vue

@@ -376,6 +376,16 @@ export default {
           return
         }
         // 日期处理
+        if (this.repairFileList.length === 0) {
+          this.$message.error('请上传相关图片')
+          this.confirmLoading = false
+          return
+        }
+        if (this.fileList.length === 0) {
+          this.$message.error('请上传相关文件')
+          this.confirmLoading = false
+          return
+        }
         values.imageList = this.repairFileList
         values.fileList = this.fileList // 维修文件
         values.applyTime = this.BaseTool.Date.formatter(values.applyTime, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN)