telephone-clients 4.0.0-1-89 → 4.0.0-1-90
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 +2 -2
- package/src/components/pc/MaintenanceWorker.vue +152 -0
- package/src/components/pc/NewRepairPaper.vue +704 -704
- package/src/components/pc/NewRepairTablePaper.vue +442 -442
- package/src/components/pc/WorkHistory.vue +650 -650
- package/src/components/pc/WorkListNew.vue +838 -838
- package/src/components/sendsingle/onlinecharge.vue +424 -424
- package/src/components/workorder/ChangeMeterPageNew.vue +663 -663
- package/src/components/workorder/ChangeMeterUserInfo.vue +130 -130
- package/src/components/workorder/RepairFirstV.vue +736 -736
- package/src/components/workorder/RepairInfo.vue +178 -178
- package/src/components/workorder/RepairOrderT.vue +713 -713
- package/src/components/workorder/oldMeterPage.vue +104 -104
- package/src/components/workorder/repairFirstTable.vue +715 -715
- package/src/filiale/jinhong/android/FaultAll.vue +936 -936
- package/src/filiale/jinhong/android/ZHihuanFirst.vue +540 -540
- package/src/filiale/jinhong/pc/WorkListAllNew.vue +884 -884
- package/src/filiale/jinhong/telephone.js +10 -10
- package/src/filiale/jinhong/telephoneAndroid.js +13 -13
- package/src/filiale/meihekou/android/Othercharge.vue +454 -454
- package/src/filiale/meihekou/android/PhoneStandWorkNew.vue +692 -692
- package/src/filiale/meihekou/android/ServiceOnlineQuery.vue +477 -477
- package/src/filiale/meihekou/pc/WorkListAllNew.vue +925 -901
- package/src/filiale/meihekou/pc/WorkListNew.vue +1103 -1049
- package/src/filiale/meihekou/telephoneAndroid.js +26 -26
- package/src/filiale/xinjiangdexin/telephone.js +16 -16
- package/src/filiale/xinliansihui/android/FaultAll.vue +923 -923
- package/src/filiale/xinliansihui/android/RepairFirstV.vue +734 -734
- package/src/filiale/xinliansihui/android/RepairOrderT.vue +713 -713
- package/src/main.js +1 -1
- package/src/telephone-android.js +425 -425
- package/src/telephone.js +799 -796
|
@@ -1,715 +1,715 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="height: auto;width: 100%" class="repair-bg">
|
|
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
|
-
</p>
|
|
9
|
-
</blockquote>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<div>
|
|
13
|
-
<form>
|
|
14
|
-
<!-- 查询条件-->
|
|
15
|
-
<div class="row app-row">
|
|
16
|
-
<div class="col-xs-4">
|
|
17
|
-
<img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
18
|
-
<label class="font text-left">用户姓名:</label>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="col-xs-8" >
|
|
21
|
-
<input type="text" v-model="username" placeholder='用户姓名'
|
|
22
|
-
class="search_input input-font" />
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="row app-row">
|
|
26
|
-
<div class="col-xs-4">
|
|
27
|
-
<img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
28
|
-
<label class="font text-left">用户编号:</label>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="col-xs-8" >
|
|
31
|
-
<input type="text" v-model="f_userinfo_code" placeholder='用户编号'
|
|
32
|
-
class="search_input input-font" />
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="row app-row">
|
|
36
|
-
<div class="col-xs-4">
|
|
37
|
-
<img src="../../assets/小区蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
38
|
-
<label class="font text-left">用户地址:</label>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="col-xs-8" >
|
|
41
|
-
<input type="text" class="search_input input-font"
|
|
42
|
-
v-model="address" placeholder='用户地址' />
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<!-- 分割按钮和条件的高度 -->
|
|
46
|
-
<div class="row app-row" style="height: 10px;"></div>
|
|
47
|
-
<!-- 按钮 -->
|
|
48
|
-
<div class="row text-center app-row">
|
|
49
|
-
<button type="button" class="btn btn-lg btn-font btn-color" @click="ifsearch('')" style="min-width: 25%;">查询</button>
|
|
50
|
-
<button type="button" class="btn btn-lg btn-font btn-color" @click='ifsearch(" and f_orderstatus!=null ")' style="min-width: 25%;">查询临时保存</button>
|
|
51
|
-
<img style="float: right;margin-right: 3%;margin-top: -4px " @click="getNewOrder" src="../../assets/shuaxindaiban1.png">
|
|
52
|
-
</div>
|
|
53
|
-
<div style="height:30px;" class="app-row"></div>
|
|
54
|
-
</form>
|
|
55
|
-
</div>
|
|
56
|
-
<!-- 列表 -->
|
|
57
|
-
<div class="panel panel-default repair-info-content auto">
|
|
58
|
-
<div class="panel-body">
|
|
59
|
-
<div class="panel panel-default well panel-blue-border" :class="row.failure.indexOf('漏气') !== -1 ? 'class-a':''" v-for="row in listData.list" >
|
|
60
|
-
<div class="panel-body" style="padding: 10px">
|
|
61
|
-
<div class="row form-group">
|
|
62
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
63
|
-
<div class="row" >
|
|
64
|
-
<span v-if="row.state==='延期申请'" style="color: darkred">该工单已提交延期处理请勿操作</span>
|
|
65
|
-
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
66
|
-
工单编号: {{row.f_service_id}}<span v-if="row.f_remindersign">(催单 {{row.f_reminderdata}}) </span>
|
|
67
|
-
</div>
|
|
68
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
69
|
-
派发时间: {{row.f_created_date}}
|
|
70
|
-
</div>
|
|
71
|
-
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '置换通气单'||worktype == '安装单'">
|
|
72
|
-
预约时间: {{row.f_yuyue_date}}
|
|
73
|
-
</div>
|
|
74
|
-
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '安装单'">
|
|
75
|
-
预约时间: {{row.f_yuyue_date}}
|
|
76
|
-
</div>
|
|
77
|
-
<!--<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">-->
|
|
78
|
-
<!--报修类型: {{row.f_servicerepair_type}}-->
|
|
79
|
-
<!--</div>-->
|
|
80
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
|
|
81
|
-
维修类型: {{row.f_repairtype}}
|
|
82
|
-
</div>
|
|
83
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_userinfo_code">
|
|
84
|
-
用户编号: {{row.f_userinfo_code}}
|
|
85
|
-
</div>
|
|
86
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_enter_number">
|
|
87
|
-
用户证号: {{row.f_enter_number}}
|
|
88
|
-
</div>
|
|
89
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
90
|
-
用户姓名: {{row.f_user_name}}
|
|
91
|
-
</div>
|
|
92
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
93
|
-
来电电话: {{row.f_phone}}
|
|
94
|
-
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
95
|
-
</div>
|
|
96
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
97
|
-
联系电话: {{row.f_contact_phone}}
|
|
98
|
-
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_contact_phone)'>
|
|
99
|
-
</div>
|
|
100
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
101
|
-
用户地址: {{row.f_address}}
|
|
102
|
-
</div>
|
|
103
|
-
<div v-show="row.f_advice" class="col-sm-12 col-xs-12 col-md-12" v-if="worktype == '报修单'">
|
|
104
|
-
指导建议: {{row.f_advice}}
|
|
105
|
-
</div>
|
|
106
|
-
<div v-show="row.f_remarks" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
107
|
-
备注信息: {{row.f_remarks}}
|
|
108
|
-
</div>
|
|
109
|
-
<div v-show="row.f_yuyue_date" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_yuyue_date !=null">
|
|
110
|
-
预约时间: {{row.f_yuyue_date}}
|
|
111
|
-
</div>
|
|
112
|
-
<div v-show="row.f_subsidiary1_path" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" >
|
|
113
|
-
附件查看:
|
|
114
|
-
<button type="button" name="button" class="btn btn-primary btn-sm" @click="showSubsidiaryPath(row)">查看</button>
|
|
115
|
-
</div>
|
|
116
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
|
|
117
|
-
<failure-show :value='row.failure'>
|
|
118
|
-
</failure-show>
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
123
|
-
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="selected(row)">处理</button>
|
|
124
|
-
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right;margin-right:10px;" @click="sendback(row)">退回</button>
|
|
125
|
-
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="moveservice(row)">转单</button>
|
|
126
|
-
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right;margin-right:10px;" v-if="false" @click="infoadd(row)">信息维护</button>
|
|
127
|
-
<button type="button" name="button" class="btn btn-primary btn-sm" v-if="false"
|
|
128
|
-
style="float: right;margin-right:10px;" @click="showend(row)">无法处理
|
|
129
|
-
</button>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
<div style="height:auto;width: 100%;text-align: center">
|
|
135
|
-
<a v-if="!listData.isEnd" @click="showMore()">展开更多......</a>
|
|
136
|
-
<span v-if="listData.isEnd">到底了......</span>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
<modal :show.sync="moveshow" v-ref:modal :backdrop="false">
|
|
140
|
-
<div slot="modal-header" class="modal-header">
|
|
141
|
-
<h4 class="modal-title">
|
|
142
|
-
转单
|
|
143
|
-
</h4>
|
|
144
|
-
</div>
|
|
145
|
-
<div slot="modal-body" class="modal-body">
|
|
146
|
-
<div class="row" style="margin-top: 6px">
|
|
147
|
-
<label class="col-xs-4 col-md-4 control-label font text-left">接单人</label>
|
|
148
|
-
<div class="col-xs-8">
|
|
149
|
-
<v-select :value="orderman" :value-single="true"
|
|
150
|
-
:options='repairers' placeholder='请选择接单人'
|
|
151
|
-
close-on-select v-on:change="repiarmancg"></v-select>
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
<div class="row" style="margin-top: 6px">
|
|
155
|
-
<label class="control-label font text-left col-md-4 col-xs-4">备注</label>
|
|
156
|
-
<div class="col-xs-8 col-md-8">
|
|
157
|
-
<input type="text" v-model="moveselected.f_remarks"/>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
</div>
|
|
161
|
-
<div slot="modal-footer" class="modal-footer">
|
|
162
|
-
<button type="button" class="btn btn-default" @click="movedo()">确定</button>
|
|
163
|
-
<button type="button" class="btn btn-default" @click="undo()">取消</button>
|
|
164
|
-
</div>
|
|
165
|
-
</modal>
|
|
166
|
-
<modal :show.sync="showinfo" v-ref:infomodal :backdrop="false">
|
|
167
|
-
<div slot="modal-header" class="modal-header">
|
|
168
|
-
<h4 class="modal-title">
|
|
169
|
-
工单信息维护
|
|
170
|
-
</h4>
|
|
171
|
-
</div>
|
|
172
|
-
<div slot="modal-body" class="modal-body">
|
|
173
|
-
<div class="row" style="margin-top: 6px">
|
|
174
|
-
<label class="control-label font text-left col-md-4 col-xs-4">维护内容</label>
|
|
175
|
-
<div class="col-xs-8 col-md-8">
|
|
176
|
-
<input type="text" v-model="information"/>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
<div slot="modal-footer" class="modal-footer">
|
|
181
|
-
<button type="button" class="btn btn-default" @click="infoaddsure()">确定</button>
|
|
182
|
-
<button type="button" class="btn btn-default" @click="infoclose()">取消</button>
|
|
183
|
-
</div>
|
|
184
|
-
</modal>
|
|
185
|
-
<modal :show.sync="editflag" v-ref:infomodal :backdrop="false">
|
|
186
|
-
<div slot="modal-header" class="modal-header">
|
|
187
|
-
<h4 class="modal-title">
|
|
188
|
-
工单退回
|
|
189
|
-
</h4>
|
|
190
|
-
</div>
|
|
191
|
-
<div slot="modal-body" class="modal-body">
|
|
192
|
-
<div class="row" style="margin-top: 6px">
|
|
193
|
-
<label class="col-xs-4 col-md-4 control-label font text-left">工单编号:</label>
|
|
194
|
-
<span>{{ sendbackmodel.f_service_id }}</span>
|
|
195
|
-
</div>
|
|
196
|
-
<div class="row" style="margin-top: 6px">
|
|
197
|
-
<label class="col-xs-4 col-md-4 control-label font text-left">客户名称:</label>
|
|
198
|
-
<span>{{ sendbackmodel.f_user_name }}</span>
|
|
199
|
-
</div>
|
|
200
|
-
<div class="row" style="margin-top: 6px">
|
|
201
|
-
<label class="control-label font text-left col-md-4 col-xs-4">退回原因</label>
|
|
202
|
-
<div class="col-xs-8 col-md-8">
|
|
203
|
-
<textarea style="width: 60%" name="name" rows="1" class="ver-textarea" type="text" v-model='f_site_back_reason'></textarea>
|
|
204
|
-
</div>
|
|
205
|
-
</div>
|
|
206
|
-
|
|
207
|
-
</div>
|
|
208
|
-
<div slot="modal-footer" class="modal-footer">
|
|
209
|
-
<button :disabled="isDis" type="button" name="button" class="btn btn-primary btn-photo" @click="WorkBack()">确定</button>
|
|
210
|
-
<button type="button" class="btn btn-default" @click="WorkBackclose()">取消</button>
|
|
211
|
-
</div>
|
|
212
|
-
</modal>
|
|
213
|
-
<modal :show.sync="img_show" v-ref:infomodal :backdrop="false">
|
|
214
|
-
<div slot="modal-header" class="modal-header">
|
|
215
|
-
<h4 class="modal-title">
|
|
216
|
-
附件查看
|
|
217
|
-
</h4>
|
|
218
|
-
</div>
|
|
219
|
-
<div slot="modal-body" class="modal-body">
|
|
220
|
-
<div class="from-group">
|
|
221
|
-
<div class="row">
|
|
222
|
-
<div class="col-md-6" v-if="temp_row.f_subsidiary1_path">
|
|
223
|
-
<img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary1_path"></img-self>
|
|
224
|
-
</div>
|
|
225
|
-
<div class="col-md-6" v-if="temp_row.f_subsidiary2_path">
|
|
226
|
-
<img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary2_path"></img-self>
|
|
227
|
-
</div>
|
|
228
|
-
<div class="col-md-6" v-if="temp_row.f_subsidiary3_path">
|
|
229
|
-
<img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary3_path"></img-self>
|
|
230
|
-
</div>
|
|
231
|
-
</div>
|
|
232
|
-
</div>
|
|
233
|
-
</div>
|
|
234
|
-
<div slot="modal-footer" class="modal-footer">
|
|
235
|
-
<button type="button" name="button" class="btn btn-primary btn-photo" @click="img_show = false">确定</button>
|
|
236
|
-
</div>
|
|
237
|
-
</modal>
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
240
|
-
</template>
|
|
241
|
-
<script>
|
|
242
|
-
import FailureShow from '../pc/FailureShow'
|
|
243
|
-
import { HttpResetClass } from 'vue-client'
|
|
244
|
-
import Vue from 'vue'
|
|
245
|
-
import * as Util from "../Util";
|
|
246
|
-
// 工作类型对应的各项设置
|
|
247
|
-
const config = {
|
|
248
|
-
'报修单': {
|
|
249
|
-
path: 'getServiceMobile'
|
|
250
|
-
},
|
|
251
|
-
'置换通气单': {
|
|
252
|
-
path: 'getSubstitMobile'
|
|
253
|
-
},
|
|
254
|
-
'安装单': {
|
|
255
|
-
path: 'getInstallMobile'
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
export default{
|
|
259
|
-
title: '维修员平板首页',
|
|
260
|
-
data () {
|
|
261
|
-
return {
|
|
262
|
-
isDis:false,
|
|
263
|
-
img_show:false,
|
|
264
|
-
temp_row:{},
|
|
265
|
-
// 单条记录
|
|
266
|
-
sendbackmodel:{
|
|
267
|
-
f_service_id:'',
|
|
268
|
-
f_user_name:''
|
|
269
|
-
},
|
|
270
|
-
// 退回原因
|
|
271
|
-
f_site_back_reason:'',
|
|
272
|
-
model: {
|
|
273
|
-
serviceacitivity: [{
|
|
274
|
-
f_site_back_date: '',
|
|
275
|
-
f_site_back_name: '',
|
|
276
|
-
serviceid: '',
|
|
277
|
-
f_service_acitivity_type: '打回'
|
|
278
|
-
}
|
|
279
|
-
]
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
// rows: Object
|
|
283
|
-
rows: [{
|
|
284
|
-
f_user_name:'',
|
|
285
|
-
f_contact_phone:'',
|
|
286
|
-
failure:''
|
|
287
|
-
}],
|
|
288
|
-
editshow:false,
|
|
289
|
-
row:{
|
|
290
|
-
type:Object,
|
|
291
|
-
default:{
|
|
292
|
-
f_user_name:'',
|
|
293
|
-
f_contact_phone:'',
|
|
294
|
-
failure:''
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
repairtype:'',
|
|
298
|
-
username:'',
|
|
299
|
-
address:'',
|
|
300
|
-
f_userinfo_code:'',
|
|
301
|
-
moveshow:false,
|
|
302
|
-
repairers: [],
|
|
303
|
-
repairtypes:this.$appdata.getParam('报修类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('报修类型')]:[{label: '全部', value: ''}],
|
|
304
|
-
moveselected:'',
|
|
305
|
-
orderman:'',
|
|
306
|
-
number:0,
|
|
307
|
-
listData: {
|
|
308
|
-
list: [],
|
|
309
|
-
isEnd: true,
|
|
310
|
-
index: 0
|
|
311
|
-
},
|
|
312
|
-
loginUser:{
|
|
313
|
-
name:Vue.user.name,
|
|
314
|
-
ename:Vue.user.ename
|
|
315
|
-
},
|
|
316
|
-
infoone:'',
|
|
317
|
-
showinfo:false,
|
|
318
|
-
editflag:false,
|
|
319
|
-
information:'',
|
|
320
|
-
backservice:false,
|
|
321
|
-
// 结案是否显示
|
|
322
|
-
endshow:false,
|
|
323
|
-
//结案备注
|
|
324
|
-
f_caseremarks:'',
|
|
325
|
-
// 当前处理的工单
|
|
326
|
-
selectone:''
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
props: {
|
|
330
|
-
worktype:{
|
|
331
|
-
type:String,
|
|
332
|
-
default:'报修单'
|
|
333
|
-
},
|
|
334
|
-
sourcet:{
|
|
335
|
-
type:String,
|
|
336
|
-
default:'横屏'
|
|
337
|
-
},
|
|
338
|
-
tabname:{
|
|
339
|
-
type:String
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
methods: {
|
|
343
|
-
showSubsidiaryPath(row){
|
|
344
|
-
this.img_show = true
|
|
345
|
-
this.temp_row = row
|
|
346
|
-
},
|
|
347
|
-
// 结案确认
|
|
348
|
-
caseok(){
|
|
349
|
-
let info = {
|
|
350
|
-
id:this.selectone.id_back,
|
|
351
|
-
f_state : '',
|
|
352
|
-
f_processid: this.selectone.f_processid,
|
|
353
|
-
f_orderstatus:'无法处理'
|
|
354
|
-
}
|
|
355
|
-
// 工单结案操作
|
|
356
|
-
let data = {model: info, loginUser: {name: Vue.user.name, ename: Vue.user.ename},f_caseremarks:this.f_caseremarks}
|
|
357
|
-
let http = new HttpResetClass()
|
|
358
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/serviceCase`, data, {
|
|
359
|
-
resolveMsg: null,
|
|
360
|
-
rejectMsg: null
|
|
361
|
-
}).then(() => {
|
|
362
|
-
this.$showMessage('结案成功!')
|
|
363
|
-
this.f_caseremarks = ''
|
|
364
|
-
// 刷新界面
|
|
365
|
-
this.getNewOrder()
|
|
366
|
-
})
|
|
367
|
-
},
|
|
368
|
-
// 结案返回
|
|
369
|
-
caseclose(){
|
|
370
|
-
this.f_caseremarks = ''
|
|
371
|
-
this.editflag = null
|
|
372
|
-
},
|
|
373
|
-
showend(row){
|
|
374
|
-
this.selectone = row
|
|
375
|
-
this.endshow = true
|
|
376
|
-
},
|
|
377
|
-
WorkBack () {
|
|
378
|
-
this.isDis=true
|
|
379
|
-
this.model=this.sendbackmodel
|
|
380
|
-
this.model.serviceacitivity = [{
|
|
381
|
-
f_site_back_date: '',
|
|
382
|
-
f_site_back_name: '',
|
|
383
|
-
serviceid: '',
|
|
384
|
-
f_site_back_reason:this.f_site_back_reason,
|
|
385
|
-
f_service_acitivity_type: ''
|
|
386
|
-
}
|
|
387
|
-
]
|
|
388
|
-
if(!this.f_site_back_reason){
|
|
389
|
-
this.isDis=false
|
|
390
|
-
return this.$showMessage('请填写退回内容!')
|
|
391
|
-
}
|
|
392
|
-
let data = ''
|
|
393
|
-
data = {
|
|
394
|
-
model: this.model,
|
|
395
|
-
loginUser: {name: Vue.user.name, ename: Vue.user.name, id: Vue.user.id}
|
|
396
|
-
}
|
|
397
|
-
console.log("退回参数"+JSON.stringify(data))
|
|
398
|
-
let http = new HttpResetClass()
|
|
399
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/sendBack`, data, {resolveMsg: null, rejectMsg: null}).then(() => {
|
|
400
|
-
this.$showMessage('退回成功!!!')
|
|
401
|
-
this.isDis=false
|
|
402
|
-
this.f_site_back_reason = ''
|
|
403
|
-
this.editflag =false
|
|
404
|
-
this.getNewOrder()
|
|
405
|
-
})
|
|
406
|
-
},
|
|
407
|
-
WorkBackclose(){
|
|
408
|
-
this.editflag = false
|
|
409
|
-
},
|
|
410
|
-
//信息维护,需要在手机端显示,暂时没有显示的地方,后续需要增加,是否考虑先调用本地logic,信息给本地也存,这样本地才能看到
|
|
411
|
-
infoaddsure(){
|
|
412
|
-
if(!this.information){
|
|
413
|
-
return this.$showMessage('请填写维护内容!',['confirm'])
|
|
414
|
-
}
|
|
415
|
-
// 组装数据
|
|
416
|
-
var data = {
|
|
417
|
-
id :this.infoone.id_back,
|
|
418
|
-
f_processid:this.infoone.f_processid,
|
|
419
|
-
f_content:this.information,
|
|
420
|
-
serviceacitivity : [{}]
|
|
421
|
-
}
|
|
422
|
-
let http = new HttpResetClass()
|
|
423
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/telinformation`, {model: data, loginUser: this.loginUser,dotype:'mobile'}, {resolveMsg: null, rejectMsg: null}).then(() => {
|
|
424
|
-
this.$showMessage('维护内容添加成功!',['confirm'])
|
|
425
|
-
this.information = ''
|
|
426
|
-
this.showinfo =false
|
|
427
|
-
})
|
|
428
|
-
},
|
|
429
|
-
infoclose(){
|
|
430
|
-
this.showinfo = false
|
|
431
|
-
},
|
|
432
|
-
infoadd(val){
|
|
433
|
-
this.infoone =val
|
|
434
|
-
this.showinfo = true
|
|
435
|
-
},
|
|
436
|
-
repiarmancg(val){
|
|
437
|
-
this.orderman = val
|
|
438
|
-
},
|
|
439
|
-
movedo(){
|
|
440
|
-
if(this.orderman == undefined || this.orderman == '' ){
|
|
441
|
-
this.$showMessage(`请先选择接单人!`, ['confirm'])
|
|
442
|
-
return
|
|
443
|
-
}
|
|
444
|
-
//tag
|
|
445
|
-
//tag)
|
|
446
|
-
let result = this.$androidUtil.bzLogic('androidMoveService', {id_back: this.moveselected.id_back, f_reciever: this.orderman,f_remarks:this.moveselected.f_remarks,worktype:this.worktype})
|
|
447
|
-
if (result.result === '成功') {
|
|
448
|
-
this.$showMessage(`向 ${this.orderman} 转单成功!`, ['confirm'])
|
|
449
|
-
this.orderman = ''
|
|
450
|
-
this.moveselected = ''
|
|
451
|
-
this.moveshow = false
|
|
452
|
-
this.ifsearch()
|
|
453
|
-
} else {
|
|
454
|
-
this.$showMessage(`转单失败,请检查网络异常!`, ['confirm'])
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
},
|
|
458
|
-
undo(){
|
|
459
|
-
this.orderman = ''
|
|
460
|
-
this.moveselected = ''
|
|
461
|
-
this.moveshow = false
|
|
462
|
-
},
|
|
463
|
-
getEmp () {
|
|
464
|
-
// 获取接单人数组
|
|
465
|
-
let val = ''
|
|
466
|
-
var worktypew = this.worktype == '报修单' ? '维修员':this.worktype == '置换员'?'置换员':'安装员'
|
|
467
|
-
let http = new HttpResetClass()
|
|
468
|
-
//tag)
|
|
469
|
-
val = {source: `this.getParentByType($organization$).getChildByName($${worktypew}$).getUsers()`, userid: `${Vue.user.id}`}
|
|
470
|
-
// val = {source: `this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($${worktypew}$) != -1))`, userid: `${Vue.user.id}`}
|
|
471
|
-
// val = {source: `this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$) == $${worktypew}$))`, userid: `${Vue.user.id}`}
|
|
472
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
473
|
-
res.data.forEach((item) => {
|
|
474
|
-
this.repairers.push({label: `${item.name}`, value: item.name})
|
|
475
|
-
})
|
|
476
|
-
})
|
|
477
|
-
},
|
|
478
|
-
ifsearch(condition){
|
|
479
|
-
this.listData.list = []
|
|
480
|
-
this.listData.index = 0
|
|
481
|
-
this.listData.isEnd = true
|
|
482
|
-
if (!condition) {
|
|
483
|
-
condition = ''
|
|
484
|
-
}
|
|
485
|
-
condition = '1 = 1 ' + condition
|
|
486
|
-
if(this.username != ''){
|
|
487
|
-
condition += " and f_user_name like '%" + this.username + "%'"
|
|
488
|
-
}
|
|
489
|
-
if(this.address != ''){
|
|
490
|
-
condition += " and f_address like '%" + this.address + "%'"
|
|
491
|
-
}
|
|
492
|
-
if(this.f_userinfo_code != ''){
|
|
493
|
-
condition += " and f_userinfo_code = '" + this.f_userinfo_code + "'"
|
|
494
|
-
}
|
|
495
|
-
if(this.repairtype != ''){
|
|
496
|
-
condition += " and f_repairtype = '换表'"
|
|
497
|
-
}
|
|
498
|
-
//tag
|
|
499
|
-
//tag
|
|
500
|
-
// 测试环境异步,真实环境同步
|
|
501
|
-
if (this.$androidUtil.isTest) {
|
|
502
|
-
return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
|
|
503
|
-
this.rows = ret.data
|
|
504
|
-
})
|
|
505
|
-
} else {
|
|
506
|
-
let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
|
|
507
|
-
if (result.code === 200) {
|
|
508
|
-
this.rows = result.data
|
|
509
|
-
} else {
|
|
510
|
-
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
this.showMore()
|
|
514
|
-
},
|
|
515
|
-
selected (row) {
|
|
516
|
-
var prpdata = {
|
|
517
|
-
_this:this,
|
|
518
|
-
title:'入户换表',
|
|
519
|
-
safe:true
|
|
520
|
-
}
|
|
521
|
-
this.$dispatch('gotoson',prpdata)
|
|
522
|
-
this.$goto('repair-orderT', {row: row,worktype:this.worktype},'self',this.ifsearch)
|
|
523
|
-
},
|
|
524
|
-
sendback(row){
|
|
525
|
-
this.$showMessage('退回后数据不可恢复,确认退回操作吗?', ['confirm', 'cancel'],{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
526
|
-
if (res === 'confirm') {
|
|
527
|
-
this.editflag = true
|
|
528
|
-
this.sendbackmodel = row
|
|
529
|
-
console.log("需要的参数"+JSON.stringify( this.sendbackmodel))
|
|
530
|
-
}else {
|
|
531
|
-
this.editflag = false
|
|
532
|
-
}
|
|
533
|
-
})
|
|
534
|
-
},
|
|
535
|
-
moveservice(row){
|
|
536
|
-
this.moveselected = row
|
|
537
|
-
this.moveshow = true
|
|
538
|
-
},
|
|
539
|
-
delayedit (row) {
|
|
540
|
-
row.state = '延期申请'
|
|
541
|
-
this.$goto('delay-apply', {row:row})
|
|
542
|
-
},
|
|
543
|
-
search () {
|
|
544
|
-
// 测试环境异步,真实环境同步
|
|
545
|
-
var condition = '1 = 1'
|
|
546
|
-
//tag
|
|
547
|
-
if (this.$androidUtil.isTest) {
|
|
548
|
-
return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
|
|
549
|
-
// ret.data.forEach((item) => {
|
|
550
|
-
// item.service_version = item.failure.indexOf("漏气") !== -1
|
|
551
|
-
// })
|
|
552
|
-
this.rows = ret.data
|
|
553
|
-
})
|
|
554
|
-
} else {
|
|
555
|
-
let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
|
|
556
|
-
if (result.code === 200) {
|
|
557
|
-
//tag)
|
|
558
|
-
this.rows = result.data
|
|
559
|
-
} else {
|
|
560
|
-
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
},
|
|
564
|
-
sumsearch () {
|
|
565
|
-
// 测试环境异步,真实环境同步
|
|
566
|
-
var condition = '1 = 1'
|
|
567
|
-
//tag
|
|
568
|
-
if (this.$androidUtil.isTest) {
|
|
569
|
-
return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
|
|
570
|
-
// ret.data.forEach((item) => {
|
|
571
|
-
// item.service_version = item.failure.indexOf("漏气") !== -1
|
|
572
|
-
// })
|
|
573
|
-
var titdata = {
|
|
574
|
-
title:this.tabname,
|
|
575
|
-
sum:ret.data.length
|
|
576
|
-
}
|
|
577
|
-
//tag
|
|
578
|
-
//tag)
|
|
579
|
-
this.$emit('changesum',titdata)
|
|
580
|
-
})
|
|
581
|
-
} else {
|
|
582
|
-
let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
|
|
583
|
-
if (result.code === 200) {
|
|
584
|
-
//tag)
|
|
585
|
-
var crv = {
|
|
586
|
-
title:this.tabname,
|
|
587
|
-
sum:result.data.length
|
|
588
|
-
}
|
|
589
|
-
//tag
|
|
590
|
-
//tag)
|
|
591
|
-
this.$emit('changesum',crv)
|
|
592
|
-
} else {
|
|
593
|
-
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
},
|
|
597
|
-
makeAPhoneCall(phoneNumber) {
|
|
598
|
-
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
599
|
-
},
|
|
600
|
-
upload () {
|
|
601
|
-
this.$goto('up-load')
|
|
602
|
-
},
|
|
603
|
-
back () {
|
|
604
|
-
this.$back()
|
|
605
|
-
},
|
|
606
|
-
getNewOrder(){
|
|
607
|
-
HostApp.__this__ = this
|
|
608
|
-
HostApp.logicWithHint({
|
|
609
|
-
// logic别名,key必须为logic
|
|
610
|
-
'logic': 'TelServiceTimeOut',
|
|
611
|
-
// 回调执行方法名,key必须为callback
|
|
612
|
-
'callback': 'javascript:HostApp.__this__.getNewCallBack()',
|
|
613
|
-
// logic执行需要的业务参数
|
|
614
|
-
'data': {params: ''},
|
|
615
|
-
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
|
616
|
-
// 执行回调方法传入key为backresult
|
|
617
|
-
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
|
618
|
-
'backresult': 1
|
|
619
|
-
})
|
|
620
|
-
},
|
|
621
|
-
getNewCallBack(obj){
|
|
622
|
-
//tag)
|
|
623
|
-
this.ifsearch()
|
|
624
|
-
},
|
|
625
|
-
showMore() {
|
|
626
|
-
if (!this.rows) {
|
|
627
|
-
return
|
|
628
|
-
}
|
|
629
|
-
let endIndex = this.listData.index + 10
|
|
630
|
-
if (endIndex > this.rows.length) {
|
|
631
|
-
endIndex = this.rows.length
|
|
632
|
-
}
|
|
633
|
-
for (; this.listData.index < endIndex; this.listData.index++) {
|
|
634
|
-
this.listData.list.push(this.rows[this.listData.index])
|
|
635
|
-
}
|
|
636
|
-
if(this.listData.index == this.rows.length){
|
|
637
|
-
this.listData.isEnd = true
|
|
638
|
-
}else {
|
|
639
|
-
this.listData.isEnd = false
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
ready () {
|
|
644
|
-
let backservices
|
|
645
|
-
backservices=this.$appdata.getSingleValue('维修转单')
|
|
646
|
-
console.log("参数为:::"+backservices)
|
|
647
|
-
if(backservices==='true'||backservices===''){
|
|
648
|
-
this.backservice = '否'
|
|
649
|
-
}else {
|
|
650
|
-
this.backservice = '是'
|
|
651
|
-
}
|
|
652
|
-
this.getEmp()
|
|
653
|
-
this.ifsearch()
|
|
654
|
-
// var _this = this;
|
|
655
|
-
// this.timeoutHandle = window.setInterval(function() {
|
|
656
|
-
// _this.sumsearch()
|
|
657
|
-
// }, 6000)
|
|
658
|
-
},
|
|
659
|
-
components: {
|
|
660
|
-
FailureShow,
|
|
661
|
-
'failure-show': FailureShow
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
</script>
|
|
665
|
-
<style scoped>
|
|
666
|
-
.searBtn {
|
|
667
|
-
background: #FFFFFF;
|
|
668
|
-
color: #0096fb;
|
|
669
|
-
border: 1px solid #0096fb;
|
|
670
|
-
border-radius: 5px;
|
|
671
|
-
padding: 8px;
|
|
672
|
-
text-align: center;
|
|
673
|
-
font-size: 1.2em;
|
|
674
|
-
z-index: 10;
|
|
675
|
-
opacity:0.5;
|
|
676
|
-
bottom: 50px;
|
|
677
|
-
margin-top: -10px;
|
|
678
|
-
height: 40px;
|
|
679
|
-
}
|
|
680
|
-
.bg {
|
|
681
|
-
background-color: #499edf;
|
|
682
|
-
height: 1px;
|
|
683
|
-
border: 0;
|
|
684
|
-
}
|
|
685
|
-
.app-row {
|
|
686
|
-
background-color: white;
|
|
687
|
-
padding: 10px 10px 0 10px;
|
|
688
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
689
|
-
}
|
|
690
|
-
.search_input {
|
|
691
|
-
border: 0;
|
|
692
|
-
outline: none;
|
|
693
|
-
}
|
|
694
|
-
.font{
|
|
695
|
-
font: 15px PingFang-SC-Medium;
|
|
696
|
-
color: #666666;
|
|
697
|
-
}
|
|
698
|
-
.input-font{
|
|
699
|
-
font: 15px PingFang-SC-Medium;
|
|
700
|
-
color: #333333;
|
|
701
|
-
}
|
|
702
|
-
.btn-font{
|
|
703
|
-
font:600 16px PingFang-SC-Bold;
|
|
704
|
-
color: #499EDF;
|
|
705
|
-
}
|
|
706
|
-
.btn-color{
|
|
707
|
-
background-color: #FFFFFF;
|
|
708
|
-
border-radius: 10px ;
|
|
709
|
-
border: 1px solid #499EDF;
|
|
710
|
-
}
|
|
711
|
-
.panel-blue-border {
|
|
712
|
-
border: 1px solid #499edf;
|
|
713
|
-
border-radius: 5px;
|
|
714
|
-
}
|
|
715
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="height: auto;width: 100%" class="repair-bg">
|
|
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
|
+
</p>
|
|
9
|
+
</blockquote>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<div>
|
|
13
|
+
<form>
|
|
14
|
+
<!-- 查询条件-->
|
|
15
|
+
<div class="row app-row">
|
|
16
|
+
<div class="col-xs-4">
|
|
17
|
+
<img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
18
|
+
<label class="font text-left">用户姓名:</label>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-xs-8" >
|
|
21
|
+
<input type="text" v-model="username" placeholder='用户姓名'
|
|
22
|
+
class="search_input input-font" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="row app-row">
|
|
26
|
+
<div class="col-xs-4">
|
|
27
|
+
<img src="../../assets/用户姓名-蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
28
|
+
<label class="font text-left">用户编号:</label>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-xs-8" >
|
|
31
|
+
<input type="text" v-model="f_userinfo_code" placeholder='用户编号'
|
|
32
|
+
class="search_input input-font" />
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="row app-row">
|
|
36
|
+
<div class="col-xs-4">
|
|
37
|
+
<img src="../../assets/小区蓝色.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
38
|
+
<label class="font text-left">用户地址:</label>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-xs-8" >
|
|
41
|
+
<input type="text" class="search_input input-font"
|
|
42
|
+
v-model="address" placeholder='用户地址' />
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<!-- 分割按钮和条件的高度 -->
|
|
46
|
+
<div class="row app-row" style="height: 10px;"></div>
|
|
47
|
+
<!-- 按钮 -->
|
|
48
|
+
<div class="row text-center app-row">
|
|
49
|
+
<button type="button" class="btn btn-lg btn-font btn-color" @click="ifsearch('')" style="min-width: 25%;">查询</button>
|
|
50
|
+
<button type="button" class="btn btn-lg btn-font btn-color" @click='ifsearch(" and f_orderstatus!=null ")' style="min-width: 25%;">查询临时保存</button>
|
|
51
|
+
<img style="float: right;margin-right: 3%;margin-top: -4px " @click="getNewOrder" src="../../assets/shuaxindaiban1.png">
|
|
52
|
+
</div>
|
|
53
|
+
<div style="height:30px;" class="app-row"></div>
|
|
54
|
+
</form>
|
|
55
|
+
</div>
|
|
56
|
+
<!-- 列表 -->
|
|
57
|
+
<div class="panel panel-default repair-info-content auto">
|
|
58
|
+
<div class="panel-body">
|
|
59
|
+
<div class="panel panel-default well panel-blue-border" :class="row.failure.indexOf('漏气') !== -1 ? 'class-a':''" v-for="row in listData.list" >
|
|
60
|
+
<div class="panel-body" style="padding: 10px">
|
|
61
|
+
<div class="row form-group">
|
|
62
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
63
|
+
<div class="row" >
|
|
64
|
+
<span v-if="row.state==='延期申请'" style="color: darkred">该工单已提交延期处理请勿操作</span>
|
|
65
|
+
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
66
|
+
工单编号: {{row.f_service_id}}<span v-if="row.f_remindersign">(催单 {{row.f_reminderdata}}) </span>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
69
|
+
派发时间: {{row.f_created_date}}
|
|
70
|
+
</div>
|
|
71
|
+
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '置换通气单'||worktype == '安装单'">
|
|
72
|
+
预约时间: {{row.f_yuyue_date}}
|
|
73
|
+
</div>
|
|
74
|
+
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '安装单'">
|
|
75
|
+
预约时间: {{row.f_yuyue_date}}
|
|
76
|
+
</div>
|
|
77
|
+
<!--<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">-->
|
|
78
|
+
<!--报修类型: {{row.f_servicerepair_type}}-->
|
|
79
|
+
<!--</div>-->
|
|
80
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
|
|
81
|
+
维修类型: {{row.f_repairtype}}
|
|
82
|
+
</div>
|
|
83
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_userinfo_code">
|
|
84
|
+
用户编号: {{row.f_userinfo_code}}
|
|
85
|
+
</div>
|
|
86
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_enter_number">
|
|
87
|
+
用户证号: {{row.f_enter_number}}
|
|
88
|
+
</div>
|
|
89
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
90
|
+
用户姓名: {{row.f_user_name}}
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
93
|
+
来电电话: {{row.f_phone}}
|
|
94
|
+
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
97
|
+
联系电话: {{row.f_contact_phone}}
|
|
98
|
+
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_contact_phone)'>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
101
|
+
用户地址: {{row.f_address}}
|
|
102
|
+
</div>
|
|
103
|
+
<div v-show="row.f_advice" class="col-sm-12 col-xs-12 col-md-12" v-if="worktype == '报修单'">
|
|
104
|
+
指导建议: {{row.f_advice}}
|
|
105
|
+
</div>
|
|
106
|
+
<div v-show="row.f_remarks" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
107
|
+
备注信息: {{row.f_remarks}}
|
|
108
|
+
</div>
|
|
109
|
+
<div v-show="row.f_yuyue_date" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_yuyue_date !=null">
|
|
110
|
+
预约时间: {{row.f_yuyue_date}}
|
|
111
|
+
</div>
|
|
112
|
+
<div v-show="row.f_subsidiary1_path" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" >
|
|
113
|
+
附件查看:
|
|
114
|
+
<button type="button" name="button" class="btn btn-primary btn-sm" @click="showSubsidiaryPath(row)">查看</button>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
|
|
117
|
+
<failure-show :value='row.failure'>
|
|
118
|
+
</failure-show>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
123
|
+
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="selected(row)">处理</button>
|
|
124
|
+
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right;margin-right:10px;" @click="sendback(row)">退回</button>
|
|
125
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="moveservice(row)">转单</button>
|
|
126
|
+
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right;margin-right:10px;" v-if="false" @click="infoadd(row)">信息维护</button>
|
|
127
|
+
<button type="button" name="button" class="btn btn-primary btn-sm" v-if="false"
|
|
128
|
+
style="float: right;margin-right:10px;" @click="showend(row)">无法处理
|
|
129
|
+
</button>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
<div style="height:auto;width: 100%;text-align: center">
|
|
135
|
+
<a v-if="!listData.isEnd" @click="showMore()">展开更多......</a>
|
|
136
|
+
<span v-if="listData.isEnd">到底了......</span>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
<modal :show.sync="moveshow" v-ref:modal :backdrop="false">
|
|
140
|
+
<div slot="modal-header" class="modal-header">
|
|
141
|
+
<h4 class="modal-title">
|
|
142
|
+
转单
|
|
143
|
+
</h4>
|
|
144
|
+
</div>
|
|
145
|
+
<div slot="modal-body" class="modal-body">
|
|
146
|
+
<div class="row" style="margin-top: 6px">
|
|
147
|
+
<label class="col-xs-4 col-md-4 control-label font text-left">接单人</label>
|
|
148
|
+
<div class="col-xs-8">
|
|
149
|
+
<v-select :value="orderman" :value-single="true"
|
|
150
|
+
:options='repairers' placeholder='请选择接单人'
|
|
151
|
+
close-on-select v-on:change="repiarmancg"></v-select>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
<div class="row" style="margin-top: 6px">
|
|
155
|
+
<label class="control-label font text-left col-md-4 col-xs-4">备注</label>
|
|
156
|
+
<div class="col-xs-8 col-md-8">
|
|
157
|
+
<input type="text" v-model="moveselected.f_remarks"/>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
<div slot="modal-footer" class="modal-footer">
|
|
162
|
+
<button type="button" class="btn btn-default" @click="movedo()">确定</button>
|
|
163
|
+
<button type="button" class="btn btn-default" @click="undo()">取消</button>
|
|
164
|
+
</div>
|
|
165
|
+
</modal>
|
|
166
|
+
<modal :show.sync="showinfo" v-ref:infomodal :backdrop="false">
|
|
167
|
+
<div slot="modal-header" class="modal-header">
|
|
168
|
+
<h4 class="modal-title">
|
|
169
|
+
工单信息维护
|
|
170
|
+
</h4>
|
|
171
|
+
</div>
|
|
172
|
+
<div slot="modal-body" class="modal-body">
|
|
173
|
+
<div class="row" style="margin-top: 6px">
|
|
174
|
+
<label class="control-label font text-left col-md-4 col-xs-4">维护内容</label>
|
|
175
|
+
<div class="col-xs-8 col-md-8">
|
|
176
|
+
<input type="text" v-model="information"/>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
<div slot="modal-footer" class="modal-footer">
|
|
181
|
+
<button type="button" class="btn btn-default" @click="infoaddsure()">确定</button>
|
|
182
|
+
<button type="button" class="btn btn-default" @click="infoclose()">取消</button>
|
|
183
|
+
</div>
|
|
184
|
+
</modal>
|
|
185
|
+
<modal :show.sync="editflag" v-ref:infomodal :backdrop="false">
|
|
186
|
+
<div slot="modal-header" class="modal-header">
|
|
187
|
+
<h4 class="modal-title">
|
|
188
|
+
工单退回
|
|
189
|
+
</h4>
|
|
190
|
+
</div>
|
|
191
|
+
<div slot="modal-body" class="modal-body">
|
|
192
|
+
<div class="row" style="margin-top: 6px">
|
|
193
|
+
<label class="col-xs-4 col-md-4 control-label font text-left">工单编号:</label>
|
|
194
|
+
<span>{{ sendbackmodel.f_service_id }}</span>
|
|
195
|
+
</div>
|
|
196
|
+
<div class="row" style="margin-top: 6px">
|
|
197
|
+
<label class="col-xs-4 col-md-4 control-label font text-left">客户名称:</label>
|
|
198
|
+
<span>{{ sendbackmodel.f_user_name }}</span>
|
|
199
|
+
</div>
|
|
200
|
+
<div class="row" style="margin-top: 6px">
|
|
201
|
+
<label class="control-label font text-left col-md-4 col-xs-4">退回原因</label>
|
|
202
|
+
<div class="col-xs-8 col-md-8">
|
|
203
|
+
<textarea style="width: 60%" name="name" rows="1" class="ver-textarea" type="text" v-model='f_site_back_reason'></textarea>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
</div>
|
|
208
|
+
<div slot="modal-footer" class="modal-footer">
|
|
209
|
+
<button :disabled="isDis" type="button" name="button" class="btn btn-primary btn-photo" @click="WorkBack()">确定</button>
|
|
210
|
+
<button type="button" class="btn btn-default" @click="WorkBackclose()">取消</button>
|
|
211
|
+
</div>
|
|
212
|
+
</modal>
|
|
213
|
+
<modal :show.sync="img_show" v-ref:infomodal :backdrop="false">
|
|
214
|
+
<div slot="modal-header" class="modal-header">
|
|
215
|
+
<h4 class="modal-title">
|
|
216
|
+
附件查看
|
|
217
|
+
</h4>
|
|
218
|
+
</div>
|
|
219
|
+
<div slot="modal-body" class="modal-body">
|
|
220
|
+
<div class="from-group">
|
|
221
|
+
<div class="row">
|
|
222
|
+
<div class="col-md-6" v-if="temp_row.f_subsidiary1_path">
|
|
223
|
+
<img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary1_path"></img-self>
|
|
224
|
+
</div>
|
|
225
|
+
<div class="col-md-6" v-if="temp_row.f_subsidiary2_path">
|
|
226
|
+
<img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary2_path"></img-self>
|
|
227
|
+
</div>
|
|
228
|
+
<div class="col-md-6" v-if="temp_row.f_subsidiary3_path">
|
|
229
|
+
<img-self :width="300" :height="400" alt="无照片!!!" :src="'rs/image/file/'+temp_row.f_subsidiary3_path"></img-self>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
<div slot="modal-footer" class="modal-footer">
|
|
235
|
+
<button type="button" name="button" class="btn btn-primary btn-photo" @click="img_show = false">确定</button>
|
|
236
|
+
</div>
|
|
237
|
+
</modal>
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
</template>
|
|
241
|
+
<script>
|
|
242
|
+
import FailureShow from '../pc/FailureShow'
|
|
243
|
+
import { HttpResetClass } from 'vue-client'
|
|
244
|
+
import Vue from 'vue'
|
|
245
|
+
import * as Util from "../Util";
|
|
246
|
+
// 工作类型对应的各项设置
|
|
247
|
+
const config = {
|
|
248
|
+
'报修单': {
|
|
249
|
+
path: 'getServiceMobile'
|
|
250
|
+
},
|
|
251
|
+
'置换通气单': {
|
|
252
|
+
path: 'getSubstitMobile'
|
|
253
|
+
},
|
|
254
|
+
'安装单': {
|
|
255
|
+
path: 'getInstallMobile'
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
export default{
|
|
259
|
+
title: '维修员平板首页',
|
|
260
|
+
data () {
|
|
261
|
+
return {
|
|
262
|
+
isDis:false,
|
|
263
|
+
img_show:false,
|
|
264
|
+
temp_row:{},
|
|
265
|
+
// 单条记录
|
|
266
|
+
sendbackmodel:{
|
|
267
|
+
f_service_id:'',
|
|
268
|
+
f_user_name:''
|
|
269
|
+
},
|
|
270
|
+
// 退回原因
|
|
271
|
+
f_site_back_reason:'',
|
|
272
|
+
model: {
|
|
273
|
+
serviceacitivity: [{
|
|
274
|
+
f_site_back_date: '',
|
|
275
|
+
f_site_back_name: '',
|
|
276
|
+
serviceid: '',
|
|
277
|
+
f_service_acitivity_type: '打回'
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
|
|
282
|
+
// rows: Object
|
|
283
|
+
rows: [{
|
|
284
|
+
f_user_name:'',
|
|
285
|
+
f_contact_phone:'',
|
|
286
|
+
failure:''
|
|
287
|
+
}],
|
|
288
|
+
editshow:false,
|
|
289
|
+
row:{
|
|
290
|
+
type:Object,
|
|
291
|
+
default:{
|
|
292
|
+
f_user_name:'',
|
|
293
|
+
f_contact_phone:'',
|
|
294
|
+
failure:''
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
repairtype:'',
|
|
298
|
+
username:'',
|
|
299
|
+
address:'',
|
|
300
|
+
f_userinfo_code:'',
|
|
301
|
+
moveshow:false,
|
|
302
|
+
repairers: [],
|
|
303
|
+
repairtypes:this.$appdata.getParam('报修类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('报修类型')]:[{label: '全部', value: ''}],
|
|
304
|
+
moveselected:'',
|
|
305
|
+
orderman:'',
|
|
306
|
+
number:0,
|
|
307
|
+
listData: {
|
|
308
|
+
list: [],
|
|
309
|
+
isEnd: true,
|
|
310
|
+
index: 0
|
|
311
|
+
},
|
|
312
|
+
loginUser:{
|
|
313
|
+
name:Vue.user.name,
|
|
314
|
+
ename:Vue.user.ename
|
|
315
|
+
},
|
|
316
|
+
infoone:'',
|
|
317
|
+
showinfo:false,
|
|
318
|
+
editflag:false,
|
|
319
|
+
information:'',
|
|
320
|
+
backservice:false,
|
|
321
|
+
// 结案是否显示
|
|
322
|
+
endshow:false,
|
|
323
|
+
//结案备注
|
|
324
|
+
f_caseremarks:'',
|
|
325
|
+
// 当前处理的工单
|
|
326
|
+
selectone:''
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
props: {
|
|
330
|
+
worktype:{
|
|
331
|
+
type:String,
|
|
332
|
+
default:'报修单'
|
|
333
|
+
},
|
|
334
|
+
sourcet:{
|
|
335
|
+
type:String,
|
|
336
|
+
default:'横屏'
|
|
337
|
+
},
|
|
338
|
+
tabname:{
|
|
339
|
+
type:String
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
methods: {
|
|
343
|
+
showSubsidiaryPath(row){
|
|
344
|
+
this.img_show = true
|
|
345
|
+
this.temp_row = row
|
|
346
|
+
},
|
|
347
|
+
// 结案确认
|
|
348
|
+
caseok(){
|
|
349
|
+
let info = {
|
|
350
|
+
id:this.selectone.id_back,
|
|
351
|
+
f_state : '',
|
|
352
|
+
f_processid: this.selectone.f_processid,
|
|
353
|
+
f_orderstatus:'无法处理'
|
|
354
|
+
}
|
|
355
|
+
// 工单结案操作
|
|
356
|
+
let data = {model: info, loginUser: {name: Vue.user.name, ename: Vue.user.ename},f_caseremarks:this.f_caseremarks}
|
|
357
|
+
let http = new HttpResetClass()
|
|
358
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/serviceCase`, data, {
|
|
359
|
+
resolveMsg: null,
|
|
360
|
+
rejectMsg: null
|
|
361
|
+
}).then(() => {
|
|
362
|
+
this.$showMessage('结案成功!')
|
|
363
|
+
this.f_caseremarks = ''
|
|
364
|
+
// 刷新界面
|
|
365
|
+
this.getNewOrder()
|
|
366
|
+
})
|
|
367
|
+
},
|
|
368
|
+
// 结案返回
|
|
369
|
+
caseclose(){
|
|
370
|
+
this.f_caseremarks = ''
|
|
371
|
+
this.editflag = null
|
|
372
|
+
},
|
|
373
|
+
showend(row){
|
|
374
|
+
this.selectone = row
|
|
375
|
+
this.endshow = true
|
|
376
|
+
},
|
|
377
|
+
WorkBack () {
|
|
378
|
+
this.isDis=true
|
|
379
|
+
this.model=this.sendbackmodel
|
|
380
|
+
this.model.serviceacitivity = [{
|
|
381
|
+
f_site_back_date: '',
|
|
382
|
+
f_site_back_name: '',
|
|
383
|
+
serviceid: '',
|
|
384
|
+
f_site_back_reason:this.f_site_back_reason,
|
|
385
|
+
f_service_acitivity_type: ''
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
if(!this.f_site_back_reason){
|
|
389
|
+
this.isDis=false
|
|
390
|
+
return this.$showMessage('请填写退回内容!')
|
|
391
|
+
}
|
|
392
|
+
let data = ''
|
|
393
|
+
data = {
|
|
394
|
+
model: this.model,
|
|
395
|
+
loginUser: {name: Vue.user.name, ename: Vue.user.name, id: Vue.user.id}
|
|
396
|
+
}
|
|
397
|
+
console.log("退回参数"+JSON.stringify(data))
|
|
398
|
+
let http = new HttpResetClass()
|
|
399
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/sendBack`, data, {resolveMsg: null, rejectMsg: null}).then(() => {
|
|
400
|
+
this.$showMessage('退回成功!!!')
|
|
401
|
+
this.isDis=false
|
|
402
|
+
this.f_site_back_reason = ''
|
|
403
|
+
this.editflag =false
|
|
404
|
+
this.getNewOrder()
|
|
405
|
+
})
|
|
406
|
+
},
|
|
407
|
+
WorkBackclose(){
|
|
408
|
+
this.editflag = false
|
|
409
|
+
},
|
|
410
|
+
//信息维护,需要在手机端显示,暂时没有显示的地方,后续需要增加,是否考虑先调用本地logic,信息给本地也存,这样本地才能看到
|
|
411
|
+
infoaddsure(){
|
|
412
|
+
if(!this.information){
|
|
413
|
+
return this.$showMessage('请填写维护内容!',['confirm'])
|
|
414
|
+
}
|
|
415
|
+
// 组装数据
|
|
416
|
+
var data = {
|
|
417
|
+
id :this.infoone.id_back,
|
|
418
|
+
f_processid:this.infoone.f_processid,
|
|
419
|
+
f_content:this.information,
|
|
420
|
+
serviceacitivity : [{}]
|
|
421
|
+
}
|
|
422
|
+
let http = new HttpResetClass()
|
|
423
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/logic/telinformation`, {model: data, loginUser: this.loginUser,dotype:'mobile'}, {resolveMsg: null, rejectMsg: null}).then(() => {
|
|
424
|
+
this.$showMessage('维护内容添加成功!',['confirm'])
|
|
425
|
+
this.information = ''
|
|
426
|
+
this.showinfo =false
|
|
427
|
+
})
|
|
428
|
+
},
|
|
429
|
+
infoclose(){
|
|
430
|
+
this.showinfo = false
|
|
431
|
+
},
|
|
432
|
+
infoadd(val){
|
|
433
|
+
this.infoone =val
|
|
434
|
+
this.showinfo = true
|
|
435
|
+
},
|
|
436
|
+
repiarmancg(val){
|
|
437
|
+
this.orderman = val
|
|
438
|
+
},
|
|
439
|
+
movedo(){
|
|
440
|
+
if(this.orderman == undefined || this.orderman == '' ){
|
|
441
|
+
this.$showMessage(`请先选择接单人!`, ['confirm'])
|
|
442
|
+
return
|
|
443
|
+
}
|
|
444
|
+
//tag
|
|
445
|
+
//tag)
|
|
446
|
+
let result = this.$androidUtil.bzLogic('androidMoveService', {id_back: this.moveselected.id_back, f_reciever: this.orderman,f_remarks:this.moveselected.f_remarks,worktype:this.worktype})
|
|
447
|
+
if (result.result === '成功') {
|
|
448
|
+
this.$showMessage(`向 ${this.orderman} 转单成功!`, ['confirm'])
|
|
449
|
+
this.orderman = ''
|
|
450
|
+
this.moveselected = ''
|
|
451
|
+
this.moveshow = false
|
|
452
|
+
this.ifsearch()
|
|
453
|
+
} else {
|
|
454
|
+
this.$showMessage(`转单失败,请检查网络异常!`, ['confirm'])
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
},
|
|
458
|
+
undo(){
|
|
459
|
+
this.orderman = ''
|
|
460
|
+
this.moveselected = ''
|
|
461
|
+
this.moveshow = false
|
|
462
|
+
},
|
|
463
|
+
getEmp () {
|
|
464
|
+
// 获取接单人数组
|
|
465
|
+
let val = ''
|
|
466
|
+
var worktypew = this.worktype == '报修单' ? '维修员':this.worktype == '置换员'?'置换员':'安装员'
|
|
467
|
+
let http = new HttpResetClass()
|
|
468
|
+
//tag)
|
|
469
|
+
val = {source: `this.getParentByType($organization$).getChildByName($${worktypew}$).getUsers()`, userid: `${Vue.user.id}`}
|
|
470
|
+
// val = {source: `this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($${worktypew}$) != -1))`, userid: `${Vue.user.id}`}
|
|
471
|
+
// val = {source: `this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$) == $${worktypew}$))`, userid: `${Vue.user.id}`}
|
|
472
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
473
|
+
res.data.forEach((item) => {
|
|
474
|
+
this.repairers.push({label: `${item.name}`, value: item.name})
|
|
475
|
+
})
|
|
476
|
+
})
|
|
477
|
+
},
|
|
478
|
+
ifsearch(condition){
|
|
479
|
+
this.listData.list = []
|
|
480
|
+
this.listData.index = 0
|
|
481
|
+
this.listData.isEnd = true
|
|
482
|
+
if (!condition) {
|
|
483
|
+
condition = ''
|
|
484
|
+
}
|
|
485
|
+
condition = '1 = 1 ' + condition
|
|
486
|
+
if(this.username != ''){
|
|
487
|
+
condition += " and f_user_name like '%" + this.username + "%'"
|
|
488
|
+
}
|
|
489
|
+
if(this.address != ''){
|
|
490
|
+
condition += " and f_address like '%" + this.address + "%'"
|
|
491
|
+
}
|
|
492
|
+
if(this.f_userinfo_code != ''){
|
|
493
|
+
condition += " and f_userinfo_code = '" + this.f_userinfo_code + "'"
|
|
494
|
+
}
|
|
495
|
+
if(this.repairtype != ''){
|
|
496
|
+
condition += " and f_repairtype = '换表'"
|
|
497
|
+
}
|
|
498
|
+
//tag
|
|
499
|
+
//tag
|
|
500
|
+
// 测试环境异步,真实环境同步
|
|
501
|
+
if (this.$androidUtil.isTest) {
|
|
502
|
+
return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
|
|
503
|
+
this.rows = ret.data
|
|
504
|
+
})
|
|
505
|
+
} else {
|
|
506
|
+
let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
|
|
507
|
+
if (result.code === 200) {
|
|
508
|
+
this.rows = result.data
|
|
509
|
+
} else {
|
|
510
|
+
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
this.showMore()
|
|
514
|
+
},
|
|
515
|
+
selected (row) {
|
|
516
|
+
var prpdata = {
|
|
517
|
+
_this:this,
|
|
518
|
+
title:'入户换表',
|
|
519
|
+
safe:true
|
|
520
|
+
}
|
|
521
|
+
this.$dispatch('gotoson',prpdata)
|
|
522
|
+
this.$goto('repair-orderT', {row: row,worktype:this.worktype},'self',this.ifsearch)
|
|
523
|
+
},
|
|
524
|
+
sendback(row){
|
|
525
|
+
this.$showMessage('退回后数据不可恢复,确认退回操作吗?', ['confirm', 'cancel'],{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
526
|
+
if (res === 'confirm') {
|
|
527
|
+
this.editflag = true
|
|
528
|
+
this.sendbackmodel = row
|
|
529
|
+
console.log("需要的参数"+JSON.stringify( this.sendbackmodel))
|
|
530
|
+
}else {
|
|
531
|
+
this.editflag = false
|
|
532
|
+
}
|
|
533
|
+
})
|
|
534
|
+
},
|
|
535
|
+
moveservice(row){
|
|
536
|
+
this.moveselected = row
|
|
537
|
+
this.moveshow = true
|
|
538
|
+
},
|
|
539
|
+
delayedit (row) {
|
|
540
|
+
row.state = '延期申请'
|
|
541
|
+
this.$goto('delay-apply', {row:row})
|
|
542
|
+
},
|
|
543
|
+
search () {
|
|
544
|
+
// 测试环境异步,真实环境同步
|
|
545
|
+
var condition = '1 = 1'
|
|
546
|
+
//tag
|
|
547
|
+
if (this.$androidUtil.isTest) {
|
|
548
|
+
return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
|
|
549
|
+
// ret.data.forEach((item) => {
|
|
550
|
+
// item.service_version = item.failure.indexOf("漏气") !== -1
|
|
551
|
+
// })
|
|
552
|
+
this.rows = ret.data
|
|
553
|
+
})
|
|
554
|
+
} else {
|
|
555
|
+
let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
|
|
556
|
+
if (result.code === 200) {
|
|
557
|
+
//tag)
|
|
558
|
+
this.rows = result.data
|
|
559
|
+
} else {
|
|
560
|
+
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
sumsearch () {
|
|
565
|
+
// 测试环境异步,真实环境同步
|
|
566
|
+
var condition = '1 = 1'
|
|
567
|
+
//tag
|
|
568
|
+
if (this.$androidUtil.isTest) {
|
|
569
|
+
return this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}}).then((ret) => {
|
|
570
|
+
// ret.data.forEach((item) => {
|
|
571
|
+
// item.service_version = item.failure.indexOf("漏气") !== -1
|
|
572
|
+
// })
|
|
573
|
+
var titdata = {
|
|
574
|
+
title:this.tabname,
|
|
575
|
+
sum:ret.data.length
|
|
576
|
+
}
|
|
577
|
+
//tag
|
|
578
|
+
//tag)
|
|
579
|
+
this.$emit('changesum',titdata)
|
|
580
|
+
})
|
|
581
|
+
} else {
|
|
582
|
+
let result = this.$androidUtil.path({'alias':`${config[this.worktype].path}`,'data':{condition:condition}})
|
|
583
|
+
if (result.code === 200) {
|
|
584
|
+
//tag)
|
|
585
|
+
var crv = {
|
|
586
|
+
title:this.tabname,
|
|
587
|
+
sum:result.data.length
|
|
588
|
+
}
|
|
589
|
+
//tag
|
|
590
|
+
//tag)
|
|
591
|
+
this.$emit('changesum',crv)
|
|
592
|
+
} else {
|
|
593
|
+
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
makeAPhoneCall(phoneNumber) {
|
|
598
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
599
|
+
},
|
|
600
|
+
upload () {
|
|
601
|
+
this.$goto('up-load')
|
|
602
|
+
},
|
|
603
|
+
back () {
|
|
604
|
+
this.$back()
|
|
605
|
+
},
|
|
606
|
+
getNewOrder(){
|
|
607
|
+
HostApp.__this__ = this
|
|
608
|
+
HostApp.logicWithHint({
|
|
609
|
+
// logic别名,key必须为logic
|
|
610
|
+
'logic': 'TelServiceTimeOut',
|
|
611
|
+
// 回调执行方法名,key必须为callback
|
|
612
|
+
'callback': 'javascript:HostApp.__this__.getNewCallBack()',
|
|
613
|
+
// logic执行需要的业务参数
|
|
614
|
+
'data': {params: ''},
|
|
615
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
|
616
|
+
// 执行回调方法传入key为backresult
|
|
617
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
|
618
|
+
'backresult': 1
|
|
619
|
+
})
|
|
620
|
+
},
|
|
621
|
+
getNewCallBack(obj){
|
|
622
|
+
//tag)
|
|
623
|
+
this.ifsearch()
|
|
624
|
+
},
|
|
625
|
+
showMore() {
|
|
626
|
+
if (!this.rows) {
|
|
627
|
+
return
|
|
628
|
+
}
|
|
629
|
+
let endIndex = this.listData.index + 10
|
|
630
|
+
if (endIndex > this.rows.length) {
|
|
631
|
+
endIndex = this.rows.length
|
|
632
|
+
}
|
|
633
|
+
for (; this.listData.index < endIndex; this.listData.index++) {
|
|
634
|
+
this.listData.list.push(this.rows[this.listData.index])
|
|
635
|
+
}
|
|
636
|
+
if(this.listData.index == this.rows.length){
|
|
637
|
+
this.listData.isEnd = true
|
|
638
|
+
}else {
|
|
639
|
+
this.listData.isEnd = false
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
ready () {
|
|
644
|
+
let backservices
|
|
645
|
+
backservices=this.$appdata.getSingleValue('维修转单')
|
|
646
|
+
console.log("参数为:::"+backservices)
|
|
647
|
+
if(backservices==='true'||backservices===''){
|
|
648
|
+
this.backservice = '否'
|
|
649
|
+
}else {
|
|
650
|
+
this.backservice = '是'
|
|
651
|
+
}
|
|
652
|
+
this.getEmp()
|
|
653
|
+
this.ifsearch()
|
|
654
|
+
// var _this = this;
|
|
655
|
+
// this.timeoutHandle = window.setInterval(function() {
|
|
656
|
+
// _this.sumsearch()
|
|
657
|
+
// }, 6000)
|
|
658
|
+
},
|
|
659
|
+
components: {
|
|
660
|
+
FailureShow,
|
|
661
|
+
'failure-show': FailureShow
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
</script>
|
|
665
|
+
<style scoped>
|
|
666
|
+
.searBtn {
|
|
667
|
+
background: #FFFFFF;
|
|
668
|
+
color: #0096fb;
|
|
669
|
+
border: 1px solid #0096fb;
|
|
670
|
+
border-radius: 5px;
|
|
671
|
+
padding: 8px;
|
|
672
|
+
text-align: center;
|
|
673
|
+
font-size: 1.2em;
|
|
674
|
+
z-index: 10;
|
|
675
|
+
opacity:0.5;
|
|
676
|
+
bottom: 50px;
|
|
677
|
+
margin-top: -10px;
|
|
678
|
+
height: 40px;
|
|
679
|
+
}
|
|
680
|
+
.bg {
|
|
681
|
+
background-color: #499edf;
|
|
682
|
+
height: 1px;
|
|
683
|
+
border: 0;
|
|
684
|
+
}
|
|
685
|
+
.app-row {
|
|
686
|
+
background-color: white;
|
|
687
|
+
padding: 10px 10px 0 10px;
|
|
688
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
689
|
+
}
|
|
690
|
+
.search_input {
|
|
691
|
+
border: 0;
|
|
692
|
+
outline: none;
|
|
693
|
+
}
|
|
694
|
+
.font{
|
|
695
|
+
font: 15px PingFang-SC-Medium;
|
|
696
|
+
color: #666666;
|
|
697
|
+
}
|
|
698
|
+
.input-font{
|
|
699
|
+
font: 15px PingFang-SC-Medium;
|
|
700
|
+
color: #333333;
|
|
701
|
+
}
|
|
702
|
+
.btn-font{
|
|
703
|
+
font:600 16px PingFang-SC-Bold;
|
|
704
|
+
color: #499EDF;
|
|
705
|
+
}
|
|
706
|
+
.btn-color{
|
|
707
|
+
background-color: #FFFFFF;
|
|
708
|
+
border-radius: 10px ;
|
|
709
|
+
border: 1px solid #499EDF;
|
|
710
|
+
}
|
|
711
|
+
.panel-blue-border {
|
|
712
|
+
border: 1px solid #499edf;
|
|
713
|
+
border-radius: 5px;
|
|
714
|
+
}
|
|
715
|
+
</style>
|