index.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="inquiry_wrap">
  3. <u-navbar class="nav-bar" :title="type == '1' ? '询价中心' : '核价中心'" :autoBack="true" :placeholder="true"
  4. v-hideNav></u-navbar>
  5. <scroll-view class="list_wrap" scroll-y @scrolltolower="loadMore" enable-back-to-top>
  6. <view class="list_item" v-for="(item, index) in list" :key="index" @click="handleClick(item)">
  7. <view class="list_item_top">
  8. <view class="top_left">
  9. <text class="name">{{ item.dictLabel }}</text>
  10. <text class="desc">{{ type == '1' ? '意向' : item.model }}</text>
  11. </view>
  12. <view class="top_right">
  13. <text :class="['status', type == '1' ? 'inquiry' : 'verification']">{{
  14. formtterStatus(item.status) }}</text>
  15. </view>
  16. </view>
  17. <view class="imgs">
  18. <imgs-row-scroll :images="item.imgsUrl" :previewEnabled="true" :showIndicator="false"
  19. :imageWidth="140" :imageHeight="140"></imgs-row-scroll>
  20. </view>
  21. <view class="list_item_bottom">
  22. <view class="bottom">
  23. <u-icon name="bookmark" size="16" color="#9ca3af"></u-icon>
  24. <text class="code">编码:{{ item.code }}</text>
  25. </view>
  26. <view class="bottom">
  27. <u-icon name="clock" size="16" color="#9ca3af"></u-icon>
  28. <text class="time">{{ item.date }}</text>
  29. </view>
  30. </view>
  31. </view>
  32. <show-emtry v-if="list.length === 0"></show-emtry>
  33. </scroll-view>
  34. <add-inquiry-dialog ref="addInquiryDialog" editOrAdd="edit" :editInfo="editInfo" @success="handleInquirySuccess"
  35. @addSuccess="handleInquiryCancel" />
  36. </view>
  37. </template>
  38. <script>
  39. import imgsRowScroll from '@/components/imgs-row-scroll/index.vue'
  40. import addInquiryDialog from '@/components/add-inquiry-dialog/index.vue'
  41. import inquiryVerificationList from "./mixins/inquiryVerificationList.js";
  42. export default {
  43. components: {
  44. imgsRowScroll,
  45. addInquiryDialog
  46. },
  47. mixins: [inquiryVerificationList]
  48. }
  49. </script>
  50. <style lang="scss">
  51. @import "./styles/index.scss";
  52. </style>