Browse Source

materialApplicationAdd Bug 修改

wangguangping 3 years ago
parent
commit
697ac319a2
1 changed files with 23 additions and 15 deletions
  1. 23 15
      src/pages/main/advertising/materialApplicationadd.vue

+ 23 - 15
src/pages/main/advertising/materialApplicationadd.vue

@@ -557,15 +557,15 @@ export default {
                         validator: terminalTypeName
                     }
                 ],
-                orderCycleArr: [
-                    {
-                        type: "array",
-                        required: true,
-                        trigger: "blur",
-                        // validator: orderCycleArr
-                        message: "不能为空"
-                    }
-                ],
+                // orderCycleArr: [
+                //     {
+                //         type: "array",
+                //         required: true,
+                //         trigger: "blur",
+                //         // validator: orderCycleArr
+                //         message: "不能为空"
+                //     }
+                // ],
                 sceneName: [
                     {
                         required: true,
@@ -938,7 +938,19 @@ export default {
                         this.infolist = {};
                         return;
                     } else if (v === 2) {
-                        if (this.multipleSelection.length == 0) {
+                        if(this.infolist.orderCycleArr== undefined || this.infolist.orderCycleArr.length == 0){
+                            MessageBox.alert("请填写下单周期", "温馨提示", {
+                                confirmButtonText: "确定"
+                            });
+                        }  else if(this.infolist.tit == null){
+                            MessageBox.alert("请填写业务名称", "温馨提示", {
+                                confirmButtonText: "确定"
+                            });
+                        } else if (this.companyFlag == "1" && this.attList.length == 0) {
+                            MessageBox.alert("请上传附件", "温馨提示", {
+                                confirmButtonText: "确定"
+                            });
+                        } else if (this.multipleSelection.length == 0) {
                             MessageBox.alert(
                                 "提交前请至少选择一条物料",
                                 "温馨提示",
@@ -946,11 +958,7 @@ export default {
                                     confirmButtonText: "确定"
                                 }
                             );
-                        } else if (this.companyFlag == "1" && this.attList.length == 0) {
-                            MessageBox.alert("请上传附件", "温馨提示", {
-                                confirmButtonText: "确定"
-                            });
-                        } else {
+                        }else {
                             if (this.userListOpt == null) {
                                 // 树形审批人
                                 this.checkexa = true;