Просмотр исходного кода

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

gaogaoyujie 2 лет назад
Родитель
Сommit
bd877defee
5 измененных файлов: 113 добавлений и 29 удалений
  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 Просмотреть файл

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

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

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

+ 7
- 2
pages/handlecase/index.vue Просмотреть файл

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

+ 16
- 16
pages/index.vue Просмотреть файл

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

+ 45
- 6
pages/register.vue Просмотреть файл

@@ -3,7 +3,8 @@
3 3
 		<view class="logo-content align-center justify-center flex">
4 4
 			<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
5 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 8
 		</view>
8 9
 		<view class="login-form-content">
9 10
 			<view class="input-item flex align-center" style="width: 60%;margin: 0px;">
@@ -18,10 +19,25 @@
18 19
 				<!-- <view class="iconfont icon-user icon"></view> -->
19 20
 				<input v-model="registerForm.verifyCode" class="input" type="number" placeholder="请输入手机验证码"
20 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 37
 			</view>
22 38
 			<view class="input-item flex align-center">
23 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 41
 					maxlength="30" />
26 42
 			</view>
27 43
 			<view class="input-item flex align-center">
@@ -70,6 +86,7 @@
70 86
 		sendCode,
71 87
 		wxregister
72 88
 	} from '@/api/login'
89
+import constant from '../utils/constant'
73 90
 
74 91
 	export default {
75 92
 		data() {
@@ -87,8 +104,19 @@
87 104
 					uuid: '',
88 105
 					name: '',
89 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 122
 		created() {
@@ -196,8 +224,14 @@
196 224
 				this.$store.dispatch('GetInfo').then(res => {
197 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 236
 </script>
203 237
 
@@ -205,7 +239,12 @@
205 239
 	page {
206 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 248
 	.normal-login-container {
210 249
 		width: 100%;
211 250
 		background-color: #ffffff;