sunyize 2 yıl önce
ebeveyn
işleme
206ec24c4a

+ 1 - 1
src/views/networkAccess/PopupSubTable.vue

@@ -380,7 +380,7 @@ export default {
 
       //关闭当前页
       this.closeCurrent();
-      this.$router.replace({ path: '/networkAccess/registration', query:{id:record.id}});
+      this.$router.replace({ path: '/networkAccess/registration', query:{cardNo:record.cardNo}});
     },
 
 

+ 56 - 20
src/views/networkAccess/registration.vue

@@ -28,14 +28,14 @@
                 <a-form-model-item required label="身份证件号码" prop="cardNo"  :labelCol="{ span:8 }"   :wrapperCol="{ span: 14 }"    >
 
 <!--                  <a-radio-group v-model="model.cardNo" button-style="solid"    slot-scope="text, record">-->
-                    <a-input v-model="model.cardNo" placeholder="请输入身份证件号码" @keyup="keyupInfo()" id="cardNo"  @blur="showCheck0('cardNo')"></a-input>
+                    <a-input v-model="model.cardNo" placeholder="请输入身份证件号码" @keyup="keyupInfo('')" id="cardNo"  @blur="showCheck0('cardNo')"></a-input>
 <!--                  </a-radio-group>--><a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
                 </a-form-model-item>
 
               </a-col>
 
               <a-col :span="6">
-                <a-form-model-item label="身份证姓名" :labelCol="{ span:8 }"   :wrapperCol="{ span: 14 }"   >
+                <a-form-model-item label="身份证姓名"   prop="industry" :labelCol="{ span:8 }"   :wrapperCol="{ span: 14 }"   >
 <!--                  <a-radio-group v-model="model.cardName" button-style="solid" prop="cardNo">-->
                     <a-input v-model="model.cardName" placeholder="身份证姓名"  id="cardName"  @blur="showCheck0('cardName')"></a-input>
 <!--                  </a-radio-group>-->
@@ -384,9 +384,9 @@
 
                 <a-col :span="14">
 
-                  <a-form-model-item label="新办手机号码"  :labelCol="{ span:7 }"   :wrapperCol="{ span: 8 }"  prop="modelPhone">
+                  <a-form-model-item label="新办手机号码"  :labelCol="{ span:7 }"   :wrapperCol="{ span: 8 }"  prop="industry" >
 <!--                    <a-radio-group v-model="model.newPhone" button-style="solid">-->
-                      <a-input v-model="model.newPhone" placeholder="新办手机号码"></a-input>
+                      <a-input v-model="model.newPhone" placeholder="新办手机号码" @blur="check3('newPhone')" id="newPhone"></a-input>
 <!--                    </a-radio-group>-->
                   </a-form-model-item>
                 </a-col>
@@ -394,12 +394,12 @@
               </a-list-item>
               <a-list-item>
                 <a-col :span="16">
-                  <a-form-model-item label="是否将高危号码上报蓝、紫名单或不可复开关停"  v-bind="labelCol1ProMaxPlus" prop="modelPhone">
+                  <a-form-model-item  id="numberResults" label=" 是否将高危号码上报蓝、紫名单或不可复开关停"  v-bind="labelCol1ProMaxPlus" prop="industry">
                     <a-checkbox-group v-model="model.numberResults" style="width: 100%">
                       <a-row>
                         <template v-for="(des) in this.optionsWithDisabled">
                           <a-col :span="8">
-                            <a-checkbox :value="des.value">{{ des.text }}</a-checkbox>
+                            <a-checkbox :value="des.value"  @change="check3('numberResults')">{{ des.text }}</a-checkbox>
                           </a-col>
                         </template>
                       </a-row>
@@ -996,13 +996,13 @@ export default {
   },
   created() {
     this.model.id = this.$route.query.id;
-
+    this.model.cardNo = this.$route.query.cardNo;
   },
   mounted() {
-    this.queryById();
+    this.getSysCompany();
     //DOM初始化完成进行地图初始化
     this.initMap();
-    this.getSysCompany();
+    this.queryById();
 
   },
 
@@ -1497,14 +1497,15 @@ export default {
       }
 
     },
-    keyupInfo() {
+    keyupInfo(info) {
 
 
       //身份证输入查询
       if (this.model.cardNo.length === 15 || this.model.cardNo.length === 18) {
         let that = this;
         let data = {
-          "cardNo": this.model.cardNo
+          "cardNo": this.model.cardNo,
+          "id": this.model.id
         }
         //this.getPhoneTypeSize();
         getAction(that.url.queryByCardNo, data).then((res) => {
@@ -1515,9 +1516,9 @@ export default {
               for (var i in result) {
                 Object.keys(view).forEach(function (key) {
                   if (key==='company'){
-                    that.change(result[i][key]);
+                    that.change(result[0][key]);
                   }
-                  view[key] = result[i][key];
+                  view[key] = result[0][key];
                 })
 
                 for (var item of this.sysCompany) {
@@ -1544,8 +1545,12 @@ export default {
                 if (this.model.currentAddress!=='' && this.model.currentAddress!==null){
                   this.searchKeyWordsysBusinessHall(this.model.currentAddress,'currentAddress');
                 }
-
+                if (info===''){
+                  this.model.id=null;
+                }
               }
+
+
               if (result[i]["isSizeNumberResults"] === 'is') {
                 this.$confirm({
                   title: "确认是否继续...",
@@ -1565,7 +1570,7 @@ export default {
             // this.$refs.modalDetail.title = "详情";
           }
         })
-        this.model.id=null;
+
       }
 
 
@@ -1575,6 +1580,7 @@ export default {
 
     /**获取详情*/
     queryById() {
+      this.getSysCompany();
       let that = this;
       let data = {
         "id": that.model.id
@@ -1588,7 +1594,11 @@ export default {
             }
           }
         }
+        this.keyupInfo('update');
+        this.change(this.model.company)
       })
+
+
     },
 
 
@@ -1874,10 +1884,10 @@ export default {
 
 
     getData() {
-      var arr = '';
-      if (this.model.numberResults !== "undefined") {
-        arr = this.model.numberResults.split(",");
-      }
+      // var arr = '';
+      // if (this.model.numberResults !== "undefined" ||this.model.numberResults !==''|| this.model.numberResults !==null || this.model.numberResults.length!==0 ) {
+      //   arr = this.model.numberResults.split(",");
+      // }
       let data = {
         "sysBusinessHall": this.model.sysBusinessHall,
         "company": this.model.company,
@@ -1942,7 +1952,7 @@ export default {
         "isInvolvingFraudNote": this.model.isInvolvingFraudNote,
 
         //是否将高危号码上报蓝、紫名单或不可复开关停
-        "numberResults": arr,
+        "numberResults": this.model.numberResults ,
 
         "cardNo": this.model.cardNo,
         "cardName": this.model.cardName,
@@ -1978,6 +1988,7 @@ export default {
           }
         })
       } else {
+        data['newBusinessAddress']=this.model.businessAddress;
         postAction("/businessReminderCard/editById", data).then((res) => {
           if (res.success) {
             this.clearModel()
@@ -2005,8 +2016,33 @@ export default {
     },
 
 
+    check3(data){
+      var info = true;
+      if (data==='all' || data==='newPhone'){
+        if (this.model.newPhone==='' || this.model.newPhone===null){
+          document.getElementById('newPhone').style.borderColor = "red";
+          info=false;
+        }else {
+          document.getElementById('newPhone').style.borderColor = "#d9d9d9";
+        }
+      }
+      // if (data==='all' || data==='numberResults'){
+      //   if (this.model.numberResults==='' || this.model.numberResults===null){
+      //     document.getElementById('numberResults').style.color  = "red";
+      //     info=false;
+      //   }else {
+      //     document.getElementById('numberResults').style.color  = "black";
+      //   }
+      //}
+    },
+
     /**新增*/
     submitBusiness() {
+      var info = true;
+      info=this.check3('all');
+      if (info===false){
+        return
+      }
       let that = this;
       that.addIng == false
       let data = this.getData();

+ 1 - 1
src/views/networkAccess/userStatistics.vue

@@ -261,7 +261,7 @@ export default {
           title: '更新人营业厅',
           align: "center",
           sorter: true,
-          dataIndex: 'businessAddress'
+          dataIndex: 'newBusinessAddress'
           // },
           // {
           //   title: '拨测联系电话',