telephone-clients 3.0.104-10 → 3.0.104-100
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/App.vue +54 -54
- 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 +80 -10
- package/src/components/pc/RepairsWork.vue +33 -3
- package/src/components/pc/RoleSelector.vue +7 -1
- package/src/components/pc/Seekwork.vue +3 -0
- package/src/components/pc/SiteSend.vue +38 -1
- package/src/components/pc/TelLossList.vue +20 -3
- 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 +722 -712
- package/src/components/sendsingle/onlinequeryuser.vue +1 -1
- package/src/components/telcount/TelByOrderMan.vue +22 -4
- package/src/components/telreport/RepairsDetailsReport.vue +2 -2
- package/src/components/telreport/TrafficClassificationReport.vue +13 -13
- package/src/components/telreport/Trafficassess.vue +2 -2
- 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/RepairDetails.vue +8 -2
- package/src/components/workorder/RepairInfo.vue +3 -3
- package/src/components/workorder/RepairPaperAndroid.vue +351 -0
- package/src/components/workorder/ServiceOnlineQuery.vue +306 -0
- package/src/components/workorder/TemporarySingle.vue +346 -302
- package/src/filiale/furuike/pc/QueryVisitHistory.vue +14 -1
- package/src/filiale/furuike/pc/WorkHistory.vue +576 -576
- package/src/filiale/hanzhong/telephone.js +1 -1
- 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/lixian/onlineChangeMeter.vue +481 -0
- package/src/filiale/lixian/onlineoperation.vue +606 -0
- package/src/filiale/lixian/onlinequeryuser.vue +509 -0
- package/src/filiale/lixian/telephoneAndroid.js +23 -0
- package/src/filiale/qianneng/android/AppInstallationMaterial.vue +880 -845
- package/src/filiale/qianneng/android/TemporarySingle.vue +537 -537
- package/src/filiale/qianneng/pc/MaterialDetailed.vue +260 -260
- package/src/filiale/qianneng/pc/NewRepairPaper.vue +467 -467
- package/src/filiale/qianneng/pc/RepairsWork.vue +992 -992
- package/src/filiale/qianneng/pc/WorkListAllNew.vue +757 -757
- package/src/filiale/qianneng/pc/changetable.vue +273 -273
- package/src/filiale/qianneng/telephone.js +22 -22
- package/src/filiale/rizhao/pc/IgnitionVentilation.vue +0 -1
- package/src/filiale/rizhao/pc/RepairsWork.vue +0 -1
- package/src/filiale/rizhao/pc/WorkListAllNew.vue +11 -5
- package/src/filiale/rizhao/telephone.js +1 -1
- 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 +2 -2
- package/src/filiale/shanxian/telephone.js +1 -0
- package/src/filiale/shexian/android/AddMyTask.vue +7 -0
- package/src/filiale/shexian/android/RepairFirstV.vue +5 -0
- package/src/filiale/shexian/android/RepairInfo.vue +1 -0
- package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +9 -9
- package/src/filiale/shexian/pc/TelByRepairType.vue +3 -3
- 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 +73 -162
- package/src/filiale/wenxi/android/RepairOrderV.vue +1 -1
- package/src/filiale/wenxi/android/ZHihuanFirst.vue +149 -129
- 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 +4 -0
- package/src/filiale/wenxi/telephoneAndroid.js +2 -1
- package/src/filiale/wuhai/telephone.js +1 -1
- package/src/filiale/yuncheng/android/LdapHelper.js +75 -0
- package/src/filiale/yuncheng/android/Outlay.vue +201 -0
- package/src/filiale/yuncheng/android/RepairInfo.vue +163 -0
- package/src/filiale/yuncheng/android/RepairOrderV.vue +1483 -0
- package/src/filiale/yuncheng/android/RepairUserInfo.vue +390 -0
- package/src/filiale/yuncheng/android/RightTree.vue +218 -0
- package/src/filiale/yuncheng/android/TemporarySingle.vue +522 -0
- package/src/filiale/yuncheng/android/ZHihuanFirst.vue +541 -0
- package/src/filiale/yuncheng/pc/DistributeWork.vue +199 -0
- package/src/filiale/yuncheng/pc/GasWork.vue +773 -0
- package/src/filiale/yuncheng/pc/TelFindUser.vue +31 -11
- package/src/filiale/yuncheng/pc/WorkList.vue +823 -0
- package/src/filiale/yuncheng/pc/WorkListAllNew.vue +781 -0
- package/src/filiale/yuncheng/telephone.js +5 -1
- package/src/filiale/yuncheng/telephoneAndroid.js +19 -0
- package/src/filiale/zhongyi/pc/WorkListAllNew.vue +2 -1
- package/src/main.js +1 -1
- package/src/telephone-android.js +7 -0
- package/src/telephone.js +1 -1
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!--<div class="app-botton" @click="back()">-->
|
|
3
|
+
<!--<span class="glyphicon glyphicon-menu-left">返回</span>-->
|
|
4
|
+
<!--</div>-->
|
|
5
|
+
<div class="repair-bg auto" id="zhihuan-first" style="padding-bottom:5px;overflow:auto">
|
|
6
|
+
<!--<div class="app-botton" @click="back()">-->
|
|
7
|
+
<!--<span class="glyphicon glyphicon-menu-left">返回</span>-->
|
|
8
|
+
<!--</div>-->
|
|
9
|
+
<div class="bq-parent">
|
|
10
|
+
<blockquote style="color: #499edf;border-left-color: #499edf;font-size: 16px">
|
|
11
|
+
<p>
|
|
12
|
+
待办工单<span v-if="rows">({{rows.length}}单)</span>
|
|
13
|
+
<span v-if="!rows">(暂无待处理工单)</span>
|
|
14
|
+
<img @click="getNewOrder" src="../../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
|
|
15
|
+
</p>
|
|
16
|
+
</blockquote>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="panel panel-default repair-info-content auto">
|
|
19
|
+
<div class="panel-body">
|
|
20
|
+
<div class="row">
|
|
21
|
+
<input type="text" v-model="username" placeholder='用户姓名' style="width: 30%;float: left"/>
|
|
22
|
+
<div class="col-sm-7" style="float: left;margin-left: 3%;margin-bottom: 3%">
|
|
23
|
+
<button type="button" name="button" class="btn btn-primary" @click='ifsearch("")' >查询</button>
|
|
24
|
+
<button type="button" name="button" class="btn btn-primary" @click='ifsearch(" and f_orderstatus!=null ")' >查询临时保存</button>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="row">
|
|
28
|
+
<div class="col-sm-12" style="margin-bottom: 3%">
|
|
29
|
+
<input style="width: 100%" type="text" v-model="address" placeholder='用户地址' style="width: 100%"/>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="panel panel-default well" :class="row.failure.indexOf('漏气') !== -1 ? 'class-a':''" v-for="row in listData.list" >
|
|
33
|
+
<div class="panel-body bg-info" style="padding: 10px">
|
|
34
|
+
<div class="row form-group">
|
|
35
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
36
|
+
<div class="row" >
|
|
37
|
+
<span v-if="row.state==='延期申请'" style="color: darkred">该工单已提交延期处理请勿操作</span>
|
|
38
|
+
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
39
|
+
工单编号: {{row.f_service_id}}<span v-if="row.f_remindersign">(催单 {{row.f_reminderdata}}) </span>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
42
|
+
派发时间: {{row.f_created_date}}
|
|
43
|
+
</div>
|
|
44
|
+
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '置换通气单'">
|
|
45
|
+
预约时间: {{row.f_yuyue_date}}
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
|
|
48
|
+
报修类型: {{row.f_repairtype}}
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
51
|
+
用户姓名: {{row.f_user_name}}
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
54
|
+
来电电话: {{row.f_phone}}
|
|
55
|
+
<img src="../../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
58
|
+
联系电话: {{row.f_contact_phone}}
|
|
59
|
+
<img src="../../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_contact_phone)'>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
62
|
+
用户地址: {{row.f_address}}
|
|
63
|
+
</div>
|
|
64
|
+
<div class="col-sm-12 col-xs-12 col-md-12" v-if="worktype == '报修单'||worktype == '置换通气单'">
|
|
65
|
+
指导建议: {{row.f_advice}}
|
|
66
|
+
</div>
|
|
67
|
+
<div v-show="row.f_remarks" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
68
|
+
备注信息: {{row.f_remarks}}
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
73
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="selected(row)">处理</button>
|
|
74
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="moveservice(row)">转单</button>
|
|
75
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="showshutdown(row)">结案</button>
|
|
76
|
+
<!--<button type="button" name="button" class="btn btn-primary" @click="delayedit(row)">延期申请</button>-->
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div style="height:auto;width: 100%;text-align: center">
|
|
82
|
+
<a v-if="!listData.isEnd" @click="showMore()">展开更多......</a>
|
|
83
|
+
<span v-if="listData.isEnd">到底了......</span>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<modal :show.sync="moveshow" v-ref:modal :backdrop="false">
|
|
87
|
+
<div slot="modal-header" class="modal-header">
|
|
88
|
+
<h4 class="modal-title">
|
|
89
|
+
转单
|
|
90
|
+
</h4>
|
|
91
|
+
</div>
|
|
92
|
+
<div slot="modal-body" class="modal-body">
|
|
93
|
+
<div class="row" style="margin-top: 6px">
|
|
94
|
+
<label class="col-xs-4 col-md-4 control-label font text-left">接单人</label>
|
|
95
|
+
<div class="col-xs-8">
|
|
96
|
+
<v-select :value="orderman" :value-single="true"
|
|
97
|
+
:options='repairers' placeholder='请选择接单人'
|
|
98
|
+
close-on-select v-on:change="repiarmancg"></v-select>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="row" style="margin-top: 6px">
|
|
102
|
+
<label class="control-label font text-left col-md-4 col-xs-4">备注</label>
|
|
103
|
+
<div class="col-xs-8 col-md-8">
|
|
104
|
+
<input type="text" v-model="moveselected.f_remarks"/>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<div slot="modal-footer" class="modal-footer">
|
|
109
|
+
<button type="button" class="btn btn-default" @click="movedo()">确定</button>
|
|
110
|
+
<button type="button" class="btn btn-default" @click="undo()">取消</button>
|
|
111
|
+
</div>
|
|
112
|
+
</modal>
|
|
113
|
+
<modal :show.sync="shutshow" v-ref:modal :backdrop="false">
|
|
114
|
+
<div slot="modal-header" class="modal-header">
|
|
115
|
+
<h4 class="modal-title">
|
|
116
|
+
结案
|
|
117
|
+
</h4>
|
|
118
|
+
</div>
|
|
119
|
+
<div slot="modal-body" class="modal-body">
|
|
120
|
+
<div class="row" style="margin-top: 6px">
|
|
121
|
+
<label class="control-label font text-left col-md-4 col-xs-4">备注</label>
|
|
122
|
+
<div class="col-xs-8 col-md-8">
|
|
123
|
+
<input type="text" v-model="shutrow.f_remarks"/>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
<div slot="modal-footer" class="modal-footer">
|
|
128
|
+
<button type="button" class="btn btn-default" @click="shutdown(shutrow)">确定</button>
|
|
129
|
+
<button type="button" class="btn btn-default" @click="undo()">取消</button>
|
|
130
|
+
</div>
|
|
131
|
+
</modal>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</template>
|
|
135
|
+
<script>
|
|
136
|
+
import FailureShow from '../../../components/pc/FailureShow'
|
|
137
|
+
import { HttpResetClass } from 'vue-client'
|
|
138
|
+
import Vue from 'vue'
|
|
139
|
+
import * as Util from "../../../components/Util";
|
|
140
|
+
// 工作类型对应的各项设置
|
|
141
|
+
const config = {
|
|
142
|
+
'报修单': {
|
|
143
|
+
path: 'getServiceMobile'
|
|
144
|
+
},
|
|
145
|
+
'置换通气单': {
|
|
146
|
+
path: 'getSubstitMobile'
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
export default{
|
|
150
|
+
title: '维修员平板首页',
|
|
151
|
+
data () {
|
|
152
|
+
return {
|
|
153
|
+
// rows: Object
|
|
154
|
+
rows: [{
|
|
155
|
+
f_user_name:'',
|
|
156
|
+
f_contact_phone:'',
|
|
157
|
+
failure:''
|
|
158
|
+
}],
|
|
159
|
+
editshow:false,
|
|
160
|
+
row:{
|
|
161
|
+
type:Object,
|
|
162
|
+
default:{
|
|
163
|
+
f_user_name:'',
|
|
164
|
+
f_contact_phone:'',
|
|
165
|
+
failure:''
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
username:'',
|
|
169
|
+
address:'',
|
|
170
|
+
moveshow:false,
|
|
171
|
+
moveselected:'',
|
|
172
|
+
orderman:'',
|
|
173
|
+
number:0,
|
|
174
|
+
savebutten:true, // 工单保存按钮
|
|
175
|
+
wwcbutten:true, // 未完成按钮
|
|
176
|
+
wwxbutten:true, // 未维修按钮
|
|
177
|
+
jabutten:true, //结案按钮
|
|
178
|
+
imgurl: 'http://192.168.2.77:8081',
|
|
179
|
+
fileName: '',
|
|
180
|
+
datajson: '',
|
|
181
|
+
norepair: '',
|
|
182
|
+
showNorepair: false,
|
|
183
|
+
showCannotrepair: false,
|
|
184
|
+
showhead: true,
|
|
185
|
+
repairers : [],
|
|
186
|
+
config:{},
|
|
187
|
+
shutshow: false,
|
|
188
|
+
shutrow: {},
|
|
189
|
+
listData: {
|
|
190
|
+
list: [],
|
|
191
|
+
isEnd: true,
|
|
192
|
+
index: 0
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
props: {
|
|
197
|
+
worktype:{
|
|
198
|
+
type:String,
|
|
199
|
+
default:'置换通气单'
|
|
200
|
+
},
|
|
201
|
+
sourcet:{
|
|
202
|
+
type:String,
|
|
203
|
+
default:'横屏'
|
|
204
|
+
},
|
|
205
|
+
tabname:{
|
|
206
|
+
type:String
|
|
207
|
+
},
|
|
208
|
+
msg: {
|
|
209
|
+
type: Object
|
|
210
|
+
},
|
|
211
|
+
savevalid: {
|
|
212
|
+
type: Object
|
|
213
|
+
},
|
|
214
|
+
model: {
|
|
215
|
+
type: Object
|
|
216
|
+
},
|
|
217
|
+
show: {
|
|
218
|
+
type: Boolean,
|
|
219
|
+
default: false
|
|
220
|
+
},
|
|
221
|
+
system: ''
|
|
222
|
+
},
|
|
223
|
+
methods: {
|
|
224
|
+
repiarmancg(val){
|
|
225
|
+
this.orderman = val
|
|
226
|
+
},
|
|
227
|
+
movedo(){
|
|
228
|
+
if(this.orderman == undefined || this.orderman == '' ){
|
|
229
|
+
this.$showMessage(`请先选择接单人!`, ['confirm'])
|
|
230
|
+
return
|
|
231
|
+
}
|
|
232
|
+
//tag
|
|
233
|
+
//tag)
|
|
234
|
+
let result = this.$androidUtil.bzLogic('androidMoveService', {id_back: this.moveselected.id_back, f_reciever: this.orderman,worktype:this.worktype, f_remarks: this.moveselected.f_remarks})
|
|
235
|
+
if (result.result === '成功') {
|
|
236
|
+
this.$showMessage(`向 ${this.orderman} 转单成功!`, ['confirm'])
|
|
237
|
+
this.orderman = ''
|
|
238
|
+
this.moveselected = ''
|
|
239
|
+
this.moveshow = false
|
|
240
|
+
this.ifsearch()
|
|
241
|
+
} else {
|
|
242
|
+
this.$showMessage(`转单失败,请检查网络异常!`, ['confirm'])
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
},
|
|
246
|
+
undo(){
|
|
247
|
+
this.orderman = ''
|
|
248
|
+
this.moveselected = ''
|
|
249
|
+
this.moveshow = false
|
|
250
|
+
this.shutshow = false
|
|
251
|
+
},
|
|
252
|
+
getEmp () {
|
|
253
|
+
// 获取接单人数组
|
|
254
|
+
let val = ''
|
|
255
|
+
let http = new HttpResetClass()
|
|
256
|
+
val = {source: 'this.getAllChildrens().where(row.getAttributes().get($rolestr$) == $置换员$))', userid: `${Vue.user.id}`}
|
|
257
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
258
|
+
res.data.forEach((item) => {
|
|
259
|
+
this.repairers.push({label: `${item.name}`, value: item.name})
|
|
260
|
+
})
|
|
261
|
+
})
|
|
262
|
+
},
|
|
263
|
+
ifsearch(condition){
|
|
264
|
+
this.listData.list = []
|
|
265
|
+
this.listData.index = 0
|
|
266
|
+
this.listData.isEnd = true
|
|
267
|
+
if (!condition) {
|
|
268
|
+
condition = ''
|
|
269
|
+
}
|
|
270
|
+
condition = '1 = 1 ' + condition
|
|
271
|
+
if(this.username != ''){
|
|
272
|
+
condition += " and f_user_name like '%" + this.username + "%'"
|
|
273
|
+
}
|
|
274
|
+
if(this.address != ''){
|
|
275
|
+
condition += " and f_address like '%" + this.address + "%'"
|
|
276
|
+
}
|
|
277
|
+
//tag
|
|
278
|
+
//tag
|
|
279
|
+
// 测试环境异步,真实环境同步
|
|
280
|
+
if (this.$androidUtil.isTest) {
|
|
281
|
+
return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
|
|
282
|
+
this.rows = ret.data
|
|
283
|
+
})
|
|
284
|
+
} else {
|
|
285
|
+
let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
|
|
286
|
+
if (result.code === 200) {
|
|
287
|
+
this.rows = result.data
|
|
288
|
+
} else {
|
|
289
|
+
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
this.showMore()
|
|
293
|
+
},
|
|
294
|
+
selected (row) {
|
|
295
|
+
var prpdata = {
|
|
296
|
+
_this:this,
|
|
297
|
+
title:'入户置换',
|
|
298
|
+
safe:true
|
|
299
|
+
}
|
|
300
|
+
this.$dispatch('gotoson',prpdata)
|
|
301
|
+
if(this.sourcet == '横屏'){
|
|
302
|
+
this.$goto('repair-order', {row: row,worktype:this.worktype},'self',this.ifsearch)
|
|
303
|
+
}else{
|
|
304
|
+
this.$goto('repair-orderV', {row: row,worktype:this.worktype},'self',this.ifsearch)
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
moveservice(row){
|
|
308
|
+
this.moveselected = row
|
|
309
|
+
this.moveshow = true
|
|
310
|
+
},
|
|
311
|
+
delayedit (row) {
|
|
312
|
+
row.state = '延期申请'
|
|
313
|
+
this.$goto('delay-apply', {row:row})
|
|
314
|
+
},
|
|
315
|
+
search () {
|
|
316
|
+
// 测试环境异步,真实环境同步
|
|
317
|
+
var condition = '1 = 1'
|
|
318
|
+
//tag
|
|
319
|
+
if (this.$androidUtil.isTest) {
|
|
320
|
+
return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
|
|
321
|
+
// ret.data.forEach((item) => {
|
|
322
|
+
// item.service_version = item.failure.indexOf("漏气") !== -1
|
|
323
|
+
// })
|
|
324
|
+
this.rows = ret.data
|
|
325
|
+
})
|
|
326
|
+
} else {
|
|
327
|
+
let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
|
|
328
|
+
if (result.code === 200) {
|
|
329
|
+
//tag)
|
|
330
|
+
this.rows = result.data
|
|
331
|
+
} else {
|
|
332
|
+
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
sumsearch () {
|
|
337
|
+
// 测试环境异步,真实环境同步
|
|
338
|
+
var condition = '1 = 1'
|
|
339
|
+
//tag
|
|
340
|
+
if (this.$androidUtil.isTest) {
|
|
341
|
+
return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
|
|
342
|
+
// ret.data.forEach((item) => {
|
|
343
|
+
// item.service_version = item.failure.indexOf("漏气") !== -1
|
|
344
|
+
// })
|
|
345
|
+
var crv = {
|
|
346
|
+
title:this.tabname,
|
|
347
|
+
sum:ret.data.length
|
|
348
|
+
}
|
|
349
|
+
this.$emit('changesum',crv)
|
|
350
|
+
})
|
|
351
|
+
} else {
|
|
352
|
+
let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
|
|
353
|
+
if (result.code === 200) {
|
|
354
|
+
//tag)
|
|
355
|
+
var crv = {
|
|
356
|
+
title:this.tabname,
|
|
357
|
+
sum:result.data.length
|
|
358
|
+
}
|
|
359
|
+
this.$emit('changesum',crv)
|
|
360
|
+
} else {
|
|
361
|
+
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
makeAPhoneCall(phoneNumber) {
|
|
366
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
367
|
+
},
|
|
368
|
+
upload () {
|
|
369
|
+
this.$goto('up-load')
|
|
370
|
+
},
|
|
371
|
+
back () {
|
|
372
|
+
this.$back()
|
|
373
|
+
},
|
|
374
|
+
async showshutdown(row) {
|
|
375
|
+
this.shutrow = row
|
|
376
|
+
this.shutshow = true
|
|
377
|
+
},
|
|
378
|
+
async shutdown(row){
|
|
379
|
+
this.shutshow = false
|
|
380
|
+
let repairdetails = []
|
|
381
|
+
if(Vue.config.telephone.RepairsConfig.data != undefined){
|
|
382
|
+
//tag
|
|
383
|
+
//tag)
|
|
384
|
+
repairdetails = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.RepairsConfig.data)))
|
|
385
|
+
}else{
|
|
386
|
+
this.$showMessage('网络异常,请重新登陆系统!', ['confirm'])
|
|
387
|
+
return
|
|
388
|
+
}
|
|
389
|
+
let data = {
|
|
390
|
+
id: row.id,
|
|
391
|
+
model: {
|
|
392
|
+
serviceacitivity: [{
|
|
393
|
+
f_result_status: '结案',
|
|
394
|
+
f_is_abnormal: '',
|
|
395
|
+
f_date_leave: Util.toStandardTimeString(),
|
|
396
|
+
f_is_userfilesadd: "未上传",
|
|
397
|
+
f_workorder_type: "置换通气单",
|
|
398
|
+
f_order_man: Vue.user.name,
|
|
399
|
+
f_service_acitivity_type: "置换通气单"
|
|
400
|
+
}],
|
|
401
|
+
f_processid: row.f_processid,
|
|
402
|
+
id_back: row.id_back,
|
|
403
|
+
f_source: '',
|
|
404
|
+
id: row.id,
|
|
405
|
+
f_success: '成功',
|
|
406
|
+
f_remarks: row.f_remarks
|
|
407
|
+
},
|
|
408
|
+
loginUser: {
|
|
409
|
+
name: Vue.user.name,
|
|
410
|
+
ename: Vue.user.ename
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
if (repairdetails.length > 0) {
|
|
414
|
+
let repairlist = []
|
|
415
|
+
for (let j = 0;j< repairdetails.length;j++) {
|
|
416
|
+
let repairitem = []
|
|
417
|
+
for (let i = 0;i< repairdetails[j].details.length;i++) {
|
|
418
|
+
repairitem.push({f_project:repairdetails[j].details[i].f_project,type:repairdetails[j].details[i].type,f_status:'',f_content:'',f_is_must:repairdetails[j].details[i].f_is_must ? 'true':'false'})
|
|
419
|
+
}
|
|
420
|
+
repairlist.push({f_type: repairdetails[j].f_type, details: repairitem,imgs:[],f_remarks:repairdetails[j].f_remarks})
|
|
421
|
+
}
|
|
422
|
+
data.model.serviceacitivity[0].servicerepair = Object.assign([], repairlist)
|
|
423
|
+
}
|
|
424
|
+
//tag)
|
|
425
|
+
data.model = Object.assign(data.model, row)
|
|
426
|
+
this.deleteEmptyProperty(data.model)
|
|
427
|
+
//tag)
|
|
428
|
+
try {
|
|
429
|
+
let res = await this.$androidUtil.bzLogic("WorkOrderClose", data)
|
|
430
|
+
//tag)
|
|
431
|
+
this.$showMessage('该工单已结案')
|
|
432
|
+
this.ifsearch()
|
|
433
|
+
} catch (e) {
|
|
434
|
+
this.$showMessage('网络连接失败,请稍后再试。')
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
showMore() {
|
|
438
|
+
if (!this.rows) {
|
|
439
|
+
return
|
|
440
|
+
}
|
|
441
|
+
let endIndex = this.listData.index + 10
|
|
442
|
+
if (endIndex > this.rows.length) {
|
|
443
|
+
endIndex = this.rows.length
|
|
444
|
+
}
|
|
445
|
+
for (; this.listData.index < endIndex; this.listData.index++) {
|
|
446
|
+
this.listData.list.push(this.rows[this.listData.index])
|
|
447
|
+
}
|
|
448
|
+
if(this.listData.index == this.rows.length){
|
|
449
|
+
this.listData.isEnd = true
|
|
450
|
+
}else {
|
|
451
|
+
this.listData.isEnd = false
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
deleteEmptyProperty(object){
|
|
455
|
+
for (var i in object) {
|
|
456
|
+
var value = object[i];
|
|
457
|
+
if (typeof value === 'object') {
|
|
458
|
+
if (Array.isArray(value)) {
|
|
459
|
+
if (value.length == 0) {
|
|
460
|
+
delete object[i];
|
|
461
|
+
//tag;
|
|
462
|
+
continue;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
this.deleteEmptyProperty(value);
|
|
466
|
+
if (this.isEmpty(value)) {
|
|
467
|
+
//tag;
|
|
468
|
+
delete object[i];
|
|
469
|
+
//tag;
|
|
470
|
+
}
|
|
471
|
+
} else {
|
|
472
|
+
if (value === '' || value === null || value === undefined) {
|
|
473
|
+
delete object[i];
|
|
474
|
+
//tag;
|
|
475
|
+
} else {
|
|
476
|
+
//tag;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
isEmpty(object) {
|
|
482
|
+
for (var name in object) {
|
|
483
|
+
return false;
|
|
484
|
+
}
|
|
485
|
+
return true;
|
|
486
|
+
},
|
|
487
|
+
getNewOrder(){
|
|
488
|
+
HostApp.__this__ = this
|
|
489
|
+
HostApp.logicWithHint({
|
|
490
|
+
// logic别名,key必须为logic
|
|
491
|
+
'logic': 'TelServiceTimeOut',
|
|
492
|
+
// 回调执行方法名,key必须为callback
|
|
493
|
+
'callback': 'javascript:HostApp.__this__.getNewCallBack()',
|
|
494
|
+
// logic执行需要的业务参数
|
|
495
|
+
'data': {params: ''},
|
|
496
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
|
497
|
+
// 执行回调方法传入key为backresult
|
|
498
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
|
499
|
+
'backresult': 1
|
|
500
|
+
})
|
|
501
|
+
},
|
|
502
|
+
getNewCallBack(obj){
|
|
503
|
+
//tag)
|
|
504
|
+
this.ifsearch()
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
ready () {
|
|
508
|
+
this.getEmp()
|
|
509
|
+
this.ifsearch()
|
|
510
|
+
// var _this = this;
|
|
511
|
+
// this.timeoutHandle = window.setInterval(function() {
|
|
512
|
+
// _this.sumsearch()
|
|
513
|
+
// }, 6000)
|
|
514
|
+
},
|
|
515
|
+
components: {
|
|
516
|
+
FailureShow,
|
|
517
|
+
'failure-show': FailureShow
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
</script>
|
|
521
|
+
<style>
|
|
522
|
+
.class-a{
|
|
523
|
+
border:1px solid red;
|
|
524
|
+
}
|
|
525
|
+
.padd-div-shu{
|
|
526
|
+
padding-bottom: 5px;
|
|
527
|
+
}
|
|
528
|
+
.app-botton {
|
|
529
|
+
position:fixed;
|
|
530
|
+
background: #87b2dd;
|
|
531
|
+
color: #FFF;
|
|
532
|
+
padding: 8px;
|
|
533
|
+
text-align: center;
|
|
534
|
+
font-size: 1.2em;
|
|
535
|
+
z-index: 10;
|
|
536
|
+
opacity:0.5;
|
|
537
|
+
bottom: 50px;
|
|
538
|
+
margin-top: -10px;
|
|
539
|
+
height: 40px;
|
|
540
|
+
}
|
|
541
|
+
</style>
|