detailAwaitReceivablesItem.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="list-item" @click="handleToDetail">
  3. <view class="list-item-main">
  4. <text class="left">
  5. {{ itemData.contractNum }}
  6. </text>
  7. <text class="right money">
  8. {{ itemData.money }}元
  9. </text>
  10. </view>
  11. <view class="list-item-desc">
  12. <text class="left">
  13. {{ itemData.customerName }}
  14. </text>
  15. <text class="right">
  16. 回款日期 {{ itemData.returnDate }}
  17. </text>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import {mapGetters} from 'vuex'
  23. export default {
  24. name: 'DetailReceivablesItem',
  25. props: {
  26. itemData: {
  27. type: Object,
  28. required: true
  29. }
  30. },
  31. computed: {
  32. ...mapGetters({
  33. calcStatus: 'base/calcStatus'
  34. })
  35. },
  36. methods: {
  37. handleToDetail() {
  38. this.$Router.navigateTo({
  39. url: '/pages_crm/contract/detail',
  40. query: {
  41. id: this.itemData.contractId
  42. }
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style scoped lang="scss">
  49. @import "detailItem";
  50. </style>