processedDetail.vue 3.0 KB

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