|
|
@@ -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 })
|