no message
Showing
5 changed files
with
76 additions
and
29 deletions
| ... | @@ -978,6 +978,13 @@ function getRemindCount(params) { | ... | @@ -978,6 +978,13 @@ function getRemindCount(params) { |
| 978 | params: params | 978 | params: params |
| 979 | }) | 979 | }) |
| 980 | } | 980 | } |
| 981 | function jiDropDownBox(params) { | ||
| 982 | return request({ | ||
| 983 | url: '/person/technology/jiDropDownBox', | ||
| 984 | method: 'get', | ||
| 985 | params: params | ||
| 986 | }) | ||
| 987 | } | ||
| 981 | 988 | ||
| 982 | 989 | ||
| 983 | export { | 990 | export { |
| ... | @@ -1076,5 +1083,5 @@ export { | ... | @@ -1076,5 +1083,5 @@ export { |
| 1076 | getChangeGroupByRangeId,groupInfoMod,addGroupInfoModeToRange, | 1083 | getChangeGroupByRangeId,groupInfoMod,addGroupInfoModeToRange, |
| 1077 | groupChangeEditMod,groupChangeAudit,extractInfoFromChinaIdCard | 1084 | groupChangeEditMod,groupChangeAudit,extractInfoFromChinaIdCard |
| 1078 | ,certifiedwithDraw,certifiedunMerge,getRemindCount,getGroupMemberInfoById | 1085 | ,certifiedwithDraw,certifiedunMerge,getRemindCount,getGroupMemberInfoById |
| 1079 | ,delMobilize,deltransferRange | 1086 | ,delMobilize,deltransferRange,jiDropDownBox |
| 1080 | } | 1087 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -80,10 +80,6 @@ | ... | @@ -80,10 +80,6 @@ |
| 80 | }) | 80 | }) |
| 81 | onLoad(option => { | 81 | onLoad(option => { |
| 82 | console.log(option) | 82 | console.log(option) |
| 83 | if ('form' in option) { | ||
| 84 | form.value = JSON.parse(decodeURIComponent(option.form)) | ||
| 85 | getForm() | ||
| 86 | } | ||
| 87 | if (option.memId) { | 83 | if (option.memId) { |
| 88 | getForm(option.memId) | 84 | getForm(option.memId) |
| 89 | } | 85 | } | ... | ... |
| ... | @@ -149,10 +149,6 @@ | ... | @@ -149,10 +149,6 @@ |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | function godetail(n) { | 151 | function godetail(n) { |
| 152 | const form = encodeURIComponent(JSON.stringify(n)) | ||
| 153 | // uni.navigateTo({ | ||
| 154 | // url: `/group/groupInfo?form=${form}` | ||
| 155 | // }) | ||
| 156 | uni.navigateTo({ | 152 | uni.navigateTo({ |
| 157 | url: `/group/groupInfo?memId=${n.memId}` | 153 | url: `/group/groupInfo?memId=${n.memId}` |
| 158 | }) | 154 | }) | ... | ... |
| ... | @@ -73,11 +73,11 @@ | ... | @@ -73,11 +73,11 @@ |
| 73 | </view> | 73 | </view> |
| 74 | <view style="width: 40%;"> | 74 | <view style="width: 40%;"> |
| 75 | 考试级别 | 75 | 考试级别 |
| 76 | <text style="padding: 15rpx 0;">{{ szToHz(n.levelNew) }}级</text> | 76 | <!-- <text style="padding: 15rpx 0;">{{ szToHz(n.levelNew) }}级</text> --> |
| 77 | <!-- <view @click="changeLevelfather(n)"> | 77 | <view @click="changeLevelfather(n)"> |
| 78 | <uni-data-select v-model="n.levelNew" :localdata="levelArr" | 78 | <uni-data-select v-model="n.levelNew" :localdata="levelArr" |
| 79 | @change="changeLevel"></uni-data-select> | 79 | @change="changeLevel"></uni-data-select> |
| 80 | </view> --> | 80 | </view> |
| 81 | 81 | ||
| 82 | </view> | 82 | </view> |
| 83 | 83 | ||
| ... | @@ -528,6 +528,15 @@ | ... | @@ -528,6 +528,15 @@ |
| 528 | 528 | ||
| 529 | function changeLevelfather(row) { | 529 | function changeLevelfather(row) { |
| 530 | nowRow = row | 530 | nowRow = row |
| 531 | api.jiDropDownBox({perId: row.perId}).then(res=>{ | ||
| 532 | console.log(res.data) | ||
| 533 | for(var l of res.data){ | ||
| 534 | l.text = l.name | ||
| 535 | l.disabled = l.status | ||
| 536 | } | ||
| 537 | levelArr.value = res.data | ||
| 538 | |||
| 539 | }) | ||
| 531 | } | 540 | } |
| 532 | 541 | ||
| 533 | function changeLevel(e) { | 542 | function changeLevel(e) { | ... | ... |
| ... | @@ -5,15 +5,14 @@ | ... | @@ -5,15 +5,14 @@ |
| 5 | <view class="hasfixedbottom"> | 5 | <view class="hasfixedbottom"> |
| 6 | <view> | 6 | <view> |
| 7 | <uni-forms ref="baseForm" :border="true" :modelValue="baseFormData" label-width="80"> | 7 | <uni-forms ref="baseForm" :border="true" :modelValue="baseFormData" label-width="80"> |
| 8 | |||
| 9 | <view class="nolineform"> | 8 | <view class="nolineform"> |
| 10 | |||
| 11 | <uni-forms-item label="姓名" required name="name" v-show="current === 0"> | 9 | <uni-forms-item label="姓名" required name="name" v-show="current === 0"> |
| 12 | <uni-easyinput :styles="inputstyle" :clearable='false' :placeholderStyle="placeholderStyle" | 10 | <uni-easyinput :styles="inputstyle" :clearable='false' :placeholderStyle="placeholderStyle" |
| 13 | v-model="baseFormData.name" placeholder="请输入姓名" /> | 11 | v-model="baseFormData.name" placeholder="请输入姓名" /> |
| 14 | </uni-forms-item> | 12 | </uni-forms-item> |
| 15 | <uni-forms-item label="证件类型" required name="idcType"> | 13 | <uni-forms-item label="证件类型" required name="idcType"> |
| 16 | <uni-data-select v-model="baseFormData.idcType" @change="changeIdcType" :clearable="false" | 14 | <uni-data-select v-model="baseFormData.idcType" style="width: 300rpx;" |
| 15 | @change="changeIdcType" :clearable="false" | ||
| 17 | :disabled="current === 0" :localdata="idcTypeList"></uni-data-select> | 16 | :disabled="current === 0" :localdata="idcTypeList"></uni-data-select> |
| 18 | </uni-forms-item> | 17 | </uni-forms-item> |
| 19 | <uni-forms-item label="证件照" required v-show="current === 1"> | 18 | <uni-forms-item label="证件照" required v-show="current === 1"> |
| ... | @@ -27,19 +26,26 @@ | ... | @@ -27,19 +26,26 @@ |
| 27 | </view> | 26 | </view> |
| 28 | </uni-forms-item> | 27 | </uni-forms-item> |
| 29 | <uni-forms-item label="姓名" required name="name" v-show="current === 1"> | 28 | <uni-forms-item label="姓名" required name="name" v-show="current === 1"> |
| 29 | <text v-if="disabledName">{{baseFormData.name}}</text> | ||
| 30 | <uni-easyinput :styles="inputstyle" :clearable='false' :placeholderStyle="placeholderStyle" | 30 | <uni-easyinput :styles="inputstyle" :clearable='false' :placeholderStyle="placeholderStyle" |
| 31 | v-model="baseFormData.name" placeholder="请输入姓名" /> | 31 | v-model="baseFormData.name" v-else placeholder="请输入姓名" /> |
| 32 | </uni-forms-item> | 32 | </uni-forms-item> |
| 33 | <uni-forms-item label="证件号码" required name="idcCode"> | 33 | <uni-forms-item label="证件号码" required name="idcCode" v-show="current === 0"> |
| 34 | <uni-easyinput :styles="inputstyle" :clearable='false' :placeholderStyle="placeholderStyle" | 34 | <uni-easyinput :styles="inputstyle" :clearable='false' :placeholderStyle="placeholderStyle" |
| 35 | v-model="baseFormData.idcCode" @blur="giveBirthDay" placeholder="请输入证件号码" /> | 35 | v-model="baseFormData.idcCode" @blur="giveBirthDay" placeholder="请输入证件号码" /> |
| 36 | </uni-forms-item> | 36 | </uni-forms-item> |
| 37 | <uni-forms-item label="证件号码" required name="idcCode" v-show="current === 1"> | ||
| 38 | <text>{{baseFormData.idcCode}}</text> | ||
| 39 | </uni-forms-item> | ||
| 37 | <uni-forms-item label="性别" required name="sex"> | 40 | <uni-forms-item label="性别" required name="sex"> |
| 38 | <uni-data-checkbox v-model="baseFormData.sex" @change="changeSex" :localdata="sexs" /> | 41 | <text v-if="baseFormData.sex=='0'">男</text> |
| 42 | <text v-else-if="baseFormData.sex=='1'">女</text> | ||
| 43 | <!-- <uni-data-checkbox v-model="baseFormData.sex" @change="changeSex" :localdata="sexs" /> --> | ||
| 39 | </uni-forms-item> | 44 | </uni-forms-item> |
| 40 | <uni-forms-item label="出生日期" required name="birth"> | 45 | <uni-forms-item label="出生日期" required name="birth"> |
| 41 | <uni-datetime-picker type="date" placeholder="YYYY-MM-DD" :border='false' | 46 | {{baseFormData.birth?.slice(0,10)}} |
| 42 | :clear-icon="false" v-model="baseFormData.birth" /> | 47 | <!-- <uni-datetime-picker type="date" placeholder="YYYY-MM-DD" :border='false' |
| 48 | :clear-icon="false" v-model="baseFormData.birth" /> --> | ||
| 43 | </uni-forms-item> | 49 | </uni-forms-item> |
| 44 | <uni-forms-item label="联系方式" name="phone"> | 50 | <uni-forms-item label="联系方式" name="phone"> |
| 45 | <uni-easyinput :styles="inputstyle" :placeholderStyle="placeholderStyle" | 51 | <uni-easyinput :styles="inputstyle" :placeholderStyle="placeholderStyle" |
| ... | @@ -136,9 +142,10 @@ | ... | @@ -136,9 +142,10 @@ |
| 136 | const photoArr = ref({}) | 142 | const photoArr = ref({}) |
| 137 | const regionsList = ref([]) | 143 | const regionsList = ref([]) |
| 138 | const cardObj = ref({}) | 144 | const cardObj = ref({}) |
| 145 | const disabledName = ref(false) | ||
| 139 | const baseFormData = ref({ | 146 | const baseFormData = ref({ |
| 140 | photo: '', | 147 | photo: '', |
| 141 | sex: '0', | 148 | sex: '', |
| 142 | idcType: '0', | 149 | idcType: '0', |
| 143 | perType: '1', // (1:个人会员;2:教练;3:考官;4:裁判;5:临时会员;) | 150 | perType: '1', // (1:个人会员;2:教练;3:考官;4:裁判;5:临时会员;) |
| 144 | }) | 151 | }) |
| ... | @@ -189,7 +196,13 @@ | ... | @@ -189,7 +196,13 @@ |
| 189 | onLoad((option) => { | 196 | onLoad((option) => { |
| 190 | if (option.tab == '1') { | 197 | if (option.tab == '1') { |
| 191 | current.value = 1 | 198 | current.value = 1 |
| 199 | baseFormData.value.sourceFlag = 1 | ||
| 192 | baseFormData.value.idcType = option.idcType || 0 | 200 | baseFormData.value.idcType = option.idcType || 0 |
| 201 | if(baseFormData.value.idcType == '3'){ | ||
| 202 | disabledName.value = false | ||
| 203 | } else { | ||
| 204 | disabledName.value = true | ||
| 205 | } | ||
| 193 | } | 206 | } |
| 194 | // console.log(current.value,option.tab) | 207 | // console.log(current.value,option.tab) |
| 195 | getRegionsList() | 208 | getRegionsList() |
| ... | @@ -206,18 +219,17 @@ | ... | @@ -206,18 +219,17 @@ |
| 206 | current.value = e.currentIndex | 219 | current.value = e.currentIndex |
| 207 | } | 220 | } |
| 208 | 221 | ||
| 222 | cardObj.value = {} | ||
| 209 | photoArr.value = {} | 223 | photoArr.value = {} |
| 210 | if (current.value == 0) { | 224 | if (current.value == 0) { |
| 211 | baseFormData.value = { | 225 | baseFormData.value = { |
| 212 | photo: '', | 226 | photo: '', |
| 213 | sex: '0', | ||
| 214 | idcType: '0', | 227 | idcType: '0', |
| 215 | perType: '1' | 228 | perType: '1' |
| 216 | } | 229 | } |
| 217 | } else { | 230 | } else { |
| 218 | baseFormData.value = { | 231 | baseFormData.value = { |
| 219 | photo: '', | 232 | photo: '', |
| 220 | sex: '0', | ||
| 221 | idcType: '0', | 233 | idcType: '0', |
| 222 | perType: '1', | 234 | perType: '1', |
| 223 | sourceFlag: 1 | 235 | sourceFlag: 1 |
| ... | @@ -231,6 +243,9 @@ | ... | @@ -231,6 +243,9 @@ |
| 231 | 243 | ||
| 232 | //身份证识别 | 244 | //身份证识别 |
| 233 | function upIdCardImgFront(e) { | 245 | function upIdCardImgFront(e) { |
| 246 | uni.showLoading({ | ||
| 247 | title: '加载中' | ||
| 248 | }); | ||
| 234 | baseFormData.value.card = e.tempFiles; | 249 | baseFormData.value.card = e.tempFiles; |
| 235 | // console.log(e) | 250 | // console.log(e) |
| 236 | // const formData = new FormData() | 251 | // const formData = new FormData() |
| ... | @@ -253,6 +268,7 @@ | ... | @@ -253,6 +268,7 @@ |
| 253 | }) | 268 | }) |
| 254 | 269 | ||
| 255 | } else { | 270 | } else { |
| 271 | uni.hideLoading() | ||
| 256 | uni.showModal({ | 272 | uni.showModal({ |
| 257 | content: res.msg, | 273 | content: res.msg, |
| 258 | success: function(res) { | 274 | success: function(res) { |
| ... | @@ -287,11 +303,13 @@ | ... | @@ -287,11 +303,13 @@ |
| 287 | } | 303 | } |
| 288 | 304 | ||
| 289 | function delimgFont(n) { | 305 | function delimgFont(n) { |
| 306 | photoArr.value = {} | ||
| 307 | cardObj.value = {} | ||
| 290 | baseFormData.value = { | 308 | baseFormData.value = { |
| 291 | photo: '', | 309 | photo: '', |
| 292 | sex: '0', | ||
| 293 | idcType: baseFormData.value.idcType, | 310 | idcType: baseFormData.value.idcType, |
| 294 | perType: '1', | 311 | perType: '1', |
| 312 | sourceFlag: 1 | ||
| 295 | }; | 313 | }; |
| 296 | } | 314 | } |
| 297 | 315 | ||
| ... | @@ -302,8 +320,14 @@ | ... | @@ -302,8 +320,14 @@ |
| 302 | 320 | ||
| 303 | function getExtractInfo(obj) { | 321 | function getExtractInfo(obj) { |
| 304 | //如果老会员 | 322 | //如果老会员 |
| 323 | uni.showLoading({ | ||
| 324 | title: '加载中' | ||
| 325 | }) | ||
| 305 | api.extractInfoFromChinaIdCard(obj).then(res => { | 326 | api.extractInfoFromChinaIdCard(obj).then(res => { |
| 306 | if (res.data.perCode) { | 327 | if (res.data.perCode) { |
| 328 | // if(baseFormData.value.idcType != 3){ | ||
| 329 | disabledName.value = true | ||
| 330 | // } | ||
| 307 | perId.value = res.data.perId | 331 | perId.value = res.data.perId |
| 308 | baseFormData.value.sex = res.data.sex | 332 | baseFormData.value.sex = res.data.sex |
| 309 | baseFormData.value.birth = res.data.birth | 333 | baseFormData.value.birth = res.data.birth |
| ... | @@ -335,7 +359,19 @@ | ... | @@ -335,7 +359,19 @@ |
| 335 | baseFormData.value.name = res.data.name | 359 | baseFormData.value.name = res.data.name |
| 336 | baseFormData.value.perId = res.data.perId | 360 | baseFormData.value.perId = res.data.perId |
| 337 | console.log(res.data.photo, baseFormData.value.photo) | 361 | console.log(res.data.photo, baseFormData.value.photo) |
| 362 | uni.hideLoading() | ||
| 338 | } else { | 363 | } else { |
| 364 | uni.hideLoading() | ||
| 365 | // 新会员 | ||
| 366 | if(res.data.sex){ | ||
| 367 | baseFormData.value.sex = res.data.sex | ||
| 368 | baseFormData.value.birth = res.data.birth | ||
| 369 | } | ||
| 370 | if(baseFormData.value.idcType != 3&¤t.value==1){ | ||
| 371 | disabledName.value = true | ||
| 372 | }else{ | ||
| 373 | disabledName.value = false | ||
| 374 | } | ||
| 339 | return | 375 | return |
| 340 | } | 376 | } |
| 341 | }) | 377 | }) |
| ... | @@ -396,10 +432,6 @@ | ... | @@ -396,10 +432,6 @@ |
| 396 | } | 432 | } |
| 397 | } | 433 | } |
| 398 | 434 | ||
| 399 | function changeSex(e) { | ||
| 400 | console.log("性别:", e.detail.value) | ||
| 401 | } | ||
| 402 | |||
| 403 | function openpopup() { | 435 | function openpopup() { |
| 404 | popup.value.open() | 436 | popup.value.open() |
| 405 | } | 437 | } |
| ... | @@ -412,9 +444,10 @@ | ... | @@ -412,9 +444,10 @@ |
| 412 | function changeIdcType(e) { | 444 | function changeIdcType(e) { |
| 413 | console.log(e) | 445 | console.log(e) |
| 414 | // 切换证件照类型把当前页面数据清空 | 446 | // 切换证件照类型把当前页面数据清空 |
| 447 | cardObj.value = {} | ||
| 448 | photoArr.value = {} | ||
| 415 | baseFormData.value = { | 449 | baseFormData.value = { |
| 416 | photo: '', | 450 | photo: '', |
| 417 | sex: '0', | ||
| 418 | idcType: e, | 451 | idcType: e, |
| 419 | perType: '1', | 452 | perType: '1', |
| 420 | sourceFlag: 1 | 453 | sourceFlag: 1 |
| ... | @@ -513,6 +546,12 @@ | ... | @@ -513,6 +546,12 @@ |
| 513 | </script> | 546 | </script> |
| 514 | 547 | ||
| 515 | <style lang="scss" scoped> | 548 | <style lang="scss" scoped> |
| 549 | :deep(.uni-forms-item__content){ | ||
| 550 | display: flex; | ||
| 551 | align-items: center; | ||
| 552 | justify-content: flex-end; | ||
| 553 | |||
| 554 | } | ||
| 516 | :deep(.segmented-control) { | 555 | :deep(.segmented-control) { |
| 517 | height: 100rpx; | 556 | height: 100rpx; |
| 518 | } | 557 | } | ... | ... |
-
Please register or sign in to post a comment