manage-client 3.2.97-1 → 3.2.99

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 (44) 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/HandplanQuery.vue +1370 -1369
  14. package/src/components/sale/businessquery/InspectListGas.vue +552 -552
  15. package/src/components/sale/businessquery/InspectListUser.vue +449 -449
  16. package/src/components/webmeter/instruction/NewQueryInstruct.vue +446 -446
  17. package/src/filiale/liaoyuan/MeterQuery.vue +905 -905
  18. package/src/filiale/liaoyuan/RecordInfoQuery.vue +1163 -1163
  19. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  20. package/src/filiale/liaoyuan/sale.js +10 -13
  21. package/src/filiale/macheng/FxGasTable.vue +236 -236
  22. package/src/filiale/macheng/ManageDayGas.vue +248 -248
  23. package/src/filiale/macheng/ManageHandSellMoney.vue +249 -249
  24. package/src/filiale/macheng/ManageMonthGas.vue +250 -250
  25. package/src/filiale/macheng/ManageOtherCharge.vue +251 -251
  26. package/src/filiale/macheng/ManageSellType.vue +287 -287
  27. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  28. package/src/filiale/macheng/SellingTable.vue +219 -219
  29. package/src/filiale/macheng/UserBalanceReport.vue +178 -178
  30. package/src/filiale/macheng/config/exportConfig.js +67 -67
  31. package/src/filiale/macheng/reportManage.js +19 -19
  32. package/src/filiale/macheng/sale.js +11 -11
  33. package/src/filiale/meihekou/HandplanQuery.vue +1234 -1234
  34. package/src/filiale/meihekou/UserQuery.vue +773 -773
  35. package/src/filiale/qianneng/OtherChargeQuery.vue +646 -646
  36. package/src/filiale/qianneng/sale.js +12 -12
  37. package/src/main.js +66 -65
  38. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  39. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  40. package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
  41. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  42. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  43. package/build/tmp/jar/MANIFEST.MF +0 -2
  44. package/src/filiale/liaoyuan/HandplanQuery.vue +0 -1288
@@ -1,676 +1,676 @@
1
- <template>
2
- <div id="unit" class="flex-row" >
3
- <div class="basic-main" @keyup.enter="search" >
4
- <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged @sort="sort">
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- condition="f_operate_date >= '{}'">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- condition="f_operate_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group ">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
- </div>
39
-
40
-
41
- <!--
42
- -->
43
-
44
-
45
- <div class="span" style="float:right;">
46
- <button class="button_search button_spacing" @click="search()">查询</button>
47
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
-
50
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
51
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
52
- sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
53
- :choose-col="true">
54
- </export-excel>
55
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
56
- :defaultfield="$parent.$parent.defaultfield"
57
- titletable="换表记录"
58
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
59
- <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>
60
- </div>
61
- </div>
62
- <div class="row" v-show="$parent.$parent.criteriaShow">
63
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">客户名称</label>
66
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
67
- condition="f_user_name like '%{}%'" placeholder="客户名称">
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">客户电话</label>
71
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
72
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
73
- </div>
74
- <div class="col-sm-2 form-group">
75
- <label class="font_normal_body">客户地址</label>
76
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
77
- condition="f_address like '%{}%'" placeholder='客户地址'>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">用户类型</label>
81
- <v-select :value.sync="model.f_user_type"
82
- v-model="model.f_user_type"
83
- :options='$parent.$parent.userTypes' placeholder='请选择'
84
- condition="f_user_type = '{}'"
85
- close-on-select></v-select>
86
- </div>
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">新表品牌</label>
89
- <v-select :value.sync="model.f_meter_brand"
90
- v-model="model.f_meter_brand"
91
- :options='$parent.$parent.meterbrands' placeholder='请选择'
92
- condition="f_meter_brand = '{}'"
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_brand_old"
98
- v-model="model.f_meter_brand_old"
99
- :options='$parent.$parent.meterbrands' placeholder='请选择'
100
- condition="f_meter_brand_old = '{}'"
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_type"
106
- v-model="model.f_type"
107
- :options='$parent.$parent.changeTypes' placeholder='请选择'
108
- condition="f_type = '{}'"
109
- close-on-select></v-select>
110
- </div>
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
113
- <v-select :value.sync="model.f_change_operator"
114
- v-model="model.f_change_operator"
115
- :options='$parent.$parent.changePerson' placeholder='请选择'
116
- condition="f_change_operator = '{}'"
117
- close-on-select></v-select>
118
- </div>
119
- <div class="col-sm-2 form-group">
120
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
121
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
122
- condition="f_card_id = '{}'" placeholder='卡号'>
123
- </div>
124
- <div class="col-sm-2 form-group">
125
- <label class="font_normal_body">换表状态</label>
126
- <v-select :value.sync="model.f_state"
127
- v-model="model.f_state"
128
- :options='$parent.$parent.charge_state' placeholder='请选择'
129
- condition="f_state = '{}'"
130
- close-on-select></v-select>
131
- </div>
132
- <div class="col-sm-2 form-group">
133
- <label class="font_normal_body">旧表类型</label>
134
- <v-select :value.sync="model.f_meter_type_old"
135
- v-model="model.f_meter_type_old"
136
- :options='$parent.$parent.meterClassify' placeholder='请选择'
137
- condition="f_meter_type_old = '{}'"
138
- close-on-select></v-select>
139
- </div>
140
- <div class="col-sm-2 form-group">
141
- <label class="font_normal_body">新表类型</label>
142
- <v-select :value.sync="model.f_meter_type"
143
- v-model="model.f_meter_type"
144
- :options='$parent.$parent.meterClassify' placeholder='请选择'
145
- condition="f_meter_type = '{}'"
146
- close-on-select></v-select>
147
- </div>
148
- <div class="col-sm-2 form-group">
149
- <label class="font_normal_body">是否免费</label>
150
- <v-select :value.sync="model.f_changemeter_fee"
151
- v-model="model.f_changemeter_fee"
152
- :options='$parent.$parent.changemeter_fee' placeholder='请选择'
153
- condition="f_changemeter_fee {}"
154
- close-on-select></v-select>
155
- </div>
156
- <div class="col-sm-2 form-group">
157
- <label class="font_normal_body">付款方式</label>
158
- <v-select id="f_payment"
159
- v-model="model.f_payment"
160
- placeholder='请选择'
161
- condition="f_payment ='{}'"
162
- :value.sync="model.f_payment"
163
- :options='$parent.$parent.payments'
164
- close-on-select clear-button>
165
- </v-select>
166
- </div>
167
- <div class="col-sm-2 form-group">
168
- <label class="font_normal_body">表&emsp;&emsp;号</label>
169
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
170
- condition="f_meternumber = '{}'" placeholder='表号'>
171
- </div>
172
- <div class="col-sm-2 form-group">
173
- <label class="font_normal_body">表&ensp;封&ensp;号</label>
174
- <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
175
- condition="f_metertitles = '{}'" placeholder='表封号'>
176
- </div>
177
- </div>
178
- </div>
179
- </criteria>
180
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
181
- <template partial='head'>
182
- <tr>
183
- <th>
184
- <!--<nobr>客户编号</nobr>-->
185
- <data-order field="f_userinfo_code" name="客户编号"
186
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
187
- </th>
188
- <th>
189
- <nobr>客户名称</nobr>
190
- </th>
191
- <th>
192
- <nobr>档案编号</nobr>
193
- </th>
194
- <th>
195
- <nobr>付款方式</nobr>
196
- </th>
197
- <th>
198
- <!--<nobr>客户地址</nobr>-->
199
- <data-order field="f_address" name="客户地址"
200
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
201
- </th>
202
- <th>
203
- <nobr>换表类型</nobr>
204
- </th>
205
- <th>
206
- <nobr>换表费</nobr>
207
- </th>
208
- <th>
209
- <nobr>旧表号</nobr>
210
- </th>
211
- <th>
212
- <nobr>新表号</nobr>
213
- </th>
214
- <th>
215
- <nobr>表封号</nobr>
216
- </th>
217
- <th>
218
- <nobr>旧气表品牌</nobr>
219
- </th>
220
- <th>
221
- <nobr>新气表品牌</nobr>
222
- </th>
223
- <th>
224
- <nobr>补气量</nobr>
225
- </th>
226
- <th>
227
- <nobr>补气金额</nobr>
228
- </th>
229
- <th>
230
- <nobr>订单编号</nobr>
231
- </th>
232
- <th>
233
- <nobr>备注</nobr>
234
- </th>
235
- <th>
236
- <nobr>换表人</nobr>
237
- </th>
238
- <th>
239
- <nobr>状态</nobr>
240
- </th>
241
- <th>
242
- <!-- <nobr>换表日期</nobr>-->
243
- <data-order field="f_operate_date" name="换表日期"
244
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
245
- </th>
246
- <th>
247
- <nobr>人员</nobr>
248
- </th>
249
- <th>
250
- <nobr>部门</nobr>
251
- </th>
252
- <th>
253
- <nobr>公司</nobr>
254
- </th>
255
- <th><nobr>旧表类型</nobr></th>
256
- <th><nobr>新表类型</nobr></th>
257
- <th><nobr>用户类型</nobr></th>
258
- <th><nobr>附件</nobr></th>
259
- </tr>
260
- </template>
261
- <template partial='body'>
262
- <td style="text-align: center;"><nobr>
263
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
264
- </nobr> </td>
265
- <td style="text-align: center;">
266
- <nobr>{{row.f_user_name}}</nobr>
267
- </td>
268
- <td style="text-align: center;">
269
- <nobr>{{row.f_olduserinfo_code}}</nobr>
270
- </td>
271
- <td style="text-align: center;">
272
- <nobr>{{row.f_payment}}</nobr>
273
- </td>
274
- <td style="text-align: center;">
275
- <nobr>{{row.f_address}}</nobr>
276
- </td>
277
-
278
- <td style="text-align: center;">
279
- <nobr>{{row.f_type}}</nobr>
280
- </td>
281
- <td style="text-align: center;">
282
- <nobr>{{row.f_changemeter_fee}}</nobr>
283
- </td>
284
- <td style="text-align: center;">
285
- <nobr>{{row.f_meternumber_old}}</nobr>
286
- </td>
287
- <td style="text-align: center;">
288
- <nobr>{{row.f_meternumber}}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>{{row.f_metertitles}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{row.f_meter_brand_old}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_meter_brand}}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{row.f_remanent_gas}}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{row.f_remanent_money}}</nobr>
304
- </td>
305
- <td style="text-align: center;">
306
- <nobr>{{row.f_serial_number}}</nobr>
307
- </td>
308
- <td style="text-align: center;">
309
- <nobr>{{row.f_comments}}</nobr>
310
- </td>
311
- <td style="text-align: center;">
312
- <nobr>{{row.f_change_operator}}</nobr>
313
- </td>
314
- <td style="text-align: center;">
315
- <nobr>{{row.f_state}}</nobr>
316
- </td>
317
- <td style="text-align: center;">
318
- <nobr>{{row.f_operate_date}}</nobr>
319
- </td>
320
- <td style="text-align: center;">
321
- <nobr>{{row.f_operator}}</nobr>
322
- </td>
323
- <td style="text-align: center;">
324
- <nobr>{{row.f_depname}}</nobr>
325
- </td>
326
- <td style="text-align: center;">
327
- <nobr>{{row.f_orgname}}</nobr>
328
- </td>
329
- <td style="text-align: center;">
330
- <nobr>{{row.f_meter_type_old}}</nobr>
331
- </td>
332
- <td style="text-align: center;">
333
- <nobr>{{row.f_meter_type}}</nobr>
334
- </td>
335
- <td style="text-align: center;">
336
- <nobr>{{row.f_user_type}}</nobr>
337
- </td>
338
- <td style="text-align: center;"><nobr>
339
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
340
- </nobr></td>
341
- </template>
342
- <template partial='foot'></template>
343
- </data-grid>
344
- </criteria-paged>
345
- <table class="table-hover">
346
- <tr style="position: relative" class="table-bordered">
347
- <td
348
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
349
- 汇总信息
350
- </td>
351
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
352
- 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
353
- </td>
354
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
355
- 补气量合计:&emsp;{{sumsmodel.f_remanent_gas}}
356
- </td>
357
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
358
- 补气金额合计:&emsp;{{sumsmodel.f_remanent_money}}
359
- </td>
360
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
361
- 户数合计:&emsp;{{sumsmodel.hushu}}
362
- </td>
363
- </tr>
364
- </table>
365
- <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
366
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
367
- <!--<header slot="modal-header" class="modal-header text-center">-->
368
- <!--<h4 class="modal-title">打印列选择</h4>-->
369
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
370
- <!--<label for="f_generations" class="font-size">全选</label>-->
371
- <!--</header>-->
372
- <!--<article slot="modal-body">-->
373
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
374
- <!--<div class="col-sm-3" v-for="f in fields">-->
375
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
376
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
377
- <!--</div>-->
378
- <!--</div>-->
379
- <!--</article>-->
380
- <!--<footer slot="modal-footer" class="modal-footer">-->
381
- <!--<center>-->
382
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
383
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
384
- <!--<print-table :model='model' v-show="false" v-ref:print-->
385
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
386
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
387
- <!--:fields="modelval" :printpage="true">-->
388
- <!--</print-table>-->
389
- <!--</center>-->
390
- <!--</footer>-->
391
- <!--</modal>-->
392
- </div>
393
- <div class="flex" v-if="show">
394
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
395
- </div>
396
- </div>
397
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
398
- <article slot="modal-body">
399
- <upload :blodid="selected.id" v-ref:upload isremark="false" fusetype="换表&清零"></upload>
400
- </article>
401
- <footer slot="modal-footer" class="modal-footer">
402
- </footer>
403
- </modal>
404
- </div>
405
- </template>
406
- <script>
407
- import {PagedList} from 'vue-client'
408
- import defaultPrint from '../config/DefaultPrint'
409
- import exportConfig from '../config/exportConfig'
410
-
411
- let readySomething = async function (self) {
412
-
413
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
414
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
415
-
416
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
417
- // self.$refs.paged.$refs.cri.search()
418
- await self.$MagLoadParams.loadParam()
419
- self.initParams()
420
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
421
- }
422
- export default {
423
-
424
- props:['data'],
425
- title: '换表查询',
426
- data() {
427
- return {
428
- data: {},
429
- other:[],
430
- footer:[],
431
- meterbrands: [],
432
- pricenames: [],
433
- model: new PagedList('rs/sql/changeMeterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0,hushu:0}),
434
- criteriaShow: false,
435
- orgCondtionStr: '',
436
- modelval: [],
437
- printshow: false,
438
- all: false,
439
- fields: {},
440
- initres: {
441
- org:[this.$login.f.orgid],
442
- dep:[],
443
- user:[],
444
- },
445
- config: {
446
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
447
- },
448
- //排序
449
- orderitem:'f_operate_date desc',
450
- orderFields: {
451
- f_operate_date: 'no'
452
- },
453
- show:false,
454
- rowdata:{},
455
- showupload:false,
456
- selected:{},
457
- thead: '',
458
- tfoot: '',
459
- defaultfield: [],
460
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
461
-
462
- //合计数据
463
- sumsmodel: {},
464
- changemeter_fee:[
465
- {label: '全部', value: ''},
466
- {label: '销售', value: '> 0'},
467
- {label: '免费', value: '= 0'}
468
- ]
469
- }
470
-
471
- },
472
- ready() {
473
-
474
- console.log(this.$parent.startDate)
475
- console.log(this.$parent.$parent.startDate)
476
- console.log(this.$parent.$parent.$parent.startDate)
477
- this.startDate=this.$parent.startDate
478
- this.endDate=this.$parent.endDate
479
- console.log("this",this)
480
- readySomething(this)
481
- },
482
- methods: {
483
- view(row){
484
- this.showupload = true
485
- this.selected= row
486
- console.log("11",row)
487
- },
488
- search(){
489
- this.$refs.paged.$refs.cri.search()
490
- },
491
- cancel() {
492
- this.show = false
493
- },
494
- showmsg(obj){
495
- this.rowdata=obj
496
- this.show=true
497
- },
498
- getotherfooter () {
499
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
500
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
501
- this.other = [];
502
- this.footer = [];
503
- let exportdata = this.getCondition;
504
- let otherInData = [];
505
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
506
- let footerData = [], exportfield = this.getfield;
507
- footerData.push("合计");
508
- let self = this;
509
- for (var field in self.sumsmodel) {
510
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
511
- }
512
- this.footer.push(footerData);
513
- this.other.push(otherInData);
514
- },
515
- async initParams() {
516
- // 初始化气表品牌
517
- let brandArr = []
518
- await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
519
- let temp = {}
520
- temp.label = item.label
521
- temp.value = item.value.f_meter_brand
522
- brandArr.push(temp)
523
- })
524
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
525
-
526
- },
527
- async selfSearch(args) {
528
- if (this.data) {
529
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
530
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
531
- }
532
- args.condition = `${args.condition}` + this.orgCondtionStr
533
- await this.model.search(args.condition, args.model)
534
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
535
-
536
- this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
537
-
538
- },
539
- clear() {
540
- //清空部门和人员
541
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
542
- //部门和人员变为全选
543
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
544
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
545
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
546
- this.$refs.paged.$refs.cri.model[key] = []
547
- })
548
- },
549
- show() {
550
- this.criteriaShow = true
551
- },
552
- hidden() {
553
- this.criteriaShow = !this.criteriaShow
554
- },
555
- getRes(obj) {
556
- console.log(obj,"========")
557
- this.orgCondtionStr = obj
558
- },
559
- stamp() {
560
- this.all = false
561
- //默认选择要打印的列
562
- this.modelval = defaultPrint.config
563
- this.fields = this.getfield
564
- console.log('所有打印字段', this.fields)
565
- this.printshow = true
566
- this.put()
567
- },
568
- dealmsg(val) {
569
- console.log('---------------dealmsg')
570
- val.model = this.model.model
571
- this.$dispatch('deal-msg', val)
572
- },
573
- put() {
574
- // 对Modelval进行排序
575
- this.sortModelval()
576
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
577
- for (let key of this.modelval) {
578
- this.thead += '<th>' + this.fields[key] + '</th>'
579
- }
580
- this.thead += '</tr>'
581
- },
582
- print() {
583
- this.$refs.print.PrintAsFile()
584
- this.printshow = false
585
- },
586
- close() {
587
- this.printshow = false
588
- this.all = false
589
- },
590
- // 对选择的列进行排序
591
- sortModelval() {
592
- let sortModel = []
593
- Object.keys(this.fields).forEach((key) => {
594
- if (this.modelval.includes(key)) {
595
- sortModel.push(key)
596
- }
597
- })
598
- this.modelval = sortModel
599
- console.log('选择的打印的字段', this.modelval)
600
- },
601
- sort (field, rule) {
602
- // 将所有排序方式设为不排序,实现相互排斥
603
- for (let key in this.orderFields) {
604
- if (key === field) {
605
- this.orderFields[key] = rule
606
- } else {
607
- this.orderFields[key] = 'no'
608
- }
609
- }
610
- // 如果新规则不排序,还原为默认排序
611
- if (rule === 'no') {
612
- this.model.paramSource.orderitem = `'${this.orderitem}'`
613
- } else {
614
- this.model.paramSource.orderitem = `'${field} ${rule}'`
615
- }
616
-
617
- this.search()
618
- },
619
- },
620
- watch: {
621
- 'all'(val) {
622
- if (val) {
623
- this.modelval = this.bodyData
624
- } else {
625
- this.modelval = defaultPrint.config
626
- this.put()
627
- }
628
- },
629
- 'modelval.length'() {
630
- this.put()
631
- },
632
- sumsmodel:{
633
- handler: function(val) {
634
- this.getotherfooter();
635
- },
636
- deep: true
637
- }
638
- },
639
- computed: {
640
- // getstart(){
641
- // return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
642
- // },
643
- getCondition() {
644
- return {
645
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
646
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
647
- },
648
- getfield() {
649
- return exportConfig.changemeterConfig
650
- },
651
- changeTypes() {
652
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
653
- },
654
- userTypes() {
655
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
656
- },
657
- meterClassify() {
658
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
659
- },
660
- changePerson() {
661
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
662
- },
663
- charge_state() {
664
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
665
- },
666
- payments() {
667
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
668
- }
669
- }
670
- }
671
- </script>
672
- <style scoped>
673
- .showbottom{
674
- height:95%
675
- }
676
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row" >
3
+ <div class="basic-main" @keyup.enter="search" >
4
+ <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group ">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
+ </div>
39
+
40
+
41
+ <!--
42
+ -->
43
+
44
+
45
+ <div class="span" style="float:right;">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
+
50
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
51
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
52
+ sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
53
+ :choose-col="true">
54
+ </export-excel>
55
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
56
+ :defaultfield="$parent.$parent.defaultfield"
57
+ titletable="换表记录"
58
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
59
+ <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>
60
+ </div>
61
+ </div>
62
+ <div class="row" v-show="$parent.$parent.criteriaShow">
63
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">客户名称</label>
66
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
67
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">客户电话</label>
71
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
72
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">客户地址</label>
76
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
77
+ condition="f_address like '%{}%'" placeholder='客户地址'>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">用户类型</label>
81
+ <v-select :value.sync="model.f_user_type"
82
+ v-model="model.f_user_type"
83
+ :options='$parent.$parent.userTypes' placeholder='请选择'
84
+ condition="f_user_type = '{}'"
85
+ close-on-select></v-select>
86
+ </div>
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">新表品牌</label>
89
+ <v-select :value.sync="model.f_meter_brand"
90
+ v-model="model.f_meter_brand"
91
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
92
+ condition="f_meter_brand = '{}'"
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_brand_old"
98
+ v-model="model.f_meter_brand_old"
99
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
100
+ condition="f_meter_brand_old = '{}'"
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_type"
106
+ v-model="model.f_type"
107
+ :options='$parent.$parent.changeTypes' placeholder='请选择'
108
+ condition="f_type = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">换&nbsp;表&nbsp;&nbsp;人</label>
113
+ <v-select :value.sync="model.f_change_operator"
114
+ v-model="model.f_change_operator"
115
+ :options='$parent.$parent.changePerson' placeholder='请选择'
116
+ condition="f_change_operator = '{}'"
117
+ close-on-select></v-select>
118
+ </div>
119
+ <div class="col-sm-2 form-group">
120
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
121
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
122
+ condition="f_card_id = '{}'" placeholder='卡号'>
123
+ </div>
124
+ <div class="col-sm-2 form-group">
125
+ <label class="font_normal_body">换表状态</label>
126
+ <v-select :value.sync="model.f_state"
127
+ v-model="model.f_state"
128
+ :options='$parent.$parent.charge_state' placeholder='请选择'
129
+ condition="f_state = '{}'"
130
+ close-on-select></v-select>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">旧表类型</label>
134
+ <v-select :value.sync="model.f_meter_type_old"
135
+ v-model="model.f_meter_type_old"
136
+ :options='$parent.$parent.meterClassify' placeholder='请选择'
137
+ condition="f_meter_type_old = '{}'"
138
+ close-on-select></v-select>
139
+ </div>
140
+ <div class="col-sm-2 form-group">
141
+ <label class="font_normal_body">新表类型</label>
142
+ <v-select :value.sync="model.f_meter_type"
143
+ v-model="model.f_meter_type"
144
+ :options='$parent.$parent.meterClassify' placeholder='请选择'
145
+ condition="f_meter_type = '{}'"
146
+ close-on-select></v-select>
147
+ </div>
148
+ <div class="col-sm-2 form-group">
149
+ <label class="font_normal_body">是否免费</label>
150
+ <v-select :value.sync="model.f_changemeter_fee"
151
+ v-model="model.f_changemeter_fee"
152
+ :options='$parent.$parent.changemeter_fee' placeholder='请选择'
153
+ condition="f_changemeter_fee {}"
154
+ close-on-select></v-select>
155
+ </div>
156
+ <div class="col-sm-2 form-group">
157
+ <label class="font_normal_body">付款方式</label>
158
+ <v-select id="f_payment"
159
+ v-model="model.f_payment"
160
+ placeholder='请选择'
161
+ condition="f_payment ='{}'"
162
+ :value.sync="model.f_payment"
163
+ :options='$parent.$parent.payments'
164
+ close-on-select clear-button>
165
+ </v-select>
166
+ </div>
167
+ <div class="col-sm-2 form-group">
168
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
169
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
170
+ condition="f_meternumber = '{}'" placeholder='表号'>
171
+ </div>
172
+ <div class="col-sm-2 form-group">
173
+ <label class="font_normal_body">表&ensp;封&ensp;号</label>
174
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
175
+ condition="f_metertitles = '{}'" placeholder='表封号'>
176
+ </div>
177
+ </div>
178
+ </div>
179
+ </criteria>
180
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
181
+ <template partial='head'>
182
+ <tr>
183
+ <th>
184
+ <!--<nobr>客户编号</nobr>-->
185
+ <data-order field="f_userinfo_code" name="客户编号"
186
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
187
+ </th>
188
+ <th>
189
+ <nobr>客户名称</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>档案编号</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>付款方式</nobr>
196
+ </th>
197
+ <th>
198
+ <!--<nobr>客户地址</nobr>-->
199
+ <data-order field="f_address" name="客户地址"
200
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
201
+ </th>
202
+ <th>
203
+ <nobr>换表类型</nobr>
204
+ </th>
205
+ <th>
206
+ <nobr>换表费</nobr>
207
+ </th>
208
+ <th>
209
+ <nobr>旧表号</nobr>
210
+ </th>
211
+ <th>
212
+ <nobr>新表号</nobr>
213
+ </th>
214
+ <th>
215
+ <nobr>表封号</nobr>
216
+ </th>
217
+ <th>
218
+ <nobr>旧气表品牌</nobr>
219
+ </th>
220
+ <th>
221
+ <nobr>新气表品牌</nobr>
222
+ </th>
223
+ <th>
224
+ <nobr>补气量</nobr>
225
+ </th>
226
+ <th>
227
+ <nobr>补气金额</nobr>
228
+ </th>
229
+ <th>
230
+ <nobr>订单编号</nobr>
231
+ </th>
232
+ <th>
233
+ <nobr>备注</nobr>
234
+ </th>
235
+ <th>
236
+ <nobr>换表人</nobr>
237
+ </th>
238
+ <th>
239
+ <nobr>状态</nobr>
240
+ </th>
241
+ <th>
242
+ <!-- <nobr>换表日期</nobr>-->
243
+ <data-order field="f_operate_date" name="换表日期"
244
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
245
+ </th>
246
+ <th>
247
+ <nobr>人员</nobr>
248
+ </th>
249
+ <th>
250
+ <nobr>部门</nobr>
251
+ </th>
252
+ <th>
253
+ <nobr>公司</nobr>
254
+ </th>
255
+ <th><nobr>旧表类型</nobr></th>
256
+ <th><nobr>新表类型</nobr></th>
257
+ <th><nobr>用户类型</nobr></th>
258
+ <th><nobr>附件</nobr></th>
259
+ </tr>
260
+ </template>
261
+ <template partial='body'>
262
+ <td style="text-align: center;"><nobr>
263
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
264
+ </nobr> </td>
265
+ <td style="text-align: center;">
266
+ <nobr>{{row.f_user_name}}</nobr>
267
+ </td>
268
+ <td style="text-align: center;">
269
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
270
+ </td>
271
+ <td style="text-align: center;">
272
+ <nobr>{{row.f_payment}}</nobr>
273
+ </td>
274
+ <td style="text-align: center;">
275
+ <nobr>{{row.f_address}}</nobr>
276
+ </td>
277
+
278
+ <td style="text-align: center;">
279
+ <nobr>{{row.f_type}}</nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr>{{row.f_changemeter_fee}}</nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_meternumber_old}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_meternumber}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_metertitles}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_meter_brand_old}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_meter_brand}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_remanent_gas}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.f_remanent_money}}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{row.f_serial_number}}</nobr>
307
+ </td>
308
+ <td style="text-align: center;">
309
+ <nobr>{{row.f_comments}}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{row.f_change_operator}}</nobr>
313
+ </td>
314
+ <td style="text-align: center;">
315
+ <nobr>{{row.f_state}}</nobr>
316
+ </td>
317
+ <td style="text-align: center;">
318
+ <nobr>{{row.f_operate_date}}</nobr>
319
+ </td>
320
+ <td style="text-align: center;">
321
+ <nobr>{{row.f_operator}}</nobr>
322
+ </td>
323
+ <td style="text-align: center;">
324
+ <nobr>{{row.f_depname}}</nobr>
325
+ </td>
326
+ <td style="text-align: center;">
327
+ <nobr>{{row.f_orgname}}</nobr>
328
+ </td>
329
+ <td style="text-align: center;">
330
+ <nobr>{{row.f_meter_type_old}}</nobr>
331
+ </td>
332
+ <td style="text-align: center;">
333
+ <nobr>{{row.f_meter_type}}</nobr>
334
+ </td>
335
+ <td style="text-align: center;">
336
+ <nobr>{{row.f_user_type}}</nobr>
337
+ </td>
338
+ <td style="text-align: center;"><nobr>
339
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
340
+ </nobr></td>
341
+ </template>
342
+ <template partial='foot'></template>
343
+ </data-grid>
344
+ </criteria-paged>
345
+ <table class="table-hover">
346
+ <tr style="position: relative" class="table-bordered">
347
+ <td
348
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
349
+ 汇总信息
350
+ </td>
351
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
352
+ 换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}
353
+ </td>
354
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
355
+ 补气量合计:&emsp;{{sumsmodel.f_remanent_gas}}
356
+ </td>
357
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
358
+ 补气金额合计:&emsp;{{sumsmodel.f_remanent_money}}
359
+ </td>
360
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
361
+ 户数合计:&emsp;{{sumsmodel.hushu}}
362
+ </td>
363
+ </tr>
364
+ </table>
365
+ <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
366
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
367
+ <!--<header slot="modal-header" class="modal-header text-center">-->
368
+ <!--<h4 class="modal-title">打印列选择</h4>-->
369
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
370
+ <!--<label for="f_generations" class="font-size">全选</label>-->
371
+ <!--</header>-->
372
+ <!--<article slot="modal-body">-->
373
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
374
+ <!--<div class="col-sm-3" v-for="f in fields">-->
375
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
376
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
377
+ <!--</div>-->
378
+ <!--</div>-->
379
+ <!--</article>-->
380
+ <!--<footer slot="modal-footer" class="modal-footer">-->
381
+ <!--<center>-->
382
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
383
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
384
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
385
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
386
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
387
+ <!--:fields="modelval" :printpage="true">-->
388
+ <!--</print-table>-->
389
+ <!--</center>-->
390
+ <!--</footer>-->
391
+ <!--</modal>-->
392
+ </div>
393
+ <div class="flex" v-if="show">
394
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
395
+ </div>
396
+ </div>
397
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
398
+ <article slot="modal-body">
399
+ <upload :blodid="selected.id" v-ref:upload isremark="false" fusetype="换表&清零"></upload>
400
+ </article>
401
+ <footer slot="modal-footer" class="modal-footer">
402
+ </footer>
403
+ </modal>
404
+ </div>
405
+ </template>
406
+ <script>
407
+ import {PagedList} from 'vue-client'
408
+ import defaultPrint from '../config/DefaultPrint'
409
+ import exportConfig from '../config/exportConfig'
410
+
411
+ let readySomething = async function (self) {
412
+
413
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
414
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
415
+
416
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
417
+ // self.$refs.paged.$refs.cri.search()
418
+ await self.$MagLoadParams.loadParam()
419
+ self.initParams()
420
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
421
+ }
422
+ export default {
423
+
424
+ props:['data'],
425
+ title: '换表查询',
426
+ data() {
427
+ return {
428
+ data: {},
429
+ other:[],
430
+ footer:[],
431
+ meterbrands: [],
432
+ pricenames: [],
433
+ model: new PagedList('rs/sql/changeMeterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0,hushu:0}),
434
+ criteriaShow: false,
435
+ orgCondtionStr: '',
436
+ modelval: [],
437
+ printshow: false,
438
+ all: false,
439
+ fields: {},
440
+ initres: {
441
+ org:[this.$login.f.orgid],
442
+ dep:[],
443
+ user:[],
444
+ },
445
+ config: {
446
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
447
+ },
448
+ //排序
449
+ orderitem:'f_operate_date desc',
450
+ orderFields: {
451
+ f_operate_date: 'no'
452
+ },
453
+ show:false,
454
+ rowdata:{},
455
+ showupload:false,
456
+ selected:{},
457
+ thead: '',
458
+ tfoot: '',
459
+ defaultfield: [],
460
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
461
+
462
+ //合计数据
463
+ sumsmodel: {},
464
+ changemeter_fee:[
465
+ {label: '全部', value: ''},
466
+ {label: '销售', value: '> 0'},
467
+ {label: '免费', value: '= 0'}
468
+ ]
469
+ }
470
+
471
+ },
472
+ ready() {
473
+
474
+ console.log(this.$parent.startDate)
475
+ console.log(this.$parent.$parent.startDate)
476
+ console.log(this.$parent.$parent.$parent.startDate)
477
+ this.startDate=this.$parent.startDate
478
+ this.endDate=this.$parent.endDate
479
+ console.log("this",this)
480
+ readySomething(this)
481
+ },
482
+ methods: {
483
+ view(row){
484
+ this.showupload = true
485
+ this.selected= row
486
+ console.log("11",row)
487
+ },
488
+ search(){
489
+ this.$refs.paged.$refs.cri.search()
490
+ },
491
+ cancel() {
492
+ this.show = false
493
+ },
494
+ showmsg(obj){
495
+ this.rowdata=obj
496
+ this.show=true
497
+ },
498
+ getotherfooter () {
499
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
500
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
501
+ this.other = [];
502
+ this.footer = [];
503
+ let exportdata = this.getCondition;
504
+ let otherInData = [];
505
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
506
+ let footerData = [], exportfield = this.getfield;
507
+ footerData.push("合计");
508
+ let self = this;
509
+ for (var field in self.sumsmodel) {
510
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
511
+ }
512
+ this.footer.push(footerData);
513
+ this.other.push(otherInData);
514
+ },
515
+ async initParams() {
516
+ // 初始化气表品牌
517
+ let brandArr = []
518
+ await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
519
+ let temp = {}
520
+ temp.label = item.label
521
+ temp.value = item.value.f_meter_brand
522
+ brandArr.push(temp)
523
+ })
524
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
525
+
526
+ },
527
+ async selfSearch(args) {
528
+ if (this.data) {
529
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
530
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
531
+ }
532
+ args.condition = `${args.condition}` + this.orgCondtionStr
533
+ await this.model.search(args.condition, args.model)
534
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
535
+
536
+ this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
537
+
538
+ },
539
+ clear() {
540
+ //清空部门和人员
541
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
542
+ //部门和人员变为全选
543
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
544
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
545
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
546
+ this.$refs.paged.$refs.cri.model[key] = []
547
+ })
548
+ },
549
+ show() {
550
+ this.criteriaShow = true
551
+ },
552
+ hidden() {
553
+ this.criteriaShow = !this.criteriaShow
554
+ },
555
+ getRes(obj) {
556
+ console.log(obj,"========")
557
+ this.orgCondtionStr = obj
558
+ },
559
+ stamp() {
560
+ this.all = false
561
+ //默认选择要打印的列
562
+ this.modelval = defaultPrint.config
563
+ this.fields = this.getfield
564
+ console.log('所有打印字段', this.fields)
565
+ this.printshow = true
566
+ this.put()
567
+ },
568
+ dealmsg(val) {
569
+ console.log('---------------dealmsg')
570
+ val.model = this.model.model
571
+ this.$dispatch('deal-msg', val)
572
+ },
573
+ put() {
574
+ // 对Modelval进行排序
575
+ this.sortModelval()
576
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
577
+ for (let key of this.modelval) {
578
+ this.thead += '<th>' + this.fields[key] + '</th>'
579
+ }
580
+ this.thead += '</tr>'
581
+ },
582
+ print() {
583
+ this.$refs.print.PrintAsFile()
584
+ this.printshow = false
585
+ },
586
+ close() {
587
+ this.printshow = false
588
+ this.all = false
589
+ },
590
+ // 对选择的列进行排序
591
+ sortModelval() {
592
+ let sortModel = []
593
+ Object.keys(this.fields).forEach((key) => {
594
+ if (this.modelval.includes(key)) {
595
+ sortModel.push(key)
596
+ }
597
+ })
598
+ this.modelval = sortModel
599
+ console.log('选择的打印的字段', this.modelval)
600
+ },
601
+ sort (field, rule) {
602
+ // 将所有排序方式设为不排序,实现相互排斥
603
+ for (let key in this.orderFields) {
604
+ if (key === field) {
605
+ this.orderFields[key] = rule
606
+ } else {
607
+ this.orderFields[key] = 'no'
608
+ }
609
+ }
610
+ // 如果新规则不排序,还原为默认排序
611
+ if (rule === 'no') {
612
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
613
+ } else {
614
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
615
+ }
616
+
617
+ this.search()
618
+ },
619
+ },
620
+ watch: {
621
+ 'all'(val) {
622
+ if (val) {
623
+ this.modelval = this.bodyData
624
+ } else {
625
+ this.modelval = defaultPrint.config
626
+ this.put()
627
+ }
628
+ },
629
+ 'modelval.length'() {
630
+ this.put()
631
+ },
632
+ sumsmodel:{
633
+ handler: function(val) {
634
+ this.getotherfooter();
635
+ },
636
+ deep: true
637
+ }
638
+ },
639
+ computed: {
640
+ // getstart(){
641
+ // return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
642
+ // },
643
+ getCondition() {
644
+ return {
645
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
646
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
647
+ },
648
+ getfield() {
649
+ return exportConfig.changemeterConfig
650
+ },
651
+ changeTypes() {
652
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
653
+ },
654
+ userTypes() {
655
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
656
+ },
657
+ meterClassify() {
658
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
659
+ },
660
+ changePerson() {
661
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
662
+ },
663
+ charge_state() {
664
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
665
+ },
666
+ payments() {
667
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
668
+ }
669
+ }
670
+ }
671
+ </script>
672
+ <style scoped>
673
+ .showbottom{
674
+ height:95%
675
+ }
676
+ </style>