telephone-clients 4.0.0-1-18 → 4.0.0-1-19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/filiale/xinkang/pc/ComplainWork.vue +336 -329
- package/src/filiale/xinkang/telephone.js +16 -16
- package/src/main.js +1 -1
package/package.json
CHANGED
|
@@ -1,329 +1,336 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="container-fluid auto">
|
|
3
|
-
<work-busy :is-busy="saveing" v-show="saveing"></work-busy>
|
|
4
|
-
<validator name="v">
|
|
5
|
-
<div class="row" >
|
|
6
|
-
<div class="row form-fix-width">
|
|
7
|
-
<label class="font_normal_body" style="width: 15%" title="参数名称:投诉内容">来电内容</label>
|
|
8
|
-
<div class="form-control" style="width: 80%;float: left">
|
|
9
|
-
<label class="checkbox-inline checkbox-fix-width" style="width:25%" v-for="content in contents" >
|
|
10
|
-
<input type="checkbox"
|
|
11
|
-
:value="content.value"
|
|
12
|
-
v-model="complaintstext">
|
|
13
|
-
{{content.value}}
|
|
14
|
-
</label>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="row" v-if="picked=='done'">
|
|
18
|
-
<div class="row form-fix-width">
|
|
19
|
-
<label class="font_normal_body" style="width: 15%">处理记录</label>
|
|
20
|
-
<div class="form-control" style="width: 80%;float: left">
|
|
21
|
-
<!--多选框值 -->
|
|
22
|
-
<textarea style="width: 100%" class="form-control ver-textarea" disabled v-model="complaintstext"></textarea>
|
|
23
|
-
<!--手动输入值 -->
|
|
24
|
-
<textarea style="width: 100%" name="name" rows="3" v-model="complaints" class="form-control ver-textarea" ></textarea>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="row">
|
|
30
|
-
<div class="col-sm-6 form-group form-fix-width">
|
|
31
|
-
<label class="font_normal_body" style="width: 30%">来电电话</label>
|
|
32
|
-
<input type="text" name="" v-model='model.f_phone' class="form-control" readonly="readonly" style="width: 60%">
|
|
33
|
-
</div>
|
|
34
|
-
<div class="col-sm-6 form-group form-fix-width">
|
|
35
|
-
<label class="font_normal_body" style="width: 30%">联系人</label>
|
|
36
|
-
<input type="text" name="" v-model='model.f_user_name' class="form-control" style="width: 60%">
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="row">
|
|
40
|
-
<div class="col-sm-6 form-group form-fix-width">
|
|
41
|
-
<label class="font_normal_body" style="width: 30%">联系电话</label>
|
|
42
|
-
<input type="text" name="" v-model='model.f_contact_phone' class="form-control" style="width: 60%">
|
|
43
|
-
</div>
|
|
44
|
-
<div class="col-sm-6 form-group form-fix-width" v-if="dotype">
|
|
45
|
-
<label class=" font_normal_body" style="width: 30%">处理方式</label>
|
|
46
|
-
<v-select :value="picked1" :value-single="true"
|
|
47
|
-
v-model="picked1"
|
|
48
|
-
:options='handling'
|
|
49
|
-
close-on-select
|
|
50
|
-
v-on:change="sourcechange" style="width: 60%"></v-select>
|
|
51
|
-
</div>
|
|
52
|
-
<!--<div class="col-sm-6 form-group form-fix-width" style="padding: 0px 50px 0px 15px;" v-if="isComplainSendOrHandle">
|
|
53
|
-
<label class="font_normal_body" style="width: 30%">处理方式</label>
|
|
54
|
-
<div style="width:60%;border: 1px solid black">
|
|
55
|
-
<label class="font_normal_body" for="one"></label>
|
|
56
|
-
<input class="" type="radio" id="one" value="wait" v-model="picked">
|
|
57
|
-
<label class="font_normal_body" for="two" >处理</label>
|
|
58
|
-
<input class="" type="radio" id="two" value="done" v-model="picked">
|
|
59
|
-
</div>
|
|
60
|
-
</div>-->
|
|
61
|
-
|
|
62
|
-
</div>
|
|
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
|
-
</button
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
'
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
if (this.picked=='
|
|
203
|
-
this
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
this.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
this.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
this.model =
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
this.
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
return true
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
this.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container-fluid auto">
|
|
3
|
+
<work-busy :is-busy="saveing" v-show="saveing"></work-busy>
|
|
4
|
+
<validator name="v">
|
|
5
|
+
<div class="row" >
|
|
6
|
+
<div class="row form-fix-width">
|
|
7
|
+
<label class="font_normal_body" style="width: 15%" title="参数名称:投诉内容">来电内容</label>
|
|
8
|
+
<div class="form-control" style="width: 80%;float: left">
|
|
9
|
+
<label class="checkbox-inline checkbox-fix-width" style="width:25%" v-for="content in contents" >
|
|
10
|
+
<input type="checkbox"
|
|
11
|
+
:value="content.value"
|
|
12
|
+
v-model="complaintstext">
|
|
13
|
+
{{content.value}}
|
|
14
|
+
</label>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="row" v-if="picked=='done'">
|
|
18
|
+
<div class="row form-fix-width">
|
|
19
|
+
<label class="font_normal_body" style="width: 15%">处理记录</label>
|
|
20
|
+
<div class="form-control" style="width: 80%;float: left">
|
|
21
|
+
<!--多选框值 -->
|
|
22
|
+
<textarea style="width: 100%" class="form-control ver-textarea" disabled v-model="complaintstext"></textarea>
|
|
23
|
+
<!--手动输入值 -->
|
|
24
|
+
<textarea style="width: 100%" name="name" rows="3" v-model="complaints" class="form-control ver-textarea" ></textarea>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="row">
|
|
30
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
31
|
+
<label class="font_normal_body" style="width: 30%">来电电话</label>
|
|
32
|
+
<input type="text" name="" v-model='model.f_phone' class="form-control" readonly="readonly" style="width: 60%">
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
35
|
+
<label class="font_normal_body" style="width: 30%">联系人</label>
|
|
36
|
+
<input type="text" name="" v-model='model.f_user_name' class="form-control" style="width: 60%">
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="row">
|
|
40
|
+
<div class="col-sm-6 form-group form-fix-width">
|
|
41
|
+
<label class="font_normal_body" style="width: 30%">联系电话</label>
|
|
42
|
+
<input type="text" name="" v-model='model.f_contact_phone' class="form-control" style="width: 60%">
|
|
43
|
+
</div>
|
|
44
|
+
<div class="col-sm-6 form-group form-fix-width" v-if="dotype">
|
|
45
|
+
<label class=" font_normal_body" style="width: 30%">处理方式</label>
|
|
46
|
+
<v-select :value="picked1" :value-single="true"
|
|
47
|
+
v-model="picked1"
|
|
48
|
+
:options='handling'
|
|
49
|
+
close-on-select
|
|
50
|
+
v-on:change="sourcechange" style="width: 60%"></v-select>
|
|
51
|
+
</div>
|
|
52
|
+
<!--<div class="col-sm-6 form-group form-fix-width" style="padding: 0px 50px 0px 15px;" v-if="isComplainSendOrHandle">
|
|
53
|
+
<label class="font_normal_body" style="width: 30%">处理方式</label>
|
|
54
|
+
<div style="width:60%;border: 1px solid black">
|
|
55
|
+
<label class="font_normal_body" for="one"></label>
|
|
56
|
+
<input class="" type="radio" id="one" value="wait" v-model="picked">
|
|
57
|
+
<label class="font_normal_body" for="two" >处理</label>
|
|
58
|
+
<input class="" type="radio" id="two" value="done" v-model="picked">
|
|
59
|
+
</div>
|
|
60
|
+
</div>-->
|
|
61
|
+
|
|
62
|
+
</div>
|
|
63
|
+
<div class="row" v-if="complaint=='done'">
|
|
64
|
+
<div class="col-sm-6 form-group form-fix-width" v-if="complaintType">
|
|
65
|
+
<label class=" font_normal_body" style="width: 30%">处理方式</label>
|
|
66
|
+
<v-select :value="complaintType" :value-single="true"
|
|
67
|
+
v-model="complaintType"
|
|
68
|
+
:options='complaintTypes'
|
|
69
|
+
close-on-select
|
|
70
|
+
style="width: 60%"></v-select>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="row" v-if="picked=='wait'" >
|
|
74
|
+
<div class="col-sm-6 form-group form-fix-width" >
|
|
75
|
+
<label class=" font_normal_body" style="width:30%">选择站点</label>
|
|
76
|
+
<input style="width: 60%;height:100%" type="text" v-show="false" v-model="model.f_reciever">
|
|
77
|
+
<right-tree style="height:auto" :width="'100%'" islist :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点管理员" :selectData="" v-ref:f_reciever>
|
|
78
|
+
</right-tree>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<!-- <div class="row">
|
|
82
|
+
<div class="col-sm-12 form-input-group">
|
|
83
|
+
<label class="font_normal_body">用户地址</label>
|
|
84
|
+
<input type="text" name="" :value='model.f_address' class="form-control">
|
|
85
|
+
</div>
|
|
86
|
+
</div>-->
|
|
87
|
+
<div class="row">
|
|
88
|
+
<div class="col-sm-12 form-input-group form-fix-width">
|
|
89
|
+
<label class="font_normal_body" style="width: 15%">备  注</label>
|
|
90
|
+
<textarea name="name" rows="3" v-model="model.f_remarks" class="form-control ver-textarea" style="width: 80%"></textarea>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="row">
|
|
94
|
+
<button type="button" name="button" class="button_spacing button_search" style="float: right" @click="saveComplainData">
|
|
95
|
+
提 交
|
|
96
|
+
</button>
|
|
97
|
+
<button type="button" name="button" style="background-color: #5ac0d9;border-radius: 4px;float: right" class="button_spacing button_search" @click="cleardata()">
|
|
98
|
+
清空
|
|
99
|
+
</button>
|
|
100
|
+
<!-- <button type="button" name="button" class="btn btn-danger btn-ln fr" data-toggle="dropdown"
|
|
101
|
+
@click="print(row)">
|
|
102
|
+
打 印
|
|
103
|
+
</button>-->
|
|
104
|
+
</div>
|
|
105
|
+
</validator>
|
|
106
|
+
<complain-msg v-if="showcheckmsg" :show="showcheckmsg" :data="model"></complain-msg>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</template>
|
|
111
|
+
<script>
|
|
112
|
+
import * as Util from '../../../components/Util'
|
|
113
|
+
|
|
114
|
+
export default {
|
|
115
|
+
title: '投诉单',
|
|
116
|
+
props: {
|
|
117
|
+
data: {
|
|
118
|
+
type: Object
|
|
119
|
+
},
|
|
120
|
+
callObj: {
|
|
121
|
+
type: Object
|
|
122
|
+
},
|
|
123
|
+
loginUser: {
|
|
124
|
+
type: Object
|
|
125
|
+
},
|
|
126
|
+
cleantf: {
|
|
127
|
+
type: Number
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
data () {
|
|
131
|
+
return {
|
|
132
|
+
// 咨询投诉处理方式是否显示
|
|
133
|
+
dotype: this.$appdata.getSingleValue('咨询投诉处理方式')?this.$appdata.getSingleValue('咨询投诉处理方式'):false,
|
|
134
|
+
saveing:false,
|
|
135
|
+
picked: 'done', //待办/已办
|
|
136
|
+
picked1:'处理',
|
|
137
|
+
showcheckmsg: false,
|
|
138
|
+
checkInfo: {},
|
|
139
|
+
complaintstext: [],
|
|
140
|
+
complaints:'',
|
|
141
|
+
contents:this.$appdata.getParam('投诉内容')?this.$appdata.getParam('投诉内容'):[],
|
|
142
|
+
f_content:'',
|
|
143
|
+
model: {
|
|
144
|
+
// 一次派单
|
|
145
|
+
serviceacitivity: [{
|
|
146
|
+
f_service_acitivity_type: '派单',
|
|
147
|
+
f_meetunit:'',
|
|
148
|
+
f_reciever:'',
|
|
149
|
+
f_complaint_results:''
|
|
150
|
+
}],
|
|
151
|
+
f_small_area:'',
|
|
152
|
+
picked: this.picked, //待办/已办
|
|
153
|
+
f_content: '', //投诉内容
|
|
154
|
+
f_user_name: '',
|
|
155
|
+
f_phone: '',
|
|
156
|
+
f_contact_phone: '',
|
|
157
|
+
f_remarks: '',
|
|
158
|
+
aState: null,
|
|
159
|
+
f_source:'用户来电',
|
|
160
|
+
f_orgid:this.$login.f.orgid,
|
|
161
|
+
f_orgname:this.$login.f.orgs,
|
|
162
|
+
f_depname:this.$login.f.dops,
|
|
163
|
+
f_depid:this.$login.f.depids,
|
|
164
|
+
f_operator:this.$login.f.name,
|
|
165
|
+
f_address:'',
|
|
166
|
+
f_time:'',
|
|
167
|
+
f_operatorid:this.$login.f.id,
|
|
168
|
+
f_filiale_id : this.$login.f.orgid,
|
|
169
|
+
f_filiale : this.$login.f.orgs,
|
|
170
|
+
f_reciever:'',
|
|
171
|
+
|
|
172
|
+
f_complaint_results:''
|
|
173
|
+
},
|
|
174
|
+
handling:[{label:'处理',value:'处理'},{label:'下派',value:'下派'}],
|
|
175
|
+
source:
|
|
176
|
+
'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
|
|
177
|
+
'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
|
|
178
|
+
userid: this.$login.f.id,
|
|
179
|
+
complaintType:'',
|
|
180
|
+
complaintTypes:this.$appdate.getParam('投诉类型'),
|
|
181
|
+
complaint:true
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
ready () {
|
|
185
|
+
if (this.data) {
|
|
186
|
+
this.assignObj()
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
sourcechange(val){
|
|
191
|
+
//tag
|
|
192
|
+
this.picked=val=='处理'?'done':'wait'
|
|
193
|
+
},
|
|
194
|
+
print(row) {
|
|
195
|
+
this.showcheckmsg = true
|
|
196
|
+
this.checkInfo = row
|
|
197
|
+
},
|
|
198
|
+
saveComplainData () {
|
|
199
|
+
if (this.picked=='done'&&this.complaints==''){
|
|
200
|
+
return this.$showAlert('请填写处理记录', 'warning', 2000)
|
|
201
|
+
}
|
|
202
|
+
if (this.picked=='wait'&&this.model.serviceacitivity[0].f_reciever==''){
|
|
203
|
+
return this.$showAlert('请选择站点!', 'warning', 2000)
|
|
204
|
+
}
|
|
205
|
+
if (this.complaintstext==''){
|
|
206
|
+
return this.$showAlert('请填写投诉来电内容', 'warning', 2000)
|
|
207
|
+
}
|
|
208
|
+
this.saveing = true
|
|
209
|
+
if (this.picked=='done'){
|
|
210
|
+
this.model.serviceacitivity = [
|
|
211
|
+
{f_result_status:'已完成',f_complaint_results:this.model.f_complaint_results}];
|
|
212
|
+
}
|
|
213
|
+
this.model.picked = this.picked
|
|
214
|
+
delete this.model.id
|
|
215
|
+
this.model.f_content = this.complaintstext.toString() +','+ this.complaints
|
|
216
|
+
//tag
|
|
217
|
+
this.$resetpost('af-telephone/rs/logic/saveComplaint', {model: this.model, loginUser: {name: this.loginUser.name, ename: this.loginUser.ename}, callObj: this.callObj}).then(() => {
|
|
218
|
+
// 清空数据
|
|
219
|
+
this.$emit('commitsus',this.model.f_phone,this.model)
|
|
220
|
+
this.cleardata()
|
|
221
|
+
if (this.callObj && this.callObj.callNum) {
|
|
222
|
+
this.callObj.callNum = null
|
|
223
|
+
this.callObj.RecordsID = null
|
|
224
|
+
//tag
|
|
225
|
+
Util.afterCallBz(this.$login.f.id, this.$login.f.name)
|
|
226
|
+
}
|
|
227
|
+
this.saveing = false
|
|
228
|
+
|
|
229
|
+
})
|
|
230
|
+
},
|
|
231
|
+
assignObj () {
|
|
232
|
+
this.model = Object.assign(this.model, {}, this.data)
|
|
233
|
+
this.model.f_user_name = this.data.f_user_name
|
|
234
|
+
this.model.f_small_area = this.data.f_slice_area
|
|
235
|
+
this.model.f_contact_phone = this.data.f_user_phone
|
|
236
|
+
//tag
|
|
237
|
+
},
|
|
238
|
+
cleardata () {
|
|
239
|
+
let f_meetunit1 = this.model.serviceacitivity[0].f_meetunit;
|
|
240
|
+
let f_reciever1 = this.model.serviceacitivity[0].f_reciever;
|
|
241
|
+
this.model = {
|
|
242
|
+
serviceacitivity: [{
|
|
243
|
+
f_service_acitivity_type: '派单',
|
|
244
|
+
f_meetunit:f_meetunit1,
|
|
245
|
+
f_reciever:f_reciever1,
|
|
246
|
+
f_complaint_results:''
|
|
247
|
+
}],
|
|
248
|
+
f_small_area:'',
|
|
249
|
+
f_content: '',
|
|
250
|
+
f_user_name: '',
|
|
251
|
+
f_phone: '',
|
|
252
|
+
f_contact_phone: '',
|
|
253
|
+
f_remarks: '',
|
|
254
|
+
aState: null,
|
|
255
|
+
f_source:'用户来电',
|
|
256
|
+
f_orgid:this.$login.f.orgid,
|
|
257
|
+
f_orgname:this.$login.f.orgs,
|
|
258
|
+
f_depname:this.$login.f.dops,
|
|
259
|
+
f_depid:this.$login.f.depids,
|
|
260
|
+
f_operator:this.$login.f.name,
|
|
261
|
+
f_operatorid:this.$login.f.id,
|
|
262
|
+
f_address: '',
|
|
263
|
+
f_time:'',
|
|
264
|
+
f_filiale_id : this.$login.f.orgid,
|
|
265
|
+
f_filiale : this.$login.f.orgs,
|
|
266
|
+
picked: this.picked, //待办/已办
|
|
267
|
+
f_complaint_results:''
|
|
268
|
+
}
|
|
269
|
+
this.complaintstext=[]
|
|
270
|
+
this.complaints=''
|
|
271
|
+
this.data = {}
|
|
272
|
+
},
|
|
273
|
+
// 选中部门
|
|
274
|
+
reres(val){
|
|
275
|
+
if(val.res == undefined || val.res[0] == undefined || val.res[0] == ''){
|
|
276
|
+
return
|
|
277
|
+
}
|
|
278
|
+
this.model.serviceacitivity[0].f_meetunit = val.res[0]
|
|
279
|
+
this.model.f_meetunit = val.res[0]
|
|
280
|
+
this.model.f_filiale_id = val.orgobj[0].parentid
|
|
281
|
+
this.model.f_filiale = val.orgobj[0].parentname
|
|
282
|
+
this.model.f_outlets = val.res[0]
|
|
283
|
+
this.model.serviceacitivity[0].f_reciever = val.resids[0]
|
|
284
|
+
this.model.f_reciever = val.resids[0]
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
computed: {
|
|
288
|
+
IsClickDisabled: function() {
|
|
289
|
+
if (this.$v.valid) {
|
|
290
|
+
if ( this.model.aState === null) {
|
|
291
|
+
//tag
|
|
292
|
+
return false
|
|
293
|
+
}
|
|
294
|
+
if ( this.model.f_phone && this.model.aState === '正在保存') {
|
|
295
|
+
//tag
|
|
296
|
+
return false
|
|
297
|
+
}
|
|
298
|
+
//tag
|
|
299
|
+
return true
|
|
300
|
+
} else {
|
|
301
|
+
//tag
|
|
302
|
+
return true
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
isComplainSendOrHandle(){
|
|
306
|
+
// 投诉单下派还是处理
|
|
307
|
+
let res = this.$appdata.getSingleValue('投诉单下派或处理');
|
|
308
|
+
if (res == 'true'){
|
|
309
|
+
return true;
|
|
310
|
+
}else {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
watch: {
|
|
316
|
+
// 是否清空
|
|
317
|
+
'cleantf'(){
|
|
318
|
+
this.cleardata()
|
|
319
|
+
},
|
|
320
|
+
'data' () {
|
|
321
|
+
// 组织数据
|
|
322
|
+
this.assignObj()
|
|
323
|
+
},
|
|
324
|
+
// 话务对象发生变化将来电电话赋值给f_phone
|
|
325
|
+
'callObj' () {
|
|
326
|
+
this.cleardata()
|
|
327
|
+
this.model.f_phone = this.callObj.callNum
|
|
328
|
+
this.model.f_contact_phone = this.callObj.callNum
|
|
329
|
+
this.model.f_time=Util.toStandardTimeString()
|
|
330
|
+
//tag
|
|
331
|
+
this.model.aState = this.callObj.aState
|
|
332
|
+
//tag
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
</script>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
// 分公司特殊组件页面注册
|
|
2
|
-
import Vue from "vue";
|
|
3
|
-
|
|
4
|
-
//pc和手机分别注册到两个文件中
|
|
5
|
-
let specialComp = {
|
|
6
|
-
|
|
7
|
-
// 工单详情子组件
|
|
8
|
-
'complain-work': (resolve) => {
|
|
9
|
-
require(['./pc/ComplainWork'], resolve)
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.specialComp = specialComp
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
// 分公司特殊组件页面注册
|
|
2
|
+
import Vue from "vue";
|
|
3
|
+
|
|
4
|
+
//pc和手机分别注册到两个文件中
|
|
5
|
+
let specialComp = {
|
|
6
|
+
|
|
7
|
+
// 工单详情子组件
|
|
8
|
+
'complain-work': (resolve) => {
|
|
9
|
+
require(['./pc/ComplainWork'], resolve)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.specialComp = specialComp
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
package/src/main.js
CHANGED
|
@@ -10,7 +10,7 @@ Vue.prototype.$echarts = echarts
|
|
|
10
10
|
/** **************************通用组件******************************/
|
|
11
11
|
all()
|
|
12
12
|
system(false)
|
|
13
|
-
telephone('
|
|
13
|
+
telephone('xinkang')
|
|
14
14
|
// safecheck('bayan')
|
|
15
15
|
require('./expandcss.less')
|
|
16
16
|
require('system-clients/src/styles/less/bootstrap.less')
|