hetongCard.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <view class="shouye-card-box hetong-card-box">
  3. <!-- card title -->
  4. <view class="card-head-box">
  5. <view class="card-line-title">合同</view>
  6. </view>
  7. <!-- 内容区域 -->
  8. <view class="card-body-box">
  9. <view class="card-body-row">
  10. <view class="body-row">
  11. <view class="title-text">
  12. <icon class="user-icon" :style="{ backgroundImage: 'url(' + data.iconsArr.jzgsIcon + ')' }"></icon>家政公司名称
  13. </view>
  14. <view class="value-text">{{data.jzName}}</view>
  15. </view>
  16. <view class="body-row">
  17. <view class="title-text">
  18. <icon class="user-icon" :style="{ backgroundImage: 'url(' + data.iconsArr.htJzIcon + ')' }"></icon>家政人员名称
  19. </view>
  20. <view class="value-text">{{data.realName}}</view>
  21. </view>
  22. <view class="body-row">
  23. <view class="title-text">
  24. <icon class="idcard-icon" :style="{ backgroundImage: 'url(' + data.iconsArr.htKhIcon + ')' }"></icon>客户名称
  25. </view>
  26. <view class="value-text">{{data.khName}}</view>
  27. </view>
  28. </view>
  29. <view class="card-body-row">
  30. <view class="body-row">
  31. <view class="title-text">
  32. <icon class="date-icon" :style="{ backgroundImage: 'url(' + data.iconsArr.htTimeIcon + ')' }"></icon>合同开始时间
  33. </view>
  34. <view class="value-text">{{data.startDate}}</view>
  35. </view>
  36. <view class="body-row">
  37. <view class="title-text">
  38. <icon class="date-icon" :style="{ backgroundImage: 'url(' + data.iconsArr.htTimeIcon + ')' }"></icon>合同结束时间
  39. </view>
  40. <view class="value-text">{{data.endDate}}</view>
  41. </view>
  42. <view class="body-row">
  43. <view class="title-text">
  44. <icon class="htzt-icon" :style="{ backgroundImage: 'url(' + data.iconsArr.htZtIcon + ')' }"></icon>合同状态
  45. </view>
  46. <view class="status-0" v-if="data.status== 0">待签字</view>
  47. <view class="status-1" v-if="data.status== 1">待审核</view>
  48. <view class="status-2" v-if="data.status== 2">有效</view>
  49. <view class="status-3" v-if="data.status== 3">失效</view>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 底部 -->
  54. <view class="card-bottom-box">
  55. <button type="default" class="index-card-btn" @click="handleStudy(data)">查看</button>
  56. </view>
  57. </view>
  58. </template>
  59. <script setup>
  60. defineProps({
  61. data: {
  62. type: Object,
  63. }
  64. })
  65. function checkMore() {
  66. uni.navigateTo({
  67. url:"/pages/client/Kecheng/list?from=shouye"
  68. })
  69. }
  70. function handleStudy(item) {
  71. uni.navigateTo({
  72. url: `/pages/client/hetong/hetongInfo?id=${item.id}`
  73. })
  74. }
  75. </script>
  76. <style>
  77. </style>