|
|
@@ -51,7 +51,7 @@
|
|
51
|
51
|
:autosize="{ minRows: 4, maxRows: 8 }" />
|
|
52
|
52
|
</el-form-item>
|
|
53
|
53
|
</el-col> -->
|
|
54
|
|
- <el-col :span="12">
|
|
|
54
|
+ <!-- <el-col :span="12">
|
|
55
|
55
|
<el-form-item label="案件标的" prop="caseSubjectAmount" :rules="[
|
|
56
|
56
|
{
|
|
57
|
57
|
required: true,
|
|
|
@@ -61,8 +61,8 @@
|
|
61
|
61
|
]">
|
|
62
|
62
|
<el-input v-model="formData.caseSubjectAmount" placeholder="请输入案件标的" />
|
|
63
|
63
|
</el-form-item>
|
|
64
|
|
- </el-col>
|
|
65
|
|
- <el-col :span="24">
|
|
|
64
|
+ </el-col> -->
|
|
|
65
|
+ <!-- <el-col :span="24">
|
|
66
|
66
|
<el-form-item label="调解模板" prop="templateId" :rules="[
|
|
67
|
67
|
{
|
|
68
|
68
|
required: true,
|
|
|
@@ -74,7 +74,7 @@
|
|
74
|
74
|
<el-option v-for="item in templateList" :label="item.temName" :key="item.id" :value="item.id"></el-option>
|
|
75
|
75
|
</el-select>
|
|
76
|
76
|
</el-form-item>
|
|
77
|
|
- </el-col>
|
|
|
77
|
+ </el-col> -->
|
|
78
|
78
|
<el-col :span="12">
|
|
79
|
79
|
<el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence">
|
|
80
|
80
|
<el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf"
|
|
|
@@ -115,7 +115,7 @@
|
|
115
|
115
|
</el-col>
|
|
116
|
116
|
<el-col :span="24">
|
|
117
|
117
|
<el-form-item label="选择机构或自然人" prop="affiliate.organizeFlag">
|
|
118
|
|
- <el-radio-group v-model="formData.affiliate.organizeFlag" @change="clearValidate">
|
|
|
118
|
+ <el-radio-group v-model="formData.affiliate.organizeFlag" :disabled="modelFlag" @change="clearValidate">
|
|
119
|
119
|
<el-radio :label="0">自然人</el-radio>
|
|
120
|
120
|
<el-radio :label="1">机构</el-radio>
|
|
121
|
121
|
</el-radio-group>
|
|
|
@@ -140,7 +140,7 @@
|
|
140
|
140
|
trigger: 'blur',
|
|
141
|
141
|
},
|
|
142
|
142
|
]">
|
|
143
|
|
- <el-input v-model="formData.affiliate.applicationName" placeholder="请输入申请机构名称" />
|
|
|
143
|
+ <el-input v-model="formData.affiliate.applicationName" disabled placeholder="请输入申请人姓名" />
|
|
144
|
144
|
</el-form-item>
|
|
145
|
145
|
</el-col>
|
|
146
|
146
|
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 1">
|
|
|
@@ -168,7 +168,7 @@
|
|
168
|
168
|
trigger: 'blur',
|
|
169
|
169
|
},
|
|
170
|
170
|
]">
|
|
171
|
|
- <el-input v-model="formData.affiliate.code" placeholder="请输入申请人的身份证号" />
|
|
|
171
|
+ <el-input v-model="formData.affiliate.code" disabled placeholder="请输入申请人的身份证号" />
|
|
172
|
172
|
</el-form-item>
|
|
173
|
173
|
</el-col>
|
|
174
|
174
|
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 0">
|
|
|
@@ -185,10 +185,26 @@
|
|
185
|
185
|
trigger: 'blur',
|
|
186
|
186
|
},
|
|
187
|
187
|
]">
|
|
188
|
|
- <el-input v-model="formData.affiliate.applicationEmail" placeholder="请输入申请人邮箱" />
|
|
|
188
|
+ <el-input v-model="formData.affiliate.applicationEmail" disabled placeholder="请输入申请人邮箱" />
|
|
189
|
189
|
</el-form-item>
|
|
190
|
190
|
</el-col>
|
|
191
|
|
- <el-col :span="12">
|
|
|
191
|
+ <el-col :span="12" v-if="formData.affiliate.organizeFlag == 0">
|
|
|
192
|
+ <el-form-item label="申请人电话" prop="affiliate.applicationPhone" :rules="[
|
|
|
193
|
+ {
|
|
|
194
|
+ required: true,
|
|
|
195
|
+ message: '申请人联系电话不能为空',
|
|
|
196
|
+ trigger: 'blur',
|
|
|
197
|
+ },
|
|
|
198
|
+ {
|
|
|
199
|
+ pattern: /^[1][3,4,5,6,7,8,9][0-9]{9}$/,
|
|
|
200
|
+ message: '请输入正确的手机号码',
|
|
|
201
|
+ trigger: 'blur',
|
|
|
202
|
+ },
|
|
|
203
|
+ ]">
|
|
|
204
|
+ <el-input v-model="formData.affiliate.applicationPhone" disabled placeholder="请输入申请人联系电话" />
|
|
|
205
|
+ </el-form-item>
|
|
|
206
|
+ </el-col>
|
|
|
207
|
+ <el-col :span="12" v-if="formData.affiliate.organizeFlag == 1">
|
|
192
|
208
|
<el-form-item label="申请人电话" prop="affiliate.applicationPhone" :rules="[
|
|
193
|
209
|
{
|
|
194
|
210
|
required: true,
|
|
|
@@ -204,7 +220,7 @@
|
|
204
|
220
|
<el-input v-model="formData.affiliate.applicationPhone" placeholder="请输入申请人联系电话" />
|
|
205
|
221
|
</el-form-item>
|
|
206
|
222
|
</el-col>
|
|
207
|
|
- <el-col :span="12">
|
|
|
223
|
+ <el-col :span="12" v-if="formData.affiliate.organizeFlag == 1">
|
|
208
|
224
|
<el-form-item label="法定代表人" prop="affiliate.compLegalPerson" :rules="[
|
|
209
|
225
|
{
|
|
210
|
226
|
required: true,
|
|
|
@@ -250,7 +266,7 @@
|
|
250
|
266
|
trigger: 'blur',
|
|
251
|
267
|
},
|
|
252
|
268
|
]">
|
|
253
|
|
- <el-input v-model="formData.affiliate.contactTelphoneAgent" placeholder="请输入代理人联系电话" />
|
|
|
269
|
+ <el-input v-model="formData.affiliate.contactTelphoneAgent" disabled placeholder="请输入代理人联系电话" />
|
|
254
|
270
|
</el-form-item>
|
|
255
|
271
|
</el-col>
|
|
256
|
272
|
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 0">
|
|
|
@@ -259,19 +275,19 @@
|
|
259
|
275
|
</el-form-item>
|
|
260
|
276
|
</el-col>
|
|
261
|
277
|
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 1">
|
|
262
|
|
- <el-form-item label="委托代理人姓名" prop="affiliate.nameAgent" :rules="[
|
|
|
278
|
+ <el-form-item label="代理人姓名" prop="affiliate.nameAgent" :rules="[
|
|
263
|
279
|
{
|
|
264
|
280
|
required: true,
|
|
265
|
|
- message: '委托代理人姓名不能为空',
|
|
|
281
|
+ message: '代理人姓名不能为空',
|
|
266
|
282
|
trigger: 'blur',
|
|
267
|
283
|
},
|
|
268
|
284
|
]">
|
|
269
|
|
- <el-input v-model="formData.affiliate.nameAgent" placeholder="请输入委托代理人姓名" />
|
|
|
285
|
+ <el-input v-model="formData.affiliate.nameAgent" disabled placeholder="请输入代理人姓名" />
|
|
270
|
286
|
</el-form-item>
|
|
271
|
287
|
</el-col>
|
|
272
|
288
|
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 0">
|
|
273
|
|
- <el-form-item label="委托代理人姓名" prop="affiliate.nameAgent">
|
|
274
|
|
- <el-input v-model="formData.affiliate.nameAgent" placeholder="请输入委托代理人姓名" />
|
|
|
289
|
+ <el-form-item label="代理人姓名" prop="affiliate.nameAgent">
|
|
|
290
|
+ <el-input v-model="formData.affiliate.nameAgent" placeholder="请输入代理人姓名" />
|
|
275
|
291
|
</el-form-item>
|
|
276
|
292
|
</el-col>
|
|
277
|
293
|
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 1">
|
|
|
@@ -288,7 +304,7 @@
|
|
288
|
304
|
trigger: 'blur',
|
|
289
|
305
|
},
|
|
290
|
306
|
]">
|
|
291
|
|
- <el-input v-model="formData.affiliate.agentEmail" placeholder="请输入代理人邮箱" />
|
|
|
307
|
+ <el-input v-model="formData.affiliate.agentEmail" disabled placeholder="请输入代理人邮箱" />
|
|
292
|
308
|
</el-form-item>
|
|
293
|
309
|
</el-col>
|
|
294
|
310
|
<el-col :span="12" v-if="formData.affiliate.organizeFlag == 0">
|
|
|
@@ -395,13 +411,6 @@
|
|
395
|
411
|
</el-form-item>
|
|
396
|
412
|
</el-col>
|
|
397
|
413
|
</el-row>
|
|
398
|
|
- <el-col :span="24" v-if="modelFlag">
|
|
399
|
|
- <div style="display: inline-flex">
|
|
400
|
|
- <div class="infoIcon"></div>
|
|
401
|
|
- <div class="caseInfo">自定义规则内容</div>
|
|
402
|
|
- </div>
|
|
403
|
|
- <el-divider></el-divider>
|
|
404
|
|
- </el-col>
|
|
405
|
414
|
<el-col :span="24" v-if="modelFlag">
|
|
406
|
415
|
<el-form-item v-for="item in formData.columnValueList" :label="item.name" :key="item.id">
|
|
407
|
416
|
<el-input type="textarea" v-model="item.value"></el-input>
|
|
|
@@ -428,7 +437,7 @@
|
|
428
|
437
|
</div>
|
|
429
|
438
|
</el-card>
|
|
430
|
439
|
</div>
|
|
431
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
440
|
+ <div slot="footer" class="dialog-footer" v-if="buttonFlag">
|
|
432
|
441
|
<el-button @click="cancel" class="endbutton"><span>取 消</span></el-button>
|
|
433
|
442
|
<el-button type="primary" @click="submitForm" class="endbutton"><span>确认</span></el-button>
|
|
434
|
443
|
</div>
|
|
|
@@ -441,6 +450,7 @@ import {
|
|
441
|
450
|
caseApplicationSelectById,
|
|
442
|
451
|
updateComfire,
|
|
443
|
452
|
getInfoByIdCard,
|
|
|
453
|
+ getUserInfo
|
|
444
|
454
|
} from "@/api/caseManagement/caseManagement.js";
|
|
445
|
455
|
import { getTemplate } from "@/api/officialSeal/officialSeal.js";
|
|
446
|
456
|
import { getToken } from "@/utils/auth";
|
|
|
@@ -479,6 +489,8 @@ export default {
|
|
479
|
489
|
},
|
|
480
|
490
|
applicantEvidence: [], //申请人证据
|
|
481
|
491
|
respondentEvidence: [], //被申请人证据
|
|
|
492
|
+ buttonFlag: true,
|
|
|
493
|
+ getUserInfoList: {}
|
|
482
|
494
|
};
|
|
483
|
495
|
},
|
|
484
|
496
|
watch: {
|
|
|
@@ -486,6 +498,7 @@ export default {
|
|
486
|
498
|
if (val == 1) {
|
|
487
|
499
|
this.title = "新增案件";
|
|
488
|
500
|
this.modelFlag = false;
|
|
|
501
|
+ this.buttonFlag = true;
|
|
489
|
502
|
this.formData = {
|
|
490
|
503
|
affiliate: {
|
|
491
|
504
|
organizeFlag: 0,
|
|
|
@@ -497,9 +510,11 @@ export default {
|
|
497
|
510
|
} else if (val == 3) {
|
|
498
|
511
|
this.title = "修改案件";
|
|
499
|
512
|
this.modelFlag = true;
|
|
|
513
|
+ this.buttonFlag = true;
|
|
500
|
514
|
} else if (val == 2) {
|
|
501
|
515
|
this.title = "案件详情";
|
|
502
|
516
|
this.modelFlag = true;
|
|
|
517
|
+ this.buttonFlag = false;
|
|
503
|
518
|
}
|
|
504
|
519
|
},
|
|
505
|
520
|
addVisable(val) {
|
|
|
@@ -509,11 +524,48 @@ export default {
|
|
509
|
524
|
if (this.addModifyData != 1) {
|
|
510
|
525
|
this.caseApplicationSelectByIdFn(this.caseData.id);
|
|
511
|
526
|
}
|
|
|
527
|
+ if (this.formData.affiliate.organizeFlag == 0) {
|
|
|
528
|
+ this.formData.affiliate.applicationName = this.getUserInfoList.nickName;
|
|
|
529
|
+ this.formData.affiliate.code = this.getUserInfoList.idCard;
|
|
|
530
|
+ this.formData.affiliate.applicationEmail = this.getUserInfoList.email;
|
|
|
531
|
+ this.formData.affiliate.applicationPhone = this.getUserInfoList.phonenumber;
|
|
|
532
|
+ } else if (this.formData.affiliate.organizeFlag == 1) {
|
|
|
533
|
+ this.formData.affiliate.nameAgent = this.getUserInfoList.nickName;
|
|
|
534
|
+ this.formData.affiliate.agentEmail = this.getUserInfoList.email;
|
|
|
535
|
+ this.formData.affiliate.contactTelphoneAgent = this.getUserInfoList.phonenumber;
|
|
|
536
|
+ }
|
|
512
|
537
|
}
|
|
513
|
538
|
},
|
|
|
539
|
+ formData: {
|
|
|
540
|
+ handler(newVal) {
|
|
|
541
|
+ if (newVal) {
|
|
|
542
|
+ console.log('newVal========newVal==========newVal', newVal);
|
|
|
543
|
+ if (newVal.affiliate.organizeFlag == 0) {
|
|
|
544
|
+ this.formData.affiliate.applicationName = this.getUserInfoList.nickName;
|
|
|
545
|
+ this.formData.affiliate.code = this.getUserInfoList.idCard;
|
|
|
546
|
+ this.formData.affiliate.applicationEmail = this.getUserInfoList.email;
|
|
|
547
|
+ this.formData.affiliate.applicationPhone = this.getUserInfoList.phonenumber;
|
|
|
548
|
+ // this.formData.affiliate.nameAgent = '';
|
|
|
549
|
+ // this.formData.affiliate.agentEmail = '';
|
|
|
550
|
+ // this.formData.affiliate.contactTelphoneAgent = '';
|
|
|
551
|
+ } else if (newVal.affiliate.organizeFlag == 1) {
|
|
|
552
|
+ // this.formData.affiliate.applicationName = "";
|
|
|
553
|
+ // this.formData.affiliate.code = "";
|
|
|
554
|
+ // this.formData.affiliate.applicationEmail = "";
|
|
|
555
|
+ // this.formData.affiliate.applicationPhone = "";
|
|
|
556
|
+ this.formData.affiliate.nameAgent = this.getUserInfoList.nickName;
|
|
|
557
|
+ this.formData.affiliate.agentEmail = this.getUserInfoList.email;
|
|
|
558
|
+ this.formData.affiliate.contactTelphoneAgent = this.getUserInfoList.phonenumber;
|
|
|
559
|
+ }
|
|
|
560
|
+ }
|
|
|
561
|
+ },
|
|
|
562
|
+ deep: true, // 深度监听
|
|
|
563
|
+ immediate: true, // 初始化监听
|
|
|
564
|
+ }
|
|
514
|
565
|
},
|
|
515
|
566
|
created() {
|
|
516
|
567
|
console.log(this.formData, "000000000000000000")
|
|
|
568
|
+ this.getUserInfoFn();
|
|
517
|
569
|
},
|
|
518
|
570
|
methods: {
|
|
519
|
571
|
/** 切换申请类型 */
|
|
|
@@ -521,6 +573,13 @@ export default {
|
|
521
|
573
|
console.log(val, "变化");
|
|
522
|
574
|
// this.$refs["ruleForm"].resetFields();
|
|
523
|
575
|
},
|
|
|
576
|
+ /**获取申请人信息 */
|
|
|
577
|
+ getUserInfoFn() {
|
|
|
578
|
+ getUserInfo().then(res => {
|
|
|
579
|
+ console.log(res, "信息信息信息信息信息信息信息信息信息信息信息信息信息信息");
|
|
|
580
|
+ this.getUserInfoList = res.data;
|
|
|
581
|
+ })
|
|
|
582
|
+ },
|
|
524
|
583
|
/** 根据案件id获取对应信息 */
|
|
525
|
584
|
caseApplicationSelectByIdFn(data) {
|
|
526
|
585
|
this.applicantEvidence = [];
|
|
|
@@ -611,7 +670,7 @@ export default {
|
|
611
|
670
|
}
|
|
612
|
671
|
});
|
|
613
|
672
|
},
|
|
614
|
|
- clearValidate() {
|
|
|
673
|
+ clearValidate(val) {
|
|
615
|
674
|
this.$refs["ruleForm"].clearValidate()
|
|
616
|
675
|
},
|
|
617
|
676
|
cancel() {
|