apply-clients 7.1.36-yuchuan-1 → 7.1.36-yuchuan-3

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 (58) hide show
  1. package/build/dev-server.js +7 -3
  2. package/package.json +3 -3
  3. package/src/apply.js +12 -1
  4. package/src/applyAndroid.js +6 -0
  5. package/src/components/android/AppUpload.vue +15 -0
  6. package/src/components/android/Ignition/VentilationIgnition.vue +1 -1
  7. package/src/components/android/Process/AppExplorationUser.vue +2 -2
  8. package/src/components/android/Process/AppServiceControl.vue +1410 -1397
  9. package/src/components/android/Supervisory/AppProcessSupervisory.vue +334 -334
  10. package/src/components/android/Task/Build/BuildTsak.vue +7 -4
  11. package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +317 -0
  12. package/src/components/android/Task/GuanXianJianShe/AppGuanXianCaiLiao.vue +237 -0
  13. package/src/components/android/Task/ShenHe/BuZhangShenHe.vue +64 -64
  14. package/src/components/android/Task/ShenHe/JingLiShenHe.vue +64 -64
  15. package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +11 -7
  16. package/src/components/android/Task/UpBuild/UpBuildDui.vue +5 -2
  17. package/src/components/android/Task/UpBuild/UpBuildTsak.vue +5 -2
  18. package/src/components/android/Task/UpBuild/UpJianLi.vue +5 -2
  19. package/src/components/product/ApplyCharge/ApplyChargeList.vue +943 -606
  20. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +8 -7
  21. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +236 -235
  22. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +324 -323
  23. package/src/components/product/ChongZheng/ApplyChongZhengList.vue +10 -9
  24. package/src/components/product/Function/InstallInfoSelect.vue +15 -13
  25. package/src/components/product/Function/Service/FunctionServiceControl.vue +475 -475
  26. package/src/components/product/Ignition/IgnitionList.vue +236 -236
  27. package/src/components/product/Ignition/IgnitionListManage.vue +403 -204
  28. package/src/components/product/Ignition/IgnitionRecord.vue +14 -13
  29. package/src/components/product/List/ShowAllActivity.vue +455 -0
  30. package/src/components/product/List/ShowDevices.vue +279 -279
  31. package/src/components/product/Print/BuildOrder/buildOrderList.vue +9 -8
  32. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +6 -0
  33. package/src/components/product/Process/ExplorationSelect.vue +591 -580
  34. package/src/components/product/Process/ExplorationUser.vue +158 -158
  35. package/src/components/product/Process/New1ExplorationUser.vue +201 -0
  36. package/src/components/product/Process/New2ExplorationUser.vue +163 -0
  37. package/src/components/product/Process/NewExplorationSelect.vue +586 -0
  38. package/src/components/product/Process/NewExplorationUser.vue +219 -184
  39. package/src/components/product/Process/Processes/ApplyChaiChuInfo.vue +587 -587
  40. package/src/components/product/Process/Processes/InstallationDetails.vue +80 -7
  41. package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +224 -224
  42. package/src/components/product/Process/Processes/newDevicesManagement.vue +26 -1
  43. package/src/components/product/Process/Processes/newInstallationDetails.vue +1 -36
  44. package/src/components/product/Process/Processes/selectOldUserinfo.vue +1 -1
  45. package/src/components/product/Process/Service/ServiceControl.vue +2166 -2155
  46. package/src/components/product/Report/ReportItems.vue +85 -79
  47. package/src/components/product/Report/apply-stair-kaifa.vue +0 -1
  48. package/src/components/product/Report/gongchengbu.vue +199 -0
  49. package/src/components/product/ServiceView.vue +12 -0
  50. package/src/components/product/Stop/StopApplyList.vue +8 -8
  51. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +14 -0
  52. package/src/components/product/Supervisory/SupervisoryList.vue +539 -536
  53. package/src/components/product/Supervisory/YiBanSupervisoryControl.vue +114 -0
  54. package/src/components/product/Supervisory/YiBanSupervisoryList.vue +541 -0
  55. package/dist-android.7z +0 -0
  56. package/dist.7z +0 -0
  57. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +0 -207
  58. package/yarn-error.log +0 -9976
@@ -1,155 +1,274 @@
1
1
  <template>
2
+ <!-- 点火派单 -->
2
3
  <div class="flex-row">
3
4
  <div class="basic-main">
4
5
  <criteria-paged :model="model" v-ref:cp>
5
- <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
6
- <div class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <criteria
7
+ partial="criteria"
8
+ @condition-changed="$parent.searchCondition"
9
+ v-ref:cri
10
+ >
11
+ <div
12
+ class="form-horizontal select-overspread container-fluid auto"
13
+ partial
14
+ >
7
15
  <div class="row">
8
16
  <div class="form-group col-sm-2">
9
- <label class="font_normal_body">片&emsp;&emsp;区:</label>
17
+ <label class="font_normal_body"
18
+ ><strong>片&emsp;&emsp;区:</strong></label
19
+ >
10
20
  <v-select
11
21
  v-model="model.f_slice_area"
12
- placeholder='片区'
22
+ placeholder="片区"
13
23
  condition="ui.f_slice_area = '{}'"
14
24
  :value.sync="model.f_slice_area"
15
- :options='$parent.$parent.sliceareas'
25
+ :options="$parent.$parent.sliceareas"
16
26
  class="select select_list"
17
27
  :value-single="true"
18
- close-on-select >
28
+ close-on-select
29
+ >
19
30
  </v-select>
20
31
  </div>
21
32
  <div class="form-group col-sm-2">
22
- <label class="font_normal_body">发卡状态:</label>
33
+ <label class="font_normal_body"
34
+ ><strong>发卡状态:</strong></label
35
+ >
23
36
  <v-select
24
37
  v-model="model.f_whether_hairpin"
25
- placeholder='发卡状态'
38
+ placeholder="发卡状态"
26
39
  condition="uf.f_whether_hairpin = '{}'"
27
40
  :value.sync="model.f_whether_hairpin"
28
- :options='$parent.$parent.whether_hairpin'
41
+ :options="$parent.$parent.whether_hairpin"
29
42
  class="select select_list"
30
43
  :value-single="true"
31
- close-on-select >
44
+ close-on-select
45
+ >
32
46
  </v-select>
33
47
  </div>
34
48
  <div class="form-group col-sm-2">
35
- <label for="startDate" class="font_normal_body">发卡时间:</label>
36
- <datepicker id="startDate" placeholder="开始日期"
37
- style="width: 60%!important;"
38
- v-model="model.startDate"
39
- :value.sync="model.startDate"
40
- :format="'yyyy-MM-dd 00:00:00'"
41
- :show-reset-button="true"
42
- condition="uf.f_open_date >= '{}'">
49
+ <label for="startDate" class="font_normal_body"
50
+ ><strong>发卡时间:</strong></label
51
+ >
52
+ <datepicker
53
+ id="startDate"
54
+ placeholder="开始日期"
55
+ style="width: 60% !important"
56
+ v-model="model.startDate"
57
+ :value.sync="model.startDate"
58
+ :format="'yyyy-MM-dd 00:00:00'"
59
+ :show-reset-button="true"
60
+ condition="uf.f_open_date >= '{}'"
61
+ >
43
62
  </datepicker>
44
63
  </div>
45
64
  <div class="form-group col-sm-2">
46
- <label for="endDate" class="font_normal_body">发卡时间:</label>
47
- <datepicker id="endDate" placeholder="结束日期"
48
- style="width: 60%!important;"
49
- v-model="model.endDate"
50
- :value.sync="model.endDate"
51
- :format="'yyyy-MM-dd 23:59:59'"
52
- :show-reset-button="true"
53
- condition="uf.f_open_date <= '{}'">
65
+ <label for="endDate" class="font_normal_body"
66
+ ><strong>发卡时间:</strong></label
67
+ >
68
+ <datepicker
69
+ id="endDate"
70
+ placeholder="结束日期"
71
+ style="width: 60% !important"
72
+ v-model="model.endDate"
73
+ :value.sync="model.endDate"
74
+ :format="'yyyy-MM-dd 23:59:59'"
75
+ :show-reset-button="true"
76
+ condition="uf.f_open_date <= '{}'"
77
+ >
54
78
  </datepicker>
55
79
  </div>
56
80
  <div class="form-group col-sm-3 button-range">
57
- <button class="button_export button_spacing" @click="$parent.$parent.openOperatorModal()">批量派单</button>
58
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
59
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
60
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
81
+ <button
82
+ class="button_export button_spacing"
83
+ @click="$parent.$parent.openOperatorModal()"
84
+ >
85
+ 批量派单
86
+ </button>
87
+ <button
88
+ class="button_search button_spacing"
89
+ @click="$parent.$parent.search()"
90
+ v-el:cx
91
+ >
92
+ 查询
93
+ </button>
94
+ <button
95
+ class="button_search button_spacing"
96
+ @click="$parent.$parent.loadPage()"
97
+ >
98
+ 返回
99
+ </button>
100
+ <button
101
+ class="button_clear button_spacing"
102
+ @click="$parent.$parent.clear()"
103
+ >
104
+ 清空
105
+ </button>
61
106
  <div
62
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
63
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
107
+ :class="{
108
+ button_shrink_top: $parent.$parent.criteriaShow,
109
+ button_shrink_bottom: !$parent.$parent.criteriaShow,
110
+ }"
111
+ @click="
112
+ $parent.$parent.criteriaShow = !$parent.$parent.criteriaShow
113
+ "
64
114
  class="button_spacing"
65
- style="float: right">
66
- </div>
115
+ style="float: right"
116
+ ></div>
67
117
  </div>
68
118
  </div>
69
119
  <div class="row" v-show="$parent.$parent.criteriaShow">
70
120
  <div class="form-group col-sm-2">
71
- <label class="font_normal_body">工程编号:</label>
72
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_applycode"
73
- v-on:keyup.enter="$parent.$parent.search()" condition="ui.f_applycode = '{}'" placeholder='工程编号'>
121
+ <label class="font_normal_body"
122
+ ><strong>工程编号:</strong></label
123
+ >
124
+ <input
125
+ type="text"
126
+ class="input_search"
127
+ style="width: 60%"
128
+ v-model="model.f_applycode"
129
+ v-on:keyup.enter="$parent.$parent.search()"
130
+ condition="ui.f_applycode = '{}'"
131
+ placeholder="工程编号"
132
+ />
74
133
  </div>
75
134
  <div class="form-group col-sm-2">
76
- <label class="font_normal_body">用户类型:</label>
135
+ <label class="font_normal_body"
136
+ ><strong>用户类型:</strong></label
137
+ >
77
138
  <v-select
78
139
  v-model="model.f_user_type"
79
- placeholder='用户类型'
140
+ placeholder="用户类型"
80
141
  condition="uf.f_user_type = '{}'"
81
142
  :value.sync="model.f_user_type"
82
- :options='$parent.$parent.usertype'
143
+ :options="$parent.$parent.usertype"
83
144
  class="select select_list"
84
145
  :value-single="true"
85
- close-on-select >
146
+ close-on-select
147
+ >
86
148
  </v-select>
87
149
  </div>
88
150
  <div class="form-group col-sm-2">
89
- <label class="font_normal_body">用户编号:</label>
90
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_userinfo_id"
91
- v-on:keyup.enter="$parent.$parent.search()" condition="ui.f_userinfo_id = '{}'" placeholder='用户编号'>
151
+ <label class="font_normal_body"
152
+ ><strong>用户编号:</strong></label
153
+ >
154
+ <input
155
+ type="text"
156
+ class="input_search"
157
+ style="width: 60%"
158
+ v-model="model.f_userinfo_id"
159
+ v-on:keyup.enter="$parent.$parent.search()"
160
+ condition="ui.f_userinfo_id = '{}'"
161
+ placeholder="用户编号"
162
+ />
92
163
  </div>
93
164
  <div class="form-group col-sm-2">
94
- <label class="font_normal_body">用&ensp;户&ensp;名:</label>
95
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
96
- v-on:keyup.enter="$parent.$parent.search()" condition="ui.f_user_name = '{}'" placeholder='用户名'>
165
+ <label class="font_normal_body"
166
+ ><strong>用&ensp;户&ensp;名:</strong></label
167
+ >
168
+ <input
169
+ type="text"
170
+ class="input_search"
171
+ style="width: 60%"
172
+ v-model="model.f_user_name"
173
+ v-on:keyup.enter="$parent.$parent.search()"
174
+ condition="ui.f_user_name = '{}'"
175
+ placeholder="用户名"
176
+ />
97
177
  </div>
98
178
  <div class="form-group col-sm-2">
99
- <label class="font_normal_body">电&emsp;&emsp;话:</label>
100
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_user_phone"
101
- v-on:keyup.enter="$parent.$parent.search()" condition="ui.f_user_phone = '{}'" placeholder='电话'>
179
+ <label class="font_normal_body"
180
+ ><strong>电&emsp;&emsp;话:</strong></label
181
+ >
182
+ <input
183
+ type="text"
184
+ class="input_search"
185
+ style="width: 60%"
186
+ v-model="model.f_user_phone"
187
+ v-on:keyup.enter="$parent.$parent.search()"
188
+ condition="ui.f_user_phone = '{}'"
189
+ placeholder="电话"
190
+ />
191
+ </div>
192
+ <div class="form-group col-sm-2">
193
+ <label class="font_normal_body">小&emsp;&emsp;区:</label>
194
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_residential_area"
195
+ v-on:keyup.enter="$parent.$parent.search()" condition="ui.f_residential_area = '{}'" placeholder='小区'>
102
196
  </div>
103
197
  </div>
104
198
  </div>
105
199
  </criteria>
106
- <data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
107
- <template partial='head'>
200
+ <data-grid
201
+ :model="model"
202
+ optional
203
+ partial="list"
204
+ v-ref:grid
205
+ style="overflow: auto"
206
+ class="list_area table_sy"
207
+ >
208
+ <template partial="head">
108
209
  <tr>
109
- <th style="white-space: nowrap;">序号</th>
110
- <th style="white-space: nowrap;">报建编号</th>
111
- <th style="white-space: nowrap;">用户编号</th>
112
- <th style="white-space: nowrap;">用户姓名</th>
113
- <th style="white-space: nowrap;">联系电话</th>
114
- <th style="white-space: nowrap;">用户类型</th>
115
- <th style="white-space: nowrap;">地址</th>
116
- <th style="white-space: nowrap;">片区</th>
210
+ <th style="white-space: nowrap">序号</th>
211
+ <th style="white-space: nowrap">报建编号</th>
212
+ <th style="white-space: nowrap">用户编号</th>
213
+ <th style="white-space: nowrap">用户姓名</th>
214
+ <th style="white-space: nowrap">联系电话</th>
215
+ <th style="white-space: nowrap">用户类型</th>
216
+ <th style="white-space: nowrap">地址</th>
217
+ <th style="white-space: nowrap">片区</th>
117
218
  <!-- <th>定位地址</th>-->
118
- <th style="white-space: nowrap;">气表分类</th>
119
- <th style="white-space: nowrap;">表号</th>
120
- <th style="white-space: nowrap;">气表品牌</th>
121
- <th style="white-space: nowrap;">气表型号</th>
122
- <th style="white-space: nowrap;">发卡状态</th>
123
- <th style="white-space: nowrap;">发卡时间</th>
124
- <th style="white-space: nowrap;">报建人</th>
125
- <th style="white-space: nowrap;">报建联系电话</th>
219
+ <th style="white-space: nowrap">气表分类</th>
220
+ <th style="white-space: nowrap">表号</th>
221
+ <th style="white-space: nowrap">气表品牌</th>
222
+ <th style="white-space: nowrap">气表型号</th>
223
+ <th style="white-space: nowrap">发卡状态</th>
224
+ <th style="white-space: nowrap">发卡时间</th>
225
+ <th style="white-space: nowrap">报建人</th>
226
+ <th style="white-space: nowrap">报建联系电话</th>
126
227
  </tr>
127
228
  </template>
128
- <template partial='body'>
129
- <tr >
130
- <td style="text-align: center;">
131
- <nobr><font>{{$index+1}}</font></nobr>
229
+ <template partial="body">
230
+ <tr>
231
+ <td style="text-align: center">
232
+ <nobr
233
+ ><font>{{ $index + 1 }}</font></nobr
234
+ >
132
235
  </td>
133
- <td style="text-align: center;">
134
- <nobr><font>{{row.f_apply_num}}</font></nobr>
236
+ <td style="text-align: center">
237
+ <nobr
238
+ ><font>{{ row.f_apply_num }}</font></nobr
239
+ >
135
240
  </td>
136
- <td style="text-align: center;">
137
- <nobr><font>{{row.f_userinfo_id}}</font></nobr>
241
+ <td style="text-align: center">
242
+ <nobr
243
+ ><font>{{ row.f_userinfo_id }}</font></nobr
244
+ >
138
245
  </td>
139
- <td style="text-align: center;">
140
- <nobr><font>{{row.f_user_name}}</font></nobr>
246
+ <td style="text-align: center">
247
+ <nobr
248
+ ><font>{{ row.f_user_name }}</font></nobr
249
+ >
141
250
  </td>
142
- <td style="text-align: center;">
143
- <nobr><font>{{row.f_user_phone}}</font></nobr>
251
+ <td style="text-align: center">
252
+ <nobr
253
+ ><font>{{ row.f_user_phone }}</font></nobr
254
+ >
144
255
  </td>
145
- <td style="text-align: center;">
146
- <nobr><font>{{row.f_user_type}}</font></nobr>
256
+ <td style="text-align: center">
257
+ <nobr
258
+ ><font>{{ row.f_user_type }}</font></nobr
259
+ >
147
260
  </td>
148
- <td style="text-align: center;">
149
- <nobr><font>{{row.f_address}}{{row.f_address_detail}}</font></nobr>
261
+ <td style="text-align: center">
262
+ <nobr
263
+ ><font
264
+ >{{ row.f_address }}{{ row.f_address_detail }}</font
265
+ ></nobr
266
+ >
150
267
  </td>
151
- <td style="text-align: center;">
152
- <nobr><font>{{row.f_area}}</font></nobr>
268
+ <td style="text-align: center">
269
+ <nobr
270
+ ><font>{{ row.f_area }}</font></nobr
271
+ >
153
272
  </td>
154
273
  <!-- <td style="text-align: center;">-->
155
274
  <!-- <nobr><font>-->
@@ -158,29 +277,45 @@
158
277
  <!-- </a>-->
159
278
  <!-- </font></nobr>-->
160
279
  <!-- </td>-->
161
- <td style="text-align: center;">
162
- <nobr><font>{{row.f_meter_classify}}</font></nobr>
280
+ <td style="text-align: center">
281
+ <nobr
282
+ ><font>{{ row.f_meter_classify }}</font></nobr
283
+ >
163
284
  </td>
164
- <td style="text-align: center;">
165
- <nobr><font>{{row.f_meternumber}}</font></nobr>
285
+ <td style="text-align: center">
286
+ <nobr
287
+ ><font>{{ row.f_meternumber }}</font></nobr
288
+ >
166
289
  </td>
167
- <td style="text-align: center;">
168
- <nobr><font>{{row.f_meter_brand}}</font></nobr>
290
+ <td style="text-align: center">
291
+ <nobr
292
+ ><font>{{ row.f_meter_brand }}</font></nobr
293
+ >
169
294
  </td>
170
- <td style="text-align: center;">
171
- <nobr><font>{{row.f_meter_style}}</font></nobr>
295
+ <td style="text-align: center">
296
+ <nobr
297
+ ><font>{{ row.f_meter_style }}</font></nobr
298
+ >
172
299
  </td>
173
- <td style="text-align: center;">
174
- <nobr><font>{{row.f_whether_hairpin}}</font></nobr>
300
+ <td style="text-align: center">
301
+ <nobr
302
+ ><font>{{ row.f_whether_hairpin }}</font></nobr
303
+ >
175
304
  </td>
176
- <td style="text-align: center;">
177
- <nobr><font>{{row.f_faka_date}}</font></nobr>
305
+ <td style="text-align: center">
306
+ <nobr
307
+ ><font>{{ row.f_faka_date }}</font></nobr
308
+ >
178
309
  </td>
179
- <td style="text-align: center;">
180
- <nobr><font>{{row.f_contact}}</font></nobr>
310
+ <td style="text-align: center">
311
+ <nobr
312
+ ><font>{{ row.f_contact }}</font></nobr
313
+ >
181
314
  </td>
182
- <td style="text-align: center;">
183
- <nobr><font>{{row.f_phone}}</font></nobr>
315
+ <td style="text-align: center">
316
+ <nobr
317
+ ><font>{{ row.f_phone }}</font></nobr
318
+ >
184
319
  </td>
185
320
  </tr>
186
321
  </template>
@@ -189,12 +324,25 @@
189
324
  </div>
190
325
  </div>
191
326
 
192
- <modal v-if="showAmap" :show.sync="showAmap" v-ref:amap :large="true" :backdrop="false" title="定位信息">
327
+ <modal
328
+ v-if="showAmap"
329
+ :show.sync="showAmap"
330
+ v-ref:amap
331
+ :large="true"
332
+ :backdrop="false"
333
+ title="定位信息"
334
+ >
193
335
  <header slot="modal-header" class="modal-header">
194
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
336
+ <button type="button" class="close" @click="closeModal">
337
+ <span>&times;</span>
338
+ </button>
195
339
  <h4 class="modal-title">定位信息</h4>
196
340
  </header>
197
- <article slot="modal-body" class="modal-body clearfix" style="height: 500px">
341
+ <article
342
+ slot="modal-body"
343
+ class="modal-body clearfix"
344
+ style="height: 500px"
345
+ >
198
346
  <amap-location
199
347
  :isshowsearch="false"
200
348
  :mylocationinfo="false"
@@ -204,27 +352,45 @@
204
352
  :labelmarksarray="labelmarksarray"
205
353
  ></amap-location>
206
354
  </article>
207
- <footer slot="modal-footer" class="modal-footer">
208
- </footer>
355
+ <footer slot="modal-footer" class="modal-footer"></footer>
209
356
  </modal>
210
357
 
211
358
  <validator name="v">
212
- <modal v-if="showOperator" :show.sync="showOperator" v-ref:operator :large="true" :backdrop="false" title="批量派单">、
359
+ <modal
360
+ v-if="showOperator"
361
+ :show.sync="showOperator"
362
+ v-ref:operator
363
+ :large="true"
364
+ :backdrop="false"
365
+ title="批量派单"
366
+ >、
213
367
  <header slot="modal-header" class="modal-header">
214
- <button type="button" class="close" @click="closeModal('details')"><span>&times;</span></button>
368
+ <button type="button" class="close" @click="closeModal('details')">
369
+ <span>&times;</span>
370
+ </button>
215
371
  <h4 class="modal-title">批量派单</h4>
216
372
  </header>
217
373
  <article slot="modal-body" class="modal-body clearfix">
218
374
  <!-- 基本信息 -->
219
- <div class="form-group col-sm-12" :class="[$v.operator.required ? 'has-error' : '']">
375
+ <div
376
+ class="form-group col-sm-12"
377
+ :class="[$v.operator.required ? 'has-error' : '']"
378
+ >
220
379
  <label class="col-sm-2 control-label">操作人:</label>
221
380
  <div class="col-sm-10">
222
- <input type="text" v-show="false" v-model="operator.id" :value.sync="operator.id" v-validate:operator = "['required']" >
381
+ <input
382
+ type="text"
383
+ v-show="false"
384
+ v-model="operator.id"
385
+ :value.sync="operator.id"
386
+ v-validate:operator="['required']"
387
+ />
223
388
  <input-select
224
389
  class="select select_list"
225
390
  :value.sync="operator"
226
391
  v-model="operator"
227
- :options="operatorList"></input-select>
392
+ :options="operatorList"
393
+ ></input-select>
228
394
  </div>
229
395
  </div>
230
396
  <div class="form-group col-sm-12">
@@ -234,74 +400,101 @@
234
400
  class="select select_list"
235
401
  :value.sync="f_shared_dispatch"
236
402
  v-model="f_shared_dispatch"
237
- :options="sharedOptions"></input-select>
403
+ :options="sharedOptions"
404
+ ></input-select>
238
405
  </div>
239
406
  </div>
240
407
  </article>
241
408
  <footer slot="modal-footer" class="modal-footer">
242
- <button type="button" class="btn btn-primary" @click="batchDispatch()" :disabled="!$v.valid">确定</button>
409
+ <button
410
+ type="button"
411
+ class="btn btn-primary"
412
+ @click="batchDispatch()"
413
+ :disabled="!$v.valid"
414
+ >
415
+ 确定
416
+ </button>
243
417
  </footer>
244
418
  </modal>
245
419
  </validator>
246
-
247
420
  </template>
248
421
 
249
422
  <script>
250
- import {PagedList} from 'vue-client'
423
+ import { PagedList } from "vue-client";
251
424
 
252
425
  export default {
253
- title: '点火派单',
254
- props: ['showData'],
255
- data () {
426
+ title: "点火派单",
427
+ props: ["showData"],
428
+ data() {
256
429
  return {
257
- model: new PagedList('rs/sql/getWaitIgnitionTask', 20, null),
430
+ model: new PagedList("rs/sql/getWaitIgnitionTask", 20, null),
258
431
  criteriaShow: false,
259
- source: 'this.getParentByType($organization$).getChildByName($通气组报装$).getChildren()',
432
+ source:
433
+ "this.getParentByType($organization$).getChildByName($通气组报装$).getChildren()",
260
434
  operatorList: [],
261
435
  showOperator: false,
262
436
  operator: null,
263
- f_shared_dispatch:'',
264
- sharedOptions:[{label: "是", value: "是"}, {label: "否", value: "否" }],
437
+ f_shared_dispatch: "",
438
+ sharedOptions: [
439
+ { label: "是", value: "是" },
440
+ { label: "否", value: "否" },
441
+ ],
265
442
  showAmap: false,
266
443
  labelmarksarray: [],
267
444
  sliceareas: [], // 片区
268
- whether_hairpin: [{label: "全部", value: ""}, {label: "已发卡", value: "已发"}, {label: "未发卡", value: "未发"}],//发卡状态
269
- usertype:[{label: "全部", value: ""}, {label: "民用", value: "民用"}, {label: "非民用", value: "非民用"}]//用户类型
270
- }
445
+ whether_hairpin: [
446
+ { label: "全部", value: "" },
447
+ { label: "已发卡", value: "已发" },
448
+ { label: "未发卡", value: "未发" },
449
+ ], //发卡状态
450
+ usertype: [
451
+ { label: "全部", value: "" },
452
+ { label: "民用", value: "民用" },
453
+ { label: "非民用", value: "非民用" },
454
+ ], //用户类型
455
+ };
271
456
  },
272
- ready () {
273
- this.search()
274
- this.getOperator()
275
- setTimeout (this.getsliceareas,500)
457
+ ready() {
458
+ this.search();
459
+ this.getOperator();
460
+ setTimeout(this.getsliceareas, 500);
276
461
  },
277
462
  methods: {
278
- loadPage () {
279
- this.$dispatch('loadPage')
463
+ loadPage() {
464
+ this.$dispatch("loadPage");
280
465
  },
281
- openAmap (row) {
282
- this.labelmarksarray = [{
283
- data: {
284
- data: this.selectdata,
285
- label: `<div style="background: #fff;border-radius: 5px;height: 100px;padding: 5px">
466
+ openAmap(row) {
467
+ this.labelmarksarray = [
468
+ {
469
+ data: {
470
+ data: this.selectdata,
471
+ label: `<div style="background: #fff;border-radius: 5px;height: 100px;padding: 5px">
286
472
  <h5>${row.f_user_name}</h5>
287
473
  <h5>${row.f_user_phone}</h5>
288
474
  <h5>${row.f_location_address}</h5>
289
- </div>`
475
+ </div>`,
476
+ },
477
+ position: [row.f_lng, row.f_lat],
478
+ isclearmarker: false,
290
479
  },
291
- position: [row.f_lng, row.f_lat],
292
- isclearmarker: false
293
- }]
480
+ ];
294
481
 
295
- this.showAmap = true
482
+ this.showAmap = true;
296
483
  },
297
- async batchDispatch () {
298
- let selectdata = this.$refs.cp.$refs.grid.getRowData()
484
+ async batchDispatch() {
485
+ let selectdata = this.$refs.cp.$refs.grid.getRowData();
299
486
  if (selectdata.length > 0) {
300
- for (let i = 0; i < selectdata.length; i++){
301
- if(selectdata[i].f_whether_hairpin === '未发' && (!selectdata[i].f_user_name.includes('原处') || !selectdata[i].f_contact.includes('原处'))){
302
- let res = await this.$showMessage(`第${selectdata.length}条数据未开户,无法派单!`)
303
- if (res == 'confirm') {
304
- return
487
+ for (let i = 0; i < selectdata.length; i++) {
488
+ if (
489
+ selectdata[i].f_whether_hairpin === "未发" &&
490
+ (!selectdata[i].f_user_name.includes("原处") ||
491
+ !selectdata[i].f_contact.includes("原处"))
492
+ ) {
493
+ let res = await this.$showMessage(
494
+ `第${selectdata.length}条数据未开户,无法派单!`
495
+ );
496
+ if (res == "confirm") {
497
+ return;
305
498
  }
306
499
  }
307
500
  // if(selectdata[i].f_surplus_money > 0 ){
@@ -313,91 +506,97 @@ export default {
313
506
  }
314
507
  let data = {
315
508
  operator: this.$login.f,
316
- f_userinfo_ids: selectdata.map(item => `${item.f_userinfo_id}`),
509
+ f_userinfo_ids: selectdata.map((item) => {
510
+ return {
511
+ f_apply_num: item.f_apply_num,
512
+ f_userinfo_id: item.f_userinfo_id,
513
+ };
514
+ }),
317
515
  ignitionOperator: this.operator,
318
- f_shared_dispatch:this.f_shared_dispatch
319
- }
516
+ f_shared_dispatch: this.f_shared_dispatch,
517
+ };
320
518
 
321
519
  let res = await this.$resetpost(
322
- 'rs/logic/batchDispatchGas',
323
- {data: data},
324
- {resolveMsg: null, rejectMsg: '批量派单失败!!!'}
325
- )
520
+ "rs/logic/batchDispatchGas",
521
+ { data: data },
522
+ { resolveMsg: null, rejectMsg: "批量派单失败!!!" }
523
+ );
326
524
 
327
- this.closeModal('details')
328
- this.search()
525
+ this.closeModal("details");
526
+ this.search();
329
527
  } else {
330
- this.$showAlert('至少选择1个工单', 'warning', 3000)
528
+ this.$showAlert("至少选择1个工单", "warning", 3000);
331
529
  }
332
530
  },
333
- async getsliceareas () {
334
-
531
+ async getsliceareas() {
335
532
  let res = await this.$resetpost(
336
- 'rs/logic/getsliceareas',{data:null},
337
- {resolveMsg: null, rejectMsg: '获取片区失败!!!'}
338
- )
339
- this.sliceareas = [{label: '全部', value: ''}, ...res.data]
533
+ "rs/logic/getsliceareas",
534
+ { data: null },
535
+ { resolveMsg: null, rejectMsg: "获取片区失败!!!" }
536
+ );
537
+ this.sliceareas = [{ label: "全部", value: "" }, ...res.data];
340
538
  },
341
- async openOperatorModal () {
342
- let selectdata = this.$refs.cp.$refs.grid.getRowData()
539
+ async openOperatorModal() {
540
+ let selectdata = this.$refs.cp.$refs.grid.getRowData();
343
541
  if (selectdata.length > 0) {
344
- let res = await this.$showMessage(`当前数据条数: ${selectdata.length}, 条数过大时派单时间可能会过长, 是否确认派单?`)
345
- if (res == 'confirm') {
346
- this.showOperator = true
542
+ let res = await this.$showMessage(
543
+ `当前数据条数: ${selectdata.length}, 条数过大时派单时间可能会过长, 是否确认派单?`
544
+ );
545
+ if (res == "confirm") {
546
+ this.showOperator = true;
347
547
  }
348
548
  } else {
349
- this.$showAlert('至少选择1个工单', 'warning', 3000)
549
+ this.$showAlert("至少选择1个工单", "warning", 3000);
350
550
  }
351
551
  },
352
- async getOperator () {
552
+ async getOperator() {
353
553
  let data = {
354
554
  source: this.source,
355
- userid: this.$login.f.id
356
- }
555
+ userid: this.$login.f.id,
556
+ };
357
557
 
358
558
  let res = await this.$resetpost(
359
- 'rs/search',
360
- {data: data},
361
- {resolveMsg: null, rejectMsg: '点火人员查询失败!!!'}
362
- )
559
+ "rs/search",
560
+ { data: data },
561
+ { resolveMsg: null, rejectMsg: "点火人员查询失败!!!" }
562
+ );
363
563
 
364
- this.operatorList = res.data.map(item => {
564
+ this.operatorList = res.data.map((item) => {
365
565
  return {
366
566
  label: item.name,
367
- value: item
368
- }
369
- })
567
+ value: item,
568
+ };
569
+ });
370
570
  },
371
- searchCondition (args) {
372
- args.condition = args.condition + ` and ir.id is null`
373
- console.log("this.showDatade",this.showData)
571
+ searchCondition(args) {
572
+ args.condition = args.condition + ` and ir.id is null`;
573
+ console.log("this.showDatade", this.showData);
374
574
  // args.condition = args.condition + ` and ui.f_process_id = '${this.showData.f_process_id}'`
375
- args.condition = args.condition + ` and ui.f_process_id is not null`
376
- this.model.search(args.condition, args.model)
575
+ args.condition = args.condition + ` and ui.f_process_id is not null`;
576
+ this.model.search(args.condition, args.model);
377
577
  },
378
578
  // 查询
379
- search () {
380
- this.$refs.cp.$refs.cri.search()
579
+ search() {
580
+ this.$refs.cp.$refs.cri.search();
381
581
  },
382
- clear () {
582
+ clear() {
383
583
  Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
384
- this.$refs.cp.$refs.cri.model[key] = null
385
- })
584
+ this.$refs.cp.$refs.cri.model[key] = null;
585
+ });
386
586
  },
387
- closeModal (type) {
388
- this.showAmap = false
389
- this.showOperator = false
587
+ closeModal(type) {
588
+ this.showAmap = false;
589
+ this.showOperator = false;
390
590
 
391
- this.labelmarksarray = []
392
- this.operator = null
591
+ this.labelmarksarray = [];
592
+ this.operator = null;
393
593
 
394
- if (type === 'details') {
395
- this.$refs.cp.$refs.grid.selectInit()
594
+ if (type === "details") {
595
+ this.$refs.cp.$refs.grid.selectInit();
396
596
  }
397
- }
398
- }
399
- }
597
+ },
598
+ },
599
+ };
400
600
  </script>
401
601
 
402
- <style scoped>
403
- </style>
602
+ <style scoped></style>