myrecord.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <view class="page scoped-box">
  3. <view class="buystep-info u-p-32 box-shadow u-skeleton-fillet">
  4. <view class="name">跟进记录:{{custTips || ''}}</view>
  5. <u-empty v-if="stepsLogList.length == 0" mode="list" text="暂无流水记录"></u-empty>
  6. <u-time-line>
  7. <u-time-line-item v-for="(item, index) in stepsLogList" :key="index">
  8. <template v-slot:node>
  9. <view class="u-node"><u-icon name="checkmark-circle" size="28" color="#2080f0"></u-icon></view>
  10. </template>
  11. <template v-slot:content>
  12. <view>
  13. <view class="u-order-title">日常维护:</view>
  14. <view class="u-order-desc">{{item.record_remark}}</view>
  15. <view class="u-order-img" v-if="item.record_img">
  16. <image class="img" :src="item.record_img" mode="aspectFill" @click="previewImgHandle(item.record_img, [item.record_img])"></image>
  17. </view>
  18. <view class="u-order-time">{{ item.create_at}}</view>
  19. </view>
  20. </template>
  21. </u-time-line-item>
  22. </u-time-line>
  23. </view>
  24. <u-button class="f-btn bwin-btn-80 u-m-b-10" type="primary" @click="addHandle">添加跟进记录</u-button>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. curId: '',
  32. custTips: '',
  33. detail: {
  34. }, // 客户详情
  35. stepsLogList: [] // 进展
  36. };
  37. },
  38. onLoad(params) {
  39. this.curId = params.id
  40. this.custTips = params.str
  41. },
  42. onShow() {
  43. this.getData()
  44. },
  45. methods: {
  46. getData () {
  47. uni.api.cust.apiprivaterecordlist({customer_id:this.curId, page_size: 100}).then(res =>{
  48. this.stepsLogList = res.list || []
  49. })
  50. },
  51. previewImgHandle (current, urls){
  52. uni.previewImage({
  53. current,
  54. urls
  55. })
  56. },
  57. addHandle () {
  58. uni.navigateTo({
  59. url: `/pages/cust/myrecordedit?id=${this.curId}`
  60. })
  61. },
  62. }
  63. };
  64. </script>
  65. <style lang="scss">
  66. .buystep-info {
  67. width: 100%;
  68. padding: 32rpx 0rpx;
  69. background-color: #fff;
  70. margin-bottom: 20rpx;
  71. border-radius: 10rpx;
  72. .name {
  73. font-weight: bold;
  74. margin-bottom: 20rpx;
  75. }
  76. .u-order-title {
  77. color: $u-main-color;
  78. font-size: $u-p2;
  79. }
  80. .u-order-desc {
  81. // color: $u-content-color;
  82. color: #777;
  83. font-size: $u-p2;
  84. margin-bottom: 6rpx;
  85. padding-top: 10rpx;
  86. }
  87. .u-order-img {
  88. padding: 10rpx;
  89. .img {
  90. width: 160rpx;
  91. height: 160rpx;
  92. }
  93. }
  94. .u-order-time {
  95. color: rgb(200, 200, 200);
  96. font-size: $u-p2;
  97. }
  98. }
  99. .scoped-box {
  100. padding-bottom: 100rpx;
  101. .f-btn {
  102. position: fixed;
  103. bottom: 0;
  104. left: 20rpx;
  105. right: 20rpx;
  106. }
  107. }
  108. </style>