index.vue 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. <view class="name">
  10. <view>{{ item.dictLabel }}</view>
  11. &nbsp;&nbsp;
  12. <view v-if="item.myPrice != null && item.myPrice !== ''" class="my-price">
  13. 我的报价:<u-icon name="rmb-circle"></u-icon>{{ item.myPrice }}
  14. </view>
  15. </view>
  16. <text class="desc">{{ type == '1' ? '意向' : item.model }}</text>
  17. </view>
  18. <view class="top_right">
  19. <u-tag plain plainFill :text="formtterStatus(item)" :type="(item.currentUserCompleted || (item.myPrice != null && item.myPrice !== '')) ? 'success' : 'warning'"></u-tag>
  20. </view>
  21. </view>
  22. <view class="imgs">
  23. <imgs-row-scroll :images="item.imgsUrl" :previewEnabled="true" :showIndicator="false"
  24. :imageWidth="140" :imageHeight="140"></imgs-row-scroll>
  25. </view>
  26. <view class="list_item_bottom">
  27. <view class="bottom">
  28. <u-icon name="bookmark" size="16" color="#9ca3af"></u-icon>
  29. <text class="code">编码:{{ item.code }}</text>
  30. </view>
  31. <view class="bottom">
  32. <u-icon name="clock" size="16" color="#9ca3af"></u-icon>
  33. <text class="time">{{ item.updateTime }}</text>
  34. </view>
  35. </view>
  36. </view>
  37. <u-empty v-if="list.length === 0"></u-empty>
  38. </scroll-view>
  39. <add-inquiry-dialog ref="addInquiryDialog" editOrAdd="edit" :editInfo="editInfo" :isShowHistory="true" :type="type" :title="type == '1' ? '询价' : '核价'" @submitSuccess="onRefresh" />
  40. </view>
  41. </template>
  42. <script>
  43. import imgsRowScroll from '@/components/imgs-row-scroll/index.vue'
  44. import addInquiryDialog from '@/components/add-inquiry-dialog/index.vue'
  45. import inquiryVerificationList from "./mixins/inquiryVerificationList.js";
  46. export default {
  47. components: {
  48. imgsRowScroll,
  49. addInquiryDialog
  50. },
  51. mixins: [inquiryVerificationList]
  52. }
  53. </script>
  54. <style lang="scss">
  55. @import "./styles/index.scss";
  56. </style>