hejianhao
2025-04-16 dab2d210ca06c1faa514c6388fbd5de1ab355360
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
147
<template class="custom-scroll">
<div>
  <div class="nav">
    <span>预约详情</span>
    <el-button type="primary" size="small" @click="banck">返 回</el-button>
  </div>
  <div v-for="(item,index) in list" :key="index">
 
  <!-- 待处理 -->
  <div class="appointment-content" v-if="item.status == 1">
    <div class="appointment-lie">
      <p class="title">
        <!-- <span class="img"><img src=""></span> -->
        <span class="title-text">{{item.createAt}}提交</span>
      </p>
     <div class="list-conetnt">
        <p><span>预约人手机号:</span>{{item.phone}}</p>
        <p><span>预计来访日期:</span>{{item.reserveTime.substring(0,10)}}</p>
        <p><span>预计来访时间:</span>{{item.reserveTime}}</p>
        <p><span>预约内容:</span>{{item.remark}}</p>
     </div>
    </div>
  </div>
  <!-- 预约成功 -->
  <div class="appointment-content" v-if="item.status == 2">
    <div class="appointment-lie">
      <p class="title">
        <!-- <span class="img"><img src=""></span> -->
        <span class="title-text">{{item.createAt}} {{item.createByName}}已处理</span>
      </p>
     <div class="list-conetnt">
        <p><span>成功预约日期:</span>{{item.reserveTime.substring(0,10)}}</p>
        <p><span>成功预约时间:</span>{{item.reserveTime}}</p>
        <p><span>社区备注:</span>{{item.remark}}</p>
     </div>
    </div>
  </div>
  <!-- 预约失败 -->
  <div class="appointment-content" v-if="item.status == 3">
    <div class="appointment-lie">
      <p class="title">
        <!-- <span class="img"><img src=""></span> -->
        <span class="title-text">{{item.createAt}}{{item.createByName}}已处理</span>
      </p>
     <div class="list-conetnt">
        <p><span>预约结果:</span>预约失败</p>
        <p><span>社区备注:</span>{{item.remark}}</p>
     </div>
    </div>
  </div>
  <!-- 已取消 -->
  <div class="appointment-content" v-if="item.status == 4">
    <div class="appointment-lie">
      <p class="title">
        <!-- <span class="img"><img src=""></span> -->
        <span class="title-text">{{item.createAt}} 由{{item.createByName}}取消</span>
      </p>
     <div class="list-conetnt">
        <p><span>取消原因:</span>{{item.remark}}  </p>
     </div>
    </div>
  </div>
 
  </div>
  </div>
 
</template>
 
<script>
export default {
  data() {
    return{
      list:[],
    }
  },
  mounted() {
    this.init();
  },
 
  methods:{
    init() {
      var url = `reserve/make/detail?reserveRecordId=${this.$route.params.id}`
      this.$api.get(url, {}, (e) => {
        this.list = e.operationList;
      });     
    },
 
    banck() {
      this.$router.back();
    }
  }
 
}
</script>
 
<style lang="less" scoped>
.custom-scroll {
  overflow: scroll;
}
.nav {
  padding-top: 15px;
  border-bottom: 1px #eaeaeb solid;
  padding-bottom: 20px;
  span {
    margin-right: 15px;
  }
}
.appointment-content {
  padding-top: 20px;
  font-size: 14px;
  color: #606266;
  position: relative;
  .appointment-lie {
    padding-bottom: 25px;
    .title-text::before {
      position: absolute;
      content: '';
      width: 10px;
      height: 10px;
      border-radius: 50%;
      left: -14px;
      background-color: #409EFF;
    }
    .title {
    }
 
  }
}
.list-conetnt {
  // padding-left: 50px;
  padding-top: 10px;
  p {
    width: 500px;
    line-height: 25px;
    padding-bottom: 10px;
    span {
      display: inline-block;
      padding-right: 5px;
      color: #333;
      // width: 100px;
      // text-align: right;
    }
 
  }
}
 
</style>