processedDetail.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view>
  3. <view class="timeBox flex justify-between align-center padding-lr-sm">
  4. <view class="time">{{this.getData.cl_time}}</view>
  5. <button class="cu-btn radius bg-green sm">{{this.getData.wtype}}</button>
  6. </view>
  7. <view >
  8. <!-- 基本信息start -->
  9. <view class="basic-info">
  10. <view class="info-tit margin-left-xs">
  11. <text class="cuIcon-titles margin-right-xs"></text>
  12. 基本信息
  13. </view>
  14. <view class="info-content">
  15. <view class="info-one-info ">
  16. <text>{{type==1?this.getData.artificial_code:this.getData.supervise_code}}</text>
  17. </view>
  18. <view>
  19. <text>{{this.getData.content}}</text>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 基本信息end -->
  24. <!-- 处理信息start -->
  25. <view class="processStatus">
  26. <view class="info-tit margin-left-xs">
  27. <text class="cuIcon-titles margin-right-xs"></text>
  28. 处理信息
  29. </view>
  30. <view class="info-content">
  31. <view class="info-one-info ">
  32. <text>处理账号/电话:</text>
  33. <text>{{this.getData.clr_phone}}</text>
  34. </view>
  35. <view>
  36. <text>处理时间:</text>
  37. <text>{{this.getData.cl_time}}</text>
  38. </view>
  39. <view>
  40. <text>处理内容:</text>
  41. <text>{{this.getData.clnr}}</text>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 处理状态end -->
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. radio: 'A',
  54. radio: 'B',
  55. modalName: null,
  56. type: 0,
  57. getData:{},
  58. detailMessage2:{},
  59. }
  60. },
  61. onLoad: function(option) {
  62. this.type=option.type;
  63. if(option.type==1){
  64. uni.setNavigationBarTitle({
  65. title: "消防支队人工督察单详情页",
  66. });
  67. }else{
  68. uni.setNavigationBarTitle({
  69. title: "消防支队电子督察单详情页",
  70. });
  71. }
  72. this.getDetailData({
  73. "id": option.id,
  74. "company_code": uni.getStorageSync('selectedCode')
  75. })
  76. },
  77. methods: {
  78. async getDetailData(params = {}) {
  79. const res = await this.$myRequest({
  80. url: this.type==1?'FireInspector/getManualInspectorDetails':'FireInspector/getElectronicInspectorDetails',
  81. data: params,
  82. showLoading: true
  83. })
  84. this.getData = res.data.data[0];
  85. console.log(this.getData)
  86. },
  87. submit() {
  88. uni.makePhoneCall({
  89. phoneNumber: '15122423833' //仅为示例
  90. });
  91. },
  92. RadioChange(e) {
  93. this.radio = e.detail.value
  94. },
  95. textareaAInput(e) {
  96. this.textareaAValue = e.detail.value
  97. },
  98. }
  99. }
  100. </script>
  101. <style lang="scss">
  102. .timeBox {
  103. height: 88rpx;
  104. background: #EFF4FF;
  105. line-height: 88rpx;
  106. .time {
  107. color: #333
  108. }
  109. }
  110. .info-tit {
  111. color: #4074E7;
  112. line-height: 90rpx;
  113. height: 90rpx;
  114. }
  115. // 基本信息
  116. .info-content>view {
  117. margin-left: 24rpx;
  118. border-bottom: 1px solid #EDEDED;
  119. line-height: 92rpx;
  120. color: #666;
  121. }
  122. .info-content view text:first-child {
  123. width: 160rpx;
  124. display: inline-block
  125. }
  126. </style>