index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <view class="container">
  3. <view class="back-btn" @click="backToBefore()">
  4. <u-icon name="arrow-left" color="#fff" size="20" customStyle="margin:0 auto"></u-icon>
  5. <text class="back-text">资金来源</text>
  6. </view>
  7. <view class="base-info company">
  8. <view class="info-item" v-for="item in sourceList">
  9. <view class="info-item-description">{{item.description}}</view>
  10. <view class="info-item-name">{{item.value}}</view>
  11. </view>
  12. <view class="info-item-description">建设内容及规模</view>
  13. <view class="info-item-content">{{fullInfo.content}}</view>
  14. </view>
  15. <view class="base-info project">
  16. <view class="info-item">
  17. <view class="info-item-description">计划开工时间</view>
  18. <view class="info-item-text">{{fullInfo.begin_date || "--"}}</view>
  19. </view>
  20. <view class="info-item">
  21. <view class="info-item-description">计划完工时间</view>
  22. <view class="info-item-text">{{fullInfo.end_date || "--"}}</view>
  23. </view>
  24. <view class="info-item info-item-short">
  25. <view class="info-item-description">负责人</view>
  26. <view class="info-item-text">{{fullInfo.name_zrr || "--"}}</view>
  27. </view>
  28. <view class="info-item info-item-short">
  29. <view class="info-item-description">
  30. <u-icon name="phone" color="#343437" size="20"></u-icon>
  31. </view>
  32. <view class="info-item-text number">{{fullInfo.tel || "--"}}</view>
  33. </view>
  34. <view class="info-item info-item-short">
  35. <view class="info-item-description">总负责人</view>
  36. <view class="info-item-text">{{fullInfo.name_lead || "--"}}</view>
  37. </view>
  38. <view class="info-item info-item-short">
  39. <view class="info-item-description">
  40. <u-icon name="phone" color="#343437" size="20"></u-icon>
  41. </view>
  42. <view class="info-item-text number">{{fullInfo.tel_lead || "--"}}</view>
  43. </view>
  44. <view class="info-item">
  45. <view class="info-item-description">责任主体</view>
  46. <view class="info-item-text">{{fullInfo.subjectName || "--"}}</view>
  47. </view>
  48. <view class="info-item">
  49. <view class="info-item-description">项目类型</view>
  50. <view class="info-item-text">{{fullInfo.kindName || "--"}}</view>
  51. </view>
  52. </view>
  53. </view>
  54. </template>
  55. <script setup>
  56. import {
  57. ref
  58. } from 'vue'
  59. import {
  60. onLoad
  61. } from "@dcloudio/uni-app"
  62. import {
  63. getProjectInfoDetail,
  64. } from "@/api/work/projectInfo.js"
  65. function backToBefore() {
  66. uni.navigateBack({})
  67. };
  68. let fullInfo = ref({})
  69. let sourceList = ref([{
  70. description: '中央资金',
  71. key: "amt_ly1",
  72. value: ''
  73. }, {
  74. description: '政府债券',
  75. key: "amt_ly3",
  76. value: ''
  77. }, {
  78. description: '市绩资金',
  79. key: "amt_ly5",
  80. value: ''
  81. }, {
  82. description: '援疆资金',
  83. key: "amt_ly4",
  84. value: ''
  85. }, {
  86. description: '县级资金',
  87. key: "amt_ly6",
  88. value: ''
  89. }, {
  90. description: '企业资金',
  91. key: "amt_ly7",
  92. value: ''
  93. }, {
  94. description: '自治区资金',
  95. key: "amt_ly2",
  96. value: ''
  97. }, {
  98. description: '',
  99. value: ''
  100. }])
  101. function filterData(obj) {
  102. fullInfo.value = obj
  103. for (let i in sourceList.value) {
  104. sourceList.value[i].value = obj[sourceList.value[i].key] || "0"
  105. }
  106. }
  107. onLoad((option) => {
  108. getProjectInfoDetail({
  109. subId: option.id
  110. }).then(res => {
  111. filterData(res.data.projectsInfo)
  112. })
  113. })
  114. </script>
  115. <style lang="scss" scoped>
  116. page {
  117. height: 100%;
  118. background-color: #EAF0FA;
  119. }
  120. .container {
  121. position: relative;
  122. width: 100%;
  123. height: 100%;
  124. background: linear-gradient(180deg, #1869F6 0%, #EAF0FA 64%, #EAF0FA 100%);
  125. .back-btn {
  126. position: absolute;
  127. top: 8%;
  128. left: 4%;
  129. display: flex;
  130. font-size: 40rpx;
  131. font-weight: 500;
  132. color: #FFF;
  133. .back-text {
  134. margin-left: 28rpx;
  135. }
  136. }
  137. }
  138. .base-info {
  139. position: absolute;
  140. left: 4%;
  141. display: flex;
  142. flex-wrap: wrap;
  143. width: 92%;
  144. padding: 40rpx;
  145. border-radius: 40rpx;
  146. box-sizing: border-box;
  147. background-color: #fff;
  148. }
  149. .info-item-description {
  150. display: flex;
  151. flex-direction: column;
  152. justify-content: center;
  153. font-size: 32rpx;
  154. color: #9E9E9E;
  155. }
  156. .info-item-content {
  157. width: 100%;
  158. height: 168rpx;
  159. padding: 20rpx;
  160. margin-top: 30rpx;
  161. box-sizing: border-box;
  162. background: #EAF0FA;
  163. border-radius: 20rpx;
  164. }
  165. .company {
  166. top: 14%;
  167. height: 582rpx;
  168. .info-item {
  169. display: flex;
  170. justify-content: space-between;
  171. width: 50%;
  172. height: 40rpx;
  173. padding-right: 4%;
  174. }
  175. .info-item-name {
  176. display: flex;
  177. flex-direction: column;
  178. justify-content: center;
  179. font-size: 32rpx;
  180. color: #FF530F;
  181. }
  182. }
  183. .project {
  184. top: 52%;
  185. height: 484rpx;
  186. .info-item {
  187. display: flex;
  188. justify-content: flex-start;
  189. width: 100%;
  190. height: 40rpx;
  191. padding-right: 4%;
  192. .info-item-text {
  193. display: flex;
  194. flex-direction: column;
  195. justify-content: center;
  196. margin-left: 50rpx;
  197. font-size: 32rpx;
  198. color: #343437;
  199. }
  200. .number {
  201. color: #1869F6
  202. }
  203. }
  204. .info-item-short {
  205. width: 50%;
  206. }
  207. }
  208. </style>