Commit 9c04a29802eb767719d3cda97eb4beacdc852e9c
zh
Showing
17 changed files
with
1150 additions
and
309 deletions
apis/modules/ly.js
| 1 | 1 | import request from '../../service/request.js' |
| 2 | 2 | import utils from '../../service/utils.js' |
| 3 | 3 | export default { |
| 4 | + // 获取详情界桩 | |
| 5 | + getariesInfo(data){ | |
| 6 | + return request.get('/areBoundary/ariesInfo/'+data) | |
| 7 | + }, | |
| 4 | 8 | // 修改界桩 |
| 5 | 9 | removeplie(data){ |
| 6 | - return request.put('/areBoundary/plie',data) | |
| 10 | + return request.put('/areBoundary/ariesInfo',data) | |
| 7 | 11 | }, |
| 8 | 12 | // 添加界桩 |
| 9 | 13 | addplie(data){ |
| ... | ... | @@ -43,7 +47,7 @@ export default { |
| 43 | 47 | }, |
| 44 | 48 | // 行政区 |
| 45 | 49 | getplie(data){ |
| 46 | - return request.get('/areBoundary/plie/list',data) | |
| 50 | + return request.get('/areBoundary/ariesInfo/list',data) | |
| 47 | 51 | }, |
| 48 | 52 | // 申报小区门牌 |
| 49 | 53 | adddoorplate(data){ | ... | ... |
apis/modules/ryy.js
| ... | ... | @@ -11,5 +11,9 @@ export default { |
| 11 | 11 | // 获取历史记录和流程 |
| 12 | 12 | getHistory(pages) { |
| 13 | 13 | return request.get('/childAdopt/registration/caseHistory',pages) |
| 14 | + }, | |
| 15 | + // 获取机构 | |
| 16 | + getListRoles(pages) { | |
| 17 | + return request.get('/system/user/listRoles',pages) | |
| 14 | 18 | } |
| 15 | 19 | } |
| 16 | 20 | \ No newline at end of file | ... | ... |
pages.json
| ... | ... | @@ -361,6 +361,24 @@ |
| 361 | 361 | "enablePullDownRefresh": false |
| 362 | 362 | } |
| 363 | 363 | |
| 364 | + }, | |
| 365 | + { | |
| 366 | + "path" : "pages/receiptRegistration/organization", | |
| 367 | + "style" : | |
| 368 | + { | |
| 369 | + "navigationBarTitleText": "机构上报", | |
| 370 | + "enablePullDownRefresh": false | |
| 371 | + } | |
| 372 | + | |
| 373 | + }, | |
| 374 | + { | |
| 375 | + "path" : "pages/receiptRegistration/townShip", | |
| 376 | + "style" : | |
| 377 | + { | |
| 378 | + "navigationBarTitleText": "乡镇上报", | |
| 379 | + "enablePullDownRefresh": false | |
| 380 | + } | |
| 381 | + | |
| 364 | 382 | } |
| 365 | 383 | ,{ |
| 366 | 384 | ... | ... |
pages/declaration/declaration.vue
| ... | ... | @@ -617,7 +617,7 @@ |
| 617 | 617 | <view class="serve-title">类型</view> |
| 618 | 618 | <view class="serve-right"> |
| 619 | 619 | <picker @change="e=> bindPickerChange1(e,7)" :value="index" :range="array5"> |
| 620 | - <view :class="doorplate.cellType?'uni-input1':'uni-input2'">{{doorplate.cellType?doorplate.cellType:'请选择'}} | |
| 620 | + <view :class="doorplate.gridman?'uni-input1':'uni-input2'">{{doorplate.gridman?doorplate.gridman:'请选择'}} | |
| 621 | 621 | </view> |
| 622 | 622 | </picker> |
| 623 | 623 | <image src="../../static/down3.png"></image> |
| ... | ... | @@ -640,7 +640,7 @@ |
| 640 | 640 | <view class="info-box"> |
| 641 | 641 | <view class="info-box-list"> |
| 642 | 642 | <view class="serve"> |
| 643 | - <view class="serve-title">曾用名</view> | |
| 643 | + <view class="serve-title">门牌号</view> | |
| 644 | 644 | <view> |
| 645 | 645 | <input id="formerName" @input="oninput4" v-module="doorplate.formerName" |
| 646 | 646 | placeholder="请输入" style="text-align: right;" |
| ... | ... | @@ -652,7 +652,7 @@ |
| 652 | 652 | <view class="info-box"> |
| 653 | 653 | <view class="info-box-list"> |
| 654 | 654 | <view class="serve"> |
| 655 | - <view class="serve-title">历史地名</view> | |
| 655 | + <view class="serve-title">门牌地址</view> | |
| 656 | 656 | <view> |
| 657 | 657 | <input id="historicalPlaceNames" @input="oninput4" |
| 658 | 658 | v-module="doorplate.historicalPlaceNames" placeholder="请输入" |
| ... | ... | @@ -727,7 +727,7 @@ |
| 727 | 727 | applyId: uni.getStorageSync('USERS_KEY').userId, |
| 728 | 728 | createdUser: uni.getStorageSync('USERS_KEY').userId, |
| 729 | 729 | communityName: null, //小区名称 |
| 730 | - cellType:null,//门牌类型 | |
| 730 | + gridman:null,//门牌类型 | |
| 731 | 731 | formerName: null, //曾用名 |
| 732 | 732 | historicalPlaceNames: null, //历史地名 |
| 733 | 733 | doorNumberFile: null, //门牌文件 |
| ... | ... | @@ -936,7 +936,7 @@ |
| 936 | 936 | }else if (e1 == 6) { |
| 937 | 937 | this.array4type = this.array4[e.detail.value] |
| 938 | 938 | }else if (e1 == 7) { |
| 939 | - this.doorplate.cellType = this.array5[e.detail.value] | |
| 939 | + this.doorplate.gridman = this.array5[e.detail.value] | |
| 940 | 940 | } |
| 941 | 941 | }, |
| 942 | 942 | mapdoorplatesuccess() { | ... | ... |
pages/declaration/declarationList.vue
| 1 | -<template> | |
| 1 | +<template> | |
| 2 | 2 | <view> |
| 3 | 3 | <view v-if="list.length>0"> |
| 4 | 4 | <view class="top-box" v-for="(item,index) in list" :key="index" @click="gopath(type == '7'?'/pages/declaration/newDeclarationdetail?cent='+JSON.stringify(item):'/pages/declaration/declarationListdetail?type= '+type+'¢='+JSON.stringify(item))"> |
| ... | ... | @@ -9,21 +9,21 @@ |
| 9 | 9 | </view> |
| 10 | 10 | </view> |
| 11 | 11 | <view v-else style="width: 100%;text-align: center;margin-top: 100rpx;font-size: 30rpx;"> |
| 12 | - 暂无数据 | |
| 12 | + 暂无数据 | |
| 13 | 13 | </view> |
| 14 | - </view> | |
| 15 | -</template> | |
| 16 | - | |
| 17 | -<script> | |
| 18 | - export default { | |
| 19 | - data() { | |
| 14 | + </view> | |
| 15 | +</template> | |
| 16 | + | |
| 17 | +<script> | |
| 18 | + export default { | |
| 19 | + data() { | |
| 20 | 20 | return { |
| 21 | - type:null, | |
| 21 | + type:null, | |
| 22 | 22 | list:[], |
| 23 | 23 | from:{ |
| 24 | 24 | createdUser:uni.getStorageSync('USERS_KEY').userId, |
| 25 | - } | |
| 26 | - } | |
| 25 | + } | |
| 26 | + } | |
| 27 | 27 | }, |
| 28 | 28 | onLoad() { |
| 29 | 29 | |
| ... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 | |
| 34 | 34 | this.getlist() |
| 35 | 35 | |
| 36 | - }, | |
| 36 | + }, | |
| 37 | 37 | methods: { |
| 38 | 38 | getlist() { |
| 39 | 39 | if(this.type == '1') { |
| ... | ... | @@ -97,11 +97,11 @@ |
| 97 | 97 | uni.navigateTo({ |
| 98 | 98 | url: e |
| 99 | 99 | }) |
| 100 | - }, | |
| 101 | - } | |
| 102 | - } | |
| 103 | -</script> | |
| 104 | - | |
| 100 | + }, | |
| 101 | + } | |
| 102 | + } | |
| 103 | +</script> | |
| 104 | + | |
| 105 | 105 | <style lang="scss"> |
| 106 | 106 | .top-box { |
| 107 | 107 | display: flex; |
| ... | ... | @@ -119,7 +119,7 @@ |
| 119 | 119 | // height: 40rpx; |
| 120 | 120 | } |
| 121 | 121 | } |
| 122 | - } | |
| 122 | + } | |
| 123 | 123 | .content{ |
| 124 | 124 | padding: 20rpx; |
| 125 | 125 | .box_item{ |
| ... | ... | @@ -153,5 +153,5 @@ |
| 153 | 153 | text-align: right; |
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | - } | |
| 157 | -</style> | |
| 156 | + } | |
| 157 | +</style> | ... | ... |
pages/declaration/declarationListdetail.vue
| ... | ... | @@ -363,9 +363,9 @@ |
| 363 | 363 | {{info.historicalPlaceNames?info.historicalPlaceNames:'-'}}</view> |
| 364 | 364 | <view class="info-box-small">历史地名</view> |
| 365 | 365 | </view> |
| 366 | - <view class="info-box-width" style="width: 100%;" v-if="info.cellType"> | |
| 366 | + <view class="info-box-width" style="width: 100%;" v-if="info.gridman"> | |
| 367 | 367 | <view class="info-box-overflow"> |
| 368 | - {{info.cellType?info.cellType:'-'}}</view> | |
| 368 | + {{info.gridman?info.gridman:'-'}}</view> | |
| 369 | 369 | <view class="info-box-small">类型</view> |
| 370 | 370 | </view> |
| 371 | 371 | </view> | ... | ... |
pages/declaration/list.vue
| ... | ... | @@ -24,7 +24,7 @@ |
| 24 | 24 | <image style="height: 120rpx;width: 100%;" src="../../static/ly/image5.png" mode="aspectFit"></image> |
| 25 | 25 | </view> |
| 26 | 26 | <view style="width: 100%;color: #3D3D3D;text-align: center;font-size: 25rpx;margin-top: 10rpx;"> |
| 27 | - 建筑名称备案 | |
| 27 | + 建筑物备案 | |
| 28 | 28 | </view> |
| 29 | 29 | </view> |
| 30 | 30 | <view @click="gopath('/pages/declaration/newDeclaration')" style="width: 49%;padding: 50rpx 30rpx;background: rgba(255,255,255,0.63);border-radius: 30rpx;margin-top:20rpx;"> |
| ... | ... | @@ -41,7 +41,7 @@ |
| 41 | 41 | <image style="height: 120rpx;width: 100%;" src="/static/new/3.png" mode="aspectFit"></image> |
| 42 | 42 | </view> |
| 43 | 43 | <view style="width: 100%;color: #3D3D3D;text-align: center;font-size: 25rpx;margin-top: 10rpx;"> |
| 44 | - 界桩界线管护 | |
| 44 | + 界桩管护 | |
| 45 | 45 | </view> |
| 46 | 46 | </view> |
| 47 | 47 | <view @click="gopath('/pages/map1/map')" style="width: 49%;padding: 50rpx 30rpx;background: rgba(255,255,255,0.63);border-radius: 30rpx;margin-top:20rpx;"> | ... | ... |
pages/declaration/newDeclaration.vue
| ... | ... | @@ -270,6 +270,34 @@ |
| 270 | 270 | </view> |
| 271 | 271 | </view> |
| 272 | 272 | </view> |
| 273 | + <view class="info-box" v-else-if="item.type == '9'"> | |
| 274 | + <view class="info-box-list"> | |
| 275 | + <view class="serve"> | |
| 276 | + <view class="serve-title">{{item.name}}<span v-if="item.isbx" style="color: red;margin-left: 6rpx;">*</span></view> | |
| 277 | + <view class="serve-right"> | |
| 278 | + <picker @change="e=> bindPickerChange3(e,index,'array6')" :range="array6"> | |
| 279 | + <view :class="item.cent?'uni-input1':'uni-input2'">{{item.cent?item.cent:'请选择'}} | |
| 280 | + </view> | |
| 281 | + </picker> | |
| 282 | + <image src="../../static/down3.png"></image> | |
| 283 | + </view> | |
| 284 | + </view> | |
| 285 | + </view> | |
| 286 | + </view> | |
| 287 | + <view class="info-box" v-else-if="item.type == '10'"> | |
| 288 | + <view class="info-box-list"> | |
| 289 | + <view class="serve"> | |
| 290 | + <view class="serve-title">{{item.name}}<span v-if="item.isbx" style="color: red;margin-left: 6rpx;">*</span></view> | |
| 291 | + <view class="serve-right"> | |
| 292 | + <picker @change="e=> bindPickerChange3(e,index,'array7')" :range="array7"> | |
| 293 | + <view :class="item.cent?'uni-input1':'uni-input2'">{{item.cent?item.cent:'请选择'}} | |
| 294 | + </view> | |
| 295 | + </picker> | |
| 296 | + <image src="../../static/down3.png"></image> | |
| 297 | + </view> | |
| 298 | + </view> | |
| 299 | + </view> | |
| 300 | + </view> | |
| 273 | 301 | </view> |
| 274 | 302 | </view> |
| 275 | 303 | <!-- <view class="message-list"> |
| ... | ... | @@ -318,6 +346,8 @@ |
| 318 | 346 | array2: ['可公开', '不宜公开','大洋怪重', '不属于地名'], |
| 319 | 347 | array4: ['现今地名', '历史地名','本地名删除'], |
| 320 | 348 | array5: ['冷泉', '热泉'], |
| 349 | + array6: ['冷泉', '热泉'], | |
| 350 | + array7: ['冷泉', '热泉'], | |
| 321 | 351 | time: null, |
| 322 | 352 | array3: getApp().globalData.list1, |
| 323 | 353 | BASE_URL, |
| ... | ... | @@ -632,12 +662,35 @@ |
| 632 | 662 | }, |
| 633 | 663 | bindPickerChange2: function(e, e1) { |
| 634 | 664 | console.log('picker发送选择改变,携带值为', e, e1,this.array1) |
| 635 | - let box1 = this.array1[0] | |
| 636 | - let box2 = this.array1[1] | |
| 637 | - let box3 = this.array1[2] | |
| 638 | - let box4 = this.array1[3] | |
| 639 | - this.textlist[e1].cent = box4[e.detail.value[3]]?box4[e.detail.value[3]].name:box3[e.detail.value[2]]?box3[e.detail.value[2]].name:box2[e.detail.value[1]]?box2[e.detail.value[1]].name:box1[e.detail.value[0]].name | |
| 640 | - if(this.textlist[e1].cent == '泉') { | |
| 665 | + let text = '' | |
| 666 | + // for (let i = 0; i < this.array1.length; i++) { | |
| 667 | + | |
| 668 | + // if(i == 0) { | |
| 669 | + // text = this.array1[i] | |
| 670 | + // } else { | |
| 671 | + // text =text +'/'+ this.array1[i] | |
| 672 | + // } | |
| 673 | + // } | |
| 674 | + let box1 = this.array1[0][e.detail.value[0]]?this.array1[0][e.detail.value[0]].name:null | |
| 675 | + let box2 = this.array1[1][e.detail.value[1]]?this.array1[1][e.detail.value[1]].name:null | |
| 676 | + let box3 = this.array1[2][e.detail.value[2]]?this.array1[2][e.detail.value[2]].name:null | |
| 677 | + let box4 = this.array1[3][e.detail.value[3]]?this.array1[3][e.detail.value[3]].name:null | |
| 678 | + if(box1) { | |
| 679 | + text = box1 | |
| 680 | + } | |
| 681 | + if(box2) { | |
| 682 | + text = text+'/'+ box2 | |
| 683 | + } | |
| 684 | + if(box3) { | |
| 685 | + text = text+'/'+ box3 | |
| 686 | + } | |
| 687 | + if(box4) { | |
| 688 | + text = text+'/'+ box4 | |
| 689 | + } | |
| 690 | + console.log(box1,box2,box3,box4,text) | |
| 691 | + this.textlist[e1].cent = text | |
| 692 | + // this.textlist[e1].cent = box4[e.detail.value[3]]?box4[e.detail.value[3]].name:box3[e.detail.value[2]]?box3[e.detail.value[2]].name:box2[e.detail.value[1]]?box2[e.detail.value[1]].name:box1[e.detail.value[0]].name | |
| 693 | + if(text == '陆地水系/泉') { | |
| 641 | 694 | this.array5 = ['冷泉', '热泉'] |
| 642 | 695 | this.newtextlist = [ |
| 643 | 696 | { |
| ... | ... | @@ -690,7 +743,7 @@ |
| 690 | 743 | from:'name6' |
| 691 | 744 | }, |
| 692 | 745 | ] |
| 693 | - } else if(this.textlist[e1].cent == '瀑布') { | |
| 746 | + } else if(text == '陆地水系/瀑布') { | |
| 694 | 747 | this.newtextlist = [ |
| 695 | 748 | { |
| 696 | 749 | name: '最大落差(米)', |
| ... | ... | @@ -721,12 +774,355 @@ |
| 721 | 774 | from:'name0' |
| 722 | 775 | }, |
| 723 | 776 | ] |
| 724 | - }else if(this.textlist[e1].cent == '') { | |
| 725 | - | |
| 726 | - }else if(this.textlist[e1].cent == '') { | |
| 727 | - | |
| 777 | + }else if(text == '陆地水系/湖泊') { | |
| 778 | + this.array5 = ['常年湖', '时令湖'] | |
| 779 | + this.array6 = ['淡水湖', '咸水湖'] | |
| 780 | + this.newtextlist = [ | |
| 781 | + { | |
| 782 | + name: '类型1', | |
| 783 | + type: '8', | |
| 784 | + isbx:true, | |
| 785 | + cent: '', | |
| 786 | + from:'name0' | |
| 787 | + }, | |
| 788 | + { | |
| 789 | + name: '类型2', | |
| 790 | + type: '9', | |
| 791 | + isbx:true, | |
| 792 | + cent: '', | |
| 793 | + from:'name0' | |
| 794 | + }, | |
| 795 | + { | |
| 796 | + name: '面(平方干米)', | |
| 797 | + type: '1', | |
| 798 | + isbx:true, | |
| 799 | + cent: '', | |
| 800 | + from:'name0' | |
| 801 | + }, | |
| 802 | + { | |
| 803 | + name: '最大长度(千米)', | |
| 804 | + type: '1', | |
| 805 | + isbx:false, | |
| 806 | + cent: '', | |
| 807 | + from:'name0' | |
| 808 | + }, | |
| 809 | + { | |
| 810 | + name: '最大宽度(千米)', | |
| 811 | + type: '1', | |
| 812 | + isbx:false, | |
| 813 | + cent: '', | |
| 814 | + from:'name0' | |
| 815 | + }, | |
| 816 | + { | |
| 817 | + name: '平均水深(米)', | |
| 818 | + type: '1', | |
| 819 | + isbx:false, | |
| 820 | + cent: '', | |
| 821 | + from:'name0' | |
| 822 | + }, | |
| 823 | + { | |
| 824 | + name: '最大水深(米)', | |
| 825 | + type: '1', | |
| 826 | + isbx:false, | |
| 827 | + cent: '', | |
| 828 | + from:'name0' | |
| 829 | + }, | |
| 830 | + { | |
| 831 | + name: '主要水源', | |
| 832 | + type: '1', | |
| 833 | + isbx:false, | |
| 834 | + cent: '', | |
| 835 | + from:'name0' | |
| 836 | + }, | |
| 837 | + ] | |
| 838 | + }else if(text == '陆地水系/冰川') { | |
| 839 | + this.newtextlist = [ | |
| 840 | + { | |
| 841 | + name: '面积(平方千米)', | |
| 842 | + type: '1', | |
| 843 | + isbx:false, | |
| 844 | + cent: '', | |
| 845 | + from:'name0' | |
| 846 | + }, | |
| 847 | + { | |
| 848 | + name: '长度(千米)', | |
| 849 | + type: '1', | |
| 850 | + isbx:false, | |
| 851 | + cent: '', | |
| 852 | + from:'name0' | |
| 853 | + }, | |
| 854 | + { | |
| 855 | + name: '宽度(千米)', | |
| 856 | + type: '1', | |
| 857 | + isbx:false, | |
| 858 | + cent: '', | |
| 859 | + from:'name0' | |
| 860 | + }, | |
| 861 | + { | |
| 862 | + name: '冰层厚度(米)', | |
| 863 | + type: '1', | |
| 864 | + isbx:false, | |
| 865 | + cent: '', | |
| 866 | + from:'name0' | |
| 867 | + }, | |
| 868 | + { | |
| 869 | + name: '海拔(米)', | |
| 870 | + type: '1', | |
| 871 | + isbx:false, | |
| 872 | + cent: '', | |
| 873 | + from:'name0' | |
| 874 | + }, | |
| 875 | + { | |
| 876 | + name: '所属山系', | |
| 877 | + type: '1', | |
| 878 | + isbx:false, | |
| 879 | + cent: '', | |
| 880 | + from:'name0' | |
| 881 | + }, | |
| 882 | + ] | |
| 883 | + }else if(text == '陆地水系/河流/河源') { | |
| 884 | + this.newtextlist = [] | |
| 885 | + }else if(text == '陆地水系/河流/峡谷') { | |
| 886 | + this.newtextlist = [ | |
| 887 | + { | |
| 888 | + name: '长度(千米)', | |
| 889 | + type: '1', | |
| 890 | + isbx:false, | |
| 891 | + cent: '', | |
| 892 | + from:'name0' | |
| 893 | + }, | |
| 894 | + { | |
| 895 | + name: '宽度(千米)', | |
| 896 | + type: '1', | |
| 897 | + isbx:false, | |
| 898 | + cent: '', | |
| 899 | + from:'name0' | |
| 900 | + }, | |
| 901 | + { | |
| 902 | + name: '走向', | |
| 903 | + type: '1', | |
| 904 | + isbx:false, | |
| 905 | + cent: '', | |
| 906 | + from:'name0' | |
| 907 | + }, | |
| 908 | + { | |
| 909 | + name: '所属山系', | |
| 910 | + type: '1', | |
| 911 | + isbx:false, | |
| 912 | + cent: '', | |
| 913 | + from:'name0' | |
| 914 | + }, | |
| 915 | + { | |
| 916 | + name: '起点名', | |
| 917 | + type: '1', | |
| 918 | + isbx:false, | |
| 919 | + cent: '', | |
| 920 | + from:'name0' | |
| 921 | + }, | |
| 922 | + { | |
| 923 | + name: '止点名', | |
| 924 | + type: '1', | |
| 925 | + isbx:false, | |
| 926 | + cent: '', | |
| 927 | + from:'name0' | |
| 928 | + }, | |
| 929 | + { | |
| 930 | + name: '河流名', | |
| 931 | + type: '1', | |
| 932 | + isbx:false, | |
| 933 | + cent: '', | |
| 934 | + from:'name0' | |
| 935 | + }, | |
| 936 | + ] | |
| 937 | + }else if(text == '陆地水系/河流/河滩') { | |
| 938 | + this.newtextlist = [ | |
| 939 | + { | |
| 940 | + name: '面积(平方千米)', | |
| 941 | + type: '1', | |
| 942 | + isbx:false, | |
| 943 | + cent: '', | |
| 944 | + from:'name0' | |
| 945 | + }, | |
| 946 | + ] | |
| 947 | + }else if(text == '陆地水系/河流/阶地') { | |
| 948 | + this.newtextlist = [ | |
| 949 | + { | |
| 950 | + name: '高度(米)', | |
| 951 | + type: '1', | |
| 952 | + isbx:false, | |
| 953 | + cent: '', | |
| 954 | + from:'name0' | |
| 955 | + }, | |
| 956 | + { | |
| 957 | + name: '阶地级数', | |
| 958 | + type: '1', | |
| 959 | + isbx:false, | |
| 960 | + cent: '', | |
| 961 | + from:'name0' | |
| 962 | + }, | |
| 963 | + { | |
| 964 | + name: '陡坎角度', | |
| 965 | + type: '1', | |
| 966 | + isbx:false, | |
| 967 | + cent: '', | |
| 968 | + from:'name0' | |
| 969 | + }, | |
| 970 | + { | |
| 971 | + name: '所属河流', | |
| 972 | + type: '1', | |
| 973 | + isbx:false, | |
| 974 | + cent: '', | |
| 975 | + from:'name0' | |
| 976 | + }, | |
| 977 | + ] | |
| 978 | + }else if(text == '陆地水系/河流/河湾') { | |
| 979 | + this.newtextlist = [ | |
| 980 | + { | |
| 981 | + name: '所在河流', | |
| 982 | + type: '1', | |
| 983 | + isbx:false, | |
| 984 | + cent: '', | |
| 985 | + from:'name0' | |
| 986 | + } | |
| 987 | + ] | |
| 988 | + }else if(text == '陆地水系/河流/河口') { | |
| 989 | + this.array5 = ['滨海', '滨湖','滨河'] | |
| 990 | + this.newtextlist = [ | |
| 991 | + { | |
| 992 | + name: '类型', | |
| 993 | + type: '8', | |
| 994 | + isbx:true, | |
| 995 | + cent: '', | |
| 996 | + from:'name0' | |
| 997 | + }, | |
| 998 | + ] | |
| 999 | + }else if(text == '陆地水系/河流/三角洲') { | |
| 1000 | + this.array5 = ['滨海', '滨湖','滨河'] | |
| 1001 | + this.newtextlist = [ | |
| 1002 | + { | |
| 1003 | + name: '类型', | |
| 1004 | + type: '8', | |
| 1005 | + isbx:true, | |
| 1006 | + cent: '', | |
| 1007 | + from:'name0' | |
| 1008 | + }, | |
| 1009 | + { | |
| 1010 | + name: '面积(平方千米)', | |
| 1011 | + type: '1', | |
| 1012 | + isbx:true, | |
| 1013 | + cent: '', | |
| 1014 | + from:'name0' | |
| 1015 | + }, | |
| 1016 | + { | |
| 1017 | + name: '海拔(米)', | |
| 1018 | + type: '1', | |
| 1019 | + isbx:false, | |
| 1020 | + cent: '', | |
| 1021 | + from:'name0' | |
| 1022 | + }, | |
| 1023 | + ] | |
| 1024 | + }else if(text == '陆地水系/河流/本级') { | |
| 1025 | + this.array5 = ['内流河', '外流河'] | |
| 1026 | + this.array6 = ['地上河', '地下河'] | |
| 1027 | + this.array7 = ['常年河', '季节河'] | |
| 1028 | + this.newtextlist = [ | |
| 1029 | + { | |
| 1030 | + name: '长度(千米)', | |
| 1031 | + type: '1', | |
| 1032 | + isbx:true, | |
| 1033 | + cent: '', | |
| 1034 | + from:'name0' | |
| 1035 | + }, | |
| 1036 | + { | |
| 1037 | + name: '流域面积(平方千米)', | |
| 1038 | + type: '1', | |
| 1039 | + isbx:false, | |
| 1040 | + cent: '', | |
| 1041 | + from:'name0' | |
| 1042 | + }, | |
| 1043 | + { | |
| 1044 | + name: '主要支流', | |
| 1045 | + type: '1', | |
| 1046 | + isbx:false, | |
| 1047 | + cent: '', | |
| 1048 | + from:'name0' | |
| 1049 | + }, | |
| 1050 | + { | |
| 1051 | + name: '河流级别', | |
| 1052 | + type: '1', | |
| 1053 | + isbx:true, | |
| 1054 | + cent: '', | |
| 1055 | + from:'name0' | |
| 1056 | + }, | |
| 1057 | + { | |
| 1058 | + name: '河流类别1', | |
| 1059 | + type: '8', | |
| 1060 | + isbx:true, | |
| 1061 | + cent: '', | |
| 1062 | + from:'name0' | |
| 1063 | + }, | |
| 1064 | + { | |
| 1065 | + name: '河流类别2', | |
| 1066 | + type: '9', | |
| 1067 | + isbx:true, | |
| 1068 | + cent: '', | |
| 1069 | + from:'name0' | |
| 1070 | + }, | |
| 1071 | + { | |
| 1072 | + name: '河流类别3', | |
| 1073 | + type: '10', | |
| 1074 | + isbx:true, | |
| 1075 | + cent: '', | |
| 1076 | + from:'name0' | |
| 1077 | + }, | |
| 1078 | + { | |
| 1079 | + name: '主要水文站', | |
| 1080 | + type: '1', | |
| 1081 | + isbx:false, | |
| 1082 | + cent: '', | |
| 1083 | + from:'name0' | |
| 1084 | + }, | |
| 1085 | + { | |
| 1086 | + name: '径流量(立方米/秒)', | |
| 1087 | + type: '1', | |
| 1088 | + isbx:false, | |
| 1089 | + cent: '', | |
| 1090 | + from:'name0' | |
| 1091 | + }, | |
| 1092 | + ] | |
| 1093 | + }else if(text == '陆地水系/陆地岛屿/矶' || text == '陆地水系/陆地岛屿/湖岛' || text == '陆地水系/陆地岛屿/洲河岛') { | |
| 1094 | + this.array5 = ['基岩', '冲洪积'] | |
| 1095 | + this.newtextlist = [ | |
| 1096 | + { | |
| 1097 | + name: '类型', | |
| 1098 | + type: '8', | |
| 1099 | + isbx:true, | |
| 1100 | + cent: '', | |
| 1101 | + from:'name0' | |
| 1102 | + }, | |
| 1103 | + { | |
| 1104 | + name: '面积(平方千米)', | |
| 1105 | + type: '1', | |
| 1106 | + isbx:true, | |
| 1107 | + cent: '', | |
| 1108 | + from:'name0' | |
| 1109 | + }, | |
| 1110 | + { | |
| 1111 | + name: '近陆距离(千米)', | |
| 1112 | + type: '1', | |
| 1113 | + isbx:false, | |
| 1114 | + cent: '', | |
| 1115 | + from:'name0' | |
| 1116 | + }, | |
| 1117 | + { | |
| 1118 | + name: '植被覆盖率(%)', | |
| 1119 | + type: '1', | |
| 1120 | + isbx:false, | |
| 1121 | + cent: '', | |
| 1122 | + from:'name0' | |
| 1123 | + }, | |
| 1124 | + ] | |
| 728 | 1125 | } |
| 729 | - | |
| 730 | 1126 | this.newtextlist.push( |
| 731 | 1127 | { |
| 732 | 1128 | name: '所在(跨) 行政区', | ... | ... |
pages/declaration/newDeclarationdetail.vue
| ... | ... | @@ -57,27 +57,8 @@ |
| 57 | 57 | </view> |
| 58 | 58 | </view> |
| 59 | 59 | </view> |
| 60 | - <view class="content" v-if="info.remarksField2"> | |
| 61 | - <view class="message-list"> | |
| 62 | - <view class="titleall-box"> | |
| 63 | - <view class="titleall-left"> | |
| 64 | - <view class="titleall-left-line"></view>处理结果 | |
| 65 | - </view> | |
| 66 | - </view> | |
| 67 | - <view class="info-box"> | |
| 68 | - <view class="info-box-list"> | |
| 69 | - <view class="info-box-width" style="width: 100%;"> | |
| 70 | - <view class="info-box-overflow"> | |
| 71 | - {{info.remarksField2?info.remarksField2:'-'}}</view> | |
| 72 | - | |
| 73 | - </view> | |
| 74 | - | |
| 75 | - </view> | |
| 76 | - </view> | |
| 77 | - </view> | |
| 78 | - </view> | |
| 79 | - <view class="skip-btn" v-if="info.filePath"> | |
| 80 | - <view class="buy-at" @click="downfile(info.filePath)"> | |
| 60 | + <view class="skip-btn" v-if="info.remarksField2"> | |
| 61 | + <view class="buy-at" @click="downfile(info.remarksField2)"> | |
| 81 | 62 | <image src="../../static/btn7.png"></image> |
| 82 | 63 | <text>批复文件下载</text> |
| 83 | 64 | </view> | ... | ... |
pages/home/home.vue
| ... | ... | @@ -110,7 +110,7 @@ |
| 110 | 110 | <view style="margin-bottom: 20rpx;"> |
| 111 | 111 | <image src="/static/ly/image5.png" style="width: 60%;height: 90rpx;" mode=""></image> |
| 112 | 112 | </view> |
| 113 | - <view class="text">建筑物名称备案</view> | |
| 113 | + <view class="text">建筑物备案</view> | |
| 114 | 114 | </view> |
| 115 | 115 | <view class="box_item" @click="gopath('/pages/declaration/newDeclaration')"> |
| 116 | 116 | <view style="margin-bottom: 20rpx;"> |
| ... | ... | @@ -124,7 +124,7 @@ |
| 124 | 124 | <view style="margin-bottom: 20rpx;"> |
| 125 | 125 | <image src="/static/new/image 2.png" style="width: 60%;height: 90rpx;" mode=""></image> |
| 126 | 126 | </view> |
| 127 | - <view class="text">地名查询</view> | |
| 127 | + <view class="text">地名查询服务</view> | |
| 128 | 128 | </view> |
| 129 | 129 | <view class="box_item" @click="gopath('/pages/maptask/maptask')"> |
| 130 | 130 | <view style="margin-bottom: 20rpx;"> | ... | ... |
pages/mapstakelinedetail/addmapstakelinedetail.vue
| ... | ... | @@ -232,13 +232,7 @@ |
| 232 | 232 | }, |
| 233 | 233 | }, |
| 234 | 234 | lbbox: [], |
| 235 | - textlist: [{ | |
| 236 | - name: '界线名称', | |
| 237 | - type: '1', | |
| 238 | - isbx: false, | |
| 239 | - cent: '', | |
| 240 | - from: 'boundaryName' | |
| 241 | - }, | |
| 235 | + textlist: [ | |
| 242 | 236 | { |
| 243 | 237 | name: '界桩编号', |
| 244 | 238 | type: '1', |
| ... | ... | @@ -299,10 +293,16 @@ |
| 299 | 293 | return parseInt(88 * uni.getSystemInfoSync().windowWidth / 750) + uni.getSystemInfoSync().statusBarHeight |
| 300 | 294 | } |
| 301 | 295 | }, |
| 302 | - onLoad(params) { | |
| 303 | - let from = params.cent?JSON.parse(params.cent):'' | |
| 304 | - console.log(from) | |
| 305 | - this.from = params.cent?JSON.parse(params.cent):'' | |
| 296 | + async onLoad(params) { | |
| 297 | + | |
| 298 | + let from1 = params.cent?JSON.parse(params.cent):'' | |
| 299 | + console.log(from1) | |
| 300 | + let from = null | |
| 301 | + await this.API.getariesInfo(from1.id).then(res => { | |
| 302 | + console.log(res); | |
| 303 | + from = res.data | |
| 304 | + }) | |
| 305 | + this.from = from | |
| 306 | 306 | if(from) { |
| 307 | 307 | for (let i = 0; i < this.textlist.length; i++) { |
| 308 | 308 | if(this.textlist[i].from == 'location') { |
| ... | ... | @@ -313,11 +313,15 @@ |
| 313 | 313 | this.textlist[i].cent = from[this.textlist[i].from] |
| 314 | 314 | } |
| 315 | 315 | } |
| 316 | - this.fileList.push({ | |
| 317 | - name: from.imageInfo, | |
| 318 | - fileId: from.imageInfo, | |
| 319 | - url: this.BASE_URL + from.imageInfo | |
| 320 | - }) | |
| 316 | + | |
| 317 | + if(from.imageInfo) { | |
| 318 | + this.fileList.push({ | |
| 319 | + name: from.imageInfo, | |
| 320 | + fileId: from.imageInfo, | |
| 321 | + url: this.BASE_URL +from.imageInfo | |
| 322 | + }) | |
| 323 | + } | |
| 324 | + | |
| 321 | 325 | } |
| 322 | 326 | }, |
| 323 | 327 | methods: { | ... | ... |
pages/mapstakelinedetail/mapstakelinedetail.vue
| ... | ... | @@ -24,9 +24,13 @@ |
| 24 | 24 | <view class="info-box-small">界桩编号</view> |
| 25 | 25 | </view> |
| 26 | 26 | <view class="info-box-width"> |
| 27 | + <view>{{info.enteredUser?info.enteredUser:'-'}}</view> | |
| 28 | + <view class="info-box-small">录入人姓名</view> | |
| 29 | + </view> | |
| 30 | + <!-- <view class="info-box-width"> | |
| 27 | 31 | <view>{{info.boundaryName || '-'}}</view> |
| 28 | 32 | <view class="info-box-small">界线名称</view> |
| 29 | - </view> | |
| 33 | + </view> --> | |
| 30 | 34 | <!-- <view class="info-box-width"> |
| 31 | 35 | <view>北纬{{info.latitude}},东经{{info.longitude}}</view> |
| 32 | 36 | <view class="info-box-small">经纬度</view> |
| ... | ... | @@ -67,10 +71,7 @@ |
| 67 | 71 | <view>{{info.enteredTime?info.enteredTime:'-'}}</view> |
| 68 | 72 | <view class="info-box-small">设立时间</view> |
| 69 | 73 | </view> |
| 70 | - <view class="info-box-width"> | |
| 71 | - <view>{{info.enteredUser?info.enteredUser:'-'}}</view> | |
| 72 | - <view class="info-box-small">录入人姓名</view> | |
| 73 | - </view> | |
| 74 | + | |
| 74 | 75 | </view> |
| 75 | 76 | <view class="info-box-list" v-if="info.imageInfo"> |
| 76 | 77 | <view class="info-box-width"> | ... | ... |
pages/receiptRegistration/organization.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <!-- 机构 --> | |
| 3 | + <view class="page"> | |
| 4 | + <view class="content"> | |
| 5 | + <view class="top-box" @click="gopath('/pages/receiptRegistration/receiptRegistrationList')"> | |
| 6 | + <view>上报历史</view> | |
| 7 | + <view class="top-box-img"> | |
| 8 | + <image src="../../static/right2.png"></image> | |
| 9 | + </view> | |
| 10 | + </view> | |
| 11 | + <view class="titleall-left"> | |
| 12 | + <view class="titleall-left-line"></view>我要上报 | |
| 13 | + </view> | |
| 14 | + <view class="message-list"> | |
| 15 | + <view class="info-box"> | |
| 16 | + <view class="info-box-list"> | |
| 17 | + <view class="serve"> | |
| 18 | + <view class="serve-title">发生地点</view> | |
| 19 | + <view> | |
| 20 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 21 | + v-model="form.incidentLocation" placeholder="请输入" style="text-align: right;" /> | |
| 22 | + </view> | |
| 23 | + </view> | |
| 24 | + </view> | |
| 25 | + </view> | |
| 26 | + <view class="info-box"> | |
| 27 | + <view class="info-box-list"> | |
| 28 | + <view class="serve"> | |
| 29 | + <view class="serve-title">儿童姓名</view> | |
| 30 | + <view> | |
| 31 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 32 | + v-model="form.childName" placeholder="请输入" style="text-align: right;" /> | |
| 33 | + </view> | |
| 34 | + </view> | |
| 35 | + </view> | |
| 36 | + </view> | |
| 37 | + <view class="info-box"> | |
| 38 | + <view class="info-box-list"> | |
| 39 | + <view class="serve"> | |
| 40 | + <view class="serve-title">儿童性别</view> | |
| 41 | + <view class="serve-right"> | |
| 42 | + <picker @change="bindPickerChangeSex" :value="index" :range="sexArray"> | |
| 43 | + <view class="uni-input">{{form.sex?sexArray[form.sex]:'请选择'}}</view> | |
| 44 | + </picker> | |
| 45 | + <image src="../../static/down3.png"></image> | |
| 46 | + </view> | |
| 47 | + </view> | |
| 48 | + </view> | |
| 49 | + </view> | |
| 50 | + <view class="info-box"> | |
| 51 | + <view class="info-box-list"> | |
| 52 | + <view class="serve"> | |
| 53 | + <view class="serve-title">儿童年龄</view> | |
| 54 | + <view> | |
| 55 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 56 | + v-model="form.age" placeholder="请输入" style="text-align: right;" /> | |
| 57 | + </view> | |
| 58 | + </view> | |
| 59 | + </view> | |
| 60 | + </view> | |
| 61 | + <view class="info-box"> | |
| 62 | + <view class="info-box-list"> | |
| 63 | + <view class="serve"> | |
| 64 | + <view class="serve-title">报告原因</view> | |
| 65 | + <view> | |
| 66 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 67 | + v-model="form.reportReason" placeholder="请输入" style="text-align: right;" /> | |
| 68 | + </view> | |
| 69 | + </view> | |
| 70 | + </view> | |
| 71 | + </view> | |
| 72 | + <view class="info-box"> | |
| 73 | + <view class="info-box-list"> | |
| 74 | + <view class="serve"> | |
| 75 | + <view class="serve-title">其他信息</view> | |
| 76 | + <view> | |
| 77 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 78 | + v-model="form.reportRecord" placeholder="请输入" style="text-align: right;" /> | |
| 79 | + </view> | |
| 80 | + </view> | |
| 81 | + </view> | |
| 82 | + </view> | |
| 83 | + </view> | |
| 84 | + <view class="titleall-left"> | |
| 85 | + <view class="titleall-left-line"></view>报告人信息 | |
| 86 | + </view> | |
| 87 | + <view class="message-list"> | |
| 88 | + <view class="info-box"> | |
| 89 | + <view class="info-box-list"> | |
| 90 | + <view class="serve"> | |
| 91 | + <view class="serve-title">所属机构</view> | |
| 92 | + <view class="serve-right"> | |
| 93 | + <picker @change="organization" :value="index2" :range="organizationArray"> | |
| 94 | + <view class="uni-input">{{form.filingAgencyName?organizationArray[index2]:'请选择'}} | |
| 95 | + </view> | |
| 96 | + </picker> | |
| 97 | + <image src="../../static/down3.png"></image> | |
| 98 | + </view> | |
| 99 | + </view> | |
| 100 | + </view> | |
| 101 | + </view> | |
| 102 | + <view class="info-box"> | |
| 103 | + <view class="info-box-list"> | |
| 104 | + <view class="serve"> | |
| 105 | + <view class="serve-title">报告类型</view> | |
| 106 | + <view class="serve-right"> | |
| 107 | + <picker @change="report" :value="index1" :range="reportArray"> | |
| 108 | + <view class="uni-input">{{form.reportType?reportArray[index1]:'请选择'}}</view> | |
| 109 | + </picker> | |
| 110 | + <image src="../../static/down3.png"></image> | |
| 111 | + </view> | |
| 112 | + </view> | |
| 113 | + </view> | |
| 114 | + </view> | |
| 115 | + <view class="info-box"> | |
| 116 | + <view class="info-box-list"> | |
| 117 | + <view class="serve"> | |
| 118 | + <view class="serve-title">姓名</view> | |
| 119 | + <view> | |
| 120 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 121 | + v-model="form.reporterName" placeholder="请输入" style="text-align: right;" /> | |
| 122 | + </view> | |
| 123 | + </view> | |
| 124 | + </view> | |
| 125 | + </view> | |
| 126 | + <view class="info-box"> | |
| 127 | + <view class="info-box-list"> | |
| 128 | + <view class="serve"> | |
| 129 | + <view class="serve-title">与儿童关系</view> | |
| 130 | + <view> | |
| 131 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 132 | + v-model="form.relationshipWithChild" placeholder="请输入" style="text-align: right;" /> | |
| 133 | + </view> | |
| 134 | + </view> | |
| 135 | + </view> | |
| 136 | + </view> | |
| 137 | + <view class="info-box"> | |
| 138 | + <view class="info-box-list"> | |
| 139 | + <view class="serve"> | |
| 140 | + <view class="serve-title">电话</view> | |
| 141 | + <view> | |
| 142 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 143 | + v-model="form.phone" placeholder="请输入" style="text-align: right;" /> | |
| 144 | + </view> | |
| 145 | + </view> | |
| 146 | + </view> | |
| 147 | + </view> | |
| 148 | + <view class="info-box"> | |
| 149 | + <view class="info-box-list"> | |
| 150 | + <view class="serve"> | |
| 151 | + <view class="serve-title">报告主体</view> | |
| 152 | + <view class="serve-right"> | |
| 153 | + <picker @change="bindPickerChangeSubject" :value="index" :range="SubjectArray"> | |
| 154 | + <view class="uni-input">{{form.reporterType?SubjectArray[index]:'请选择'}}</view> | |
| 155 | + </picker> | |
| 156 | + <image src="../../static/down3.png"></image> | |
| 157 | + </view> | |
| 158 | + </view> | |
| 159 | + </view> | |
| 160 | + </view> | |
| 161 | + <view class="info-box" v-if="form.reporterType == '群众'"> | |
| 162 | + <view class="info-box-list"> | |
| 163 | + <view class="serve"> | |
| 164 | + <view class="serve-title">职业</view> | |
| 165 | + <view> | |
| 166 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 167 | + v-model="form.reporterOccupation" placeholder="请输入" style="text-align: right;" /> | |
| 168 | + </view> | |
| 169 | + </view> | |
| 170 | + </view> | |
| 171 | + </view> | |
| 172 | + <view class="info-box" v-if="form.reporterType == '单位' || form.reporterType == '社会组织'"> | |
| 173 | + <view class="info-box-list"> | |
| 174 | + <view class="serve"> | |
| 175 | + <view class="serve-title">单位名称</view> | |
| 176 | + <view> | |
| 177 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" | |
| 178 | + v-model="form.reporterOrganizationName" placeholder="请输入" | |
| 179 | + style="text-align: right;" /> | |
| 180 | + </view> | |
| 181 | + </view> | |
| 182 | + </view> | |
| 183 | + </view> | |
| 184 | + </view> | |
| 185 | + <view class="page-footer"> | |
| 186 | + <view class="footer-buy"> | |
| 187 | + <view class="cart-add" @click="register"> | |
| 188 | + <image src="../../static/btn5.png"></image> | |
| 189 | + <text>立即上报</text> | |
| 190 | + </view> | |
| 191 | + </view> | |
| 192 | + </view> | |
| 193 | + | |
| 194 | + </view> | |
| 195 | + </view> | |
| 196 | + </view> | |
| 197 | +</template> | |
| 198 | + | |
| 199 | +<script> | |
| 200 | + export default { | |
| 201 | + data() { | |
| 202 | + return { | |
| 203 | + form: { | |
| 204 | + reportTime: "", | |
| 205 | + reportPlatform: "", | |
| 206 | + incidentLocation: "", | |
| 207 | + childName: "", | |
| 208 | + sex: "", | |
| 209 | + age: "", | |
| 210 | + reportReason: "", | |
| 211 | + reportRecord: "", | |
| 212 | + reporterName: "", | |
| 213 | + relationshipWithChild: "", | |
| 214 | + phone: "", | |
| 215 | + reporterType: "", | |
| 216 | + reporterOrganizationName: "", | |
| 217 | + reporterOccupation: "", | |
| 218 | + userId: uni.getStorageSync('USERS_KEY').userId, | |
| 219 | + reportPlatform: '' | |
| 220 | + }, | |
| 221 | + pages: { | |
| 222 | + roleName: '机构用户' | |
| 223 | + }, | |
| 224 | + // 性别下拉框 | |
| 225 | + sexArray: ['男', '女'], | |
| 226 | + // 报告主体 | |
| 227 | + SubjectArray: ['群众', '单位', '社会组织'], | |
| 228 | + reportArray: ['强制报告', '机构项目'], | |
| 229 | + organizationArray: [], | |
| 230 | + organization1: [], | |
| 231 | + index: 0, | |
| 232 | + index1: 0, | |
| 233 | + index2: 0, | |
| 234 | + }; | |
| 235 | + }, | |
| 236 | + created() { | |
| 237 | + this.getListRoles(); | |
| 238 | + }, | |
| 239 | + methods: { | |
| 240 | + gopath(e) { | |
| 241 | + uni.navigateTo({ | |
| 242 | + url: e | |
| 243 | + }) | |
| 244 | + }, | |
| 245 | + // 选择性别 | |
| 246 | + bindPickerChangeSex: function(e) { | |
| 247 | + console.log('picker发送选择改变,携带值为', e) | |
| 248 | + this.form.sex = e.detail.value; | |
| 249 | + }, | |
| 250 | + // 选择主体 | |
| 251 | + bindPickerChangeSubject: function(e) { | |
| 252 | + console.log('picker发送选择改变,携带值为', e) | |
| 253 | + this.index = e.detail.value; | |
| 254 | + this.form.reporterType = this.SubjectArray[this.index]; | |
| 255 | + }, | |
| 256 | + // 选择报告类型 | |
| 257 | + report: function(e) { | |
| 258 | + console.log('picker发送选择改变,携带值为', e) | |
| 259 | + this.index1 = e.detail.value; | |
| 260 | + this.form.reportType = this.reportArray[this.index1]; | |
| 261 | + }, | |
| 262 | + // 选择机构 | |
| 263 | + organization: function(e) { | |
| 264 | + console.log('picker发送选择改变,携带值为', e) | |
| 265 | + this.index2 = e.detail.value; | |
| 266 | + this.form.filingAgencyName = this.organizationArray[this.index2]; | |
| 267 | + }, | |
| 268 | + // 获取当前时间 | |
| 269 | + getTime() { | |
| 270 | + var now = new Date(); | |
| 271 | + var year = now.getFullYear(); //获取完整的年份(4位,1970-????) | |
| 272 | + var month = now.getMonth() + 1; //获取当前月份(0-11,0代表1月) | |
| 273 | + var day = now.getDate(); //获取当前日(1-31) | |
| 274 | + var hour = now.getHours(); //获取当前小时数(0-23) | |
| 275 | + var minute = now.getMinutes(); //获取当前分钟数(0-59) | |
| 276 | + var second = now.getSeconds(); //获取当前秒数(0-59) | |
| 277 | + this.form.reportTime = year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : | |
| 278 | + day) + " " + (hour < 10 ? "0" + hour : hour) + ":" + (minute < 10 ? "0" + minute : minute) + ":" + ( | |
| 279 | + second < 10 ? "0" + second : second); | |
| 280 | + }, | |
| 281 | + register() { | |
| 282 | + this.getTime(); | |
| 283 | + this.form.filingType = '机构'; | |
| 284 | + this.form.reportPlatform = this.form.filingAgencyName; | |
| 285 | + this.organization1.forEach(item => { | |
| 286 | + if (this.form.filingAgencyName == item.userName) { | |
| 287 | + this.form.filingAgencyId = item.userId | |
| 288 | + } | |
| 289 | + }) | |
| 290 | + console.log(this.form) | |
| 291 | + this.API.addRegistration(this.form).then(res => { | |
| 292 | + console.log(res) | |
| 293 | + if (res.code == 200) { | |
| 294 | + uni.showToast({ | |
| 295 | + icon: 'success', | |
| 296 | + title: '上报成功' | |
| 297 | + }) | |
| 298 | + setTimeout(() => { | |
| 299 | + uni.redirectTo({ | |
| 300 | + url: '/pages/receiptRegistrationSuccess/receiptRegistrationSuccess', | |
| 301 | + }) | |
| 302 | + }, 800) | |
| 303 | + } | |
| 304 | + }) | |
| 305 | + }, | |
| 306 | + // 获得机构 | |
| 307 | + getListRoles() { | |
| 308 | + this.API.getListRoles(this.pages).then(res => { | |
| 309 | + console.log(res) | |
| 310 | + if (res.code == 200) { | |
| 311 | + this.organization1 = res.data; | |
| 312 | + res.data.forEach(item => { | |
| 313 | + this.organizationArray.push(item.userName) | |
| 314 | + }) | |
| 315 | + } | |
| 316 | + }) | |
| 317 | + | |
| 318 | + } | |
| 319 | + } | |
| 320 | + } | |
| 321 | +</script> | |
| 322 | + | |
| 323 | +<style scoped lang="scss"> | |
| 324 | + @import 'receiptRegistration.scss'; | |
| 325 | +</style> | |
| 0 | 326 | \ No newline at end of file | ... | ... |
pages/receiptRegistration/receiptRegistration.vue
| 1 | -<template> | |
| 2 | - <view class="page"> | |
| 3 | - <view class="content"> | |
| 4 | - <view class="top-box" @click="gopath('/pages/receiptRegistration/receiptRegistrationList')"> | |
| 5 | - <view>上报历史</view> | |
| 6 | - <view class="top-box-img"><image src="../../static/right2.png"></image></view> | |
| 7 | - </view> | |
| 8 | - <view class="titleall-left"><view class="titleall-left-line"></view>我要上报</view> | |
| 9 | - <view class="message-list"> | |
| 10 | - <view class="info-box"> | |
| 11 | - <view class="info-box-list"> | |
| 12 | - <view class="serve"> | |
| 13 | - <view class="serve-title">发生地点</view> | |
| 14 | - <view> | |
| 15 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.incidentLocation" placeholder="请输入" style="text-align: right;"/> | |
| 16 | - </view> | |
| 17 | - </view> | |
| 18 | - </view> | |
| 19 | - </view> | |
| 20 | - <view class="info-box"> | |
| 21 | - <view class="info-box-list"> | |
| 22 | - <view class="serve"> | |
| 23 | - <view class="serve-title">儿童姓名</view> | |
| 24 | - <view> | |
| 25 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.childName" placeholder="请输入" style="text-align: right;"/> | |
| 26 | - </view> | |
| 27 | - </view> | |
| 28 | - </view> | |
| 29 | - </view> | |
| 30 | - <view class="info-box"> | |
| 31 | - <view class="info-box-list"> | |
| 32 | - <view class="serve"> | |
| 33 | - <view class="serve-title">儿童性别</view> | |
| 34 | - <view class="serve-right"> | |
| 35 | - <picker @change="bindPickerChangeSex" :value="index" :range="sexArray"> | |
| 36 | - <view class="uni-input">{{form.sex?sexArray[form.sex]:'请选择'}}</view> | |
| 37 | - </picker> | |
| 38 | - <image src="../../static/down3.png"></image> | |
| 39 | - </view> | |
| 40 | - </view> | |
| 41 | - </view> | |
| 42 | - </view> | |
| 43 | - <view class="info-box"> | |
| 44 | - <view class="info-box-list"> | |
| 45 | - <view class="serve"> | |
| 46 | - <view class="serve-title">儿童年龄</view> | |
| 47 | - <view> | |
| 48 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.age" placeholder="请输入" style="text-align: right;"/> | |
| 49 | - </view> | |
| 50 | - </view> | |
| 51 | - </view> | |
| 52 | - </view> | |
| 53 | - <view class="info-box"> | |
| 54 | - <view class="info-box-list"> | |
| 55 | - <view class="serve"> | |
| 56 | - <view class="serve-title">报告原因</view> | |
| 57 | - <view> | |
| 58 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reportReason" placeholder="请输入" style="text-align: right;"/> | |
| 59 | - </view> | |
| 60 | - </view> | |
| 61 | - </view> | |
| 1 | +<template> | |
| 2 | + <view> | |
| 3 | + <view class="bg"><image src="../../static/bg.jpg" mode="widthFix"></image></view> | |
| 4 | + <view style="display: flex;padding: 30rpx;width: 100%;box-sizing: border-box;flex-wrap: wrap;justify-content: space-between;"> | |
| 5 | + <view @click="gopath('/pages/receiptRegistration/organization')" style="width: 49%;padding: 50rpx 30rpx;background: rgba(255,255,255,0.63);border-radius: 30rpx;"> | |
| 6 | + <view style="width: 50%;margin: 0 auto;"> | |
| 7 | + <image style="height: 120rpx;width: 100%;" src="../../static/ly/image17.png" mode="aspectFit"></image> | |
| 62 | 8 | </view> |
| 63 | - <view class="info-box"> | |
| 64 | - <view class="info-box-list"> | |
| 65 | - <view class="serve"> | |
| 66 | - <view class="serve-title">其他信息</view> | |
| 67 | - <view> | |
| 68 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reportRecord" placeholder="请输入" style="text-align: right;"/> | |
| 69 | - </view> | |
| 70 | - </view> | |
| 71 | - </view> | |
| 9 | + <view style="width: 100%;color: #3D3D3D;text-align: center;font-size: 25rpx;margin-top: 10rpx;"> | |
| 10 | + 机构上报 | |
| 72 | 11 | </view> |
| 73 | 12 | </view> |
| 74 | - <view class="titleall-left"><view class="titleall-left-line"></view>报告人信息</view> | |
| 75 | - <view class="message-list"> | |
| 76 | - <view class="info-box"> | |
| 77 | - <view class="info-box-list"> | |
| 78 | - <view class="serve"> | |
| 79 | - <view class="serve-title">姓名</view> | |
| 80 | - <view> | |
| 81 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reporterName" placeholder="请输入" style="text-align: right;"/> | |
| 82 | - </view> | |
| 83 | - </view> | |
| 84 | - </view> | |
| 85 | - </view> | |
| 86 | - <view class="info-box"> | |
| 87 | - <view class="info-box-list"> | |
| 88 | - <view class="serve"> | |
| 89 | - <view class="serve-title">与儿童关系</view> | |
| 90 | - <view> | |
| 91 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.relationshipWithChild" placeholder="请输入" style="text-align: right;"/> | |
| 92 | - </view> | |
| 93 | - </view> | |
| 94 | - </view> | |
| 95 | - </view> | |
| 96 | - <view class="info-box"> | |
| 97 | - <view class="info-box-list"> | |
| 98 | - <view class="serve"> | |
| 99 | - <view class="serve-title">电话</view> | |
| 100 | - <view> | |
| 101 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.phone" placeholder="请输入" style="text-align: right;"/> | |
| 102 | - </view> | |
| 103 | - </view> | |
| 104 | - </view> | |
| 105 | - </view> | |
| 106 | - <view class="info-box"> | |
| 107 | - <view class="info-box-list"> | |
| 108 | - <view class="serve"> | |
| 109 | - <view class="serve-title">报告主体</view> | |
| 110 | - <view class="serve-right"> | |
| 111 | - <picker @change="bindPickerChangeSubject" :value="index" :range="SubjectArray"> | |
| 112 | - <view class="uni-input">{{form.reporterType?SubjectArray[index]:'请选择'}}</view> | |
| 113 | - </picker> | |
| 114 | - <image src="../../static/down3.png"></image> | |
| 115 | - </view> | |
| 116 | - </view> | |
| 117 | - </view> | |
| 118 | - </view> | |
| 119 | - <view class="info-box" v-if="form.reporterType == '群众'"> | |
| 120 | - <view class="info-box-list"> | |
| 121 | - <view class="serve"> | |
| 122 | - <view class="serve-title">职业</view> | |
| 123 | - <view> | |
| 124 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reporterOccupation" placeholder="请输入" style="text-align: right;"/> | |
| 125 | - </view> | |
| 126 | - </view> | |
| 127 | - </view> | |
| 13 | + <view @click="gopath('/pages/receiptRegistration/townShip')" style="width: 49%;padding: 50rpx 30rpx;background: rgba(255,255,255,0.63);border-radius: 30rpx;"> | |
| 14 | + <view style="width: 50%;margin: 0 auto;"> | |
| 15 | + <image style="height: 120rpx;width: 100%;" src="../../static/ly/image18.png" mode="aspectFit"></image> | |
| 128 | 16 | </view> |
| 129 | - <view class="info-box" v-if="form.reporterType == '单位' || form.reporterType == '社会组织'"> | |
| 130 | - <view class="info-box-list"> | |
| 131 | - <view class="serve"> | |
| 132 | - <view class="serve-title">单位名称</view> | |
| 133 | - <view> | |
| 134 | - <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reporterOrganizationName" placeholder="请输入" style="text-align: right;"/> | |
| 135 | - </view> | |
| 136 | - </view> | |
| 137 | - </view> | |
| 17 | + <view style="width: 100%;color: #3D3D3D;text-align: center;font-size: 25rpx;margin-top: 10rpx;"> | |
| 18 | + 乡镇上报 | |
| 138 | 19 | </view> |
| 139 | 20 | </view> |
| 140 | - <view class="page-footer"> | |
| 141 | - <view class="footer-buy"> | |
| 142 | - <view class="cart-add" @click="register"> | |
| 143 | - <image src="../../static/btn5.png"></image> | |
| 144 | - <text>立即上报</text> | |
| 145 | - </view> | |
| 146 | - </view> | |
| 147 | - </view> | |
| 148 | - | |
| 149 | - </view> | |
| 150 | 21 | </view> |
| 151 | - </view> | |
| 152 | -</template> | |
| 153 | - | |
| 154 | -<script> | |
| 155 | - export default { | |
| 156 | - data() { | |
| 157 | - return { | |
| 158 | - form:{ | |
| 159 | - reportTime: "", | |
| 160 | - reportPlatform: "", | |
| 161 | - incidentLocation: "", | |
| 162 | - childName: "", | |
| 163 | - sex: "", | |
| 164 | - age: "", | |
| 165 | - reportReason: "", | |
| 166 | - reportRecord: "", | |
| 167 | - reporterName: "", | |
| 168 | - relationshipWithChild: "", | |
| 169 | - phone: "", | |
| 170 | - reporterType: "", | |
| 171 | - reporterOrganizationName: "", | |
| 172 | - reporterOccupation: "", | |
| 173 | - userId: uni.getStorageSync('USERS_KEY').userId, | |
| 174 | - reportPlatform: '数字民政服务平台小程序' | |
| 175 | - }, | |
| 176 | - // 性别下拉框 | |
| 177 | - sexArray: ['男', '女'], | |
| 178 | - // 报告主体 | |
| 179 | - SubjectArray: ['群众', '单位', '社会组织'], | |
| 180 | - index: 0 | |
| 181 | - }; | |
| 182 | - }, | |
| 183 | - methods:{ | |
| 22 | + </view> | |
| 23 | +</template> | |
| 24 | + | |
| 25 | +<script> | |
| 26 | + export default { | |
| 27 | + data() { | |
| 28 | + return { | |
| 29 | + | |
| 30 | + } | |
| 31 | + }, | |
| 32 | + methods: { | |
| 184 | 33 | gopath(e) { |
| 185 | 34 | uni.navigateTo({ |
| 186 | - url:e | |
| 187 | - }) | |
| 188 | - }, | |
| 189 | - // 选择性别 | |
| 190 | - bindPickerChangeSex: function(e) { | |
| 191 | - console.log('picker发送选择改变,携带值为', e) | |
| 192 | - this.form.sex = e.detail.value; | |
| 193 | - }, | |
| 194 | - // 选择主体 | |
| 195 | - bindPickerChangeSubject: function(e) { | |
| 196 | - console.log('picker发送选择改变,携带值为', e) | |
| 197 | - this.index = e.detail.value; | |
| 198 | - this.form.reporterType = this.SubjectArray[this.index]; | |
| 199 | - }, | |
| 200 | - // 获取当前时间 | |
| 201 | - getTime() { | |
| 202 | - var now = new Date(); | |
| 203 | - var year = now.getFullYear(); //获取完整的年份(4位,1970-????) | |
| 204 | - var month = now.getMonth() + 1; //获取当前月份(0-11,0代表1月) | |
| 205 | - var day = now.getDate(); //获取当前日(1-31) | |
| 206 | - var hour = now.getHours(); //获取当前小时数(0-23) | |
| 207 | - var minute = now.getMinutes(); //获取当前分钟数(0-59) | |
| 208 | - var second = now.getSeconds(); //获取当前秒数(0-59) | |
| 209 | - this.form.reportTime = year + "-" + (month<10?"0"+month:month) + "-" + (day<10?"0"+day:day) + " " + (hour<10?"0"+hour:hour) + ":" + (minute<10?"0"+minute:minute) + ":" + (second<10?"0"+second:second); | |
| 210 | - }, | |
| 211 | - register(){ | |
| 212 | - this.getTime(); | |
| 213 | - this.API.addRegistration(this.form).then(res => { | |
| 214 | - console.log(res) | |
| 215 | - if (res.code == 200 ) { | |
| 216 | - uni.showToast({ | |
| 217 | - icon: 'success', | |
| 218 | - title: '上报成功' | |
| 219 | - }) | |
| 220 | - setTimeout(() => { | |
| 221 | - uni.redirectTo({ | |
| 222 | - url: '/pages/receiptRegistrationSuccess/receiptRegistrationSuccess', | |
| 223 | - }) | |
| 224 | - }, 800) | |
| 225 | - } | |
| 35 | + url: e | |
| 226 | 36 | }) |
| 227 | - | |
| 37 | + }, | |
| 38 | + } | |
| 39 | + } | |
| 40 | +</script> | |
| 41 | + | |
| 42 | +<style scoped lang="scss"> | |
| 43 | +.bg { | |
| 44 | + width: 100%; | |
| 45 | + height: 100vh; | |
| 46 | + position: fixed; | |
| 47 | + z-index: -1; | |
| 48 | + image { | |
| 49 | + width: 100%; | |
| 50 | + height: 100vh; | |
| 51 | + } | |
| 52 | +} | |
| 53 | +.bottom { | |
| 54 | + padding: 20rpx 20rpx; | |
| 55 | + margin: 20rpx 30rpx; | |
| 56 | + width: 94%; | |
| 57 | + position: fixed; | |
| 58 | + bottom: 30rpx; | |
| 59 | + background: rgba(255,255,255,0.63); | |
| 60 | + border-radius: 30rpx; | |
| 61 | + .bottom-two { | |
| 62 | + display: flex; | |
| 63 | + justify-content: space-between; | |
| 64 | + | |
| 65 | + .bottom-two-list { | |
| 66 | + position: relative; | |
| 67 | + .bottom-two-list-img { | |
| 68 | + image { | |
| 69 | + width: 320rpx; | |
| 70 | + height: 69rpx; | |
| 71 | + box-shadow: 5rpx 10rpx 20rpx 0 #b7c8ff; | |
| 72 | + border-radius: 100rpx; | |
| 73 | + } | |
| 74 | + } | |
| 75 | + .bottom-two-list-text { | |
| 76 | + position: absolute; | |
| 77 | + top: 33%; | |
| 78 | + left: 25%; | |
| 79 | + transform: translate(-33%, -25%); | |
| 80 | + color: #fff; | |
| 81 | + font-size: 28rpx; | |
| 228 | 82 | } |
| 229 | 83 | } |
| 230 | 84 | } |
| 231 | -</script> | |
| 232 | - | |
| 233 | -<style scoped lang="scss"> | |
| 234 | - @import 'receiptRegistration.scss'; | |
| 235 | -</style> | |
| 85 | + .bottom-my { | |
| 86 | + position: relative; | |
| 87 | + .bottom-my-img { | |
| 88 | + image { | |
| 89 | + width: 710rpx; | |
| 90 | + height: 69rpx; | |
| 91 | + box-shadow: 5rpx 10rpx 20rpx 0 #b5f4d5; | |
| 92 | + border-radius: 100rpx; | |
| 93 | + } | |
| 94 | + } | |
| 95 | + .bottom-my-text { | |
| 96 | + position: absolute; | |
| 97 | + top: 25%; | |
| 98 | + left: 8%; | |
| 99 | + transform: translate(-25%, -8%); | |
| 100 | + color: #fff; | |
| 101 | + font-size: 28rpx; | |
| 102 | + } | |
| 103 | + } | |
| 104 | +} | |
| 105 | +</style> | ... | ... |
pages/receiptRegistration/townShip.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <!-- 机构 --> | |
| 3 | + <view class="page"> | |
| 4 | + <view class="content"> | |
| 5 | + <view class="top-box" @click="gopath('/pages/receiptRegistration/receiptRegistrationList')"> | |
| 6 | + <view>上报历史</view> | |
| 7 | + <view class="top-box-img"><image src="../../static/right2.png"></image></view> | |
| 8 | + </view> | |
| 9 | + <view class="titleall-left"><view class="titleall-left-line"></view>我要上报</view> | |
| 10 | + <view class="message-list"> | |
| 11 | + <view class="info-box"> | |
| 12 | + <view class="info-box-list"> | |
| 13 | + <view class="serve"> | |
| 14 | + <view class="serve-title">发生地点</view> | |
| 15 | + <view> | |
| 16 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.incidentLocation" placeholder="请输入" style="text-align: right;"/> | |
| 17 | + </view> | |
| 18 | + </view> | |
| 19 | + </view> | |
| 20 | + </view> | |
| 21 | + <view class="info-box"> | |
| 22 | + <view class="info-box-list"> | |
| 23 | + <view class="serve"> | |
| 24 | + <view class="serve-title">儿童姓名</view> | |
| 25 | + <view> | |
| 26 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.childName" placeholder="请输入" style="text-align: right;"/> | |
| 27 | + </view> | |
| 28 | + </view> | |
| 29 | + </view> | |
| 30 | + </view> | |
| 31 | + <view class="info-box"> | |
| 32 | + <view class="info-box-list"> | |
| 33 | + <view class="serve"> | |
| 34 | + <view class="serve-title">儿童性别</view> | |
| 35 | + <view class="serve-right"> | |
| 36 | + <picker @change="bindPickerChangeSex" :value="index" :range="sexArray"> | |
| 37 | + <view class="uni-input">{{form.sex?sexArray[form.sex]:'请选择'}}</view> | |
| 38 | + </picker> | |
| 39 | + <image src="../../static/down3.png"></image> | |
| 40 | + </view> | |
| 41 | + </view> | |
| 42 | + </view> | |
| 43 | + </view> | |
| 44 | + <view class="info-box"> | |
| 45 | + <view class="info-box-list"> | |
| 46 | + <view class="serve"> | |
| 47 | + <view class="serve-title">儿童年龄</view> | |
| 48 | + <view> | |
| 49 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.age" placeholder="请输入" style="text-align: right;"/> | |
| 50 | + </view> | |
| 51 | + </view> | |
| 52 | + </view> | |
| 53 | + </view> | |
| 54 | + <view class="info-box"> | |
| 55 | + <view class="info-box-list"> | |
| 56 | + <view class="serve"> | |
| 57 | + <view class="serve-title">报告原因</view> | |
| 58 | + <view> | |
| 59 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reportReason" placeholder="请输入" style="text-align: right;"/> | |
| 60 | + </view> | |
| 61 | + </view> | |
| 62 | + </view> | |
| 63 | + </view> | |
| 64 | + <view class="info-box"> | |
| 65 | + <view class="info-box-list"> | |
| 66 | + <view class="serve"> | |
| 67 | + <view class="serve-title">其他信息</view> | |
| 68 | + <view> | |
| 69 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reportRecord" placeholder="请输入" style="text-align: right;"/> | |
| 70 | + </view> | |
| 71 | + </view> | |
| 72 | + </view> | |
| 73 | + </view> | |
| 74 | + </view> | |
| 75 | + <view class="titleall-left"><view class="titleall-left-line"></view>报告人信息</view> | |
| 76 | + <view class="message-list"> | |
| 77 | + <view class="info-box"> | |
| 78 | + <view class="info-box-list"> | |
| 79 | + <view class="serve"> | |
| 80 | + <view class="serve-title">姓名</view> | |
| 81 | + <view> | |
| 82 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reporterName" placeholder="请输入" style="text-align: right;"/> | |
| 83 | + </view> | |
| 84 | + </view> | |
| 85 | + </view> | |
| 86 | + </view> | |
| 87 | + <view class="info-box"> | |
| 88 | + <view class="info-box-list"> | |
| 89 | + <view class="serve"> | |
| 90 | + <view class="serve-title">与儿童关系</view> | |
| 91 | + <view> | |
| 92 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.relationshipWithChild" placeholder="请输入" style="text-align: right;"/> | |
| 93 | + </view> | |
| 94 | + </view> | |
| 95 | + </view> | |
| 96 | + </view> | |
| 97 | + <view class="info-box"> | |
| 98 | + <view class="info-box-list"> | |
| 99 | + <view class="serve"> | |
| 100 | + <view class="serve-title">电话</view> | |
| 101 | + <view> | |
| 102 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.phone" placeholder="请输入" style="text-align: right;"/> | |
| 103 | + </view> | |
| 104 | + </view> | |
| 105 | + </view> | |
| 106 | + </view> | |
| 107 | + <view class="info-box"> | |
| 108 | + <view class="info-box-list"> | |
| 109 | + <view class="serve"> | |
| 110 | + <view class="serve-title">报告主体</view> | |
| 111 | + <view class="serve-right"> | |
| 112 | + <picker @change="bindPickerChangeSubject" :value="index" :range="SubjectArray"> | |
| 113 | + <view class="uni-input">{{form.reporterType?SubjectArray[index]:'请选择'}}</view> | |
| 114 | + </picker> | |
| 115 | + <image src="../../static/down3.png"></image> | |
| 116 | + </view> | |
| 117 | + </view> | |
| 118 | + </view> | |
| 119 | + </view> | |
| 120 | + <view class="info-box" v-if="form.reporterType == '群众'"> | |
| 121 | + <view class="info-box-list"> | |
| 122 | + <view class="serve"> | |
| 123 | + <view class="serve-title">职业</view> | |
| 124 | + <view> | |
| 125 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reporterOccupation" placeholder="请输入" style="text-align: right;"/> | |
| 126 | + </view> | |
| 127 | + </view> | |
| 128 | + </view> | |
| 129 | + </view> | |
| 130 | + <view class="info-box" v-if="form.reporterType == '单位' || form.reporterType == '社会组织'"> | |
| 131 | + <view class="info-box-list"> | |
| 132 | + <view class="serve"> | |
| 133 | + <view class="serve-title">单位名称</view> | |
| 134 | + <view> | |
| 135 | + <input placeholder-style="color:#3d3d3d;font-weight: bold;font-size: 25rpx;" v-model="form.reporterOrganizationName" placeholder="请输入" style="text-align: right;"/> | |
| 136 | + </view> | |
| 137 | + </view> | |
| 138 | + </view> | |
| 139 | + </view> | |
| 140 | + </view> | |
| 141 | + <view class="page-footer"> | |
| 142 | + <view class="footer-buy"> | |
| 143 | + <view class="cart-add" @click="register"> | |
| 144 | + <image src="../../static/btn5.png"></image> | |
| 145 | + <text>立即上报</text> | |
| 146 | + </view> | |
| 147 | + </view> | |
| 148 | + </view> | |
| 149 | + | |
| 150 | + </view> | |
| 151 | + </view> | |
| 152 | + </view> | |
| 153 | +</template> | |
| 154 | + | |
| 155 | +<script> | |
| 156 | + export default { | |
| 157 | + data() { | |
| 158 | + return { | |
| 159 | + form:{ | |
| 160 | + reportTime: "", | |
| 161 | + reportPlatform: "", | |
| 162 | + incidentLocation: "", | |
| 163 | + childName: "", | |
| 164 | + sex: "", | |
| 165 | + age: "", | |
| 166 | + reportReason: "", | |
| 167 | + reportRecord: "", | |
| 168 | + reporterName: "", | |
| 169 | + relationshipWithChild: "", | |
| 170 | + phone: "", | |
| 171 | + reporterType: "", | |
| 172 | + reporterOrganizationName: "", | |
| 173 | + reporterOccupation: "", | |
| 174 | + userId: uni.getStorageSync('USERS_KEY').userId, | |
| 175 | + reportPlatform: '个人上报' | |
| 176 | + }, | |
| 177 | + // 性别下拉框 | |
| 178 | + sexArray: ['男', '女'], | |
| 179 | + // 报告主体 | |
| 180 | + SubjectArray: ['群众', '单位', '社会组织'], | |
| 181 | + index: 0 | |
| 182 | + }; | |
| 183 | + }, | |
| 184 | + methods:{ | |
| 185 | + gopath(e) { | |
| 186 | + uni.navigateTo({ | |
| 187 | + url:e | |
| 188 | + }) | |
| 189 | + }, | |
| 190 | + // 选择性别 | |
| 191 | + bindPickerChangeSex: function(e) { | |
| 192 | + console.log('picker发送选择改变,携带值为', e) | |
| 193 | + this.form.sex = e.detail.value; | |
| 194 | + }, | |
| 195 | + // 选择主体 | |
| 196 | + bindPickerChangeSubject: function(e) { | |
| 197 | + console.log('picker发送选择改变,携带值为', e) | |
| 198 | + this.index = e.detail.value; | |
| 199 | + this.form.reporterType = this.SubjectArray[this.index]; | |
| 200 | + }, | |
| 201 | + // 获取当前时间 | |
| 202 | + getTime() { | |
| 203 | + var now = new Date(); | |
| 204 | + var year = now.getFullYear(); //获取完整的年份(4位,1970-????) | |
| 205 | + var month = now.getMonth() + 1; //获取当前月份(0-11,0代表1月) | |
| 206 | + var day = now.getDate(); //获取当前日(1-31) | |
| 207 | + var hour = now.getHours(); //获取当前小时数(0-23) | |
| 208 | + var minute = now.getMinutes(); //获取当前分钟数(0-59) | |
| 209 | + var second = now.getSeconds(); //获取当前秒数(0-59) | |
| 210 | + this.form.reportTime = year + "-" + (month<10?"0"+month:month) + "-" + (day<10?"0"+day:day) + " " + (hour<10?"0"+hour:hour) + ":" + (minute<10?"0"+minute:minute) + ":" + (second<10?"0"+second:second); | |
| 211 | + }, | |
| 212 | + register(){ | |
| 213 | + this.getTime(); | |
| 214 | + this.form.filingType = '个人'; | |
| 215 | + this.form.reportType = '强制报告'; | |
| 216 | + this.API.addRegistration(this.form).then(res => { | |
| 217 | + console.log(res) | |
| 218 | + if (res.code == 200 ) { | |
| 219 | + uni.showToast({ | |
| 220 | + icon: 'success', | |
| 221 | + title: '上报成功' | |
| 222 | + }) | |
| 223 | + setTimeout(() => { | |
| 224 | + uni.redirectTo({ | |
| 225 | + url: '/pages/receiptRegistrationSuccess/receiptRegistrationSuccess', | |
| 226 | + }) | |
| 227 | + }, 800) | |
| 228 | + } | |
| 229 | + }) | |
| 230 | + | |
| 231 | + } | |
| 232 | + } | |
| 233 | + } | |
| 234 | +</script> | |
| 235 | + | |
| 236 | +<style scoped lang="scss"> | |
| 237 | + @import 'receiptRegistration.scss'; | |
| 238 | +</style> | ... | ... |
static/ly/image17.png
0 → 100644
27.9 KB
static/ly/image18.png
0 → 100644
28.6 KB