manage-client 3.2.32 → 3.2.36

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 (59) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +28 -9
  5. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/package.json +1 -1
  7. package/src/.idea/misc.xml +9 -0
  8. package/src/.idea/modules.xml +8 -0
  9. package/src/.idea/src.iml +9 -0
  10. package/src/.idea/vcs.xml +6 -0
  11. package/src/.idea/workspace.xml +93 -0
  12. package/src/components/sale/businessquery/AreaChargeQuery.vue +380 -0
  13. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  15. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  16. package/src/components/sale/businessquery/ChargeQuery.vue +8 -3
  17. package/src/components/sale/businessquery/CollectManage.vue +3 -0
  18. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  19. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  20. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  21. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  22. package/src/components/sale/businessquery/InspectListUser.vue +412 -433
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  24. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  25. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  26. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  27. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  28. package/src/components/sale/config/exportConfig.js +3 -0
  29. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  30. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  31. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  32. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  33. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  34. package/src/components/statistical/DendrogramManage.vue +239 -204
  35. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  36. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  37. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  38. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  39. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  40. package/src/filiale/meihekou/DeviceQuery.vue +545 -545
  41. package/src/filiale/meihekou/RecordInfoQuery.vue +1168 -1168
  42. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  43. package/src/filiale/meihekou/sale.js +31 -31
  44. package/src/filiale/pingxiang/sale.js +9 -9
  45. package/src/filiale/qingtongxia/sale.js +13 -13
  46. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  47. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  48. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  49. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  50. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  51. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  52. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  53. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  54. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  55. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1270
  56. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  57. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  58. package/src/main.js +10 -10
  59. package/src/saleManage.js +533 -529
@@ -1,477 +1,477 @@
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
- <!-- :header="$parent.$parent.other"-->
33
- <!-- v-if="$parent.$parent.authArr.includes('档案查询导出')"-->
34
- <!-- sqlurl="rs/logic/exportfile" sql-name="deviceQuery" template-name='表具设备查询导出' :choose-col="true"></export-excel>-->
35
- <!-- <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"-->
36
- <!-- :defaultfield="$parent.$parent.defaultfield"-->
37
- <!-- titletable="表具设备查询"-->
38
- <!-- :sumsmodel="$parent.$parent.sumsmodel"></print-data>-->
39
- <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>
40
- </div>
41
- </div>
42
- <div class="row" v-show="$parent.$parent.criteriaShow">
43
- <div class="col-sm-2 form-group" >
44
- <label class="font_normal_body">客户地址</label>
45
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
46
- condition="f_address like '%{}%'" placeholder='客户地址'>
47
- </div>
48
- <!-- <div class="col-sm-2 form-group" >-->
49
- <!-- <label class="font_normal_body">客户状态</label>-->
50
- <!-- <v-select :value.sync="model.f_user_state"-->
51
- <!-- v-model="model.f_user_state"-->
52
- <!-- :options='$parent.$parent.userstates' placeholder='请选择'-->
53
- <!-- condition="f_user_state = '{}'"-->
54
- <!-- close-on-select></v-select>-->
55
- <!-- </div>-->
56
- <div class="col-sm-2 form-group">
57
- <label class="font_normal_body">客户类型</label>
58
- <v-select :value.sync="model.f_user_type"
59
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
- condition="f_user_type = '{}'"
61
- close-on-select></v-select>
62
- </div>
63
- <div class="col-sm-2 form-group" >
64
- <label class="font_normal_body">表&emsp;&emsp;号</label>
65
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
66
- condition="f_meternumber like '%{}%'" placeholder='表号'>
67
- </div>
68
-
69
- <div class="col-sm-2 form-group" >
70
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
71
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
72
- condition="f_card_id like '%{}%'" placeholder='表号'>
73
- </div>
74
- <div class="col-sm-2 form-group" >
75
- <label class="font_normal_body" title="交付日期大于">交付日期</label>
76
- <datepicker placeholder="交付日期大于" style="width:60%"
77
- v-model="model.f_input_start_date"
78
- :value.sync="model.f_input_start_date"
79
- :format="'yyyy-MM-dd'"
80
- :show-reset-button="true"
81
- condition="f_deliver_date >= '{} 00:00:00'">
82
- </datepicker>
83
- </div>
84
- <div class="col-sm-2 form-group" >
85
- <label class="font_normal_body" title="交付日期小于">交付日期</label>
86
- <datepicker placeholder="交付日期小于" style="width:60%"
87
- v-model="model.f_input_end_date"
88
- :value.sync="model.f_input_end_date"
89
- :format="'yyyy-MM-dd'"
90
- :show-reset-button="true"
91
- condition="f_deliver_date <= '{} 23:59:59'">
92
- </datepicker>
93
- </div>
94
-
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body" >抄表员&emsp;</label>
97
- <v-select :value.sync="model.f_inputtor"
98
- v-model="model.f_inputtor"
99
- :options='$parent.$parent.inputtores' placeholder='请选择'
100
- condition="f_inputtor = '{}'"
101
- close-on-select :search="false">
102
- </v-select>
103
- </div>
104
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
105
- </div>
106
- </div>
107
- </criteria>
108
-
109
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
110
- <template partial='head'>
111
- <tr>
112
- <th><nobr>客户编号</nobr></th>
113
- <th><nobr>客户名称</nobr></th>
114
- <th><nobr>客户电话</nobr></th>
115
- <th><nobr>客户地址</nobr></th>
116
- <th><nobr>客户状态</nobr></th>
117
-
118
- <th><nobr>表号</nobr></th>
119
- <th><nobr>卡号</nobr></th>
120
- <th><nobr>气表品牌</nobr></th>
121
- <th><nobr>气表型号</nobr></th>
122
- <th><nobr>表向</nobr></th>
123
- <!--民用-->
124
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>镀锌管</nobr></th>
125
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>三通</nobr></th>
126
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>对丝</nobr></th>
127
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>弯头</nobr></th>
128
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>表前阀</nobr></th>
129
-
130
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>管卡</nobr></th>
131
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>灶前阀</nobr></th>
132
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>胶管</nobr></th>
133
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>自闭阀</nobr></th>
134
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>燃气具</nobr></th>
135
-
136
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>报警器</nobr></th>
137
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>热水器</nobr></th>
138
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>壁挂锅炉</nobr></th>
139
- <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>型号</nobr></th>
140
-
141
- <!-- 非民用-->
142
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>非民用气表品牌</nobr></th>
143
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>非民用气表型号</nobr></th>
144
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>流量计范围</nobr></th>
145
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器品牌</nobr></th>
146
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器型号</nobr></th>
147
-
148
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器出厂日期</nobr></th>
149
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器表编码</nobr></th>
150
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器表封号</nobr></th>
151
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具类型</nobr></th>
152
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具品牌</nobr></th>
153
-
154
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具型号</nobr></th>
155
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>报警控制箱品牌、数量</nobr></th>
156
- <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>探测器数量</nobr></th>
157
- <!--公共-->
158
- <th><nobr>设施检验结论</nobr></th>
159
- <th><nobr>交付日期</nobr></th>
160
- <th><nobr>操作人</nobr></th>
161
- <th><nobr>操作日期</nobr></th>
162
- </tr>
163
- </template>
164
- <template partial='body'>
165
- <td style="text-align: center;"><nobr>
166
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
167
- </nobr> </td>
168
- <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
169
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
170
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
171
- <td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
172
- <!--民用-->
173
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
174
- <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
175
- <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
176
- <td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
177
- <td style="text-align: center;"><nobr>{{row.f_aroundmeter}}</nobr></td>
178
-
179
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_galvanize_pipe}}</nobr></td>
180
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_tee}}</nobr></td>
181
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_nipple}}</nobr></td>
182
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_elbow}}</nobr></td>
183
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bqf_type}}</nobr></td>
184
-
185
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_pipe_strap}}</nobr></td>
186
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_zqf}}</nobr></td>
187
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_sebific_duct}}</nobr></td>
188
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
189
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_zbf}}</nobr></td>
190
-
191
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_gas_appliance}}</nobr></td>
192
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_geyser}}</nobr></td>
193
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bgl}}</nobr></td>
194
- <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bgl_style}}</nobr></td>
195
-
196
- <!--非民用-->
197
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_fire_gasbrand}}</nobr></td>
198
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_fire_gasmodel}}</nobr></td>
199
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_llj_scope}}</nobr></td>
200
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_brand}}</nobr></td>
201
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_model}}</nobr></td>
202
-
203
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_date}}</nobr></td>
204
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_code}}</nobr></td>
205
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_number}}</nobr></td>
206
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_type}}</nobr></td>
207
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_brand}}</nobr></td>
208
-
209
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_model}}</nobr></td>
210
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_alarm_info}}</nobr></td>
211
- <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_detector_number}}</nobr></td>
212
-
213
- <td style="text-align: center;"><nobr>{{row.f_fic}}</nobr></td>
214
- <td style="text-align: center;"><nobr>{{row.f_deliver_date}}</nobr></td>
215
- <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
216
- <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
217
- </template>
218
- <template partial='foot'>
219
-
220
- </template>
221
- </data-grid>
222
- </criteria-paged>
223
-
224
- <table class="table-hover">
225
- <tr style="position: relative" class="table-bordered">
226
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
227
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">暂无合计字段</td>
228
- </tr>
229
- </table>
230
-
231
- <modal :show.sync="printshow" v-ref:modal backdrop="false">
232
- <header slot="modal-header" class="modal-header text-center">
233
- <h4 class="modal-title">打印列选择</h4>
234
- <input type="checkbox" class="" id="f_generations" v-model="all">
235
- <label for="f_generations" class="font-size">全选</label>
236
- </header>
237
- <article slot="modal-body">
238
- <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
239
- <div class="col-sm-3" v-for="f in fields">
240
- <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
241
- <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
242
- </div>
243
- </div>
244
- </article>
245
- <footer slot="modal-footer" class="modal-footer">
246
- <center>
247
- <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
248
- <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
249
- <print-table :model='model' v-show="false" v-ref:print
250
- :top='40' :left='60' :right='40' :bottom='60'
251
- :thead="thead" :tfoot='tfoot' :attach="yangsen"
252
- :fields="modelval" :printpage="true">
253
- </print-table>
254
- </center>
255
- </footer>
256
- </modal>
257
- </div>
258
- <div class="flex" v-if="show">
259
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
260
- </div>
261
- </div></div></div>
262
- </template>
263
-
264
- <script>
265
- import { PagedList } from 'vue-client'
266
- import defaultPrint from '../config/DefaultPrint'
267
- import exportConfig from '../config/exportConfig'
268
-
269
- let readySomething = async function (self) {
270
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
271
- self.$MagGetSaleParam.initinputtor();
272
- self.getinputtores();
273
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
274
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
275
- // await self.$refs.paged.$refs.cri.search()
276
- }
277
- export default {
278
- title: '表具用气查询',
279
- data() {
280
- return {
281
- other:[],
282
- footer:[],
283
- model: new PagedList('rs/sql/fireQuery', 20),
284
- criteriaShow: false,
285
- orgCondtionStr: '',
286
- modelval: [],
287
- printshow: false,
288
- all: false,
289
- fields: {},
290
- thead: '',
291
- tfoot: '',
292
- defaultfield: [],
293
- config: {
294
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
295
- },
296
- show:false,
297
- rowdata:{},
298
- // 下拉框参数
299
- inputtores:[],
300
- usertypes:this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
301
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
302
- deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
303
- // brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
304
- watchpurchases: this.$appdata.getParam('购买方式') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('购买方式')] : [],
305
- pipetype: this.$appdata.getParam('管道类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('管道类型')] : [],
306
- initres: {
307
- org:[this.$login.f.orgid],
308
- dep:[],
309
- user:[],
310
- },
311
- // 合计数据
312
- sumsmodel: {},
313
- usertype:'全部'
314
- }
315
- },
316
- ready(){
317
- readySomething(this).then(() => {
318
- this.$emit('ready')
319
- }).catch((error) => {
320
- this.$emit('error', error)
321
- })
322
- },
323
- methods: {
324
- async getinputtores () {
325
- // 获取抄表员
326
- let rs = []
327
- if (this.$login.f.f_gasman.length > 0) {
328
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
329
- let temp = {
330
- label: this.$login.f.f_gasman[i].name,
331
- value: this.$login.f.f_gasman[i].name
332
- }
333
- rs.push(temp)
334
- }
335
- }
336
- this.inputtores = [{label: '全部', value: ''}, ...rs]
337
- },
338
- getotherfooter () {
339
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
340
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
341
- this.other = [];
342
- this.footer = [];
343
- let exportdata = this.getCondition;
344
- let otherInData = [];
345
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
346
- // let footerData = [], exportfield = this.getExportField;
347
- // footerData.push("合计");
348
- // let self = this;
349
- // for (var field in self.sumsmodel) {
350
- // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
351
- // }
352
- // this.footer.push(footerData);
353
- this.other.push(otherInData);
354
- },
355
- search(){
356
- this.$refs.paged.$refs.cri.search()
357
- },
358
- cancel() {
359
- this.show = false
360
- },
361
- showmsg(obj){
362
- this.rowdata=obj
363
- this.show=true
364
- },
365
- selfSearch (args) {
366
- if (!this.orgCondtionStr) {
367
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
368
- } else {
369
- args.condition = `${args.condition}` + this.orgCondtionStr
370
- }
371
- if(this.$refs.paged.$refs.cri.model.f_user_type){
372
- this.usertype=this.$refs.paged.$refs.cri.model.f_user_type
373
- }else{
374
- this.usertype='全部'
375
- }
376
- this.model.search(args.condition, args.model)
377
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
378
- console.log('合计字段',this.sumsmodel)
379
- },
380
- clear(){
381
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
382
- this.$refs.paged.$refs.cri.model[key] = []
383
- })
384
- },
385
- hidden(){
386
- this.criteriaShow = !this.criteriaShow
387
- },
388
- getRes(obj) {
389
- this.orgCondtionStr = obj
390
- },
391
- stamp () {
392
- this.all = false
393
- //默认选择要打印的列
394
- this.modelval = defaultPrint.config
395
- this.fields = this.getfield
396
- console.log('所有打印字段',this.fields)
397
- this.printshow = true
398
- this.put()
399
- },
400
- put () {
401
- // 对Modelval进行排序
402
- this.sortModelval()
403
- this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
404
- for (let key of this.modelval) {
405
- this.thead += '<th>' + this.fields[key] + '</th>'
406
- }
407
- this.thead += '</tr>'
408
- },
409
- print () {
410
- this.$refs.print.PrintAsFile()
411
- this.printshow = false
412
- },
413
- close () {
414
- this.printshow = false
415
- this.all = false
416
- },
417
- // 对选择的列进行排序
418
- sortModelval () {
419
- let sortModel = []
420
- Object.keys(this.fields).forEach((key) => {
421
- if (this.modelval.includes(key)) {
422
- sortModel.push(key)
423
- }
424
- })
425
- this.modelval = sortModel
426
- console.log('选择的打印的字段', this.modelval)
427
- }
428
- },
429
- watch:{
430
- 'all' (val) {
431
- if (val) {
432
- this.modelval = this.bodyData
433
- } else {
434
- this.modelval = defaultPrint.config
435
- this.put()
436
- }
437
- },
438
- sumsmodel:{
439
- handler: function(val) {
440
- this.getotherfooter();
441
- },
442
- deep: true
443
- },
444
- 'modelval.length' () {
445
- this.put()
446
- },
447
- },
448
- computed:{
449
- authArr () {
450
- return this.$login.r ? this.$login.r : []
451
- },
452
- getCondition(){
453
- return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr}
454
- },
455
- getfield(){
456
- let data = {}
457
- this.bodyData.forEach((value, index)=>{
458
- data[this.bodyData[index]] = this.headData[index]
459
- })
460
- //合计字段打印
461
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
462
- if(this.sumsmodel){
463
- Object.keys(this.sumsmodel).forEach((key) => {
464
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
465
- })
466
- }else{
467
- this.tfoot += '暂无'
468
- }
469
- this.tfoot += '</th></tr>'
470
- return data
471
- },
472
- getExportField() {
473
- return exportConfig.deviceConfig
474
- }
475
- }
476
- }
477
- </script>
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
+ <!-- :header="$parent.$parent.other"-->
33
+ <!-- v-if="$parent.$parent.authArr.includes('档案查询导出')"-->
34
+ <!-- sqlurl="rs/logic/exportfile" sql-name="deviceQuery" template-name='表具设备查询导出' :choose-col="true"></export-excel>-->
35
+ <!-- <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"-->
36
+ <!-- :defaultfield="$parent.$parent.defaultfield"-->
37
+ <!-- titletable="表具设备查询"-->
38
+ <!-- :sumsmodel="$parent.$parent.sumsmodel"></print-data>-->
39
+ <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>
40
+ </div>
41
+ </div>
42
+ <div class="row" v-show="$parent.$parent.criteriaShow">
43
+ <div class="col-sm-2 form-group" >
44
+ <label class="font_normal_body">客户地址</label>
45
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
46
+ condition="f_address like '%{}%'" placeholder='客户地址'>
47
+ </div>
48
+ <!-- <div class="col-sm-2 form-group" >-->
49
+ <!-- <label class="font_normal_body">客户状态</label>-->
50
+ <!-- <v-select :value.sync="model.f_user_state"-->
51
+ <!-- v-model="model.f_user_state"-->
52
+ <!-- :options='$parent.$parent.userstates' placeholder='请选择'-->
53
+ <!-- condition="f_user_state = '{}'"-->
54
+ <!-- close-on-select></v-select>-->
55
+ <!-- </div>-->
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">客户类型</label>
58
+ <v-select :value.sync="model.f_user_type"
59
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
+ condition="f_user_type = '{}'"
61
+ close-on-select></v-select>
62
+ </div>
63
+ <div class="col-sm-2 form-group" >
64
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
66
+ condition="f_meternumber like '%{}%'" placeholder='表号'>
67
+ </div>
68
+
69
+ <div class="col-sm-2 form-group" >
70
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
71
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
72
+ condition="f_card_id like '%{}%'" placeholder='表号'>
73
+ </div>
74
+ <div class="col-sm-2 form-group" >
75
+ <label class="font_normal_body" title="交付日期大于">交付日期</label>
76
+ <datepicker placeholder="交付日期大于" style="width:60%"
77
+ v-model="model.f_input_start_date"
78
+ :value.sync="model.f_input_start_date"
79
+ :format="'yyyy-MM-dd'"
80
+ :show-reset-button="true"
81
+ condition="f_deliver_date >= '{} 00:00:00'">
82
+ </datepicker>
83
+ </div>
84
+ <div class="col-sm-2 form-group" >
85
+ <label class="font_normal_body" title="交付日期小于">交付日期</label>
86
+ <datepicker placeholder="交付日期小于" style="width:60%"
87
+ v-model="model.f_input_end_date"
88
+ :value.sync="model.f_input_end_date"
89
+ :format="'yyyy-MM-dd'"
90
+ :show-reset-button="true"
91
+ condition="f_deliver_date <= '{} 23:59:59'">
92
+ </datepicker>
93
+ </div>
94
+
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body" >抄表员&emsp;</label>
97
+ <v-select :value.sync="model.f_inputtor"
98
+ v-model="model.f_inputtor"
99
+ :options='$parent.$parent.inputtores' placeholder='请选择'
100
+ condition="f_inputtor = '{}'"
101
+ close-on-select :search="false">
102
+ </v-select>
103
+ </div>
104
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
105
+ </div>
106
+ </div>
107
+ </criteria>
108
+
109
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
110
+ <template partial='head'>
111
+ <tr>
112
+ <th><nobr>客户编号</nobr></th>
113
+ <th><nobr>客户名称</nobr></th>
114
+ <th><nobr>客户电话</nobr></th>
115
+ <th><nobr>客户地址</nobr></th>
116
+ <th><nobr>客户状态</nobr></th>
117
+
118
+ <th><nobr>表号</nobr></th>
119
+ <th><nobr>卡号</nobr></th>
120
+ <th><nobr>气表品牌</nobr></th>
121
+ <th><nobr>气表型号</nobr></th>
122
+ <th><nobr>表向</nobr></th>
123
+ <!--民用-->
124
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>镀锌管</nobr></th>
125
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>三通</nobr></th>
126
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>对丝</nobr></th>
127
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>弯头</nobr></th>
128
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>表前阀</nobr></th>
129
+
130
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>管卡</nobr></th>
131
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>灶前阀</nobr></th>
132
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>胶管</nobr></th>
133
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>自闭阀</nobr></th>
134
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>燃气具</nobr></th>
135
+
136
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>报警器</nobr></th>
137
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>热水器</nobr></th>
138
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>壁挂锅炉</nobr></th>
139
+ <th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>型号</nobr></th>
140
+
141
+ <!-- 非民用-->
142
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>非民用气表品牌</nobr></th>
143
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>非民用气表型号</nobr></th>
144
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>流量计范围</nobr></th>
145
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器品牌</nobr></th>
146
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器型号</nobr></th>
147
+
148
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器出厂日期</nobr></th>
149
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器表编码</nobr></th>
150
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器表封号</nobr></th>
151
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具类型</nobr></th>
152
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具品牌</nobr></th>
153
+
154
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具型号</nobr></th>
155
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>报警控制箱品牌、数量</nobr></th>
156
+ <th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>探测器数量</nobr></th>
157
+ <!--公共-->
158
+ <th><nobr>设施检验结论</nobr></th>
159
+ <th><nobr>交付日期</nobr></th>
160
+ <th><nobr>操作人</nobr></th>
161
+ <th><nobr>操作日期</nobr></th>
162
+ </tr>
163
+ </template>
164
+ <template partial='body'>
165
+ <td style="text-align: center;"><nobr>
166
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
167
+ </nobr> </td>
168
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
169
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
170
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
171
+ <td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
172
+ <!--民用-->
173
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
174
+ <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
175
+ <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
176
+ <td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
177
+ <td style="text-align: center;"><nobr>{{row.f_aroundmeter}}</nobr></td>
178
+
179
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_galvanize_pipe}}</nobr></td>
180
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_tee}}</nobr></td>
181
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_nipple}}</nobr></td>
182
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_elbow}}</nobr></td>
183
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bqf_type}}</nobr></td>
184
+
185
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_pipe_strap}}</nobr></td>
186
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_zqf}}</nobr></td>
187
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_sebific_duct}}</nobr></td>
188
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
189
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_zbf}}</nobr></td>
190
+
191
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_gas_appliance}}</nobr></td>
192
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_geyser}}</nobr></td>
193
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bgl}}</nobr></td>
194
+ <td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bgl_style}}</nobr></td>
195
+
196
+ <!--非民用-->
197
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_fire_gasbrand}}</nobr></td>
198
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_fire_gasmodel}}</nobr></td>
199
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_llj_scope}}</nobr></td>
200
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_brand}}</nobr></td>
201
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_model}}</nobr></td>
202
+
203
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_date}}</nobr></td>
204
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_code}}</nobr></td>
205
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_number}}</nobr></td>
206
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_type}}</nobr></td>
207
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_brand}}</nobr></td>
208
+
209
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_model}}</nobr></td>
210
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_alarm_info}}</nobr></td>
211
+ <td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_detector_number}}</nobr></td>
212
+
213
+ <td style="text-align: center;"><nobr>{{row.f_fic}}</nobr></td>
214
+ <td style="text-align: center;"><nobr>{{row.f_deliver_date}}</nobr></td>
215
+ <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
216
+ <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
217
+ </template>
218
+ <template partial='foot'>
219
+
220
+ </template>
221
+ </data-grid>
222
+ </criteria-paged>
223
+
224
+ <table class="table-hover">
225
+ <tr style="position: relative" class="table-bordered">
226
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
227
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">暂无合计字段</td>
228
+ </tr>
229
+ </table>
230
+
231
+ <modal :show.sync="printshow" v-ref:modal backdrop="false">
232
+ <header slot="modal-header" class="modal-header text-center">
233
+ <h4 class="modal-title">打印列选择</h4>
234
+ <input type="checkbox" class="" id="f_generations" v-model="all">
235
+ <label for="f_generations" class="font-size">全选</label>
236
+ </header>
237
+ <article slot="modal-body">
238
+ <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
239
+ <div class="col-sm-3" v-for="f in fields">
240
+ <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
241
+ <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
242
+ </div>
243
+ </div>
244
+ </article>
245
+ <footer slot="modal-footer" class="modal-footer">
246
+ <center>
247
+ <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
248
+ <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
249
+ <print-table :model='model' v-show="false" v-ref:print
250
+ :top='40' :left='60' :right='40' :bottom='60'
251
+ :thead="thead" :tfoot='tfoot' :attach="yangsen"
252
+ :fields="modelval" :printpage="true">
253
+ </print-table>
254
+ </center>
255
+ </footer>
256
+ </modal>
257
+ </div>
258
+ <div class="flex" v-if="show">
259
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
260
+ </div>
261
+ </div></div></div>
262
+ </template>
263
+
264
+ <script>
265
+ import { PagedList } from 'vue-client'
266
+ import defaultPrint from '../config/DefaultPrint'
267
+ import exportConfig from '../config/exportConfig'
268
+
269
+ let readySomething = async function (self) {
270
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
271
+ self.$MagGetSaleParam.initinputtor();
272
+ self.getinputtores();
273
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
274
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
275
+ // await self.$refs.paged.$refs.cri.search()
276
+ }
277
+ export default {
278
+ title: '表具用气查询',
279
+ data() {
280
+ return {
281
+ other:[],
282
+ footer:[],
283
+ model: new PagedList('rs/sql/fireQuery', 20),
284
+ criteriaShow: false,
285
+ orgCondtionStr: '',
286
+ modelval: [],
287
+ printshow: false,
288
+ all: false,
289
+ fields: {},
290
+ thead: '',
291
+ tfoot: '',
292
+ defaultfield: [],
293
+ config: {
294
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
295
+ },
296
+ show:false,
297
+ rowdata:{},
298
+ // 下拉框参数
299
+ inputtores:[],
300
+ usertypes:this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
301
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
302
+ deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
303
+ // brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
304
+ watchpurchases: this.$appdata.getParam('购买方式') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('购买方式')] : [],
305
+ pipetype: this.$appdata.getParam('管道类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('管道类型')] : [],
306
+ initres: {
307
+ org:[this.$login.f.orgid],
308
+ dep:[],
309
+ user:[],
310
+ },
311
+ // 合计数据
312
+ sumsmodel: {},
313
+ usertype:'全部'
314
+ }
315
+ },
316
+ ready(){
317
+ readySomething(this).then(() => {
318
+ this.$emit('ready')
319
+ }).catch((error) => {
320
+ this.$emit('error', error)
321
+ })
322
+ },
323
+ methods: {
324
+ async getinputtores () {
325
+ // 获取抄表员
326
+ let rs = []
327
+ if (this.$login.f.f_gasman.length > 0) {
328
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
329
+ let temp = {
330
+ label: this.$login.f.f_gasman[i].name,
331
+ value: this.$login.f.f_gasman[i].name
332
+ }
333
+ rs.push(temp)
334
+ }
335
+ }
336
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
337
+ },
338
+ getotherfooter () {
339
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
340
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
341
+ this.other = [];
342
+ this.footer = [];
343
+ let exportdata = this.getCondition;
344
+ let otherInData = [];
345
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
346
+ // let footerData = [], exportfield = this.getExportField;
347
+ // footerData.push("合计");
348
+ // let self = this;
349
+ // for (var field in self.sumsmodel) {
350
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
351
+ // }
352
+ // this.footer.push(footerData);
353
+ this.other.push(otherInData);
354
+ },
355
+ search(){
356
+ this.$refs.paged.$refs.cri.search()
357
+ },
358
+ cancel() {
359
+ this.show = false
360
+ },
361
+ showmsg(obj){
362
+ this.rowdata=obj
363
+ this.show=true
364
+ },
365
+ selfSearch (args) {
366
+ if (!this.orgCondtionStr) {
367
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
368
+ } else {
369
+ args.condition = `${args.condition}` + this.orgCondtionStr
370
+ }
371
+ if(this.$refs.paged.$refs.cri.model.f_user_type){
372
+ this.usertype=this.$refs.paged.$refs.cri.model.f_user_type
373
+ }else{
374
+ this.usertype='全部'
375
+ }
376
+ this.model.search(args.condition, args.model)
377
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
378
+ console.log('合计字段',this.sumsmodel)
379
+ },
380
+ clear(){
381
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
382
+ this.$refs.paged.$refs.cri.model[key] = []
383
+ })
384
+ },
385
+ hidden(){
386
+ this.criteriaShow = !this.criteriaShow
387
+ },
388
+ getRes(obj) {
389
+ this.orgCondtionStr = obj
390
+ },
391
+ stamp () {
392
+ this.all = false
393
+ //默认选择要打印的列
394
+ this.modelval = defaultPrint.config
395
+ this.fields = this.getfield
396
+ console.log('所有打印字段',this.fields)
397
+ this.printshow = true
398
+ this.put()
399
+ },
400
+ put () {
401
+ // 对Modelval进行排序
402
+ this.sortModelval()
403
+ this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
404
+ for (let key of this.modelval) {
405
+ this.thead += '<th>' + this.fields[key] + '</th>'
406
+ }
407
+ this.thead += '</tr>'
408
+ },
409
+ print () {
410
+ this.$refs.print.PrintAsFile()
411
+ this.printshow = false
412
+ },
413
+ close () {
414
+ this.printshow = false
415
+ this.all = false
416
+ },
417
+ // 对选择的列进行排序
418
+ sortModelval () {
419
+ let sortModel = []
420
+ Object.keys(this.fields).forEach((key) => {
421
+ if (this.modelval.includes(key)) {
422
+ sortModel.push(key)
423
+ }
424
+ })
425
+ this.modelval = sortModel
426
+ console.log('选择的打印的字段', this.modelval)
427
+ }
428
+ },
429
+ watch:{
430
+ 'all' (val) {
431
+ if (val) {
432
+ this.modelval = this.bodyData
433
+ } else {
434
+ this.modelval = defaultPrint.config
435
+ this.put()
436
+ }
437
+ },
438
+ sumsmodel:{
439
+ handler: function(val) {
440
+ this.getotherfooter();
441
+ },
442
+ deep: true
443
+ },
444
+ 'modelval.length' () {
445
+ this.put()
446
+ },
447
+ },
448
+ computed:{
449
+ authArr () {
450
+ return this.$login.r ? this.$login.r : []
451
+ },
452
+ getCondition(){
453
+ return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr}
454
+ },
455
+ getfield(){
456
+ let data = {}
457
+ this.bodyData.forEach((value, index)=>{
458
+ data[this.bodyData[index]] = this.headData[index]
459
+ })
460
+ //合计字段打印
461
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
462
+ if(this.sumsmodel){
463
+ Object.keys(this.sumsmodel).forEach((key) => {
464
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
465
+ })
466
+ }else{
467
+ this.tfoot += '暂无'
468
+ }
469
+ this.tfoot += '</th></tr>'
470
+ return data
471
+ },
472
+ getExportField() {
473
+ return exportConfig.deviceConfig
474
+ }
475
+ }
476
+ }
477
+ </script>