task_details.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <template>
  2. <view class="total-page page-env-20 page-box">
  3. <Nav :title="'任务详情'" :genre="2" :fixedHeight="fixedHeight">
  4. <view class="task-tabs m-b20" style="z-index: 9999;" :style=" {top:`${$tools.topHeight()}px`}">
  5. <view class="detail-bg m-lr20 m-b10 m-t10">
  6. <image class="detail-img" src="/static/img/task-details/top-bg.png" mode="aspectFill"></image>
  7. <view class="detail-content">
  8. <view class="row-c m-l10 m-t16 m-b20 text-color-fff">
  9. <image class="wh-45 r-circle" src="../../static/img/logo.png" mode="aspectFill"></image>
  10. <text class="size-28 m-lr16">刘方伟</text>
  11. <view class="size-24 row-c sys-bg-007038 r-100 p-lr16 p-tb6">
  12. <text>男</text>
  13. <view class="detail-line m-lr10"></view>
  14. <text>45岁</text>
  15. </view>
  16. <view class="row-c size-24 sys-bg-007038 r-100 p-lr16 p-tb6 m-l20">
  17. <image class="wh-20" src="/static/img/task-details/phone-two.png" mode="aspectFill">
  18. </image>
  19. <text>12154131313</text>
  20. </view>
  21. <image class="wh-60 animate__animated animate__zoomIn"
  22. style="position: absolute;right: 20rpx;" src="/static/img/task-details/icon-one.png"
  23. mode="aspectFill">
  24. </image>
  25. </view>
  26. <view class="row-justify-sb center buttom-titke sys-bg-BFD2CC text-color-12 size-24">
  27. <text class="size-28 text-color-E21 sys-weight-600">120万</text>
  28. <text>确认归档</text>
  29. <text>2024/12/24用款</text>
  30. <view class="row-c">
  31. <image class="wh-25 m-r10" src="/static/img/task-details/usrr.png" mode=""></image>
  32. <text>张单丹</text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <TaskTab :current="current" @onChange="onChange"></TaskTab>
  38. </view>
  39. </Nav>
  40. <view class="details_body sys-list-background-color task-tabs-width page-env-160"
  41. :style="{top:`${$tools.topHeight()+fixedHeight}px`}">
  42. <view class="m-lr20 m-t20">
  43. <z-swiper v-model="list" :options="options" v-if="current === 1">
  44. <z-swiper-item>
  45. <Identity></Identity>
  46. </z-swiper-item>
  47. <z-swiper-item>
  48. <Apply></Apply>
  49. </z-swiper-item>
  50. <z-swiper-item>
  51. <ThirdParty></ThirdParty>
  52. </z-swiper-item>
  53. </z-swiper>
  54. <view class="" v-if="current === 2">
  55. <z-swiper v-model="lists" :options="options">
  56. <z-swiper-item>
  57. <Property></Property>
  58. </z-swiper-item>
  59. </z-swiper>
  60. </view>
  61. </view>
  62. <Record v-if="current === 3"></Record>
  63. <Steps v-if="current === 4"></Steps>
  64. </view>
  65. <EnButton :text="'冲销'" v-if="current === 1"></EnButton>
  66. <EnButton is_both :leftText="'交接'" :rightText="'操作'" v-if="current === 2" @onSubmit="onSubmit"></EnButton>
  67. </view>
  68. </template>
  69. <script>
  70. import TaskTab from "@/common/task/task_tab.vue"
  71. // 身份信息
  72. import Identity from "./module/identity.vue"
  73. // 申请信息
  74. import Apply from "./module/apply.vue"
  75. // 第三方信息
  76. import ThirdParty from "./module/third_party.vue"
  77. // 资产信息
  78. import Property from "./module/property.vue"
  79. // 审核进度
  80. import Steps from "./module/steps.vue"
  81. // 跟进记录
  82. import Record from "./module/record.vue"
  83. import tools from "@/service/tools";
  84. import {
  85. getStageList,
  86. getTaskDetail
  87. } from "@/api/task";
  88. export default {
  89. components: {
  90. TaskTab,
  91. Identity,
  92. ThirdParty,
  93. Apply,
  94. Property,
  95. Record,
  96. Steps
  97. },
  98. data() {
  99. return {
  100. current: 1,
  101. fixedHeight: 200,
  102. options: {
  103. autoHeight: true,
  104. },
  105. list: [1, 2, 3],
  106. lists: [1, 2],
  107. businessId: ''
  108. }
  109. },
  110. onLoad(data) {
  111. if (data.taskId !== undefined) {
  112. this.businessId = data.taskId
  113. this.getTaskDetail()
  114. this.getStageList()
  115. } else {
  116. tools.leftClick()
  117. }
  118. },
  119. methods: {
  120. async getTaskDetail() {
  121. const res = await getTaskDetail({
  122. id: this.businessId
  123. })
  124. if (res.code === 1) {
  125. this.product = res.data.product
  126. this.business = res.data.business
  127. this.propertyList = res.data.propertyList
  128. this.applyFor = res.data.applyFor
  129. this.tripartite = res.data.tripartite
  130. this.linkman = res.data.linkman
  131. this.credit = res.data.credit
  132. this.postLoan = res.data.postLoan
  133. this.stageData = res.data.stageData
  134. this.isExecute = res.data.isExecute
  135. this.businessFile = res.data.businessFile
  136. } else {
  137. tools.leftClick()
  138. }
  139. },
  140. getStageList() {
  141. getStageList({
  142. 'id': this.businessId
  143. }).then((res) => {
  144. if (res.code === 1) {
  145. this.stageList = res.data
  146. }
  147. })
  148. },
  149. onChange(current) {
  150. this.current = current
  151. },
  152. onSubmit() {
  153. uni.navigateTo({
  154. url: "/page_task/task_operate/task_operate"
  155. })
  156. }
  157. }
  158. }
  159. </script>
  160. <style lang="scss" scoped>
  161. .details_body {
  162. width: 100%;
  163. position: absolute;
  164. }
  165. .detail-bg {
  166. position: relative;
  167. }
  168. .detail-img {
  169. width: calc(100%);
  170. height: 220rpx;
  171. }
  172. .detail-content {
  173. position: absolute;
  174. top: 10rpx;
  175. left: 20rpx;
  176. .top-titke {
  177. height: 75rpx;
  178. line-height: 75rpx;
  179. // background: red;
  180. }
  181. .detail-line {
  182. width: 2rpx;
  183. height: 24rpx;
  184. background-color: #FFFFFF;
  185. }
  186. .buttom-titke {
  187. flex: 1;
  188. margin-top: 40rpx;
  189. height: 90rpx;
  190. width: 635rpx;
  191. line-height: 90rpx;
  192. border-radius: 20rpx;
  193. padding: 0 20rpx;
  194. }
  195. }
  196. </style>