telephone-clients 3.0.103 → 3.0.104-11

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