Przeglądaj źródła

查看缴费单,缴费确认,案件受理

gyj 2 lat temu
rodzic
commit
c7c4ed8f6e

+ 16
- 0
src/api/deliveryRecord/deliveryRecord.js Wyświetl plik

@@ -42,3 +42,19 @@ export function reSendShortMessage(data) {
42 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 Wyświetl plik

@@ -65,6 +65,14 @@ export function sendCode(data) {
65 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 77
 export function wxregister(data) {
70 78
 	return request({

+ 160
- 51
src/views/caseManagement/components/addCase.vue Wyświetl plik

@@ -126,7 +126,7 @@
126 126
             </el-col>
127 127
             <el-col :span="24">
128 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 130
                   <el-radio :label="0">自然人</el-radio>
131 131
                   <el-radio :label="1">机构</el-radio>
132 132
                 </el-radio-group>
@@ -222,7 +222,28 @@
222 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 247
               </el-form-item>
227 248
             </el-col>
228 249
             <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
@@ -393,7 +414,7 @@
393 414
             </el-col>
394 415
             <el-col :span="24">
395 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 418
                   <el-radio :label="0">自然人</el-radio>
398 419
                   <el-radio :label="1">机构</el-radio>
399 420
                 </el-radio-group>
@@ -430,6 +451,37 @@
430 451
                 </el-select>
431 452
               </el-form-item>
432 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 485
             <el-col :span="12" v-if="item.res.organizeFlag == 0">
434 486
               <el-form-item label-width="140px" label="被申请人联系电话" :prop="'affiliate.res.' + index + '.res.phone'" :rules="[
435 487
       {
@@ -457,6 +509,17 @@
457 509
                 <el-input v-model="item.res.home" placeholder="请输入被申请人住所" />
458 510
               </el-form-item>
459 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 523
             <el-col :span="12" v-if="item.res.organizeFlag == 0">
461 524
               <el-form-item label="被申请人邮箱" :prop="'affiliate.res.' + index + '.res.email'" :rules="[
462 525
       {
@@ -503,7 +566,7 @@
503 566
                 <el-input v-model="item.res.code" placeholder="请输入统一社会信用代码" />
504 567
               </el-form-item>
505 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 570
               <el-form-item label="法定代表人" :prop="'affiliate.res.' + index + '.res.compLegalPerson'" :rules="[
508 571
       {
509 572
         required: true,
@@ -717,7 +780,7 @@ export default {
717 780
                 birth: "",
718 781
                 sex: "1",
719 782
                 operatorFlag: 1,
720
-                organizeFlag:0,
783
+                organizeFlag: 0,
721 784
               },
722 785
               applicantAgent: {
723 786
                 roleType: 2,
@@ -734,7 +797,7 @@ export default {
734 797
                 birth: "",
735 798
                 sex: "1",
736 799
                 operatorFlag: 1,
737
-                organizeFlag:0,
800
+                organizeFlag: 0,
738 801
               },
739 802
             },
740 803
           ],
@@ -755,7 +818,7 @@ export default {
755 818
                 birth: "",
756 819
                 sex: "0",
757 820
                 operatorFlag: 1,
758
-                organizeFlag:0,
821
+                organizeFlag: 0,
759 822
               },
760 823
               resAgent: {
761 824
                 roleType: 4,
@@ -772,7 +835,7 @@ export default {
772 835
                 birth: "",
773 836
                 sex: "",
774 837
                 operatorFlag: 1,
775
-                organizeFlag:0,
838
+                organizeFlag: 0,
776 839
               }
777 840
             }
778 841
           ]
@@ -875,7 +938,7 @@ export default {
875 938
                     birth: "",
876 939
                     sex: "1",
877 940
                     operatorFlag: 1,
878
-                    organizeFlag:0,
941
+                    organizeFlag: 0,
879 942
                   },
880 943
                   applicantAgent: {
881 944
                     roleType: 2,
@@ -892,7 +955,7 @@ export default {
892 955
                     birth: "",
893 956
                     sex: "1",
894 957
                     operatorFlag: 1,
895
-                    organizeFlag:0,
958
+                    organizeFlag: 0,
896 959
                   }
897 960
                 },
898 961
               ],
@@ -913,7 +976,7 @@ export default {
913 976
                     birth: "",
914 977
                     sex: "0",
915 978
                     operatorFlag: 1,
916
-                    organizeFlag:0,
979
+                    organizeFlag: 0,
917 980
                   },
918 981
                   resAgent: {
919 982
                     roleType: 4,
@@ -930,7 +993,7 @@ export default {
930 993
                     birth: "",
931 994
                     sex: "",
932 995
                     operatorFlag: 1,
933
-                    organizeFlag:0,
996
+                    organizeFlag: 0,
934 997
                   }
935 998
                 }
936 999
               ]
@@ -977,12 +1040,15 @@ export default {
977 1040
     getUserInfoFn() {
978 1041
       getUserInfo().then(res => {
979 1042
         this.getUserInfoList = res.data;
1043
+        console.log(this.getUserInfoList.sex)
980 1044
         this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
981 1045
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
982 1046
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
983 1047
         this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
984 1048
         this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
985 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 1054
     /** 根据案件id获取对应信息 */
@@ -1096,15 +1162,40 @@ export default {
1096 1162
     },
1097 1163
     successZip(res) {
1098 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 1199
       this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1109 1200
       this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1110 1201
       this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
@@ -1140,22 +1231,19 @@ export default {
1140 1231
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
1141 1232
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
1142 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 1236
         if (this.formZipData.affiliate) {
1144 1237
           this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 0);
1145 1238
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1146 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 1247
         } else {
1160 1248
           this.formData.affiliate.applicant[0].applicantAgent.name = null;
1161 1249
           this.formData.affiliate.applicant[0].applicantAgent.email = null;
@@ -1169,17 +1257,26 @@ export default {
1169 1257
           this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 1);
1170 1258
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1171 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 1280
         } else {
1184 1281
           this.$set(this.formData.affiliate.applicant[0].applicant, 'name', null);
1185 1282
           this.$set(this.formData.affiliate.applicant[0].applicant, 'idCard', null);
@@ -1189,8 +1286,8 @@ export default {
1189 1286
       }
1190 1287
       this.$refs["ruleForm"].clearValidate()
1191 1288
     },
1192
-    clearValidateRes(val){
1193
-      if(val==0){
1289
+    clearValidateRes(val) {
1290
+      if (val == 0) {
1194 1291
         if (this.formZipData.affiliate) {
1195 1292
           this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 0);
1196 1293
           this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
@@ -1201,7 +1298,7 @@ export default {
1201 1298
           this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
1202 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 1302
         if (this.formZipData.affiliate) {
1206 1303
           this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 1);
1207 1304
           this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
@@ -1233,6 +1330,18 @@ export default {
1233 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 1346
     deleteDetali(item) {
1238 1347
       var index = this.formData.affiliate.indexOf(item)
@@ -1258,7 +1367,7 @@ export default {
1258 1367
           birth: "",
1259 1368
           sex: "1",
1260 1369
           operatorFlag: 1,
1261
-          organizeFlag:0,
1370
+          organizeFlag: 0,
1262 1371
         },
1263 1372
         applicantAgent: {
1264 1373
           roleType: 2,
@@ -1275,7 +1384,7 @@ export default {
1275 1384
           birth: "",
1276 1385
           sex: "1",
1277 1386
           operatorFlag: 1,
1278
-          organizeFlag:0,
1387
+          organizeFlag: 0,
1279 1388
         },
1280 1389
       },);
1281 1390
     },
@@ -1297,7 +1406,7 @@ export default {
1297 1406
           birth: "",
1298 1407
           sex: "1",
1299 1408
           operatorFlag: 1,
1300
-          organizeFlag:0,
1409
+          organizeFlag: 0,
1301 1410
         },
1302 1411
         resAgent: {
1303 1412
           roleType: 4,
@@ -1314,7 +1423,7 @@ export default {
1314 1423
           birth: "",
1315 1424
           sex: "1",
1316 1425
           operatorFlag: 1,
1317
-          organizeFlag:0,
1426
+          organizeFlag: 0,
1318 1427
         },
1319 1428
       },);
1320 1429
     },

+ 7
- 7
src/views/deliveryRecord/components/emailEdits.vue Wyświetl plik

@@ -16,7 +16,7 @@
16 16
 
17 17
 <script>
18 18
 import {
19
-    updateSendContent,
19
+    updateSendContent,update
20 20
 } from "@/api/deliveryRecord/deliveryRecord.js";
21 21
 export default {
22 22
     props: ["emailVidable", "emailRow","queryParams"],
@@ -38,15 +38,15 @@ export default {
38 38
         },
39 39
         submitSend() {
40 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 46
         updateSendContentFn(data){
47
-            updateSendContent(data).then(res=>{
47
+            update(data).then(res=>{
48 48
                 this.$message.success('更新成功');
49
-                this.$emit("cancelSend");
49
+                this.$emit("cancelEmail");
50 50
                 this.$emit('getList',this.queryParams);
51 51
             })
52 52
         }

+ 14
- 9
src/views/deliveryRecord/emailRecord.vue Wyświetl plik

@@ -30,7 +30,7 @@
30 30
             <el-table-column label="操作" align="center">
31 31
                 <template  slot-scope="scope">
32 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 34
                 </template>
35 35
             </el-table-column>
36 36
         </el-table>
@@ -43,7 +43,7 @@
43 43
   
44 44
 <script>
45 45
 import {
46
-    emailList,
46
+    emailList,reSendMailRecord
47 47
 } from "@/api/deliveryRecord/deliveryRecord.js";
48 48
 import emailEdits from "./components/emailEdits.vue";
49 49
 import { getDicts } from '@/api/system/dict/data.js'
@@ -96,15 +96,10 @@ export default {
96 96
                 this.dataList = response.rows;
97 97
                 this.dataList.forEach(item => {
98 98
                     if (item.sendStatus == 0) {
99
-                        this.sendStatusMessage = true
100 99
                         item.sendStatus = "未发送"
101 100
                     } else if (item.sendStatus == 1) {
102
-                        this.sendStatusMessage = false
103 101
                         item.sendStatus = "已发送"
104 102
 
105
-                    } else {
106
-                        item.sendStatus = "未发送"
107
-                        this.sendStatusMessage = true
108 103
                     }
109 104
                 })
110 105
                 this.total = response.total;
@@ -122,8 +117,18 @@ export default {
122 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 Wyświetl plik

@@ -23,12 +23,13 @@
23 23
             <el-table-column label="发送时间" align="center" prop="sendTime" />
24 24
             <el-table-column label="发送状态" align="center" prop="sendStatus" />
25 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 27
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
27 28
                 <template slot-scope="scope">
28 29
                     <el-button size="mini" @click="copyContent(scope.row.sendContent)" type="text"
29 30
                         icon="el-icon-document-copy">复制内容</el-button>
30 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 33
                 </template>
33 34
             </el-table-column>
34 35
         </el-table>
@@ -112,18 +113,12 @@ export default {
112 113
             recordList(data, params).then((response) => {
113 114
                 this.dataList = response.rows;
114 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 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 121
                         item.sendStatus = "发送失败"
126
-                        this.sendStatusMessage = true
127 122
                     }
128 123
                 })
129 124
                 this.total = response.total;
@@ -132,21 +127,21 @@ export default {
132 127
         },
133 128
         // 重新发送
134 129
         resendMessage(row){
135
-            console.log(row)
130
+            console.log(row.sendStatus)
136 131
             let valuesRow ={
132
+                id:row.id,
137 133
                 templateId:row.templateId,
138 134
                 phone:row.phone,
139 135
                 templateParams:row.templateParams
140 136
             }
137
+            this.reSendShortMessageFn(valuesRow)
141 138
             console.log(valuesRow)
139
+           
140
+        },
141
+        reSendShortMessageFn(valuesRow){
142 142
             reSendShortMessage(valuesRow).then(res=>{
143 143
                 this.$message.success('发送成功');
144 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 Wyświetl plik

@@ -1,5 +1,9 @@
1 1
 <template>
2 2
   <div class="register">
3
+      <div class="leftIcon">
4
+        <div class="Icon"></div>
5
+        <div>智慧调解系统</div>
6
+      </div>
3 7
     <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
4 8
       <h3 class="title">智慧调解系统注册</h3>
5 9
       <el-form-item prop="userName">
@@ -46,9 +50,18 @@
46 50
         </el-input>
47 51
       </el-form-item>
48 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 54
           <svg-icon slot="prefix" icon-class="email" class="el-input__icon input-icon" />
51 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 65
       </el-form-item>
53 66
       <el-form-item prop="name">
54 67
         <el-input v-model="registerForm.name" type="text" auto-complete="off" placeholder="用户名">
@@ -105,7 +118,7 @@
105 118
 </template>
106 119
 
107 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 122
 import { listRoleNotoken } from "@/api/system/role.js"
110 123
 export default {
111 124
   name: "Register",
@@ -119,7 +132,9 @@ export default {
119 132
     };
120 133
     return {
121 134
       codeText: "发送验证码",
135
+      emailText:"发送验证码",
122 136
       codeDisabled: false,
137
+      emailDisabled:false,
123 138
       codeUrl: "",
124 139
       registerForm: {
125 140
         userName: "",
@@ -192,7 +207,10 @@ export default {
192 207
           },
193 208
         ],
194 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 215
         idType: [
198 216
           { required: true, trigger: "blur", message: "请选择证件类型" },
@@ -295,6 +313,28 @@ export default {
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 340
 </script>
@@ -304,9 +344,25 @@ export default {
304 344
   display: flex;
305 345
   justify-content: center;
306 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 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 368
 .title {