Selaa lähdekoodia

小程序提交

hanchaobo 2 vuotta sitten
vanhempi
commit
36c8efced7

+ 1
- 1
config.js Näytä tiedosto

8
 	baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest',
8
 	baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest',
9
 	// baseUrlTJ:'https://api.xayunmei.com/tiaojieapi',
9
 	// baseUrlTJ:'https://api.xayunmei.com/tiaojieapi',
10
 	// baseUrlZC: 'http://121.40.189.20:8001',
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
 	// baseUrl: 'http://172.16.1.24:8001',
12
 	// baseUrl: 'http://172.16.1.24:8001',
13
 	// baseUrl: 'http://localhost:8080',
13
 	// baseUrl: 'http://localhost:8080',
14
 	// baseUrl: 'http://192.168.3.18:9001',
14
 	// baseUrl: 'http://192.168.3.18:9001',

+ 1
- 1
pages/handlecase/component/list.vue Näytä tiedosto

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

+ 17
- 32
pages/handlecase/component/uploadEvidence.vue Näytä tiedosto

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

+ 1
- 1
pages/im/component/imList.vue Näytä tiedosto

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