Quellcode durchsuchen

Merge branch 'dev' of SH-Arbitrate/miniapp into gyj

gaogaoyujie vor 2 Jahren
Ursprung
Commit
bd877defee
5 geänderte Dateien mit 113 neuen und 29 gelöschten Zeilen
  1. 2
    0
      pages.json
  2. 43
    5
      pages/handlecase/component/newlyAddedCase.vue
  3. 7
    2
      pages/handlecase/index.vue
  4. 16
    16
      pages/index.vue
  5. 45
    6
      pages/register.vue

+ 2
- 0
pages.json Datei anzeigen

1
 {
1
 {
2
+	"lazyCodeLoading":"requiredComponents",
2
 	"pages": [{
3
 	"pages": [{
3
 			"path": "pages/switchSystem",
4
 			"path": "pages/switchSystem",
4
 			"style": {
5
 			"style": {
255
 		"navigationBarTitleText": "RuoYi",
256
 		"navigationBarTitleText": "RuoYi",
256
 		"navigationBarBackgroundColor": "#FFFFFF"
257
 		"navigationBarBackgroundColor": "#FFFFFF"
257
 	}
258
 	}
259
+	
258
 }
260
 }

+ 43
- 5
pages/handlecase/component/newlyAddedCase.vue Datei anzeigen

46
 					<uni-data-checkbox class='checkbox' :disabled="ids?true:false" :localdata="objectiJurisArr"
46
 					<uni-data-checkbox class='checkbox' :disabled="ids?true:false" :localdata="objectiJurisArr"
47
 						v-model="formData.affiliate.organizeFlag" @change='clearValidate'></uni-data-checkbox>
47
 						v-model="formData.affiliate.organizeFlag" @change='clearValidate'></uni-data-checkbox>
48
 				</uni-forms-item>
48
 				</uni-forms-item>
49
+				<!-- <uni-section title="申请人" type="line" padding></uni-section> -->
49
 				<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName"
50
 				<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName"
50
 					name="affiliate.applicationName" label-width="120px" required>
51
 					name="affiliate.applicationName" label-width="120px" required>
51
 					<uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text"
52
 					<uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text"
52
 						:placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'" />
53
 						:placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'" />
53
 				</uni-forms-item>
54
 				</uni-forms-item>
54
-				<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code"
55
+				<uni-forms-item label="证件类型" label-width="120px" v-if="formData.affiliate.organizeFlag==0">
56
+					 <uni-data-select
57
+							v-model="formData.affiliate.idType"
58
+					        :localdata="certificate"
59
+							@change="changeDocment"	
60
+							:disabled="true"
61
+					      ></uni-data-select>
62
+				</uni-forms-item>
63
+				<uni-forms-item label="国籍" label-width="120px">
64
+					 <uni-data-select
65
+							v-model="formData.affiliate.nationality"
66
+					        :localdata="nationality"
67
+							:disabled="formData.affiliate.organizeFlag==0"
68
+					      ></uni-data-select>
69
+				</uni-forms-item>
70
+				<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '证件号码':'机构代码'" name="affiliate.code"
55
 					label-width="120px" required :rules="rulesappNo">
71
 					label-width="120px" required :rules="rulesappNo">
56
 					<uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text"
72
 					<uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text"
57
-						:placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" />
73
+						:placeholder="formData.affiliate.organizeFlag==0 ? '请输入证号码':'请输入统一社会代码'" />
58
 				</uni-forms-item>
74
 				</uni-forms-item>
59
-
60
 				<uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0"
75
 				<uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0"
61
 					name="affiliate.applicationEmail" label-width="120px" required>
76
 					name="affiliate.applicationEmail" label-width="120px" required>
62
 					<uni-easyinput v-model="formData.affiliate.applicationEmail" :disabled="disabledApplicat"
77
 					<uni-easyinput v-model="formData.affiliate.applicationEmail" :disabled="disabledApplicat"
79
 					:rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]">
94
 					:rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]">
80
 					<uni-easyinput v-model="formData.affiliate.applicantAddress" type="text" placeholder="请输入申请人联系地址" />
95
 					<uni-easyinput v-model="formData.affiliate.applicantAddress" type="text" placeholder="请输入申请人联系地址" />
81
 				</uni-forms-item>
96
 				</uni-forms-item>
97
+				<uni-section title="代理人" type="line" padding></uni-section>
82
 				<uni-forms-item label="代理人联系电话:" label-width="120px">
98
 				<uni-forms-item label="代理人联系电话:" label-width="120px">
83
 					<uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text"
99
 					<uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text"
84
 						placeholder="请输入代理人联系电话" />
100
 						placeholder="请输入代理人联系电话" />
91
 					<uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text"
107
 					<uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text"
92
 						placeholder="请输入代理人邮箱" />
108
 						placeholder="请输入代理人邮箱" />
93
 				</uni-forms-item>
109
 				</uni-forms-item>
110
+				<uni-section title="被申请人" type="line" padding></uni-section>
94
 				<uni-forms-item label="被申请人姓名:" name="affiliate.respondentName" label-width="120px" required
111
 				<uni-forms-item label="被申请人姓名:" name="affiliate.respondentName" label-width="120px" required
95
 					:rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]">
112
 					:rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]">
96
 					<uni-easyinput v-model="formData.affiliate.respondentName" type="text" placeholder="请输入被申请人姓名" />
113
 					<uni-easyinput v-model="formData.affiliate.respondentName" type="text" placeholder="请输入被申请人姓名" />
156
 		data() {
173
 		data() {
157
 			return {
174
 			return {
158
 				baseUrl: config.baseUrlTJ,
175
 				baseUrl: config.baseUrlTJ,
176
+				certificate: [
177
+				          { value: 0, text: "身份证" },
178
+				          { value: 1, text: "护照" },
179
+				        ],
180
+				nationality: [
181
+					{ value: 0, text: "国内" },
182
+					{ value: 1, text: "国外" },
183
+				],
159
 				formZipData: {},
184
 				formZipData: {},
160
 				formData: {
185
 				formData: {
161
 					affiliate: {
186
 					affiliate: {
162
 						organizeFlag: 0,
187
 						organizeFlag: 0,
163
 						respondentSex: 0,
188
 						respondentSex: 0,
189
+						idType:0,
190
+						nationality:0
164
 					},
191
 					},
165
 					columnValueList: [],
192
 					columnValueList: [],
166
 					caseAttachList: [],
193
 					caseAttachList: [],
251
 			getUserInfoNumber() {
278
 			getUserInfoNumber() {
252
 				getUserInfo().then(res => {
279
 				getUserInfo().then(res => {
253
 					this.getUserInfoList = res.data
280
 					this.getUserInfoList = res.data
281
+					console.log(res.data)
254
 					if (this.formData.affiliate.organizeFlag == 0) {
282
 					if (this.formData.affiliate.organizeFlag == 0) {
255
 						this.$set(this.formData.affiliate, 'applicationName', res.data.nickName)
283
 						this.$set(this.formData.affiliate, 'applicationName', res.data.nickName)
256
 						this.$set(this.formData.affiliate, 'code', res.data.idCard)
284
 						this.$set(this.formData.affiliate, 'code', res.data.idCard)
257
 						this.$set(this.formData.affiliate, 'applicationEmail', res.data.email)
285
 						this.$set(this.formData.affiliate, 'applicationEmail', res.data.email)
258
 						this.$set(this.formData.affiliate, 'applicationPhone', res.data.phonenumber)
286
 						this.$set(this.formData.affiliate, 'applicationPhone', res.data.phonenumber)
287
+						this.$set(this.formData.affiliate, 'idType', res.data.idType)
288
+						this.$set(this.formData.affiliate, 'nationality', res.data.nationality)
259
 						// this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
289
 						// this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
260
 						this.disabledVal = false
290
 						this.disabledVal = false
261
 						this.disabledApplicat = true
291
 						this.disabledApplicat = true
264
 						this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
294
 						this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
265
 						this.$set(this.formData.affiliate, 'agentEmail', res.data.email)
295
 						this.$set(this.formData.affiliate, 'agentEmail', res.data.email)
266
 						this.$set(this.formData.affiliate, 'contactTelphoneAgent', res.data.phonenumber)
296
 						this.$set(this.formData.affiliate, 'contactTelphoneAgent', res.data.phonenumber)
297
+						this.$set(this.formData.affiliate, 'nationality', res.data.nationality)
267
 						this.disabledVal = true
298
 						this.disabledVal = true
268
 						this.disabledApplicat = false
299
 						this.disabledApplicat = false
269
 					}
300
 					}
411
 						icon: 'none',
442
 						icon: 'none',
412
 						duration: 1000
443
 						duration: 1000
413
 					})
444
 					})
414
-					uni.navigateTo({
415
-						url: '../index'
445
+					uni.navigateBack({
446
+						delta: 1 
416
 					})
447
 					})
417
 				});
448
 				});
418
 			},
449
 			},
565
 					delta: 1
596
 					delta: 1
566
 				})
597
 				})
567
 			},
598
 			},
599
+			// 改变证件类型
600
+			changeDocment(e){
601
+				console.log(e)
602
+			}
568
 		},
603
 		},
569
 		onLoad(data) {
604
 		onLoad(data) {
570
 			this.ids = data.id
605
 			this.ids = data.id
597
 	.assignrbitrators {
632
 	.assignrbitrators {
598
 		margin: 30rpx;
633
 		margin: 30rpx;
599
 	}
634
 	}
635
+	::v-deep .uni-icons[data-v-a2e81f6e]{
636
+		display: none;
637
+	}
600
 </style>
638
 </style>

+ 7
- 2
pages/handlecase/index.vue Datei anzeigen

170
 					}
170
 					}
171
 				}
171
 				}
172
 				this.getList(obj)
172
 				this.getList(obj)
173
-			}
173
+			},
174
 		},
174
 		},
175
 		onShow() {
175
 		onShow() {
176
 			this.buttonList = []
176
 			this.buttonList = []
201
 			// 	caseStatus:4
201
 			// 	caseStatus:4
202
 			// }
202
 			// }
203
 			// this.getList(obj)
203
 			// this.getList(obj)
204
+		},
205
+		onUnload(){
206
+				uni.reLaunch({
207
+					url: '/pages/work/index'
208
+				})
204
 		}
209
 		}
205
-
210
+		
206
 	}
211
 	}
207
 </script>
212
 </script>
208
 
213
 

+ 16
- 16
pages/index.vue Datei anzeigen

1
-<template>
2
-  <view class="content">
1
+<template>
2
+  <view class="content">
3
 	<view class="header">
3
 	<view class="header">
4
 		<uni-section title="我的代办事项" type="line" padding></uni-section>
4
 		<uni-section title="我的代办事项" type="line" padding></uni-section>
5
 	</view>
5
 	</view>
162
 		      <view class="imgTitle">待案件归档</view>
162
 		      <view class="imgTitle">待案件归档</view>
163
 		    </view>    
163
 		    </view>    
164
 		</view> -->
164
 		</view> -->
165
-	</view>
166
-  </view>
167
-</template>
168
-
165
+	</view>
166
+  </view>
167
+</template>
168
+
169
 <script>
169
 <script>
170
 	import {todoCount,toDoCountReferee} from '@/api/homePage/index.js'
170
 	import {todoCount,toDoCountReferee} from '@/api/homePage/index.js'
171
 	import LuanqingEmpty from "@/components/luanqing-empty.vue"
171
 	import LuanqingEmpty from "@/components/luanqing-empty.vue"
172
-	import config from '@/config'
172
+	import config from '@/config'
173
   export default {
173
   export default {
174
 	components: {
174
 	components: {
175
 		'luanqing-empty': LuanqingEmpty,
175
 		'luanqing-empty': LuanqingEmpty,
211
 	},
211
 	},
212
 	onShow() {
212
 	onShow() {
213
 		this.getHomePage()
213
 		this.getHomePage()
214
-	},
214
+	},
215
     onLoad: function() {
215
     onLoad: function() {
216
 		this.sysType = uni.getStorageSync('sysType');
216
 		this.sysType = uni.getStorageSync('sysType');
217
 		console.log(this.sysType)
217
 		console.log(this.sysType)
218
-		
219
-    }
220
-  }
221
-</script>
222
-
223
-<style lang="scss">
218
+		
219
+    }
220
+  }
221
+</script>
222
+
223
+<style lang="scss">
224
 	page {
224
 	page {
225
 		background-color: #ffffff;
225
 		background-color: #ffffff;
226
 	}
226
 	}
267
 	        }
267
 	        }
268
 	      }
268
 	      }
269
 	    }
269
 	    }
270
-	  }
271
-</style>
270
+	  }
271
+</style>

+ 45
- 6
pages/register.vue Datei anzeigen

3
 		<view class="logo-content align-center justify-center flex">
3
 		<view class="logo-content align-center justify-center flex">
4
 			<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
4
 			<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
5
 			</image>
5
 			</image>
6
-			<text class="title">仲裁系统注册</text>
6
+			<text class="title" v-if="sysType==1">仲裁系统注册</text>
7
+			<text class="title" v-if="sysType==2">调解系统注册</text>
7
 		</view>
8
 		</view>
8
 		<view class="login-form-content">
9
 		<view class="login-form-content">
9
 			<view class="input-item flex align-center" style="width: 60%;margin: 0px;">
10
 			<view class="input-item flex align-center" style="width: 60%;margin: 0px;">
18
 				<!-- <view class="iconfont icon-user icon"></view> -->
19
 				<!-- <view class="iconfont icon-user icon"></view> -->
19
 				<input v-model="registerForm.verifyCode" class="input" type="number" placeholder="请输入手机验证码"
20
 				<input v-model="registerForm.verifyCode" class="input" type="number" placeholder="请输入手机验证码"
20
 					maxlength="30" />
21
 					maxlength="30" />
22
+			</view>
23
+			<view class="input-item flex align-center">
24
+				<uni-data-select
25
+						style="text-align: left;"
26
+						v-model="registerForm.idType"
27
+				       :localdata="certificate"
28
+					   @change="certificateValue"
29
+				     ></uni-data-select>
30
+			</view>
31
+			<view class="input-item flex align-center">
32
+				<uni-data-select
33
+						style="text-align: left;"
34
+						v-model="registerForm.nationality"
35
+				       :localdata="nationality"
36
+				     ></uni-data-select>
21
 			</view>
37
 			</view>
22
 			<view class="input-item flex align-center">
38
 			<view class="input-item flex align-center">
23
 				<!-- <view class="iconfont icon-user icon"></view> -->
39
 				<!-- <view class="iconfont icon-user icon"></view> -->
24
-				<input v-model="registerForm.identityNo" class="input" type="text" placeholder="请输入身份证号"
40
+				<input v-model="registerForm.identityNo" class="input" type="text" :placeholder="registerForm.idType==0?'请输入身份证号':'请输入护照'"
25
 					maxlength="30" />
41
 					maxlength="30" />
26
 			</view>
42
 			</view>
27
 			<view class="input-item flex align-center">
43
 			<view class="input-item flex align-center">
70
 		sendCode,
86
 		sendCode,
71
 		wxregister
87
 		wxregister
72
 	} from '@/api/login'
88
 	} from '@/api/login'
89
+import constant from '../utils/constant'
73
 
90
 
74
 	export default {
91
 	export default {
75
 		data() {
92
 		data() {
87
 					uuid: '',
104
 					uuid: '',
88
 					name: '',
105
 					name: '',
89
 					identityNo: "",
106
 					identityNo: "",
90
-					id: ""
91
-				}
107
+					id: "",
108
+					idType:0,
109
+					nationality:0
110
+				},
111
+				sysType:null,
112
+				certificate: [
113
+				          { value: 0, text: "身份证" },
114
+				          { value: 1, text: "护照" },
115
+				        ],
116
+				nationality: [
117
+					{ value: 0, text: "国内" },
118
+					{ value: 1, text: "国外" },
119
+				],
92
 			}
120
 			}
93
 		},
121
 		},
94
 		created() {
122
 		created() {
196
 				this.$store.dispatch('GetInfo').then(res => {
224
 				this.$store.dispatch('GetInfo').then(res => {
197
 					this.$tab.reLaunch('/pages/index')
225
 					this.$tab.reLaunch('/pages/index')
198
 				})
226
 				})
227
+			},
228
+			certificateValue(e){
229
+				this.registerForm.idType = e
199
 			}
230
 			}
200
-		}
231
+		},
232
+		onLoad(){
233
+			this.sysType = uni.getStorageSync('sysType');
234
+		}
201
 	}
235
 	}
202
 </script>
236
 </script>
203
 
237
 
205
 	page {
239
 	page {
206
 		background-color: #ffffff;
240
 		background-color: #ffffff;
207
 	}
241
 	}
208
-
242
+	::v-deep .uni-select[data-v-6b64008e]{
243
+		border: none;
244
+	}
245
+	::v-deep .uni-icons[data-v-a2e81f6e]{
246
+		display: none;
247
+	}
209
 	.normal-login-container {
248
 	.normal-login-container {
210
 		width: 100%;
249
 		width: 100%;
211
 		background-color: #ffffff;
250
 		background-color: #ffffff;