| | |
| | | "van-uploader": "@vant/weapp/uploader/index", |
| | | "van-notice-bar": "@vant/weapp/notice-bar/index", |
| | | "van-overlay": "@vant/weapp/overlay/index", |
| | | "van-image": "@vant/weapp/image/index" |
| | | "van-image": "@vant/weapp/image/index", |
| | | "van-dialog": "@vant/weapp/dialog/index" |
| | | }, |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | // app.ts |
| | | App({ |
| | | globalData: { |
| | | // url:'https://qyqjzdd.cdqingyang.gov.cn/qyjz', |
| | | url:'http://192.168.3.220:8080', |
| | | url:'https://qyqjzdd.cdqingyang.gov.cn/qyjz', |
| | | // url:'http://192.168.3.220:8080', |
| | | // url:'http://221.237.182.28:8443/api', |
| | | imageUrl:'https://qyqjzdd.cdqingyang.gov.cn/minio' |
| | | // imageUrl:'http://192.168.3.220:8080/minio' |
| | |
| | | |
| | | Page({ |
| | | data: { |
| | | valuereject:'', |
| | | showreject:false, |
| | | arraySex: [ |
| | | { sex: '男', id: 1 }, |
| | | { sex: '女', id: 0 } |
| | | ], |
| | | sex:'男', |
| | | sexId: 0, |
| | | datae:null, |
| | | idCardMaterials:[], // 身份证 |
| | | contractMaterials:[],// 合同 |
| | |
| | | images: [], |
| | | array: ["2022/08/19/5040f71639fd44b48228ce0e5c242727.jpeg", "2022/08/19/47bbd7c1d7bd4c07a0b17d671fe47010.jpeg"] |
| | | }, |
| | | onChangereject(e){ |
| | | console.log(e); |
| | | this.setData({ |
| | | valuereject:e.detail |
| | | }) |
| | | }, |
| | | deny(){ |
| | | this.setData({ showreject: true }); |
| | | }, |
| | | subreject() { |
| | | console.log('6666666666'); |
| | | let parms={ |
| | | id: this.data.reportDetail.id, |
| | | reason:this.data.valuereject |
| | | } |
| | | wx.request( |
| | | { |
| | | url: managerReportDetail.globalData.url + "/report/reject", |
| | | method: "POST", |
| | | data: parms, |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | console.log(res); |
| | | wx.reLaunch({ |
| | | url: '../../../manager/index' |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | onClose() { |
| | | this.setData({ showreject: false }); |
| | | }, |
| | | |
| | | // 事件处理函数 |
| | | bindViewTap() { |
| | | wx.navigateTo({ |
| | | url: '../logs/logs', |
| | | }) |
| | | }, |
| | | bindPickerChangeSex(e) { |
| | | console.log(e); |
| | | |
| | | this.setData({ |
| | | sexId: e.detail.value |
| | | }) |
| | | this.setData({ |
| | | sex: this.data.arraySex[e.detail.value].sex |
| | | }) |
| | | }, |
| | | //查看图片 |
| | |
| | | this.setData({ |
| | | causeIndex:this.data.causeList.findIndex(val=>{return val.id == res.data.data.causeId}), |
| | | reportDetail: res.data.data, |
| | | |
| | | sex:res.data.data.sex, |
| | | contractMaterials:res.data.data.contractMaterials.split(',').map(item=>{return item=managerReportDetail.globalData.imageUrl + "/img/" +item}), |
| | | idCardMaterials:res.data.data.idCardMaterials.split(',').map(item=>{return item=managerReportDetail.globalData.imageUrl + "/img/" +item}), |
| | | transactionMaterials:res.data.data.transactionMaterials.split(',').map(item=>{return item=managerReportDetail.globalData.imageUrl + "/img/" +item}), |
| | |
| | | <!--index.wxml--> |
| | | <view > |
| | | <van-dialog |
| | | use-slot |
| | | title="驳回原因" |
| | | show="{{ showreject }}" |
| | | show-cancel-button |
| | | confirm-button-open-type="subreject" |
| | | bind:close="onClose" |
| | | bind:confirm="subreject" |
| | | bind:getuserinfo="subreject" |
| | | > |
| | | <van-field |
| | | value="{{ valuereject }}" |
| | | placeholder="请输入驳回原因" |
| | | border="{{ false }}" |
| | | bind:change="onChangereject" |
| | | /> |
| | | |
| | | </van-dialog> |
| | | <view class="list1"> |
| | | <view class="content">{{reportDetail.reporterName}}</view> |
| | | <view class="font-wenzi">报案人姓名</view> |
| | | |
| | | </view> |
| | | <view class="list1"> |
| | | <view class="content" > |
| | | {{sex}} |
| | | </view> |
| | | <view class="font-wenzi">性别</view> |
| | | </view> |
| | | <view class="list1"> |
| | | <view class="content" bindtap="face">查看</view> |