manage-client 3.2.100 → 3.2.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 (54) hide show
  1. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  2. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  3. package/.gradle/buildOutputCleanup/built.bin +0 -0
  4. package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
  5. package/build/dev-server.js +177 -176
  6. package/package.json +1 -1
  7. package/src/components/SellReport/GasMoneyPublicMoney.vue +251 -251
  8. package/src/components/SellReport/NonResidentGas.vue +216 -216
  9. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +507 -507
  10. package/src/components/SellReport/ReportItems.vue +246 -246
  11. package/src/components/sale/businessquery/ArrearsQuery.vue +934 -934
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +676 -676
  13. package/src/components/sale/businessquery/InspectListGas.vue +552 -552
  14. package/src/components/sale/businessquery/InspectListUser.vue +449 -449
  15. package/src/components/sale/businessquery/sellingChargePrice.vue +10 -10
  16. package/src/components/sale/config/exportConfig.js +45 -1
  17. package/src/components/sale/config/tableConfig.js +48 -48
  18. package/src/components/webmeter/DrillData/UserGasAll.vue +1 -1
  19. package/src/components/webmeter/WebmeterQuery.vue +3 -0
  20. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +432 -0
  21. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +8 -1
  22. package/src/components/webmeter/instruction/NewQueryInstruct.vue +446 -446
  23. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +50 -9
  24. package/src/components/webmeter/report/ReportList.vue +4 -4
  25. package/src/components/webmeter/reportdata/ReportDataQuery.vue +279 -249
  26. package/src/filiale/liaoyuan/MeterQuery.vue +905 -905
  27. package/src/filiale/liaoyuan/RecordInfoQuery.vue +1163 -1163
  28. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  29. package/src/filiale/macheng/FxGasTable.vue +236 -236
  30. package/src/filiale/macheng/ManageDayGas.vue +248 -248
  31. package/src/filiale/macheng/ManageHandSellMoney.vue +249 -249
  32. package/src/filiale/macheng/ManageMonthGas.vue +250 -250
  33. package/src/filiale/macheng/ManageOtherCharge.vue +251 -251
  34. package/src/filiale/macheng/ManageSellType.vue +287 -287
  35. package/src/filiale/macheng/MonthGasQuery.vue +470 -0
  36. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  37. package/src/filiale/macheng/SellingTable.vue +219 -219
  38. package/src/filiale/macheng/UserBalanceReport.vue +178 -178
  39. package/src/filiale/macheng/config/DefaultPrint.js +7 -0
  40. package/src/filiale/macheng/config/exportConfig.js +74 -67
  41. package/src/filiale/macheng/reportManage.js +19 -19
  42. package/src/filiale/macheng/sale.js +12 -11
  43. package/src/filiale/meihekou/HandplanQuery.vue +1234 -1234
  44. package/src/filiale/meihekou/UserQuery.vue +773 -773
  45. package/src/filiale/qianneng/OtherChargeQuery.vue +646 -646
  46. package/src/filiale/rongchuang/SellingTable.vue +251 -251
  47. package/src/filiale/shaoguan/RecordInfoQuery.vue +1150 -1150
  48. package/src/webmeterManage.js +2 -0
  49. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  50. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  51. package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
  52. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  53. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  54. package/build/tmp/jar/MANIFEST.MF +0 -2
@@ -1,905 +1,905 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">客户名称</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
- condition="f_user_name like '%{}%'" placeholder="客户名称">
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label class="font_normal_body">客户电话</label>
22
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
23
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
24
- </div>
25
- <div class="span" style="float:right;">
26
- <button class="button_search button_spacing" @click="search()">查询</button>
27
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
28
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
29
-
30
- <export-excel :data="$parent.$parent.getCondition"
31
- :field="$parent.$parent.getExportField"
32
- :footer="$parent.$parent.footer"
33
- :header="$parent.$parent.other"
34
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
35
- sqlurl="rs/logic/exportfile" sql-name="meterQuery" template-name='表具查询导出'
36
- :choose-col="true"></export-excel>
37
-
38
-
39
-
40
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
41
- </div>
42
- </div>
43
- <div class="row" v-show="$parent.$parent.criteriaShow">
44
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
45
- <div class="col-sm-2 form-group">
46
- <label class="font_normal_body">客户地址</label>
47
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
48
- condition="f_address like '%{}%'" placeholder='客户地址'>
49
- </div>
50
- <div class="col-sm-2 form-group">
51
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
52
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
53
- condition="f_meternumber like '%{}%'" placeholder='表号'>
54
- </div>
55
-
56
- <div class="col-sm-2 form-group">
57
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
58
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
59
- condition="f_card_id like '%{}%'" placeholder='卡号'>
60
- </div>
61
-
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">客户类型</label>
64
- <v-select :value.sync="model.f_user_type"
65
- :options='$parent.$parent.usertypes'
66
- @change="$parent.$parent.userTypeChange()"
67
- placeholder='请选择' v-model="model.f_user_type"
68
- condition="f_user_type = '{}'"
69
- close-on-select></v-select>
70
- </div>
71
- <div class="col-sm-2 form-group">
72
- <label class="font_normal_body">用气性质</label>
73
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
74
- :options='$parent.$parent.gasproperties' placeholder='请选择'
75
- condition="f_gasproperties = '{}'"
76
- close-on-select></v-select>
77
- </div>
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">气价类型</label>
80
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
81
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
82
- condition="f_price_type = '{}'"
83
- close-on-select v-ref:type>
84
- </v-select>
85
- </div>
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">气价名称</label>
88
- <v-select :value.sync="model.f_price_name"
89
- v-model="model.f_price_name"
90
- :options="$parent.$parent.getPricenames"
91
- placeholder='请选择'
92
- condition="f_price_name = '{}'"
93
- close-on-select></v-select>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">气表分类</label>
97
- <v-select :value.sync="model.f_meter_classify"
98
- v-model="model.f_meter_classify"
99
- :options='$parent.$parent.metertypes' placeholder='请选择'
100
- condition="f_meter_classify = '{}'"
101
- close-on-select></v-select>
102
- </div>
103
- <div class="col-sm-2 form-group">
104
- <label class="font_normal_body">气表品牌</label>
105
- <v-select :value.sync="model.f_meter_brand"
106
- v-model="model.f_meter_brand"
107
- :options='$parent.$parent.meterbrands' placeholder='请选择'
108
- condition="f_meter_brand = '{}'"
109
- close-on-select></v-select>
110
- </div>
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">气表型号</label>
113
- <v-select :value.sync="model.f_meter_style"
114
- v-model="model.f_meter_style"
115
- :options='$parent.$parent.meterstyle[model.f_meter_brand]' placeholder='请选择'
116
- condition="f_meter_style = '{}'"
117
- close-on-select></v-select>
118
- </div>
119
- <div class="col-sm-2 form-group">
120
- <label class="font_normal_body">气表状态</label>
121
- <v-select :value.sync="model.f_table_state"
122
- v-model="model.f_table_state"
123
- :options='$parent.$parent.tablestate' placeholder='请选择'
124
- condition="f_table_state = '{}'"
125
- close-on-select></v-select>
126
- </div>
127
- <div class="col-sm-2 form-group">
128
- <label for="startDate" class="font_normal_body">建表日期</label>
129
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
130
- v-model="model.startDate"
131
- :value.sync="model.startDate"
132
- :format="'yyyy-MM-dd'"
133
- :show-reset-button="true"
134
- condition="f_input_date >= '{} 00:00:00'">
135
- </datepicker>
136
- </div>
137
- <div class="col-sm-2 form-group">
138
- <label for="endDate" class="font_normal_body">建表日期</label>
139
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
140
- v-model="model.endDate"
141
- :value.sync="model.endDate"
142
- :format="'yyyy-MM-dd'"
143
- :show-reset-button="true"
144
- condition="f_input_date <= '{} 23:59:59'">
145
- </datepicker>
146
- </div>
147
- <div class="col-sm-2 form-group">
148
- <label for="startDate" class="font_normal_body">通气日期</label>
149
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
150
- v-model="model.startTQDate"
151
- :value.sync="model.startTQDate"
152
- :format="'yyyy-MM-dd'"
153
- :show-reset-button="true"
154
- condition="f_gas_date >= '{} 00:00:00'">
155
- </datepicker>
156
- </div>
157
- <div class="col-sm-2 form-group">
158
- <label for="endDate" class="font_normal_body">通气日期</label>
159
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
160
- v-model="model.endTQDate"
161
- :value.sync="model.endTQDate"
162
- :format="'yyyy-MM-dd'"
163
- :show-reset-button="true"
164
- condition="f_gas_date <= '{} 23:59:59'">
165
- </datepicker>
166
- </div>
167
- <div class="col-sm-2 form-group">
168
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;壁挂炉</label>
169
- <v-select :value.sync="model.isbgl" v-model="model.isbgl"
170
- :options='$parent.$parent.bgl' placeholder='请选择'
171
- condition="isbgl = '{}'"
172
- close-on-select></v-select>
173
- </div>
174
- <div class="col-sm-2 form-group">
175
- <label class="font_normal_body">用户等级</label>
176
- <v-select :value.sync="model.f_user_grade"
177
- v-model="model.f_user_grade"
178
- :options='$parent.$parent.usergrade' placeholder='请选择'
179
- condition="f_user_grade = '{}'"
180
- close-on-select></v-select>
181
- </div>
182
- <!--表册片区-->
183
- <div class="col-sm-2 form-group">
184
- <label class="font_normal_body">表册片区</label>
185
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
186
- @change="$parent.$parent.inputtorchange"
187
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
188
- style="width:60%"
189
- close-on-select
190
- condition="f_book_slice_area = '{}'"></v-select>
191
- </div>
192
- <div class="col-sm-2 form-group">
193
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
194
- <v-select :value.sync="model.f_inputtor"
195
- v-model="model.f_inputtor"
196
- :options='$parent.$parent.inputtores' placeholder='请选择'
197
- condition="f_inputtor = '{}'"
198
- close-on-select :search="false">
199
- </v-select>
200
- </div>
201
- <div class="col-sm-2 form-group">
202
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
203
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
204
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
205
- style="width:60%"
206
- close-on-select
207
- condition="f_meter_book_num = '{}'"></v-select>
208
- </div>
209
- <div class="col-sm-2 form-group">
210
- <label class="font_normal_body">&nbsp;表&nbsp;箱&nbsp;号</label>
211
- <input type="text" class="input_search" style="width:60%" v-model="model.f_metertitles" placeholder='表箱号'
212
- condition="f_metertitles = '{}'">
213
- </div>
214
- <div class="col-sm-2 form-group">
215
- <label for="startDate" class="font_normal_body">生产日期</label>
216
- <datepicker id="startAZDate" placeholder="开始日期" style="width:60%"
217
- v-model="model.startAZDate"
218
- :value.sync="model.startAZDate"
219
- :format="'yyyy-MM-dd'"
220
- :show-reset-button="true"
221
- condition="f_llj_date >= '{} 00:00:00'">
222
- </datepicker>
223
- </div>
224
- <div class="col-sm-2 form-group">
225
- <label for="endDate" class="font_normal_body">生产日期</label>
226
- <datepicker id="endAZDate" placeholder="结束日期" style="width:60%"
227
- v-model="model.endAZDate"
228
- :value.sync="model.endAZDate"
229
- :format="'yyyy-MM-dd'"
230
- :show-reset-button="true"
231
- condition="f_llj_date <= '{} 23:59:59'">
232
- </datepicker>
233
- </div>
234
-
235
- </div>
236
- </div>
237
- </criteria>
238
-
239
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" :classname="$parent.classname">
240
- <template partial='head'>
241
- <tr>
242
- <th>
243
- <nobr>客户编号</nobr>
244
- </th>
245
- <th>
246
- <nobr>客户名称</nobr>
247
- </th>
248
- <th>
249
- <nobr>客户电话</nobr>
250
- </th>
251
- <th>
252
- <nobr>身份证号</nobr>
253
- </th>
254
- <th>
255
- <nobr>表册片区</nobr>
256
- </th>
257
- <th>
258
- <nobr>客户地址</nobr>
259
- </th>
260
- <th>
261
- <nobr>表上余额</nobr>
262
- </th>
263
- <th>
264
- <nobr>客户类型</nobr>
265
- </th>
266
- <th>
267
- <nobr>用气性质</nobr>
268
- </th>
269
- <th>
270
- <nobr>表号</nobr>
271
- </th>
272
- <th>
273
- <nobr>卡号</nobr>
274
- </th>
275
-
276
-
277
- <th>
278
- <nobr>气价名称</nobr>
279
- </th>
280
- <th>
281
- <nobr>气价详情</nobr>
282
- </th>
283
- <th>
284
- <nobr>气表品牌</nobr>
285
- </th>
286
- <th>
287
- <nobr>气表型号</nobr>
288
- </th>
289
- <th>
290
- <nobr>户管员</nobr>
291
- </th>
292
- <th>
293
- <nobr>通气人</nobr>
294
- </th>
295
- <th>
296
- <nobr>通气时间</nobr>
297
- </th>
298
- <th>
299
- <nobr>建表时间</nobr>
300
- </th>
301
- <th>
302
- <nobr>生产日期</nobr>
303
- </th>
304
- <th>
305
- <nobr>气表状态</nobr>
306
- </th>
307
- <th>
308
- <nobr>是否壁挂炉</nobr>
309
- </th>
310
- <th>
311
- <nobr>表箱号</nobr>
312
- </th>
313
- <th>
314
- <nobr>抄表员</nobr>
315
- </th>
316
- <th>
317
- <nobr>抄表册</nobr>
318
- </th>
319
- </tr>
320
- </template>
321
- <template partial='body'>
322
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;"><nobr>
323
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
324
- </nobr> </td>
325
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
326
- <nobr>{{row.f_user_name}}</nobr>
327
- </td>
328
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
329
- <nobr>{{row.f_user_phone}}</nobr>
330
- </td>
331
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
332
- <nobr>{{row.idnumber}}</nobr>
333
- </td>
334
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
335
- <nobr>{{row.f_address}}</nobr>
336
- </td>
337
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
338
- <nobr>{{row.f_book_slice_area}}</nobr>
339
- </td>
340
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
341
- <nobr>{{row.f_balance_amount}}</nobr>
342
- </td>
343
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
344
- <nobr>{{row.f_user_type}}</nobr>
345
- </td>
346
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
347
- <nobr>{{row.f_gasproperties}}</nobr>
348
- </td>
349
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
350
- <nobr>{{row.f_meternumber}}</nobr>
351
- </td>
352
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
353
- <nobr>{{row.f_card_id}}</nobr>
354
- </td>
355
-
356
-
357
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
358
- <nobr>{{row.f_price_name}}</nobr>
359
- </td>
360
- <th :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
361
- <nobr>{{row.value}}</nobr>
362
- </th>
363
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
364
- <nobr>{{row.f_meter_brand}}</nobr>
365
- </td>
366
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
367
- <nobr>{{row.f_meter_style}}</nobr>
368
- </td>
369
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
370
- <nobr>{{row.f_inputtor}}</nobr>
371
- </td>
372
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
373
- <nobr>{{row.f_gas_person}}</nobr>
374
- </td>
375
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
376
- <nobr>{{row.f_gas_date}}</nobr>
377
- </td>
378
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
379
- <nobr>{{row.f_input_date}}</nobr>
380
- </td>
381
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
382
- <nobr>{{row.f_llj_date}}</nobr>
383
- </td>
384
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
385
- <nobr>{{row.f_table_state}}</nobr>
386
- </td>
387
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
388
- <nobr>{{row.isbgl}}</nobr>
389
- </td>
390
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
391
- <nobr>{{row.f_metertitles}}</nobr>
392
- </td>
393
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
394
- <nobr>{{row.f_inputtor}}</nobr>
395
- </td>
396
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
397
- <nobr>{{row.f_book_name}}</nobr>
398
- <!-- f_meter_name-->
399
- </td>
400
- </template>
401
- <template partial='foot'>
402
- </template>
403
- </data-grid>
404
- </criteria-paged>
405
-
406
- <table class="table-hover">
407
- <tr style="position: relative" class="table-bordered">
408
- <td
409
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
410
- 汇总信息
411
- </td>
412
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
413
- 表上余额合计&emsp;{{sumsmodel.f_balance_amount}}
414
- </td>
415
- </tr>
416
- </table>
417
-
418
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
419
- <!--<header slot="modal-header" class="modal-header text-center">-->
420
- <!--<h4 class="modal-title">打印列选择</h4>-->
421
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
422
- <!--<label for="f_generations" class="font-size">全选</label>-->
423
- <!--</header>-->
424
- <!--<article slot="modal-body">-->
425
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
426
- <!--<div class="col-sm-3" v-for="f in fields">-->
427
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
428
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
429
- <!--</div>-->
430
- <!--</div>-->
431
- <!--</article>-->
432
- <!--<footer slot="modal-footer" class="modal-footer">-->
433
- <!--<center>-->
434
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
435
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
436
- <!--<print-table :model='model' v-show="false" v-ref:print-->
437
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
438
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
439
- <!--:fields="modelval" :printpage="true">-->
440
- <!--</print-table>-->
441
- <!--</center>-->
442
- <!--</footer>-->
443
- <!--</modal>-->
444
- </div>
445
- <div v-if="show">
446
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
447
- </div>
448
- </div>
449
- </div>
450
- </div>
451
- </template>
452
-
453
- <script>
454
- import {PagedList} from 'vue-client'
455
- import exportConfig from './exportConfig'
456
-
457
- let readySomething = async function (self) {
458
- self.$MagGetSaleParam.initinputtor();
459
- self.getinputtores();
460
- self.initmeterbook();
461
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
462
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
463
- // await self.$refs.paged.$refs.cri.search()
464
- await self.$MagLoadParams.loadParam()
465
- self.initParams()
466
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
467
- }
468
-
469
- export default {
470
- title: '表具查询',
471
- data() {
472
- return {
473
- other:[],
474
- footer:[],
475
- model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
476
- criteriaShow: false,
477
- orgCondtionStr: '',
478
-
479
- modelval: [],
480
- printshow: false,
481
- all: false,
482
- fields: {},
483
- thead: '',
484
- tfoot: '',
485
- initres: {
486
- org:[this.$login.f.orgid],
487
- dep:[],
488
- user:[],
489
- },
490
- show:false,
491
- rowdata:{},
492
- meterbrands: [],
493
- // 气表型号
494
- meterstyle: {},
495
- pricenames: [],
496
- gasproperties:[],
497
- inputtouPerson: [],
498
- meterbooks:[{label: '全部',value: ''}], //抄表册
499
- inputtores:[{label: '全部',value: ''}],
500
- prices: [],
501
- //合计数据
502
- sumsmodel: {},
503
- //表册片区
504
- bookSlice:[{label: '全部',value: ''}],
505
- inputtores:[{label: '全部',value: ''}], //抄表员
506
- f_filialeid: this.$login.f.f_orgid,
507
- allorgid:[],
508
- tempfalg :false,
509
- lastorgstr:'',
510
- }
511
- },
512
- ready() {
513
- readySomething(this).then(() => {
514
- this.$emit('ready')
515
- }).catch((error) => {
516
- this.$emit('error', error)
517
- })
518
- },
519
- methods: {
520
- async initmeterbook(orgstr){
521
- if(orgstr == null ){
522
- orgstr = this.f_filialeid;
523
- }
524
- //获取新的抄表册,先去清理所有的抄表册
525
- this.$GetSaleParam.meterbooks = [];
526
- //开始加载新的抄表册
527
- await this.$LoadParams.loadMeterBook(orgstr)
528
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
529
- },
530
- async getinputtores () {
531
- // 获取抄表员
532
- let rs = []
533
- if (this.$login.f.f_gasman.length > 0) {
534
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
535
- let temp = {
536
- label: this.$login.f.f_gasman[i].name,
537
- value: this.$login.f.f_gasman[i].name
538
- }
539
- rs.push(temp)
540
- }
541
- }
542
- this.inputtores = [{label: '全部', value: ''}, ...rs]
543
- },
544
- getotherfooter () {
545
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
546
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
547
- this.other = [];
548
- this.footer = [];
549
- let exportdata = this.getCondition;
550
- let otherInData = [];
551
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
552
- let footerData = [], exportfield = this.getExportField;
553
- footerData.push("合计");
554
- let self = this;
555
- for (var field in self.sumsmodel) {
556
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
557
- }
558
- this.footer.push(footerData);
559
- this.other.push(otherInData);
560
- },
561
- search(){
562
- this.$refs.paged.$refs.cri.search()
563
- },
564
- cancel() {
565
- this.show = false
566
- },
567
- showmsg(obj){
568
- this.rowdata=obj
569
- this.show=true
570
- },
571
- selfSearch(args) {
572
- //抄表员查询条件
573
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
574
- if(this.inputtouPerson.length !== 0){
575
- let str = JSON.stringify(this.inputtouPerson)
576
- str = str.replace(/"/g,`'`)
577
- str = str.replace(/\[/g,``)
578
- str = str.replace(/\]/g,``)
579
- console.log("=====抄表员model22222222222绑定====",str)
580
- //查询多个抄表员时条件
581
- args.condition += ` and f_inputtor in ( ${str} )`
582
- }
583
- if (!this.orgCondtionStr) {
584
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
585
- } else {
586
- args.condition = `${args.condition}` + this.orgCondtionStr
587
- }
588
- this.model.search(args.condition, args.model)
589
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
590
- },
591
- clear() {
592
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
593
- this.$refs.paged.$refs.cri.model[key] = []
594
- })
595
- },
596
- hidden() {
597
- this.criteriaShow = !this.criteriaShow
598
- },
599
- async getRes(condition) {
600
- this.orgCondtionStr = condition
601
-
602
- },
603
- stamp() {
604
- this.all = false
605
- //默认选择要打印的列
606
- this.modelval = defaultPrint.config
607
- this.fields = this.getfield
608
- console.log('所有打印字段', this.fields)
609
- this.printshow = true
610
- this.put()
611
- },
612
- put() {
613
- // 对Modelval进行排序
614
- this.sortModelval()
615
- this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
616
- for (let key of this.modelval) {
617
- this.thead += '<th>' + this.fields[key] + '</th>'
618
- }
619
- this.thead += '</tr>'
620
- },
621
- print() {
622
- this.$refs.print.PrintAsFile()
623
- this.printshow = false
624
- },
625
- close() {
626
- this.printshow = false
627
- this.all = false
628
- },
629
- userTypeChange () {
630
- this.gasproperties=[]
631
- if(this.$refs.paged.$refs.cri.model !==null) {
632
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
633
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
634
- }
635
- else{
636
- this.gasproperties =[{label: '全部', value: ''}]
637
- }
638
- },
639
- initParams() {
640
- // 初始化气表品牌
641
- let brandArr = []
642
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
643
- let temp = {}
644
- temp.label = item.label
645
- temp.value = item.value.f_meter_brand
646
- brandArr.push(temp)
647
- // 取出对应气表型号
648
- let styleArr = []
649
- for (let row of item.value.gasmodel) {
650
- styleArr.push({label: row.label,value: row.value.f_meter_style})
651
- }
652
- this.meterstyle[temp.value] = styleArr
653
- })
654
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
655
- //初始化气表价格
656
- this.prices = this.$MagGetSaleParam.getPrices();
657
- },
658
- // 对选择的列进行排序
659
- sortModelval() {
660
- let sortModel = []
661
- Object.keys(this.fields).forEach((key) => {
662
- if (this.modelval.includes(key)) {
663
- sortModel.push(key)
664
- }
665
- })
666
- this.modelval = sortModel
667
- console.log('选择的打印的字段', this.modelval)
668
- },
669
- async updateParams() {
670
- await this.$MagLoadParams.loadParam(this.f_filialeid)
671
- this.inputtores = [];
672
- this.inputtores.push({label: "全部", value: ""})
673
- this.initSlice(this.f_filialeid)
674
- if(this.allorgid!=null){
675
- this.allorgid.forEach((res)=>{
676
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
677
- })
678
- }
679
- },
680
- async initSlice (val) {
681
- if (val) {
682
- let getAllArea = await this.$resetpost('/rs/search', {
683
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
684
- userid: this.$login.f.id
685
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
686
- let arr = getAllArea.data.filter((res) => {
687
- return res.parentid == val
688
- })
689
- this.bookSlice = []
690
- console.log('过滤之后的片区-------------------', arr)
691
- arr.forEach((res) => {
692
- this.bookSlice.push({label: res.name, value: res.name})
693
- })
694
- }
695
- },
696
- //表册片区和抄表册关联
697
- async inputtorchange(){
698
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
699
- /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
700
- let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
701
- if((val2.length>0)){
702
- let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
703
- /*if (val1[0]){
704
- condition = condition+ ` and f_meter_book = '${val1[0]}' `
705
- }*/
706
- if(val2[0]) {
707
- condition = condition + ` and f_book_slice_area = '${val2}' `
708
- }
709
- let param={
710
- items:'*',
711
- tablename:'t_meter_book',
712
- condition:condition,
713
- orderitem:'id'
714
- }
715
- let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
716
- if (getMeterBooks.data) {
717
- if(getMeterBooks.data.length >0){
718
- let rs = [];
719
- getMeterBooks.data.forEach((item)=>{
720
- let temp = {
721
- label:item.f_book_name,
722
- value:item.id
723
- };
724
- rs.push(temp);
725
-
726
- })
727
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
728
- }else{
729
- this.meterbooks = [{label: '全部',value: ''}];
730
- }
731
- }
732
- }else{
733
- this.meterbooks = [{label: '全部',value: ''}];
734
- this.initmeterbook();
735
- }
736
- },
737
- },
738
- watch: {
739
- 'all'(val) {
740
- if (val) {
741
- this.modelval = this.bodyData
742
- } else {
743
- this.modelval = defaultPrint.config
744
- this.put()
745
- }
746
- },
747
- sumsmodel:{
748
- handler: function(val) {
749
- this.getotherfooter();
750
- },
751
- deep: true
752
- },
753
- 'modelval.length'() {
754
- this.put()
755
- },
756
- async 'orgCondtionStr'(val) {
757
- //更新抄表册
758
- this.meterbooks = [{label: '全部',value: ''}];
759
- if(this.lastorgstr != val){
760
- this.tempfalg = true;
761
- this.lastorgstr = val;
762
- }
763
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
764
- this.tempfalg = false;
765
- let a = val.substring(val.indexOf("(")+2)
766
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
767
- }
768
- let res = val.match(/'(.*?)'/)
769
- console.log('正则提取:',res && res[1])
770
- if (res) {
771
- this.f_filialeid = res[1]
772
- if(res.input !=null){
773
- let resorgid = res.input.substring(res.input.indexOf("'"));
774
- if(resorgid!= null && resorgid!=''){
775
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
776
- // resorgid = resorgid.replaceAll("'","");
777
- resorgid = resorgid.replace(/'/g,"");
778
- this.allorgid = resorgid.split(",")
779
- }
780
- }
781
- this.updateParams()
782
- }
783
- },
784
- },
785
- computed: {
786
- authArr () {
787
- return this.$login.r ? this.$login.r : []
788
- },
789
- getPricenames() {
790
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
791
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
792
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
793
- // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
794
- if(this.$refs.paged.$refs.cri.model !==null) {
795
- let rs = []
796
- let priceArr = []
797
- if ( pricetype.length >0) {
798
- let params = {
799
- f_price_type: pricetype[0],
800
- filter: this.f_filialeid,
801
- prices: this.prices
802
- }
803
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
804
- let temp = {}
805
- temp.label = item.label
806
- temp.value = item.value.f_price_name
807
- priceArr.push(temp)
808
- })
809
- rs = [{label: '全部', value: ''}, ...priceArr]
810
- }
811
- if (rs.length === 0) {
812
- console.log('rs读出来是空')
813
- this.$refs.paged.$refs.cri.model.f_price_name = ''
814
- }
815
- return rs
816
- }
817
- },
818
- getCondition() {
819
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
820
- },
821
- getfield() {
822
- let data = {}
823
- this.bodyData.forEach((value, index) => {
824
- data[this.bodyData[index]] = this.headData[index]
825
- })
826
- //合计字段打印
827
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
828
- if (this.sumsmodel) {
829
- Object.keys(this.sumsmodel).forEach((key) => {
830
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
831
- })
832
- } else {
833
- this.tfoot += '暂无'
834
- }
835
- this.tfoot += '</th></tr>'
836
- return data
837
- },
838
- getExportField() {
839
- return exportConfig.meterConfig
840
- },
841
- areas() {
842
- let rs = []
843
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
844
- let temp = {
845
- label: this.$login.f.f_allArea[i].label,
846
- value: this.$login.f.f_allArea[i].label
847
- }
848
- rs.push(temp)
849
- }
850
- return [{label: '全部', value: ''}, ...rs]
851
- },
852
- sliceArea() {
853
- let rs = []
854
- if (this.$refs.paged.$refs.cri.model.f_area.length > 0) {
855
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
856
- if (this.$login.f.f_allArea[i].label === this.$refs.paged.$refs.cri.model.f_area[0]) {
857
- rs = this.$login.f.f_allArea[i].value
858
- }
859
- }
860
- }
861
- return [{label: '全部', value: ''}, ...rs]
862
- },
863
- usertypes() {
864
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
865
- },
866
- // gasproperties() {
867
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
868
- // },
869
-
870
- metertypes() {
871
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
872
- },
873
- // meterbrands() {
874
- // let arr = []
875
- // this.$MagGetSaleParam.getGasbrand().forEach((item) => {
876
- // let temp = {}
877
- // temp.label = item.label
878
- // temp.value = item.value.f_meter_brand
879
- // arr.push(temp)
880
- // })
881
- // return [{label: '全部', value: ''}, ...arr]
882
- // },
883
- pricetypes() {
884
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
885
- },
886
- tablestate() {
887
- return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
888
- },
889
- bgl(){
890
- return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
891
- },
892
- usergrade(){
893
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
894
- }
895
- }
896
- }
897
- </script>
898
- <style>
899
- .back-red{ /* 红色背景 */
900
- background-color: #F6C6CE;
901
- }
902
- .back-blue{ /* 蓝色背景 */
903
-
904
- }
905
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body">客户电话</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
23
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
24
+ </div>
25
+ <div class="span" style="float:right;">
26
+ <button class="button_search button_spacing" @click="search()">查询</button>
27
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
28
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
29
+
30
+ <export-excel :data="$parent.$parent.getCondition"
31
+ :field="$parent.$parent.getExportField"
32
+ :footer="$parent.$parent.footer"
33
+ :header="$parent.$parent.other"
34
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
35
+ sqlurl="rs/logic/exportfile" sql-name="meterQuery" template-name='表具查询导出'
36
+ :choose-col="true"></export-excel>
37
+
38
+
39
+
40
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
41
+ </div>
42
+ </div>
43
+ <div class="row" v-show="$parent.$parent.criteriaShow">
44
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
45
+ <div class="col-sm-2 form-group">
46
+ <label class="font_normal_body">客户地址</label>
47
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
48
+ condition="f_address like '%{}%'" placeholder='客户地址'>
49
+ </div>
50
+ <div class="col-sm-2 form-group">
51
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
52
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
53
+ condition="f_meternumber like '%{}%'" placeholder='表号'>
54
+ </div>
55
+
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
58
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
59
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
60
+ </div>
61
+
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户类型</label>
64
+ <v-select :value.sync="model.f_user_type"
65
+ :options='$parent.$parent.usertypes'
66
+ @change="$parent.$parent.userTypeChange()"
67
+ placeholder='请选择' v-model="model.f_user_type"
68
+ condition="f_user_type = '{}'"
69
+ close-on-select></v-select>
70
+ </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">用气性质</label>
73
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
74
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
75
+ condition="f_gasproperties = '{}'"
76
+ close-on-select></v-select>
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">气价类型</label>
80
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
81
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
82
+ condition="f_price_type = '{}'"
83
+ close-on-select v-ref:type>
84
+ </v-select>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">气价名称</label>
88
+ <v-select :value.sync="model.f_price_name"
89
+ v-model="model.f_price_name"
90
+ :options="$parent.$parent.getPricenames"
91
+ placeholder='请选择'
92
+ condition="f_price_name = '{}'"
93
+ close-on-select></v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">气表分类</label>
97
+ <v-select :value.sync="model.f_meter_classify"
98
+ v-model="model.f_meter_classify"
99
+ :options='$parent.$parent.metertypes' placeholder='请选择'
100
+ condition="f_meter_classify = '{}'"
101
+ close-on-select></v-select>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">气表品牌</label>
105
+ <v-select :value.sync="model.f_meter_brand"
106
+ v-model="model.f_meter_brand"
107
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
108
+ condition="f_meter_brand = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">气表型号</label>
113
+ <v-select :value.sync="model.f_meter_style"
114
+ v-model="model.f_meter_style"
115
+ :options='$parent.$parent.meterstyle[model.f_meter_brand]' placeholder='请选择'
116
+ condition="f_meter_style = '{}'"
117
+ close-on-select></v-select>
118
+ </div>
119
+ <div class="col-sm-2 form-group">
120
+ <label class="font_normal_body">气表状态</label>
121
+ <v-select :value.sync="model.f_table_state"
122
+ v-model="model.f_table_state"
123
+ :options='$parent.$parent.tablestate' placeholder='请选择'
124
+ condition="f_table_state = '{}'"
125
+ close-on-select></v-select>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label for="startDate" class="font_normal_body">建表日期</label>
129
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
130
+ v-model="model.startDate"
131
+ :value.sync="model.startDate"
132
+ :format="'yyyy-MM-dd'"
133
+ :show-reset-button="true"
134
+ condition="f_input_date >= '{} 00:00:00'">
135
+ </datepicker>
136
+ </div>
137
+ <div class="col-sm-2 form-group">
138
+ <label for="endDate" class="font_normal_body">建表日期</label>
139
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
140
+ v-model="model.endDate"
141
+ :value.sync="model.endDate"
142
+ :format="'yyyy-MM-dd'"
143
+ :show-reset-button="true"
144
+ condition="f_input_date <= '{} 23:59:59'">
145
+ </datepicker>
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label for="startDate" class="font_normal_body">通气日期</label>
149
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
150
+ v-model="model.startTQDate"
151
+ :value.sync="model.startTQDate"
152
+ :format="'yyyy-MM-dd'"
153
+ :show-reset-button="true"
154
+ condition="f_gas_date >= '{} 00:00:00'">
155
+ </datepicker>
156
+ </div>
157
+ <div class="col-sm-2 form-group">
158
+ <label for="endDate" class="font_normal_body">通气日期</label>
159
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
160
+ v-model="model.endTQDate"
161
+ :value.sync="model.endTQDate"
162
+ :format="'yyyy-MM-dd'"
163
+ :show-reset-button="true"
164
+ condition="f_gas_date <= '{} 23:59:59'">
165
+ </datepicker>
166
+ </div>
167
+ <div class="col-sm-2 form-group">
168
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;壁挂炉</label>
169
+ <v-select :value.sync="model.isbgl" v-model="model.isbgl"
170
+ :options='$parent.$parent.bgl' placeholder='请选择'
171
+ condition="isbgl = '{}'"
172
+ close-on-select></v-select>
173
+ </div>
174
+ <div class="col-sm-2 form-group">
175
+ <label class="font_normal_body">用户等级</label>
176
+ <v-select :value.sync="model.f_user_grade"
177
+ v-model="model.f_user_grade"
178
+ :options='$parent.$parent.usergrade' placeholder='请选择'
179
+ condition="f_user_grade = '{}'"
180
+ close-on-select></v-select>
181
+ </div>
182
+ <!--表册片区-->
183
+ <div class="col-sm-2 form-group">
184
+ <label class="font_normal_body">表册片区</label>
185
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
186
+ @change="$parent.$parent.inputtorchange"
187
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
188
+ style="width:60%"
189
+ close-on-select
190
+ condition="f_book_slice_area = '{}'"></v-select>
191
+ </div>
192
+ <div class="col-sm-2 form-group">
193
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
194
+ <v-select :value.sync="model.f_inputtor"
195
+ v-model="model.f_inputtor"
196
+ :options='$parent.$parent.inputtores' placeholder='请选择'
197
+ condition="f_inputtor = '{}'"
198
+ close-on-select :search="false">
199
+ </v-select>
200
+ </div>
201
+ <div class="col-sm-2 form-group">
202
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
203
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
204
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
205
+ style="width:60%"
206
+ close-on-select
207
+ condition="f_meter_book_num = '{}'"></v-select>
208
+ </div>
209
+ <div class="col-sm-2 form-group">
210
+ <label class="font_normal_body">&nbsp;表&nbsp;箱&nbsp;号</label>
211
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_metertitles" placeholder='表箱号'
212
+ condition="f_metertitles = '{}'">
213
+ </div>
214
+ <div class="col-sm-2 form-group">
215
+ <label for="startDate" class="font_normal_body">生产日期</label>
216
+ <datepicker id="startAZDate" placeholder="开始日期" style="width:60%"
217
+ v-model="model.startAZDate"
218
+ :value.sync="model.startAZDate"
219
+ :format="'yyyy-MM-dd'"
220
+ :show-reset-button="true"
221
+ condition="f_llj_date >= '{} 00:00:00'">
222
+ </datepicker>
223
+ </div>
224
+ <div class="col-sm-2 form-group">
225
+ <label for="endDate" class="font_normal_body">生产日期</label>
226
+ <datepicker id="endAZDate" placeholder="结束日期" style="width:60%"
227
+ v-model="model.endAZDate"
228
+ :value.sync="model.endAZDate"
229
+ :format="'yyyy-MM-dd'"
230
+ :show-reset-button="true"
231
+ condition="f_llj_date <= '{} 23:59:59'">
232
+ </datepicker>
233
+ </div>
234
+
235
+ </div>
236
+ </div>
237
+ </criteria>
238
+
239
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" :classname="$parent.classname">
240
+ <template partial='head'>
241
+ <tr>
242
+ <th>
243
+ <nobr>客户编号</nobr>
244
+ </th>
245
+ <th>
246
+ <nobr>客户名称</nobr>
247
+ </th>
248
+ <th>
249
+ <nobr>客户电话</nobr>
250
+ </th>
251
+ <th>
252
+ <nobr>身份证号</nobr>
253
+ </th>
254
+ <th>
255
+ <nobr>表册片区</nobr>
256
+ </th>
257
+ <th>
258
+ <nobr>客户地址</nobr>
259
+ </th>
260
+ <th>
261
+ <nobr>表上余额</nobr>
262
+ </th>
263
+ <th>
264
+ <nobr>客户类型</nobr>
265
+ </th>
266
+ <th>
267
+ <nobr>用气性质</nobr>
268
+ </th>
269
+ <th>
270
+ <nobr>表号</nobr>
271
+ </th>
272
+ <th>
273
+ <nobr>卡号</nobr>
274
+ </th>
275
+
276
+
277
+ <th>
278
+ <nobr>气价名称</nobr>
279
+ </th>
280
+ <th>
281
+ <nobr>气价详情</nobr>
282
+ </th>
283
+ <th>
284
+ <nobr>气表品牌</nobr>
285
+ </th>
286
+ <th>
287
+ <nobr>气表型号</nobr>
288
+ </th>
289
+ <th>
290
+ <nobr>户管员</nobr>
291
+ </th>
292
+ <th>
293
+ <nobr>通气人</nobr>
294
+ </th>
295
+ <th>
296
+ <nobr>通气时间</nobr>
297
+ </th>
298
+ <th>
299
+ <nobr>建表时间</nobr>
300
+ </th>
301
+ <th>
302
+ <nobr>生产日期</nobr>
303
+ </th>
304
+ <th>
305
+ <nobr>气表状态</nobr>
306
+ </th>
307
+ <th>
308
+ <nobr>是否壁挂炉</nobr>
309
+ </th>
310
+ <th>
311
+ <nobr>表箱号</nobr>
312
+ </th>
313
+ <th>
314
+ <nobr>抄表员</nobr>
315
+ </th>
316
+ <th>
317
+ <nobr>抄表册</nobr>
318
+ </th>
319
+ </tr>
320
+ </template>
321
+ <template partial='body'>
322
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;"><nobr>
323
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
324
+ </nobr> </td>
325
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
326
+ <nobr>{{row.f_user_name}}</nobr>
327
+ </td>
328
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
329
+ <nobr>{{row.f_user_phone}}</nobr>
330
+ </td>
331
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
332
+ <nobr>{{row.idnumber}}</nobr>
333
+ </td>
334
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
335
+ <nobr>{{row.f_address}}</nobr>
336
+ </td>
337
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
338
+ <nobr>{{row.f_book_slice_area}}</nobr>
339
+ </td>
340
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
341
+ <nobr>{{row.f_balance_amount}}</nobr>
342
+ </td>
343
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
344
+ <nobr>{{row.f_user_type}}</nobr>
345
+ </td>
346
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
347
+ <nobr>{{row.f_gasproperties}}</nobr>
348
+ </td>
349
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
350
+ <nobr>{{row.f_meternumber}}</nobr>
351
+ </td>
352
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
353
+ <nobr>{{row.f_card_id}}</nobr>
354
+ </td>
355
+
356
+
357
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
358
+ <nobr>{{row.f_price_name}}</nobr>
359
+ </td>
360
+ <th :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
361
+ <nobr>{{row.value}}</nobr>
362
+ </th>
363
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
364
+ <nobr>{{row.f_meter_brand}}</nobr>
365
+ </td>
366
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
367
+ <nobr>{{row.f_meter_style}}</nobr>
368
+ </td>
369
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
370
+ <nobr>{{row.f_inputtor}}</nobr>
371
+ </td>
372
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
373
+ <nobr>{{row.f_gas_person}}</nobr>
374
+ </td>
375
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
376
+ <nobr>{{row.f_gas_date}}</nobr>
377
+ </td>
378
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
379
+ <nobr>{{row.f_input_date}}</nobr>
380
+ </td>
381
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
382
+ <nobr>{{row.f_llj_date}}</nobr>
383
+ </td>
384
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
385
+ <nobr>{{row.f_table_state}}</nobr>
386
+ </td>
387
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
388
+ <nobr>{{row.isbgl}}</nobr>
389
+ </td>
390
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
391
+ <nobr>{{row.f_metertitles}}</nobr>
392
+ </td>
393
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
394
+ <nobr>{{row.f_inputtor}}</nobr>
395
+ </td>
396
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
397
+ <nobr>{{row.f_book_name}}</nobr>
398
+ <!-- f_meter_name-->
399
+ </td>
400
+ </template>
401
+ <template partial='foot'>
402
+ </template>
403
+ </data-grid>
404
+ </criteria-paged>
405
+
406
+ <table class="table-hover">
407
+ <tr style="position: relative" class="table-bordered">
408
+ <td
409
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
410
+ 汇总信息
411
+ </td>
412
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
413
+ 表上余额合计&emsp;{{sumsmodel.f_balance_amount}}
414
+ </td>
415
+ </tr>
416
+ </table>
417
+
418
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
419
+ <!--<header slot="modal-header" class="modal-header text-center">-->
420
+ <!--<h4 class="modal-title">打印列选择</h4>-->
421
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
422
+ <!--<label for="f_generations" class="font-size">全选</label>-->
423
+ <!--</header>-->
424
+ <!--<article slot="modal-body">-->
425
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
426
+ <!--<div class="col-sm-3" v-for="f in fields">-->
427
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
428
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
429
+ <!--</div>-->
430
+ <!--</div>-->
431
+ <!--</article>-->
432
+ <!--<footer slot="modal-footer" class="modal-footer">-->
433
+ <!--<center>-->
434
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
435
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
436
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
437
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
438
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
439
+ <!--:fields="modelval" :printpage="true">-->
440
+ <!--</print-table>-->
441
+ <!--</center>-->
442
+ <!--</footer>-->
443
+ <!--</modal>-->
444
+ </div>
445
+ <div v-if="show">
446
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
447
+ </div>
448
+ </div>
449
+ </div>
450
+ </div>
451
+ </template>
452
+
453
+ <script>
454
+ import {PagedList} from 'vue-client'
455
+ import exportConfig from './exportConfig'
456
+
457
+ let readySomething = async function (self) {
458
+ self.$MagGetSaleParam.initinputtor();
459
+ self.getinputtores();
460
+ self.initmeterbook();
461
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
462
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
463
+ // await self.$refs.paged.$refs.cri.search()
464
+ await self.$MagLoadParams.loadParam()
465
+ self.initParams()
466
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
467
+ }
468
+
469
+ export default {
470
+ title: '表具查询',
471
+ data() {
472
+ return {
473
+ other:[],
474
+ footer:[],
475
+ model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
476
+ criteriaShow: false,
477
+ orgCondtionStr: '',
478
+
479
+ modelval: [],
480
+ printshow: false,
481
+ all: false,
482
+ fields: {},
483
+ thead: '',
484
+ tfoot: '',
485
+ initres: {
486
+ org:[this.$login.f.orgid],
487
+ dep:[],
488
+ user:[],
489
+ },
490
+ show:false,
491
+ rowdata:{},
492
+ meterbrands: [],
493
+ // 气表型号
494
+ meterstyle: {},
495
+ pricenames: [],
496
+ gasproperties:[],
497
+ inputtouPerson: [],
498
+ meterbooks:[{label: '全部',value: ''}], //抄表册
499
+ inputtores:[{label: '全部',value: ''}],
500
+ prices: [],
501
+ //合计数据
502
+ sumsmodel: {},
503
+ //表册片区
504
+ bookSlice:[{label: '全部',value: ''}],
505
+ inputtores:[{label: '全部',value: ''}], //抄表员
506
+ f_filialeid: this.$login.f.f_orgid,
507
+ allorgid:[],
508
+ tempfalg :false,
509
+ lastorgstr:'',
510
+ }
511
+ },
512
+ ready() {
513
+ readySomething(this).then(() => {
514
+ this.$emit('ready')
515
+ }).catch((error) => {
516
+ this.$emit('error', error)
517
+ })
518
+ },
519
+ methods: {
520
+ async initmeterbook(orgstr){
521
+ if(orgstr == null ){
522
+ orgstr = this.f_filialeid;
523
+ }
524
+ //获取新的抄表册,先去清理所有的抄表册
525
+ this.$GetSaleParam.meterbooks = [];
526
+ //开始加载新的抄表册
527
+ await this.$LoadParams.loadMeterBook(orgstr)
528
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
529
+ },
530
+ async getinputtores () {
531
+ // 获取抄表员
532
+ let rs = []
533
+ if (this.$login.f.f_gasman.length > 0) {
534
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
535
+ let temp = {
536
+ label: this.$login.f.f_gasman[i].name,
537
+ value: this.$login.f.f_gasman[i].name
538
+ }
539
+ rs.push(temp)
540
+ }
541
+ }
542
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
543
+ },
544
+ getotherfooter () {
545
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
546
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
547
+ this.other = [];
548
+ this.footer = [];
549
+ let exportdata = this.getCondition;
550
+ let otherInData = [];
551
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
552
+ let footerData = [], exportfield = this.getExportField;
553
+ footerData.push("合计");
554
+ let self = this;
555
+ for (var field in self.sumsmodel) {
556
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
557
+ }
558
+ this.footer.push(footerData);
559
+ this.other.push(otherInData);
560
+ },
561
+ search(){
562
+ this.$refs.paged.$refs.cri.search()
563
+ },
564
+ cancel() {
565
+ this.show = false
566
+ },
567
+ showmsg(obj){
568
+ this.rowdata=obj
569
+ this.show=true
570
+ },
571
+ selfSearch(args) {
572
+ //抄表员查询条件
573
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
574
+ if(this.inputtouPerson.length !== 0){
575
+ let str = JSON.stringify(this.inputtouPerson)
576
+ str = str.replace(/"/g,`'`)
577
+ str = str.replace(/\[/g,``)
578
+ str = str.replace(/\]/g,``)
579
+ console.log("=====抄表员model22222222222绑定====",str)
580
+ //查询多个抄表员时条件
581
+ args.condition += ` and f_inputtor in ( ${str} )`
582
+ }
583
+ if (!this.orgCondtionStr) {
584
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
585
+ } else {
586
+ args.condition = `${args.condition}` + this.orgCondtionStr
587
+ }
588
+ this.model.search(args.condition, args.model)
589
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
590
+ },
591
+ clear() {
592
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
593
+ this.$refs.paged.$refs.cri.model[key] = []
594
+ })
595
+ },
596
+ hidden() {
597
+ this.criteriaShow = !this.criteriaShow
598
+ },
599
+ async getRes(condition) {
600
+ this.orgCondtionStr = condition
601
+
602
+ },
603
+ stamp() {
604
+ this.all = false
605
+ //默认选择要打印的列
606
+ this.modelval = defaultPrint.config
607
+ this.fields = this.getfield
608
+ console.log('所有打印字段', this.fields)
609
+ this.printshow = true
610
+ this.put()
611
+ },
612
+ put() {
613
+ // 对Modelval进行排序
614
+ this.sortModelval()
615
+ this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
616
+ for (let key of this.modelval) {
617
+ this.thead += '<th>' + this.fields[key] + '</th>'
618
+ }
619
+ this.thead += '</tr>'
620
+ },
621
+ print() {
622
+ this.$refs.print.PrintAsFile()
623
+ this.printshow = false
624
+ },
625
+ close() {
626
+ this.printshow = false
627
+ this.all = false
628
+ },
629
+ userTypeChange () {
630
+ this.gasproperties=[]
631
+ if(this.$refs.paged.$refs.cri.model !==null) {
632
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
633
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
634
+ }
635
+ else{
636
+ this.gasproperties =[{label: '全部', value: ''}]
637
+ }
638
+ },
639
+ initParams() {
640
+ // 初始化气表品牌
641
+ let brandArr = []
642
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
643
+ let temp = {}
644
+ temp.label = item.label
645
+ temp.value = item.value.f_meter_brand
646
+ brandArr.push(temp)
647
+ // 取出对应气表型号
648
+ let styleArr = []
649
+ for (let row of item.value.gasmodel) {
650
+ styleArr.push({label: row.label,value: row.value.f_meter_style})
651
+ }
652
+ this.meterstyle[temp.value] = styleArr
653
+ })
654
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
655
+ //初始化气表价格
656
+ this.prices = this.$MagGetSaleParam.getPrices();
657
+ },
658
+ // 对选择的列进行排序
659
+ sortModelval() {
660
+ let sortModel = []
661
+ Object.keys(this.fields).forEach((key) => {
662
+ if (this.modelval.includes(key)) {
663
+ sortModel.push(key)
664
+ }
665
+ })
666
+ this.modelval = sortModel
667
+ console.log('选择的打印的字段', this.modelval)
668
+ },
669
+ async updateParams() {
670
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
671
+ this.inputtores = [];
672
+ this.inputtores.push({label: "全部", value: ""})
673
+ this.initSlice(this.f_filialeid)
674
+ if(this.allorgid!=null){
675
+ this.allorgid.forEach((res)=>{
676
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
677
+ })
678
+ }
679
+ },
680
+ async initSlice (val) {
681
+ if (val) {
682
+ let getAllArea = await this.$resetpost('/rs/search', {
683
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
684
+ userid: this.$login.f.id
685
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
686
+ let arr = getAllArea.data.filter((res) => {
687
+ return res.parentid == val
688
+ })
689
+ this.bookSlice = []
690
+ console.log('过滤之后的片区-------------------', arr)
691
+ arr.forEach((res) => {
692
+ this.bookSlice.push({label: res.name, value: res.name})
693
+ })
694
+ }
695
+ },
696
+ //表册片区和抄表册关联
697
+ async inputtorchange(){
698
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
699
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
700
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
701
+ if((val2.length>0)){
702
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
703
+ /*if (val1[0]){
704
+ condition = condition+ ` and f_meter_book = '${val1[0]}' `
705
+ }*/
706
+ if(val2[0]) {
707
+ condition = condition + ` and f_book_slice_area = '${val2}' `
708
+ }
709
+ let param={
710
+ items:'*',
711
+ tablename:'t_meter_book',
712
+ condition:condition,
713
+ orderitem:'id'
714
+ }
715
+ let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
716
+ if (getMeterBooks.data) {
717
+ if(getMeterBooks.data.length >0){
718
+ let rs = [];
719
+ getMeterBooks.data.forEach((item)=>{
720
+ let temp = {
721
+ label:item.f_book_name,
722
+ value:item.id
723
+ };
724
+ rs.push(temp);
725
+
726
+ })
727
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
728
+ }else{
729
+ this.meterbooks = [{label: '全部',value: ''}];
730
+ }
731
+ }
732
+ }else{
733
+ this.meterbooks = [{label: '全部',value: ''}];
734
+ this.initmeterbook();
735
+ }
736
+ },
737
+ },
738
+ watch: {
739
+ 'all'(val) {
740
+ if (val) {
741
+ this.modelval = this.bodyData
742
+ } else {
743
+ this.modelval = defaultPrint.config
744
+ this.put()
745
+ }
746
+ },
747
+ sumsmodel:{
748
+ handler: function(val) {
749
+ this.getotherfooter();
750
+ },
751
+ deep: true
752
+ },
753
+ 'modelval.length'() {
754
+ this.put()
755
+ },
756
+ async 'orgCondtionStr'(val) {
757
+ //更新抄表册
758
+ this.meterbooks = [{label: '全部',value: ''}];
759
+ if(this.lastorgstr != val){
760
+ this.tempfalg = true;
761
+ this.lastorgstr = val;
762
+ }
763
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
764
+ this.tempfalg = false;
765
+ let a = val.substring(val.indexOf("(")+2)
766
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
767
+ }
768
+ let res = val.match(/'(.*?)'/)
769
+ console.log('正则提取:',res && res[1])
770
+ if (res) {
771
+ this.f_filialeid = res[1]
772
+ if(res.input !=null){
773
+ let resorgid = res.input.substring(res.input.indexOf("'"));
774
+ if(resorgid!= null && resorgid!=''){
775
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
776
+ // resorgid = resorgid.replaceAll("'","");
777
+ resorgid = resorgid.replace(/'/g,"");
778
+ this.allorgid = resorgid.split(",")
779
+ }
780
+ }
781
+ this.updateParams()
782
+ }
783
+ },
784
+ },
785
+ computed: {
786
+ authArr () {
787
+ return this.$login.r ? this.$login.r : []
788
+ },
789
+ getPricenames() {
790
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
791
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
792
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
793
+ // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
794
+ if(this.$refs.paged.$refs.cri.model !==null) {
795
+ let rs = []
796
+ let priceArr = []
797
+ if ( pricetype.length >0) {
798
+ let params = {
799
+ f_price_type: pricetype[0],
800
+ filter: this.f_filialeid,
801
+ prices: this.prices
802
+ }
803
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
804
+ let temp = {}
805
+ temp.label = item.label
806
+ temp.value = item.value.f_price_name
807
+ priceArr.push(temp)
808
+ })
809
+ rs = [{label: '全部', value: ''}, ...priceArr]
810
+ }
811
+ if (rs.length === 0) {
812
+ console.log('rs读出来是空')
813
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
814
+ }
815
+ return rs
816
+ }
817
+ },
818
+ getCondition() {
819
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
820
+ },
821
+ getfield() {
822
+ let data = {}
823
+ this.bodyData.forEach((value, index) => {
824
+ data[this.bodyData[index]] = this.headData[index]
825
+ })
826
+ //合计字段打印
827
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
828
+ if (this.sumsmodel) {
829
+ Object.keys(this.sumsmodel).forEach((key) => {
830
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
831
+ })
832
+ } else {
833
+ this.tfoot += '暂无'
834
+ }
835
+ this.tfoot += '</th></tr>'
836
+ return data
837
+ },
838
+ getExportField() {
839
+ return exportConfig.meterConfig
840
+ },
841
+ areas() {
842
+ let rs = []
843
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
844
+ let temp = {
845
+ label: this.$login.f.f_allArea[i].label,
846
+ value: this.$login.f.f_allArea[i].label
847
+ }
848
+ rs.push(temp)
849
+ }
850
+ return [{label: '全部', value: ''}, ...rs]
851
+ },
852
+ sliceArea() {
853
+ let rs = []
854
+ if (this.$refs.paged.$refs.cri.model.f_area.length > 0) {
855
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
856
+ if (this.$login.f.f_allArea[i].label === this.$refs.paged.$refs.cri.model.f_area[0]) {
857
+ rs = this.$login.f.f_allArea[i].value
858
+ }
859
+ }
860
+ }
861
+ return [{label: '全部', value: ''}, ...rs]
862
+ },
863
+ usertypes() {
864
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
865
+ },
866
+ // gasproperties() {
867
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
868
+ // },
869
+
870
+ metertypes() {
871
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
872
+ },
873
+ // meterbrands() {
874
+ // let arr = []
875
+ // this.$MagGetSaleParam.getGasbrand().forEach((item) => {
876
+ // let temp = {}
877
+ // temp.label = item.label
878
+ // temp.value = item.value.f_meter_brand
879
+ // arr.push(temp)
880
+ // })
881
+ // return [{label: '全部', value: ''}, ...arr]
882
+ // },
883
+ pricetypes() {
884
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
885
+ },
886
+ tablestate() {
887
+ return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
888
+ },
889
+ bgl(){
890
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
891
+ },
892
+ usergrade(){
893
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
894
+ }
895
+ }
896
+ }
897
+ </script>
898
+ <style>
899
+ .back-red{ /* 红色背景 */
900
+ background-color: #F6C6CE;
901
+ }
902
+ .back-blue{ /* 蓝色背景 */
903
+
904
+ }
905
+ </style>