manage-client 3.2.42 → 3.2.43

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 (111) hide show
  1. package/build/dev-server.js +8 -26
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/BonSummary.vue +178 -178
  5. package/src/components/SellReport/ChargePrick.vue +205 -205
  6. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  7. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  8. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  9. package/src/components/SellReport/NonResidentGas.vue +203 -203
  10. package/src/components/SellReport/OutletTable.vue +258 -258
  11. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  12. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  13. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  14. package/src/components/SellReport/SellingTable.vue +220 -220
  15. package/src/components/SellReport/UserSellingGas.vue +228 -228
  16. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  17. package/src/components/daping/GMap.vue +636 -636
  18. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  19. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  20. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  21. package/src/components/sale/businessquery/AreaChargeQuery.vue +380 -380
  22. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  23. package/src/components/sale/businessquery/BusinessManage.vue +6 -1
  24. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  25. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  26. package/src/components/sale/businessquery/CollectManage.vue +138 -138
  27. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  28. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  29. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  30. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  31. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  32. package/src/components/sale/businessquery/GasLossQuery.vue +561 -0
  33. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  34. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  35. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  36. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  37. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  38. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  39. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  40. package/src/components/sale/businessquery/gasPriceQuery.vue +365 -0
  41. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  42. package/src/components/sale/businessquery/usergas.vue +311 -311
  43. package/src/components/sale/config/exportConfig.js +10 -0
  44. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  45. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  46. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  47. package/src/components/statistical/DendrogramManage.vue +239 -239
  48. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  49. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  50. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  51. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  53. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  54. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  55. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  56. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  57. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  58. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  59. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  60. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  61. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  62. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  63. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  64. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  65. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  66. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  67. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  68. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  69. package/src/filiale/WEINAN/reportManage.js +12 -12
  70. package/src/filiale/WEINAN/sale.js +36 -36
  71. package/src/filiale/alashan/reportManage.js +10 -10
  72. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  73. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  74. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  75. package/src/filiale/macheng/MeterQuery.vue +12 -0
  76. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  77. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  78. package/src/filiale/pingxiang/sale.js +9 -9
  79. package/src/filiale/qianneng/OtherChargeDetailQuery.vue +74 -0
  80. package/src/filiale/qianneng/OtherChargeQuery.vue +634 -0
  81. package/src/filiale/qianneng/sale.js +9 -0
  82. package/src/filiale/qingtongxia/sale.js +13 -13
  83. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  84. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  85. package/src/filiale/rongchuang/reportManage.js +11 -11
  86. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  87. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  88. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  89. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  90. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  91. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  92. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  93. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  94. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  95. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  96. package/src/filiale/tongchuan/reportManage.js +5 -5
  97. package/src/filiale/wuhai/ChargeQuery.vue +19 -16
  98. package/src/filiale/zhongsheng/ChargeQuery.vue +1255 -1255
  99. package/src/filiale/zhongsheng/config/exportConfig.js +899 -899
  100. package/src/filiale/zhongsheng/sale.js +10 -10
  101. package/src/main.js +3 -3
  102. package/src/saleManage.js +9 -0
  103. package/static/wuhai.json +1610 -1610
  104. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  105. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  106. package/.gradle/5.4.1/gc.properties +0 -0
  107. package/src/.idea/misc.xml +0 -9
  108. package/src/.idea/modules.xml +0 -8
  109. package/src/.idea/src.iml +0 -9
  110. package/src/.idea/vcs.xml +0 -6
  111. package/src/.idea/workspace.xml +0 -93
@@ -1,523 +1,523 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
-
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 for="startDate" class="font_normal_body">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="true"
17
- condition="f_operate_date >= '{}'">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_date <= '{}'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">客户编号</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition="f_user_name like '%{}%'" placeholder="客户名称">
39
- </div>
40
-
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition"
47
- :field="$parent.$parent.getfield"
48
- :footer="$parent.$parent.footer"
49
- :header="$parent.$parent.other"
50
- sqlurl="rs/logic/exportfile" sql-name="fillGasQuery" template-name='补气查询导出'
51
- :choose-col="true"></export-excel>
52
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
- :defaultfield="$parent.$parent.defaultfield"
54
- titletable="补气记录"
55
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
- <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>
57
- </div>
58
- </div>
59
-
60
- <div class="row" v-show="$parent.$parent.criteriaShow">
61
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">客户电话</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
65
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">客户地址</label>
69
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
70
- condition="f_address like '%{}%'" placeholder='客户地址'>
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">操作类型</label>
74
- <v-select :value.sync="model.f_type"
75
- v-model="model.f_type"
76
- :options='$parent.$parent.fillGasTypes' placeholder='请选择'
77
- condition="f_type = '{}'"
78
- close-on-select></v-select>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">补气类型</label>
82
- <v-select :value.sync="model.f_fill_type"
83
- :multiple="true"
84
- v-model="model.f_fill_type"
85
- :options='$parent.$parent.fillTypes' placeholder='请选择'
86
- condition="f_fill_type in {}"
87
- close-on-select></v-select>
88
- </div>
89
-
90
- <div class="col-sm-2 form-group">
91
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
92
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
93
- condition="f_card_id like '%{}%'" placeholder='卡号'>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">气表类型</label>
97
- <v-select :value.sync="model.f_meter_type" multiple
98
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
99
- condition="f_meter_type in {}"
100
- close-on-select></v-select>
101
- </div>
102
- <div class="col-sm-2 form-group">
103
- <label class="font_normal_body">气表品牌</label>
104
- <v-select :value.sync="model.f_meter_brand"
105
- v-model="model.f_meter_brand"
106
- :options='$parent.$parent.meterbrands' placeholder='请选择'
107
- condition="f_meter_brand = '{}'"
108
- close-on-select></v-select>
109
- </div>
110
- <div class="col-sm-2 form-group">
111
- <label class="font_normal_body">补气状态</label>
112
- <v-select :value.sync="model.f_state"
113
- v-model="model.f_state"
114
- :options='$parent.$parent.chargeState' placeholder='请选择'
115
- condition="f_state = '{}'"
116
- close-on-select></v-select>
117
- </div>
118
- <div class="col-sm-2 form-group">
119
- <label class="font_normal_body">用户类型</label>
120
- <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
121
- :options='$parent.$parent.usertypes' placeholder='请选择'
122
- @change="$parent.$parent.userTypeChange()"
123
- condition="f_user_type = '{}'"
124
- close-on-select></v-select>
125
- </div>
126
- <div class="col-sm-2 form-group">
127
- <label class="font_normal_body">用气性质</label>
128
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
129
- :options='$parent.$parent.gasproperties' placeholder='请选择'
130
- condition="f_gasproperties = '{}'"
131
- close-on-select></v-select>
132
- </div>
133
- </div>
134
-
135
- </div>
136
- </criteria>
137
-
138
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
139
- <template partial='head'>
140
- <tr>
141
- <th>
142
- <nobr>客户编号</nobr>
143
- </th>
144
- <th>
145
- <nobr>客户名称</nobr>
146
- </th>
147
- <th>
148
- <nobr>客户类型</nobr>
149
- </th>
150
- <th>
151
- <nobr>客户电话</nobr>
152
- </th>
153
- <th>
154
- <nobr>客户地址</nobr>
155
- </th>
156
- <th>
157
- <nobr>卡号</nobr>
158
- </th>
159
- <th>
160
- <nobr>气表品牌</nobr>
161
- </th>
162
- <th>
163
- <nobr>补气量</nobr>
164
- </th>
165
- <th>
166
- <nobr>补气金额</nobr>
167
- </th>
168
- <th>
169
- <nobr>操作类型</nobr>
170
- </th>
171
- <th>
172
- <nobr>补气类型</nobr>
173
- </th>
174
- <th>
175
- <nobr>补气日期</nobr>
176
- </th>
177
- <th>
178
- <nobr>补气原因</nobr>
179
- </th>
180
- <th>
181
- <nobr>操作员</nobr>
182
- </th>
183
- <th>
184
- <nobr>部门</nobr>
185
- </th>
186
- <th>
187
- <nobr>公司</nobr>
188
- </th>
189
- <th><nobr>附件</nobr></th>
190
- </tr>
191
- </template>
192
- <template partial='body'>
193
- <td style="text-align: center;">
194
- <nobr>
195
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
196
- </td>
197
- <td style="text-align: center;">
198
- <nobr>{{row.f_user_name}}</nobr>
199
- </td>
200
- <td style="text-align: center;">
201
- <nobr>{{row.f_user_type}}</nobr>
202
- </td>
203
- <td style="text-align: center;">
204
- <nobr>{{row.f_user_phone}}</nobr>
205
- </td>
206
- <td style="text-align: center;">
207
- <nobr>{{row.f_address}}</nobr>
208
- </td>
209
- <td style="text-align: center;">
210
- <nobr>{{row.f_card_id}}</nobr>
211
- </td>
212
- <td style="text-align: center;">
213
- <nobr>{{row.f_meter_brand}}</nobr>
214
- </td>
215
- <td style="text-align: center;">
216
- <nobr>{{row.f_pregas}}</nobr>
217
- </td>
218
- <td style="text-align: center;">
219
- <nobr>{{row.f_preamount}}</nobr>
220
- </td>
221
- <td style="text-align: center;">
222
- <nobr>{{row.f_type}}</nobr>
223
- </td>
224
- <td style="text-align: center;">
225
- <nobr>{{row.f_fill_type}}</nobr>
226
- </td>
227
- <td style="text-align: center;">
228
- <nobr>{{row.f_operate_date}}</nobr>
229
- </td>
230
- <td style="text-align: center;">
231
- <nobr>{{row.f_comments}}</nobr>
232
- </td>
233
- <td style="text-align: center;">
234
- <nobr>{{row.f_operator}}</nobr>
235
- </td>
236
- <td style="text-align: center;">
237
- <nobr>{{row.f_depname}}</nobr>
238
- </td>
239
- <td style="text-align: center;">
240
- <nobr>{{row.f_orgname}}</nobr>
241
- </td>
242
- <td style="text-align: center;"><nobr>
243
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
244
- </nobr></td>
245
- </template>
246
- <template partial='foot'></template>
247
- </data-grid>
248
- </criteria-paged>
249
-
250
- <table class="table-hover">
251
- <tr style="position: relative" class="table-bordered">
252
- <td
253
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
254
- 汇总信息
255
- </td>
256
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
257
- 补气量合计:&emsp;{{sumsmodel.f_pregas}}
258
- </td>
259
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
260
- 补气金额合计:&emsp;{{sumsmodel.f_preamount}}
261
- </td>
262
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
263
- 户数合计:&emsp;{{sumsmodel.hushu}}
264
- </td>
265
- </tr>
266
- </table>
267
- </div>
268
- <div class="flex" v-if="show">
269
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
270
- </div>
271
- </div>
272
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
273
- <article slot="modal-body">
274
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="补气" :isremark="false" style="width:auto" ></upload>
275
- </article>
276
- <footer slot="modal-footer" class="modal-footer">
277
- </footer>
278
- </modal>
279
- </div>
280
- </template>
281
-
282
- <script>
283
- import {PagedList} from 'vue-client'
284
- import defaultPrint from './config/DefaultPrint'
285
- import exportConfig from './config/exportConfig'
286
-
287
- let readySomething = async function (self) {
288
-
289
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
290
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
291
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
292
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
293
- // await self.$refs.paged.$refs.cri.search()
294
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
295
- self.initParams()
296
- await self.$MagLoadParams.loadParam()
297
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
298
- }
299
- export default {
300
- props:['data'],
301
- title: '补气查询',
302
- data() {
303
- return {
304
- data: {},
305
- other:[],
306
- footer:[],
307
- model: new PagedList('rs/sql/fillGasQuery', 20, {}, {f_pregas: 0,f_preamount: 0,hushu:0}),
308
- criteriaShow: false,
309
- headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补气类型", "表编号", "卡号", "气表品牌", "气表状态", "补气量", "补气日期", "操作员", "部门", "公司"],
310
- bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", "f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_fillgas", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
311
- orgCondtionStr: '',
312
- config: {
313
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_idnumber', 'f_type', 'f_meter_brand', 'f_fillgas','f_operate_date', 'f_operator']
314
- },
315
- //默认打印列
316
- defaultfield: [],
317
- modelval: [],
318
- printshow: false,
319
- all: false,
320
- fields: {},
321
- thead: '',
322
- tfoot: '',
323
- show:false,
324
- rowdata:{},
325
- meterbrands: [],
326
- initres: {
327
- org:[this.$login.f.orgid],
328
- dep:[],
329
- user:[],
330
- },
331
- metertypes: this.$appdata.getParam('气表类型')?[{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]:[],
332
- showupload:false,
333
- selected:{},
334
- gasproperties:[],
335
- //合计数据
336
- sumsmodel: {}
337
- }
338
- },
339
- ready() {
340
- readySomething(this).then(() => {
341
- this.$emit('ready')
342
- }).catch((error) => {
343
- this.$emit('error', error)
344
- })
345
- },
346
- methods: {
347
- view(row){
348
- this.showupload = true
349
- this.selected= row
350
- },
351
- getotherfooter(){
352
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
353
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
354
- this.other=[];
355
- this.footer=[];
356
- let exportdata = this.getCondition;
357
- let otherInData=[];
358
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
359
- let footerData=[],exportfield=this.getfield;
360
- footerData.push("合计");
361
- let self = this;
362
- for(var field in self.sumsmodel){
363
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
364
- }
365
- this.footer.push(footerData);
366
- this.other.push(otherInData);
367
- },
368
- search(){
369
- this.$refs.paged.$refs.cri.search()
370
- },
371
- initParams() {
372
- // 初始化气表品牌
373
- let brandArr = []
374
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
375
- let temp = {}
376
- temp.label = item.label
377
- temp.value = item.value.f_meter_brand
378
- brandArr.push(temp)
379
- })
380
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
381
- },
382
- async selfSearch(args) {
383
- if (this.data) {
384
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
385
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
386
- }
387
- args.condition = `${args.condition}` + this.orgCondtionStr
388
- await this.model.search(args.condition, args.model)
389
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
390
- this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
391
- console.log("this.sumsmodel",this.sumsmodel,this.$refs.paged.$refs.grid)
392
-
393
- },
394
- clear() {
395
- //清空部门和人员
396
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
397
- //部门和人员变为全选
398
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
399
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
400
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
401
- this.$refs.paged.$refs.cri.model[key] = []
402
- })
403
- },
404
- show() {
405
- this.criteriaShow = true
406
- },
407
- hidden() {
408
- this.criteriaShow = !this.criteriaShow
409
- },
410
- getRes(condition) {
411
- this.orgCondtionStr = condition
412
- },
413
- stamp() {
414
- this.all = false
415
- //默认选择要打印的列
416
- this.modelval = defaultPrint.config
417
- this.fields = this.getfield
418
- console.log('所有打印字段', this.fields)
419
- this.printshow = true
420
- this.put()
421
- },
422
- cancel() {
423
- this.show = false
424
- },
425
- dealmsg(val) {
426
- console.log('---------------dealmsg')
427
- this.rowdata=val
428
- this.show=true
429
- val.model = this.model.model
430
- this.$dispatch('deal-msg', val)
431
- },
432
- put() {
433
- // 对Modelval进行排序
434
- this.sortModelval()
435
- this.thead = `<tr><th colspan=${this.modelval.length}>补气查询统计报表</th></tr><tr>`
436
- for (let key of this.modelval) {
437
- this.thead += '<th>' + this.fields[key] + '</th>'
438
- }
439
- this.thead += '</tr>'
440
- },
441
- print() {
442
- this.$refs.print.PrintAsFile()
443
- this.printshow = false
444
- },
445
- close() {
446
- this.printshow = false
447
- this.all = false
448
- },
449
- // 对选择的列进行排序
450
- sortModelval() {
451
- let sortModel = []
452
- Object.keys(this.fields).forEach((key) => {
453
- if (this.modelval.includes(key)) {
454
- sortModel.push(key)
455
- }
456
- })
457
- this.modelval = sortModel
458
- console.log('选择的打印的字段', this.modelval)
459
- },
460
- async updateParams() {
461
- await this.$MagLoadParams.loadParam(this.f_filialeid)
462
- this.initParams()
463
- },
464
- userTypeChange () {
465
- this.gasproperties=[]
466
- if(this.$refs.paged.$refs.cri.model !==null) {
467
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
468
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
469
- }
470
- else{
471
- this.gasproperties =[{label: '全部', value: ''}]
472
- }
473
- }
474
- },
475
- watch: {
476
- 'all'(val) {
477
- if (val) {
478
- this.modelval = this.bodyData
479
- } else {
480
- this.modelval = defaultPrint.config
481
- this.put()
482
- }
483
- },
484
- 'modelval.length'() {
485
- this.put()
486
- },
487
- sumsmodel:{
488
- handler: function(val) {
489
- this.getotherfooter();
490
- },
491
- deep: true
492
- },
493
- 'orgCondtionStr'(val) {
494
- let res = val.match(/'(.*?)'/)
495
- console.log('正则提取:',res && res[1])
496
- if (res) {
497
- this.f_filialeid = res[1]
498
- this.updateParams()
499
- }
500
- }
501
- },
502
- computed: {
503
- getCondition() {
504
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
505
- },
506
- getfield() {
507
- return exportConfig.fillgasConfig
508
- },
509
- fillGasTypes() {
510
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型')]
511
- },
512
- fillTypes() {
513
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型细化')]
514
- },
515
- chargeState() {
516
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气状态')]
517
- },
518
- usertypes() {
519
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
520
- }
521
- }
522
- }
523
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+
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 for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operate_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date <= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
39
+ </div>
40
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ :footer="$parent.$parent.footer"
49
+ :header="$parent.$parent.other"
50
+ sqlurl="rs/logic/exportfile" sql-name="fillGasQuery" template-name='补气查询导出'
51
+ :choose-col="true"></export-excel>
52
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
+ :defaultfield="$parent.$parent.defaultfield"
54
+ titletable="补气记录"
55
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
+ <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>
57
+ </div>
58
+ </div>
59
+
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户电话</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
65
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">客户地址</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
70
+ condition="f_address like '%{}%'" placeholder='客户地址'>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">操作类型</label>
74
+ <v-select :value.sync="model.f_type"
75
+ v-model="model.f_type"
76
+ :options='$parent.$parent.fillGasTypes' placeholder='请选择'
77
+ condition="f_type = '{}'"
78
+ close-on-select></v-select>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">补气类型</label>
82
+ <v-select :value.sync="model.f_fill_type"
83
+ :multiple="true"
84
+ v-model="model.f_fill_type"
85
+ :options='$parent.$parent.fillTypes' placeholder='请选择'
86
+ condition="f_fill_type in {}"
87
+ close-on-select></v-select>
88
+ </div>
89
+
90
+ <div class="col-sm-2 form-group">
91
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
92
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
93
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">气表类型</label>
97
+ <v-select :value.sync="model.f_meter_type" multiple
98
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
99
+ condition="f_meter_type in {}"
100
+ close-on-select></v-select>
101
+ </div>
102
+ <div class="col-sm-2 form-group">
103
+ <label class="font_normal_body">气表品牌</label>
104
+ <v-select :value.sync="model.f_meter_brand"
105
+ v-model="model.f_meter_brand"
106
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
107
+ condition="f_meter_brand = '{}'"
108
+ close-on-select></v-select>
109
+ </div>
110
+ <div class="col-sm-2 form-group">
111
+ <label class="font_normal_body">补气状态</label>
112
+ <v-select :value.sync="model.f_state"
113
+ v-model="model.f_state"
114
+ :options='$parent.$parent.chargeState' placeholder='请选择'
115
+ condition="f_state = '{}'"
116
+ close-on-select></v-select>
117
+ </div>
118
+ <div class="col-sm-2 form-group">
119
+ <label class="font_normal_body">用户类型</label>
120
+ <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
121
+ :options='$parent.$parent.usertypes' placeholder='请选择'
122
+ @change="$parent.$parent.userTypeChange()"
123
+ condition="f_user_type = '{}'"
124
+ close-on-select></v-select>
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label class="font_normal_body">用气性质</label>
128
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
129
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
130
+ condition="f_gasproperties = '{}'"
131
+ close-on-select></v-select>
132
+ </div>
133
+ </div>
134
+
135
+ </div>
136
+ </criteria>
137
+
138
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
139
+ <template partial='head'>
140
+ <tr>
141
+ <th>
142
+ <nobr>客户编号</nobr>
143
+ </th>
144
+ <th>
145
+ <nobr>客户名称</nobr>
146
+ </th>
147
+ <th>
148
+ <nobr>客户类型</nobr>
149
+ </th>
150
+ <th>
151
+ <nobr>客户电话</nobr>
152
+ </th>
153
+ <th>
154
+ <nobr>客户地址</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>卡号</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>气表品牌</nobr>
161
+ </th>
162
+ <th>
163
+ <nobr>补气量</nobr>
164
+ </th>
165
+ <th>
166
+ <nobr>补气金额</nobr>
167
+ </th>
168
+ <th>
169
+ <nobr>操作类型</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>补气类型</nobr>
173
+ </th>
174
+ <th>
175
+ <nobr>补气日期</nobr>
176
+ </th>
177
+ <th>
178
+ <nobr>补气原因</nobr>
179
+ </th>
180
+ <th>
181
+ <nobr>操作员</nobr>
182
+ </th>
183
+ <th>
184
+ <nobr>部门</nobr>
185
+ </th>
186
+ <th>
187
+ <nobr>公司</nobr>
188
+ </th>
189
+ <th><nobr>附件</nobr></th>
190
+ </tr>
191
+ </template>
192
+ <template partial='body'>
193
+ <td style="text-align: center;">
194
+ <nobr>
195
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
196
+ </td>
197
+ <td style="text-align: center;">
198
+ <nobr>{{row.f_user_name}}</nobr>
199
+ </td>
200
+ <td style="text-align: center;">
201
+ <nobr>{{row.f_user_type}}</nobr>
202
+ </td>
203
+ <td style="text-align: center;">
204
+ <nobr>{{row.f_user_phone}}</nobr>
205
+ </td>
206
+ <td style="text-align: center;">
207
+ <nobr>{{row.f_address}}</nobr>
208
+ </td>
209
+ <td style="text-align: center;">
210
+ <nobr>{{row.f_card_id}}</nobr>
211
+ </td>
212
+ <td style="text-align: center;">
213
+ <nobr>{{row.f_meter_brand}}</nobr>
214
+ </td>
215
+ <td style="text-align: center;">
216
+ <nobr>{{row.f_pregas}}</nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr>{{row.f_preamount}}</nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_type}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_fill_type}}</nobr>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_operate_date}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_comments}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_operator}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_depname}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_orgname}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;"><nobr>
243
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
244
+ </nobr></td>
245
+ </template>
246
+ <template partial='foot'></template>
247
+ </data-grid>
248
+ </criteria-paged>
249
+
250
+ <table class="table-hover">
251
+ <tr style="position: relative" class="table-bordered">
252
+ <td
253
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
254
+ 汇总信息
255
+ </td>
256
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
257
+ 补气量合计:&emsp;{{sumsmodel.f_pregas}}
258
+ </td>
259
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
260
+ 补气金额合计:&emsp;{{sumsmodel.f_preamount}}
261
+ </td>
262
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
263
+ 户数合计:&emsp;{{sumsmodel.hushu}}
264
+ </td>
265
+ </tr>
266
+ </table>
267
+ </div>
268
+ <div class="flex" v-if="show">
269
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
270
+ </div>
271
+ </div>
272
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
273
+ <article slot="modal-body">
274
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="补气" :isremark="false" style="width:auto" ></upload>
275
+ </article>
276
+ <footer slot="modal-footer" class="modal-footer">
277
+ </footer>
278
+ </modal>
279
+ </div>
280
+ </template>
281
+
282
+ <script>
283
+ import {PagedList} from 'vue-client'
284
+ import defaultPrint from './config/DefaultPrint'
285
+ import exportConfig from './config/exportConfig'
286
+
287
+ let readySomething = async function (self) {
288
+
289
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
290
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
291
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
292
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
293
+ // await self.$refs.paged.$refs.cri.search()
294
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
295
+ self.initParams()
296
+ await self.$MagLoadParams.loadParam()
297
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
298
+ }
299
+ export default {
300
+ props:['data'],
301
+ title: '补气查询',
302
+ data() {
303
+ return {
304
+ data: {},
305
+ other:[],
306
+ footer:[],
307
+ model: new PagedList('rs/sql/fillGasQuery', 20, {}, {f_pregas: 0,f_preamount: 0,hushu:0}),
308
+ criteriaShow: false,
309
+ headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补气类型", "表编号", "卡号", "气表品牌", "气表状态", "补气量", "补气日期", "操作员", "部门", "公司"],
310
+ bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", "f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_fillgas", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
311
+ orgCondtionStr: '',
312
+ config: {
313
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_idnumber', 'f_type', 'f_meter_brand', 'f_fillgas','f_operate_date', 'f_operator']
314
+ },
315
+ //默认打印列
316
+ defaultfield: [],
317
+ modelval: [],
318
+ printshow: false,
319
+ all: false,
320
+ fields: {},
321
+ thead: '',
322
+ tfoot: '',
323
+ show:false,
324
+ rowdata:{},
325
+ meterbrands: [],
326
+ initres: {
327
+ org:[this.$login.f.orgid],
328
+ dep:[],
329
+ user:[],
330
+ },
331
+ metertypes: this.$appdata.getParam('气表类型')?[{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]:[],
332
+ showupload:false,
333
+ selected:{},
334
+ gasproperties:[],
335
+ //合计数据
336
+ sumsmodel: {}
337
+ }
338
+ },
339
+ ready() {
340
+ readySomething(this).then(() => {
341
+ this.$emit('ready')
342
+ }).catch((error) => {
343
+ this.$emit('error', error)
344
+ })
345
+ },
346
+ methods: {
347
+ view(row){
348
+ this.showupload = true
349
+ this.selected= row
350
+ },
351
+ getotherfooter(){
352
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
353
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
354
+ this.other=[];
355
+ this.footer=[];
356
+ let exportdata = this.getCondition;
357
+ let otherInData=[];
358
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
359
+ let footerData=[],exportfield=this.getfield;
360
+ footerData.push("合计");
361
+ let self = this;
362
+ for(var field in self.sumsmodel){
363
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
364
+ }
365
+ this.footer.push(footerData);
366
+ this.other.push(otherInData);
367
+ },
368
+ search(){
369
+ this.$refs.paged.$refs.cri.search()
370
+ },
371
+ initParams() {
372
+ // 初始化气表品牌
373
+ let brandArr = []
374
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
375
+ let temp = {}
376
+ temp.label = item.label
377
+ temp.value = item.value.f_meter_brand
378
+ brandArr.push(temp)
379
+ })
380
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
381
+ },
382
+ async selfSearch(args) {
383
+ if (this.data) {
384
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
385
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
386
+ }
387
+ args.condition = `${args.condition}` + this.orgCondtionStr
388
+ await this.model.search(args.condition, args.model)
389
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
390
+ this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
391
+ console.log("this.sumsmodel",this.sumsmodel,this.$refs.paged.$refs.grid)
392
+
393
+ },
394
+ clear() {
395
+ //清空部门和人员
396
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
397
+ //部门和人员变为全选
398
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
399
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
400
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
401
+ this.$refs.paged.$refs.cri.model[key] = []
402
+ })
403
+ },
404
+ show() {
405
+ this.criteriaShow = true
406
+ },
407
+ hidden() {
408
+ this.criteriaShow = !this.criteriaShow
409
+ },
410
+ getRes(condition) {
411
+ this.orgCondtionStr = condition
412
+ },
413
+ stamp() {
414
+ this.all = false
415
+ //默认选择要打印的列
416
+ this.modelval = defaultPrint.config
417
+ this.fields = this.getfield
418
+ console.log('所有打印字段', this.fields)
419
+ this.printshow = true
420
+ this.put()
421
+ },
422
+ cancel() {
423
+ this.show = false
424
+ },
425
+ dealmsg(val) {
426
+ console.log('---------------dealmsg')
427
+ this.rowdata=val
428
+ this.show=true
429
+ val.model = this.model.model
430
+ this.$dispatch('deal-msg', val)
431
+ },
432
+ put() {
433
+ // 对Modelval进行排序
434
+ this.sortModelval()
435
+ this.thead = `<tr><th colspan=${this.modelval.length}>补气查询统计报表</th></tr><tr>`
436
+ for (let key of this.modelval) {
437
+ this.thead += '<th>' + this.fields[key] + '</th>'
438
+ }
439
+ this.thead += '</tr>'
440
+ },
441
+ print() {
442
+ this.$refs.print.PrintAsFile()
443
+ this.printshow = false
444
+ },
445
+ close() {
446
+ this.printshow = false
447
+ this.all = false
448
+ },
449
+ // 对选择的列进行排序
450
+ sortModelval() {
451
+ let sortModel = []
452
+ Object.keys(this.fields).forEach((key) => {
453
+ if (this.modelval.includes(key)) {
454
+ sortModel.push(key)
455
+ }
456
+ })
457
+ this.modelval = sortModel
458
+ console.log('选择的打印的字段', this.modelval)
459
+ },
460
+ async updateParams() {
461
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
462
+ this.initParams()
463
+ },
464
+ userTypeChange () {
465
+ this.gasproperties=[]
466
+ if(this.$refs.paged.$refs.cri.model !==null) {
467
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
468
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
469
+ }
470
+ else{
471
+ this.gasproperties =[{label: '全部', value: ''}]
472
+ }
473
+ }
474
+ },
475
+ watch: {
476
+ 'all'(val) {
477
+ if (val) {
478
+ this.modelval = this.bodyData
479
+ } else {
480
+ this.modelval = defaultPrint.config
481
+ this.put()
482
+ }
483
+ },
484
+ 'modelval.length'() {
485
+ this.put()
486
+ },
487
+ sumsmodel:{
488
+ handler: function(val) {
489
+ this.getotherfooter();
490
+ },
491
+ deep: true
492
+ },
493
+ 'orgCondtionStr'(val) {
494
+ let res = val.match(/'(.*?)'/)
495
+ console.log('正则提取:',res && res[1])
496
+ if (res) {
497
+ this.f_filialeid = res[1]
498
+ this.updateParams()
499
+ }
500
+ }
501
+ },
502
+ computed: {
503
+ getCondition() {
504
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
505
+ },
506
+ getfield() {
507
+ return exportConfig.fillgasConfig
508
+ },
509
+ fillGasTypes() {
510
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型')]
511
+ },
512
+ fillTypes() {
513
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气类型细化')]
514
+ },
515
+ chargeState() {
516
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补气状态')]
517
+ },
518
+ usertypes() {
519
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
520
+ }
521
+ }
522
+ }
523
+ </script>