sunyize 2 سال پیش
والد
کامیت
f63e2f83c5
3فایلهای تغییر یافته به همراه203 افزوده شده و 100 حذف شده
  1. 146 78
      src/views/networkAccess/registration.vue
  2. 43 11
      src/views/networkAccess/userStatistics.vue
  3. 14 11
      src/views/system/SysUserOnlineList.vue

+ 146 - 78
src/views/networkAccess/registration.vue

@@ -32,6 +32,35 @@
                     <template v-if="column.key === 'operation'">
 
                     </template>
+
+                  </template>
+                  <template v-slot:age="text, record">
+                    <div v-if="parseInt(text)<=23 || parseInt(text)>=60" style="color: red">{{ text }}</div>
+                    <div v-if="parseInt(text)>23 && parseInt(text)<60" >{{ text }}</div>
+                  </template>
+
+                  <template v-slot:cardStartTimeAndEnd="text, record">
+                    <div v-if="text==='是'"  >{{ text }}</div>
+                    <div v-if="text==='否'"  style="color: red">{{ text }}</div>
+                  </template>
+                  <template v-slot:judgmentResearchAddress="text, record">
+                    <div v-if="text==='异常'" style="color: red" >{{ text }}</div>
+                    <div v-if="text==='正常'"  >{{ text }}</div>
+                  </template>
+                  <template v-slot:judgmentResearch="text, record">
+                    <div v-if="text==='异常'" style="color: red" >{{ text }}</div>
+                    <div v-if="text==='正常'"  >{{ text }}</div>
+                  </template>
+                  <template v-slot:calltestResults="text, record">
+                    <div v-if="text==='关机'" style="color: red" >{{ text }}</div>
+                    <div v-if="text==='未接通'" style="color: red" >{{ text }}</div>
+                    <div v-if="text==='可接通不知晓入网事宜'" style="color: red" >{{ text }}</div>
+                    <div v-if="text==='可接通认可办理'"  >{{ text }}</div>
+                  </template>
+                  <template v-slot:numberResults="text, record">
+                    <div v-if="text==='非高危'"  >{{ text }}</div>
+                    <div v-else  style="color: red" >{{ text }}</div>
+
                   </template>
                 </a-table>
               </a-modal>
@@ -518,32 +547,48 @@
           :model="model"
           :rules="rules"
         >
-          <div id="showInfo">
-            <a-col :span="24">
 
-              <div>身份证件号码 : 【 {{ this.model.cardNo }} 】 身份证姓名:【 {{ this.model.cardName }} 】 身份证证件有效期【
-                {{ this.model.cardStartTime }}~{{ this.model.cardEndTime }}】
-              </div>
-              <div>拨测联系电话: 【 {{ this.model.phone }} 】 拨测结果: 【 {{ this.calltestResultsName }}】</div>
-              <div>营业厅地址: 【 {{ this.companyName }}--{{ this.hallName }} 】 工作地址:
-                【{{ this.model.wordAddress }}】现住地址(到村/小区) 【{{ this.model.currentAddress }}】
-              </div>
-            </a-col>
 
-            <a-col :span="24" style="margin-top: 30px">
+          <a-result
+            status="success"
+            title="无风险请继续操作!"
+            sub-title="success." v-if="riskShow"
+          >
+            <template #extra>
+
+            </template>
+          </a-result>
+
+          <div id="showInfo" v-if="!riskShow">
+<!--            <a-col :span="24">-->
+
+<!--              <div>身份证件号码 : 【 {{ this.model.cardNo }} 】 身份证姓名:【 {{ this.model.cardName }} 】 身份证证件有效期【-->
+<!--                {{ this.model.cardStartTime }}~{{ this.model.cardEndTime }}】-->
+<!--              </div>-->
+<!--              <div>拨测联系电话: 【 {{ this.model.phone }} 】 拨测结果: 【 {{ this.calltestResultsName }}】</div>-->
+<!--              <div>营业厅地址: 【 {{ this.companyName }}&#45;&#45;{{ this.hallName }} 】 工作地址:-->
+<!--                【{{ this.model.wordAddress }}】现住地址(到村/小区) 【{{ this.model.currentAddress }}】-->
+<!--              </div>-->
+<!--            </a-col>-->
+            <a-col :span="24" >
               <div v-for="value in newDatas" style="color: red">
                 {{ value }}
               </div>
             </a-col>
 
 
-
-            <a-table :columns="columns2" :data-source="dataRisk" bordered  >
+             <div style="height: 80px;"></div>
+            <a-table :columns="columns2" :data-source="dataRisk" bordered   >
               <template #bodyCell="{ column, text }">
                 <template v-if="column.dataIndex === 'name'">
                   <a>{{ text }}</a>
                 </template>
               </template>
+              <template v-slot:text="text, record">
+                <div  style="color: red">{{ text }}</div>
+              </template>
+
+
 <!--              <template #title>Header</template>-->
 <!--              <template #footer>Footer</template>-->
             </a-table>
@@ -729,33 +774,36 @@ export default {
   data() {
 
     return {
+      riskShow:true,
       columns:[{ title: '身份证件号码', width: 180, dataIndex: 'cardNo', key: 'cardNo'  },
-        { title: '身份证姓名', width: 150, dataIndex: 'cardName', key: 'cardName'  },
-        { title: '证件是否在期', dataIndex: 'cardStartTimeAndEnd', key: '1', width: 150 },
+        { title: '身份证姓名', width: 150, dataIndex: 'cardName', key: 'cardName' , scopedSlots: {customRender: 'cardName'} },
+        { title: '年龄', width: 150, dataIndex: 'age', key: 'age' , scopedSlots: {customRender: 'age'} },
+        { title: '证件是否在期', dataIndex: 'cardStartTimeAndEnd', key: '1', width: 150 , scopedSlots: {customRender: 'cardStartTimeAndEnd'}},
         { title: '创建人', dataIndex: 'createBy', key: 'createBy', width: 150 },
         { title: '创建日期', dataIndex: 'createTime', key: 'createTime', width: 150 },
         { title: '工作地址', dataIndex: 'wordAddress', key: 'wordAddress', width: 150 },
         { title: '营业厅地址', dataIndex: 'sysBusinessHall', key: 'sysBusinessHall', width: 150 },
         { title: '现住地址', dataIndex: 'currentAddress', key: 'currentAddress', width: 150 },
-        { title: '智能地址研判', dataIndex: 'judgmentResearch', key: 'judgmentResearch' , width: 150 },
-        { title: '人工地址判研', dataIndex: 'judgmentResearchAddress', key: 'judgmentResearchAddress', width: 150  },
-        { title: '拨测结果', dataIndex: 'calltestResults', key: 'calltestResults', width: 150 },
+        { title: '智能地址研判', dataIndex: 'judgmentResearch', key: 'judgmentResearch' , width: 150 , scopedSlots: {customRender: 'judgmentResearch'}},
+        { title: '人工地址判研', dataIndex: 'judgmentResearchAddress', key: 'judgmentResearchAddress', width: 150 , scopedSlots: {customRender: 'judgmentResearchAddress'}},
+        { title: '拨测结果', dataIndex: 'calltestResults', key: 'calltestResults', width: 150  , scopedSlots: {customRender: 'calltestResults'}},
         { title: '拨测联系电话', dataIndex: 'phone', key: 'phone', width: 150 },
         { title: '一证通查结果', dataIndex: 'operator', key: 'operator', width: 150 },
-        { title: '新办手机号', dataIndex: 'newPhone', key: 'newPhone' ,width: 250},
         { title: '运营商类型', dataIndex: 'operatorType', key: 'operatorType'  ,width: 150},
         { title: '现用号码使用用途', dataIndex: 'phonePurpose', key: 'phonePurpose',width: 150 },
-        { title: '后续处理', width: 150, dataIndex: 'numberResults', key: 'numberResults'},
+        { title: '新办手机号', dataIndex: 'newPhone', key: 'newPhone' ,width: 250},
+        { title: '后续处理', width: 150, dataIndex: 'numberResults', key: 'numberResults', scopedSlots: {customRender: 'numberResults'}},
        ],
       columns2:[
         {
-          title: '填写条目',
+          title: '触发风险条目',
           dataIndex: 'name',
         },
         {
-          title: '触发风险以及说明',
+          title: '触发风险原因',
           className: 'text',
           dataIndex: 'text',
+          scopedSlots: {customRender: 'text'}
         }
       ],
       dataRisk:[],
@@ -1190,9 +1238,9 @@ export default {
 
     //改变表格某一列或者某一个单元格文本颜色
     cellStyle(record,index){
-      if (record.calltestResults === '未接通' || record.calltestResults == '2'|| record.calltestResults == '3') {
-        return 'red'
-      }
+      // if (record.calltestResults === '未接通' || record.calltestResults == '2'|| record.calltestResults == '3') {
+      //   return 'red'
+      // }
     },
   resultData(result,newPhones){
     for (let i = 0; i < result.length; i++){
@@ -1204,6 +1252,20 @@ export default {
           this.dataList[i].cardStartTimeAndEnd='否'
         }
       }
+      if(result[i].cardNo!==null && result[i].cardNo!==''){
+        var birthday = result[i].cardNo.substring(6, 14);
+        var year = birthday.substring(0, 4);
+        // 计算年龄
+        var currentYear = new Date().getFullYear();
+        var age = currentYear - parseInt(year);
+        if (age>=60){
+           age=age+'岁(老年人)'
+        }
+        if (age<=23){
+          age=age+'岁(在校生)'
+        }
+        this.dataList[i].age=age;
+      }
       if (result[i].sysBusinessHall!==null &&result[i].sysBusinessHall!=='' ){
         for (var item of this.sysCompany) {
           if (item.id === this.model.company) {
@@ -2462,20 +2524,20 @@ export default {
           var age = currentYear - parseInt(year);
           if (age>=60){
             age=age+'(老年人)'
-            map.name ='客户年龄: '  ;
+            map.name ='【入网提示卡】客户年龄: '  ;
             map.text = age ;
             that.dataRisk.push(map)
           }
           if (age<=23){
             age=age+'(可能是在校生)'
-            map.name ='客户年龄: '  ;
+            map.name ='【入网提示卡】客户年龄: '  ;
             map.text = age ;
             that.dataRisk.push(map)
           }
         }
         //身份证是否到期
         if (key==='cardStartTimeAndEnd'){
-          if (dataLists[0]['cardStartTimeAndEnd']===''){
+          if (dataLists[0]['cardStartTimeAndEnd']===''){
             map.name ='【入网提示卡】 身份证号码:【'+dataLists[0]['cardNo']+'】 是否在有效期' ;
             map.text = dataLists[0]['cardStartTimeAndEnd'];
             that.dataRisk.push(map)
@@ -2484,7 +2546,7 @@ export default {
         //拨测结果
         if (key==='calltestResults'){
           if ( dataLists[0][key]!=='可接通认可办理'){
-            map.name ='【入网提示卡】 电话号码'+dataLists[0]['phone'] +' - 拨测结果';
+            map.name ='【入网提示卡】 电话号码'+dataLists[0]['phone'] +' - 拨测结果';
             map.text = dataLists[0][key];
             that.dataRisk.push(map)
           }
@@ -2564,7 +2626,10 @@ export default {
           }
         }
       });
-
+      if (that.dataRisk.length>1) {
+        //是否有风险
+        that.riskShow=false;//有风险
+      }
 
     },
     /**下一步骤*/
@@ -2576,8 +2641,8 @@ export default {
           }
         }
       if (this.current === 1) {
-        var info =this.showCheck1('all');
-        if (info===false){
+        var info = this.showCheck1('all');
+        if (info === false) {
           return
         }
 
@@ -2619,53 +2684,56 @@ export default {
           }
         }
         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.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.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;

+ 43 - 11
src/views/networkAccess/userStatistics.vue

@@ -35,6 +35,11 @@
                 <j-input placeholder="请输入身份证号码" v-model="queryParam.cardNo"></j-input>
               </a-form-item>
             </a-col>
+            <a-col :xl="6" :lg="7" :md="8" :sm="24">
+              <a-form-item label="营业厅地址">
+                <j-input placeholder="请输入营业厅地址" v-model="queryParam.cardNo"></j-input>
+              </a-form-item>
+            </a-col>
             <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
               <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
@@ -151,6 +156,9 @@
           <template v-slot:numberResults="text, record">
             <a-badge :status="text | statusTypeFilter" :text="text | statusFilter"/>
           </template>
+          <template v-slot:newPhone="text, record">
+            <div>{{newPhone(text)}}</div>
+          </template>
           <template v-slot:rowIndex="text,records,index">
             {{ (ipagination.current - 1) * ipagination.pageSize + Number(index) + 1 }}
           </template>
@@ -176,6 +184,8 @@ export default {
   inject: ['closeCurrent'],
   data() {
     return {
+      company:'',
+      sysCompany: [],
       ipagination:{
         current: 1,
         pageSize: 10,
@@ -239,12 +249,6 @@ export default {
           sorter: true,
           dataIndex: 'cardName',
           scopedSlots: {customRender: 'cardName'}
-        }, {
-          title: '办理电话',
-          align: "center",
-          sorter: true,
-          dataIndex: 'newPhone',
-          scopedSlots: {customRender: 'newPhone'}
         }, {
           title: '创建人',
           align: "center",
@@ -373,6 +377,13 @@ export default {
           //   sorter: true,
           //   dataIndex: 'updateTime'
           // },
+        }, {
+          title: '办理电话',
+          align: "center",
+          sorter: true,
+          width: 200,
+          dataIndex: 'newPhone',
+          scopedSlots: {customRender: 'newPhone'}
         },
         {
           title: '研判结果',
@@ -429,7 +440,28 @@ export default {
     this.typeCount();
   },
   methods: {
-
+    newPhone(newPhones){
+      var phone='';
+      newPhones = newPhones.split(',');
+      for (var item of  newPhones) {
+        if (item.match(RegExp('newPhone1+')) && item.replace('newPhone1+','')!==''){
+          phone=item.replace('newPhone1+','')
+        }
+        if (item.match(RegExp('newPhone2+'))&& item.replace('newPhone2+','')!==''){
+          phone+=item.replace('newPhone2+',' ')
+        }
+        if (item.match(RegExp('newPhone3+'))&& item.replace('newPhone3+','')!==''){
+          phone+=item.replace('newPhone3+',' ')
+        }
+        if (item.match(RegExp('newPhone4+'))&& item.replace('newPhone4+','')!==''){
+          phone+=item.replace('newPhone4+',' ')
+        }
+        if (item.match(RegExp('newPhone5+'))&& item.replace('newPhone5+','')!==''){
+          phone+=item.replace('newPhone5+',' ')
+        }
+      }
+      return phone
+    },
 
     showByCreateBy(record){
 
@@ -554,10 +586,10 @@ export default {
     },
     /**修改*/
     showImproveAndUpload(record) {
-      // if (!record.createTime.match(RegExp(this.getDate()))){
-      //   this.$message.warning('此输入非天创建 禁止修改', 3);
-      //   return
-      // }
+        // if (!record.createTime.match(RegExp(this.getDate()))){
+        //   this.$message.warning('此输入非天创建 禁止修改', 3);
+        //   return
+        // }
       this.$router.push({path: '/networkAccess/registration', query: {id: record.id,cardNo: record.cardNo}});
     },
     showImproveAndUploadAdmin(record) {

+ 14 - 11
src/views/system/SysUserOnlineList.vue

@@ -97,17 +97,20 @@
             title:'用户姓名',
             align:"center",
             dataIndex: 'realname'
-          },{
-            title: '头像',
-            align: "center",
-            width: 120,
-            dataIndex: 'avatar',
-            scopedSlots: {customRender: "avatarslot"}
-          },{
-            title:'生日',
-            align:"center",
-            dataIndex: 'birthday'
-          },{
+          },
+          // {
+          //   title: '头像',
+          //   align: "center",
+          //   width: 120,
+          //   dataIndex: 'avatar',
+          //   scopedSlots: {customRender: "avatarslot"}
+          // },
+          // {
+          //   title:'生日',
+          //   align:"center",
+          //   dataIndex: 'birthday'
+          // },
+          {
             title: '性别',
             align: "center",
             dataIndex: 'sex',