cloudroam
2025-03-28 cef2bb0eeeb91a22860cf5d23c7348af1ba921dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<template>
  <div class="after-sale-table">
    <div class="table-header">
      <div class="table-th">商品名称</div>
      <div class="table-th !flex-none w-220">订单编号</div>
      <div class="table-th !flex-none w-120">评价星级</div>
      <div class="table-th">供应商信息</div>
      <div class="table-th">评价内容</div>
      <div class="table-th !flex-none w-220">买家</div>
      <div class="table-th !flex-none w-220">评价时间</div>
      <div class="table-th !flex-none w-180">操作</div>
    </div>
    <div v-for="item in list" :key="item.id" class="table-item">
      <div class="table-body">
        <div class="table-td">
          <div class="flex">
            <el-bus-image :src="item.flowerCover" class="w-60 h-60 mr-8" />
            <div class="leading-20">
              <div class="text-14 font-bold">
                {{ item.flowerName }}
              </div>
              <div class="leading-20">
                <span>规格:{{ item.flowerUnit }}</span>
              </div>
              <div class="leading-20">
                <span>等级:{{ item.flowerLevel }}</span>
              </div>
            </div>
          </div>
        </div>
        <div class="table-td !flex-none w-220 flex items-center">
          <div class="leading-20">{{ item.orderNo }}</div>
        </div>
        <div class="table-td !flex-none w-120 flex items-center">
          <div class="leading-20" style="color: #3598db">{{item.commentGrade }}星</div>
        </div>
        <div class="table-td">
          <div class="leading-20">{{ item.supplierName }}[ID:{{ item.supplierId }}]</div>
        </div>
 
        <div class="table-td">
          <div class="leading-20">{{ item.comment }}</div>
        </div>
 
        <div class="table-td !flex-none w-220 flex items-center">
          <div class="leading-20">
            <div class="leading-20">
              <span>UID: {{ item.customerId }}</span>
            </div>
            <div class="leading-20">
              <span>昵称: {{ item.customerName }}</span>
            </div>
 
          </div>
        </div>
 
        <div class="table-td !flex-none w-220 flex items-center">
          <div class="leading-20">{{ item.createTime }}</div>
        </div>
 
        <div class="table-td !flex-none w-180 flex items-center">
          <el-button type="text" @click="onDetail(item)">查看</el-button>
          <el-button  v-if="item.showFlag == '1'" type="text" @click="onShow(item)" >显示</el-button>
          <el-button  v-if="item.showFlag == '0'" type="text" @click="onHide(item)" >隐藏</el-button>
          <el-button  type="text" @click="onHandle(item)" >回复</el-button>
          <el-button  type="text" @click="onDelete(item)" >删除</el-button>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  props: {
    list: {
      type: Array,
      default: () => [],
    },
  },
  methods: {
    onDetail(item) {
      this.$emit('detail', item)
    },
    onHandle(item) {
      this.$emit('handle', item)
    },
    onDelete(item) {
      this.$emit('delete', item)
    },
    onShow(item) {
      this.$emit('show', item)
    },
    onHide(item) {
      this.$emit('hide', item)
    },
  },
}
</script>
 
<style lang="scss" scoped>
.after-sale-table {
  .table-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: $main-title-color;
    background-color: #f4f4f5;
    .table-th {
      flex: 1;
      height: 45px;
      line-height: 45px;
      padding: 0 10px;
      font-weight: bold;
    }
  }
  .table-item {
    margin-top: 10px;
    border-bottom: 1px solid #eee;
    &__title {
      height: 35px;
      line-height: 35px;
      background-color: #f4f4f5;
      font-size: 14px;
      color: $main-title-color;
      padding: 0 10px;
      & > span {
        margin-right: 10px;
      }
    }
    .table-body {
      display: flex;
      align-items: stretch;
      font-size: 12px;
      color: $main-title-color;
      .table-td {
        flex: 1;
        padding: 15px 10px;
        &:not(:last-child) {
          border-right: 1px solid #eee;
        }
      }
    }
  }
}
</style>