telephone-clients 3.0.104-7 → 3.0.104-70
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 +3 -3
- package/src/components/android/ImgArea.vue +80 -0
- package/src/components/guoxin/Console.vue +42 -14
- package/src/components/guoxin/call.state.api.js +3 -1
- package/src/components/pc/ComplainWork.vue +3 -0
- package/src/components/pc/RecordListLeft.vue +62 -10
- package/src/components/pc/RepairsWork.vue +33 -3
- package/src/components/pc/RoleSelector.vue +145 -139
- package/src/components/pc/Seekwork.vue +3 -0
- package/src/components/pc/SiteSend.vue +38 -1
- package/src/components/pc/TelLossList.vue +264 -247
- package/src/components/pc/WorkHistory.vue +1 -1
- package/src/components/pc/WorkList.vue +4 -3
- package/src/components/pc/WorkListAllNew.vue +16 -8
- package/src/components/pc/WorkListNew.vue +15 -5
- package/src/components/sendsingle/onlinequeryuser.vue +1 -1
- package/src/components/telreport/RepairsDetailsReport.vue +98 -98
- package/src/components/telreport/TrafficClassificationReport.vue +134 -134
- package/src/components/telreport/Trafficassess.vue +121 -121
- package/src/components/temp/HandplanInfo.vue +5 -1
- package/src/components/temp/InstructInfo.vue +1 -1
- package/src/components/temp/SecuritycheckInfo.vue +14 -0
- package/src/components/workorder/FaultAll.vue +826 -826
- package/src/components/workorder/RepairDetails.vue +619 -613
- package/src/components/workorder/RepairInfo.vue +166 -166
- package/src/components/workorder/RepairPaperAndroid.vue +351 -0
- package/src/components/workorder/ServiceOnlineQuery.vue +306 -0
- package/src/components/workorder/TemporarySingle.vue +524 -480
- package/src/filiale/furuike/pc/QueryVisitHistory.vue +14 -1
- package/src/filiale/hanzhong/telephone.js +48 -48
- package/src/filiale/jiaocheng/android/createQRcode.vue +204 -0
- package/src/filiale/jiaocheng/android/onlineBuyGas.vue +637 -0
- package/src/filiale/jiaocheng/telephone.js +8 -0
- package/src/filiale/jiaocheng/telephoneAndroid.js +15 -0
- package/src/filiale/qianneng/android/AppInstallationMaterial.vue +880 -845
- package/src/filiale/qianneng/pc/WorkListAllNew.vue +11 -3
- package/src/filiale/rizhao/pc/WorkListAllNew.vue +9 -5
- package/src/filiale/rizhao/telephone.js +57 -57
- package/src/filiale/rongcheng/CliWorkListAll.vue +701 -701
- package/src/filiale/shanxian/android/RepairFirstV.vue +3 -0
- package/src/filiale/shanxian/pc/TelFindUser.vue +310 -0
- package/src/filiale/shanxian/pc/WorkList.vue +823 -823
- package/src/filiale/shanxian/telephone.js +1 -0
- package/src/filiale/shexian/android/AddMyTask.vue +7 -0
- package/src/filiale/shexian/android/RepairFirstV.vue +780 -775
- package/src/filiale/shexian/android/RepairInfo.vue +1 -0
- package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +9 -9
- package/src/filiale/shexian/pc/WorkList.vue +4 -1
- package/src/filiale/shexian/pc/WorkListAllNew.vue +14 -1
- package/src/filiale/tongchuan/android/RepairDetails.vue +623 -0
- package/src/filiale/tongchuan/pc/AnalysisMain.vue +7 -7
- package/src/filiale/tongchuan/pc/RepairsWork.vue +8 -0
- package/src/filiale/tongchuan/pc/UserWork.vue +8 -0
- package/src/filiale/tongchuan/telephoneAndroid.js +1 -0
- package/src/filiale/wenxi/android/FaultAll.vue +710 -0
- package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +981 -1053
- package/src/filiale/wenxi/android/RepairOrderV.vue +1 -1
- package/src/filiale/wenxi/android/ZHihuanFirst.vue +522 -502
- package/src/filiale/wenxi/pc/DistributeWork.vue +1 -1
- package/src/filiale/wenxi/pc/RecordListLeft.vue +272 -0
- package/src/filiale/wenxi/pc/RepairsWork.vue +143 -64
- package/src/filiale/wenxi/pc/TelAgentVoiceReport.vue +290 -0
- package/src/filiale/wenxi/pc/TelLossList.vue +272 -0
- package/src/filiale/wenxi/telephone.js +21 -17
- package/src/filiale/wenxi/telephoneAndroid.js +2 -1
- package/src/filiale/wuhai/telephone.js +35 -35
- package/src/filiale/yuncheng/android/LdapHelper.js +75 -0
- package/src/filiale/yuncheng/android/RightTree.vue +217 -0
- package/src/filiale/yuncheng/android/TemporarySingle.vue +524 -0
- package/src/filiale/yuncheng/pc/TelFindUser.vue +14 -1
- package/src/filiale/yuncheng/pc/WorkList.vue +823 -0
- package/src/filiale/yuncheng/pc/WorkListAllNew.vue +734 -0
- package/src/filiale/yuncheng/telephone.js +3 -1
- package/src/filiale/yuncheng/telephoneAndroid.js +14 -0
- package/src/filiale/zhongyi/pc/WorkListAllNew.vue +673 -672
- package/src/main.js +1 -1
- package/src/telephone-android.js +7 -0
- package/src/telephone.js +749 -749
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "telephone-clients",
|
|
3
|
-
"version": "3.0.104-
|
|
3
|
+
"version": "3.0.104-70",
|
|
4
4
|
"description": "呼叫模块前台组件",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"sinon-chai": "^2.8.0",
|
|
95
95
|
"style": "0.0.3",
|
|
96
96
|
"style-loader": "^0.20.3",
|
|
97
|
-
"system-clients": "3.2.
|
|
97
|
+
"system-clients": "3.2.61",
|
|
98
98
|
"system-phone": "1.2.100",
|
|
99
99
|
"terser-webpack-plugin-legacy": "^1.2.5",
|
|
100
100
|
"url-loader": "^0.5.7",
|
|
101
|
-
"vue-client": "1.24.
|
|
101
|
+
"vue-client": "1.24.116",
|
|
102
102
|
"vue-hot-reload-api": "^1.2.0",
|
|
103
103
|
"vue-html-loader": "^1.0.0",
|
|
104
104
|
"vue-loader": "^8.2.1",
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="row">
|
|
4
|
+
<button type="button" name="button" class="btn btn-primary" @click="takePic()">拍照</button>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-xs-4 col-sm-3 col-md-2" v-for="img in model" v-if="img.imgpath == sutitle ">
|
|
8
|
+
<img-self :src="getimgstr(img)" alt="维修照片" :width="150" :height="200"></img-self>
|
|
9
|
+
<button type="button" name="button" class="btn btn-default" @click="remove(img)">-</button>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
import Vue from 'vue'
|
|
17
|
+
import * as Util from '../../components/Util'
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
props: {
|
|
21
|
+
// 存放照片的数组
|
|
22
|
+
model: {
|
|
23
|
+
type: Array
|
|
24
|
+
},
|
|
25
|
+
sutitle:'维修照片'
|
|
26
|
+
},
|
|
27
|
+
data () {
|
|
28
|
+
return {
|
|
29
|
+
// 拍照时的文件名
|
|
30
|
+
fileName: '',
|
|
31
|
+
is_has_jingweidu: this.$appdata.getSingleValue('照片水印加经纬度') || 'false',
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
methods: {
|
|
36
|
+
// 从图片中删除
|
|
37
|
+
remove (row) {
|
|
38
|
+
this.$androidUtil.delfile(row.android_file)
|
|
39
|
+
let pos = this.model.findIndex((value) => {
|
|
40
|
+
return value === row
|
|
41
|
+
});
|
|
42
|
+
this.model.splice(pos, 1)
|
|
43
|
+
},
|
|
44
|
+
// fileName: 回传文件名,传入的带安卓路径url
|
|
45
|
+
// prop: 传入的字段名,没做改动
|
|
46
|
+
cameraCallBack(prop, fileName) {
|
|
47
|
+
alert("callback!!!!!!!!!!!!!!!!!!--start")
|
|
48
|
+
// 当前this只能通过HostApp.__tis__获取
|
|
49
|
+
let self = this.$androidUtil.getCallBack(this)
|
|
50
|
+
// 添加新图片
|
|
51
|
+
self.model.push({
|
|
52
|
+
android_file: self.fileName,
|
|
53
|
+
path: fileName,
|
|
54
|
+
imgpath: this.sutitle
|
|
55
|
+
})
|
|
56
|
+
alert("callback!!!!!!!!!!!!!!!!!!--end")
|
|
57
|
+
},
|
|
58
|
+
takePic() {
|
|
59
|
+
const obj = HostApp.getGpsDetailAddress()
|
|
60
|
+
let jingweidu = ''
|
|
61
|
+
if (this.is_has_jingweidu == 'true'){
|
|
62
|
+
jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
|
|
63
|
+
}
|
|
64
|
+
let prop = 'repair'
|
|
65
|
+
let idx = 'aofeng'
|
|
66
|
+
this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
|
67
|
+
this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName,this.sutitle+jingweidu)
|
|
68
|
+
},
|
|
69
|
+
getimgstr(val){
|
|
70
|
+
if(!val){
|
|
71
|
+
return ''
|
|
72
|
+
}
|
|
73
|
+
if(Vue.android){
|
|
74
|
+
return val.path + '?' + Math.random()
|
|
75
|
+
}
|
|
76
|
+
return 'rs/file/getfile/' + val.imgid
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
}
|
|
80
|
+
</script>
|
|
@@ -96,6 +96,8 @@
|
|
|
96
96
|
initPhone: '',
|
|
97
97
|
phonelist: [],
|
|
98
98
|
timeSubscribeId:null,
|
|
99
|
+
timeZhiXianId:null,
|
|
100
|
+
timeZhiXianFen:300,
|
|
99
101
|
list: [],
|
|
100
102
|
newPhone: '',
|
|
101
103
|
interval: null, // 循环函数返回值,用来停止循环
|
|
@@ -141,7 +143,7 @@
|
|
|
141
143
|
//tag;
|
|
142
144
|
};
|
|
143
145
|
this.$webSocket.onCallState = (event) => {
|
|
144
|
-
|
|
146
|
+
console.log('国信websocaket返回得数据:')
|
|
145
147
|
const json = event;
|
|
146
148
|
// 弹屏通知
|
|
147
149
|
const id = json.id;
|
|
@@ -161,10 +163,12 @@
|
|
|
161
163
|
//tag
|
|
162
164
|
this.currentState = '已挂机'
|
|
163
165
|
this.currentState = '正在保存'
|
|
166
|
+
this.timeZhiXian()
|
|
164
167
|
} else if (state == "canceled") {
|
|
165
168
|
//tag
|
|
166
169
|
this.currentState = '已停止呼叫'
|
|
167
170
|
this.currentState = '正在保存'
|
|
171
|
+
this.timeZhiXian()
|
|
168
172
|
//这里发送置忙请求
|
|
169
173
|
} else if (state == "calling") {
|
|
170
174
|
//tag
|
|
@@ -179,16 +183,16 @@
|
|
|
179
183
|
}
|
|
180
184
|
this.showip = !this.showip
|
|
181
185
|
},
|
|
182
|
-
created() {
|
|
183
|
-
|
|
184
|
-
},
|
|
186
|
+
// created() {
|
|
187
|
+
// window.addEventListener('beforeunload', this.handleBeforeUnload);
|
|
188
|
+
// },
|
|
185
189
|
methods: {
|
|
186
|
-
handleBeforeUnload(){
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
},
|
|
190
|
+
// handleBeforeUnload(){
|
|
191
|
+
// if(this.$webSocket){
|
|
192
|
+
// this.zhimang();
|
|
193
|
+
// this.$webSocket.closeWebsocket()
|
|
194
|
+
// }
|
|
195
|
+
// },
|
|
192
196
|
changeGroup(){
|
|
193
197
|
let name = this.groupName == '话务分组' ? '值班分组':'话务分组'
|
|
194
198
|
this.$showMessage(`确定要更改分组为${name}吗?`, ['confirm', 'cancel']).then(res=>{
|
|
@@ -245,6 +249,7 @@
|
|
|
245
249
|
new HttpResetClass().load('POST',`/bridge/callctrl?extnum=${this.aChannel}&state=busy&opt=SET_EXT_PRESENCE_STATE`,{},{resolveMsg:null,rejectMsg:null}).then(res=>{
|
|
246
250
|
if(res.data === 200){
|
|
247
251
|
this.currentState = '忙'
|
|
252
|
+
this.timeZhiXianId = null
|
|
248
253
|
}else if (res.data === 400){
|
|
249
254
|
this.$showMessage('参数错误,置忙失败')
|
|
250
255
|
}else if (res.data === 404){
|
|
@@ -258,9 +263,9 @@
|
|
|
258
263
|
new HttpResetClass().load('POST',`bridge/callctrl?extnum=${this.aChannel}&state=online&opt=SET_EXT_PRESENCE_STATE`,{},{resolveMsg:null,rejectMsg:null}).then(res=>{
|
|
259
264
|
if(res.data === 200){
|
|
260
265
|
this.currentState = '空闲'
|
|
266
|
+
this.timeZhiXianId = null
|
|
261
267
|
}else if (res.data === 400){
|
|
262
268
|
this.$showMessage('参数错误,置忙失败')
|
|
263
|
-
|
|
264
269
|
}else if (res.data === 404){
|
|
265
270
|
// this.$showMessage('目标分机不存在,置忙失败')
|
|
266
271
|
this.currentState = '登录错误'
|
|
@@ -284,6 +289,23 @@
|
|
|
284
289
|
}
|
|
285
290
|
}, (60 * 1000));
|
|
286
291
|
},
|
|
292
|
+
timeZhiXian() {
|
|
293
|
+
let flag = this.$appdata.getSingleValue("是否自动置闲")
|
|
294
|
+
if(!flag){
|
|
295
|
+
return
|
|
296
|
+
}
|
|
297
|
+
let time = this.$appdata.getSingleValue('自动置闲时间')
|
|
298
|
+
if(time){
|
|
299
|
+
this.timeZhiXianFen = time
|
|
300
|
+
}
|
|
301
|
+
this.timeZhiXianId = setTimeout(()=> {
|
|
302
|
+
try {
|
|
303
|
+
this.zhixian();
|
|
304
|
+
} catch(err) {
|
|
305
|
+
//tag;
|
|
306
|
+
}
|
|
307
|
+
}, (this.timeZhiXianFen * 1000));
|
|
308
|
+
},
|
|
287
309
|
// 确认
|
|
288
310
|
confirm() {
|
|
289
311
|
//tag
|
|
@@ -313,14 +335,20 @@
|
|
|
313
335
|
}
|
|
314
336
|
},
|
|
315
337
|
},
|
|
316
|
-
|
|
338
|
+
destroyed () {
|
|
317
339
|
//国信置忙代表登出
|
|
318
|
-
|
|
319
340
|
if(this.$webSocket){
|
|
320
341
|
this.zhimang();
|
|
321
342
|
this.$webSocket.closeWebsocket()
|
|
322
343
|
}
|
|
323
|
-
}
|
|
344
|
+
},
|
|
345
|
+
// beforeDestroy() {
|
|
346
|
+
// //国信置忙代表登出
|
|
347
|
+
// if(this.$webSocket){
|
|
348
|
+
// this.zhimang();
|
|
349
|
+
// this.$webSocket.closeWebsocket()
|
|
350
|
+
// }
|
|
351
|
+
// }
|
|
324
352
|
}
|
|
325
353
|
</script>
|
|
326
354
|
<style lang="less">
|
|
@@ -104,11 +104,13 @@ import ReconnectingWebSocket from './reconnecting-websocket.min'
|
|
|
104
104
|
|
|
105
105
|
// 发送消息给服务器
|
|
106
106
|
function wsMsgSend(msg) {
|
|
107
|
+
console.log('国信发送订阅1')
|
|
107
108
|
if (!window.WebSocket) {
|
|
108
109
|
return;
|
|
109
110
|
}
|
|
110
|
-
|
|
111
|
+
console.log('国信发送订阅2')
|
|
111
112
|
if (self.socket.readyState == WebSocket.OPEN) {
|
|
113
|
+
console.log('国信发送订阅3')
|
|
112
114
|
// //tag;
|
|
113
115
|
self.socket.send(msg);
|
|
114
116
|
}
|
|
@@ -144,6 +144,7 @@ export default {
|
|
|
144
144
|
f_reciever:'',
|
|
145
145
|
f_complaint_results:''
|
|
146
146
|
}],
|
|
147
|
+
f_small_area:'',
|
|
147
148
|
picked: this.picked, //待办/已办
|
|
148
149
|
f_content: '', //投诉内容
|
|
149
150
|
f_user_name: '',
|
|
@@ -223,6 +224,7 @@ export default {
|
|
|
223
224
|
assignObj () {
|
|
224
225
|
this.model = Object.assign(this.model, {}, this.data)
|
|
225
226
|
this.model.f_user_name = this.data.f_user_name
|
|
227
|
+
this.model.f_small_area = this.data.f_slice_area
|
|
226
228
|
this.model.f_contact_phone = this.data.f_user_phone
|
|
227
229
|
//tag
|
|
228
230
|
},
|
|
@@ -236,6 +238,7 @@ export default {
|
|
|
236
238
|
f_reciever:f_reciever1,
|
|
237
239
|
f_complaint_results:''
|
|
238
240
|
}],
|
|
241
|
+
f_small_area:'',
|
|
239
242
|
f_content: '',
|
|
240
243
|
f_user_name: '',
|
|
241
244
|
f_phone: '',
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
5
5
|
<div novalidate class="select-overspread form-horizontal" partial>
|
|
6
6
|
<div class="row" >
|
|
7
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%" v-if="$parent.$parent.flag == '是'">
|
|
8
|
+
<label class="font_normal_body" style="width: 40%">公 司</label>
|
|
9
|
+
<right-tree :userid.sync='$parent.$parent.userid' style="width: 60%;"
|
|
10
|
+
:source.sync='$parent.$parent.source' @re-res="$parent.$parent.getRes"></right-tree>
|
|
11
|
+
</div>
|
|
7
12
|
<div class="col-sm-3 form-group form-input-group" style="width: 20%">
|
|
8
13
|
<label class="font_normal_body" style="width: 40%">录音 ID</label>
|
|
9
14
|
<input type="text" class="form-control" v-model="model.id" placeholder='录音ID'
|
|
@@ -22,16 +27,6 @@
|
|
|
22
27
|
condition="telname like '%{}%'"
|
|
23
28
|
:size="model.telname ? model.telname.length : 7">
|
|
24
29
|
</div>
|
|
25
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%" >
|
|
26
|
-
<label class="font_normal_body" style="width: 40%">电话类型</label>
|
|
27
|
-
<v-select :value.sync="model.teltype" :value-single="true"
|
|
28
|
-
v-model="model.teltype"
|
|
29
|
-
condition="teltype='{}'"
|
|
30
|
-
:options='$parent.$parent.LoggedStates' placeholder='电话类型'
|
|
31
|
-
close-on-select >
|
|
32
|
-
</v-select>
|
|
33
|
-
|
|
34
|
-
</div>
|
|
35
30
|
|
|
36
31
|
<div style="float: right;" class="form-group span">
|
|
37
32
|
<button type="button" name="button"
|
|
@@ -41,8 +36,24 @@
|
|
|
41
36
|
<div style="float: right;" class="button_spacing button_search"
|
|
42
37
|
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
43
38
|
@click="$parent.$parent.hidden()"></div>
|
|
39
|
+
<export-excel-tel :data="$parent.$parent.searchData"
|
|
40
|
+
:field="$parent.$parent.excelHeaders"
|
|
41
|
+
:choose-col="true"
|
|
42
|
+
sqlurl="rs/logic/telephoneExport" sql-name="tel_recordlist"
|
|
43
|
+
:template-name="$parent.$parent.excelTitle"></export-excel-tel>
|
|
44
|
+
|
|
44
45
|
</div>
|
|
45
46
|
|
|
47
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%" v-if="$parent.$parent.criteriaShow">
|
|
48
|
+
<label class="font_normal_body" style="width: 40%">电话类型</label>
|
|
49
|
+
<v-select :value.sync="model.teltype" :value-single="true"
|
|
50
|
+
v-model="model.teltype"
|
|
51
|
+
condition="teltype='{}'"
|
|
52
|
+
:options='$parent.$parent.LoggedStates' placeholder='电话类型'
|
|
53
|
+
close-on-select >
|
|
54
|
+
</v-select>
|
|
55
|
+
|
|
56
|
+
</div>
|
|
46
57
|
<div class="col-sm-3 form-group form-input-group" style="width: 20%" v-if="$parent.$parent.criteriaShow">
|
|
47
58
|
<label class="font_normal_body" style="width: 40%">开始时间</label>
|
|
48
59
|
<datepicker placeholder="开始时间"
|
|
@@ -154,15 +165,48 @@ export default {
|
|
|
154
165
|
wavflie : '',
|
|
155
166
|
msgs: [],
|
|
156
167
|
infoobj:Object,
|
|
168
|
+
userid: this.$login.f.id,
|
|
169
|
+
source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
|
|
170
|
+
flag: '',
|
|
171
|
+
f_filiale_id: '',
|
|
172
|
+
excelTitle: '电话记录录导出',
|
|
173
|
+
excelHeaders: {
|
|
174
|
+
'teltype': '电话类型',
|
|
175
|
+
'telnum': '电话号码',
|
|
176
|
+
'outltime': '呼入/呼出',
|
|
177
|
+
'findtime':'寻找坐席',
|
|
178
|
+
'inltime': '响铃',
|
|
179
|
+
'starttime': '开始通话',
|
|
180
|
+
'endtime': '结束通话',
|
|
181
|
+
'savetime': '保存工单',
|
|
182
|
+
'telname': '话务员'
|
|
183
|
+
},
|
|
184
|
+
searchData: {
|
|
185
|
+
condition: '1=1'
|
|
186
|
+
},
|
|
157
187
|
}
|
|
158
188
|
},props: {
|
|
159
189
|
|
|
160
190
|
},
|
|
161
191
|
ready () {
|
|
192
|
+
this.flag = this.$appdata.getSingleValue('电话记录只查当前公司')
|
|
193
|
+
if (this.flag) {
|
|
194
|
+
if (this.flag == '是') {
|
|
195
|
+
this.model.f_filiale = this.$login.f.f_fengongsi
|
|
196
|
+
this.model.f_filiale_id = this.$login.f.f_orgids
|
|
197
|
+
}
|
|
198
|
+
}
|
|
162
199
|
},
|
|
163
200
|
watch: {
|
|
164
201
|
},
|
|
165
202
|
methods: {
|
|
203
|
+
getRes (obj) {
|
|
204
|
+
this.f_filiale_id = this.$login.convertToIn(obj.resids)
|
|
205
|
+
console.log('--------------------')
|
|
206
|
+
console.log(this.f_filiale_id)
|
|
207
|
+
this.orgname = obj.res[0]
|
|
208
|
+
this.$set('orgname', obj.res[0])
|
|
209
|
+
},
|
|
166
210
|
hidden () {
|
|
167
211
|
this.criteriaShow = !this.criteriaShow
|
|
168
212
|
},
|
|
@@ -171,6 +215,14 @@ export default {
|
|
|
171
215
|
//tag
|
|
172
216
|
},
|
|
173
217
|
search(args) {
|
|
218
|
+
console.log(this.f_filiale_id)
|
|
219
|
+
if (this.flag == '是') {
|
|
220
|
+
if (this.f_filiale_id) {
|
|
221
|
+
args.condition = args.condition + ' and f_filiale_id in ' + this.f_filiale_id
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
this.searchData.condition = args.condition
|
|
225
|
+
this.searchData.orderitem= " outltime desc"
|
|
174
226
|
this.model.search(args.condition, args.model)
|
|
175
227
|
},
|
|
176
228
|
clearmsg(){
|
|
@@ -208,6 +208,10 @@
|
|
|
208
208
|
type: String,
|
|
209
209
|
default: '转维修员'
|
|
210
210
|
},
|
|
211
|
+
telsource:{
|
|
212
|
+
type: String,
|
|
213
|
+
default: '转维修员'
|
|
214
|
+
},
|
|
211
215
|
// 其他类型工单提交,清空控制
|
|
212
216
|
cleantf: {
|
|
213
217
|
type: Number
|
|
@@ -231,7 +235,7 @@
|
|
|
231
235
|
f_residential_area: ''
|
|
232
236
|
},
|
|
233
237
|
residentialquery: '',
|
|
234
|
-
servicesource:'
|
|
238
|
+
servicesource:'话务来电', // 工单来源
|
|
235
239
|
areacondition: '',
|
|
236
240
|
testdata: {f_equipment: ''},
|
|
237
241
|
residentialTemplate: 'f_villagename',
|
|
@@ -241,13 +245,15 @@
|
|
|
241
245
|
serviceacitivity: [{
|
|
242
246
|
f_service_acitivity_type: '派单'
|
|
243
247
|
}],
|
|
248
|
+
f_small_area:'',
|
|
244
249
|
f_finish_date:'',
|
|
245
|
-
f_source:'
|
|
250
|
+
f_source:'话务来电',
|
|
246
251
|
f_service_id: '',
|
|
247
252
|
f_contact_phone: '',
|
|
248
253
|
f_meetunit: '',
|
|
249
254
|
f_phone: '',
|
|
250
255
|
f_user_name: '',
|
|
256
|
+
failure:'',
|
|
251
257
|
f_address: '',
|
|
252
258
|
f_json: '',
|
|
253
259
|
f_repair_date: Util.getNowDate(),
|
|
@@ -292,13 +298,18 @@
|
|
|
292
298
|
'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
|
|
293
299
|
'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
|
|
294
300
|
userid: this.$login.f.id,
|
|
301
|
+
is_to_other :false,
|
|
295
302
|
repairers: [] // 维修员
|
|
296
303
|
}
|
|
297
304
|
},
|
|
298
305
|
ready() {
|
|
299
306
|
// 获取sendType.json配置信息 获取派单类型 转站点,转维修员,自选模式
|
|
300
307
|
getSendType(this)
|
|
301
|
-
|
|
308
|
+
if (this.$appdata.getSingleValue('转班组长') && this.$appdata.getSingleValue('转班组长') == 'true'){
|
|
309
|
+
this.is_to_other = true
|
|
310
|
+
this.source = 'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($班组长$)))'
|
|
311
|
+
}
|
|
312
|
+
this.model.f_source = this.telsource == '转维修员' ? '部门派单':'话务来电'
|
|
302
313
|
},
|
|
303
314
|
methods: {
|
|
304
315
|
// 当维修员发生改变,获取维修员手机号
|
|
@@ -481,6 +492,7 @@
|
|
|
481
492
|
assignObj() {
|
|
482
493
|
if (this.data) {
|
|
483
494
|
this.model.failure_str = ''
|
|
495
|
+
this.model.f_small_area = this.data.f_slice_area
|
|
484
496
|
this.model.f_address = this.data.f_address
|
|
485
497
|
this.model.f_user_name = this.data.f_user_name
|
|
486
498
|
this.model.f_user_type = this.data.f_user_type
|
|
@@ -517,6 +529,7 @@
|
|
|
517
529
|
f_meetunit:this.model.serviceacitivity[0].f_meetunit,
|
|
518
530
|
f_reciever:this.model.serviceacitivity[0].f_reciever
|
|
519
531
|
}],
|
|
532
|
+
f_small_area:'',
|
|
520
533
|
f_finish_date:'',
|
|
521
534
|
f_meetunit : this.model.f_meetunit,
|
|
522
535
|
f_orgstr : this.model.f_orgstr,
|
|
@@ -621,6 +634,11 @@
|
|
|
621
634
|
}
|
|
622
635
|
data.model.f_state = null
|
|
623
636
|
this.saveing = true
|
|
637
|
+
|
|
638
|
+
if (this.is_to_other){
|
|
639
|
+
data.is_to_other = 'true'
|
|
640
|
+
}
|
|
641
|
+
|
|
624
642
|
return this.$resetpost(url, data).then((data) => {
|
|
625
643
|
if(data.data && data.data.id){
|
|
626
644
|
this.id = JSON.parse(data.data.id).id
|
|
@@ -637,6 +655,8 @@
|
|
|
637
655
|
Util.afterCallBz(this.$login.f.id, this.$login.f.name)
|
|
638
656
|
}
|
|
639
657
|
this.saveing = false
|
|
658
|
+
}).catch(error=>{
|
|
659
|
+
this.saveing = false
|
|
640
660
|
})
|
|
641
661
|
},
|
|
642
662
|
address() {
|
|
@@ -696,6 +716,13 @@
|
|
|
696
716
|
},
|
|
697
717
|
},
|
|
698
718
|
watch: {
|
|
719
|
+
'telsource'(){
|
|
720
|
+
if(this.telsource == '转站点' ) {
|
|
721
|
+
this.servicesource = '话务来电'
|
|
722
|
+
}else{
|
|
723
|
+
this.servicesource = '部门派单'
|
|
724
|
+
}
|
|
725
|
+
},
|
|
699
726
|
// 转接类型
|
|
700
727
|
'model.f_handlingtype'(){
|
|
701
728
|
if(this.operType === '修改工单'){
|
|
@@ -767,6 +794,9 @@
|
|
|
767
794
|
getTestData() {
|
|
768
795
|
return this.testdata
|
|
769
796
|
},
|
|
797
|
+
getSource() {
|
|
798
|
+
return this.servicesource
|
|
799
|
+
},
|
|
770
800
|
serviceacitivity() {
|
|
771
801
|
return this.model.serviceacitivity.find((row) => {
|
|
772
802
|
return row.f_service_acitivity_type === '派单'
|