manage-client 3.2.27 → 3.2.28

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 (70) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +174 -174
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/package.json +1 -1
  15. package/src/components/SellReport/AmountGas.vue +257 -257
  16. package/src/components/SellReport/BusinessClassify.vue +268 -317
  17. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  18. package/src/components/SellReport/BusinessReport.vue +256 -256
  19. package/src/components/SellReport/ChSellReport.vue +251 -251
  20. package/src/components/SellReport/ChargeBill.vue +244 -244
  21. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  22. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  23. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  24. package/src/components/SellReport/DepartmentPrick.vue +243 -288
  25. package/src/components/SellReport/DeptHomePage.vue +299 -299
  26. package/src/components/SellReport/FinanceSellType.vue +254 -254
  27. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  28. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -263
  29. package/src/components/SellReport/GasMoneyReport.vue +252 -254
  30. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  31. package/src/components/SellReport/GasSummary.vue +257 -257
  32. package/src/components/SellReport/Gasc.vue +257 -257
  33. package/src/components/SellReport/GetUserNum.vue +240 -240
  34. package/src/components/SellReport/HandplanBili.vue +241 -241
  35. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  36. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  37. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  38. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  39. package/src/components/SellReport/MarketMonth.vue +251 -297
  40. package/src/components/SellReport/MeterPrice.vue +244 -244
  41. package/src/components/SellReport/MeterReader.vue +231 -231
  42. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  43. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  44. package/src/components/SellReport/OtherChargePublicReport.vue +262 -262
  45. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  46. package/src/components/SellReport/PaymentMethod.vue +274 -274
  47. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  48. package/src/components/SellReport/SellDepReport.vue +264 -266
  49. package/src/components/SellReport/UserClassify.vue +222 -271
  50. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  51. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  52. package/src/components/SellReport/YuShouTable.vue +298 -298
  53. package/src/components/SellReport/chargeSchedule.vue +410 -410
  54. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  55. package/src/components/SellReport/userholds.vue +257 -257
  56. package/src/components/sale/config/exportConfig.js +898 -898
  57. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  58. package/src/components/sale/filesquery/FireQuery.vue +473 -0
  59. package/src/components/webmeter/gasStatistics/GasStatistics.vue +467 -467
  60. package/src/components/webmeter/newwebmeter/ArrearageQuery.vue +307 -307
  61. package/src/components/webmeter/recharge/RechargeList.vue +343 -343
  62. package/src/components/webmeter/report/ReportList.vue +420 -420
  63. package/src/filiale/WEINAN/BankManager.vue +139 -0
  64. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  65. package/src/filiale/WEINAN/reportManage.js +13 -12
  66. package/src/filiale/macheng/ArrearsQuery.vue +823 -823
  67. package/src/main.js +66 -66
  68. package/src/reportManage.js +498 -498
  69. package/src/saleManage.js +5 -0
  70. package/src/webmeterManage.js +117 -117
@@ -9,6 +9,9 @@
9
9
  <tabs header="表具设备查询" v-if="permission('表具设备查询')">
10
10
  <equipment-query v-if="show.includes('表具设备查询')"></equipment-query>
11
11
  </tabs>
12
+ <tabs header="点火查询" v-if="permission('点火查询')">
13
+ <fire-query v-if="show.includes('点火查询')"></fire-query>
14
+ </tabs>
12
15
  <tabs header="综合档案信息查询" v-if="permission('综合档案信息查询')">
13
16
  <record-info-query v-if="show.includes('综合档案信息查询')"></record-info-query>
14
17
  </tabs>
@@ -0,0 +1,473 @@
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>