sunyize преди 2 години
родител
ревизия
a00bdbc6f7
променени са 3 файла, в които са добавени 120 реда и са изтрити 144 реда
  1. 107 115
      src/views/networkAccess/registration.vue
  2. 6 14
      src/views/networkAccess/registrationSelect.vue
  3. 7 15
      src/views/networkAccess/registrationUpdate.vue

+ 107 - 115
src/views/networkAccess/registration.vue

@@ -1225,6 +1225,9 @@ export default {
       this.array.push(1)  //通过添加array的值,增加input的个数
     },
     del(index){
+      if (this.array.length===1){
+        return this.$message.warning('新办号码保留至少一项!!!', 3);
+      }
       this.form.value.splice(index,1)   //先删除form中value对应索引的值
       this.array.splice(index,1)  //然后删除array对应索引的值,实现点击删除按钮,减少input框效果
     },
@@ -2319,18 +2322,7 @@ export default {
       }else {
         this.sysBusinessHallNull=false;
       } }
-      if (data==='all' || data==="cardStartTime" || data==='all' || data==="cardEndTime"){  if (this.model.cardStartTime===''|| this.model.cardStartTime===null){
-        this.cardDateNull=true;
-        info=false;
-      }else {
-        this.cardDateNull=false;
-      }
-        if (this.model.cardEndTime==='' || this.model.cardEndTime===null){
-          this.cardDateNull=true;
-          info=false;
-        }else {
-          this.cardDateNull=false;
-        } }
+
       return info;
     },
 
@@ -2652,107 +2644,107 @@ export default {
     },
     /**下一步骤*/
     nextSteps() {
-      if (this.current===0){
-          var info= this.showCheck0('all');
-          if (info===false){
-            return
-          }
-        }
-      if (this.current === 1) {
-        var info = this.showCheck1('all');
-        if (info === false) {
-          return
-        }
-
-        let that = this;
-        console.info(this.model.calltestResults);
-        that.addIng == false
-        let data = this.getData('next');
-        let id = that.model.id;
-        let i = 1;
-        let dataMessage = '';
-        const h = this.$createElement
-        this.newDatas = [];
-
-
-        if (this.model.calltestResults === 1 || this.model.calltestResults === '1') {
-          this.calltestResultsName = '关机';
-        }
-        if (this.model.calltestResults === 2 || this.model.calltestResults === '2') {
-          this.calltestResultsName = '未接通';
-        }
-        if (this.model.calltestResults === 3 || this.model.calltestResults === '3') {
-          this.calltestResultsName = '可接通不知晓入网事宜';
-        }
-        if (this.model.calltestResults === 4 || this.model.calltestResults === '4') {
-          this.calltestResultsName = '可接通认可办理';
-        }
-
-        //集合遍历
-        var company = '';
-        var hall = '';
-        for (var item of this.sysCompany) {
-          if (item.id === this.model.company) {
-            this.companyName = item.name
-            for (var it of item.sysBusinessHallList) {
-              if (it.id === this.model.sysBusinessHall) {
-                this.hallName = it.name
-              }
-            }
-          }
-        }
-        this.newDatas.push('异常信息提醒:')
-        this.newDatas.push('该用户以下填写信息可能触发风险请确认是否继续操作!!!')
-        // if (data["calltestResults"] === '2') {
-        //   this.newDatas.push(i++ + '、该用户拨测号码未接通 请确认是否继续操作 。 ')
-        //
-        // }
-        // if ( data["judgmentResearch"] === '3' ) {
-        //   this.newDatas.push(i++ + '、该用户附件地址人工判研异常 。 ')
-        // }
-        // if (data["calltestResults"] === '1') {
-        //   this.newDatas.push(i++ + '、该用户拨测号码关机 请确认是否继续操作 。 ')
-        //
-        // }
-        // if (this.isSizeNumberResults === 'is') {
-        //   this.newDatas.push(i++ + ' 、该用户有多个不友好研判结果 请确认是否继续操作 。 ')
-        //
-        // }
-        // if (data["judgmentResearch"] === '1'  ) {
-        //   if (parseFloat(this.distance1) > parseFloat(this.distance)) {
-        //     this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),营业厅地址 距离过远 请确认是否继续操作 。 ')
-        //   }
-        //   if (parseFloat(this.distance2) > parseFloat(this.distance)) {
-        //     this.newDatas.push(i++ + ' 、该用户 工作地址 , 营业厅地址 距离过远 请确认是否继续操作 。 ')
-        //   }
-        //   if (parseFloat(this.distance3) > parseFloat(this.distance)) {
-        //     this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),工作地址距离过远 请确认是否继续操作 。 ')
-        //   }
-        // }
-        this.getDataRisk(data)
-        // if (this.newDatas.length === 1) {
-        //newDatas.push(h('p', null, i++ +'、 暂无风险提示 请继续操作。 '))
-        //} else {
-
-        //是否显示继续操作页面
-        this.showInfo = true;
-
-
-        //document.getElementById('showInfo').innerHTML = h('div', null, this.newDatas)
-        // this.$confirm({
-        //   okText: '继续操作',
-        //   cancelText: '终止操作',
-        //   title: "确认是否继续",
-        //   content: h('div', null, newDatas),
-        //   onOk: function () {
-        //
-        //   } ,
-        //   onCancel:function (){
-        //     data['status']="0";//中断提交
-        //     that.submit(data,id)
-        //   }
-        // });
-      }
+      // if (this.current===0){
+      //     var info= this.showCheck0('all');
+      //     if (info===false){
+      //       return
+      //     }
+      //   }
+      // if (this.current === 1) {
+      //   var info = this.showCheck1('all');
+      //   if (info === false) {
+      //     return
+      //   }
+      //
+      //   let that = this;
+      //   console.info(this.model.calltestResults);
+      //   that.addIng == false
+      //   let data = this.getData('next');
+      //   let id = that.model.id;
+      //   let i = 1;
+      //   let dataMessage = '';
+      //   const h = this.$createElement
+      //   this.newDatas = [];
+      //
+      //
+      //   if (this.model.calltestResults === 1 || this.model.calltestResults === '1') {
+      //     this.calltestResultsName = '关机';
+      //   }
+      //   if (this.model.calltestResults === 2 || this.model.calltestResults === '2') {
+      //     this.calltestResultsName = '未接通';
+      //   }
+      //   if (this.model.calltestResults === 3 || this.model.calltestResults === '3') {
+      //     this.calltestResultsName = '可接通不知晓入网事宜';
+      //   }
+      //   if (this.model.calltestResults === 4 || this.model.calltestResults === '4') {
+      //     this.calltestResultsName = '可接通认可办理';
+      //   }
+      //
+      //   //集合遍历
+      //   var company = '';
+      //   var hall = '';
+      //   for (var item of this.sysCompany) {
+      //     if (item.id === this.model.company) {
+      //       this.companyName = item.name
+      //       for (var it of item.sysBusinessHallList) {
+      //         if (it.id === this.model.sysBusinessHall) {
+      //           this.hallName = it.name
+      //         }
+      //       }
+      //     }
+      //   }
+      //   this.newDatas.push('异常信息提醒:')
+      //   this.newDatas.push('该用户以下填写信息可能触发风险请确认是否继续操作!!!')
+      //   // if (data["calltestResults"] === '2') {
+      //   //   this.newDatas.push(i++ + '、该用户拨测号码未接通 请确认是否继续操作 。 ')
+      //   //
+      //   // }
+      //   // if ( data["judgmentResearch"] === '3' ) {
+      //   //   this.newDatas.push(i++ + '、该用户附件地址人工判研异常 。 ')
+      //   // }
+      //   // if (data["calltestResults"] === '1') {
+      //   //   this.newDatas.push(i++ + '、该用户拨测号码关机 请确认是否继续操作 。 ')
+      //   //
+      //   // }
+      //   // if (this.isSizeNumberResults === 'is') {
+      //   //   this.newDatas.push(i++ + ' 、该用户有多个不友好研判结果 请确认是否继续操作 。 ')
+      //   //
+      //   // }
+      //   // if (data["judgmentResearch"] === '1'  ) {
+      //   //   if (parseFloat(this.distance1) > parseFloat(this.distance)) {
+      //   //     this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),营业厅地址 距离过远 请确认是否继续操作 。 ')
+      //   //   }
+      //   //   if (parseFloat(this.distance2) > parseFloat(this.distance)) {
+      //   //     this.newDatas.push(i++ + ' 、该用户 工作地址 , 营业厅地址 距离过远 请确认是否继续操作 。 ')
+      //   //   }
+      //   //   if (parseFloat(this.distance3) > parseFloat(this.distance)) {
+      //   //     this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),工作地址距离过远 请确认是否继续操作 。 ')
+      //   //   }
+      //   // }
+      //   this.getDataRisk(data)
+      //   // if (this.newDatas.length === 1) {
+      //   //newDatas.push(h('p', null, i++ +'、 暂无风险提示 请继续操作。 '))
+      //   //} else {
+      //
+      //   //是否显示继续操作页面
+      //   this.showInfo = true;
+      //
+      //
+      //   //document.getElementById('showInfo').innerHTML = h('div', null, this.newDatas)
+      //   // this.$confirm({
+      //   //   okText: '继续操作',
+      //   //   cancelText: '终止操作',
+      //   //   title: "确认是否继续",
+      //   //   content: h('div', null, newDatas),
+      //   //   onOk: function () {
+      //   //
+      //   //   } ,
+      //   //   onCancel:function (){
+      //   //     data['status']="0";//中断提交
+      //   //     that.submit(data,id)
+      //   //   }
+      //   // });
+      // }
       if (this.current < this.steps.length) {
         this.current = this.current + 1;
       }
@@ -2794,7 +2786,7 @@ export default {
         if (this.form.value.length>0) {
           this.model.newPhone=this.form.value.join(',');
         }else {
-          this.$message.warning('新办号码至少选择一项!!!', 3);
+          return this.$message.warning('新办号码至少选择一项!!!', 3);
         }
       }
 
@@ -2906,7 +2898,7 @@ export default {
             //this.$router.replace({ path: this.$route.path })
           } else {
             this.$message.error("提交失败");
-             location.reload();
+             //location.reload();
             // this.onCance  ()
             // this.closeCurrent();
             // this.$router.replace({ path: this.$route.path })

+ 6 - 14
src/views/networkAccess/registrationSelect.vue

@@ -765,7 +765,7 @@ export default {
   data() {
 
     return {
-      array:[1],  //创建一个数组
+      array:[],  //创建一个数组
       form:{
         value:[]  //接收每个input框的值
       },
@@ -1262,6 +1262,9 @@ export default {
       this.array.push(1)  //通过添加array的值,增加input的个数
     },
     del(index){
+      if (this.array.length===1){
+        return this.$message.warning('新办号码保留至少一项!!!', 3);
+      }
       this.form.value.splice(index,1)   //先删除form中value对应索引的值
       this.array.splice(index,1)  //然后删除array对应索引的值,实现点击删除按钮,减少input框效果
     },
@@ -2377,18 +2380,7 @@ export default {
       }else {
         this.sysBusinessHallNull=false;
       } }
-      if (data==='all' || data==="cardStartTime" || data==='all' || data==="cardEndTime"){  if (this.model.cardStartTime===''|| this.model.cardStartTime===null){
-        this.cardDateNull=true;
-        info=false;
-      }else {
-        this.cardDateNull=false;
-      }
-        if (this.model.cardEndTime==='' || this.model.cardEndTime===null){
-          this.cardDateNull=true;
-          info=false;
-        }else {
-          this.cardDateNull=false;
-        } }
+
       return info;
     },
 
@@ -2852,7 +2844,7 @@ export default {
         if (this.form.value.length>0) {
           this.model.newPhone=this.form.value.join(',');
         }else {
-          this.$message.warning('新办号码至少选择一项!!!', 3);
+          return this.$message.warning('新办号码至少选择一项!!!', 3);
         }
       }
 

+ 7 - 15
src/views/networkAccess/registrationUpdate.vue

@@ -769,7 +769,7 @@ export default {
   data() {
 
     return {
-      array:[1],  //创建一个数组
+      array:[],  //创建一个数组
       form:{
         value:[]  //接收每个input框的值
       },
@@ -1264,6 +1264,9 @@ export default {
       this.array.push(1)  //通过添加array的值,增加input的个数
     },
     del(index){
+      if (this.array.length===1){
+        return this.$message.warning('新办号码保留至少一项!!!', 3);
+      }
       this.form.value.splice(index,1)   //先删除form中value对应索引的值
       this.array.splice(index,1)  //然后删除array对应索引的值,实现点击删除按钮,减少input框效果
     },
@@ -2376,18 +2379,7 @@ export default {
       }else {
         this.sysBusinessHallNull=false;
       } }
-      if (data==='all' || data==="cardStartTime" || data==='all' || data==="cardEndTime"){  if (this.model.cardStartTime===''|| this.model.cardStartTime===null){
-        this.cardDateNull=true;
-        info=false;
-      }else {
-        this.cardDateNull=false;
-      }
-        if (this.model.cardEndTime==='' || this.model.cardEndTime===null){
-          this.cardDateNull=true;
-          info=false;
-        }else {
-          this.cardDateNull=false;
-        } }
+
       return info;
     },
 
@@ -2851,7 +2843,7 @@ export default {
         if (this.form.value.length>0) {
           this.model.newPhone=this.form.value.join(',');
         }else {
-          this.$message.warning('新办号码至少选择一项!!!', 3);
+          return this.$message.warning('新办号码至少选择一项!!!', 3);
         }
       }
 
@@ -2963,7 +2955,7 @@ export default {
             //this.$router.replace({ path: this.$route.path })
           } else {
             this.$message.error("提交失败");
-             location.reload();
+             //location.reload();
             // this.onCance  ()
             // this.closeCurrent();
             // this.$router.replace({ path: this.$route.path })