index.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <u-tag plain plainFill :text="formtterStatus(item.status)" :type="item.status == '1' ? 'warning' : item.status == '2' ? 'primary' : 'success'"></u-tag>
  14. </view>
  15. </view>
  16. <view class="imgs">
  17. <imgs-row-scroll :images="item.imgsUrl" :previewEnabled="true" :showIndicator="false"
  18. :imageWidth="140" :imageHeight="140"></imgs-row-scroll>
  19. </view>
  20. <view class="list_item_bottom">
  21. <view class="bottom">
  22. <u-icon name="bookmark" size="16" color="#9ca3af"></u-icon>
  23. <text class="code">编码:{{ item.code }}</text>
  24. </view>
  25. <view class="bottom">
  26. <u-icon name="clock" size="16" color="#9ca3af"></u-icon>
  27. <text class="time">{{ item.updateTime }}</text>
  28. </view>
  29. </view>
  30. </view>
  31. <show-emtry v-if="list.length === 0"></show-emtry>
  32. </scroll-view>
  33. <add-inquiry-dialog ref="addInquiryDialog" editOrAdd="edit" :editInfo="editInfo" @success="handleInquirySuccess"
  34. @addSuccess="handleInquiryCancel" />
  35. </view>
  36. </template>
  37. <script>
  38. import imgsRowScroll from '@/components/imgs-row-scroll/index.vue'
  39. import addInquiryDialog from '@/components/add-inquiry-dialog/index.vue'
  40. import inquiryVerificationList from "./mixins/inquiryVerificationList.js";
  41. export default {
  42. components: {
  43. imgsRowScroll,
  44. addInquiryDialog
  45. },
  46. mixins: [inquiryVerificationList]
  47. }
  48. </script>
  49. <style lang="scss">
  50. @import "./styles/index.scss";
  51. </style>