Explorar el Código

SAI开项管理 - 修改/保存/提交申请时所有字段设置为必填项

wangggziwen hace 1 año
padre
commit
8c5aa7f9e4

+ 7 - 1
ui/src/views/production/apply/all/index.vue

@@ -768,7 +768,7 @@ export default {
       }
     };
     var validateApplicantTeam = (rule, value, callback) => {
-      if (this.form.applicantDept == '103') {
+      if (!this.applicantTeamDisabled) {
         if (this.form.applicantTeam == null) {
           return callback(new Error('登记人班组不能为空'));
         } else {
@@ -980,6 +980,12 @@ export default {
         unsafeAction: [
           { validator: validateUnsafeAction, trigger: 'change' }
         ],
+        saiLevel: [
+          { required: true, message: this.$t('SAI级别') + this.$t('不能为空'), trigger: "change" }
+        ],
+        category: [
+          { required: true, message: this.$t('SAI类别') + this.$t('不能为空'), trigger: "change" }
+        ],
       },
       // 申请状态字典
       applyStatusOptions: [],

+ 7 - 1
ui/src/views/production/apply/mine/index.vue

@@ -718,7 +718,7 @@
         }
       };
       var validateApplicantTeam = (rule, value, callback) => {
-        if (this.form.applicantDept == '103') {
+        if (!this.applicantTeamDisabled) {
           if (this.form.applicantTeam == null) {
             return callback(new Error('登记人班组不能为空'));
           } else {
@@ -926,6 +926,12 @@
           unsafeAction: [
             { validator: validateUnsafeAction, trigger: 'change' }
           ],
+          saiLevel: [
+            { required: true, message: this.$t('SAI级别') + this.$t('不能为空'), trigger: "change" }
+          ],
+          category: [
+            { required: true, message: this.$t('SAI类别') + this.$t('不能为空'), trigger: "change" }
+          ],
         },
         // 申请状态字典
         applyStatusOptions: [],

+ 7 - 1
ui/src/views/production/apply/pending/index.vue

@@ -717,7 +717,7 @@
         }
       };
       var validateApplicantTeam = (rule, value, callback) => {
-        if (this.form.applicantDept == '103') {
+        if (!this.applicantTeamDisabled) {
           if (this.form.applicantTeam == null) {
             return callback(new Error('登记人班组不能为空'));
           } else {
@@ -925,6 +925,12 @@
           unsafeAction: [
             { validator: validateUnsafeAction, trigger: 'change' }
           ],
+          saiLevel: [
+            { required: true, message: this.$t('SAI级别') + this.$t('不能为空'), trigger: "change" }
+          ],
+          category: [
+            { required: true, message: this.$t('SAI类别') + this.$t('不能为空'), trigger: "change" }
+          ],
         },
         // 申请状态字典
         applyStatusOptions: [],