manage-client 3.1.35 → 3.1.39

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