details.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view>
  3. <u-navbar
  4. :title="title"
  5. title-color="#fff"
  6. :custom-back="customBack"
  7. :border-bottom="false"
  8. back-icon-color="#CCE8FF"
  9. :background="{background: 'linear-gradient(99deg, #7A4398 0%, #5A5DB9 100%)' }"></u-navbar>
  10. <view class="base-info">
  11. <view class="base-info-item u-flex u-row-between">
  12. <view class=""><b>路段/停车场:</b>{{pageData.roadName}}</view>
  13. </view>
  14. <view class="base-info-item">
  15. <view class=""><b>上报员:</b>{{pageData.createBy}}</view>
  16. </view>
  17. <view class="base-info-item">
  18. <view class=""><b>收费员:</b>{{pageData.payeeName}}</view>
  19. </view>
  20. <view class="base-info-item">
  21. <view class=""><b>问题类型:</b>{{pageData.payeeExceptionTypeName}}</view>
  22. </view>
  23. <view class="base-info-item">
  24. <view class=""><b>补充说明:</b>{{pageData.exceprionDes}}</view>
  25. </view>
  26. <view class="base-info-item">
  27. <view class="">
  28. <b>图片:</b>
  29. <view class="img-list">
  30. <image class="img" @click="previewImage(index)" v-for="(item,index) in pageData.imgList" :src="item" mode="widthFix" :key="index"></image>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default{
  40. data(){
  41. return{
  42. title:'收费员问题',
  43. pageData:[],
  44. id:'',
  45. dataList:[],
  46. }
  47. },
  48. onLoad(page){
  49. this.id = page.id;
  50. },
  51. onShow(){
  52. this.getReportDetail();
  53. },
  54. mounted() {
  55. },
  56. onReady() {
  57. // this.$refs.uForm.setRules(this.rules);
  58. },
  59. methods:{
  60. customBack(){
  61. uni.navigateBack()
  62. },
  63. getReportDetail(){
  64. this.$u.api.payeeReportDetail({id:this.id}).then(res=>{
  65. if(res.code==200){
  66. this.pageData = res.data;
  67. // console.log('payeeReportDetail',res);
  68. }else{
  69. uni.showToast({
  70. icon:'none',
  71. title:res.msg
  72. })
  73. }
  74. console.log('res',res);
  75. }).catch(err=>{
  76. console.log('err',err);
  77. })
  78. },
  79. previewImage(index){
  80. uni.previewImage({
  81. current: index,
  82. urls: this.pageData.imgList
  83. });
  84. }
  85. }
  86. }
  87. </script>
  88. <style>
  89. page{background: #F3F3F3;}
  90. </style>
  91. <style lang="scss" scoped>
  92. @import '../report.scss'
  93. </style>