manage-client 3.2.28 → 3.2.32

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 (93) hide show
  1. package/build/dev-server.js +9 -9
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/package.json +1 -1
  4. package/src/components/SellReport/AmountGas.vue +257 -257
  5. package/src/components/SellReport/BusinessClassify.vue +317 -268
  6. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  7. package/src/components/SellReport/BusinessReport.vue +256 -256
  8. package/src/components/SellReport/ChSellReport.vue +251 -251
  9. package/src/components/SellReport/ChargeBill.vue +244 -244
  10. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  11. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  12. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  13. package/src/components/SellReport/DepartmentPrick.vue +288 -243
  14. package/src/components/SellReport/DeptHomePage.vue +299 -299
  15. package/src/components/SellReport/FinanceSellType.vue +254 -254
  16. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  17. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -263
  18. package/src/components/SellReport/GasMoneyReport.vue +254 -252
  19. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  20. package/src/components/SellReport/GasSummary.vue +257 -257
  21. package/src/components/SellReport/Gasc.vue +257 -257
  22. package/src/components/SellReport/GetUserNum.vue +240 -240
  23. package/src/components/SellReport/HandplanBili.vue +241 -241
  24. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  25. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  26. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  27. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  28. package/src/components/SellReport/MarketMonth.vue +297 -251
  29. package/src/components/SellReport/MeterPrice.vue +244 -244
  30. package/src/components/SellReport/MeterReader.vue +231 -231
  31. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  32. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  33. package/src/components/SellReport/OtherChargePublicReport.vue +262 -262
  34. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  35. package/src/components/SellReport/PaymentMethod.vue +274 -274
  36. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  37. package/src/components/SellReport/SellDepReport.vue +266 -264
  38. package/src/components/SellReport/UserClassify.vue +271 -222
  39. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  40. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  41. package/src/components/SellReport/YuShouTable.vue +298 -298
  42. package/src/components/SellReport/chargeSchedule.vue +410 -410
  43. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  44. package/src/components/SellReport/userholds.vue +257 -257
  45. package/src/components/sale/businessquery/BusinesQuery.vue +10 -0
  46. package/src/components/sale/businessquery/ChangeMeterQuery.vue +7 -7
  47. package/src/components/sale/businessquery/ChangeUserQuery.vue +10 -1
  48. package/src/components/sale/businessquery/ChargeQuery.vue +10 -0
  49. package/src/components/sale/businessquery/DisableQuery.vue +10 -0
  50. package/src/components/sale/businessquery/EnableQuery.vue +10 -0
  51. package/src/components/sale/businessquery/FillCardQuery.vue +6 -1
  52. package/src/components/sale/businessquery/FillGasQuery.vue +6 -1
  53. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  54. package/src/components/sale/businessquery/OtherChargeQuery.vue +10 -0
  55. package/src/components/sale/businessquery/ReverseQuery.vue +10 -0
  56. package/src/components/sale/businessquery/TransferQuery.vue +10 -0
  57. package/src/components/sale/config/exportConfig.js +898 -898
  58. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  59. package/src/components/sale/filesquery/DeviceQuery.vue +10 -0
  60. package/src/components/sale/filesquery/FireQuery.vue +477 -473
  61. package/src/components/sale/filesquery/RecordInfoQuery.vue +10 -0
  62. package/src/components/webmeter/gasStatistics/GasStatistics.vue +467 -467
  63. package/src/components/webmeter/newwebmeter/ArrearageQuery.vue +307 -307
  64. package/src/components/webmeter/recharge/RechargeList.vue +343 -343
  65. package/src/components/webmeter/report/ReportList.vue +420 -420
  66. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  67. package/src/filiale/WEINAN/reportManage.js +12 -13
  68. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  69. package/src/filiale/macheng/ArrearsQuery.vue +823 -823
  70. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  71. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  72. package/src/filiale/meihekou/DeviceQuery.vue +545 -0
  73. package/src/filiale/meihekou/RecordInfoQuery.vue +1168 -1158
  74. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  75. package/src/filiale/meihekou/sale.js +31 -29
  76. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  77. package/src/main.js +3 -3
  78. package/src/reportManage.js +498 -498
  79. package/src/saleManage.js +529 -529
  80. package/src/webmeterManage.js +117 -117
  81. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  82. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  83. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  84. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  85. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  86. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  87. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  88. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  89. package/.gradle/7.1/gc.properties +0 -0
  90. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  91. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  92. package/build/tmp/jar/MANIFEST.MF +0 -2
  93. package/src/filiale/WEINAN/BankManager.vue +0 -139
@@ -1,473 +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
- <!-- 民用-->
113
- <th><nobr>客户编号</nobr></th>
114
- <th><nobr>客户名称</nobr></th>
115
- <th><nobr>客户电话</nobr></th>
116
- <th><nobr>客户地址</nobr></th>
117
- <th><nobr>客户状态</nobr></th>
118
-
119
- <th><nobr>表号</nobr></th>
120
- <th><nobr>卡号</nobr></th>
121
- <th><nobr>气表品牌</nobr></th>
122
- <th><nobr>气表型号</nobr></th>
123
- <th><nobr>表向</nobr></th>
124
-
125
- <th><nobr>镀锌管</nobr></th>
126
- <th><nobr>三通</nobr></th>
127
- <th><nobr>对丝</nobr></th>
128
- <th><nobr>弯头</nobr></th>
129
- <th><nobr>表前阀</nobr></th>
130
-
131
- <th><nobr>管卡</nobr></th>
132
- <th><nobr>灶前阀</nobr></th>
133
- <th><nobr>胶管</nobr></th>
134
- <th><nobr>自闭阀</nobr></th>
135
- <th><nobr>燃气具</nobr></th>
136
-
137
- <th><nobr>报警器</nobr></th>
138
- <th><nobr>热水器</nobr></th>
139
- <th><nobr>壁挂锅炉</nobr></th>
140
- <th><nobr>型号</nobr></th>
141
-
142
- <!-- 非民用-->
143
- <th><nobr>非民用气表品牌</nobr></th>
144
- <th><nobr>非民用气表型号</nobr></th>
145
- <th><nobr>流量计范围</nobr></th>
146
- <th><nobr>控制器品牌</nobr></th>
147
- <th><nobr>控制器型号</nobr></th>
148
-
149
- <th><nobr>控制器出厂日期</nobr></th>
150
- <th><nobr>控制器表编码</nobr></th>
151
- <th><nobr>控制器表封号</nobr></th>
152
- <th><nobr>燃气具类型</nobr></th>
153
- <th><nobr>燃气具品牌</nobr></th>
154
-
155
- <th><nobr>燃气具型号</nobr></th>
156
- <th><nobr>报警控制箱品牌、数量</nobr></th>
157
- <th><nobr>探测器数量</nobr></th>
158
- <!--公共-->
159
- <th><nobr>设施检验结论</nobr></th>
160
- <th><nobr>交付日期</nobr></th>
161
- <th><nobr>操作人</nobr></th>
162
- <th><nobr>操作日期</nobr></th>
163
- </tr>
164
- </template>
165
- <template partial='body'>
166
- <td style="text-align: center;"><nobr>
167
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
168
- </nobr> </td>
169
- <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
170
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
171
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
172
- <td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
173
-
174
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
175
- <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
176
- <td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
177
- <td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
178
- <td style="text-align: center;"><nobr>{{row.f_aroundmeter}}</nobr></td>
179
-
180
- <td style="text-align: center;"><nobr>{{row.f_galvanize_pipe}}</nobr></td>
181
- <td style="text-align: center;"><nobr>{{row.f_tee}}</nobr></td>
182
- <td style="text-align: center;"><nobr>{{row.f_nipple}}</nobr></td>
183
- <td style="text-align: center;"><nobr>{{row.f_elbow}}</nobr></td>
184
- <td style="text-align: center;"><nobr>{{row.f_bqf_type}}</nobr></td>
185
-
186
- <td style="text-align: center;"><nobr>{{row.f_pipe_strap}}</nobr></td>
187
- <td style="text-align: center;"><nobr>{{row.f_zqf}}</nobr></td>
188
- <td style="text-align: center;"><nobr>{{row.f_sebific_duct}}</nobr></td>
189
- <td style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
190
- <td style="text-align: center;"><nobr>{{row.f_zbf}}</nobr></td>
191
-
192
- <td style="text-align: center;"><nobr>{{row.f_gas_appliance}}</nobr></td>
193
- <td style="text-align: center;"><nobr>{{row.f_geyser}}</nobr></td>
194
- <td style="text-align: center;"><nobr>{{row.f_bgl}}</nobr></td>
195
- <td style="text-align: center;"><nobr>{{row.f_bgl_style}}</nobr></td>
196
-
197
-
198
- <td style="text-align: center;"><nobr>{{row.f_fire_gasbrand}}</nobr></td>
199
- <td style="text-align: center;"><nobr>{{row.f_fire_gasmodel}}</nobr></td>
200
- <td style="text-align: center;"><nobr>{{row.f_llj_scope}}</nobr></td>
201
- <td style="text-align: center;"><nobr>{{row.f_control_brand}}</nobr></td>
202
- <td style="text-align: center;"><nobr>{{row.f_control_model}}</nobr></td>
203
-
204
- <td style="text-align: center;"><nobr>{{row.f_control_date}}</nobr></td>
205
- <td style="text-align: center;"><nobr>{{row.f_control_code}}</nobr></td>
206
- <td style="text-align: center;"><nobr>{{row.f_control_number}}</nobr></td>
207
- <td style="text-align: center;"><nobr>{{row.f_appliance_type}}</nobr></td>
208
- <td style="text-align: center;"><nobr>{{row.f_appliance_brand}}</nobr></td>
209
-
210
- <td style="text-align: center;"><nobr>{{row.f_appliance_model}}</nobr></td>
211
- <td style="text-align: center;"><nobr>{{row.f_alarm_info}}</nobr></td>
212
- <td style="text-align: center;"><nobr>{{row.f_detector_number}}</nobr></td>
213
-
214
- <td style="text-align: center;"><nobr>{{row.f_fic}}</nobr></td>
215
- <td style="text-align: center;"><nobr>{{row.f_deliver_date}}</nobr></td>
216
- <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
217
- <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
218
- </template>
219
- <template partial='foot'>
220
-
221
- </template>
222
- </data-grid>
223
- </criteria-paged>
224
-
225
- <table class="table-hover">
226
- <tr style="position: relative" class="table-bordered">
227
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
228
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">暂无合计字段</td>
229
- </tr>
230
- </table>
231
-
232
- <modal :show.sync="printshow" v-ref:modal backdrop="false">
233
- <header slot="modal-header" class="modal-header text-center">
234
- <h4 class="modal-title">打印列选择</h4>
235
- <input type="checkbox" class="" id="f_generations" v-model="all">
236
- <label for="f_generations" class="font-size">全选</label>
237
- </header>
238
- <article slot="modal-body">
239
- <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
240
- <div class="col-sm-3" v-for="f in fields">
241
- <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
242
- <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
243
- </div>
244
- </div>
245
- </article>
246
- <footer slot="modal-footer" class="modal-footer">
247
- <center>
248
- <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
249
- <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
250
- <print-table :model='model' v-show="false" v-ref:print
251
- :top='40' :left='60' :right='40' :bottom='60'
252
- :thead="thead" :tfoot='tfoot' :attach="yangsen"
253
- :fields="modelval" :printpage="true">
254
- </print-table>
255
- </center>
256
- </footer>
257
- </modal>
258
- </div>
259
- <div class="flex" v-if="show">
260
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
261
- </div>
262
- </div></div></div>
263
- </template>
264
-
265
- <script>
266
- import { PagedList } from 'vue-client'
267
- import defaultPrint from '../config/DefaultPrint'
268
- import exportConfig from '../config/exportConfig'
269
-
270
- let readySomething = async function (self) {
271
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
272
- self.$MagGetSaleParam.initinputtor();
273
- self.getinputtores();
274
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
275
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
276
- // await self.$refs.paged.$refs.cri.search()
277
- }
278
- export default {
279
- title: '表具用气查询',
280
- data() {
281
- return {
282
- other:[],
283
- footer:[],
284
- model: new PagedList('rs/sql/fireQuery', 20),
285
- criteriaShow: false,
286
- orgCondtionStr: '',
287
- modelval: [],
288
- printshow: false,
289
- all: false,
290
- fields: {},
291
- thead: '',
292
- tfoot: '',
293
- defaultfield: [],
294
- config: {
295
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
296
- },
297
- show:false,
298
- rowdata:{},
299
- // 下拉框参数
300
- inputtores:[],
301
- usertypes:this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
302
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
303
- deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
304
- // brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
305
- watchpurchases: this.$appdata.getParam('购买方式') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('购买方式')] : [],
306
- pipetype: this.$appdata.getParam('管道类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('管道类型')] : [],
307
- initres: {
308
- org:[this.$login.f.orgid],
309
- dep:[],
310
- user:[],
311
- },
312
- // 合计数据
313
- sumsmodel: {}
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
-
372
- this.model.search(args.condition, args.model)
373
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
374
- console.log('合计字段',this.sumsmodel)
375
- },
376
- clear(){
377
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
378
- this.$refs.paged.$refs.cri.model[key] = []
379
- })
380
- },
381
- hidden(){
382
- this.criteriaShow = !this.criteriaShow
383
- },
384
- getRes(obj) {
385
- this.orgCondtionStr = obj
386
- },
387
- stamp () {
388
- this.all = false
389
- //默认选择要打印的列
390
- this.modelval = defaultPrint.config
391
- this.fields = this.getfield
392
- console.log('所有打印字段',this.fields)
393
- this.printshow = true
394
- this.put()
395
- },
396
- put () {
397
- // 对Modelval进行排序
398
- this.sortModelval()
399
- this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
400
- for (let key of this.modelval) {
401
- this.thead += '<th>' + this.fields[key] + '</th>'
402
- }
403
- this.thead += '</tr>'
404
- },
405
- print () {
406
- this.$refs.print.PrintAsFile()
407
- this.printshow = false
408
- },
409
- close () {
410
- this.printshow = false
411
- this.all = false
412
- },
413
- // 对选择的列进行排序
414
- sortModelval () {
415
- let sortModel = []
416
- Object.keys(this.fields).forEach((key) => {
417
- if (this.modelval.includes(key)) {
418
- sortModel.push(key)
419
- }
420
- })
421
- this.modelval = sortModel
422
- console.log('选择的打印的字段', this.modelval)
423
- }
424
- },
425
- watch:{
426
- 'all' (val) {
427
- if (val) {
428
- this.modelval = this.bodyData
429
- } else {
430
- this.modelval = defaultPrint.config
431
- this.put()
432
- }
433
- },
434
- sumsmodel:{
435
- handler: function(val) {
436
- this.getotherfooter();
437
- },
438
- deep: true
439
- },
440
- 'modelval.length' () {
441
- this.put()
442
- },
443
- },
444
- computed:{
445
- authArr () {
446
- return this.$login.r ? this.$login.r : []
447
- },
448
- getCondition(){
449
- return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr}
450
- },
451
- getfield(){
452
- let data = {}
453
- this.bodyData.forEach((value, index)=>{
454
- data[this.bodyData[index]] = this.headData[index]
455
- })
456
- //合计字段打印
457
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
458
- if(this.sumsmodel){
459
- Object.keys(this.sumsmodel).forEach((key) => {
460
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
461
- })
462
- }else{
463
- this.tfoot += '暂无'
464
- }
465
- this.tfoot += '</th></tr>'
466
- return data
467
- },
468
- getExportField() {
469
- return exportConfig.deviceConfig
470
- }
471
- }
472
- }
473
- </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>