|
@@ -4,8 +4,191 @@
|
4
|
4
|
<i class="el-icon-message-solid"></i>
|
5
|
5
|
<div>
|
6
|
6
|
<p>可将选中的客户转接给其他员工,进行后续服务</p>
|
7
|
|
- <p>注意:90天内客户只能被转移一次,一个客户最多只能被转接两次</p>
|
|
7
|
+ <p v-if="userType==2">注意:90天内客户只能被转移一次,一个客户最多只能被转接两次</p>
|
8
|
8
|
</div>
|
9
|
9
|
</div>
|
|
10
|
+ <service-single title='接替员工' style="margin-top:20px;margin-left:-30px" @customerDefine="serviceSingleEvent"></service-single>
|
|
11
|
+ <div class="buttons">
|
|
12
|
+ <el-button type="primary" plain size="mini" @click="$emit('closeToast')">取消</el-button>
|
|
13
|
+ <el-button type="primary" size="mini" @click="defineEvent">确定</el-button>
|
|
14
|
+ </div>
|
|
15
|
+
|
|
16
|
+ <el-dialog title="分配客户" :visible.sync="infoVisible" :close-on-click-modal="false" width="600px" append-to-body center top="15vh">
|
|
17
|
+ <div class="self-hint" style="border:none;">
|
|
18
|
+ <i class="el-icon-message-solid"></i>
|
|
19
|
+ <p>转接后客户将在24小时后成功转接,若客户拒绝,本次转接将不会生效</p>
|
|
20
|
+ </div>
|
|
21
|
+ <div class="userReceive">
|
|
22
|
+ <div class="receiveTop">
|
|
23
|
+ <p>客户将收到以下消息</p>
|
|
24
|
+ <div class="xg" @click="userChangeVisible=true"><i class="el-icon-edit"></i><span>修改</span></div>
|
|
25
|
+ </div>
|
|
26
|
+ <div class="userReceiveInfo">
|
|
27
|
+ <div class="user">
|
|
28
|
+ <div class="phonePeople">
|
|
29
|
+ <i class="el-icon-s-custom"></i>
|
|
30
|
+ </div>
|
|
31
|
+ <div class="con">{{reason}}</div>
|
|
32
|
+ </div>
|
|
33
|
+ <div class="userHint">由于工作变更,<span>{{user_replace_info.name}}@{{enterprise.corp_full_name?enterprise.corp_full_name:enterprise.corp_name}}</span>将在24小时后添加为你的企业微信联系人,接替 高秀丽@几门成都见公司 继续为你提供服务。</div>
|
|
34
|
+ <div class="userHint"><span>暂不添加</span></div>
|
|
35
|
+ </div>
|
|
36
|
+ </div>
|
|
37
|
+ <div class="buttons">
|
|
38
|
+ <el-button type="primary" plain size="mini" @click="userChangeVisible=false">返回</el-button>
|
|
39
|
+ <el-button type="primary" size="mini" @click="userChangeVisible=false;reason=changeReason;">保存</el-button>
|
|
40
|
+ </div>
|
|
41
|
+ </el-dialog>
|
|
42
|
+ <el-dialog title="分配客户" :visible.sync="userChangeVisible" :close-on-click-modal="false" width="600px" append-to-body center top="15vh">
|
|
43
|
+ <div class="self-hint">
|
|
44
|
+ <i class="el-icon-message-solid"></i>
|
|
45
|
+ <span>转接后客户将在24小时后成功转接,若客户拒绝,本次转接将不会生效</span>
|
|
46
|
+ </div>
|
|
47
|
+ <div class="receiveTop" style="margin-top:15px">
|
|
48
|
+ <p>客户将收到以下消息</p>
|
|
49
|
+ </div>
|
|
50
|
+ <textarea class="textarea" autocomplete="off" placeholder="请输入客户收到的消息" v-model="changeReason"></textarea>
|
|
51
|
+ <div class="buttons">
|
|
52
|
+ <el-button type="primary" plain size="mini" @click="userChangeVisible=false">返回</el-button>
|
|
53
|
+ <el-button type="primary" size="mini" @click="userChangeVisible=false;reason=changeReason;">保存</el-button>
|
|
54
|
+ </div>
|
|
55
|
+ </el-dialog>
|
|
56
|
+ <el-dialog title="设置" :visible.sync="setUpVisible" :close-on-click-modal="false" width="600px" append-to-body center top="15vh">
|
|
57
|
+
|
|
58
|
+ </el-dialog>
|
10
|
59
|
</div>
|
11
|
|
-</template>
|
|
60
|
+</template>
|
|
61
|
+<script>
|
|
62
|
+import serviceSingle from '@/components/assembly/screen/serviceSingle.vue'
|
|
63
|
+export default {
|
|
64
|
+ components: { serviceSingle },
|
|
65
|
+ props: {
|
|
66
|
+ userType: {
|
|
67
|
+ type: Number | String,
|
|
68
|
+ }
|
|
69
|
+ },
|
|
70
|
+ data () {
|
|
71
|
+ return {
|
|
72
|
+ user_replace_info: {},
|
|
73
|
+ userChangeVisible: false,
|
|
74
|
+ reason: '您好,您的服务已升级,后续将由我的同事 高秀丽@几门成都见公司 接替我的工作,继续为您服务。',
|
|
75
|
+ changeReason: '您好,您的服务已升级,后续将由我的同事 高秀丽@几门成都见公司 接替我的工作,继续为您服务。',
|
|
76
|
+ setUpVisible: false,
|
|
77
|
+ infoVisible: false,
|
|
78
|
+ enterprise: {}
|
|
79
|
+ }
|
|
80
|
+ },
|
|
81
|
+ created () {
|
|
82
|
+ this.enterprise = JSON.parse(this.$localSelfStore.getLocal('defaultCorp'));
|
|
83
|
+ },
|
|
84
|
+ methods: {
|
|
85
|
+ serviceSingleEvent (val) {
|
|
86
|
+ if (val && val.user_id) {
|
|
87
|
+ this.user_replace_info = val;
|
|
88
|
+ } else {
|
|
89
|
+ this.user_replace_info = {}
|
|
90
|
+ }
|
|
91
|
+
|
|
92
|
+ },
|
|
93
|
+ defineEvent () {
|
|
94
|
+ if (!this.user_replace_info || !this.user_replace_info.user_id) {
|
|
95
|
+ this.$message({
|
|
96
|
+ message: '请选择接替员工!',
|
|
97
|
+ type: "warning"
|
|
98
|
+ })
|
|
99
|
+ return
|
|
100
|
+ }
|
|
101
|
+ this.infoVisible = true
|
|
102
|
+ },
|
|
103
|
+ }
|
|
104
|
+}
|
|
105
|
+</script>
|
|
106
|
+<style lang="scss" scoped>
|
|
107
|
+.line {
|
|
108
|
+ width: 100%;
|
|
109
|
+ height: 1px;
|
|
110
|
+ background: #f1f1f1;
|
|
111
|
+ margin: 30px 0 30px 0;
|
|
112
|
+}
|
|
113
|
+.receiveTop {
|
|
114
|
+ display: flex;
|
|
115
|
+ align-items: center;
|
|
116
|
+ justify-content: space-between;
|
|
117
|
+ p {
|
|
118
|
+ color: #444444;
|
|
119
|
+ font-size: 13px;
|
|
120
|
+ line-height: 18px;
|
|
121
|
+ }
|
|
122
|
+ .xg {
|
|
123
|
+ display: flex;
|
|
124
|
+ align-items: center;
|
|
125
|
+ color: #00b38a;
|
|
126
|
+ font-size: 13px;
|
|
127
|
+ line-height: 18px;
|
|
128
|
+ font-weight: bold;
|
|
129
|
+ cursor: pointer;
|
|
130
|
+ i {
|
|
131
|
+ margin-right: 7px;
|
|
132
|
+ }
|
|
133
|
+ }
|
|
134
|
+}
|
|
135
|
+.userReceive {
|
|
136
|
+ margin-top: 20px;
|
|
137
|
+
|
|
138
|
+ .userReceiveInfo {
|
|
139
|
+ background: #fafafa;
|
|
140
|
+ padding: 20px;
|
|
141
|
+ margin-top: 10px;
|
|
142
|
+ .user {
|
|
143
|
+ display: flex;
|
|
144
|
+ .phonePeople {
|
|
145
|
+ width: 26px;
|
|
146
|
+ height: 26px;
|
|
147
|
+ background: #00b38a;
|
|
148
|
+ color: #ffffff;
|
|
149
|
+ font-size: 16px;
|
|
150
|
+ display: flex;
|
|
151
|
+ align-items: center;
|
|
152
|
+ justify-content: center;
|
|
153
|
+ border-radius: 2px;
|
|
154
|
+ margin-right: 6px;
|
|
155
|
+ margin-top: 2px;
|
|
156
|
+ }
|
|
157
|
+ .con {
|
|
158
|
+ flex: 1;
|
|
159
|
+ color: #333333;
|
|
160
|
+ font-size: 14px;
|
|
161
|
+ line-height: 20px;
|
|
162
|
+ background: #fefeff;
|
|
163
|
+ padding: 8px 13px;
|
|
164
|
+ border: 1px solid #eeeeee;
|
|
165
|
+ border-radius: 2px;
|
|
166
|
+ }
|
|
167
|
+ }
|
|
168
|
+ .userHint {
|
|
169
|
+ color: #787878;
|
|
170
|
+ font-size: 13px;
|
|
171
|
+ line-height: 18px;
|
|
172
|
+ text-align: center;
|
|
173
|
+ margin-top: 13px;
|
|
174
|
+ span {
|
|
175
|
+ color: #5a6c95;
|
|
176
|
+ }
|
|
177
|
+ }
|
|
178
|
+ }
|
|
179
|
+}
|
|
180
|
+.buttons {
|
|
181
|
+ text-align: right;
|
|
182
|
+ padding: 20px 0 10px;
|
|
183
|
+}
|
|
184
|
+.textarea {
|
|
185
|
+ width: 100%;
|
|
186
|
+ height: 237px;
|
|
187
|
+ margin-top: 10px;
|
|
188
|
+ background: #fafafa !important;
|
|
189
|
+ border: none;
|
|
190
|
+ padding: 15px 10px;
|
|
191
|
+ font-size: 14px;
|
|
192
|
+ color: #333333;
|
|
193
|
+}
|
|
194
|
+</style>
|