Kaynağa Gözat

Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev

hanchaobo 2 yıl önce
ebeveyn
işleme
e00f712efb

+ 16
- 0
src/api/deliveryRecord/deliveryRecord.js Dosyayı Görüntüle

42
         data: data,
42
         data: data,
43
     })
43
     })
44
 }
44
 }
45
+// 重新发送邮件
46
+export function reSendMailRecord(data) {
47
+    return request({
48
+        url: 'sendMailRecord/reSendMailRecord',
49
+        method: 'post',
50
+        data: data,
51
+    })
52
+}
53
+// 更新邮件发送记录
54
+export function update(data) {
55
+    return request({
56
+        url: 'sendMailRecord/update',
57
+        method: 'post',
58
+        data: data,
59
+    })
60
+}

+ 8
- 0
src/api/login.js Dosyayı Görüntüle

65
 		params:data
65
 		params:data
66
 	})
66
 	})
67
 }
67
 }
68
+// 获取邮箱验证码
69
+export function sendEmailCode(data) {
70
+	return request({
71
+		url: '/weChatUser/sendEmailCode',
72
+		method: 'get',
73
+		params:data
74
+	})
75
+}
68
 // 注册方法
76
 // 注册方法
69
 export function wxregister(data) {
77
 export function wxregister(data) {
70
 	return request({
78
 	return request({

+ 160
- 51
src/views/caseManagement/components/addCase.vue Dosyayı Görüntüle

126
             </el-col>
126
             </el-col>
127
             <el-col :span="24">
127
             <el-col :span="24">
128
               <el-form-item label="选择机构或自然人">
128
               <el-form-item label="选择机构或自然人">
129
-                  <el-radio-group v-model="item.applicant.organizeFlag" :disabled="modelFlag" @change="clearValidate">
129
+                <el-radio-group v-model="item.applicant.organizeFlag" :disabled="modelFlag" @change="clearValidate">
130
                   <el-radio :label="0">自然人</el-radio>
130
                   <el-radio :label="0">自然人</el-radio>
131
                   <el-radio :label="1">机构</el-radio>
131
                   <el-radio :label="1">机构</el-radio>
132
                 </el-radio-group>
132
                 </el-radio-group>
222
         trigger: 'blur',
222
         trigger: 'blur',
223
       },
223
       },
224
     ]">
224
     ]">
225
-                <el-input v-model="item.applicant.idCard" placeholder="请输入申请人的证件号码" />
225
+                <el-input v-model="item.applicant.idCard" @blur="handleBlurApplicant(index)"
226
+                  placeholder="请输入申请人的证件号码" />
227
+              </el-form-item>
228
+            </el-col>
229
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
230
+              <el-form-item label-width="140px" label="申请人出生年月:"
231
+                :prop="'affiliate.applicant.' + index + '.applicant.birth'">
232
+                <el-date-picker disabled v-model="item.applicant.birth" type="date" placeholder="被申请人出生年月日">
233
+                </el-date-picker>
234
+              </el-form-item>
235
+            </el-col>
236
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
237
+              <el-form-item label="被申请人性别:" :prop="'affiliate.applicant.' + index + '.applicant.sex'" :rules="[
238
+      {
239
+        required: true,
240
+        message: '请选择性别',
241
+      },
242
+    ]">
243
+                <el-radio-group v-model="item.applicant.sex" disabled>
244
+                  <el-radio :label="'0'">男</el-radio>
245
+                  <el-radio :label="'1'">女</el-radio>
246
+                </el-radio-group>
226
               </el-form-item>
247
               </el-form-item>
227
             </el-col>
248
             </el-col>
228
             <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
249
             <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
393
             </el-col>
414
             </el-col>
394
             <el-col :span="24">
415
             <el-col :span="24">
395
               <el-form-item label="选择机构或自然人">
416
               <el-form-item label="选择机构或自然人">
396
-                  <el-radio-group v-model="item.res.organizeFlag" :disabled="modelFlag" @change="clearValidateRes">
417
+                <el-radio-group v-model="item.res.organizeFlag" :disabled="modelFlag" @change="clearValidateRes">
397
                   <el-radio :label="0">自然人</el-radio>
418
                   <el-radio :label="0">自然人</el-radio>
398
                   <el-radio :label="1">机构</el-radio>
419
                   <el-radio :label="1">机构</el-radio>
399
                 </el-radio-group>
420
                 </el-radio-group>
430
                 </el-select>
451
                 </el-select>
431
               </el-form-item>
452
               </el-form-item>
432
             </el-col>
453
             </el-col>
454
+            <el-col :span="12">
455
+              <el-form-item :prop="'affiliate.res.' + index + '.res.nationality'" label="国籍" :rules="[
456
+      {
457
+        required: true,
458
+        message: '国籍不能为空',
459
+        trigger: 'blur',
460
+      },
461
+    ]">
462
+                <el-select v-model="item.res.nationality" placeholder="请选择国籍" auto-complete="off" style="width: 100%;">
463
+                  <el-option v-for="item in nationalityList" :key="item.id" :label="item.value" :value="item.id">
464
+
465
+                  </el-option>
466
+                </el-select>
467
+              </el-form-item>
468
+            </el-col>
469
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
470
+              <el-form-item :prop="'affiliate.res.' + index + '.res.idType'" label="证件类型" :rules="[
471
+      {
472
+        required: true,
473
+        message: '证件类型不能为空',
474
+        trigger: 'blur',
475
+      },
476
+    ]">
477
+                <el-select v-model="item.res.idType" placeholder="证件类型" auto-complete="off" style="width: 100%;">
478
+                  <el-option v-for="item in idTypeList" :key="Number(item.dictValue)" :label="item.dictLabel"
479
+                    :value="Number(item.dictValue)">
480
+
481
+                  </el-option>
482
+                </el-select>
483
+              </el-form-item>
484
+            </el-col>
433
             <el-col :span="12" v-if="item.res.organizeFlag == 0">
485
             <el-col :span="12" v-if="item.res.organizeFlag == 0">
434
               <el-form-item label-width="140px" label="被申请人联系电话" :prop="'affiliate.res.' + index + '.res.phone'" :rules="[
486
               <el-form-item label-width="140px" label="被申请人联系电话" :prop="'affiliate.res.' + index + '.res.phone'" :rules="[
435
       {
487
       {
457
                 <el-input v-model="item.res.home" placeholder="请输入被申请人住所" />
509
                 <el-input v-model="item.res.home" placeholder="请输入被申请人住所" />
458
               </el-form-item>
510
               </el-form-item>
459
             </el-col>
511
             </el-col>
512
+            <el-col :span="12">
513
+              <el-form-item label="被申请联系地址" :prop="'affiliate.res.' + index + '.res.address'" :rules="[
514
+      {
515
+        required: true,
516
+        message: '申请人联系地址不能为空',
517
+        trigger: 'blur',
518
+      },
519
+    ]">
520
+                <el-input v-model="item.res.address" placeholder="请输入被申请人联系地址" />
521
+              </el-form-item>
522
+            </el-col>
460
             <el-col :span="12" v-if="item.res.organizeFlag == 0">
523
             <el-col :span="12" v-if="item.res.organizeFlag == 0">
461
               <el-form-item label="被申请人邮箱" :prop="'affiliate.res.' + index + '.res.email'" :rules="[
524
               <el-form-item label="被申请人邮箱" :prop="'affiliate.res.' + index + '.res.email'" :rules="[
462
       {
525
       {
503
                 <el-input v-model="item.res.code" placeholder="请输入统一社会信用代码" />
566
                 <el-input v-model="item.res.code" placeholder="请输入统一社会信用代码" />
504
               </el-form-item>
567
               </el-form-item>
505
             </el-col>
568
             </el-col>
506
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
569
+            <el-col :span="12" v-if="item.res.organizeFlag == 1">
507
               <el-form-item label="法定代表人" :prop="'affiliate.res.' + index + '.res.compLegalPerson'" :rules="[
570
               <el-form-item label="法定代表人" :prop="'affiliate.res.' + index + '.res.compLegalPerson'" :rules="[
508
       {
571
       {
509
         required: true,
572
         required: true,
717
                 birth: "",
780
                 birth: "",
718
                 sex: "1",
781
                 sex: "1",
719
                 operatorFlag: 1,
782
                 operatorFlag: 1,
720
-                organizeFlag:0,
783
+                organizeFlag: 0,
721
               },
784
               },
722
               applicantAgent: {
785
               applicantAgent: {
723
                 roleType: 2,
786
                 roleType: 2,
734
                 birth: "",
797
                 birth: "",
735
                 sex: "1",
798
                 sex: "1",
736
                 operatorFlag: 1,
799
                 operatorFlag: 1,
737
-                organizeFlag:0,
800
+                organizeFlag: 0,
738
               },
801
               },
739
             },
802
             },
740
           ],
803
           ],
755
                 birth: "",
818
                 birth: "",
756
                 sex: "0",
819
                 sex: "0",
757
                 operatorFlag: 1,
820
                 operatorFlag: 1,
758
-                organizeFlag:0,
821
+                organizeFlag: 0,
759
               },
822
               },
760
               resAgent: {
823
               resAgent: {
761
                 roleType: 4,
824
                 roleType: 4,
772
                 birth: "",
835
                 birth: "",
773
                 sex: "",
836
                 sex: "",
774
                 operatorFlag: 1,
837
                 operatorFlag: 1,
775
-                organizeFlag:0,
838
+                organizeFlag: 0,
776
               }
839
               }
777
             }
840
             }
778
           ]
841
           ]
875
                     birth: "",
938
                     birth: "",
876
                     sex: "1",
939
                     sex: "1",
877
                     operatorFlag: 1,
940
                     operatorFlag: 1,
878
-                    organizeFlag:0,
941
+                    organizeFlag: 0,
879
                   },
942
                   },
880
                   applicantAgent: {
943
                   applicantAgent: {
881
                     roleType: 2,
944
                     roleType: 2,
892
                     birth: "",
955
                     birth: "",
893
                     sex: "1",
956
                     sex: "1",
894
                     operatorFlag: 1,
957
                     operatorFlag: 1,
895
-                    organizeFlag:0,
958
+                    organizeFlag: 0,
896
                   }
959
                   }
897
                 },
960
                 },
898
               ],
961
               ],
913
                     birth: "",
976
                     birth: "",
914
                     sex: "0",
977
                     sex: "0",
915
                     operatorFlag: 1,
978
                     operatorFlag: 1,
916
-                    organizeFlag:0,
979
+                    organizeFlag: 0,
917
                   },
980
                   },
918
                   resAgent: {
981
                   resAgent: {
919
                     roleType: 4,
982
                     roleType: 4,
930
                     birth: "",
993
                     birth: "",
931
                     sex: "",
994
                     sex: "",
932
                     operatorFlag: 1,
995
                     operatorFlag: 1,
933
-                    organizeFlag:0,
996
+                    organizeFlag: 0,
934
                   }
997
                   }
935
                 }
998
                 }
936
               ]
999
               ]
977
     getUserInfoFn() {
1040
     getUserInfoFn() {
978
       getUserInfo().then(res => {
1041
       getUserInfo().then(res => {
979
         this.getUserInfoList = res.data;
1042
         this.getUserInfoList = res.data;
1043
+        console.log(this.getUserInfoList.sex)
980
         this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
1044
         this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
981
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
1045
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
982
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
1046
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
983
         this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
1047
         this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
984
         this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
1048
         this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
985
         this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1049
         this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1050
+        this.$set(this.formData.affiliate.applicant[0].applicant, "sex", this.getUserInfoList.sex);
1051
+        this.$set(this.formData.affiliate.applicant[0].applicant, "birth", this.getUserInfoList.birth);
986
       })
1052
       })
987
     },
1053
     },
988
     /** 根据案件id获取对应信息 */
1054
     /** 根据案件id获取对应信息 */
1096
     },
1162
     },
1097
     successZip(res) {
1163
     successZip(res) {
1098
       this.formZipData = res.data;
1164
       this.formZipData = res.data;
1099
-      // this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 0);
1100
-      this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1101
-      this.$set(this.formData, 'facts', this.formZipData.facts);
1102
-      this.$set(this.formData.affiliate.applicant[0].applicant, 'home', this.formZipData.affiliate.applicant[0].applicant.home);
1103
-      this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this.formZipData.affiliate.applicant[0].applicant.address);
1104
-      this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'phone', this.formZipData.affiliate.applicant[0].applicantAgent.phone);
1105
-      this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'name', this.formZipData.affiliate.applicant[0].applicantAgent.name);
1106
-      this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'email', this.formZipData.affiliate.applicant[0].applicantAgent.email);
1107
-      // this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 0);
1165
+      if (this.formData.affiliate.applicant[0].applicant.organizeFlag == 0) {
1166
+        this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1167
+        this.$set(this.formData, 'facts', this.formZipData.facts);
1168
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'home', this.formZipData.affiliate.applicant[0].applicant.home);
1169
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this.formZipData.affiliate.applicant[0].applicant.address);
1170
+        this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'phone', this.formZipData.affiliate.applicant[0].applicantAgent.phone);
1171
+        this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'name', this.formZipData.affiliate.applicant[0].applicantAgent.name);
1172
+        this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'email', this.formZipData.affiliate.applicant[0].applicantAgent.email);
1173
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'sex', this.formZipData.affiliate.applicant[0].applicant.sex);
1174
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'birth', this.formZipData.affiliate.applicant[0].applicant.birth);
1175
+      } else if (this.formData.affiliate.applicant[0].applicant.organizeFlag == 1) {
1176
+        this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1177
+        this.$set(this.formData, 'facts', this.formZipData.facts);
1178
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData
1179
+          .affiliate.applicant[0]
1180
+          .applicant.name);
1181
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'code', this.formZipData
1182
+          .affiliate.applicant[0].applicant.code);
1183
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'home', this.formZipData
1184
+          .affiliate.applicant[0]
1185
+          .applicant.home);
1186
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this
1187
+          .formZipData.affiliate.applicant[0]
1188
+          .applicant.address);
1189
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'compLegalPerson', this
1190
+          .formZipData.affiliate.applicant[0]
1191
+          .applicant.compLegalPerson);
1192
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'email', this.formZipData
1193
+          .affiliate.applicant[0]
1194
+          .applicant.email);
1195
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', this.formZipData
1196
+          .affiliate.applicant[0]
1197
+          .applicant.phone);
1198
+      }
1108
       this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1199
       this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1109
       this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1200
       this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1110
       this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1201
       this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1140
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
1231
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
1141
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
1232
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
1142
         this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
1233
         this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
1234
+        this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
1235
+        this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1143
         if (this.formZipData.affiliate) {
1236
         if (this.formZipData.affiliate) {
1144
           this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 0);
1237
           this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 0);
1145
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1238
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1146
           this.$set(this.formData, 'facts', this.formZipData.facts);
1239
           this.$set(this.formData, 'facts', this.formZipData.facts);
1147
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData.affiliate.applicant[0].applicant.name);
1148
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this.formZipData.affiliate.applicant[0].applicant.address);
1149
-          this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'phone', this.formZipData.affiliate.applicant[0].applicantAgent.phone);
1150
-          this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'name', this.formZipData.affiliate.applicant[0].applicantAgent.name);
1151
-          this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'email', this.formZipData.affiliate.applicant[0].applicantAgent.email);
1152
-          // this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1153
-          // this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1154
-          // this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1155
-          // this.$set(this.formData.affiliate.res[0].res, 'sex', Number(this.formZipData.affiliate.res[0].res.sex));
1156
-          // this.$set(this.formData.affiliate.res[0].res, 'birth', this.formZipData.affiliate.res[0].res.birth);
1157
-          // this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
1158
-          // this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email);
1240
+          this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
1241
+          this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
1242
+          this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
1243
+          this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
1244
+          this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
1245
+          this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1246
+
1159
         } else {
1247
         } else {
1160
           this.formData.affiliate.applicant[0].applicantAgent.name = null;
1248
           this.formData.affiliate.applicant[0].applicantAgent.name = null;
1161
           this.formData.affiliate.applicant[0].applicantAgent.email = null;
1249
           this.formData.affiliate.applicant[0].applicantAgent.email = null;
1169
           this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 1);
1257
           this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 1);
1170
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1258
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1171
           this.$set(this.formData, 'facts', this.formZipData.facts);
1259
           this.$set(this.formData, 'facts', this.formZipData.facts);
1172
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData.affiliate.applicant[0].applicant.name);
1173
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'code', this.formZipData.affiliate.applicant[0].applicant.code);
1174
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'email', this.formZipData.affiliate.applicant[0].applicant.email);
1175
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', this.formZipData.affiliate.applicant[0].applicant.phone);
1176
-          // this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1177
-          // this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1178
-          // this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1179
-          // this.$set(this.formData.affiliate.res[0].res, 'sex', this.formZipData.affiliate.res[0].res.sex);
1180
-          // this.$set(this.formData.affiliate.res[0].res, 'birth', this.formZipData.affiliate.res[0].res.birth);
1181
-          // this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
1182
-          // this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email);
1260
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData
1261
+          .affiliate.applicant[0]
1262
+          .applicant.name);
1263
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'code', this.formZipData
1264
+          .affiliate.applicant[0].applicant.code);
1265
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'home', this.formZipData
1266
+          .affiliate.applicant[0]
1267
+          .applicant.home);
1268
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this
1269
+          .formZipData.affiliate.applicant[0]
1270
+          .applicant.address);
1271
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'compLegalPerson', this
1272
+          .formZipData.affiliate.applicant[0]
1273
+          .applicant.compLegalPerson);
1274
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'email', this.formZipData
1275
+          .affiliate.applicant[0]
1276
+          .applicant.email);
1277
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', this.formZipData
1278
+          .affiliate.applicant[0]
1279
+          .applicant.phone);
1183
         } else {
1280
         } else {
1184
           this.$set(this.formData.affiliate.applicant[0].applicant, 'name', null);
1281
           this.$set(this.formData.affiliate.applicant[0].applicant, 'name', null);
1185
           this.$set(this.formData.affiliate.applicant[0].applicant, 'idCard', null);
1282
           this.$set(this.formData.affiliate.applicant[0].applicant, 'idCard', null);
1189
       }
1286
       }
1190
       this.$refs["ruleForm"].clearValidate()
1287
       this.$refs["ruleForm"].clearValidate()
1191
     },
1288
     },
1192
-    clearValidateRes(val){
1193
-      if(val==0){
1289
+    clearValidateRes(val) {
1290
+      if (val == 0) {
1194
         if (this.formZipData.affiliate) {
1291
         if (this.formZipData.affiliate) {
1195
           this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 0);
1292
           this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 0);
1196
           this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1293
           this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1201
           this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
1298
           this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
1202
           this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email);
1299
           this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email);
1203
         }
1300
         }
1204
-      }else if(val == 1){
1301
+      } else if (val == 1) {
1205
         if (this.formZipData.affiliate) {
1302
         if (this.formZipData.affiliate) {
1206
           this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 1);
1303
           this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 1);
1207
           this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1304
           this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1233
         this.formData.affiliate.res[index].res.birth = res.respondentBirth;
1330
         this.formData.affiliate.res[index].res.birth = res.respondentBirth;
1234
       });
1331
       });
1235
     },
1332
     },
1333
+    // 申请人身份证
1334
+    handleBlurApplicant(index) {
1335
+      console.log(index)
1336
+      let idCards = {
1337
+        idCard: this.formData.affiliate.applicant[index].applicant.idCard,
1338
+      };
1339
+      getInfoByIdCard(idCards).then((res) => {
1340
+        this.formData.affiliate.applicant[index].applicant.sex = res.respondentSex;
1341
+        // console.log(res.respondentBirth);
1342
+        this.formData.affiliate.applicant[index].applicant.birth = res.respondentBirth;
1343
+      });
1344
+    },
1236
     /**删除新增信息某一项 */
1345
     /**删除新增信息某一项 */
1237
     deleteDetali(item) {
1346
     deleteDetali(item) {
1238
       var index = this.formData.affiliate.indexOf(item)
1347
       var index = this.formData.affiliate.indexOf(item)
1258
           birth: "",
1367
           birth: "",
1259
           sex: "1",
1368
           sex: "1",
1260
           operatorFlag: 1,
1369
           operatorFlag: 1,
1261
-          organizeFlag:0,
1370
+          organizeFlag: 0,
1262
         },
1371
         },
1263
         applicantAgent: {
1372
         applicantAgent: {
1264
           roleType: 2,
1373
           roleType: 2,
1275
           birth: "",
1384
           birth: "",
1276
           sex: "1",
1385
           sex: "1",
1277
           operatorFlag: 1,
1386
           operatorFlag: 1,
1278
-          organizeFlag:0,
1387
+          organizeFlag: 0,
1279
         },
1388
         },
1280
       },);
1389
       },);
1281
     },
1390
     },
1297
           birth: "",
1406
           birth: "",
1298
           sex: "1",
1407
           sex: "1",
1299
           operatorFlag: 1,
1408
           operatorFlag: 1,
1300
-          organizeFlag:0,
1409
+          organizeFlag: 0,
1301
         },
1410
         },
1302
         resAgent: {
1411
         resAgent: {
1303
           roleType: 4,
1412
           roleType: 4,
1314
           birth: "",
1423
           birth: "",
1315
           sex: "1",
1424
           sex: "1",
1316
           operatorFlag: 1,
1425
           operatorFlag: 1,
1317
-          organizeFlag:0,
1426
+          organizeFlag: 0,
1318
         },
1427
         },
1319
       },);
1428
       },);
1320
     },
1429
     },

+ 7
- 7
src/views/deliveryRecord/components/emailEdits.vue Dosyayı Görüntüle

16
 
16
 
17
 <script>
17
 <script>
18
 import {
18
 import {
19
-    updateSendContent,
19
+    updateSendContent,update
20
 } from "@/api/deliveryRecord/deliveryRecord.js";
20
 } from "@/api/deliveryRecord/deliveryRecord.js";
21
 export default {
21
 export default {
22
     props: ["emailVidable", "emailRow","queryParams"],
22
     props: ["emailVidable", "emailRow","queryParams"],
38
         },
38
         },
39
         submitSend() {
39
         submitSend() {
40
             console.log(this.emailRow.mailContent)
40
             console.log(this.emailRow.mailContent)
41
-            // this.updateSendContentFn({
42
-            //     id:this.rowData.id,
43
-            //     sendContent:this.sendData
44
-            // })
41
+            this.updateSendContentFn({
42
+                id:this.emailRow.id,
43
+                mailContent:this.sendData
44
+            })
45
         },
45
         },
46
         updateSendContentFn(data){
46
         updateSendContentFn(data){
47
-            updateSendContent(data).then(res=>{
47
+            update(data).then(res=>{
48
                 this.$message.success('更新成功');
48
                 this.$message.success('更新成功');
49
-                this.$emit("cancelSend");
49
+                this.$emit("cancelEmail");
50
                 this.$emit('getList',this.queryParams);
50
                 this.$emit('getList',this.queryParams);
51
             })
51
             })
52
         }
52
         }

+ 14
- 9
src/views/deliveryRecord/emailRecord.vue Dosyayı Görüntüle

30
             <el-table-column label="操作" align="center">
30
             <el-table-column label="操作" align="center">
31
                 <template  slot-scope="scope">
31
                 <template  slot-scope="scope">
32
                     <el-button size="mini" type="text" @click="emailEditing(scope.row)" icon="el-icon-s-promotion">邮箱编辑</el-button>
32
                     <el-button size="mini" type="text" @click="emailEditing(scope.row)" icon="el-icon-s-promotion">邮箱编辑</el-button>
33
-                    <el-button v-if="sendStatusMessage" size="mini" type="text" @click="resendCounts(scope.row)" icon="el-icon-s-promotion">重新发送</el-button>
33
+                    <el-button v-if="scope.row.sendStatus == '未发送'" size="mini" type="text" @click="resendCounts(scope.row)" icon="el-icon-s-promotion">重新发送</el-button>
34
                 </template>
34
                 </template>
35
             </el-table-column>
35
             </el-table-column>
36
         </el-table>
36
         </el-table>
43
   
43
   
44
 <script>
44
 <script>
45
 import {
45
 import {
46
-    emailList,
46
+    emailList,reSendMailRecord
47
 } from "@/api/deliveryRecord/deliveryRecord.js";
47
 } from "@/api/deliveryRecord/deliveryRecord.js";
48
 import emailEdits from "./components/emailEdits.vue";
48
 import emailEdits from "./components/emailEdits.vue";
49
 import { getDicts } from '@/api/system/dict/data.js'
49
 import { getDicts } from '@/api/system/dict/data.js'
96
                 this.dataList = response.rows;
96
                 this.dataList = response.rows;
97
                 this.dataList.forEach(item => {
97
                 this.dataList.forEach(item => {
98
                     if (item.sendStatus == 0) {
98
                     if (item.sendStatus == 0) {
99
-                        this.sendStatusMessage = true
100
                         item.sendStatus = "未发送"
99
                         item.sendStatus = "未发送"
101
                     } else if (item.sendStatus == 1) {
100
                     } else if (item.sendStatus == 1) {
102
-                        this.sendStatusMessage = false
103
                         item.sendStatus = "已发送"
101
                         item.sendStatus = "已发送"
104
 
102
 
105
-                    } else {
106
-                        item.sendStatus = "未发送"
107
-                        this.sendStatusMessage = true
108
                     }
103
                     }
109
                 })
104
                 })
110
                 this.total = response.total;
105
                 this.total = response.total;
122
             this.emailVidable = false
117
             this.emailVidable = false
123
         },
118
         },
124
         // 重新发送
119
         // 重新发送
125
-        resendCounts(){
126
-
120
+        resendCounts(row){
121
+           if(row.sendStatus=='未发送'){
122
+            row.sendStatus = 0
123
+           }else if(row.sendStatus=='已发送'){
124
+            row.sendStatus = 1
125
+           }
126
+            reSendMailRecord(row).then(res=>{
127
+                console.log(res)
128
+                this.$message.success('发送成功');
129
+                this.getList(this.queryParams);
130
+            })
131
+            
127
         }
132
         }
128
     },
133
     },
129
 };
134
 };

+ 12
- 17
src/views/deliveryRecord/smsRecord.vue Dosyayı Görüntüle

23
             <el-table-column label="发送时间" align="center" prop="sendTime" />
23
             <el-table-column label="发送时间" align="center" prop="sendTime" />
24
             <el-table-column label="发送状态" align="center" prop="sendStatus" />
24
             <el-table-column label="发送状态" align="center" prop="sendStatus" />
25
             <el-table-column label="发送内容" align="center" prop="sendContent" :show-overflow-tooltip="true"/>
25
             <el-table-column label="发送内容" align="center" prop="sendContent" :show-overflow-tooltip="true"/>
26
+            <el-table-column label="备注" align="center" prop="reason" :show-overflow-tooltip="true"/>
26
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
27
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
27
                 <template slot-scope="scope">
28
                 <template slot-scope="scope">
28
                     <el-button size="mini" @click="copyContent(scope.row.sendContent)" type="text"
29
                     <el-button size="mini" @click="copyContent(scope.row.sendContent)" type="text"
29
                         icon="el-icon-document-copy">复制内容</el-button>
30
                         icon="el-icon-document-copy">复制内容</el-button>
30
                     <el-button size="mini" @click="resend(scope.row)" type="text" icon="el-icon-s-promotion">编辑内容</el-button>
31
                     <el-button size="mini" @click="resend(scope.row)" type="text" icon="el-icon-s-promotion">编辑内容</el-button>
31
-                    <el-button v-if="sendStatusMessage"  size="mini" type="text" @click="resendMessage(scope.row)" icon="el-icon-s-promotion">重新发送</el-button>
32
+                    <el-button v-if="scope.row.sendStatus == '发送失败'|| scope.row.sendStatus == '发送中'"  size="mini" type="text" @click="resendMessage(scope.row)" icon="el-icon-s-promotion">重新发送</el-button>
32
                 </template>
33
                 </template>
33
             </el-table-column>
34
             </el-table-column>
34
         </el-table>
35
         </el-table>
112
             recordList(data, params).then((response) => {
113
             recordList(data, params).then((response) => {
113
                 this.dataList = response.rows;
114
                 this.dataList = response.rows;
114
                 this.dataList.forEach(item => {
115
                 this.dataList.forEach(item => {
115
-                    if (item.sendStatus == 0) {
116
-                        item.sendStatus = "发送失败"
117
-                        this.sendStatusMessage = true
118
-                    } else if (item.sendStatus == 1) {
119
-                        item.sendStatus = "已送达"
120
-                        this.sendStatusMessage = false
116
+                    if (item.sendStatus == 1) {
117
+                        item.sendStatus = "发送成功"
121
                     } else if (item.sendStatus == 2) {
118
                     } else if (item.sendStatus == 2) {
122
-                        item.sendStatus = "已读取"
123
-                        this.sendStatusMessage = false
124
-                    } else {
119
+                        item.sendStatus = "发送中"
120
+                    } else if(item.sendStatus == 3){
125
                         item.sendStatus = "发送失败"
121
                         item.sendStatus = "发送失败"
126
-                        this.sendStatusMessage = true
127
                     }
122
                     }
128
                 })
123
                 })
129
                 this.total = response.total;
124
                 this.total = response.total;
132
         },
127
         },
133
         // 重新发送
128
         // 重新发送
134
         resendMessage(row){
129
         resendMessage(row){
135
-            console.log(row)
130
+            console.log(row.sendStatus)
136
             let valuesRow ={
131
             let valuesRow ={
132
+                id:row.id,
137
                 templateId:row.templateId,
133
                 templateId:row.templateId,
138
                 phone:row.phone,
134
                 phone:row.phone,
139
                 templateParams:row.templateParams
135
                 templateParams:row.templateParams
140
             }
136
             }
137
+            this.reSendShortMessageFn(valuesRow)
141
             console.log(valuesRow)
138
             console.log(valuesRow)
139
+           
140
+        },
141
+        reSendShortMessageFn(valuesRow){
142
             reSendShortMessage(valuesRow).then(res=>{
142
             reSendShortMessage(valuesRow).then(res=>{
143
                 this.$message.success('发送成功');
143
                 this.$message.success('发送成功');
144
                 this.getList({ caseNum: this.queryParams.caseNum }, { pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize });
144
                 this.getList({ caseNum: this.queryParams.caseNum }, { pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize });
145
-                if(res.code==200){
146
-                    this.sendStatusMessage = false
147
-                }
148
-
149
-
150
             })
145
             })
151
         }
146
         }
152
     },
147
     },

+ 61
- 5
src/views/register.vue Dosyayı Görüntüle

1
 <template>
1
 <template>
2
   <div class="register">
2
   <div class="register">
3
+      <div class="leftIcon">
4
+        <div class="Icon"></div>
5
+        <div>智慧调解系统</div>
6
+      </div>
3
     <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
7
     <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
4
       <h3 class="title">智慧调解系统注册</h3>
8
       <h3 class="title">智慧调解系统注册</h3>
5
       <el-form-item prop="userName">
9
       <el-form-item prop="userName">
46
         </el-input>
50
         </el-input>
47
       </el-form-item>
51
       </el-form-item>
48
       <el-form-item prop="email">
52
       <el-form-item prop="email">
49
-        <el-input v-model="registerForm.email" type="text" auto-complete="off" placeholder="邮箱">
53
+        <el-input v-model="registerForm.email" type="text" auto-complete="off" placeholder="邮箱" style="width:63%;">
50
           <svg-icon slot="prefix" icon-class="email" class="el-input__icon input-icon" />
54
           <svg-icon slot="prefix" icon-class="email" class="el-input__icon input-icon" />
51
         </el-input>
55
         </el-input>
56
+        <div class="register-code">
57
+          <el-button type="primary" :disabled="emailDisabled"  @click="getEmailNumber(registerForm.email)">{{ emailText
58
+          }}</el-button>
59
+        </div>
60
+      </el-form-item>
61
+      <el-form-item prop="emailVerifyCode">
62
+        <el-input v-model="registerForm.emailVerifyCode" type="text" auto-complete="off" placeholder="邮箱验证码">
63
+          <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
64
+        </el-input>
52
       </el-form-item>
65
       </el-form-item>
53
       <el-form-item prop="name">
66
       <el-form-item prop="name">
54
         <el-input v-model="registerForm.name" type="text" auto-complete="off" placeholder="用户名">
67
         <el-input v-model="registerForm.name" type="text" auto-complete="off" placeholder="用户名">
105
 </template>
118
 </template>
106
 
119
 
107
 <script>
120
 <script>
108
-import { getCodeImg, register, sendCode, wxregister,verifyUserName,getIdType } from "@/api/login";
121
+import { getCodeImg, register, sendCode, wxregister,verifyUserName,getIdType,sendEmailCode } from "@/api/login";
109
 import { listRoleNotoken } from "@/api/system/role.js"
122
 import { listRoleNotoken } from "@/api/system/role.js"
110
 export default {
123
 export default {
111
   name: "Register",
124
   name: "Register",
119
     };
132
     };
120
     return {
133
     return {
121
       codeText: "发送验证码",
134
       codeText: "发送验证码",
135
+      emailText:"发送验证码",
122
       codeDisabled: false,
136
       codeDisabled: false,
137
+      emailDisabled:false,
123
       codeUrl: "",
138
       codeUrl: "",
124
       registerForm: {
139
       registerForm: {
125
         userName: "",
140
         userName: "",
192
           },
207
           },
193
         ],
208
         ],
194
         verifyCode: [
209
         verifyCode: [
195
-          { required: true, trigger: "blur", message: "请输入验证码" },
210
+          { required: true, trigger: "blur", message: "请输入短信验证码" },
211
+        ],
212
+        emailVerifyCode:[
213
+        { required: true, trigger: "blur", message: "请输入邮箱验证码" },
196
         ],
214
         ],
197
         idType: [
215
         idType: [
198
           { required: true, trigger: "blur", message: "请选择证件类型" },
216
           { required: true, trigger: "blur", message: "请选择证件类型" },
295
 
313
 
296
       })
314
       })
297
     },
315
     },
316
+    // 获取邮箱验证码
317
+    getEmailNumber(emailValue){
318
+      sendEmailCode({email:emailValue}).then(res=>{
319
+        if(res.code != 200){
320
+          this.$modal.msgError(res.msg);
321
+          return
322
+        }else{
323
+          this.$modal.msgSuccess('发送成功');
324
+          let time = 60;
325
+          let timer = setInterval(() => {
326
+            time--;
327
+            this.emailDisabled = true;
328
+            this.emailText = time + 's重试'
329
+            if (time == 0) {
330
+              clearInterval(timer)
331
+              this.emailText = '发送验证码'
332
+              this.emailDisabled = false;
333
+            }
334
+          }, 1000)
335
+        }
336
+      })
337
+    }
298
   }
338
   }
299
 };
339
 };
300
 </script>
340
 </script>
304
   display: flex;
344
   display: flex;
305
   justify-content: center;
345
   justify-content: center;
306
   align-items: center;
346
   align-items: center;
307
-  //height: 100%;
308
-  background-image: url("../assets/images/login-background.jpg");
347
+  // height: 100%;
348
+  // background-image: url("../assets/images/login-background.jpg");
349
+  background-image: url("../assets/images/login.svg");
309
   background-size: cover;
350
   background-size: cover;
351
+  .leftIcon {
352
+      position: relative;
353
+      width: 200px;
354
+      height: 155px;
355
+      top:-300px;
356
+      left: -300px;
357
+
358
+      .Icon {
359
+        width: 100px;
360
+        height: 105px;
361
+        background-image: url("../assets/images/logos.png");
362
+        background-size: cover;
363
+      }
364
+    }
365
+  
310
 }
366
 }
311
 
367
 
312
 .title {
368
 .title {