task_details.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <template>
  2. <view class="total-page page-env-20 page-box">
  3. <Nav :title="'任务详情'" :genre="1" :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 {getStageList, getTaskDetail} from "@/api/task";
  85. export default {
  86. components: {
  87. TaskTab,
  88. Identity,
  89. ThirdParty,
  90. Apply,
  91. Property,
  92. Record,
  93. Steps
  94. },
  95. data() {
  96. return {
  97. current: 1,
  98. fixedHeight: 200,
  99. options: {
  100. autoHeight: true,
  101. },
  102. list: [1, 2, 3],
  103. lists: [1, 2],
  104. businessId:''
  105. }
  106. },
  107. onLoad(data) {
  108. if(data.taskId!==undefined){
  109. this.businessId=data.taskId
  110. this.getTaskDetail()
  111. this.getStageList()
  112. }else {
  113. tools.leftClick()
  114. }
  115. },
  116. methods: {
  117. async getTaskDetail() {
  118. const res = await getTaskDetail({
  119. id: this.businessId
  120. })
  121. if (res.code === 1) {
  122. this.product = res.data.product
  123. this.title = this.product.product_name
  124. this.business = res.data.business
  125. this.propertyList = res.data.propertyList
  126. this.applyFor = res.data.applyFor
  127. this.tripartite = res.data.tripartite
  128. this.linkman = res.data.linkman
  129. this.credit = res.data.credit
  130. this.postLoan = res.data.postLoan
  131. this.stageData = res.data.stageData
  132. this.isExecute = res.data.isExecute
  133. this.businessFile = res.data.businessFile
  134. } else {
  135. tools.leftClick()
  136. }
  137. },
  138. getStageList() {
  139. getStageList({'id': this.businessId}).then((res) => {
  140. if (res.code === 1) {
  141. this.stageList = res.data
  142. }
  143. })
  144. },
  145. onChange(current) {
  146. this.current = current
  147. },
  148. onSubmit() {
  149. uni.navigateTo({
  150. url: "/page_task/task_operate/task_operate"
  151. })
  152. }
  153. }
  154. }
  155. </script>
  156. <style lang="scss" scoped>
  157. .details_body {
  158. width: 100%;
  159. position: absolute;
  160. }
  161. .detail-bg {
  162. position: relative;
  163. }
  164. .detail-img {
  165. width: calc(100%);
  166. height: 220rpx;
  167. }
  168. .detail-content {
  169. position: absolute;
  170. top: 10rpx;
  171. left: 20rpx;
  172. .top-titke {
  173. height: 75rpx;
  174. line-height: 75rpx;
  175. // background: red;
  176. }
  177. .detail-line {
  178. width: 2rpx;
  179. height: 24rpx;
  180. background-color: #FFFFFF;
  181. }
  182. .buttom-titke {
  183. flex: 1;
  184. margin-top: 40rpx;
  185. height: 90rpx;
  186. width: 635rpx;
  187. line-height: 90rpx;
  188. border-radius: 20rpx;
  189. padding: 0 20rpx;
  190. }
  191. }
  192. </style>