telephone-clients 3.0.105-17 → 3.0.105-18
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
CHANGED
|
@@ -1,354 +1,355 @@
|
|
|
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 for="f_userinfo_code" 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 for="f_userinfo_code" class="font text-left">用户地址:</label>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="col-xs-8" >
|
|
31
|
-
<input type="text" id="f_userinfo_code" class="search_input input-font"
|
|
32
|
-
v-model="address" placeholder='用户地址' />
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<!-- 分割按钮和条件的高度 -->
|
|
36
|
-
<div class="row app-row" style="height: 10px;"></div>
|
|
37
|
-
<!-- 按钮 -->
|
|
38
|
-
<div class="row text-center app-row">
|
|
39
|
-
<button type="button" class="btn btn-lg btn-font btn-color" @click="ifsearch()" style="min-width: 25%;">查询</button>
|
|
40
|
-
</div>
|
|
41
|
-
<div style="height:30px;" class="app-row"></div>
|
|
42
|
-
</form>
|
|
43
|
-
</div>
|
|
44
|
-
<!-- 列表 -->
|
|
45
|
-
<div class="panel panel-default repair-info-content auto">
|
|
46
|
-
<div class="panel-body">
|
|
47
|
-
<div class="panel panel-default well panel-blue-border" :class="row.failure.indexOf('漏气') !== -1 ? 'class-a':''" v-for="row in listData.list" >
|
|
48
|
-
<div class="panel-body" style="padding: 10px">
|
|
49
|
-
<div class="row form-group">
|
|
50
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
51
|
-
<div class="row" >
|
|
52
|
-
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
53
|
-
工单编号: {{row.f_service_id}}<span v-if="row.f_remindersign">(催单 {{row.f_reminderdata}}) </span>
|
|
54
|
-
</div>
|
|
55
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
56
|
-
派发时间: {{row.f_created_date}}
|
|
57
|
-
</div>
|
|
58
|
-
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '置换通气单'||worktype == '安装单'">
|
|
59
|
-
预约时间: {{row.f_yuyue_date}}
|
|
60
|
-
</div>
|
|
61
|
-
<!-- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
|
|
62
|
-
报修类型: {{row.f_servicerepair_type}}
|
|
63
|
-
</div>-->
|
|
64
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_repairtype">
|
|
65
|
-
报修类型: {{row.f_repairtype}}
|
|
66
|
-
</div>
|
|
67
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_userinfo_code">
|
|
68
|
-
用户编号: {{row.f_userinfo_code}}
|
|
69
|
-
</div>
|
|
70
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_enter_number">
|
|
71
|
-
用户证号: {{row.f_enter_number}}
|
|
72
|
-
</div>
|
|
73
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
74
|
-
用户姓名: {{row.f_user_name}}
|
|
75
|
-
</div>
|
|
76
|
-
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
77
|
-
来电电话: {{row.f_phone}}
|
|
78
|
-
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
81
|
-
联系电话: {{row.f_contact_phone}}
|
|
82
|
-
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_contact_phone)'>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
85
|
-
用户地址: {{row.f_address}}
|
|
86
|
-
</div>
|
|
87
|
-
<div v-show="row.f_remarks" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
88
|
-
备注信息: {{row.f_remarks}}
|
|
89
|
-
</div>
|
|
90
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.failure">
|
|
91
|
-
<failure-show :value='row.failure'>
|
|
92
|
-
</failure-show>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
97
|
-
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="selected(row)">下派</button>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
<div style="height:auto;width: 100%;text-align: center">
|
|
103
|
-
<a v-if="!listData.isEnd" @click="showMore()">展开更多......</a>
|
|
104
|
-
<span v-if="listData.isEnd">到底了......</span>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
<modal :show.sync="sendshow" v-ref:modal :backdrop="false">
|
|
108
|
-
<div slot="modal-header" class="modal-header">
|
|
109
|
-
<h4 class="modal-title">
|
|
110
|
-
派发工单
|
|
111
|
-
</h4>
|
|
112
|
-
</div>
|
|
113
|
-
<div slot="modal-body" class="modal-body">
|
|
114
|
-
<div class="row" style="margin-top: 6px">
|
|
115
|
-
<label class="col-xs-4 col-md-4 control-label font text-left">接单人</label>
|
|
116
|
-
<div class="col-xs-8">
|
|
117
|
-
<v-select :value="sendselected.serviceacitivity[0].f_reciever" :value-single="true"
|
|
118
|
-
:options='repairers' placeholder='请选择接单人'
|
|
119
|
-
close-on-select v-on:change="repiarmancg"></v-select>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
<div class="row" style="margin-top: 6px">
|
|
123
|
-
<label class="control-label font text-left col-md-4 col-xs-4">备注</label>
|
|
124
|
-
<div class="col-xs-8 col-md-8">
|
|
125
|
-
<input type="text" v-model="sendselected.f_advice"/>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<div slot="modal-footer" class="modal-footer">
|
|
130
|
-
<button type="button" class="btn btn-default" @click="worksend()">确定</button>
|
|
131
|
-
<button type="button" class="btn btn-default" @click="undo()">取消</button>
|
|
132
|
-
</div>
|
|
133
|
-
</modal>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
</template>
|
|
137
|
-
<script>
|
|
138
|
-
import FailureShow from '../pc/FailureShow'
|
|
139
|
-
import { HttpResetClass } from 'vue-client'
|
|
140
|
-
import Vue from 'vue'
|
|
141
|
-
import * as Util from "../Util";
|
|
142
|
-
|
|
143
|
-
export default{
|
|
144
|
-
title: '移动端站点派发',
|
|
145
|
-
data () {
|
|
146
|
-
return {
|
|
147
|
-
// rows: Object
|
|
148
|
-
rows: [],
|
|
149
|
-
username:'',
|
|
150
|
-
address:'',
|
|
151
|
-
sendshow:false,
|
|
152
|
-
repairers: [],
|
|
153
|
-
sendselected:{
|
|
154
|
-
serviceacitivity:[
|
|
155
|
-
{
|
|
156
|
-
f_service_acitivity_type: '派单',
|
|
157
|
-
f_reciever:''
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
f_advice:''
|
|
161
|
-
},
|
|
162
|
-
number:0,
|
|
163
|
-
listData: {
|
|
164
|
-
list: [],
|
|
165
|
-
isEnd: true,
|
|
166
|
-
index: 0
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
props: {
|
|
171
|
-
},
|
|
172
|
-
methods: {
|
|
173
|
-
worksend () {
|
|
174
|
-
if (!this.sendselected.serviceacitivity[0].f_reciever) {
|
|
175
|
-
this.$showMessage(`请选择接单人员!`, ['confirm'])
|
|
176
|
-
return
|
|
177
|
-
}
|
|
178
|
-
let data = {
|
|
179
|
-
model: this.sendselected,
|
|
180
|
-
loginUser: {name: Vue.user.name, ename: Vue.user.ename}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
this.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
this
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
this.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
this
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
this.listData.
|
|
233
|
-
this.listData.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
//tag
|
|
250
|
-
|
|
251
|
-
http
|
|
252
|
-
|
|
253
|
-
this.
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
this.
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
this.
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
this.
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
border
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
border:
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
border
|
|
353
|
-
|
|
354
|
-
|
|
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 for="f_userinfo_code" 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 for="f_userinfo_code" class="font text-left">用户地址:</label>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-xs-8" >
|
|
31
|
+
<input type="text" id="f_userinfo_code" class="search_input input-font"
|
|
32
|
+
v-model="address" placeholder='用户地址' />
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<!-- 分割按钮和条件的高度 -->
|
|
36
|
+
<div class="row app-row" style="height: 10px;"></div>
|
|
37
|
+
<!-- 按钮 -->
|
|
38
|
+
<div class="row text-center app-row">
|
|
39
|
+
<button type="button" class="btn btn-lg btn-font btn-color" @click="ifsearch()" style="min-width: 25%;">查询</button>
|
|
40
|
+
</div>
|
|
41
|
+
<div style="height:30px;" class="app-row"></div>
|
|
42
|
+
</form>
|
|
43
|
+
</div>
|
|
44
|
+
<!-- 列表 -->
|
|
45
|
+
<div class="panel panel-default repair-info-content auto">
|
|
46
|
+
<div class="panel-body">
|
|
47
|
+
<div class="panel panel-default well panel-blue-border" :class="row.failure.indexOf('漏气') !== -1 ? 'class-a':''" v-for="row in listData.list" >
|
|
48
|
+
<div class="panel-body" style="padding: 10px">
|
|
49
|
+
<div class="row form-group">
|
|
50
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
51
|
+
<div class="row" >
|
|
52
|
+
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
53
|
+
工单编号: {{row.f_service_id}}<span v-if="row.f_remindersign">(催单 {{row.f_reminderdata}}) </span>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
56
|
+
派发时间: {{row.f_created_date}}
|
|
57
|
+
</div>
|
|
58
|
+
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '置换通气单'||worktype == '安装单'">
|
|
59
|
+
预约时间: {{row.f_yuyue_date}}
|
|
60
|
+
</div>
|
|
61
|
+
<!-- <div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="worktype == '报修单'">
|
|
62
|
+
报修类型: {{row.f_servicerepair_type}}
|
|
63
|
+
</div>-->
|
|
64
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_repairtype">
|
|
65
|
+
报修类型: {{row.f_repairtype}}
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_userinfo_code">
|
|
68
|
+
用户编号: {{row.f_userinfo_code}}
|
|
69
|
+
</div>
|
|
70
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.f_enter_number">
|
|
71
|
+
用户证号: {{row.f_enter_number}}
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
74
|
+
用户姓名: {{row.f_user_name}}
|
|
75
|
+
</div>
|
|
76
|
+
<div v-show="false" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
77
|
+
来电电话: {{row.f_phone}}
|
|
78
|
+
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
81
|
+
联系电话: {{row.f_contact_phone}}
|
|
82
|
+
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_contact_phone)'>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
85
|
+
用户地址: {{row.f_address}}
|
|
86
|
+
</div>
|
|
87
|
+
<div v-show="row.f_remarks" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
88
|
+
备注信息: {{row.f_remarks}}
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu" v-if="row.failure">
|
|
91
|
+
<failure-show :value='row.failure'>
|
|
92
|
+
</failure-show>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
97
|
+
<button type="button" name="button" class="btn btn-primary btn-sm" style="float: right" @click="selected(row)">下派</button>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
<div style="height:auto;width: 100%;text-align: center">
|
|
103
|
+
<a v-if="!listData.isEnd" @click="showMore()">展开更多......</a>
|
|
104
|
+
<span v-if="listData.isEnd">到底了......</span>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<modal :show.sync="sendshow" v-ref:modal :backdrop="false">
|
|
108
|
+
<div slot="modal-header" class="modal-header">
|
|
109
|
+
<h4 class="modal-title">
|
|
110
|
+
派发工单
|
|
111
|
+
</h4>
|
|
112
|
+
</div>
|
|
113
|
+
<div slot="modal-body" class="modal-body">
|
|
114
|
+
<div class="row" style="margin-top: 6px">
|
|
115
|
+
<label class="col-xs-4 col-md-4 control-label font text-left">接单人</label>
|
|
116
|
+
<div class="col-xs-8">
|
|
117
|
+
<v-select :value="sendselected.serviceacitivity[0].f_reciever" :value-single="true"
|
|
118
|
+
:options='repairers' placeholder='请选择接单人'
|
|
119
|
+
close-on-select v-on:change="repiarmancg"></v-select>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="row" style="margin-top: 6px">
|
|
123
|
+
<label class="control-label font text-left col-md-4 col-xs-4">备注</label>
|
|
124
|
+
<div class="col-xs-8 col-md-8">
|
|
125
|
+
<input type="text" v-model="sendselected.f_advice"/>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div slot="modal-footer" class="modal-footer">
|
|
130
|
+
<button type="button" class="btn btn-default" @click="worksend()">确定</button>
|
|
131
|
+
<button type="button" class="btn btn-default" @click="undo()">取消</button>
|
|
132
|
+
</div>
|
|
133
|
+
</modal>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</template>
|
|
137
|
+
<script>
|
|
138
|
+
import FailureShow from '../pc/FailureShow'
|
|
139
|
+
import { HttpResetClass } from 'vue-client'
|
|
140
|
+
import Vue from 'vue'
|
|
141
|
+
import * as Util from "../Util";
|
|
142
|
+
|
|
143
|
+
export default{
|
|
144
|
+
title: '移动端站点派发',
|
|
145
|
+
data () {
|
|
146
|
+
return {
|
|
147
|
+
// rows: Object
|
|
148
|
+
rows: [],
|
|
149
|
+
username:'',
|
|
150
|
+
address:'',
|
|
151
|
+
sendshow:false,
|
|
152
|
+
repairers: [],
|
|
153
|
+
sendselected:{
|
|
154
|
+
serviceacitivity:[
|
|
155
|
+
{
|
|
156
|
+
f_service_acitivity_type: '派单',
|
|
157
|
+
f_reciever:''
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
f_advice:''
|
|
161
|
+
},
|
|
162
|
+
number:0,
|
|
163
|
+
listData: {
|
|
164
|
+
list: [],
|
|
165
|
+
isEnd: true,
|
|
166
|
+
index: 0
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
props: {
|
|
171
|
+
},
|
|
172
|
+
methods: {
|
|
173
|
+
worksend () {
|
|
174
|
+
if (!this.sendselected.serviceacitivity[0].f_reciever) {
|
|
175
|
+
this.$showMessage(`请选择接单人员!`, ['confirm'])
|
|
176
|
+
return
|
|
177
|
+
}
|
|
178
|
+
let data = {
|
|
179
|
+
model: this.sendselected,
|
|
180
|
+
loginUser: {name: Vue.user.name, ename: Vue.user.ename},
|
|
181
|
+
f_handlingtype:'转维修员'
|
|
182
|
+
}
|
|
183
|
+
let HttpReset = new HttpResetClass()
|
|
184
|
+
// 将数据发送给业务逻辑
|
|
185
|
+
HttpReset.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/siteSend`, data).then((res) => {
|
|
186
|
+
if (res.data.code == 300) {
|
|
187
|
+
this.sendshow = false
|
|
188
|
+
this.sendselected ={
|
|
189
|
+
serviceacitivity:[
|
|
190
|
+
{
|
|
191
|
+
f_service_acitivity_type: '派单',
|
|
192
|
+
f_reciever:''
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
f_advice:''
|
|
196
|
+
}
|
|
197
|
+
this.ifsearch()
|
|
198
|
+
this.$showMessage(`该单已被派发!`, ['confirm'])
|
|
199
|
+
return
|
|
200
|
+
} else {
|
|
201
|
+
this.sendshow = false
|
|
202
|
+
this.sendselected ={
|
|
203
|
+
serviceacitivity:[
|
|
204
|
+
{
|
|
205
|
+
f_service_acitivity_type: '派单',
|
|
206
|
+
f_reciever:''
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
f_advice:''
|
|
210
|
+
}
|
|
211
|
+
this.ifsearch()
|
|
212
|
+
this.$showMessage(`派发成功!`, ['confirm'])
|
|
213
|
+
return
|
|
214
|
+
}
|
|
215
|
+
})
|
|
216
|
+
},
|
|
217
|
+
repiarmancg(val){
|
|
218
|
+
this.sendselected.serviceacitivity[0].f_reciever = val
|
|
219
|
+
},
|
|
220
|
+
// 获取维修员
|
|
221
|
+
getEmp () {
|
|
222
|
+
// 获取接单人数组
|
|
223
|
+
let http = new HttpResetClass()
|
|
224
|
+
var val = {source: `this.getParentByType($organization$).getChildByName($维修员$).getUsers()`, userid: `${Vue.user.id}`}
|
|
225
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
226
|
+
res.data.forEach((item) => {
|
|
227
|
+
this.repairers.push({label: `${item.name}`, value: item.name})
|
|
228
|
+
})
|
|
229
|
+
})
|
|
230
|
+
},
|
|
231
|
+
ifsearch(){
|
|
232
|
+
this.listData.list = []
|
|
233
|
+
this.listData.index = 0
|
|
234
|
+
this.listData.isEnd = true
|
|
235
|
+
var condition = `1 = 1 and f_workorder_type = '报修单'`
|
|
236
|
+
if(this.username != ''){
|
|
237
|
+
condition += " and f_user_name like '%" + this.username + "%'"
|
|
238
|
+
}
|
|
239
|
+
if(this.address != ''){
|
|
240
|
+
condition += " and f_address like '%" + this.address + "%'"
|
|
241
|
+
}
|
|
242
|
+
var val = {
|
|
243
|
+
condition:{
|
|
244
|
+
condition:condition,
|
|
245
|
+
sign:'1 = 1'
|
|
246
|
+
},
|
|
247
|
+
userid:Vue.user.name
|
|
248
|
+
}
|
|
249
|
+
//tag
|
|
250
|
+
//tag
|
|
251
|
+
let http = new HttpResetClass()
|
|
252
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorService`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
253
|
+
this.rows = res.data
|
|
254
|
+
this.showMore()
|
|
255
|
+
})
|
|
256
|
+
},
|
|
257
|
+
selected (row) {
|
|
258
|
+
this.sendselected = Object.assign({}, this.sendselected, row)
|
|
259
|
+
this.sendshow =true
|
|
260
|
+
},
|
|
261
|
+
undo(){
|
|
262
|
+
this.sendselected ={
|
|
263
|
+
serviceacitivity:[
|
|
264
|
+
{
|
|
265
|
+
f_service_acitivity_type: '派单',
|
|
266
|
+
f_reciever:''
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
f_advice:''
|
|
270
|
+
}
|
|
271
|
+
this.sendshow = false
|
|
272
|
+
this.ifsearch()
|
|
273
|
+
},
|
|
274
|
+
makeAPhoneCall(phoneNumber) {
|
|
275
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
276
|
+
},
|
|
277
|
+
showMore() {
|
|
278
|
+
if (!this.rows) {
|
|
279
|
+
return
|
|
280
|
+
}
|
|
281
|
+
let endIndex = this.listData.index + 10
|
|
282
|
+
if (endIndex > this.rows.length) {
|
|
283
|
+
endIndex = this.rows.length
|
|
284
|
+
}
|
|
285
|
+
for (; this.listData.index < endIndex; this.listData.index++) {
|
|
286
|
+
this.listData.list.push(this.rows[this.listData.index])
|
|
287
|
+
}
|
|
288
|
+
if(this.listData.index == this.rows.length){
|
|
289
|
+
this.listData.isEnd = true
|
|
290
|
+
}else {
|
|
291
|
+
this.listData.isEnd = false
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
ready () {
|
|
296
|
+
this.getEmp()
|
|
297
|
+
this.ifsearch()
|
|
298
|
+
},
|
|
299
|
+
components: {
|
|
300
|
+
FailureShow,
|
|
301
|
+
'failure-show': FailureShow
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
</script>
|
|
305
|
+
<style scoped>
|
|
306
|
+
.searBtn {
|
|
307
|
+
background: #FFFFFF;
|
|
308
|
+
color: #0096fb;
|
|
309
|
+
border: 1px solid #0096fb;
|
|
310
|
+
border-radius: 5px;
|
|
311
|
+
padding: 8px;
|
|
312
|
+
text-align: center;
|
|
313
|
+
font-size: 1.2em;
|
|
314
|
+
z-index: 10;
|
|
315
|
+
opacity:0.5;
|
|
316
|
+
bottom: 50px;
|
|
317
|
+
margin-top: -10px;
|
|
318
|
+
height: 40px;
|
|
319
|
+
}
|
|
320
|
+
.bg {
|
|
321
|
+
background-color: #499edf;
|
|
322
|
+
height: 1px;
|
|
323
|
+
border: 0;
|
|
324
|
+
}
|
|
325
|
+
.app-row {
|
|
326
|
+
background-color: white;
|
|
327
|
+
padding: 10px 10px 0 10px;
|
|
328
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
329
|
+
}
|
|
330
|
+
.search_input {
|
|
331
|
+
border: 0;
|
|
332
|
+
outline: none;
|
|
333
|
+
}
|
|
334
|
+
.font{
|
|
335
|
+
font: 15px PingFang-SC-Medium;
|
|
336
|
+
color: #666666;
|
|
337
|
+
}
|
|
338
|
+
.input-font{
|
|
339
|
+
font: 15px PingFang-SC-Medium;
|
|
340
|
+
color: #333333;
|
|
341
|
+
}
|
|
342
|
+
.btn-font{
|
|
343
|
+
font:600 16px PingFang-SC-Bold;
|
|
344
|
+
color: #499EDF;
|
|
345
|
+
}
|
|
346
|
+
.btn-color{
|
|
347
|
+
background-color: #FFFFFF;
|
|
348
|
+
border-radius: 10px ;
|
|
349
|
+
border: 1px solid #499EDF;
|
|
350
|
+
}
|
|
351
|
+
.panel-blue-border {
|
|
352
|
+
border: 1px solid #499edf;
|
|
353
|
+
border-radius: 5px;
|
|
354
|
+
}
|
|
355
|
+
</style>
|