telephone-clients 3.0.102 → 3.0.103

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 (39) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +56 -52
  3. package/src/components/MaterialsManage/MaterialsBase.vue +177 -177
  4. package/src/components/Util/RightTreeSafe.vue +346 -346
  5. package/src/components/pc/NewRepairPaper.vue +370 -370
  6. package/src/components/pc/SiteSend.vue +281 -281
  7. package/src/components/pc/WorkCenterList.vue +292 -292
  8. package/src/components/pc/WorkListAllNew.vue +700 -700
  9. package/src/components/temp/ChangemeterInfo.vue +87 -87
  10. package/src/components/temp/DeviceInfo.vue +82 -82
  11. package/src/components/workorder/FaultAll.vue +826 -826
  12. package/src/components/workorder/PhoneStandWork.vue +354 -354
  13. package/src/components/workorder/RepairOrderV.vue +1446 -1446
  14. package/src/filiale/furuike/pc/ComplainWork.vue +348 -348
  15. package/src/filiale/furuike/pc/Seekwork.vue +352 -352
  16. package/src/filiale/gongyi/android/RepairOrderV.vue +1415 -1415
  17. package/src/filiale/liaoyuan/android/RepairOrderV.vue +831 -831
  18. package/src/filiale/qianneng/android/FaultAll.vue +883 -883
  19. package/src/filiale/qianneng/android/MaterIialOne.vue +123 -123
  20. package/src/filiale/qianneng/android/RepairOrderV.vue +874 -874
  21. package/src/filiale/qianneng/android/chargesList.vue +161 -161
  22. package/src/filiale/qianneng/pc/NewRepairPaper.vue +467 -467
  23. package/src/filiale/qianneng/pc/RepairsWork.vue +982 -982
  24. package/src/filiale/qianneng/pc/WorkListAllNew.vue +701 -701
  25. package/src/filiale/shanxian/pc/WorkList.vue +823 -823
  26. package/src/filiale/shanxian/telephone.js +12 -12
  27. package/src/filiale/shexian/android/AddMyTask.vue +347 -0
  28. package/src/filiale/shexian/android/Outlay.vue +249 -249
  29. package/src/filiale/shexian/pc/WorkList.vue +740 -0
  30. package/src/filiale/shexian/telephone.js +18 -17
  31. package/src/filiale/shexian/telephoneAndroid.js +26 -23
  32. package/src/filiale/tongchuan/pc/UserWork.vue +805 -805
  33. package/src/filiale/wenxi/android/RepairOrderV.vue +1419 -1419
  34. package/src/filiale/wuan/android/RepairOrderV.vue +1384 -1384
  35. package/src/filiale/zhongsheng/android/RepairOrderV.vue +1430 -1430
  36. package/src/filiale/zhongsheng/pc/RepairsWork.vue +775 -775
  37. package/src/filiale/zhongsheng/telephone.js +23 -23
  38. package/src/main.js +1 -1
  39. package/yarn-error.log +7872 -0
@@ -1,354 +1,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
- }
182
- let HttpReset = new HttpResetClass()
183
- // 将数据发送给业务逻辑
184
- HttpReset.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/siteSend`, data).then((res) => {
185
- if (res.data.code == 300) {
186
- this.sendshow = false
187
- this.sendselected ={
188
- serviceacitivity:[
189
- {
190
- f_service_acitivity_type: '派单',
191
- f_reciever:''
192
- }
193
- ],
194
- f_advice:''
195
- }
196
- this.ifsearch()
197
- this.$showMessage(`该单已被派发!`, ['confirm'])
198
- return
199
- } else {
200
- this.sendshow = false
201
- this.sendselected ={
202
- serviceacitivity:[
203
- {
204
- f_service_acitivity_type: '派单',
205
- f_reciever:''
206
- }
207
- ],
208
- f_advice:''
209
- }
210
- this.ifsearch()
211
- this.$showMessage(`派发成功!`, ['confirm'])
212
- return
213
- }
214
- })
215
- },
216
- repiarmancg(val){
217
- this.sendselected.serviceacitivity[0].f_reciever = val
218
- },
219
- // 获取维修员
220
- getEmp () {
221
- // 获取接单人数组
222
- let http = new HttpResetClass()
223
- var val = {source: `this.getParentByType($organization$).getChildByName($维修员$).getUsers()`, userid: `${Vue.user.id}`}
224
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
225
- res.data.forEach((item) => {
226
- this.repairers.push({label: `${item.name}`, value: item.name})
227
- })
228
- })
229
- },
230
- ifsearch(){
231
- this.listData.list = []
232
- this.listData.index = 0
233
- this.listData.isEnd = true
234
- var condition = `1 = 1 and f_workorder_type = '报修单'`
235
- if(this.username != ''){
236
- condition += " and f_user_name like '%" + this.username + "%'"
237
- }
238
- if(this.address != ''){
239
- condition += " and f_address like '%" + this.address + "%'"
240
- }
241
- var val = {
242
- condition:{
243
- condition:condition,
244
- sign:'1 = 1'
245
- },
246
- userid:Vue.user.name
247
- }
248
- //tag
249
- //tag
250
- let http = new HttpResetClass()
251
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorService`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
252
- this.rows = res.data
253
- this.showMore()
254
- })
255
- },
256
- selected (row) {
257
- this.sendselected = Object.assign({}, this.sendselected, row)
258
- this.sendshow =true
259
- },
260
- undo(){
261
- this.sendselected ={
262
- serviceacitivity:[
263
- {
264
- f_service_acitivity_type: '派单',
265
- f_reciever:''
266
- }
267
- ],
268
- f_advice:''
269
- }
270
- this.sendshow = false
271
- this.ifsearch()
272
- },
273
- makeAPhoneCall(phoneNumber) {
274
- this.$androidUtil.makeAPhoneCall(phoneNumber)
275
- },
276
- showMore() {
277
- if (!this.rows) {
278
- return
279
- }
280
- let endIndex = this.listData.index + 10
281
- if (endIndex > this.rows.length) {
282
- endIndex = this.rows.length
283
- }
284
- for (; this.listData.index < endIndex; this.listData.index++) {
285
- this.listData.list.push(this.rows[this.listData.index])
286
- }
287
- if(this.listData.index == this.rows.length){
288
- this.listData.isEnd = true
289
- }else {
290
- this.listData.isEnd = false
291
- }
292
- }
293
- },
294
- ready () {
295
- this.getEmp()
296
- this.ifsearch()
297
- },
298
- components: {
299
- FailureShow,
300
- 'failure-show': FailureShow
301
- }
302
- }
303
- </script>
304
- <style scoped>
305
- .searBtn {
306
- background: #FFFFFF;
307
- color: #0096fb;
308
- border: 1px solid #0096fb;
309
- border-radius: 5px;
310
- padding: 8px;
311
- text-align: center;
312
- font-size: 1.2em;
313
- z-index: 10;
314
- opacity:0.5;
315
- bottom: 50px;
316
- margin-top: -10px;
317
- height: 40px;
318
- }
319
- .bg {
320
- background-color: #499edf;
321
- height: 1px;
322
- border: 0;
323
- }
324
- .app-row {
325
- background-color: white;
326
- padding: 10px 10px 0 10px;
327
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
328
- }
329
- .search_input {
330
- border: 0;
331
- outline: none;
332
- }
333
- .font{
334
- font: 15px PingFang-SC-Medium;
335
- color: #666666;
336
- }
337
- .input-font{
338
- font: 15px PingFang-SC-Medium;
339
- color: #333333;
340
- }
341
- .btn-font{
342
- font:600 16px PingFang-SC-Bold;
343
- color: #499EDF;
344
- }
345
- .btn-color{
346
- background-color: #FFFFFF;
347
- border-radius: 10px ;
348
- border: 1px solid #499EDF;
349
- }
350
- .panel-blue-border {
351
- border: 1px solid #499edf;
352
- border-radius: 5px;
353
- }
354
- </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 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
+ let HttpReset = new HttpResetClass()
183
+ // 将数据发送给业务逻辑
184
+ HttpReset.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/siteSend`, data).then((res) => {
185
+ if (res.data.code == 300) {
186
+ this.sendshow = false
187
+ this.sendselected ={
188
+ serviceacitivity:[
189
+ {
190
+ f_service_acitivity_type: '派单',
191
+ f_reciever:''
192
+ }
193
+ ],
194
+ f_advice:''
195
+ }
196
+ this.ifsearch()
197
+ this.$showMessage(`该单已被派发!`, ['confirm'])
198
+ return
199
+ } else {
200
+ this.sendshow = false
201
+ this.sendselected ={
202
+ serviceacitivity:[
203
+ {
204
+ f_service_acitivity_type: '派单',
205
+ f_reciever:''
206
+ }
207
+ ],
208
+ f_advice:''
209
+ }
210
+ this.ifsearch()
211
+ this.$showMessage(`派发成功!`, ['confirm'])
212
+ return
213
+ }
214
+ })
215
+ },
216
+ repiarmancg(val){
217
+ this.sendselected.serviceacitivity[0].f_reciever = val
218
+ },
219
+ // 获取维修员
220
+ getEmp () {
221
+ // 获取接单人数组
222
+ let http = new HttpResetClass()
223
+ var val = {source: `this.getParentByType($organization$).getChildByName($维修员$).getUsers()`, userid: `${Vue.user.id}`}
224
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
225
+ res.data.forEach((item) => {
226
+ this.repairers.push({label: `${item.name}`, value: item.name})
227
+ })
228
+ })
229
+ },
230
+ ifsearch(){
231
+ this.listData.list = []
232
+ this.listData.index = 0
233
+ this.listData.isEnd = true
234
+ var condition = `1 = 1 and f_workorder_type = '报修单'`
235
+ if(this.username != ''){
236
+ condition += " and f_user_name like '%" + this.username + "%'"
237
+ }
238
+ if(this.address != ''){
239
+ condition += " and f_address like '%" + this.address + "%'"
240
+ }
241
+ var val = {
242
+ condition:{
243
+ condition:condition,
244
+ sign:'1 = 1'
245
+ },
246
+ userid:Vue.user.name
247
+ }
248
+ //tag
249
+ //tag
250
+ let http = new HttpResetClass()
251
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorService`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
252
+ this.rows = res.data
253
+ this.showMore()
254
+ })
255
+ },
256
+ selected (row) {
257
+ this.sendselected = Object.assign({}, this.sendselected, row)
258
+ this.sendshow =true
259
+ },
260
+ undo(){
261
+ this.sendselected ={
262
+ serviceacitivity:[
263
+ {
264
+ f_service_acitivity_type: '派单',
265
+ f_reciever:''
266
+ }
267
+ ],
268
+ f_advice:''
269
+ }
270
+ this.sendshow = false
271
+ this.ifsearch()
272
+ },
273
+ makeAPhoneCall(phoneNumber) {
274
+ this.$androidUtil.makeAPhoneCall(phoneNumber)
275
+ },
276
+ showMore() {
277
+ if (!this.rows) {
278
+ return
279
+ }
280
+ let endIndex = this.listData.index + 10
281
+ if (endIndex > this.rows.length) {
282
+ endIndex = this.rows.length
283
+ }
284
+ for (; this.listData.index < endIndex; this.listData.index++) {
285
+ this.listData.list.push(this.rows[this.listData.index])
286
+ }
287
+ if(this.listData.index == this.rows.length){
288
+ this.listData.isEnd = true
289
+ }else {
290
+ this.listData.isEnd = false
291
+ }
292
+ }
293
+ },
294
+ ready () {
295
+ this.getEmp()
296
+ this.ifsearch()
297
+ },
298
+ components: {
299
+ FailureShow,
300
+ 'failure-show': FailureShow
301
+ }
302
+ }
303
+ </script>
304
+ <style scoped>
305
+ .searBtn {
306
+ background: #FFFFFF;
307
+ color: #0096fb;
308
+ border: 1px solid #0096fb;
309
+ border-radius: 5px;
310
+ padding: 8px;
311
+ text-align: center;
312
+ font-size: 1.2em;
313
+ z-index: 10;
314
+ opacity:0.5;
315
+ bottom: 50px;
316
+ margin-top: -10px;
317
+ height: 40px;
318
+ }
319
+ .bg {
320
+ background-color: #499edf;
321
+ height: 1px;
322
+ border: 0;
323
+ }
324
+ .app-row {
325
+ background-color: white;
326
+ padding: 10px 10px 0 10px;
327
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
328
+ }
329
+ .search_input {
330
+ border: 0;
331
+ outline: none;
332
+ }
333
+ .font{
334
+ font: 15px PingFang-SC-Medium;
335
+ color: #666666;
336
+ }
337
+ .input-font{
338
+ font: 15px PingFang-SC-Medium;
339
+ color: #333333;
340
+ }
341
+ .btn-font{
342
+ font:600 16px PingFang-SC-Bold;
343
+ color: #499EDF;
344
+ }
345
+ .btn-color{
346
+ background-color: #FFFFFF;
347
+ border-radius: 10px ;
348
+ border: 1px solid #499EDF;
349
+ }
350
+ .panel-blue-border {
351
+ border: 1px solid #499edf;
352
+ border-radius: 5px;
353
+ }
354
+ </style>