task_details.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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/task-details/head.png" mode="aspectFill"></image>
  10. <text class="size-28 m-lr16">{{business.name}}</text>
  11. <view class="size-24 row-c sys-bg-007038 r-100 p-lr16 p-tb6">
  12. <text>{{business.sex===1?'男':'女'}}</text>
  13. <view class="detail-line m-lr10"></view>
  14. <text>{{business.age}}岁</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>{{business.phone}}</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">{{applyFor.quota}}万</text>
  28. <text>{{business.status_name}}</text>
  29. <text>{{applyFor.use_date}}用款</text>
  30. <view class="row-c">
  31. <image class="wh-25 m-r10" src="/static/img/task-details/usrr.png" mode=""></image>
  32. <text>{{business.creation_name}}</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 :business="business"></Identity>
  46. </z-swiper-item>
  47. <z-swiper-item>
  48. <Apply :apply-for="applyFor"></Apply>
  49. </z-swiper-item>
  50. <z-swiper-item>
  51. <ThirdParty :tripartite="tripartite"></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. product: {
  109. product_name: '',
  110. product_types: [],
  111. type_data:[]
  112. },
  113. business: {
  114. status: 1,
  115. phone: '',
  116. identity_one: '',
  117. identity_two: '',
  118. marriage_img: [],
  119. credit_img: [],
  120. }, //基本信息
  121. propertyList: [], //资产信息
  122. applyFor: {}, //申请信息
  123. credit: {}, //征信信息
  124. postLoan: {}, //贷后信息
  125. tripartite: [], //第三方信息
  126. linkman: [], //联系人信息
  127. stageData: {
  128. stageName: '',
  129. userName: ""
  130. },
  131. isAjax: false,
  132. isExecute: 0,
  133. msgList: [],
  134. executeData: [],
  135. showExecute: false,
  136. auditType: 0,
  137. previewList: [],
  138. imgKey: 0,
  139. imgList: [],
  140. replyId: "",
  141. stageList: [],
  142. businessStageList: [],
  143. businessFile: {
  144. fileList: [],
  145. imgList: [],
  146. videoList: [],
  147. },
  148. videoUrl: ''
  149. }
  150. },
  151. onLoad(data) {
  152. if (data.taskId !== undefined) {
  153. this.businessId = data.taskId
  154. this.getTaskDetail()
  155. this.getStageList()
  156. } else {
  157. tools.leftClick()
  158. }
  159. },
  160. methods: {
  161. async getTaskDetail() {
  162. const res = await getTaskDetail({
  163. id: this.businessId
  164. })
  165. if (res.code === 1) {
  166. this.product = res.data.product
  167. this.business = res.data.business
  168. this.propertyList = res.data.propertyList
  169. this.applyFor = res.data.applyFor
  170. this.tripartite = res.data.tripartite
  171. this.linkman = res.data.linkman
  172. this.credit = res.data.credit
  173. this.postLoan = res.data.postLoan
  174. this.stageData = res.data.stageData
  175. this.isExecute = res.data.isExecute
  176. this.businessFile = res.data.businessFile
  177. } else {
  178. tools.leftClick()
  179. }
  180. },
  181. getStageList() {
  182. getStageList({
  183. 'id': this.businessId
  184. }).then((res) => {
  185. if (res.code === 1) {
  186. this.stageList = res.data
  187. }
  188. })
  189. },
  190. onChange(current) {
  191. this.current = current
  192. },
  193. onSubmit() {
  194. uni.navigateTo({
  195. url: "/page_task/task_operate/task_operate"
  196. })
  197. }
  198. }
  199. }
  200. </script>
  201. <style lang="scss" scoped>
  202. .details_body {
  203. width: 100%;
  204. position: absolute;
  205. }
  206. .detail-bg {
  207. position: relative;
  208. }
  209. .detail-img {
  210. width: calc(100%);
  211. height: 220rpx;
  212. }
  213. .detail-content {
  214. position: absolute;
  215. top: 10rpx;
  216. left: 20rpx;
  217. .top-titke {
  218. height: 75rpx;
  219. line-height: 75rpx;
  220. // background: red;
  221. }
  222. .detail-line {
  223. width: 2rpx;
  224. height: 24rpx;
  225. background-color: #FFFFFF;
  226. }
  227. .buttom-titke {
  228. flex: 1;
  229. margin-top: 40rpx;
  230. height: 90rpx;
  231. width: 635rpx;
  232. line-height: 90rpx;
  233. border-radius: 20rpx;
  234. padding: 0 20rpx;
  235. }
  236. }
  237. </style>