sunyize 2 년 전
부모
커밋
26ea496790
1개의 변경된 파일105개의 추가작업 그리고 44개의 파일을 삭제
  1. 105 44
      src/views/networkAccess/registration.vue

+ 105 - 44
src/views/networkAccess/registration.vue

@@ -49,9 +49,9 @@
 
               <a-col :span="12"  >
                 <a-form-item label="身份证证件有效期"  v-bind="labelCol2">
-                  <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" class="query-group-cust" v-model="model.cardStartTime"></j-date>
+                  <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust" v-model="model.cardStartTime"></j-date>
                   <span class="query-group-split-cust"></span>
-                  <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" class="query-group-cust" v-model="model.cardEndTime"></j-date>
+                  <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择结束时间" class="query-group-cust" v-model="model.cardEndTime"></j-date>
                 </a-form-item>
               </a-col>
 
@@ -346,7 +346,7 @@
     </a-card>
 
 
-    <a-card style="margin-bottom:10px" v-if="current==2">
+    <a-card style="margin-bottom:10px" v-if="current==2 && !this.showInfo"  >
       <div>
         <a-form-model
           ref="form"
@@ -365,7 +365,8 @@
                   <a-radio value="3">已报关停</a-radio>
                 </a-radio-group>
 
-
+                <a-checkbox-group v-model:value="model.numberResults" name="checkboxgroup" :options="plainOptions" />
+                <br />
 <!--                <a-checkbox-group v-model="model.numberResults" name="checkboxgroup" :options="plainOptions" />-->
 <!--                <br />-->
               </a-form-model-item>
@@ -377,6 +378,27 @@
     </a-card>
 
 
+    <a-card style="margin-bottom:10px" v-if="current==2 && this.showInfo " >
+      <div>
+        <a-form-model
+          ref="form"
+          :label-col="labelCol"
+          :wrapper-col="wrapperCol"
+          :model="model"
+          :rules="rules"
+        >
+          <div id ="showInfo">
+
+            <a-col :span="12">
+              <div v-for="value in newDatas">
+                {{value}}
+              </div>
+            </a-col>
+          </div>
+        </a-form-model>
+
+      </div>
+    </a-card>
 
     <!--附加信息-->
     <a-card style="margin-bottom:10px" v-if="current==0">
@@ -395,9 +417,9 @@
             <a-row>
 
 
-              <a-col :span="15">
+              <a-col :span="12">
                 <a-row>
-                  <a-col :span="8">
+                  <a-col >
                     <a-form-model-item label="工作地址" prop="userOpenState" v-bind="labelCol2">
                       <a-radio-group v-model="model.wordAddress" button-style="solid">
                         <a-input v-model="model.wordAddress" placeholder="请输入工作地址" @keyup="searchKeyWord('model.wordAddress')"  ></a-input>
@@ -411,7 +433,7 @@
                   </a-col>
                 </a-row>
                 <a-row>
-                  <a-col :span="8">
+                  <a-col >
                     <a-form-model-item label="营业厅地址" prop="userOpenState" v-bind="labelCol2">
                       <a-radio-group v-model="model.businessAddress" button-style="solid">
                         <!--                    <a-input v-model="model.businessAddress" disabled="" placeholder="请输入营业厅地址" ></a-input>-->
@@ -440,8 +462,8 @@
 <!--                </a-row>-->
 
                   <a-row>
-                  <a-col :span="8">
-                    <a-form-model-item label="现住地址(到村/小区)" prop="userOpenState" v-bind="addressCol">
+                  <a-col >
+                    <a-form-model-item label="现住地址(到村/小区)" prop="userOpenState" v-bind="labelCol2">
                       <a-radio-group v-model="model.currentAddress" button-style="solid">
 
 
@@ -458,11 +480,13 @@
                 </a-row>
 
                 <a-row>
-                  <a-col :span="8">
+                  <a-col  >
                     <a-form-model-item label="" prop="userOpenState" v-bind="labelCol1Results">
                       <a-radio-group v-model="model.judgmentResearch" button-style="solid">
                         <a-radio value="1" style="color: red" >智能判研-异常</a-radio>
+                        <a-radio value="3" style="color: red">人工判研-异常</a-radio>
                         <a-radio value="2" >人工判研-正常</a-radio>
+                        <a-radio value="4" >智能判研-正常</a-radio>
                       </a-radio-group>
                     </a-form-model-item>
                   </a-col>
@@ -471,7 +495,7 @@
 
               <a-col :span="9">
                 <div>
-                  <div id="container" :style="{width:  '400px', height: '400px'}"></div>
+                  <div id="container" :style="{width:  '600px', height: '300px'}"></div>
                 </div>
               </a-col>
             </a-row>
@@ -486,18 +510,27 @@
 
     <a-card style="position: relative;bottom: 0;width: 100%">
       <div style="text-align: center">
-        <a-button v-if="current < steps.length - 1" type="primary" @click="nextSteps">下一步</a-button>
+        <a-button v-if="current < steps.length - 1 &&  !this.showInfo" type="primary" @click="nextSteps">下一步</a-button>
         <a-button
-          v-if="current == steps.length - 1"
+          v-if="current == steps.length - 1 &&  !this.showInfo"
           @click="submitBusiness"
           type="primary"
         >
           提交
         </a-button>
-        <a-button v-if="current > 0" style="margin-left: 8px" @click="prevSteps">上一步</a-button>
+        <a-button v-if="current > 0 &&  !this.showInfo" style="margin-left: 8px" @click="prevSteps">上一步</a-button>
+
+
+
+        <a-button @click="continueOperation"   type="primary" v-if="current==2 &&  this.showInfo ">
+          继续操作
+        </a-button>
+        <a-button v-if="current==2 &&  this.showInfo " style="margin-left: 8px" @click="terminatingOperation">终止操作</a-button>
       </div>
     </a-card>
 
+
+
   </div>
 </template>
 
@@ -713,6 +746,8 @@ export default {
       distance1:'',
       distance2:'',
       distance3:'',
+      showInfo:false,
+      newDatas : [],
       //表单信息
       model: {
         industry:'',
@@ -912,7 +947,6 @@ export default {
         Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
       s = s * 6378.137;
       s = Math.round(s * 10000) / 10000;
-      this.distance =s;
       return s  // 单位千米
     },
 
@@ -944,10 +978,20 @@ export default {
     },
     //选择搜索的内容
     markerResult(data,nameType){
+      if (nameType==='wordAddress'){
+        this.model.wordAddress =data.name ;
+      }
+      if (nameType==='businessAddress'){
+        this.model.businessAddress =data.name ;
+      }
+      if (nameType==='currentAddress'){
+        this.model.currentAddress =data.name ;
+      }
       this.lnglatMaps ;
       console.log(data)
       this.showsearchResult = false;
       this.showsearchResultBusinessAddress = false;
+      this.showsearchcurrentAddress = false;
       //this.model.wordAddress = data.name; //地点名称
       var marker = new AMap.Marker({
         position: [Number(data.location.lng),Number(data.location.lat)],//地点名称 坐标
@@ -1222,10 +1266,10 @@ export default {
           newDatas.push(h('p', null, '<身份证件姓名> 不可为空...  '))
 
         }
-        if (this.model.idCardAddress==='' || this.model.idCardAddress===null){
-          newDatas.push(h('p', null, '<身份证件地址> 不可为空...... '))
-          message=message+ '<身份证件地址> 不可为空... '+<br/>
-        }
+        // if (this.model.idCardAddress==='' || this.model.idCardAddress===null){
+        //   newDatas.push(h('p', null, '<身份证件地址> 不可为空...... '))
+        //   message=message+ '<身份证件地址> 不可为空... '+<br/>
+        // }
         if (this.model.cardStartTime===''|| this.model.cardStartTime===null){
           newDatas.push(h('p', null, '<身份证件开始时间> 不可为空... '))
         }
@@ -1244,9 +1288,9 @@ export default {
         if (this.model.phonePurpose==='' || this.model.phonePurpose===null){
           newDatas.push(h('p', null, '<号码使用用途> 不可为空... '))
         }
-        if (this.model.idCardAddress==='' ||this.model.idCardAddress=== null){
-          newDatas.push(h('p', null, '<证件地址(到村/小区)> 不可为空... '))
-        }
+        // if (this.model.idCardAddress==='' ||this.model.idCardAddress=== null){
+        //   newDatas.push(h('p', null, '<证件地址(到村/小区)> 不可为空... '))
+        // }
         if (this.model.currentAddress==='' || this.model.currentAddress===null){
           newDatas.push(h('p', null, '<现住地址(到村/小区)> 不可为空... '))
         }
@@ -1259,9 +1303,9 @@ export default {
         if (this.model.calltestResults===''   ||this.model.calltestResults===null){
           newDatas.push(h('p', null,  '<拨测结果> 不可为空... '))
         }
-        if (this.model.positionInformation===''   ||  this.model.positionInformation===null){
-          newDatas.push(h('p', null,  '<位置信息> 不可为空... '))
-        }
+        // if (this.model.positionInformation===''   ||  this.model.positionInformation===null){
+        //   newDatas.push(h('p', null,  '<位置信息> 不可为空... '))
+        // }
         if (this.model.wordAddress===''||  this.model.wordAddress===null){
           newDatas.push(h('p', null, '<工作地址> 不可为空... '))
         }
@@ -1292,39 +1336,43 @@ export default {
         let i=1 ;
         let dataMessage ='';
         const h = this.$createElement
-        const newDatas = [];
+        this.newDatas=[];
 
         if(  data["calltestResults"] ==='2'){
-          newDatas.push(h('p', null, i++ +'、该用户拨测号码未接通 请确认是否继续操作 。 '))
+          this.newDatas.push( i++ +'、该用户拨测号码未接通 请确认是否继续操作 。 ' )
 
         } if(  data["calltestResults"] ==='1'){
-          newDatas.push(h('p', null, i++ +'、该用户拨测号码关机 请确认是否继续操作 。 '))
+          this.newDatas.push(  i++ +'、该用户拨测号码关机 请确认是否继续操作 。 ')
 
         }if(this.isSizeNumberResults==='is'  ){
-          newDatas.push(h('p', null, i++ +' 、该用户有多个不友好研判结果 请确认是否继续操作 。 '))
+          this.newDatas.push( i++ +' 、该用户有多个不友好研判结果 请确认是否继续操作 。 ' )
 
         }if(parseFloat(this.distance1)>parseFloat(this.distance) ){
-          newDatas.push(h('p', null, i++ +' 、该用户现住地址(到村/小区),营业厅地址 距离过远 请确认是否继续操作 。 '))
+          this.newDatas.push( i++ +' 、该用户现住地址(到村/小区),营业厅地址 距离过远 请确认是否继续操作 。 ')
         }if( parseFloat(this.distance2)>parseFloat(this.distance) ){
-          newDatas.push(h('p', null, i++ +' 、该用户 工作地址 , 营业厅地址 距离过远 请确认是否继续操作 。 '))
+          this.newDatas.push(  i++ +' 、该用户 工作地址 , 营业厅地址 距离过远 请确认是否继续操作 。 ')
         }if(parseFloat(this.distance3)>parseFloat(this.distance) ){
-          newDatas.push(h('p', null, i++ +' 、该用户现住地址(到村/小区),工作地址距离过远 请确认是否继续操作 。 '))
+          this.newDatas.push(  i++ +' 、该用户现住地址(到村/小区),工作地址距离过远 请确认是否继续操作 。 ')
         }
 
-        if (newDatas.length===0){
+        if (this.newDatas.length===0){
           //newDatas.push(h('p', null, i++ +'、 暂无风险提示 请继续操作。 '))
         }else{
-          this.$confirm({
-            title: "确认是否继续",
-            content: h('div', null, newDatas),
-            onOk: function () {
-
-            } ,
-            onCancel:function (){
-              data['status']="0";//中断提交
-              that.submit(data,id)
-            }
-          });
+          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) {
@@ -1448,6 +1496,19 @@ export default {
         })
       }
     },
+    //继续操作
+    continueOperation(){
+      this.showInfo=false;
+    },
+    //终止操作
+    terminatingOperation(){
+      let data=this.getData();
+      data['status']="0";//中断提交
+      this.showInfo=false;
+      this.submit(data,this.model.id)
+    },
+
+
 
     /**新增*/
     submitBusiness() {