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
@@ -0,0 +1,561 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
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
+
11
+ <div class="col-sm-2 form-group">
12
+ <label for="startDate" class="font_normal_body">操作日期</label>
13
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
14
+ v-model="model.startDate"
15
+ :value.sync="model.startDate"
16
+ :format="'yyyy-MM-dd HH:mm:ss'"
17
+ :show-reset-button="true"
18
+ condition="f_charge_date >= '{}'">
19
+ </datepicker>
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
23
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
24
+ v-model="model.endDate"
25
+ :value.sync="model.endDate"
26
+ :format="'yyyy-MM-dd HH:mm:ss'"
27
+ :show-reset-button="true"
28
+ condition="f_charge_date <= '{}'">
29
+ </datepicker>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">客户编号</label>
33
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
34
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
35
+ </div>
36
+ <div class="col-sm-2 form-group">
37
+ <label class="font_normal_body">缴&nbsp;费&nbsp;人&nbsp;</label>
38
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_charge_person"
39
+ condition="f_charge_person like '%{}%'" placeholder="缴费人">
40
+ </div>
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
+
45
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
46
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
47
+ sqlurl="rs/logic/exportfile" sql-name="gaslossQuery" template-name='气损收费导出'
48
+ :choose-col="true"></export-excel>
49
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
50
+ :defaultfield="$parent.$parent.defaultfield" print-name="气损收费打印"
51
+ titletable="气损收费打印"
52
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
53
+
54
+ <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>
55
+ </div>
56
+ </div>
57
+ <div class="row" v-show="$parent.$parent.criteriaShow">
58
+ <res-select-group :show-component="['company','operator']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
61
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_charge_address"
62
+ condition="f_charge_address like '%{}%'" placeholder="缴费人地址">
63
+ </div>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
66
+ <v-select :value.sync="model.f_payment" multiple
67
+ v-model="model.f_payment"
68
+ :options='$parent.$parent.payment' placeholder='请选择'
69
+ condition="f_payment in {}"
70
+ close-on-select></v-select>
71
+ </div>
72
+
73
+ </div>
74
+ </div>
75
+ </criteria>
76
+
77
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
78
+ <template partial='head'>
79
+ <tr>
80
+ <th>
81
+ <nobr>客户编号</nobr>
82
+ </th>
83
+ <th>
84
+ <nobr>缴费人</nobr>
85
+ </th>
86
+ <th>
87
+ <nobr>联系方式</nobr>
88
+ </th>
89
+ <th>
90
+ <nobr>缴费人地址</nobr>
91
+ </th>
92
+ <th>
93
+ <nobr>金额</nobr>
94
+ </th>
95
+ <th>
96
+ <nobr>付款方式</nobr>
97
+ </th>
98
+ <th>
99
+ <nobr>打印格式</nobr>
100
+ </th>
101
+ <th>
102
+ <nobr>流水号</nobr>
103
+ </th>
104
+ <th>
105
+ <nobr>支付单号</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>详情</nobr>
109
+ </th>
110
+ <th>
111
+ <nobr>缴费日期</nobr>
112
+ </th>
113
+
114
+ <th>
115
+ <nobr>操作人</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>部门</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>公司</nobr>
122
+ </th>
123
+ <!-- <th><nobr>附件</nobr></th>-->
124
+ </tr>
125
+ </template>
126
+ <template partial='body'>
127
+ <td style="text-align: center;">
128
+ <nobr>{{row.f_userinfo_code}}</nobr>
129
+ </td>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.f_charge_person}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.f_charge_phone}}</nobr>
135
+ </td>
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.f_charge_address}}</nobr>
138
+ </td>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.f_collection}}</nobr>
141
+ </td>
142
+
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_payment}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_bill_style}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_serial_id}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_pay_id}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.detail}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_charge_date}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.f_operator}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;">
165
+ <nobr>{{row.f_depname}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.f_orgname}}</nobr>
169
+ </td>
170
+ <!-- <td style="text-align: center;"><nobr>-->
171
+ <!-- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>-->
172
+ <!-- </nobr></td>-->
173
+ </template>
174
+ <template partial='foot'></template>
175
+ </data-grid>
176
+ </criteria-paged>
177
+
178
+ <table class="table-hover">
179
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
180
+ <td
181
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
182
+ 汇总信息
183
+ </td>
184
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
185
+ 金额合计:&emsp;{{sumsmodel.f_collection}}
186
+ </td>
187
+
188
+ </tr>
189
+ </table>
190
+ </div>
191
+ </div>
192
+ <div class="flex" v-if="show">
193
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
194
+ </div>
195
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
196
+ <article slot="modal-body">
197
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="气损收费" :isremark="false" style="width:auto" ></upload>
198
+ </article>
199
+ <footer slot="modal-footer" class="modal-footer">
200
+ </footer>
201
+ </modal>
202
+
203
+
204
+ <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;" >
205
+ <header slot="modal-header" class="modal-header">
206
+ 反盘导入
207
+ </header>
208
+ <article slot="modal-body" class="modal-body">
209
+ <div class="progress" style="margin: 20px" >
210
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
211
+ {{percent}}%
212
+ </div>
213
+ </div>
214
+ </article>
215
+ <footer slot="modal-footer" class="modal-footer">
216
+ <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
217
+ </footer>
218
+ </modal>
219
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
220
+ </div>
221
+ </template>
222
+
223
+ <script>
224
+ import {PagedList, HttpResetClass} from 'vue-client'
225
+ import defaultPrint from '../config/DefaultPrint'
226
+ import exportConfig from '../config/exportConfig'
227
+ import axios from 'axios'
228
+
229
+ let readySomething = async function (self) {
230
+
231
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
232
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
233
+ await self.$getConfig(self, 'GasLossQuery')
234
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
235
+ console.log('开始查询')
236
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
237
+ }
238
+ export default {
239
+ props:['data'],
240
+ title: '气损收费查询',
241
+ data() {
242
+ return {
243
+ iswork:false,
244
+ other:[],
245
+ footer:[],
246
+ data: {},
247
+ model: new PagedList('rs/sql/gaslossQuery', 20, {}, {
248
+ f_collection: 0
249
+ }),
250
+ initres: {
251
+ org:[this.$login.f.orgid],
252
+ dep:[],
253
+ user:[],
254
+ },
255
+ show:false,
256
+ rowdata:{},
257
+ criteriaShow: false,
258
+
259
+ orgCondtionStr: '',
260
+ modelval: [],
261
+
262
+ inputtouPerson: [],
263
+ meterbrands: [],
264
+ printshow: false,
265
+ f_filialeid: this.$login.f.f_orgid,
266
+ all: false,
267
+ fields: {},
268
+ thead: '',
269
+ tfoot: '',
270
+ showupload:false,
271
+ selected:{},
272
+
273
+ // 下拉框
274
+
275
+ //合计数据
276
+ sumsmodel: {},
277
+ defaultfield: [],
278
+ config: {
279
+ defaultPrint: ['f_userinfo_code', 'f_charge_person', 'f_charge_phone', 'f_charge_address', 'f_collection']
280
+ },
281
+ prices: [],
282
+ meterbooks:[{label: '全部',value: ''}], //抄表册
283
+ tempfalg :false,
284
+ lastorgstr:'',
285
+ allorgid:[],
286
+ inputtores:[{label: '全部',value: ''}], //抄表员
287
+ //表册片区
288
+ bookSlice:[{label: '全部',value: ''}],
289
+ imgshow:false,
290
+ imgfilename:'',
291
+ percent:0,
292
+ progressShow:false,
293
+ uuida:'',
294
+ timer:'',
295
+ }
296
+ },
297
+ ready() {
298
+ readySomething(this).then(() => {
299
+ this.$emit('ready')
300
+ }).catch((error) => {
301
+ this.$emit('error', error)
302
+ })
303
+ },
304
+ methods: {
305
+ getuuid(){
306
+ let uuidA = '';
307
+ var s = [];
308
+ var hexDigits = '0123456789abcdef';
309
+ for (var i = 0; i < 36; i++) {
310
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
311
+ }
312
+ s[14] = '4';
313
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
314
+ s[8] = s[13] = s[18] = s[23] = '-';
315
+ uuidA = s.join('');
316
+ this.uuida = uuidA;
317
+ },
318
+ progressclose(){
319
+ this.progressShow = false;
320
+ if(this.timer != null){
321
+ clearInterval(this.timer);
322
+ }
323
+ },
324
+
325
+ view(row){
326
+ this.showupload = true
327
+ this.selected= row
328
+ },
329
+ imgclose(){
330
+ this.imgshow = false
331
+ },
332
+ imgShow(val){
333
+ this.imgfilename = `rs/image/file/`+val
334
+ this.imgshow = true
335
+ },
336
+ getotherfooter(){
337
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
338
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
339
+ this.other=[];
340
+ this.footer=[];
341
+ let exportdata = this.getCondition;
342
+ let otherInData=[];
343
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
344
+ let footerData=[],exportfield=this.getfield;
345
+ footerData.push("合计");
346
+ let self = this;
347
+ for(var field in self.sumsmodel){
348
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
349
+ }
350
+ this.footer.push(footerData);
351
+ this.other.push(otherInData);
352
+ },
353
+
354
+ Fileinput(){
355
+ this.batchmoneyShow=true;
356
+ },
357
+ search(){
358
+ this.$refs.paged.$refs.cri.search()
359
+ },
360
+ cancel() {
361
+ this.show = false
362
+ },
363
+ selfSearch(args) {
364
+ if (this.data) {
365
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
366
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
367
+ }
368
+ args.condition = `${args.condition} ` + this.orgCondtionStr
369
+ this.model.search(args.condition, args.model)
370
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
371
+ },
372
+ clear() {
373
+ //清空部门和人员
374
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
375
+ //部门和人员变为全选
376
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
377
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
378
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
379
+ this.$refs.paged.$refs.cri.model[key] = []
380
+ })
381
+ this.$refs.paged.$refs.cri.model.f_meter_classify = []
382
+ },
383
+ show() {
384
+ this.criteriaShow = true
385
+ },
386
+ hidden() {
387
+ this.criteriaShow = !this.criteriaShow
388
+ },
389
+ async getRes(condition,obj) {
390
+ this.orgCondtionStr = condition
391
+
392
+ },
393
+ stamp() {
394
+ this.all = false
395
+ //默认选择要打印的列
396
+ this.modelval = defaultPrint.config
397
+ this.fields = this.getfield
398
+ this.printshow = true
399
+ this.put()
400
+ },
401
+ put() {
402
+ // 对Modelval进行排序
403
+ this.sortModelval()
404
+ this.thead = `<tr><th colspan=${this.modelval.length}>气损收费统计报表</th></tr><tr>`
405
+ for (let key of this.modelval) {
406
+ this.thead += '<th>' + this.fields[key] + '</th>'
407
+ }
408
+ this.thead += '</tr>'
409
+ },
410
+ print() {
411
+ this.$refs.print.PrintAsFile()
412
+ this.printshow = false
413
+ },
414
+ dealmsg(val) {
415
+ this.rowdata=val
416
+ this.show=true
417
+ val.model = this.model.model
418
+ this.$dispatch('deal-msg', val)
419
+ },
420
+ close() {
421
+ this.printshow = false
422
+ this.all = false
423
+ },
424
+
425
+
426
+ // 对选择的列进行排序
427
+ sortModelval() {
428
+ let sortModel = []
429
+ Object.keys(this.fields).forEach((key) => {
430
+ if (this.modelval.includes(key)) {
431
+ sortModel.push(key)
432
+ }
433
+ })
434
+ this.modelval = sortModel
435
+ }
436
+ },
437
+ watch: {
438
+ 'model.rows'(val) {
439
+ if(val.length === 0){
440
+ this.sumsmodel = {}
441
+ }
442
+ },
443
+ async 'orgCondtionStr'(val) {
444
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
445
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
446
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
447
+ this.meterbooks = [{label: '全部',value: ''}];
448
+ if(this.lastorgstr != val){
449
+ this.tempfalg = true;
450
+ this.lastorgstr = val;
451
+ }
452
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
453
+ this.tempfalg = false;
454
+ let a = val.substring(val.indexOf("(")+2)
455
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
456
+ }
457
+ let res = val.match(/'(.*?)'/)
458
+ console.log('正则提取:',res && res[1])
459
+ if (res) {
460
+ this.f_filialeid = res[1]
461
+ if(res.input !=null){
462
+ let resorgid = res.input.substring(res.input.indexOf("'"));
463
+ if(resorgid!= null && resorgid!=''){
464
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
465
+ // resorgid = resorgid.replaceAll("'","");
466
+ resorgid = resorgid.replace(/'/g,"");
467
+ this.allorgid = resorgid.split(",")
468
+ }
469
+ }
470
+ // this.updateParams()
471
+ }
472
+ },
473
+ 'all'(val) {
474
+ if (val) {
475
+ this.modelval = this.bodyData
476
+ } else {
477
+ this.modelval = defaultPrint.config
478
+ this.put()
479
+ }
480
+ },
481
+ 'modelval.length'() {
482
+ this.put()
483
+ },
484
+ sumsmodel:{
485
+ handler: function(val) {
486
+ this.getotherfooter();
487
+ },
488
+ deep: true
489
+ }
490
+ },
491
+ computed: {
492
+
493
+ getCondition() {
494
+ return {
495
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
496
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
497
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
498
+ },
499
+ getfield() {
500
+ return exportConfig.gaslossConfig
501
+ },
502
+ payment() {
503
+ return [{label: '全部', value: ''},...this.$appdata.getParam('付款方式查询')]
504
+ }
505
+
506
+ },
507
+ events:{
508
+ 'onFileUpload': async function (file, res) {
509
+ if (this.batchmoneyShow) {
510
+ this.percent = 0;
511
+ this.getuuid();
512
+ let param = {
513
+ filepath: res.f_downloadpath,
514
+ f_operator: this.$login.f.name,
515
+ f_operatorid: this.$login.f.id,
516
+ f_orgid: this.$login.f.orgid,
517
+ f_orgname: this.$login.f.orgs,
518
+ f_depid: this.$login.f.depids,
519
+ f_depname: this.$login.f.deps,
520
+ uuid: this.uuida
521
+ }
522
+ this.batchmoneyShow=false;
523
+ try{
524
+ await this.$resetpost('rs/logic/SumSettleFileImport',{data: param},{resolveMsg: null, rejectMsg: null},1000).then((res)=>{
525
+ if(res.data){
526
+ }
527
+ })
528
+ }catch(error){}
529
+ let getparam = {
530
+ uuid: this.uuida
531
+ }
532
+ let self = this;
533
+ this.progressShow=true;
534
+ this.timer = setInterval(function(){
535
+ self.$resetpost('/rs/logic/getBatchOperaPro',{data:getparam},{resolveMsg: null, rejectMsg: null}, 0).then((res)=>{
536
+ if(res.data ){
537
+ if(res.data.speed){
538
+ if(res.data.speed>= 100){
539
+ clearInterval(self.timer);
540
+ if(res.data.speed){
541
+ self.percent = 99;
542
+ }
543
+ setTimeout(()=>{
544
+ self.percent = 100;
545
+ self.progressclose();
546
+ self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum}(包含之前导入${res.data.aftersum}),失败数据请在稽查查询中错误查询进行查看!!`);
547
+ },600);
548
+ }else{
549
+ self.percent = res.data.speed
550
+ }
551
+ }else{
552
+ self.percent=0;
553
+ }
554
+ }
555
+ });
556
+ },3000);
557
+ }
558
+ }
559
+ }
560
+ }
561
+ </script>