detail.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <ComponentLoading class="outer form-body" :loading="loading">
  3. <view class="card">
  4. <view class="form-item view" v-for="(item) in formList" :key="item.label">
  5. <view class="label">{{item.label}}</view>
  6. <view class="value">{{ formData[item.value] }}</view>
  7. </view>
  8. </view>
  9. <Collapse title="受理条件">
  10. <view>{{ formData.sltj }}</view>
  11. </Collapse>
  12. <Collapse title="设定依据">
  13. <view>{{ formData.sdyj }}</view>
  14. </Collapse>
  15. <view class="card">
  16. <view class="form-item view">
  17. <view class="label">是否收费</view>
  18. <view class="value">{{ formData.sfsf }}</view>
  19. </view>
  20. <view class="form-item view">
  21. <view class="label">收费标准</view>
  22. <view class="value">{{ formData.sfbz }}</view>
  23. </view>
  24. </view>
  25. <Collapse title="收费依据">
  26. <view>{{ formData.sfyj }}</view>
  27. </Collapse>
  28. <Collapse title="申请材料">
  29. <view>{{ formData.sqcl }}</view>
  30. </Collapse>
  31. <view class="btn btn-one" @click="show">点击查看办理流程</view>
  32. <liucheng ref="liucheng" :liucheng="formData.bllc"></liucheng>
  33. </ComponentLoading>
  34. </template>
  35. <script>
  36. import {
  37. detailById
  38. } from '@/api/wjxxy.js'
  39. import ComponentLoading from '@/components/component-loading/index'
  40. import Collapse from '@/components/collapse/index.vue'
  41. import liucheng from '@/components/hz/liucheng.vue'
  42. export default {
  43. components: {
  44. ComponentLoading,
  45. Collapse,
  46. liucheng
  47. },
  48. data() {
  49. return {
  50. loading: false,
  51. formList: [{
  52. label: '事项类型',
  53. value: 'sxlx',
  54. type: 'text'
  55. }, {
  56. label: '行政层级',
  57. value: 'xzcj',
  58. type: 'text'
  59. }, {
  60. label: '法定时限',
  61. value: 'fdsx',
  62. type: 'text'
  63. }, {
  64. label: '承诺时限',
  65. value: 'cnsx',
  66. type: 'text'
  67. },
  68. // {
  69. // label: '受理机构',
  70. // value: '办事网点查询',
  71. // type: 'text'
  72. // },
  73. {
  74. label: '办件类型',
  75. value: 'bjlx',
  76. type: 'text'
  77. }, {
  78. label: '审批结果类型',
  79. value: 'spjglx',
  80. type: 'text'
  81. }, {
  82. label: '审批结果名称',
  83. value: 'spjgmc',
  84. type: 'text'
  85. },
  86. ],
  87. formData: {},
  88. }
  89. },
  90. onLoad(option) {
  91. const param = JSON.parse(option.param)
  92. console.log('param param param', param)
  93. if (param.dictValue) {
  94. uni.setNavigationBarTitle({
  95. title: param.dictValue
  96. })
  97. this.loading = true
  98. detailById(param.id).then(res => {
  99. console.log('detailById detailById detailById', res)
  100. let data = JSON.parse(res.data.dataList[0].fieldValues[0].value)
  101. this.formData = data.data
  102. // this.formData = res.data
  103. }).finally(() => {
  104. this.loading = false
  105. })
  106. } else {
  107. uni.setNavigationBarTitle({
  108. title: param.label
  109. })
  110. this.loading = true
  111. detailById(param.value).then(res => {
  112. console.log('detailById detailById detailById', res)
  113. let data = JSON.parse(res.data.dataList[0].fieldValues[0].value)
  114. this.formData = data.data
  115. // this.formData = res.data
  116. }).finally(() => {
  117. this.loading = false
  118. })
  119. }
  120. },
  121. methods: {
  122. show() {
  123. this.$refs.liucheng.show()
  124. }
  125. }
  126. }
  127. </script>
  128. <style lang="scss" scoped>
  129. @import '@/static/style/page-form.scss';
  130. </style>