task_details.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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=" {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/task-details/head.png" mode="aspectFill">
  10. </image>
  11. <text class="size-28 m-lr16">{{business.name}}</text>
  12. <view class="size-24 row-c sys-bg-007038 r-100 p-lr16 p-tb6">
  13. <text>{{business.sex===1?'男':'女'}}</text>
  14. <view class="detail-line m-lr10"></view>
  15. <text>{{business.age}}岁</text>
  16. </view>
  17. <view class="row-c size-24 sys-bg-007038 r-100 p-lr16 p-tb6 m-l20">
  18. <image class="wh-20" src="/static/img/task-details/phone-two.png" mode="aspectFill">
  19. </image>
  20. <text>{{business.phone}}</text>
  21. </view>
  22. <image class="wh-60 animate__animated animate__zoomIn"
  23. style="position: absolute;right: 20rpx;" src="/static/img/task-details/icon-one.png"
  24. mode="aspectFill">
  25. </image>
  26. </view>
  27. <view class="row-justify-sb center buttom-titke sys-bg-BFD2CC text-color-12 size-24">
  28. <text class="size-28 text-color-E21 sys-weight-600">{{applyFor.quota}}万</text>
  29. <text>{{business.status_name}}</text>
  30. <text>{{applyFor.use_date}}用款</text>
  31. <view class="row-c">
  32. <image class="wh-25 m-r10" src="/static/img/task-details/usrr.png" mode=""></image>
  33. <text>{{business.creation_name}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <TaskTab :current="current" @onChange="onChange"></TaskTab>
  39. </view>
  40. </Nav>
  41. <view class="details_body sys-list-background-color task-tabs-width"
  42. :class=" current === 3 || current === 4?'page-env-20':'page-env-160'"
  43. :style="{top:`${$tools.topHeight()+fixedHeight}px`}">
  44. <view class="m-lr20 m-t20">
  45. <z-swiper style="width: 95vw;" v-model="list" :options="options" v-if="current === 1">
  46. <z-swiper-item>
  47. <Identity :business="business"></Identity>
  48. </z-swiper-item>
  49. <z-swiper-item>
  50. <Apply :apply-for="applyFor"></Apply>
  51. </z-swiper-item>
  52. <z-swiper-item>
  53. <ThirdParty :tripartite="tripartite"></ThirdParty>
  54. </z-swiper-item>
  55. </z-swiper>
  56. <view class="" v-if="current === 2">
  57. <z-swiper v-model="lists" :options="options">
  58. <z-swiper-item>
  59. <Property :property-list="propertyList"></Property>
  60. </z-swiper-item>
  61. </z-swiper>
  62. </view>
  63. </view>
  64. <Record v-if="current === 3"></Record>
  65. <Steps v-if="current === 4"></Steps>
  66. </view>
  67. <EnButton :text="'冲销'" v-if="current === 1"></EnButton>
  68. <EnButton is_both :leftText="'交接'" :rightText="'操作'" v-if="current === 2" @onSubmit="onSubmit"></EnButton>
  69. </view>
  70. </template>
  71. <script>
  72. import TaskTab from "@/common/task/task_tab.vue"
  73. // 身份信息
  74. import Identity from "./module/identity.vue"
  75. // 申请信息
  76. import Apply from "./module/apply.vue"
  77. // 第三方信息
  78. import ThirdParty from "./module/third_party.vue"
  79. // 资产信息
  80. import Property from "./module/property.vue"
  81. // 审核进度
  82. import Steps from "./module/steps.vue"
  83. // 跟进记录
  84. import Record from "./module/record.vue"
  85. import tools from "@/service/tools";
  86. import {
  87. getStageList,
  88. getTaskDetail
  89. } from "@/api/task";
  90. export default {
  91. components: {
  92. TaskTab,
  93. Identity,
  94. ThirdParty,
  95. Apply,
  96. Property,
  97. Record,
  98. Steps
  99. },
  100. data() {
  101. return {
  102. current: 1,
  103. fixedHeight: 200,
  104. options: {
  105. autoHeight: true,
  106. centeredSlides: true,
  107. },
  108. list: [1, 2, 3],
  109. lists: [1, 2],
  110. businessId: '',
  111. product: {
  112. product_name: '',
  113. product_types: [],
  114. type_data: []
  115. },
  116. business: {
  117. status: 1,
  118. phone: '',
  119. identity_one: '',
  120. identity_two: '',
  121. marriage_img: [],
  122. credit_img: [],
  123. }, //基本信息
  124. propertyList: [], //资产信息
  125. applyFor: {}, //申请信息
  126. credit: {}, //征信信息
  127. postLoan: {}, //贷后信息
  128. tripartite: [], //第三方信息
  129. linkman: [], //联系人信息
  130. stageData: {
  131. stageName: '',
  132. userName: ""
  133. },
  134. isAjax: false,
  135. isExecute: 0,
  136. msgList: [],
  137. executeData: [],
  138. showExecute: false,
  139. auditType: 0,
  140. previewList: [],
  141. imgKey: 0,
  142. imgList: [],
  143. replyId: "",
  144. stageList: [],
  145. businessStageList: [],
  146. businessFile: {
  147. fileList: [],
  148. imgList: [],
  149. videoList: [],
  150. },
  151. videoUrl: ''
  152. }
  153. },
  154. onLoad(data) {
  155. if (data.taskId !== undefined) {
  156. this.businessId = data.taskId
  157. this.getTaskDetail()
  158. this.getStageList()
  159. } else {
  160. tools.leftClick()
  161. }
  162. },
  163. methods: {
  164. async getTaskDetail() {
  165. const res = await getTaskDetail({
  166. id: this.businessId
  167. })
  168. if (res.code === 1) {
  169. this.product = res.data.product
  170. this.business = res.data.business
  171. this.propertyList = res.data.propertyList
  172. this.applyFor = res.data.applyFor
  173. this.tripartite = res.data.tripartite
  174. this.linkman = res.data.linkman
  175. this.credit = res.data.credit
  176. this.postLoan = res.data.postLoan
  177. this.stageData = res.data.stageData
  178. this.isExecute = res.data.isExecute
  179. this.businessFile = res.data.businessFile
  180. } else {
  181. tools.leftClick()
  182. }
  183. },
  184. getStageList() {
  185. getStageList({
  186. 'id': this.businessId
  187. }).then((res) => {
  188. if (res.code === 1) {
  189. this.stageList = res.data
  190. }
  191. })
  192. },
  193. onChange(current) {
  194. this.current = current
  195. },
  196. onSubmit() {
  197. uni.navigateTo({
  198. url: "/page_task/task_operate/task_operate"
  199. })
  200. }
  201. }
  202. }
  203. </script>
  204. <style lang="scss" scoped>
  205. .details_body {
  206. width: 100%;
  207. position: absolute;
  208. }
  209. .detail-bg {
  210. position: relative;
  211. }
  212. .detail-img {
  213. width: calc(100%);
  214. height: 220rpx;
  215. }
  216. .detail-content {
  217. position: absolute;
  218. top: 10rpx;
  219. left: 20rpx;
  220. .top-titke {
  221. height: 75rpx;
  222. line-height: 75rpx;
  223. // background: red;
  224. }
  225. .detail-line {
  226. width: 2rpx;
  227. height: 24rpx;
  228. background-color: #FFFFFF;
  229. }
  230. .buttom-titke {
  231. flex: 1;
  232. margin-top: 40rpx;
  233. height: 90rpx;
  234. width: 635rpx;
  235. line-height: 90rpx;
  236. border-radius: 20rpx;
  237. padding: 0 20rpx;
  238. }
  239. }
  240. .swiper-wrapper {
  241. z-index: 0 !important;
  242. }
  243. </style>