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,311 +1,311 @@
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
- <criteria-paged :model="model" v-ref:paged >
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-inline auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- >
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- >
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">客户类型</label>
31
- <v-select :value.sync="model.f_user_type"
32
- :options='$parent.$parent.usertypes'
33
- @change="$parent.$parent.userTypeChange()"
34
- placeholder='请选择' v-model="model.f_user_type"
35
- condition="f_user_type = '{}'"
36
- close-on-select></v-select>
37
- </div>
38
-
39
- <div class="span" style="float:right;">
40
- <button class="button_search button_spacing" @click="search()">查询</button>
41
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
- <export-excel :data="$parent.$parent.getCondition"
43
- :field="$parent.$parent.getfield"
44
- :footer="$parent.$parent.footer"
45
- :header="$parent.$parent.other"
46
- sqlurl="rs/logic/exportfile"
47
- sql-name="usergaszong"
48
- template-name='用户用气费用表'
49
- :choose-col="true"></export-excel>
50
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
- :defaultfield="$parent.$parent.defaultfield"
52
- titletable="用户用气费用表"
53
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
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 :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
- </div>
60
- </div>
61
- </criteria>
62
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
63
- <template partial='head'>
64
- <tr>
65
- <th><nobr>用户名称</nobr></th>
66
- <th><nobr>气价</nobr></th>
67
- <th><nobr>售气量</nobr></th>
68
- <th><nobr>金额</nobr></th>
69
- </tr>
70
- </template>
71
- <template partial='body'>
72
- <td style="text-align: center;">
73
- <nobr>{{row.f_user_name}}</nobr>
74
- </td>
75
- <td style="text-align: center;">
76
- <nobr>{{row.f_price}}</nobr>
77
- </td>
78
- <td style="text-align: center;">
79
- <nobr>{{row.a}}</nobr>
80
- </td>
81
- <td style="text-align: center;">
82
- <nobr>{{row.b}}</nobr>
83
- </td>
84
- </template>
85
- <template partial='foot'></template>
86
- </data-grid>
87
- </criteria-paged>
88
- <table class="table-hover">
89
- <tr style="position: relative" class="table-bordered">
90
- <td
91
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
92
- 汇总信息
93
- </td>
94
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
95
- 累计售气量合计:&emsp;{{sumsmodel.a}}
96
- </td>
97
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
98
- 累计金额合计:&emsp;{{sumsmodel.b}}
99
- </td>
100
- </tr>
101
- </table>
102
- </div>
103
- <div v-if="show">
104
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
105
- </div>
106
- </div>
107
- </div>
108
- </template>
109
- <script>
110
- import { PagedList } from 'vue-client'
111
- import defaultPrint from '../config/DefaultPrint'
112
- import exportConfig from '../config/exportConfig.js'
113
- let readySomething = async function(self) {
114
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
115
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
116
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
117
- await self.$MagLoadParams.loadParam()
118
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
119
- }
120
- export default {
121
- title: '用户用气查询',
122
- name: 'userags',
123
- data () {
124
- return {
125
- defaultfield: [],
126
- config: {
127
- defaultPrint: ['f_price','f_user_type']
128
- },
129
- model: new PagedList('rs/sql/usergaszong', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
130
- a: 0,
131
- b: 0,
132
- }),
133
- other: [],
134
- footer: [],
135
- gasproperties:[],
136
- show:false,
137
- rowdata:{},
138
- criteriaShow: false,
139
- orgCondtionStr: '',
140
- modelval: [],
141
- printshow: false,
142
- all: false,
143
- fields: {},
144
- thead: '',
145
- tfoot: '',
146
- //合计数据
147
- sumsmodel: {},
148
- f_filialeid: this.$login.f.f_orgid,
149
- f_orgid: this.$login.f.orgid,
150
- f_depid: this.$login.f.depids,
151
- f_operatorid: this.$login.f.id
152
- }
153
- },
154
- ready () {
155
- console.log('选择的打印的字段')
156
- console.log('hhhhhhhhh'+ this.$login.f.orgid)
157
- // readySomething(this)
158
- readySomething(this).then(() => {
159
- this.$emit('ready')
160
- }).catch((error) => {
161
- this.$emit('error', error)
162
- })
163
- },
164
- methods: {
165
- getotherfooter() {
166
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
167
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
168
- this.other = [];
169
- this.footer = [];
170
- // let exportdata = this.getCondition;
171
- let otherInData = [];
172
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
173
- let footerData = [], exportfield = this.getfield;
174
- footerData.push("合计");
175
- let self = this;
176
- for (var field in self.sumsmodel) {
177
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
178
- }
179
- this.footer.push(footerData);
180
- this.other.push(otherInData);
181
- },
182
- userTypeChange () {
183
- this.gasproperties=[]
184
- if(this.$refs.paged.$refs.cri.model !==null) {
185
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
186
-
187
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
188
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
189
- }
190
- else{
191
- this.gasproperties =[{label: '全部', value: ''}]
192
- }
193
- },
194
- search(){
195
- this.$refs.paged.$refs.cri.search()
196
- },
197
- cancel() {
198
- this.show = false
199
- },
200
- selfSearch(args) {
201
- args.condition = `${args.condition} ` + this.orgCondtionStr
202
- this.model.search(args.condition, args.model)
203
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
204
- },
205
- clear() {
206
- //清空部门和人员
207
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
208
- //部门和人员变为全选
209
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
210
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
211
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
212
- this.$refs.paged.$refs.cri.model[key] = []
213
- })
214
- },
215
- show() {
216
- this.criteriaShow = true
217
- },
218
- hidden() {
219
- this.criteriaShow = !this.criteriaShow
220
- },
221
- showmsg(obj){
222
- this.rowdata=obj
223
- this.show=true
224
- },
225
- getRes(condition,obj) {
226
- this.orgCondtionStr = condition
227
- this.orgname = obj.orgnames[0]
228
- this.depname = obj.depnames[0]
229
- },
230
- put() {
231
- // 对Modelval进行排序
232
- this.sortModelval()
233
- this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
234
- for (let key of this.modelval) {
235
- this.thead += '<th>' + this.fields[key] + '</th>'
236
- }
237
- this.thead += '</tr>'
238
- },
239
- print() {
240
- this.$refs.print.PrintAsFile()
241
- this.printshow = false
242
- },
243
- dealmsg(val) {
244
- this.rowdata=val
245
- this.show=true
246
- val.model = this.model.model
247
- this.$dispatch('deal-msg', val)
248
- },
249
- close() {
250
- this.printshow = false
251
- this.all = false
252
- },
253
- // 对选择的列进行排序
254
- sortModelval() {
255
- let sortModel = []
256
- Object.keys(this.fields).forEach((key) => {
257
- if (this.modelval.includes(key)) {
258
- sortModel.push(key)
259
- }
260
- })
261
- this.modelval = sortModel
262
- console.log('选择的打印的字段', this.modelval)
263
- }
264
- },
265
- computed: {
266
- getCondition() {
267
- return {
268
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
269
- startDate: this.$refs.paged.$refs.cri.model.startDate,
270
- endDate: this.$refs.paged.$refs.cri.model.endDate
271
- }
272
- },
273
- getfield() {
274
- return exportConfig.usergas1
275
- },
276
- usertypes() {
277
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
278
- },
279
- },
280
- events: {
281
-
282
- },
283
- watch: {
284
- 'all'(val) {
285
- if (val) {
286
- this.modelval = this.bodyData
287
- } else {
288
- this.modelval = defaultPrint.config
289
- this.put()
290
- }
291
- },
292
- 'modelval.length'() {
293
- this.put()
294
- },
295
- sumsmodel: {
296
- handler: function (val) {
297
- this.getotherfooter();
298
- },
299
- deep: true
300
- }
301
- }
302
- }
303
- </script>
304
- <style>
305
- .datapanel {
306
- color: #333;
307
- background-color: white;
308
- padding: 10px 20px;
309
- border-radius:15px;
310
- }
311
- </style>
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
+ <criteria-paged :model="model" v-ref:paged >
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-inline auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户类型</label>
31
+ <v-select :value.sync="model.f_user_type"
32
+ :options='$parent.$parent.usertypes'
33
+ @change="$parent.$parent.userTypeChange()"
34
+ placeholder='请选择' v-model="model.f_user_type"
35
+ condition="f_user_type = '{}'"
36
+ close-on-select></v-select>
37
+ </div>
38
+
39
+ <div class="span" style="float:right;">
40
+ <button class="button_search button_spacing" @click="search()">查询</button>
41
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
+ <export-excel :data="$parent.$parent.getCondition"
43
+ :field="$parent.$parent.getfield"
44
+ :footer="$parent.$parent.footer"
45
+ :header="$parent.$parent.other"
46
+ sqlurl="rs/logic/exportfile"
47
+ sql-name="usergaszong"
48
+ template-name='用户用气费用表'
49
+ :choose-col="true"></export-excel>
50
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
+ :defaultfield="$parent.$parent.defaultfield"
52
+ titletable="用户用气费用表"
53
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
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 :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
+ </div>
60
+ </div>
61
+ </criteria>
62
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
63
+ <template partial='head'>
64
+ <tr>
65
+ <th><nobr>用户名称</nobr></th>
66
+ <th><nobr>气价</nobr></th>
67
+ <th><nobr>售气量</nobr></th>
68
+ <th><nobr>金额</nobr></th>
69
+ </tr>
70
+ </template>
71
+ <template partial='body'>
72
+ <td style="text-align: center;">
73
+ <nobr>{{row.f_user_name}}</nobr>
74
+ </td>
75
+ <td style="text-align: center;">
76
+ <nobr>{{row.f_price}}</nobr>
77
+ </td>
78
+ <td style="text-align: center;">
79
+ <nobr>{{row.a}}</nobr>
80
+ </td>
81
+ <td style="text-align: center;">
82
+ <nobr>{{row.b}}</nobr>
83
+ </td>
84
+ </template>
85
+ <template partial='foot'></template>
86
+ </data-grid>
87
+ </criteria-paged>
88
+ <table class="table-hover">
89
+ <tr style="position: relative" class="table-bordered">
90
+ <td
91
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
92
+ 汇总信息
93
+ </td>
94
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
95
+ 累计售气量合计:&emsp;{{sumsmodel.a}}
96
+ </td>
97
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
98
+ 累计金额合计:&emsp;{{sumsmodel.b}}
99
+ </td>
100
+ </tr>
101
+ </table>
102
+ </div>
103
+ <div v-if="show">
104
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </template>
109
+ <script>
110
+ import { PagedList } from 'vue-client'
111
+ import defaultPrint from '../config/DefaultPrint'
112
+ import exportConfig from '../config/exportConfig.js'
113
+ let readySomething = async function(self) {
114
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
115
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
116
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
117
+ await self.$MagLoadParams.loadParam()
118
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
119
+ }
120
+ export default {
121
+ title: '用户用气查询',
122
+ name: 'userags',
123
+ data () {
124
+ return {
125
+ defaultfield: [],
126
+ config: {
127
+ defaultPrint: ['f_price','f_user_type']
128
+ },
129
+ model: new PagedList('rs/sql/usergaszong', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
130
+ a: 0,
131
+ b: 0,
132
+ }),
133
+ other: [],
134
+ footer: [],
135
+ gasproperties:[],
136
+ show:false,
137
+ rowdata:{},
138
+ criteriaShow: false,
139
+ orgCondtionStr: '',
140
+ modelval: [],
141
+ printshow: false,
142
+ all: false,
143
+ fields: {},
144
+ thead: '',
145
+ tfoot: '',
146
+ //合计数据
147
+ sumsmodel: {},
148
+ f_filialeid: this.$login.f.f_orgid,
149
+ f_orgid: this.$login.f.orgid,
150
+ f_depid: this.$login.f.depids,
151
+ f_operatorid: this.$login.f.id
152
+ }
153
+ },
154
+ ready () {
155
+ console.log('选择的打印的字段')
156
+ console.log('hhhhhhhhh'+ this.$login.f.orgid)
157
+ // readySomething(this)
158
+ readySomething(this).then(() => {
159
+ this.$emit('ready')
160
+ }).catch((error) => {
161
+ this.$emit('error', error)
162
+ })
163
+ },
164
+ methods: {
165
+ getotherfooter() {
166
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
167
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
168
+ this.other = [];
169
+ this.footer = [];
170
+ // let exportdata = this.getCondition;
171
+ let otherInData = [];
172
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
173
+ let footerData = [], exportfield = this.getfield;
174
+ footerData.push("合计");
175
+ let self = this;
176
+ for (var field in self.sumsmodel) {
177
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
178
+ }
179
+ this.footer.push(footerData);
180
+ this.other.push(otherInData);
181
+ },
182
+ userTypeChange () {
183
+ this.gasproperties=[]
184
+ if(this.$refs.paged.$refs.cri.model !==null) {
185
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
186
+
187
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
188
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
189
+ }
190
+ else{
191
+ this.gasproperties =[{label: '全部', value: ''}]
192
+ }
193
+ },
194
+ search(){
195
+ this.$refs.paged.$refs.cri.search()
196
+ },
197
+ cancel() {
198
+ this.show = false
199
+ },
200
+ selfSearch(args) {
201
+ args.condition = `${args.condition} ` + this.orgCondtionStr
202
+ this.model.search(args.condition, args.model)
203
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
204
+ },
205
+ clear() {
206
+ //清空部门和人员
207
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
208
+ //部门和人员变为全选
209
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
210
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
211
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
212
+ this.$refs.paged.$refs.cri.model[key] = []
213
+ })
214
+ },
215
+ show() {
216
+ this.criteriaShow = true
217
+ },
218
+ hidden() {
219
+ this.criteriaShow = !this.criteriaShow
220
+ },
221
+ showmsg(obj){
222
+ this.rowdata=obj
223
+ this.show=true
224
+ },
225
+ getRes(condition,obj) {
226
+ this.orgCondtionStr = condition
227
+ this.orgname = obj.orgnames[0]
228
+ this.depname = obj.depnames[0]
229
+ },
230
+ put() {
231
+ // 对Modelval进行排序
232
+ this.sortModelval()
233
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
234
+ for (let key of this.modelval) {
235
+ this.thead += '<th>' + this.fields[key] + '</th>'
236
+ }
237
+ this.thead += '</tr>'
238
+ },
239
+ print() {
240
+ this.$refs.print.PrintAsFile()
241
+ this.printshow = false
242
+ },
243
+ dealmsg(val) {
244
+ this.rowdata=val
245
+ this.show=true
246
+ val.model = this.model.model
247
+ this.$dispatch('deal-msg', val)
248
+ },
249
+ close() {
250
+ this.printshow = false
251
+ this.all = false
252
+ },
253
+ // 对选择的列进行排序
254
+ sortModelval() {
255
+ let sortModel = []
256
+ Object.keys(this.fields).forEach((key) => {
257
+ if (this.modelval.includes(key)) {
258
+ sortModel.push(key)
259
+ }
260
+ })
261
+ this.modelval = sortModel
262
+ console.log('选择的打印的字段', this.modelval)
263
+ }
264
+ },
265
+ computed: {
266
+ getCondition() {
267
+ return {
268
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
269
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
270
+ endDate: this.$refs.paged.$refs.cri.model.endDate
271
+ }
272
+ },
273
+ getfield() {
274
+ return exportConfig.usergas1
275
+ },
276
+ usertypes() {
277
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
278
+ },
279
+ },
280
+ events: {
281
+
282
+ },
283
+ watch: {
284
+ 'all'(val) {
285
+ if (val) {
286
+ this.modelval = this.bodyData
287
+ } else {
288
+ this.modelval = defaultPrint.config
289
+ this.put()
290
+ }
291
+ },
292
+ 'modelval.length'() {
293
+ this.put()
294
+ },
295
+ sumsmodel: {
296
+ handler: function (val) {
297
+ this.getotherfooter();
298
+ },
299
+ deep: true
300
+ }
301
+ }
302
+ }
303
+ </script>
304
+ <style>
305
+ .datapanel {
306
+ color: #333;
307
+ background-color: white;
308
+ padding: 10px 20px;
309
+ border-radius:15px;
310
+ }
311
+ </style>
@@ -262,6 +262,12 @@ export default{
262
262
  'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
263
263
  'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_rest_date': '所属年月'
264
264
  },
265
+ gaslossConfig:{
266
+ 'f_userinfo_code': '客户编号', 'f_charge_person': '缴费人', 'f_charge_phone': '缴费人电话',
267
+ 'f_charge_address': '缴费人地址', 'f_collection': '缴费金额', 'f_payment': '付款方式', 'f_bill_style': '打印格式',
268
+ 'f_serial_id': '流水号', 'f_pay_id': '支付单号', 'detail': '详细信息', 'f_charge_date': '缴费日期',
269
+ 'f_depname': '部门', 'f_operator': '操作员'
270
+ },
265
271
  balanceConfig: {
266
272
  'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_balance': '期初余额', 'f_oughtfee': '期间应收',
267
273
  'f_preamount': '期间已缴', 'f_curbalance': '期末余额', 'f_user_balance': '最新余额'
@@ -305,6 +311,10 @@ export default{
305
311
  'f_bank_accopen': '银行户名', 'f_bank_pay_number': '缴费编号', 'f_bank_account': '银行开户账号', 'f_paper_account': '开户行及账号',
306
312
  'f_bank_name': '银行名称', 'f_oughtfee': '欠费金额'
307
313
  },
314
+ //气价信息查询
315
+ gasPriceConfig:{
316
+ 'f_userinfo_code':'客户编号','f_user_name':'客户名称','f_address':'客户地址','f_meternumber':'表号','f_price_name':'气价名称','f_price_type':'气价类型','f_user_type':'客户类型','f_gasproperties':'用气性质'
317
+ },
308
318
  fmygasConfig: {
309
319
  'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_user_phone': '客户电话', 'f_credentials': '证件类型',
310
320
  'f_idnumber': '证件号码', 'f_address': '客户地址', 'f_user_type': '客户类型', 'f_gasproperties': '用气性质', 'f_residential_area': '小区',