telephone-clients 4.0.0-1-46 → 4.0.0-1-48

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.
@@ -1,336 +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
- <div class="row">
64
- <div class="col-sm-6 form-group form-fix-width">
65
- <label class=" font_normal_body" style="width: 30%">投诉类型</label>
66
- <v-select :value="model.f_complaint_type" :value-single="true"
67
- v-model="model.f_complaint_type"
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%">备&emsp;&emsp;注</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
- 提&nbsp;&nbsp;&nbsp;交
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
- 打&nbsp;&nbsp;&nbsp;印
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_complaint_type:'',
152
- f_small_area:'',
153
- picked: this.picked, //待办/已办
154
- f_content: '', //投诉内容
155
- f_user_name: '',
156
- f_phone: '',
157
- f_contact_phone: '',
158
- f_remarks: '',
159
- aState: null,
160
- f_source:'用户来电',
161
- f_orgid:this.$login.f.orgid,
162
- f_orgname:this.$login.f.orgs,
163
- f_depname:this.$login.f.dops,
164
- f_depid:this.$login.f.depids,
165
- f_operator:this.$login.f.name,
166
- f_address:'',
167
- f_time:'',
168
- f_operatorid:this.$login.f.id,
169
- f_filiale_id : this.$login.f.orgid,
170
- f_filiale : this.$login.f.orgs,
171
- f_reciever:'',
172
-
173
- f_complaint_results:''
174
- },
175
- handling:[{label:'处理',value:'处理'},{label:'下派',value:'下派'}],
176
- source:
177
- 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
178
- 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
179
- userid: this.$login.f.id,
180
- complaintTypes:this.$appdate.getParam('投诉类型'),
181
- }
182
- },
183
- ready () {
184
- if (this.data) {
185
- this.assignObj()
186
- }
187
- },
188
- methods: {
189
- sourcechange(val){
190
- //tag
191
- this.picked=val=='处理'?'done':'wait'
192
- },
193
- print(row) {
194
- this.showcheckmsg = true
195
- this.checkInfo = row
196
- },
197
- saveComplainData () {
198
- if (this.picked=='done'&&this.complaints==''){
199
- return this.$showAlert('请填写处理记录', 'warning', 2000)
200
- }
201
- if (this.picked=='wait'&&this.model.serviceacitivity[0].f_reciever==''){
202
- return this.$showAlert('请选择站点!', 'warning', 2000)
203
- }
204
- if (this.complaintstext==''){
205
- return this.$showAlert('请填写投诉来电内容', 'warning', 2000)
206
- }
207
- this.saveing = true
208
- if (this.picked=='done'){
209
- this.model.serviceacitivity = [
210
- {f_result_status:'已完成',f_complaint_results:this.model.f_complaint_results}];
211
- }
212
- this.model.picked = this.picked
213
- delete this.model.id
214
- this.model.f_content = this.complaintstext.toString() +','+ this.complaints
215
- //tag
216
- this.$resetpost('af-telephone/rs/logic/saveComplaint', {model: this.model, loginUser: {name: this.loginUser.name, ename: this.loginUser.ename}, callObj: this.callObj}).then(() => {
217
- // 清空数据
218
- this.$emit('commitsus',this.model.f_phone,this.model)
219
- this.cleardata()
220
- if (this.callObj && this.callObj.callNum) {
221
- this.callObj.callNum = null
222
- this.callObj.RecordsID = null
223
- //tag
224
- Util.afterCallBz(this.$login.f.id, this.$login.f.name)
225
- }
226
- this.saveing = false
227
-
228
- })
229
- },
230
- assignObj () {
231
- this.model = Object.assign(this.model, {}, this.data)
232
- this.model.f_user_name = this.data.f_user_name
233
- this.model.f_small_area = this.data.f_slice_area
234
- this.model.f_contact_phone = this.data.f_user_phone
235
- //tag
236
- },
237
- cleardata () {
238
- let f_meetunit1 = this.model.serviceacitivity[0].f_meetunit;
239
- let f_reciever1 = this.model.serviceacitivity[0].f_reciever;
240
- this.model = {
241
- serviceacitivity: [{
242
- f_service_acitivity_type: '派单',
243
- f_meetunit:f_meetunit1,
244
- f_reciever:f_reciever1,
245
- f_complaint_results:''
246
- }],
247
- f_complaint_type:'',
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
+ <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">
64
+ <div class="col-sm-6 form-group form-fix-width">
65
+ <label class=" font_normal_body" style="width: 30%">投诉类型</label>
66
+ <v-select :value="model.f_complaint_type" :value-single="true"
67
+ v-model="model.f_complaint_type"
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%">备&emsp;&emsp;注</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
+ 提&nbsp;&nbsp;&nbsp;交
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
+ 打&nbsp;&nbsp;&nbsp;印
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_complaint_type:'',
152
+ f_small_area:'',
153
+ picked: this.picked, //待办/已办
154
+ f_content: '', //投诉内容
155
+ f_user_name: '',
156
+ f_phone: '',
157
+ f_contact_phone: '',
158
+ f_remarks: '',
159
+ aState: null,
160
+ f_source:'用户来电',
161
+ f_orgid:this.$login.f.orgid,
162
+ f_orgname:this.$login.f.orgs,
163
+ f_depname:this.$login.f.dops,
164
+ f_depid:this.$login.f.depids,
165
+ f_operator:this.$login.f.name,
166
+ f_address:'',
167
+ f_time:'',
168
+ f_operatorid:this.$login.f.id,
169
+ f_filiale_id : this.$login.f.orgid,
170
+ f_filiale : this.$login.f.orgs,
171
+ f_reciever:'',
172
+
173
+ f_complaint_results:''
174
+ },
175
+ handling:[{label:'处理',value:'处理'},{label:'下派',value:'下派'}],
176
+ source:
177
+ 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
178
+ 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
179
+ userid: this.$login.f.id,
180
+ complaintTypes:this.$appdate.getParam('投诉类型'),
181
+ }
182
+ },
183
+ ready () {
184
+ if (this.data) {
185
+ this.assignObj()
186
+ }
187
+ },
188
+ methods: {
189
+ sourcechange(val){
190
+ //tag
191
+ this.picked=val=='处理'?'done':'wait'
192
+ },
193
+ print(row) {
194
+ this.showcheckmsg = true
195
+ this.checkInfo = row
196
+ },
197
+ saveComplainData () {
198
+ if (this.picked=='done'&&this.complaints==''){
199
+ return this.$showAlert('请填写处理记录', 'warning', 2000)
200
+ }
201
+ if (this.picked=='wait'&&this.model.serviceacitivity[0].f_reciever==''){
202
+ return this.$showAlert('请选择站点!', 'warning', 2000)
203
+ }
204
+ if (this.complaintstext==''){
205
+ return this.$showAlert('请填写投诉来电内容', 'warning', 2000)
206
+ }
207
+ this.saveing = true
208
+ if (this.picked=='done'){
209
+ this.model.serviceacitivity = [
210
+ {f_result_status:'已完成',f_complaint_results:this.model.f_complaint_results}];
211
+ }
212
+ this.model.picked = this.picked
213
+ delete this.model.id
214
+ this.model.f_content = this.complaintstext.toString() +','+ this.complaints
215
+ //tag
216
+ this.$resetpost('af-telephone/rs/logic/saveComplaint', {model: this.model, loginUser: {name: this.loginUser.name, ename: this.loginUser.ename}, callObj: this.callObj}).then(() => {
217
+ // 清空数据
218
+ this.$emit('commitsus',this.model.f_phone,this.model)
219
+ this.cleardata()
220
+ if (this.callObj && this.callObj.callNum) {
221
+ this.callObj.callNum = null
222
+ this.callObj.RecordsID = null
223
+ //tag
224
+ Util.afterCallBz(this.$login.f.id, this.$login.f.name)
225
+ }
226
+ this.saveing = false
227
+
228
+ })
229
+ },
230
+ assignObj () {
231
+ this.model = Object.assign(this.model, {}, this.data)
232
+ this.model.f_user_name = this.data.f_user_name
233
+ this.model.f_small_area = this.data.f_slice_area
234
+ this.model.f_contact_phone = this.data.f_user_phone
235
+ //tag
236
+ },
237
+ cleardata () {
238
+ let f_meetunit1 = this.model.serviceacitivity[0].f_meetunit;
239
+ let f_reciever1 = this.model.serviceacitivity[0].f_reciever;
240
+ this.model = {
241
+ serviceacitivity: [{
242
+ f_service_acitivity_type: '派单',
243
+ f_meetunit:f_meetunit1,
244
+ f_reciever:f_reciever1,
245
+ f_complaint_results:''
246
+ }],
247
+ f_complaint_type:'',
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>