浏览代码

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into gyj

gyj 2 年前
父节点
当前提交
db0d35c424

+ 1
- 1
src/api/caseManagement/caseManagement.js 查看文件

245
     url: '/system/dict/data/type/id_type',
245
     url: '/system/dict/data/type/id_type',
246
     method: 'get',
246
     method: 'get',
247
   })
247
   })
248
-}
248
+}

+ 32
- 0
src/api/deliveryRecord/deliveryRecord.js 查看文件

25
         method: 'post',
25
         method: 'post',
26
         data: data,
26
         data: data,
27
     })
27
     })
28
+}
29
+// 分页查询短信
30
+export function recordList(data) {
31
+    return request({
32
+        url: '/shortMessage/recordList',
33
+        method: 'get',
34
+        params: data
35
+    })
36
+}
37
+// 重新发送短信
38
+export function reSendShortMessage(data) {
39
+    return request({
40
+        url: 'shortMessage/reSendShortMessage',
41
+        method: 'post',
42
+        data: data,
43
+    })
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
+    })
28
 }
60
 }

+ 8
- 0
src/api/login.js 查看文件

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({

+ 1
- 1
src/main.js 查看文件

4
 
4
 
5
 import Element from 'element-ui'
5
 import Element from 'element-ui'
6
 import './assets/styles/element-variables.scss'
6
 import './assets/styles/element-variables.scss'
7
-
7
+import './assets/icons' // icon
8
 import '@/assets/styles/index.scss' // global css
8
 import '@/assets/styles/index.scss' // global css
9
 import '@/assets/styles/ruoyi.scss' // ruoyi css
9
 import '@/assets/styles/ruoyi.scss' // ruoyi css
10
 import App from './App'
10
 import App from './App'

+ 19
- 0
src/utils/permission.js 查看文件

47
     console.error(`need roles! Like checkRole="['admin','editor']"`)
47
     console.error(`need roles! Like checkRole="['admin','editor']"`)
48
     return false
48
     return false
49
   }
49
   }
50
+}
51
+
52
+/**
53
+ * 状态权限校验
54
+ * @param {Number} value 校验值
55
+ * @returns {Boolean}
56
+ */
57
+export function statusRole(value) {
58
+  let caseStatusStr = sessionStorage.getItem('caseStatus');
59
+  let caseStatus = [];
60
+  caseStatus = JSON.parse(caseStatusStr);
61
+  if (caseStatus.length == 0) {
62
+    return false
63
+  }
64
+  if (caseStatus.includes(value)) {
65
+    return true
66
+  } else {
67
+    return false
68
+  }
50
 }
69
 }

+ 279
- 111
src/views/caseManagement/components/addCase.vue 查看文件

104
             </div>
104
             </div>
105
             <el-divider></el-divider>
105
             <el-divider></el-divider>
106
           </el-col>
106
           </el-col>
107
-          <el-col :span="24">
107
+          <!-- <el-col :span="24">
108
             <el-form-item label="选择机构或自然人" prop="organizeFlag">
108
             <el-form-item label="选择机构或自然人" prop="organizeFlag">
109
               <el-radio-group v-model="formData.organizeFlag" :disabled="modelFlag" @change="clearValidate">
109
               <el-radio-group v-model="formData.organizeFlag" :disabled="modelFlag" @change="clearValidate">
110
                 <el-radio :label="0">自然人</el-radio>
110
                 <el-radio :label="0">自然人</el-radio>
111
                 <el-radio :label="1">机构</el-radio>
111
                 <el-radio :label="1">机构</el-radio>
112
               </el-radio-group>
112
               </el-radio-group>
113
             </el-form-item>
113
             </el-form-item>
114
-          </el-col>
115
-          <el-col :span="24">
114
+          </el-col> -->
115
+          <el-col :span="24"  v-if="buttonFlag">
116
             <el-button type="primary" icon="el-icon-circle-plus-outline" @click='addApplicant'
116
             <el-button type="primary" icon="el-icon-circle-plus-outline" @click='addApplicant'
117
               style="margin-bottom: 40px;">新增申请人信息</el-button>
117
               style="margin-bottom: 40px;">新增申请人信息</el-button>
118
           </el-col>
118
           </el-col>
124
               </div>
124
               </div>
125
               <el-divider></el-divider>
125
               <el-divider></el-divider>
126
             </el-col>
126
             </el-col>
127
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
128
-              <el-form-item label="申请机构名称" :prop="'affiliate.applicant.' + index + '.applicant.name'" :rules="[
127
+            <el-col :span="24">
128
+              <el-form-item label="选择机构或自然人">
129
+                <el-radio-group v-model="item.applicant.organizeFlag" :disabled="modelFlag" @change="clearValidate">
130
+                  <el-radio :label="0">自然人</el-radio>
131
+                  <el-radio :label="1">机构</el-radio>
132
+                </el-radio-group>
133
+              </el-form-item>
134
+            </el-col>
135
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 1">
136
+              <el-form-item label="机构名称" :prop="'affiliate.applicant.' + index + '.applicant.name'" :rules="[
129
       {
137
       {
130
         required: true,
138
         required: true,
131
         message: '申请机构名称不能为空',
139
         message: '申请机构名称不能为空',
135
                 <el-input v-model="item.applicant.name" placeholder="请输入申请机构名称" />
143
                 <el-input v-model="item.applicant.name" placeholder="请输入申请机构名称" />
136
               </el-form-item>
144
               </el-form-item>
137
             </el-col>
145
             </el-col>
138
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
146
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
139
               <el-form-item label="申请人" :prop="'affiliate.applicant.' + index + '.applicant.name'" :rules="[
147
               <el-form-item label="申请人" :prop="'affiliate.applicant.' + index + '.applicant.name'" :rules="[
140
       {
148
       {
141
         required: true,
149
         required: true,
146
                 <el-input v-model="item.applicant.name" placeholder="请输入申请人姓名" />
154
                 <el-input v-model="item.applicant.name" placeholder="请输入申请人姓名" />
147
               </el-form-item>
155
               </el-form-item>
148
             </el-col>
156
             </el-col>
149
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
157
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
150
               <el-form-item label="是否为操作人" :prop="'affiliate.applicant.' + index + '.applicant.operatorFlag'" :rules="[
158
               <el-form-item label="是否为操作人" :prop="'affiliate.applicant.' + index + '.applicant.operatorFlag'" :rules="[
151
       {
159
       {
152
         required: true,
160
         required: true,
162
                 </el-select>
170
                 </el-select>
163
               </el-form-item>
171
               </el-form-item>
164
             </el-col>
172
             </el-col>
165
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
173
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 1">
166
               <el-form-item label-width="140px" label="统一社会信用代码"
174
               <el-form-item label-width="140px" label="统一社会信用代码"
167
                 :prop="'affiliate.applicant.' + index + '.applicant.code'" :rules="[
175
                 :prop="'affiliate.applicant.' + index + '.applicant.code'" :rules="[
168
       {
176
       {
190
                 </el-select>
198
                 </el-select>
191
               </el-form-item>
199
               </el-form-item>
192
             </el-col>
200
             </el-col>
193
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
201
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
194
               <el-form-item :prop="'affiliate.applicant.' + index + '.applicant.idType'" label="证件类型" :rules="[
202
               <el-form-item :prop="'affiliate.applicant.' + index + '.applicant.idType'" label="证件类型" :rules="[
195
       {
203
       {
196
         required: true,
204
         required: true,
206
                 </el-select>
214
                 </el-select>
207
               </el-form-item>
215
               </el-form-item>
208
             </el-col>
216
             </el-col>
209
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
217
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
210
               <el-form-item label="证件号码" :prop="'affiliate.applicant.' + index + '.applicant.idCard'" :rules="[
218
               <el-form-item label="证件号码" :prop="'affiliate.applicant.' + index + '.applicant.idCard'" :rules="[
211
       {
219
       {
212
         required: true,
220
         required: true,
214
         trigger: 'blur',
222
         trigger: 'blur',
215
       },
223
       },
216
     ]">
224
     ]">
217
-                <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>
218
               </el-form-item>
247
               </el-form-item>
219
             </el-col>
248
             </el-col>
220
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
221
-              <el-form-item label="申请人邮箱" :prop="'affiliate.applicant.' + index + '.applicant.email'" :rules="[
249
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
250
+              <el-form-item label="邮箱" :prop="'affiliate.applicant.' + index + '.applicant.email'" :rules="[
222
       {
251
       {
223
         required: true,
252
         required: true,
224
         message: '申请人邮箱不能为空',
253
         message: '申请人邮箱不能为空',
234
                 <el-input v-model="item.applicant.email" placeholder="请输入申请人邮箱" />
263
                 <el-input v-model="item.applicant.email" placeholder="请输入申请人邮箱" />
235
               </el-form-item>
264
               </el-form-item>
236
             </el-col>
265
             </el-col>
237
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
238
-              <el-form-item label="申请人电话" :prop="'affiliate.applicant.' + index + '.applicant.phone'" :rules="formData.affiliate.nationality == 0 ? [
266
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
267
+              <el-form-item label="电话" :prop="'affiliate.applicant.' + index + '.applicant.phone'" :rules="formData.affiliate.nationality == 0 ? [
239
       {
268
       {
240
         required: true,
269
         required: true,
241
         message: '申请人联系电话不能为空',
270
         message: '申请人联系电话不能为空',
250
                 <el-input v-model="item.applicant.phone" placeholder="请输入申请人联系电话" />
279
                 <el-input v-model="item.applicant.phone" placeholder="请输入申请人联系电话" />
251
               </el-form-item>
280
               </el-form-item>
252
             </el-col>
281
             </el-col>
253
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
282
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 1">
254
               <el-form-item label="法定代表人" :prop="'affiliate.applicant.' + index + '.applicant.compLegalPerson'" :rules="[
283
               <el-form-item label="法定代表人" :prop="'affiliate.applicant.' + index + '.applicant.compLegalPerson'" :rules="[
255
       {
284
       {
256
         required: true,
285
         required: true,
262
               </el-form-item>
291
               </el-form-item>
263
             </el-col>
292
             </el-col>
264
             <el-col :span="12">
293
             <el-col :span="12">
265
-              <el-form-item label="申请人住所" :prop="'affiliate.applicant.' + index + '.applicant.home'" :rules="[
294
+              <el-form-item label="住所" :prop="'affiliate.applicant.' + index + '.applicant.home'" :rules="[
266
       {
295
       {
267
         required: true,
296
         required: true,
268
         message: '申请人住所不能为空',
297
         message: '申请人住所不能为空',
273
               </el-form-item>
302
               </el-form-item>
274
             </el-col>
303
             </el-col>
275
             <el-col :span="12">
304
             <el-col :span="12">
276
-              <el-form-item label="申请人联系地址" :prop="'affiliate.applicant.' + index + '.applicant.address'" :rules="[
305
+              <el-form-item label="联系地址" :prop="'affiliate.applicant.' + index + '.applicant.address'" :rules="[
277
       {
306
       {
278
         required: true,
307
         required: true,
279
         message: '申请人联系地址不能为空',
308
         message: '申请人联系地址不能为空',
290
               </div>
319
               </div>
291
               <el-divider></el-divider>
320
               <el-divider></el-divider>
292
             </el-col>
321
             </el-col>
293
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
294
-              <el-form-item label="代理人联系电话" :prop="'affiliate.applicant.' + index + '.applicantAgent.phone'" :rules="[
322
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 1">
323
+              <el-form-item label="联系电话" :prop="'affiliate.applicant.' + index + '.applicantAgent.phone'" :rules="[
295
       {
324
       {
296
         required: true,
325
         required: true,
297
         message: '代理人联系电话不能为空',
326
         message: '代理人联系电话不能为空',
306
                 <el-input v-model="item.applicantAgent.phone" placeholder="请输入代理人联系电话" />
335
                 <el-input v-model="item.applicantAgent.phone" placeholder="请输入代理人联系电话" />
307
               </el-form-item>
336
               </el-form-item>
308
             </el-col>
337
             </el-col>
309
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
310
-              <el-form-item label="代理人联系电话" :prop="'affiliate.applicant.' + index + '.applicantAgent.phone'">
338
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
339
+              <el-form-item label="联系电话" :prop="'affiliate.applicant.' + index + '.applicantAgent.phone'">
311
                 <el-input v-model="item.applicantAgent.phone" placeholder="请输入代理人联系电话" />
340
                 <el-input v-model="item.applicantAgent.phone" placeholder="请输入代理人联系电话" />
312
               </el-form-item>
341
               </el-form-item>
313
             </el-col>
342
             </el-col>
314
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
315
-              <el-form-item label="代理人姓名" :prop="'affiliate.applicant.' + index + '.applicantAgent.name'" :rules="[
343
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 1">
344
+              <el-form-item label="姓名" :prop="'affiliate.applicant.' + index + '.applicantAgent.name'" :rules="[
316
       {
345
       {
317
         required: true,
346
         required: true,
318
         message: '代理人姓名不能为空',
347
         message: '代理人姓名不能为空',
322
                 <el-input v-model="item.applicantAgent.name" placeholder="请输入代理人姓名" />
351
                 <el-input v-model="item.applicantAgent.name" placeholder="请输入代理人姓名" />
323
               </el-form-item>
352
               </el-form-item>
324
             </el-col>
353
             </el-col>
325
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
326
-              <el-form-item label="代理人姓名" :prop="'affiliate.applicant.' + index + '.applicantAgent.name'">
354
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
355
+              <el-form-item label="姓名" :prop="'affiliate.applicant.' + index + '.applicantAgent.name'">
327
                 <el-input v-model="item.applicantAgent.name" placeholder="请输入代理人姓名" />
356
                 <el-input v-model="item.applicantAgent.name" placeholder="请输入代理人姓名" />
328
               </el-form-item>
357
               </el-form-item>
329
             </el-col>
358
             </el-col>
337
                 </el-select>
366
                 </el-select>
338
               </el-form-item>
367
               </el-form-item>
339
             </el-col>
368
             </el-col>
340
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
341
-              <el-form-item label="代理人邮箱" :prop="'affiliate.applicant.' + index + '.applicantAgent.email'" :rules="[
369
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 1">
370
+              <el-form-item label="邮箱" :prop="'affiliate.applicant.' + index + '.applicantAgent.email'" :rules="[
342
       {
371
       {
343
         required: true,
372
         required: true,
344
         message: '代理人邮箱不能为空',
373
         message: '代理人邮箱不能为空',
354
                 <el-input v-model="item.applicantAgent.email" placeholder="请输入代理人邮箱" />
383
                 <el-input v-model="item.applicantAgent.email" placeholder="请输入代理人邮箱" />
355
               </el-form-item>
384
               </el-form-item>
356
             </el-col>
385
             </el-col>
357
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
358
-              <el-form-item label="代理人邮箱" :prop="'affiliate.applicant.' + index + '.applicantAgent.email'" :rules="[
386
+            <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
387
+              <el-form-item label="邮箱" :prop="'affiliate.applicant.' + index + '.applicantAgent.email'" :rules="[
359
       {
388
       {
360
         pattern:
389
         pattern:
361
           /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
390
           /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
366
                 <el-input v-model="item.applicantAgent.email" placeholder="请输入代理人邮箱" />
395
                 <el-input v-model="item.applicantAgent.email" placeholder="请输入代理人邮箱" />
367
               </el-form-item>
396
               </el-form-item>
368
             </el-col>
397
             </el-col>
369
-            <el-col :span="12">
398
+            <el-col :span="12"  v-if="buttonFlag">
370
               <el-button type="primary" icon="el-icon-delete" style='margin-bottom: 40px;'
399
               <el-button type="primary" icon="el-icon-delete" style='margin-bottom: 40px;'
371
                 @click='deleteApplicant(item)'>删除</el-button>
400
                 @click='deleteApplicant(item)'>删除</el-button>
372
             </el-col>
401
             </el-col>
373
           </div>
402
           </div>
374
-          <el-col :span="24">
403
+          <el-col :span="24"  v-if="buttonFlag">
375
             <el-button type="primary" icon="el-icon-circle-plus-outline" @click='addRes'
404
             <el-button type="primary" icon="el-icon-circle-plus-outline" @click='addRes'
376
               style="margin-bottom: 40px;">新增被申请人信息</el-button>
405
               style="margin-bottom: 40px;">新增被申请人信息</el-button>
377
           </el-col>
406
           </el-col>
383
               </div>
412
               </div>
384
               <el-divider></el-divider>
413
               <el-divider></el-divider>
385
             </el-col>
414
             </el-col>
386
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
387
-              <el-form-item label="被申请人姓名" :prop="'affiliate.res.' + index + '.res.name'" :rules="[
415
+            <el-col :span="24">
416
+              <el-form-item label="选择机构或自然人">
417
+                <el-radio-group v-model="item.res.organizeFlag" :disabled="modelFlag" @change="clearValidateRes">
418
+                  <el-radio :label="0">自然人</el-radio>
419
+                  <el-radio :label="1">机构</el-radio>
420
+                </el-radio-group>
421
+              </el-form-item>
422
+            </el-col>
423
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
424
+              <el-form-item label="被申请人" :prop="'affiliate.res.' + index + '.res.name'" :rules="[
388
       {
425
       {
389
         required: true,
426
         required: true,
390
         message: '被申请人姓名不能为空',
427
         message: '被申请人姓名不能为空',
394
                 <el-input v-model="item.res.name" placeholder="请输入被申请人姓名" />
431
                 <el-input v-model="item.res.name" placeholder="请输入被申请人姓名" />
395
               </el-form-item>
432
               </el-form-item>
396
             </el-col>
433
             </el-col>
397
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
398
-              <el-form-item label="被申请机构名称" :prop="'affiliate.res.' + index + '.res.name'" :rules="[
434
+            <el-col :span="12" v-if="item.res.organizeFlag == 1">
435
+              <el-form-item label="机构名称" :prop="'affiliate.res.' + index + '.res.name'" :rules="[
399
       {
436
       {
400
         required: true,
437
         required: true,
401
-        message: '被申请机构名称不能为空',
438
+        message: '机构名称不能为空',
402
         trigger: 'blur',
439
         trigger: 'blur',
403
       },
440
       },
404
     ]">
441
     ]">
405
-                <el-input v-model="item.res.name" placeholder="请输入被申请机构名称" />
442
+                <el-input v-model="item.res.name" placeholder="请输入机构名称" />
406
               </el-form-item>
443
               </el-form-item>
407
             </el-col>
444
             </el-col>
408
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
445
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
409
               <el-form-item label="是否为操作人" :prop="'affiliate.res.' + index + '.res.operatorFlag'">
446
               <el-form-item label="是否为操作人" :prop="'affiliate.res.' + index + '.res.operatorFlag'">
410
                 <el-select v-model="item.res.operatorFlag" placeholder="请选择" auto-complete="off" style="width: 100%;">
447
                 <el-select v-model="item.res.operatorFlag" placeholder="请选择" auto-complete="off" style="width: 100%;">
411
                   <el-option v-for="item in roleTypeList" :key="item.id" :label="item.value" :value="item.id">
448
                   <el-option v-for="item in roleTypeList" :key="item.id" :label="item.value" :value="item.id">
414
                 </el-select>
451
                 </el-select>
415
               </el-form-item>
452
               </el-form-item>
416
             </el-col>
453
             </el-col>
417
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
418
-              <el-form-item label-width="140px" label="被申请人联系电话" :prop="'affiliate.res.' + index + '.res.phone'" :rules="[
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>
485
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
486
+              <el-form-item label-width="140px" label="联系电话" :prop="'affiliate.res.' + index + '.res.phone'" :rules="[
419
       {
487
       {
420
         required: true,
488
         required: true,
421
         message: '被申请人联系电话不能为空',
489
         message: '被申请人联系电话不能为空',
431
               </el-form-item>
499
               </el-form-item>
432
             </el-col>
500
             </el-col>
433
             <el-col :span="12">
501
             <el-col :span="12">
434
-              <el-form-item label-width="150px" label="被申请人住所" :prop="'affiliate.res.' + index + '.res.home'" :rules="[
502
+              <el-form-item label-width="150px" label="住所" :prop="'affiliate.res.' + index + '.res.home'" :rules="[
435
       {
503
       {
436
         required: true,
504
         required: true,
437
-        message: '被申请人住所不能为空',
505
+        message: '住所不能为空',
438
         trigger: 'blur',
506
         trigger: 'blur',
439
       },
507
       },
440
     ]">
508
     ]">
441
-                <el-input v-model="item.res.home" placeholder="请输入被申请人住所" />
509
+                <el-input v-model="item.res.home" placeholder="请输入住所" />
442
               </el-form-item>
510
               </el-form-item>
443
             </el-col>
511
             </el-col>
444
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
445
-              <el-form-item label="被申请人邮箱" :prop="'affiliate.res.' + index + '.res.email'" :rules="[
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>
523
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
524
+              <el-form-item label="邮箱" :prop="'affiliate.res.' + index + '.res.email'" :rules="[
446
       {
525
       {
447
         required: true,
526
         required: true,
448
         message: '被申请人邮箱不能为空',
527
         message: '被申请人邮箱不能为空',
458
                 <el-input v-model="item.res.email" placeholder="请输入被申请人邮箱" />
537
                 <el-input v-model="item.res.email" placeholder="请输入被申请人邮箱" />
459
               </el-form-item>
538
               </el-form-item>
460
             </el-col>
539
             </el-col>
461
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
462
-              <el-form-item label-width="140px" label="被申请人身份证号" :prop="'affiliate.res.' + index + '.res.idCard'"
540
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
541
+              <el-form-item label-width="140px" label="身份证号" :prop="'affiliate.res.' + index + '.res.idCard'"
463
                 :rules="[
542
                 :rules="[
464
       {
543
       {
465
         required: true,
544
         required: true,
476
                 <el-input v-model="item.res.idCard" @blur="handleBlur(index)" placeholder="请输入被申请人身份证号" />
555
                 <el-input v-model="item.res.idCard" @blur="handleBlur(index)" placeholder="请输入被申请人身份证号" />
477
               </el-form-item>
556
               </el-form-item>
478
             </el-col>
557
             </el-col>
479
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
558
+            <el-col :span="12" v-if="item.res.organizeFlag == 1">
480
               <el-form-item label-width="140px" label="统一社会信用代码" :prop="'affiliate.res.' + index + '.res.code'" :rules="[
559
               <el-form-item label-width="140px" label="统一社会信用代码" :prop="'affiliate.res.' + index + '.res.code'" :rules="[
481
       {
560
       {
482
         required: true,
561
         required: true,
487
                 <el-input v-model="item.res.code" placeholder="请输入统一社会信用代码" />
566
                 <el-input v-model="item.res.code" placeholder="请输入统一社会信用代码" />
488
               </el-form-item>
567
               </el-form-item>
489
             </el-col>
568
             </el-col>
490
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
569
+            <el-col :span="12" v-if="item.res.organizeFlag == 1">
491
               <el-form-item label="法定代表人" :prop="'affiliate.res.' + index + '.res.compLegalPerson'" :rules="[
570
               <el-form-item label="法定代表人" :prop="'affiliate.res.' + index + '.res.compLegalPerson'" :rules="[
492
       {
571
       {
493
         required: true,
572
         required: true,
498
                 <el-input v-model="item.res.compLegalPerson" placeholder="请输入法定代表人" />
577
                 <el-input v-model="item.res.compLegalPerson" placeholder="请输入法定代表人" />
499
               </el-form-item>
578
               </el-form-item>
500
             </el-col>
579
             </el-col>
501
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
502
-              <el-form-item label-width="140px" label="被申请人出生年月:" :prop="'affiliate.res.' + index + '.res.birth'">
580
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
581
+              <el-form-item label-width="140px" label="出生年月:" :prop="'affiliate.res.' + index + '.res.birth'">
503
                 <el-date-picker disabled v-model="item.res.birth" type="date" placeholder="被申请人出生年月日">
582
                 <el-date-picker disabled v-model="item.res.birth" type="date" placeholder="被申请人出生年月日">
504
                 </el-date-picker>
583
                 </el-date-picker>
505
               </el-form-item>
584
               </el-form-item>
506
             </el-col>
585
             </el-col>
507
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
508
-              <el-form-item label="被申请人性别:" :prop="'affiliate.res.' + index + '.res.sex'" :rules="[
586
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
587
+              <el-form-item label="性别:" :prop="'affiliate.res.' + index + '.res.sex'" :rules="[
509
       {
588
       {
510
         required: true,
589
         required: true,
511
         message: '请选择性别',
590
         message: '请选择性别',
524
               </div>
603
               </div>
525
               <el-divider></el-divider>
604
               <el-divider></el-divider>
526
             </el-col>
605
             </el-col>
527
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
528
-              <el-form-item label="代理人联系电话" :prop="'affiliate.res.' + index + '.resAgent.phone'" :rules="[
606
+            <el-col :span="12" v-if="item.res.organizeFlag == 1">
607
+              <el-form-item label="联系电话" :prop="'affiliate.res.' + index + '.resAgent.phone'" :rules="[
529
       {
608
       {
530
         required: true,
609
         required: true,
531
         message: '代理人联系电话不能为空',
610
         message: '代理人联系电话不能为空',
540
                 <el-input v-model="item.resAgent.phone" placeholder="请输入代理人联系电话" />
619
                 <el-input v-model="item.resAgent.phone" placeholder="请输入代理人联系电话" />
541
               </el-form-item>
620
               </el-form-item>
542
             </el-col>
621
             </el-col>
543
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
544
-              <el-form-item label="代理人联系电话" :prop="'affiliate.res.' + index + '.resAgent.phone'">
622
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
623
+              <el-form-item label="联系电话" :prop="'affiliate.res.' + index + '.resAgent.phone'">
545
                 <el-input v-model="item.resAgent.phone" placeholder="请输入代理人联系电话" />
624
                 <el-input v-model="item.resAgent.phone" placeholder="请输入代理人联系电话" />
546
               </el-form-item>
625
               </el-form-item>
547
             </el-col>
626
             </el-col>
548
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
549
-              <el-form-item label="代理人姓名" :prop="'affiliate.res.' + index + '.resAgent.name'" :rules="[
627
+            <el-col :span="12" v-if="item.res.organizeFlag == 1">
628
+              <el-form-item label="姓名" :prop="'affiliate.res.' + index + '.resAgent.name'" :rules="[
550
       {
629
       {
551
         required: true,
630
         required: true,
552
         message: '代理人姓名不能为空',
631
         message: '代理人姓名不能为空',
566
                 </el-select>
645
                 </el-select>
567
               </el-form-item>
646
               </el-form-item>
568
             </el-col>
647
             </el-col>
569
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
570
-              <el-form-item label="代理人姓名" :prop="'affiliate.res.' + index + '.resAgent.name'">
648
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
649
+              <el-form-item label="姓名" :prop="'affiliate.res.' + index + '.resAgent.name'">
571
                 <el-input v-model="item.resAgent.name" placeholder="请输入代理人姓名" />
650
                 <el-input v-model="item.resAgent.name" placeholder="请输入代理人姓名" />
572
               </el-form-item>
651
               </el-form-item>
573
             </el-col>
652
             </el-col>
574
-            <el-col :span="12" v-if="formData.organizeFlag == 1">
575
-              <el-form-item label="代理人邮箱" :prop="'affiliate.res.' + index + '.resAgent.email'" :rules="[
653
+            <el-col :span="12" v-if="item.res.organizeFlag == 1">
654
+              <el-form-item label="邮箱" :prop="'affiliate.res.' + index + '.resAgent.email'" :rules="[
576
       {
655
       {
577
         required: true,
656
         required: true,
578
         message: '代理人邮箱不能为空',
657
         message: '代理人邮箱不能为空',
588
                 <el-input v-model="item.resAgent.email" placeholder="请输入代理人邮箱" />
667
                 <el-input v-model="item.resAgent.email" placeholder="请输入代理人邮箱" />
589
               </el-form-item>
668
               </el-form-item>
590
             </el-col>
669
             </el-col>
591
-            <el-col :span="12" v-if="formData.organizeFlag == 0">
592
-              <el-form-item label="代理人邮箱" :prop="'affiliate.res.' + index + '.resAgent.email'" :rules="[
670
+            <el-col :span="12" v-if="item.res.organizeFlag == 0">
671
+              <el-form-item label="邮箱" :prop="'affiliate.res.' + index + '.resAgent.email'" :rules="[
593
       {
672
       {
594
         pattern:
673
         pattern:
595
           /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
674
           /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
605
                 <el-input type="textarea" v-model="item.value"></el-input>
684
                 <el-input type="textarea" v-model="item.value"></el-input>
606
               </el-form-item>
685
               </el-form-item>
607
             </el-col>
686
             </el-col>
608
-            <el-col :span="12">
687
+            <el-col :span="12"  v-if="buttonFlag">
609
               <el-button type="primary" icon="el-icon-delete" style='margin-bottom: 40px;'
688
               <el-button type="primary" icon="el-icon-delete" style='margin-bottom: 40px;'
610
                 @click='deleteRes(item)'>删除</el-button>
689
                 @click='deleteRes(item)'>删除</el-button>
611
             </el-col>
690
             </el-col>
700
                 nationality: 1,
779
                 nationality: 1,
701
                 birth: "",
780
                 birth: "",
702
                 sex: "1",
781
                 sex: "1",
703
-                operatorFlag: 1
782
+                operatorFlag: 1,
783
+                organizeFlag: 0,
704
               },
784
               },
705
               applicantAgent: {
785
               applicantAgent: {
706
                 roleType: 2,
786
                 roleType: 2,
716
                 nationality: 1,
796
                 nationality: 1,
717
                 birth: "",
797
                 birth: "",
718
                 sex: "1",
798
                 sex: "1",
719
-                operatorFlag: 1
799
+                operatorFlag: 1,
800
+                organizeFlag: 0,
720
               },
801
               },
721
             },
802
             },
722
           ],
803
           ],
736
                 nationality: 1,
817
                 nationality: 1,
737
                 birth: "",
818
                 birth: "",
738
                 sex: "0",
819
                 sex: "0",
739
-                operatorFlag: 1
820
+                operatorFlag: 1,
821
+                organizeFlag: 0,
740
               },
822
               },
741
               resAgent: {
823
               resAgent: {
742
                 roleType: 4,
824
                 roleType: 4,
752
                 nationality: 1,
834
                 nationality: 1,
753
                 birth: "",
835
                 birth: "",
754
                 sex: "",
836
                 sex: "",
755
-                operatorFlag: 1
837
+                operatorFlag: 1,
838
+                organizeFlag: 0,
756
               }
839
               }
757
             }
840
             }
758
           ]
841
           ]
854
                     nationality: 1,
937
                     nationality: 1,
855
                     birth: "",
938
                     birth: "",
856
                     sex: "1",
939
                     sex: "1",
857
-                    operatorFlag: 1
940
+                    operatorFlag: 1,
941
+                    organizeFlag: 0,
858
                   },
942
                   },
859
                   applicantAgent: {
943
                   applicantAgent: {
860
                     roleType: 2,
944
                     roleType: 2,
870
                     nationality: 1,
954
                     nationality: 1,
871
                     birth: "",
955
                     birth: "",
872
                     sex: "1",
956
                     sex: "1",
873
-                    operatorFlag: 1
957
+                    operatorFlag: 1,
958
+                    organizeFlag: 0,
874
                   }
959
                   }
875
                 },
960
                 },
876
               ],
961
               ],
890
                     nationality: 1,
975
                     nationality: 1,
891
                     birth: "",
976
                     birth: "",
892
                     sex: "0",
977
                     sex: "0",
893
-                    operatorFlag: 1
978
+                    operatorFlag: 1,
979
+                    organizeFlag: 0,
894
                   },
980
                   },
895
                   resAgent: {
981
                   resAgent: {
896
                     roleType: 4,
982
                     roleType: 4,
906
                     nationality: 1,
992
                     nationality: 1,
907
                     birth: "",
993
                     birth: "",
908
                     sex: "",
994
                     sex: "",
909
-                    operatorFlag: 1
995
+                    operatorFlag: 1,
996
+                    organizeFlag: 0,
910
                   }
997
                   }
911
                 }
998
                 }
912
               ]
999
               ]
920
           this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
1007
           this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
921
           this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
1008
           this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
922
           this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1009
           this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1010
+          this.$set(this.formData.affiliate.applicant[0].applicant, "sex", this.getUserInfoList.sex);
1011
+          this.$set(this.formData.affiliate.applicant[0].applicant, "birth", this.getUserInfoList.birth);
923
         }
1012
         }
924
         this.activeName = "first";
1013
         this.activeName = "first";
925
         this.showmediate = false;
1014
         this.showmediate = false;
953
     getUserInfoFn() {
1042
     getUserInfoFn() {
954
       getUserInfo().then(res => {
1043
       getUserInfo().then(res => {
955
         this.getUserInfoList = res.data;
1044
         this.getUserInfoList = res.data;
1045
+        console.log(this.getUserInfoList.sex)
956
         this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
1046
         this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
957
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
1047
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
958
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
1048
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
959
         this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
1049
         this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
960
         this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
1050
         this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
961
         this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1051
         this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1052
+        this.$set(this.formData.affiliate.applicant[0].applicant, "sex", this.getUserInfoList.sex);
1053
+        this.$set(this.formData.affiliate.applicant[0].applicant, "birth", this.getUserInfoList.birth);
962
       })
1054
       })
963
     },
1055
     },
964
     /** 根据案件id获取对应信息 */
1056
     /** 根据案件id获取对应信息 */
1072
     },
1164
     },
1073
     successZip(res) {
1165
     successZip(res) {
1074
       this.formZipData = res.data;
1166
       this.formZipData = res.data;
1075
-      this.$set(this.formData, 'organizeFlag', 0);
1076
-      this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1077
-      this.$set(this.formData, 'facts', this.formZipData.facts);
1078
-      this.$set(this.formData.affiliate.applicant[0].applicant, 'home', this.formZipData.affiliate.applicant[0].applicant.home);
1079
-      this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this.formZipData.affiliate.applicant[0].applicant.address);
1080
-      this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'phone', this.formZipData.affiliate.applicant[0].applicantAgent.phone);
1081
-      this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'name', this.formZipData.affiliate.applicant[0].applicantAgent.name);
1082
-      this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'email', this.formZipData.affiliate.applicant[0].applicantAgent.email);
1167
+      if (this.formData.affiliate.applicant[0].applicant.organizeFlag == 0) {
1168
+        this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1169
+        this.$set(this.formData, 'facts', this.formZipData.facts);
1170
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'home', this.formZipData.affiliate.applicant[0].applicant.home);
1171
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this.formZipData.affiliate.applicant[0].applicant.address);
1172
+        this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'phone', this.formZipData.affiliate.applicant[0].applicantAgent.phone);
1173
+        this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'name', this.formZipData.affiliate.applicant[0].applicantAgent.name);
1174
+        this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'email', this.formZipData.affiliate.applicant[0].applicantAgent.email);
1175
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'sex', this.formZipData.affiliate.applicant[0].applicant.sex);
1176
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'birth', this.formZipData.affiliate.applicant[0].applicant.birth);
1177
+      } else if (this.formData.affiliate.applicant[0].applicant.organizeFlag == 1) {
1178
+        this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1179
+        this.$set(this.formData, 'facts', this.formZipData.facts);
1180
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData
1181
+          .affiliate.applicant[0]
1182
+          .applicant.name);
1183
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'code', this.formZipData
1184
+          .affiliate.applicant[0].applicant.code);
1185
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'home', this.formZipData
1186
+          .affiliate.applicant[0]
1187
+          .applicant.home);
1188
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this
1189
+          .formZipData.affiliate.applicant[0]
1190
+          .applicant.address);
1191
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'compLegalPerson', this
1192
+          .formZipData.affiliate.applicant[0]
1193
+          .applicant.compLegalPerson);
1194
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'email', this.formZipData
1195
+          .affiliate.applicant[0]
1196
+          .applicant.email);
1197
+        this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', this.formZipData
1198
+          .affiliate.applicant[0]
1199
+          .applicant.phone);
1200
+      }
1083
       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, 'name', this.formZipData.affiliate.res[0].res.name);
1084
       this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1202
       this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1085
       this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1203
       this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1109
       });
1227
       });
1110
     },
1228
     },
1111
     clearValidate(val) {
1229
     clearValidate(val) {
1230
+      console.log(val)
1112
       if (val == 0) {
1231
       if (val == 0) {
1113
         this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
1232
         this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
1114
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
1233
         this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
1115
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
1234
         this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
1116
         this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
1235
         this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
1236
+        this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
1237
+        this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1117
         if (this.formZipData.affiliate) {
1238
         if (this.formZipData.affiliate) {
1118
-          this.$set(this.formData, 'organizeFlag', 0);
1239
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 0);
1119
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1240
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1120
           this.$set(this.formData, 'facts', this.formZipData.facts);
1241
           this.$set(this.formData, 'facts', this.formZipData.facts);
1121
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData.affiliate.applicant[0].applicant.name);
1122
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this.formZipData.affiliate.applicant[0].applicant.address);
1123
-          this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'phone', this.formZipData.affiliate.applicant[0].applicantAgent.phone);
1124
-          this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'name', this.formZipData.affiliate.applicant[0].applicantAgent.name);
1125
-          this.$set(this.formData.affiliate.applicant[0].applicantAgent, 'email', this.formZipData.affiliate.applicant[0].applicantAgent.email);
1126
-          this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1127
-          this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1128
-          this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1129
-          this.$set(this.formData.affiliate.res[0].res, 'sex', Number(this.formZipData.affiliate.res[0].res.sex));
1130
-          this.$set(this.formData.affiliate.res[0].res, 'birth', this.formZipData.affiliate.res[0].res.birth);
1131
-          this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
1132
-          this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email);
1242
+          this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
1243
+          this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
1244
+          this.$set(this.formData.affiliate.applicant[0].applicant, "email", this.getUserInfoList.email);
1245
+          this.$set(this.formData.affiliate.applicant[0].applicant, "phone", this.getUserInfoList.phonenumber);
1246
+          this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
1247
+          this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
1248
+
1133
         } else {
1249
         } else {
1134
           this.formData.affiliate.applicant[0].applicantAgent.name = null;
1250
           this.formData.affiliate.applicant[0].applicantAgent.name = null;
1135
           this.formData.affiliate.applicant[0].applicantAgent.email = null;
1251
           this.formData.affiliate.applicant[0].applicantAgent.email = null;
1140
         this.$set(this.formData.affiliate.applicant[0].applicantAgent, "email", this.getUserInfoList.email);
1256
         this.$set(this.formData.affiliate.applicant[0].applicantAgent, "email", this.getUserInfoList.email);
1141
         this.$set(this.formData.affiliate.applicant[0].applicantAgent, "phone", this.getUserInfoList.phonenumber);
1257
         this.$set(this.formData.affiliate.applicant[0].applicantAgent, "phone", this.getUserInfoList.phonenumber);
1142
         if (this.formZipData.affiliate) {
1258
         if (this.formZipData.affiliate) {
1143
-          this.$set(this.formData, 'organizeFlag', 1);
1259
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 1);
1144
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1260
           this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
1145
           this.$set(this.formData, 'facts', this.formZipData.facts);
1261
           this.$set(this.formData, 'facts', this.formZipData.facts);
1146
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData.affiliate.applicant[0].applicant.name);
1147
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'code', this.formZipData.affiliate.applicant[0].applicant.code);
1148
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'email', this.formZipData.affiliate.applicant[0].applicant.email);
1149
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', this.formZipData.affiliate.applicant[0].applicant.phone);
1262
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData
1263
+            .affiliate.applicant[0]
1264
+            .applicant.name);
1265
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'code', this.formZipData
1266
+            .affiliate.applicant[0].applicant.code);
1267
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'home', this.formZipData
1268
+            .affiliate.applicant[0]
1269
+            .applicant.home);
1270
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'address', this
1271
+            .formZipData.affiliate.applicant[0]
1272
+            .applicant.address);
1273
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'compLegalPerson', this
1274
+            .formZipData.affiliate.applicant[0]
1275
+            .applicant.compLegalPerson);
1276
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'email', this.formZipData
1277
+            .affiliate.applicant[0]
1278
+            .applicant.email);
1279
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', this.formZipData
1280
+            .affiliate.applicant[0]
1281
+            .applicant.phone);
1282
+        } else {
1283
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'name', null);
1284
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'idCard', null);
1285
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'email', null);
1286
+          this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', null);
1287
+        }
1288
+      }
1289
+      this.$refs["ruleForm"].clearValidate()
1290
+    },
1291
+    clearValidateRes(val) {
1292
+      if (val == 0) {
1293
+        if (this.formZipData.affiliate) {
1294
+          this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 0);
1150
           this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1295
           this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1151
           this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1296
           this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1152
           this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1297
           this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1153
-          this.$set(this.formData.affiliate.res[0].res, 'sex', this.formZipData.affiliate.res[0].res.sex);
1298
+          this.$set(this.formData.affiliate.res[0].res, 'sex', Number(this.formZipData.affiliate.res[0].res.sex));
1299
+          this.$set(this.formData.affiliate.res[0].res, 'birth', this.formZipData.affiliate.res[0].res.birth);
1300
+          this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
1301
+          this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email);
1302
+        }
1303
+      } else if (val == 1) {
1304
+        if (this.formZipData.affiliate) {
1305
+          this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 1);
1306
+          this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
1307
+          this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
1308
+          this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
1309
+          this.$set(this.formData.affiliate.res[0].res, 'sex', Number(this.formZipData.affiliate.res[0].res.sex));
1154
           this.$set(this.formData.affiliate.res[0].res, 'birth', this.formZipData.affiliate.res[0].res.birth);
1310
           this.$set(this.formData.affiliate.res[0].res, 'birth', this.formZipData.affiliate.res[0].res.birth);
1155
           this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
1311
           this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
1156
           this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email);
1312
           this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email);
1157
-        } else {
1158
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'name', null);
1159
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'idCard', null);
1160
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'email', null);
1161
-          this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', null);
1162
         }
1313
         }
1163
       }
1314
       }
1315
+      console.log(val)
1164
       this.$refs["ruleForm"].clearValidate()
1316
       this.$refs["ruleForm"].clearValidate()
1165
     },
1317
     },
1166
     cancel() {
1318
     cancel() {
1180
         this.formData.affiliate.res[index].res.birth = res.respondentBirth;
1332
         this.formData.affiliate.res[index].res.birth = res.respondentBirth;
1181
       });
1333
       });
1182
     },
1334
     },
1335
+    // 申请人身份证
1336
+    handleBlurApplicant(index) {
1337
+      console.log(index)
1338
+      let idCards = {
1339
+        idCard: this.formData.affiliate.applicant[index].applicant.idCard,
1340
+      };
1341
+      getInfoByIdCard(idCards).then((res) => {
1342
+        this.formData.affiliate.applicant[index].applicant.sex = res.respondentSex;
1343
+        // console.log(res.respondentBirth);
1344
+        this.formData.affiliate.applicant[index].applicant.birth = res.respondentBirth;
1345
+      });
1346
+    },
1183
     /**删除新增信息某一项 */
1347
     /**删除新增信息某一项 */
1184
     deleteDetali(item) {
1348
     deleteDetali(item) {
1185
       var index = this.formData.affiliate.indexOf(item)
1349
       var index = this.formData.affiliate.indexOf(item)
1204
           nationality: 1,
1368
           nationality: 1,
1205
           birth: "",
1369
           birth: "",
1206
           sex: "1",
1370
           sex: "1",
1207
-          operatorFlag: 1
1371
+          operatorFlag: 1,
1372
+          organizeFlag: 0,
1208
         },
1373
         },
1209
         applicantAgent: {
1374
         applicantAgent: {
1210
           roleType: 2,
1375
           roleType: 2,
1220
           nationality: 1,
1385
           nationality: 1,
1221
           birth: "",
1386
           birth: "",
1222
           sex: "1",
1387
           sex: "1",
1223
-          operatorFlag: 1
1388
+          operatorFlag: 1,
1389
+          organizeFlag: 0,
1224
         },
1390
         },
1225
       },);
1391
       },);
1226
     },
1392
     },
1241
           nationality: 1,
1407
           nationality: 1,
1242
           birth: "",
1408
           birth: "",
1243
           sex: "1",
1409
           sex: "1",
1244
-          operatorFlag: 1
1410
+          operatorFlag: 1,
1411
+          organizeFlag: 0,
1245
         },
1412
         },
1246
         resAgent: {
1413
         resAgent: {
1247
           roleType: 4,
1414
           roleType: 4,
1257
           nationality: 1,
1424
           nationality: 1,
1258
           birth: "",
1425
           birth: "",
1259
           sex: "1",
1426
           sex: "1",
1260
-          operatorFlag: 1
1427
+          operatorFlag: 1,
1428
+          organizeFlag: 0,
1261
         },
1429
         },
1262
       },);
1430
       },);
1263
     },
1431
     },

+ 12
- 5
src/views/caseManagement/components/mediation.vue 查看文件

57
         </el-col>
57
         </el-col>
58
         <el-col :span="24">
58
         <el-col :span="24">
59
           <el-form-item label="是否用印申请" v-if="formData.mediaResult == 1">
59
           <el-form-item label="是否用印申请" v-if="formData.mediaResult == 1">
60
-             <el-radio-group v-model="sealFlag">
60
+             <el-radio-group v-model="formData.sealFlag" :disabled="!selectRoido">
61
                 <el-radio :label="1">是</el-radio>
61
                 <el-radio :label="1">是</el-radio>
62
                 <el-radio :label="0">否</el-radio>
62
                 <el-radio :label="0">否</el-radio>
63
             </el-radio-group>
63
             </el-radio-group>
156
       // isReconci:0,
156
       // isReconci:0,
157
       formData: {
157
       formData: {
158
         affiliate: {},
158
         affiliate: {},
159
-        mediaResult:1
159
+        mediaResult:1,
160
+        sealFlag:1,
160
       },
161
       },
161
       user: "",
162
       user: "",
162
       userId: null,
163
       userId: null,
177
   },
178
   },
178
   watch: {
179
   watch: {
179
     mediationVisable(val) {
180
     mediationVisable(val) {
180
-      this.formData.mediaResult = 1
181
+      this.formData.mediaResult = 1;
182
+      this.formData.sealFlag = 1;
181
       this.recordArr = [];
183
       this.recordArr = [];
182
       this.recordArrMediate = [];
184
       this.recordArrMediate = [];
183
       if (this.mediationData.mediationMethod == "1") {
185
       if (this.mediationData.mediationMethod == "1") {
238
           this.formData = res.data;
240
           this.formData = res.data;
239
           this.formData.mediaResult = 1;
241
           this.formData.mediaResult = 1;
240
         }
242
         }
241
-       
242
-        console.log(this.formData)
243
+        if(res.data.sealFlag==1||res.data.sealFlag==0){
244
+           this.formData = res.data;
245
+        }else{
246
+          this.formData = res.data;
247
+          this.formData.sealFlag = 1;
248
+        }
243
         this.applicateArr = res.data.caseAttachList;
249
         this.applicateArr = res.data.caseAttachList;
244
         res.data.caseAttachList.forEach(item => {
250
         res.data.caseAttachList.forEach(item => {
245
           if (item.annexType == 6) {
251
           if (item.annexType == 6) {
282
         caseFlowId: this.mediationData.caseFlowId,
288
         caseFlowId: this.mediationData.caseFlowId,
283
         batchNumber: "",
289
         batchNumber: "",
284
         mediaResult: this.formData.mediaResult,
290
         mediaResult: this.formData.mediaResult,
291
+        sealFlag:this.formData.sealFlag
285
       }).then(res => {
292
       }).then(res => {
286
         caseApplicationSelectById({
293
         caseApplicationSelectById({
287
           id: this.mediationData.id
294
           id: this.mediationData.id

+ 57
- 0
src/views/deliveryRecord/components/emailEdits.vue 查看文件

1
+<template>
2
+    <div>
3
+        <el-dialog title="编辑内容" :visible="emailVidable"  @close="cancel" center
4
+            :distroy-on-close="true">
5
+            <div>
6
+                <el-input type="textarea" :rows="6" placeholder="请输入内容" v-model="sendData">
7
+                </el-input>
8
+            </div>
9
+            <div slot="footer" class="dialog-footer">
10
+                <el-button @click="cancel" class="endbutton1" round><span>取 消</span></el-button>
11
+                <el-button @click="submitSend" class="endbutton1" type="primary" round><span>确 认</span></el-button>
12
+            </div>
13
+        </el-dialog>
14
+    </div>
15
+</template>
16
+
17
+<script>
18
+import {
19
+    updateSendContent,update
20
+} from "@/api/deliveryRecord/deliveryRecord.js";
21
+export default {
22
+    props: ["emailVidable", "emailRow","queryParams"],
23
+    data() {
24
+        return {
25
+            sendData:''
26
+        };
27
+    },
28
+    watch: {
29
+        emailVidable(val){
30
+            if(val){
31
+                this.sendData = this.emailRow.mailContent;
32
+            }
33
+        }
34
+    },
35
+    methods: {
36
+        cancel() {
37
+            this.$emit("cancelEmail");
38
+        },
39
+        submitSend() {
40
+            console.log(this.emailRow.mailContent)
41
+            this.updateSendContentFn({
42
+                id:this.emailRow.id,
43
+                mailContent:this.sendData
44
+            })
45
+        },
46
+        updateSendContentFn(data){
47
+            update(data).then(res=>{
48
+                this.$message.success('更新成功');
49
+                this.$emit("cancelEmail");
50
+                this.$emit('getList',this.queryParams);
51
+            })
52
+        }
53
+    },
54
+};
55
+</script>
56
+
57
+<style lang="scss" scoped></style>

+ 19
- 6
src/views/deliveryRecord/components/resend.vue 查看文件

2
     <div>
2
     <div>
3
         <el-dialog title="修改内容" :visible="resendVidable" v-if="resendVidable" @close="cancel" center
3
         <el-dialog title="修改内容" :visible="resendVidable" v-if="resendVidable" @close="cancel" center
4
             :distroy-on-close="true">
4
             :distroy-on-close="true">
5
-            <div>
6
-                <el-input type="textarea" :rows="6" placeholder="请输入内容" v-model="sendData">
7
-                </el-input>
8
-            </div>
5
+            <div style="margin-bottom: 30px;"><span style="font-weight: bold;">发送内容:</span>{{ sendData }}</div>
6
+            <el-form label-width="100px">
7
+                <el-form-item v-for="(item,index) in rowData.templateParams" :label="item.paramName" :key="item.id"> 
8
+                    <el-input v-model="rowData.templateParams[index].paramValue" @input="changeContent"></el-input>
9
+                </el-form-item>
10
+            </el-form>
9
             <div slot="footer" class="dialog-footer">
11
             <div slot="footer" class="dialog-footer">
10
                 <el-button @click="cancel" class="endbutton1" round><span>取 消</span></el-button>
12
                 <el-button @click="cancel" class="endbutton1" round><span>取 消</span></el-button>
11
                 <el-button @click="submitSend" class="endbutton1" type="primary" round><span>确 认</span></el-button>
13
                 <el-button @click="submitSend" class="endbutton1" type="primary" round><span>确 认</span></el-button>
22
     props: ["resendVidable", "rowData","queryParams"],
24
     props: ["resendVidable", "rowData","queryParams"],
23
     data() {
25
     data() {
24
         return {
26
         return {
25
-            sendData:''
27
+            sendData:'',
28
+            param:"",
29
+            paramValue:""
30
+
26
         };
31
         };
27
     },
32
     },
28
     watch: {
33
     watch: {
37
             this.$emit("cancelSend");
42
             this.$emit("cancelSend");
38
         },
43
         },
39
         submitSend() {
44
         submitSend() {
45
+            console.log(this.rowData)
40
             this.updateSendContentFn({
46
             this.updateSendContentFn({
41
                 id:this.rowData.id,
47
                 id:this.rowData.id,
42
-                sendContent:this.sendData
48
+                templateParams:this.rowData.templateParams
43
             })
49
             })
44
         },
50
         },
45
         updateSendContentFn(data){
51
         updateSendContentFn(data){
48
                 this.$emit("cancelSend");
54
                 this.$emit("cancelSend");
49
                 this.$emit('getList',this.queryParams);
55
                 this.$emit('getList',this.queryParams);
50
             })
56
             })
57
+        },
58
+        changeContent(){
59
+            let templateContent = this.rowData.templateContent
60
+            this.rowData.templateParams.forEach(item => {
61
+                templateContent = templateContent.replace(item.param,item.paramValue)
62
+            });
63
+           this.sendData = templateContent
51
         }
64
         }
52
     },
65
     },
53
 };
66
 };

+ 38
- 5
src/views/deliveryRecord/emailRecord.vue 查看文件

27
             <!-- 缴费人 -->
27
             <!-- 缴费人 -->
28
             <!-- <el-table-column label="案件状态" align="center" prop="caseStatusName" /> -->
28
             <!-- <el-table-column label="案件状态" align="center" prop="caseStatusName" /> -->
29
             <el-table-column label="内容" align="center" prop="mailContent"></el-table-column>
29
             <el-table-column label="内容" align="center" prop="mailContent"></el-table-column>
30
+            <el-table-column label="操作" align="center">
31
+                <template  slot-scope="scope">
32
+                    <el-button size="mini" type="text" @click="emailEditing(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>
35
+            </el-table-column>
30
         </el-table>
36
         </el-table>
37
+        <emailEdits :emailVidable="emailVidable" @cancelEmail="cancelEmail"   @getList="getList" :queryParams="queryParams" :emailRow="emailRow"></emailEdits>
31
         <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
38
         <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
32
             @pagination="getList(queryParams)" />
39
             @pagination="getList(queryParams)" />
33
 
40
 
36
   
43
   
37
 <script>
44
 <script>
38
 import {
45
 import {
39
-    emailList,
46
+    emailList,reSendMailRecord
40
 } from "@/api/deliveryRecord/deliveryRecord.js";
47
 } from "@/api/deliveryRecord/deliveryRecord.js";
41
-
48
+import emailEdits from "./components/emailEdits.vue";
42
 import { getDicts } from '@/api/system/dict/data.js'
49
 import { getDicts } from '@/api/system/dict/data.js'
43
 export default {
50
 export default {
44
     name: "paymentList",
51
     name: "paymentList",
45
     dicts: ["case_status"],
52
     dicts: ["case_status"],
46
-    components: {},
53
+    components: {emailEdits},
47
     data() {
54
     data() {
48
         return {
55
         return {
49
             queryParams: {
56
             queryParams: {
60
             // 校验表单
67
             // 校验表单
61
             rules: {},
68
             rules: {},
62
             dataList: [],
69
             dataList: [],
70
+            emailVidable:false,
71
+            emailRow:{},
72
+            sendStatusMessage:false,
63
         };
73
         };
64
     },
74
     },
65
     created() {
75
     created() {
89
                         item.sendStatus = "未发送"
99
                         item.sendStatus = "未发送"
90
                     } else if (item.sendStatus == 1) {
100
                     } else if (item.sendStatus == 1) {
91
                         item.sendStatus = "已发送"
101
                         item.sendStatus = "已发送"
92
-                    } else {
93
-                        item.sendStatus = "未发送"
102
+
94
                     }
103
                     }
95
                 })
104
                 })
96
                 this.total = response.total;
105
                 this.total = response.total;
97
                 this.loading = false;
106
                 this.loading = false;
98
             });
107
             });
99
         },
108
         },
109
+        // 邮箱编辑内容
110
+        emailEditing(data){
111
+            this.emailVidable = true
112
+            this.emailRow = data;
113
+            console.log(data)
114
+        },
115
+        // 关闭弹窗
116
+        cancelEmail(){
117
+            this.emailVidable = false
118
+        },
119
+        // 重新发送
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
+            
132
+        }
100
     },
133
     },
101
 };
134
 };
102
 </script>
135
 </script>

+ 29
- 9
src/views/deliveryRecord/smsRecord.vue 查看文件

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>
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>
31
                 </template>
33
                 </template>
32
             </el-table-column>
34
             </el-table-column>
33
         </el-table>
35
         </el-table>
41
 
43
 
42
 <script>
44
 <script>
43
 import {
45
 import {
44
-    smsList,
46
+    recordList,reSendShortMessage
45
 } from "@/api/deliveryRecord/deliveryRecord.js";
47
 } from "@/api/deliveryRecord/deliveryRecord.js";
46
 import resend from "./components/resend.vue";
48
 import resend from "./components/resend.vue";
47
 import { getDicts } from '@/api/system/dict/data.js'
49
 import { getDicts } from '@/api/system/dict/data.js'
66
             rules: {},
68
             rules: {},
67
             dataList: [],
69
             dataList: [],
68
             rowData:{},
70
             rowData:{},
69
-            resendVidable:false
71
+            resendVidable:false,
72
+            sendStatusMessage:false
70
         };
73
         };
71
     },
74
     },
72
     created() {
75
     created() {
107
         // 查询列表数据
110
         // 查询列表数据
108
         getList(data, params) {
111
         getList(data, params) {
109
             this.loading = true;
112
             this.loading = true;
110
-            smsList(data, params).then((response) => {
113
+            recordList(data, params).then((response) => {
111
                 this.dataList = response.rows;
114
                 this.dataList = response.rows;
112
                 this.dataList.forEach(item => {
115
                 this.dataList.forEach(item => {
113
-                    if (item.sendStatus == 0) {
114
-                        item.sendStatus = "发送失败"
115
-                    } else if (item.sendStatus == 1) {
116
-                        item.sendStatus = "已送达"
116
+                    if (item.sendStatus == 1) {
117
+                        item.sendStatus = "发送成功"
117
                     } else if (item.sendStatus == 2) {
118
                     } else if (item.sendStatus == 2) {
118
-                        item.sendStatus = "已读取"
119
-                    } else {
119
+                        item.sendStatus = "发送中"
120
+                    } else if(item.sendStatus == 3){
120
                         item.sendStatus = "发送失败"
121
                         item.sendStatus = "发送失败"
121
                     }
122
                     }
122
                 })
123
                 })
124
                 this.loading = false;
125
                 this.loading = false;
125
             });
126
             });
126
         },
127
         },
128
+        // 重新发送
129
+        resendMessage(row){
130
+            console.log(row.sendStatus)
131
+            let valuesRow ={
132
+                id:row.id,
133
+                templateId:row.templateId,
134
+                phone:row.phone,
135
+                templateParams:row.templateParams
136
+            }
137
+            this.reSendShortMessageFn(valuesRow)
138
+            console.log(valuesRow)
139
+           
140
+        },
141
+        reSendShortMessageFn(valuesRow){
142
+            reSendShortMessage(valuesRow).then(res=>{
143
+                this.$message.success('发送成功');
144
+                this.getList({ caseNum: this.queryParams.caseNum }, { pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize });
145
+            })
146
+        }
127
     },
147
     },
128
 };
148
 };
129
 </script>
149
 </script>

+ 65
- 9
src/views/register.vue 查看文件

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">
35
           </el-option>
39
           </el-option>
36
         </el-select>
40
         </el-select>
37
       </el-form-item>
41
       </el-form-item>
38
-      <el-form-item prop="identityNo" v-if="registerForm.idType === 0">
39
-        <el-input v-model="registerForm.identityNo" type="text" auto-complete="off" placeholder="身份证号码">
42
+      <el-form-item prop="identityNo">
43
+        <el-input v-model="registerForm.identityNo" type="text" auto-complete="off" placeholder="证号码">
40
           <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
44
           <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
41
         </el-input>
45
         </el-input>
42
       </el-form-item>
46
       </el-form-item>
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: "",
154
         identityNo: [
169
         identityNo: [
155
           {
170
           {
156
             required: true,
171
             required: true,
157
-            message: '被申请人身份证号不能为空',
172
+            message: '证不能为空',
158
             trigger: 'blur',
173
             trigger: 'blur',
159
           },
174
           },
160
           // {
175
           // {
165
           // },
180
           // },
166
         ],
181
         ],
167
         email: [
182
         email: [
168
-          { required: true, trigger: "blur", message: "请再次输入您的密码" },
183
+          { required: true, trigger: "blur", message: "请输入您的邮箱" },
169
           {
184
           {
170
             pattern:
185
             pattern:
171
               /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
186
               /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
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 {

+ 7
- 0
src/views/system/user/index.vue 查看文件

189
             </el-form-item>
189
             </el-form-item>
190
           </el-col>
190
           </el-col>
191
         </el-row>
191
         </el-row>
192
+        <el-row>
193
+          <el-col :span="12">
194
+            <el-form-item  label="证件号码" prop="idCard">
195
+              <el-input v-model="form.idCard" placeholder="请输入证件号码"  maxlength="18"  />
196
+            </el-form-item>
197
+          </el-col>
198
+        </el-row>
192
         <el-row>
199
         <el-row>
193
           <el-col :span="24">
200
           <el-col :span="24">
194
             <el-form-item label="备注">
201
             <el-form-item label="备注">

+ 2
- 2
vue.config.js 查看文件

12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
13
 
13
 
14
 // const API = 'http://121.40.189.20:7001'  //生产
14
 // const API = 'http://121.40.189.20:7001'  //生产
15
-const API = 'http://121.40.189.20:6001'  //测试
15
+// const API = 'http://121.40.189.20:6001'  //测试
16
 // const API = 'http://192.168.3.18:6001'  //B
16
 // const API = 'http://192.168.3.18:6001'  //B
17
 // const API = 'http://172.16.0.237:6001' //Q
17
 // const API = 'http://172.16.0.237:6001' //Q
18
-// const API = 'http://172.16.1.26:6001' //w
18
+const API = 'http://172.16.1.26:6001' //w
19
 
19
 
20
 // vue.config.js 配置说明 
20
 // vue.config.js 配置说明 
21
 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
21
 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions