manage-client 3.2.16 → 3.2.17

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 (84) hide show
  1. package/build/dev-server.js +8 -24
  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/GasBaozhuangFee.vue +237 -237
  6. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  7. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  8. package/src/components/SellReport/NonResidentGas.vue +203 -203
  9. package/src/components/SellReport/OutletTable.vue +258 -258
  10. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  11. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  12. package/src/components/SellReport/SellingTable.vue +220 -220
  13. package/src/components/SellReport/UserSellingGas.vue +177 -177
  14. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  15. package/src/components/daping/GMap.vue +636 -636
  16. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  17. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  18. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  19. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  20. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  22. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  23. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  24. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  25. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  26. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  27. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  28. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  29. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  30. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  31. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  32. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  33. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  34. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  35. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  36. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  37. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  38. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  39. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  40. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  41. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  42. package/src/filiale/WEINAN/ReportDataQuery.vue +249 -249
  43. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  44. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  45. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  46. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  47. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  48. package/src/filiale/WEINAN/reportManage.js +12 -12
  49. package/src/filiale/WEINAN/sale.js +36 -36
  50. package/src/filiale/alashan/reportManage.js +10 -10
  51. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  52. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  53. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  54. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  55. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  56. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  57. package/src/filiale/meihekou/config/exportConfig.js +804 -804
  58. package/src/filiale/meihekou/sale.js +26 -26
  59. package/src/filiale/pingxiang/sale.js +9 -9
  60. package/src/filiale/qingtongxia/sale.js +13 -13
  61. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  62. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  63. package/src/filiale/rongchuang/reportManage.js +11 -11
  64. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  65. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  66. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  67. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  68. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  69. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  70. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  71. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  72. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -302
  73. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  74. package/src/filiale/tongchuan/reportManage.js +5 -6
  75. package/src/main.js +4 -4
  76. package/static/wuhai.json +1610 -1610
  77. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  78. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  79. package/.gradle/5.4.1/gc.properties +0 -0
  80. package/src/.idea/misc.xml +0 -9
  81. package/src/.idea/modules.xml +0 -8
  82. package/src/.idea/src.iml +0 -9
  83. package/src/.idea/vcs.xml +0 -6
  84. package/src/.idea/workspace.xml +0 -93
@@ -1,426 +1,426 @@
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_reversaltime >= '{}'">
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_reversaltime <= '{}'">
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_userid = '{}' " 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_username like '%{}%'" placeholder='客户名称'>
39
- </div>
40
- <div class="col-sm-2 form-group">
41
- <label class="font_normal_body">客户地址</label>
42
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
43
- condition="f_address like '%{}%'" placeholder='客户地址'>
44
- </div>
45
- <div class="span" style="float:right;">
46
- <button class="button_search button_spacing" @click="search()">查询</button>
47
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
-
50
- <export-excel :data="$parent.$parent.getCondition"
51
- :field="$parent.$parent.getfield"
52
- :header="$parent.$parent.other"
53
- sqlurl="rs/logic/exportfile" sql-name="reconcileQuery" template-name='冲正查询导出'
54
- :choose-col="true"></export-excel>
55
- <!-- <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>-->
56
- </div>
57
- </div>
58
-
59
- <!-- <div class="row" v-show="$parent.$parent.criteriaShow">-->
60
- <!-- </div>-->
61
- </div>
62
- </criteria>
63
-
64
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
65
- <template partial='head'>
66
- <tr>
67
- <th>
68
- <nobr>客户编号</nobr>
69
- </th>
70
- <th>
71
- <nobr>客户名称</nobr>
72
- </th>
73
- <th>
74
- <nobr>身份证号</nobr>
75
- </th>
76
- <th>
77
- <nobr>地址</nobr>
78
- </th>
79
- <th>
80
- <nobr>气表品牌</nobr>
81
- </th>
82
- <th>
83
- <nobr>付款方式</nobr>
84
- </th>
85
- <th>
86
- <nobr>气表型号</nobr>
87
- </th>
88
- <th>
89
- <nobr>气价</nobr>
90
- </th>
91
- <th>
92
- <nobr>上次总累计购气量</nobr>
93
- </th>
94
- <th>
95
- <nobr>用户类型</nobr>
96
- </th>
97
- <th>
98
- <nobr>预购气量</nobr>
99
- </th>
100
- <th>
101
- <nobr>最后购气量</nobr>
102
- </th>
103
- <th>
104
- <nobr>最后购气日期</nobr>
105
- </th>
106
- <th>
107
- <nobr>预购金额</nobr>
108
- </th>
109
- <th>
110
- <nobr>本次总累计购气量</nobr>
111
- </th>
112
- <th>
113
- <nobr>表本次累计购气量</nobr>
114
- </th>
115
- <th>
116
- <nobr>收  款</nobr>
117
- </th>
118
- <th>
119
- <nobr>应交金额</nobr>
120
- </th>
121
- <th>
122
- <nobr>网  点</nobr>
123
- </th>
124
- <th>
125
- <nobr>分公司</nobr>
126
- </th>
127
- <th>
128
- <nobr>冲正人</nobr>
129
- </th>
130
- <th>
131
- <nobr>冲正日期</nobr>
132
- </th>
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
- </tr>
158
- </template>
159
- <template partial='body'>
160
- <td style="text-align: center;">
161
- <nobr>{{row.f_userid}}</nobr>
162
- </td>
163
- <td style="text-align: center;">
164
- <nobr>{{row.f_username}}</nobr>
165
- </td>
166
- <td style="text-align: center;">
167
- <nobr>{{row.f_idnumber}}</nobr>
168
- </td>
169
- <td style="text-align: center;">
170
- <nobr>{{row.f_address}}</nobr>
171
- </td>
172
- <td style="text-align: center;">
173
- <nobr>{{row.f_gaswatchbrand}}</nobr>
174
- </td>
175
- <td style="text-align: center;">
176
- <nobr>{{row.f_payment}}</nobr>
177
- </td>
178
- <td style="text-align: center;">
179
- <nobr>{{row.f_metertype}}</nobr>
180
- </td>
181
- <td style="text-align: center;">
182
- <nobr>{{row.f_gasprice}}</nobr>
183
- </td>
184
- <td style="text-align: center;">
185
- <nobr>{{row.f_upbuynum}}</nobr>
186
- </td>
187
- <td style="text-align: center;">
188
- <nobr>{{row.f_usertype}}</nobr>
189
- </td>
190
- <td style="text-align: center;">
191
- <nobr>{{row.f_pregas}}</nobr>
192
- </td>
193
- <td style="text-align: center;">
194
- <nobr>{{row.f_finallybought}}</nobr>
195
- </td>
196
- <td style="text-align: center;">
197
- <nobr>{{row.f_finabuygasdate}}</nobr>
198
- </td>
199
- <td style="text-align: center;">
200
- <nobr>{{row.f_cumulativepurchase}}</nobr>
201
- </td>
202
- <td style="text-align: center;">
203
- <nobr>{{row.f_metergasnums}}</nobr>
204
- </td>
205
- <td style="text-align: center;">
206
- <nobr>{{row.f_grossproceeds}}</nobr>
207
- </td>
208
- <td style="text-align: center;">
209
- <nobr>{{row.f_totalcost}}</nobr>
210
- </td>
211
- <td style="text-align: center;">
212
- <nobr>{{row.f_sgnetwork}}</nobr>
213
- </td>
214
- <td style="text-align: center;">
215
- <nobr>{{row.f_filiale}}</nobr>
216
- </td>
217
- <td style="text-align: center;">
218
- <nobr>{{row.f_reversalname}}</nobr>
219
- </td>
220
- <td style="text-align: center;">
221
- <nobr>{{row.f_reversaldate}}</nobr>
222
- </td>
223
- <td style="text-align: center;">
224
- <nobr>{{row.f_premetergasnums}}</nobr>
225
- </td>
226
- --
227
- <td style="text-align: center;">
228
- <nobr>{{row.f_sgoperator}}</nobr>
229
- </td>
230
- <td style="text-align: center;">
231
- <nobr>{{row.f_deliverydate}}</nobr>
232
- </td>
233
- <td style="text-align: center;">
234
- <nobr>{{row.f_reversaltime}}</nobr>
235
- </td>
236
- <td style="text-align: center;">
237
- <nobr>{{row.f_reversalcause}}</nobr>
238
- </td>
239
- <td style="text-align: center;">
240
- <nobr>{{row.f_deliverytime}}</nobr>
241
- </td>
242
- <td style="text-align: center;">
243
- <nobr>{{row.f_gasgas}}</nobr>
244
- </td>
245
- <td style="text-align: center;">
246
- <nobr>{{row.chongzhengtype}}</nobr>
247
- </td>
248
- </template>
249
- <template partial='foot'></template>
250
- </data-grid>
251
- </criteria-paged>
252
- </div>
253
- </div>
254
- </div>
255
- </template>
256
-
257
- <script>
258
- import {PagedList} from 'vue-client'
259
- import defaultPrint from '../../config/DefaultPrint'
260
- import exportConfig from '../../config/exportConfig'
261
- let readySomething = async function (self) {
262
-
263
- console.log("self.login",self.$login)
264
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
265
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
266
- self.$refs.paged.$refs.cri.model.startDate=self.data.startDate
267
- self.$refs.paged.$refs.cri.model.endDate=self.data.endDate
268
- self.search()
269
- }
270
- export default {
271
- props:['data'],
272
- title: '冲正记录',
273
- data() {
274
- return {
275
- data: {},
276
- other: [],
277
- footer: [],
278
- model: new PagedList('rs/sql/reconcileQuery', 20, {}),
279
- criteriaShow: false,
280
- orgCondtionStr: '',
281
- show:false,
282
- rowdata:{},
283
- modelval: [],
284
- fields: {},
285
- config: {
286
- defaultPrint: ['f_userid', 'f_username']
287
- },
288
- thead: '',
289
- showupload:false,
290
- selected:{},
291
- }
292
- },
293
- ready() {
294
- // this.initres.dep.push(this.$login.f.depids)
295
- readySomething(this).then(() => {
296
- this.$emit('ready')
297
- }).catch((error) => {
298
- this.$emit('error', error)
299
- })
300
- },
301
- methods: {
302
- getotherfooter() {
303
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
304
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
305
- this.other = [];
306
- this.footer = [];
307
- let exportdata = this.getCondition;
308
- let otherInData = [];
309
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
310
- let footerData = [], exportfield = this.getfield;
311
- footerData.push("合计");
312
- let self = this;
313
- for (var field in self.sumsmodel) {
314
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
315
- }
316
- this.footer.push(footerData);
317
- this.other.push(otherInData);
318
- },
319
- search(){
320
- this.$refs.paged.$refs.cri.search()
321
- },
322
- selfSearch(args) {
323
- if (this.data) {
324
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
325
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
326
- }
327
- args.condition = `${args.condition}` + this.orgCondtionStr
328
- this.model.search(args.condition, args.model)
329
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
330
- },
331
- clear() {
332
- //清空部门和人员
333
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
334
- //部门和人员变为全选
335
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
336
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
337
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
338
- this.$refs.paged.$refs.cri.model[key] = []
339
- })
340
- },
341
- show() {
342
- this.criteriaShow = true
343
- },
344
- hidden() {
345
- this.criteriaShow = !this.criteriaShow
346
- },
347
- getRes(obj) {
348
- this.orgCondtionStr = obj
349
- },
350
- stamp() {
351
- this.all = false
352
- //默认选择要打印的列
353
- this.modelval = defaultPrint.config
354
- this.fields = this.getfield
355
- console.log('所有打印字段', this.fields)
356
- this.printshow = true
357
- this.put()
358
- },
359
- put() {
360
- // 对Modelval进行排序
361
- this.sortModelval()
362
- this.thead = `<tr><th colspan=${this.modelval.length}>停用查询报表</th></tr><tr>`
363
- for (let key of this.modelval) {
364
- this.thead += '<th>' + this.fields[key] + '</th>'
365
- }
366
- this.thead += '</tr>'
367
- },
368
- cancel() {
369
- this.show = false
370
- },
371
- dealmsg(val) {
372
- console.log('---------------dealmsg')
373
- this.rowdata=val
374
- this.show=true
375
- val.model = this.model.model
376
- this.$dispatch('deal-msg', val)
377
- },
378
- print() {
379
- this.$refs.print.PrintAsFile()
380
- this.printshow = false
381
- },
382
- close() {
383
- this.printshow = false
384
- this.all = false
385
- },
386
- // 对选择的列进行排序
387
- sortModelval() {
388
- let sortModel = []
389
- Object.keys(this.fields).forEach((key) => {
390
- if (this.modelval.includes(key)) {
391
- sortModel.push(key)
392
- }
393
- })
394
- this.modelval = sortModel
395
- console.log('选择的打印的字段', this.modelval)
396
- }
397
- },
398
- watch: {
399
- 'all'(val) {
400
- if (val) {
401
- this.modelval = this.bodyData
402
- } else {
403
- this.modelval = defaultPrint.config
404
- this.put()
405
- }
406
- },
407
- sumsmodel: {
408
- handler: function (val) {
409
- this.getotherfooter();
410
- },
411
- deep: true
412
- },
413
- 'modelval.length'() {
414
- this.put()
415
- },
416
- },
417
- computed: {
418
- getCondition() {
419
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
420
- },
421
- getfield() {
422
- return exportConfig.reconcileQuery
423
- },
424
- }
425
- }
426
- </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_reversaltime >= '{}'">
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_reversaltime <= '{}'">
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_userid = '{}' " 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_username like '%{}%'" placeholder='客户名称'>
39
+ </div>
40
+ <div class="col-sm-2 form-group">
41
+ <label class="font_normal_body">客户地址</label>
42
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
43
+ condition="f_address like '%{}%'" placeholder='客户地址'>
44
+ </div>
45
+ <div class="span" style="float:right;">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
+
50
+ <export-excel :data="$parent.$parent.getCondition"
51
+ :field="$parent.$parent.getfield"
52
+ :header="$parent.$parent.other"
53
+ sqlurl="rs/logic/exportfile" sql-name="reconcileQuery" template-name='冲正查询导出'
54
+ :choose-col="true"></export-excel>
55
+ <!-- <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>-->
56
+ </div>
57
+ </div>
58
+
59
+ <!-- <div class="row" v-show="$parent.$parent.criteriaShow">-->
60
+ <!-- </div>-->
61
+ </div>
62
+ </criteria>
63
+
64
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
65
+ <template partial='head'>
66
+ <tr>
67
+ <th>
68
+ <nobr>客户编号</nobr>
69
+ </th>
70
+ <th>
71
+ <nobr>客户名称</nobr>
72
+ </th>
73
+ <th>
74
+ <nobr>身份证号</nobr>
75
+ </th>
76
+ <th>
77
+ <nobr>地址</nobr>
78
+ </th>
79
+ <th>
80
+ <nobr>气表品牌</nobr>
81
+ </th>
82
+ <th>
83
+ <nobr>付款方式</nobr>
84
+ </th>
85
+ <th>
86
+ <nobr>气表型号</nobr>
87
+ </th>
88
+ <th>
89
+ <nobr>气价</nobr>
90
+ </th>
91
+ <th>
92
+ <nobr>上次总累计购气量</nobr>
93
+ </th>
94
+ <th>
95
+ <nobr>用户类型</nobr>
96
+ </th>
97
+ <th>
98
+ <nobr>预购气量</nobr>
99
+ </th>
100
+ <th>
101
+ <nobr>最后购气量</nobr>
102
+ </th>
103
+ <th>
104
+ <nobr>最后购气日期</nobr>
105
+ </th>
106
+ <th>
107
+ <nobr>预购金额</nobr>
108
+ </th>
109
+ <th>
110
+ <nobr>本次总累计购气量</nobr>
111
+ </th>
112
+ <th>
113
+ <nobr>表本次累计购气量</nobr>
114
+ </th>
115
+ <th>
116
+ <nobr>收  款</nobr>
117
+ </th>
118
+ <th>
119
+ <nobr>应交金额</nobr>
120
+ </th>
121
+ <th>
122
+ <nobr>网  点</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>分公司</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>冲正人</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>冲正日期</nobr>
132
+ </th>
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
+ </tr>
158
+ </template>
159
+ <template partial='body'>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_userid}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_username}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_idnumber}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_address}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_gaswatchbrand}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_payment}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_metertype}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_gasprice}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_upbuynum}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_usertype}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_pregas}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_finallybought}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_finabuygasdate}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.f_cumulativepurchase}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_metergasnums}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.f_grossproceeds}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.f_totalcost}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.f_sgnetwork}}</nobr>
213
+ </td>
214
+ <td style="text-align: center;">
215
+ <nobr>{{row.f_filiale}}</nobr>
216
+ </td>
217
+ <td style="text-align: center;">
218
+ <nobr>{{row.f_reversalname}}</nobr>
219
+ </td>
220
+ <td style="text-align: center;">
221
+ <nobr>{{row.f_reversaldate}}</nobr>
222
+ </td>
223
+ <td style="text-align: center;">
224
+ <nobr>{{row.f_premetergasnums}}</nobr>
225
+ </td>
226
+ --
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_sgoperator}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_deliverydate}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_reversaltime}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_reversalcause}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_deliverytime}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;">
243
+ <nobr>{{row.f_gasgas}}</nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr>{{row.chongzhengtype}}</nobr>
247
+ </td>
248
+ </template>
249
+ <template partial='foot'></template>
250
+ </data-grid>
251
+ </criteria-paged>
252
+ </div>
253
+ </div>
254
+ </div>
255
+ </template>
256
+
257
+ <script>
258
+ import {PagedList} from 'vue-client'
259
+ import defaultPrint from '../../config/DefaultPrint'
260
+ import exportConfig from '../../config/exportConfig'
261
+ let readySomething = async function (self) {
262
+
263
+ console.log("self.login",self.$login)
264
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
265
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
266
+ self.$refs.paged.$refs.cri.model.startDate=self.data.startDate
267
+ self.$refs.paged.$refs.cri.model.endDate=self.data.endDate
268
+ self.search()
269
+ }
270
+ export default {
271
+ props:['data'],
272
+ title: '冲正记录',
273
+ data() {
274
+ return {
275
+ data: {},
276
+ other: [],
277
+ footer: [],
278
+ model: new PagedList('rs/sql/reconcileQuery', 20, {}),
279
+ criteriaShow: false,
280
+ orgCondtionStr: '',
281
+ show:false,
282
+ rowdata:{},
283
+ modelval: [],
284
+ fields: {},
285
+ config: {
286
+ defaultPrint: ['f_userid', 'f_username']
287
+ },
288
+ thead: '',
289
+ showupload:false,
290
+ selected:{},
291
+ }
292
+ },
293
+ ready() {
294
+ // this.initres.dep.push(this.$login.f.depids)
295
+ readySomething(this).then(() => {
296
+ this.$emit('ready')
297
+ }).catch((error) => {
298
+ this.$emit('error', error)
299
+ })
300
+ },
301
+ methods: {
302
+ getotherfooter() {
303
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
304
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
305
+ this.other = [];
306
+ this.footer = [];
307
+ let exportdata = this.getCondition;
308
+ let otherInData = [];
309
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
310
+ let footerData = [], exportfield = this.getfield;
311
+ footerData.push("合计");
312
+ let self = this;
313
+ for (var field in self.sumsmodel) {
314
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
315
+ }
316
+ this.footer.push(footerData);
317
+ this.other.push(otherInData);
318
+ },
319
+ search(){
320
+ this.$refs.paged.$refs.cri.search()
321
+ },
322
+ selfSearch(args) {
323
+ if (this.data) {
324
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
325
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
326
+ }
327
+ args.condition = `${args.condition}` + this.orgCondtionStr
328
+ this.model.search(args.condition, args.model)
329
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
330
+ },
331
+ clear() {
332
+ //清空部门和人员
333
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
334
+ //部门和人员变为全选
335
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
336
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
337
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
338
+ this.$refs.paged.$refs.cri.model[key] = []
339
+ })
340
+ },
341
+ show() {
342
+ this.criteriaShow = true
343
+ },
344
+ hidden() {
345
+ this.criteriaShow = !this.criteriaShow
346
+ },
347
+ getRes(obj) {
348
+ this.orgCondtionStr = obj
349
+ },
350
+ stamp() {
351
+ this.all = false
352
+ //默认选择要打印的列
353
+ this.modelval = defaultPrint.config
354
+ this.fields = this.getfield
355
+ console.log('所有打印字段', this.fields)
356
+ this.printshow = true
357
+ this.put()
358
+ },
359
+ put() {
360
+ // 对Modelval进行排序
361
+ this.sortModelval()
362
+ this.thead = `<tr><th colspan=${this.modelval.length}>停用查询报表</th></tr><tr>`
363
+ for (let key of this.modelval) {
364
+ this.thead += '<th>' + this.fields[key] + '</th>'
365
+ }
366
+ this.thead += '</tr>'
367
+ },
368
+ cancel() {
369
+ this.show = false
370
+ },
371
+ dealmsg(val) {
372
+ console.log('---------------dealmsg')
373
+ this.rowdata=val
374
+ this.show=true
375
+ val.model = this.model.model
376
+ this.$dispatch('deal-msg', val)
377
+ },
378
+ print() {
379
+ this.$refs.print.PrintAsFile()
380
+ this.printshow = false
381
+ },
382
+ close() {
383
+ this.printshow = false
384
+ this.all = false
385
+ },
386
+ // 对选择的列进行排序
387
+ sortModelval() {
388
+ let sortModel = []
389
+ Object.keys(this.fields).forEach((key) => {
390
+ if (this.modelval.includes(key)) {
391
+ sortModel.push(key)
392
+ }
393
+ })
394
+ this.modelval = sortModel
395
+ console.log('选择的打印的字段', this.modelval)
396
+ }
397
+ },
398
+ watch: {
399
+ 'all'(val) {
400
+ if (val) {
401
+ this.modelval = this.bodyData
402
+ } else {
403
+ this.modelval = defaultPrint.config
404
+ this.put()
405
+ }
406
+ },
407
+ sumsmodel: {
408
+ handler: function (val) {
409
+ this.getotherfooter();
410
+ },
411
+ deep: true
412
+ },
413
+ 'modelval.length'() {
414
+ this.put()
415
+ },
416
+ },
417
+ computed: {
418
+ getCondition() {
419
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
420
+ },
421
+ getfield() {
422
+ return exportConfig.reconcileQuery
423
+ },
424
+ }
425
+ }
426
+ </script>