task_details.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. <template>
  2. <view class="total-page page-env-20 page-box">
  3. <Nav :back="isReturn!==1" :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="/page_task/static/img/task-details/top-bg.png" mode="aspectFill">
  7. </image>
  8. <view class="detail-content">
  9. <view class="row-c m-l10 m-t16 m-b20 text-color-fff">
  10. <image class="wh-45 r-circle" src="https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/307262/4/9992/255939/684f9a78Fbddd6f3f/e07bf46597371d37.jpg"
  11. mode="aspectFill">
  12. </image>
  13. <text class="size-28 m-lr16 m-t6">大连市甘井子区宜居园81号2单元1层1号房屋</text>
  14. <view class="row-c size-24 sys-bg-007038 r-100 p-lr16 p-tb6 m-l20" >
  15. <text>住宅</text>
  16. </view>
  17. <image class="wh-60 animate__animated animate__fadeInDownBig"
  18. style="position: absolute;right: 20rpx;"
  19. :src="'/page_task/static/img/task-details/icon-1.png'"
  20. mode="aspectFill">
  21. </image>
  22. </view>
  23. <view class="row-justify-sb center buttom-titke sys-bg-BFD2CC text-color-12 size-24">
  24. <text class="size-28 text-color-E21 sys-weight-600">{{applyFor.quota}}万</text>
  25. <text>{{business.stageName}}</text>
  26. <text>{{applyFor.use_date}}用款</text>
  27. <view class="row-c">
  28. <image class="wh-25 m-r10" src="/page_task/static/img/task-details/usrr.png" mode="">
  29. </image>
  30. <text>{{business.creation_name}}</text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <TaskTab :current="current" @onChange="onChange"></TaskTab>
  36. </view>
  37. </Nav>
  38. <view class="sys-list-background-color task-tabs-width "
  39. :style="{top:`${$tools.topHeight()+fixedHeight}px`}">
  40. <view v-if="current === 1"></view>
  41. <view >
  42. <graph></graph>
  43. </view>
  44. </view>
  45. <!-- <EnButton :text="'冲销'" v-if="current === 1"></EnButton>-->
  46. <!-- <EnButton is_both :leftText="'交接'" :rightText="'操作'" @onSubmit="setTaskOperate(1)" @onLeftSubmit="openExecute"></EnButton>-->
  47. <uni-popup ref="executePopup" type="bottom">
  48. <EnSelect title="请选择任务接收人" :local-data="executeData" ref="system" v-model="executeId"
  49. @setAffirm="setNewExecute" @close="closeExecutePopup"></EnSelect>
  50. </uni-popup>
  51. </view>
  52. </template>
  53. <script>
  54. import TaskTab from "@/common/task/task_tab.vue"
  55. // 身份信息
  56. import Identity from "./module/identity.vue"
  57. // 申请信息
  58. import Apply from "./module/apply.vue"
  59. // 第三方信息
  60. import ThirdParty from "./module/third_party.vue"
  61. // 资产信息
  62. import Property from "./module/property.vue"
  63. // 审核进度
  64. import Steps from "./module/steps.vue"
  65. // 跟进记录
  66. import Record from "./module/record.vue"
  67. import tools from "@/service/tools";
  68. import {
  69. cancellation,
  70. endTask,
  71. getExecuteList,
  72. getStageList,
  73. getTaskDetail,
  74. setExecute,
  75. takeTask
  76. } from "@/api/task";
  77. import EnSelect from "@/components/en-utils/en-select/en-select.vue";
  78. import CreditList from "@/page_task/credit/credit.vue";
  79. import {type} from "@/uni_modules/uni-forms/components/uni-forms/utils";
  80. import Graph from "@/page_task/graph/index.vue";
  81. export default {
  82. components: {
  83. Graph,
  84. CreditList,
  85. EnSelect,
  86. TaskTab,
  87. Identity,
  88. ThirdParty,
  89. Apply,
  90. Property,
  91. Record,
  92. Steps
  93. },
  94. data() {
  95. return {
  96. current: 1,
  97. fixedHeight: 200,
  98. options: {
  99. // autoHeight: true,
  100. slidesPerView: 1.1,
  101. centeredSlides: true,
  102. spaceBetween: 10,
  103. effect: 'cards'
  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. id: 0,
  115. status: 0,
  116. phone: '',
  117. identity_one: '',
  118. identity_two: '',
  119. marriage_img: [],
  120. credit_img: [],
  121. }, //基本信息
  122. propertyList: [], //资产信息
  123. applyFor: {}, //申请信息
  124. credit: {}, //征信信息
  125. postLoan: {}, //贷后信息
  126. tripartite: [], //第三方信息
  127. linkman: [], //联系人信息
  128. stageData: {
  129. stageName: '',
  130. userName: ""
  131. },
  132. isAjax: false,
  133. isExecute: 0,
  134. msgList: [],
  135. executeData: [],
  136. showExecute: false,
  137. auditType: 0,
  138. previewList: [],
  139. imgKey: 0,
  140. imgList: [],
  141. replyId: "",
  142. stageList: [],
  143. businessStageList: [],
  144. businessFile: {
  145. fileList: [],
  146. imgList: [],
  147. videoList: [],
  148. },
  149. videoUrl: '',
  150. executeId: '',
  151. clientKey: [],
  152. propertyKey: [],
  153. appliesKey: [],
  154. tripartiteKey: [],
  155. linkmanKey: [],
  156. creditKey: [],
  157. identityHeight: 0,
  158. thirdPartHeight: 0,
  159. applyHeight: 0,
  160. propertyHeight: 0,
  161. creditListHeight: 0,
  162. maxHeight: '100%',
  163. creditHeight: '100%',
  164. basicType:['1'],
  165. restType:['2'],
  166. isReturn:0
  167. }
  168. },
  169. onLoad(data) {
  170. console.log('-----------aaaaa-----------')
  171. },
  172. mounted() {
  173. },
  174. methods: {
  175. makingCall(phone){
  176. tools.makingCall(phone)
  177. },
  178. onShowImg(item) {
  179. console.log(this.businessFile.imgList)
  180. let imgIndex=this.businessFile.imgList.indexOf(item)
  181. if (imgIndex < 0) {
  182. this.businessFile.imgList.push(item)
  183. imgIndex=this.businessFile.imgList.length-1
  184. }
  185. console.log(this.businessFile.imgList)
  186. // 预览图片
  187. uni.previewImage({
  188. current: imgIndex,
  189. urls: this.businessFile.imgList,
  190. });
  191. },
  192. auditTask(auditType) {
  193. },
  194. setPostLoan() {
  195. },
  196. editTask() {
  197. },
  198. cancellation() {
  199. },
  200. endTask() {
  201. },
  202. takeTask() {
  203. },
  204. closeExecutePopup(){
  205. },
  206. setNewExecute(type) {
  207. if (type) {
  208. //设置新执行人
  209. if (this.executeId <= 0) {
  210. tools.error('请选择执行人')
  211. return
  212. }
  213. setExecute({
  214. 'business_id': this.businessId,
  215. 'user_id': this.executeId
  216. }).then((res) => {
  217. if (res.code === 1) {
  218. tools.success(res.msg)
  219. uni.$emit('newReceiving')
  220. this.getTaskDetail()
  221. } else {
  222. tools.error(res.msg)
  223. }
  224. })
  225. }
  226. this.$refs.executePopup.close('bottom')
  227. },
  228. openExecute() {
  229. },
  230. setTaskOperate(type) {
  231. },
  232. async getTaskDetail() {
  233. },
  234. // 获取详情高度Swiper
  235. getDetailsHeight() {
  236. this.maxHeight = '100%'
  237. this.$nextTick(() => {
  238. const query = uni.createSelectorQuery().in(this);
  239. setTimeout(() => {
  240. query.select('.identity').boundingClientRect(data => {
  241. if (data) {
  242. this.maxHeight = data.height
  243. console.log(this.maxHeight);
  244. uni.pageScrollTo({
  245. scrollTop: 0,
  246. duration: 300
  247. });
  248. }
  249. }).exec();
  250. }, 200)
  251. })
  252. },
  253. // 获取详情高度Swiper
  254. onSwiper(swiper, index) {
  255. this.maxHeight = '100%'
  256. const query = uni.createSelectorQuery().in(this);
  257. this.$nextTick(() => {
  258. setTimeout(() => {
  259. if (index == 0) {
  260. query.select('.identity').boundingClientRect(data => {
  261. if (data) {
  262. this.maxHeight = data.height
  263. }
  264. }).exec();
  265. }
  266. if (index == 1) {
  267. query.select('.apply').boundingClientRect(data => {
  268. if (data) {
  269. this.maxHeight = data.height
  270. }
  271. }).exec();
  272. }
  273. if (index == 2) {
  274. query.select('.third_party').boundingClientRect(data => {
  275. if (data) {
  276. this.maxHeight = data.height
  277. }
  278. }).exec();
  279. }
  280. uni.pageScrollTo({
  281. scrollTop: 0,
  282. duration: 300
  283. });
  284. }, 200)
  285. })
  286. },
  287. // 征信高度Swiper
  288. onCreditHeight() {
  289. },
  290. // 征信高度Swiper
  291. onCreditSwiper(swiper, index) {
  292. },
  293. onChange(current) {
  294. if (current == 1) {
  295. this.getDetailsHeight()
  296. }
  297. if (current == 2) {
  298. this.onCreditHeight()
  299. }
  300. this.current = current
  301. uni.pageScrollTo({
  302. scrollTop: 0,
  303. duration: 300
  304. });
  305. },
  306. onSubmit() {
  307. }
  308. }
  309. }
  310. </script>
  311. <style lang="scss" scoped>
  312. .swiper-box{
  313. overflow: hidden;
  314. .swiper-item{
  315. transition: .5s ease;
  316. }
  317. .swiper-item-box{
  318. min-height: calc(100vh - 630rpx - 160rpx - env(safe-area-inset-bottom));
  319. }
  320. }
  321. .details_body {
  322. width: 100%;
  323. position: absolute;
  324. }
  325. .detail-bg {
  326. position: relative;
  327. }
  328. .detail-img {
  329. width: calc(100%);
  330. height: 220rpx;
  331. }
  332. .detail-content {
  333. position: absolute;
  334. top: 10rpx;
  335. left: 20rpx;
  336. .top-titke {
  337. height: 75rpx;
  338. line-height: 75rpx;
  339. // background: red;
  340. }
  341. .detail-line {
  342. width: 2rpx;
  343. height: 24rpx;
  344. background-color: #FFFFFF;
  345. }
  346. .buttom-titke {
  347. flex: 1;
  348. margin-top: 40rpx;
  349. height: 90rpx;
  350. width: 635rpx;
  351. line-height: 90rpx;
  352. border-radius: 20rpx;
  353. padding: 0 20rpx;
  354. }
  355. }
  356. .swiper-wrapper {
  357. z-index: 0 !important;
  358. }
  359. .video-box {
  360. height: 70vh;
  361. width: 100vw;
  362. .myVideo {
  363. height: 70vh;
  364. width: 100vw;
  365. }
  366. }
  367. </style>