hanchaobo 2 лет назад
Родитель
Сommit
36c8efced7

+ 1
- 1
config.js Просмотреть файл

@@ -8,7 +8,7 @@ module.exports = {
8 8
 	baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest',
9 9
 	// baseUrlTJ:'https://api.xayunmei.com/tiaojieapi',
10 10
 	// baseUrlZC: 'http://121.40.189.20:8001',
11
-	// baseUrlTJ: 'http://121.40.189.20:6001',
11
+	// baseUrlTJ: 'http://172.16.1.17:6001',
12 12
 	// baseUrl: 'http://172.16.1.24:8001',
13 13
 	// baseUrl: 'http://localhost:8080',
14 14
 	// baseUrl: 'http://192.168.3.18:9001',

+ 1
- 1
pages/handlecase/component/list.vue Просмотреть файл

@@ -21,7 +21,7 @@
21 21
 				申请人姓名:
22 22
 			</view>
23 23
 			<view class="main">
24
-				{{defalutVal.applicationOrganName}}
24
+				{{defalutVal.applicationName}}
25 25
 			</view>
26 26
 		</view>
27 27
 		<view class="listItem" style="margin-top:22rpx">

+ 17
- 32
pages/handlecase/component/uploadEvidence.vue Просмотреть файл

@@ -97,7 +97,7 @@
97 97
 									</uni-forms-item>
98 98
 									<uni-forms-item label="申请人:" name="applicantName" label-width="120px" required>
99 99
 										<uni-easyinput :inputBorder="false" :disabled='true'
100
-											v-model="formData.affiliate.applicationOrganName" placeholder="" />
100
+											v-model="formData.affiliate.applicationName" placeholder="" />
101 101
 									</uni-forms-item>
102 102
 									<uni-forms-item label="被申请人:" name="respondentName" label-width="120px" required>
103 103
 										<uni-easyinput :inputBorder="false" :disabled='true'
@@ -113,12 +113,6 @@
113 113
 											:localdata="uploadEvidence"
114 114
 											@change='maintenancetypeChange'></uni-data-checkbox>
115 115
 									</uni-forms-item> -->
116
-									<uni-forms-item label="预约时间" label-width="120px" name="respondentIsWrittenHear">
117
-										<view class="example-body">
118
-											<uni-datetime-picker type="date" v-model="timeData"
119
-												@maskClick="maskClick" />
120
-										</view>
121
-									</uni-forms-item>
122 116
 								</view>
123 117
 							</uni-forms>
124 118
 							<!-- 自定义弹窗层组件 -->
@@ -381,7 +375,6 @@
381 375
 				}],
382 376
 				items: [],
383 377
 				sysType: null,
384
-				timeData: null,
385 378
 				mediatorList: []
386 379
 			}
387 380
 		},
@@ -434,20 +427,20 @@
434 427
 			// 	}
435 428
 			// },
436 429
 			checkboxChange(e) {
437
-				let params = parseInt(e.detail.value);
430
+				let params = e.detail.value;
431
+				params = params.map(Number);
438 432
 				this.mediatorList = e.detail.value;
439
-				let result = "";
440
-				this.items.forEach(item => {
441
-					if (item.mediatorId == params) {
442
-						result = {
443
-							userId: item.mediatorId,
444
-							userName: item.mediatorName
445
-						}
446
-					}
447
-				})
433
+				let result = this.items.filter(element => params.includes(element.mediatorId));
434
+				let userListArr = result.map(({
435
+					mediatorId,
436
+					mediatorName
437
+				}) => ({
438
+					mediatorId: mediatorId,
439
+					mediatorName: mediatorName
440
+				}));
448 441
 				let arbitrators = {
449 442
 					caseFlowId: this.formData.caseFlowId,
450
-					userList: [result],
443
+					mediatorList: userListArr,
451 444
 				};
452 445
 				this.subnitForm.arbitrators = arbitrators;
453 446
 				console.log(this.subnitForm.arbitrators, "PPPPPPPPPPPPPP");
@@ -539,17 +532,9 @@
539 532
 			},
540 533
 			submitImg() {
541 534
 				if (this.sysType == 2) {
542
-					if (this.mediatorList.length > 1) {
543
-						uni.showToast({
544
-							title: '只能选择一个调解员',
545
-							icon: 'none',
546
-							duration: 1000
547
-						})
548
-						return
549
-					}
550
-					if (!this.timeData) {
535
+					if (this.mediatorList.length > 3) {
551 536
 						uni.showToast({
552
-							title: '请选择时间',
537
+							title: '最多选择三个调解员',
553 538
 							icon: 'none',
554 539
 							duration: 1000
555 540
 						})
@@ -573,15 +558,15 @@
573 558
 				} else if (this.sysType == 2) {
574 559
 					// TODO
575 560
 					// 调解提交
576
-					if (this.mediatorList.length > 1) {
561
+					if (this.mediatorList.length > 3) {
562
+						debugger
577 563
 						uni.showToast({
578
-							title: '只能选择一个调解员',
564
+							title: '最多选择三个调解员',
579 565
 							icon: 'none',
580 566
 							duration: 1000
581 567
 						})
582 568
 						return
583 569
 					}
584
-					this.subnitForm.arbitrators.herDates = [this.timeData];
585 570
 					this.subnitForm.arbitrators.id = this.formData.id;
586 571
 					this.subnitForm.arbitrators.miniProgressFlag = 1;
587 572
 					updateBooking(this.subnitForm.arbitrators).then(res => {

+ 1
- 1
pages/im/component/imList.vue Просмотреть файл

@@ -22,7 +22,7 @@
22 22
 					申请人姓名:
23 23
 				</view>
24 24
 				<view class="main">
25
-					{{defalutVal.applicationOrganName}}
25
+					{{defalutVal.applicationName}}
26 26
 				</view>
27 27
 			</view>
28 28
 			<view class="listItem" style="margin-top:22rpx">