Browse Source

系统DVP DVP验证 编辑弹框 通过但没有上传试验报告 弹出提醒并不保存

weibowen 10 months ago
parent
commit
5eab441a10

+ 3 - 1
src/locales/lang/en-US/fullVehicle.js

@@ -29,4 +29,6 @@ export default {
     'dvp.full.vehicle.dvp.only-support-single-upload':'Only A Single Upload Ss Supported, And Uploading Company Data Or Other Data Files Is Strictly Prohibited',
     'dvp.full.vehicle.dvp.test-report': 'Test Report',
     'dvp.full.vehicle.dvp.upload-test-report': 'Upload Test Report',
-}
+    'dvp.full.vehicle.dvp.please-upload-test-report': 'Please upload test report!',
+
+}

+ 3 - 1
src/locales/lang/zh-CN/fullVehicle.js

@@ -29,4 +29,6 @@ export default {
     'dvp.full.vehicle.dvp.only-support-single-upload':'仅支持单个上传,严格禁止上传公司数据或其他数据文件',
     'dvp.full.vehicle.dvp.test-report': '试验报告',
     'dvp.full.vehicle.dvp.upload-test-report': '上传试验报告',
-}
+    'dvp.full.vehicle.dvp.please-upload-test-report': '请上传试验报告!',
+
+}

+ 6 - 0
src/views/systemDVP/verify/dvpVerify.vue

@@ -819,6 +819,12 @@ export default {
       if (!this.isNull(row)) {
         return false;
       }
+      // 如果选择了通过,但没有上传实验报告,弹出提醒
+      if (row.testResult === 1 && this.fileList.length < 1) {
+        this.$notification.warning({message: this.$t('dvp.full.vehicle.dvp.please-upload-test-report')});
+        return false;
+      }
+
       let _that = this;
       let data = {
         dvpId: _that.$store.getters.dvpId,