manage-client 3.2.13 → 3.2.14

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 (65) hide show
  1. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  3. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  6. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  8. package/.gradle/7.1/gc.properties +0 -0
  9. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  10. package/.gradle/configuration-cache/gc.properties +0 -0
  11. package/build/dev-server.js +4 -6
  12. package/package.json +1 -1
  13. package/src/components/BasisEcharts/BarChart.vue +247 -247
  14. package/src/components/SellReport/BonSummary.vue +178 -178
  15. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  16. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  17. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  18. package/src/components/SellReport/NonResidentGas.vue +203 -203
  19. package/src/components/SellReport/OutletTable.vue +258 -258
  20. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  21. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  22. package/src/components/SellReport/SellingTable.vue +220 -220
  23. package/src/components/SellReport/UserSellingGas.vue +177 -177
  24. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  25. package/src/components/daping/GMap.vue +636 -636
  26. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  27. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  28. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  29. package/src/components/sale/businessquery/BusinesQuery.vue +348 -348
  30. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  31. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  32. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  33. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  34. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  35. package/src/components/sale/config/exportConfig.js +887 -887
  36. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  37. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  38. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  39. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  40. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  41. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  42. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  43. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  44. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  45. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  46. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  47. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  48. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  49. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  50. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  51. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  52. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  53. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  54. package/src/filiale/WEINAN/reportManage.js +12 -12
  55. package/src/filiale/WEINAN/sale.js +36 -36
  56. package/src/filiale/alashan/reportManage.js +10 -10
  57. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  58. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  59. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  60. package/src/filiale/meihekou/sale.js +26 -26
  61. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  62. package/src/filiale/rongchuang/reportManage.js +11 -11
  63. package/src/filiale/shaoguan/sale/businessquery/oldMeterList.vue +295 -295
  64. package/src/main.js +3 -3
  65. package/static/wuhai.json +1610 -1610
@@ -1,348 +1,348 @@
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 class="font_normal_body">公&emsp;&emsp;司</label>
12
- <right-tree @re-res="getorg"
13
- :initresid='initres.org'></right-tree>
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">用户编号</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
18
- condition="f_userinfo_code = '{}' " placeholder="用户编号">
19
- </div>
20
-
21
- <div class="col-sm-2 form-group">
22
- <label for="startDate" class="font_normal_body">开始日期</label>
23
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
- v-model="model.startDate"
25
- :value.sync="model.startDate"
26
- :format="'yyyy-MM-dd'"
27
- :show-reset-button="true"
28
- condition="f_operate_date >= '{}'">
29
- </datepicker>
30
- </div>
31
- <div class="col-sm-2 form-group">
32
- <label for="endDate" class="font_normal_body">结束日期</label>
33
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
- v-model="model.endDate"
35
- :value.sync="model.endDate"
36
- :format="'yyyy-MM-dd'"
37
- :show-reset-button="true"
38
- condition="f_operate_date <= '{}'">
39
- </datepicker>
40
- </div>
41
-
42
-
43
- <div class="span" style="float:right;">
44
- <button class="button_search button_spacing" @click="search()">查询</button>
45
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
46
-
47
- <export-excel :data="$parent.$parent.getCondition"
48
- :field="$parent.$parent.getfield"
49
- :header="$parent.$parent.other"
50
- sqlurl="rs/logic/exportfile" sql-name="BusinesQuery" 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" titletable="业务记录"
54
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
- </div>
56
- </div>
57
- <div class="row">
58
- <div class="col-sm-2 form-group">
59
- <label class="font_normal_body">用户名称</label>
60
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
61
- condition=" f_user_name like '%{}%'" placeholder='用户名称'>
62
- </div>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">操作人</label>
65
- <input type="text" style="width:60%" class="input_search" v-model="model.f_operator"
66
- condition=" f_operator like '%{}%'" placeholder='操作人'>
67
- </div>
68
- </div>
69
-
70
- </div>
71
- </criteria>
72
-
73
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
74
- <template partial='head'>
75
- <tr>
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
-
107
- </tr>
108
- </template>
109
- <template partial='body'>
110
- <td style="text-align: center;">
111
- <nobr>{{row.f_userinfo_code}}</nobr>
112
- </td>
113
- <td style="text-align: center;">
114
- <nobr>{{row.f_user_name}}</nobr>
115
- </td>
116
- <td style="text-align: center;">
117
- <nobr>{{row.f_address}}</nobr>
118
- </td>
119
- <td style="text-align: center;">
120
- <nobr>{{row.f_operat_type}}</nobr>
121
- </td>
122
- <td style="text-align: center;">
123
- <nobr>{{row.f_money}}</nobr>
124
- </td>
125
- <td style="text-align: center;">
126
- <nobr>{{row.f_state}}</nobr>
127
- </td>
128
- <td style="text-align: center;">
129
- <nobr>{{row.f_operate_date}}</nobr>
130
- </td>
131
- <td style="text-align: center;">
132
- <nobr>{{row.f_orgname}}</nobr>
133
- </td>
134
- <td style="text-align: center;">
135
- <nobr>{{row.f_depname}}</nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.f_operator}}</nobr>
139
- </td>
140
-
141
- </template>
142
- <template partial='foot'></template>
143
- </data-grid>
144
- </criteria-paged>
145
- <table class="table-hover">
146
- <tr style="position: relative" class="table-bordered">
147
- <td
148
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
149
- 汇总信息
150
- </td>
151
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
152
- 金额合计:&emsp;{{sumsmodel.f_money}}
153
- </td>
154
- </tr>
155
- </table>
156
- </div>
157
- <div class="flex" v-if="show">
158
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
159
- </div>
160
- </div>
161
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
162
- <article slot="modal-body">
163
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="停用" :isremark="false" style="width:auto" ></upload>
164
- </article>
165
- <footer slot="modal-footer" class="modal-footer">
166
- </footer>
167
- </modal>
168
- </div>
169
- </template>
170
-
171
- <script>
172
- import {PagedList} from 'vue-client'
173
- import defaultPrint from '../config/DefaultPrint'
174
- import exportConfig from '../config/exportConfig'
175
-
176
- let readySomething = async function (self) {
177
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
178
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
179
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
180
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
181
- // await self.$refs.paged.$refs.cri.search()
182
- //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
183
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
184
- await self.$MagLoadParams.loadParam()
185
-
186
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
187
- }
188
- export default {
189
- props:['data'],
190
- title: '业务查询',
191
- data() {
192
- return {
193
- data: {},
194
- other: [],
195
- footer: [],
196
- model: new PagedList('rs/sql/BusinesQuery', 20, {}, {f_money: 0}),
197
- criteriaShow: false,
198
- bodyData: ["f_userinfo_code", "f_user_name", "f_meternumber","f_money", "f_operat_type","f_state", "f_operate_date", "f_orgname", "f_depname", "f_operator"],
199
- orgCondtionStr: '',
200
- show:false,
201
- rowdata:{},
202
- modelval: [],
203
- printshow: false,
204
- all: false,
205
- fields: {},
206
- thead: '',
207
- showupload:false,
208
- selected:{},
209
- tfoot: '',
210
- orgrestype:'organization',
211
- defaultfield: [],
212
- initres: {
213
- org:[this.$login.f.orgid],
214
- },
215
- config: {
216
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
217
- },
218
- //合计数据
219
- sumsmodel: {},
220
- operattype:[{label: '全部', value: ''},{label: '停用', value: '停用'},{label: '拆表', value: '拆表'}]
221
- }
222
- },
223
- ready() {
224
- readySomething(this).then(() => {
225
- this.$emit('ready')
226
- }).catch((error) => {
227
- this.$emit('error', error)
228
- })
229
- },
230
- methods: {
231
- view(row){
232
- this.showupload = true
233
- this.selected= row
234
- },
235
- getotherfooter() {
236
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
237
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
238
- this.other = [];
239
- this.footer = [];
240
- let exportdata = this.getCondition;
241
- let otherInData = [];
242
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
243
- let footerData = [], exportfield = this.getfield;
244
- footerData.push("合计");
245
- let self = this;
246
- for (var field in self.sumsmodel) {
247
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
248
- }
249
- this.footer.push(footerData);
250
- this.other.push(otherInData);
251
- },
252
- search(){
253
- this.$refs.paged.$refs.cri.search()
254
- },
255
- selfSearch(args) {
256
- if (this.data) {
257
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
258
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
259
- }
260
- args.condition = `${args.condition}` + this.orgCondtionStr
261
- this.model.search(args.condition, args.model)
262
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
263
- },
264
- clear() {
265
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
266
- this.$refs.paged.$refs.cri.model[key] = []
267
- })
268
- },
269
- getRes(obj) {
270
- this.orgCondtionStr = obj
271
- },
272
- stamp() {
273
- this.all = false
274
- //默认选择要打印的列
275
- this.modelval = defaultPrint.config
276
- this.fields = this.getfield
277
- console.log('所有打印字段', this.fields)
278
- this.printshow = true
279
- this.put()
280
- },
281
- put() {
282
- // 对Modelval进行排序
283
- this.sortModelval()
284
- this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
285
- for (let key of this.modelval) {
286
- this.thead += '<th>' + this.fields[key] + '</th>'
287
- }
288
- this.thead += '</tr>'
289
- },
290
- cancel() {
291
- this.show = false
292
- },
293
- dealmsg(val) {
294
- console.log('---------------dealmsg')
295
- this.rowdata=val
296
- this.show=true
297
- val.model = this.model.model
298
- this.$dispatch('deal-msg', val)
299
- },
300
- print() {
301
- this.$refs.print.PrintAsFile()
302
- this.printshow = false
303
- },
304
- close() {
305
- this.printshow = false
306
- this.all = false
307
- },
308
- // 对选择的列进行排序
309
- sortModelval() {
310
- let sortModel = []
311
- Object.keys(this.fields).forEach((key) => {
312
- if (this.modelval.includes(key)) {
313
- sortModel.push(key)
314
- }
315
- })
316
- this.modelval = sortModel
317
- console.log('选择的打印的字段', this.modelval)
318
- }
319
- },
320
- watch: {
321
- 'all'(val) {
322
- if (val) {
323
- this.modelval = this.bodyData
324
- } else {
325
- this.modelval = defaultPrint.config
326
- this.put()
327
- }
328
- },
329
- sumsmodel: {
330
- handler: function (val) {
331
- this.getotherfooter();
332
- },
333
- deep: true
334
- },
335
- 'modelval.length'() {
336
- this.put()
337
- },
338
- },
339
- computed: {
340
- getCondition() {
341
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
342
- },
343
- getfield() {
344
- return exportConfig.businesConfig
345
- }
346
- }
347
- }
348
- </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 class="font_normal_body">公&emsp;&emsp;司</label>
12
+ <right-tree @re-res="getorg"
13
+ :initresid='initres.org'></right-tree>
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">用户编号</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
18
+ condition="f_userinfo_code = '{}' " placeholder="用户编号">
19
+ </div>
20
+
21
+ <div class="col-sm-2 form-group">
22
+ <label for="startDate" class="font_normal_body">开始日期</label>
23
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
+ v-model="model.startDate"
25
+ :value.sync="model.startDate"
26
+ :format="'yyyy-MM-dd'"
27
+ :show-reset-button="true"
28
+ condition="f_operate_date >= '{}'">
29
+ </datepicker>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label for="endDate" class="font_normal_body">结束日期</label>
33
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
+ v-model="model.endDate"
35
+ :value.sync="model.endDate"
36
+ :format="'yyyy-MM-dd'"
37
+ :show-reset-button="true"
38
+ condition="f_operate_date <= '{}'">
39
+ </datepicker>
40
+ </div>
41
+
42
+
43
+ <div class="span" style="float:right;">
44
+ <button class="button_search button_spacing" @click="search()">查询</button>
45
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
46
+
47
+ <export-excel :data="$parent.$parent.getCondition"
48
+ :field="$parent.$parent.getfield"
49
+ :header="$parent.$parent.other"
50
+ sqlurl="rs/logic/exportfile" sql-name="BusinesQuery" 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" titletable="业务记录"
54
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
+ </div>
56
+ </div>
57
+ <div class="row">
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">用户名称</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
61
+ condition=" f_user_name like '%{}%'" placeholder='用户名称'>
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">操作人</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_operator"
66
+ condition=" f_operator like '%{}%'" placeholder='操作人'>
67
+ </div>
68
+ </div>
69
+
70
+ </div>
71
+ </criteria>
72
+
73
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
74
+ <template partial='head'>
75
+ <tr>
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
+
107
+ </tr>
108
+ </template>
109
+ <template partial='body'>
110
+ <td style="text-align: center;">
111
+ <nobr>{{row.f_userinfo_code}}</nobr>
112
+ </td>
113
+ <td style="text-align: center;">
114
+ <nobr>{{row.f_user_name}}</nobr>
115
+ </td>
116
+ <td style="text-align: center;">
117
+ <nobr>{{row.f_address}}</nobr>
118
+ </td>
119
+ <td style="text-align: center;">
120
+ <nobr>{{row.f_operat_type}}</nobr>
121
+ </td>
122
+ <td style="text-align: center;">
123
+ <nobr>{{row.f_money}}</nobr>
124
+ </td>
125
+ <td style="text-align: center;">
126
+ <nobr>{{row.f_state}}</nobr>
127
+ </td>
128
+ <td style="text-align: center;">
129
+ <nobr>{{row.f_operate_date}}</nobr>
130
+ </td>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.f_orgname}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_depname}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_operator}}</nobr>
139
+ </td>
140
+
141
+ </template>
142
+ <template partial='foot'></template>
143
+ </data-grid>
144
+ </criteria-paged>
145
+ <table class="table-hover">
146
+ <tr style="position: relative" class="table-bordered">
147
+ <td
148
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
149
+ 汇总信息
150
+ </td>
151
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
152
+ 金额合计:&emsp;{{sumsmodel.f_money}}
153
+ </td>
154
+ </tr>
155
+ </table>
156
+ </div>
157
+ <div class="flex" v-if="show">
158
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
159
+ </div>
160
+ </div>
161
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
162
+ <article slot="modal-body">
163
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="停用" :isremark="false" style="width:auto" ></upload>
164
+ </article>
165
+ <footer slot="modal-footer" class="modal-footer">
166
+ </footer>
167
+ </modal>
168
+ </div>
169
+ </template>
170
+
171
+ <script>
172
+ import {PagedList} from 'vue-client'
173
+ import defaultPrint from '../config/DefaultPrint'
174
+ import exportConfig from '../config/exportConfig'
175
+
176
+ let readySomething = async function (self) {
177
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
178
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
179
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
180
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
181
+ // await self.$refs.paged.$refs.cri.search()
182
+ //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
183
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
184
+ await self.$MagLoadParams.loadParam()
185
+
186
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
187
+ }
188
+ export default {
189
+ props:['data'],
190
+ title: '业务查询',
191
+ data() {
192
+ return {
193
+ data: {},
194
+ other: [],
195
+ footer: [],
196
+ model: new PagedList('rs/sql/BusinesQuery', 20, {}, {f_money: 0}),
197
+ criteriaShow: false,
198
+ bodyData: ["f_userinfo_code", "f_user_name", "f_money", "f_operat_type","f_state", "f_operate_date", "f_orgname", "f_depname", "f_operator"],
199
+ orgCondtionStr: '',
200
+ show:false,
201
+ rowdata:{},
202
+ modelval: [],
203
+ printshow: false,
204
+ all: false,
205
+ fields: {},
206
+ thead: '',
207
+ showupload:false,
208
+ selected:{},
209
+ tfoot: '',
210
+ orgrestype:'organization',
211
+ defaultfield: [],
212
+ initres: {
213
+ org:[this.$login.f.orgid],
214
+ },
215
+ config: {
216
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
217
+ },
218
+ //合计数据
219
+ sumsmodel: {},
220
+ operattype:[{label: '全部', value: ''},{label: '停用', value: '停用'},{label: '拆表', value: '拆表'}]
221
+ }
222
+ },
223
+ ready() {
224
+ readySomething(this).then(() => {
225
+ this.$emit('ready')
226
+ }).catch((error) => {
227
+ this.$emit('error', error)
228
+ })
229
+ },
230
+ methods: {
231
+ view(row){
232
+ this.showupload = true
233
+ this.selected= row
234
+ },
235
+ getotherfooter() {
236
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
237
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
238
+ this.other = [];
239
+ this.footer = [];
240
+ let exportdata = this.getCondition;
241
+ let otherInData = [];
242
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
243
+ let footerData = [], exportfield = this.getfield;
244
+ footerData.push("合计");
245
+ let self = this;
246
+ for (var field in self.sumsmodel) {
247
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
248
+ }
249
+ this.footer.push(footerData);
250
+ this.other.push(otherInData);
251
+ },
252
+ search(){
253
+ this.$refs.paged.$refs.cri.search()
254
+ },
255
+ selfSearch(args) {
256
+ if (this.data) {
257
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
258
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
259
+ }
260
+ args.condition = `${args.condition}` + this.orgCondtionStr
261
+ this.model.search(args.condition, args.model)
262
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
263
+ },
264
+ clear() {
265
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
266
+ this.$refs.paged.$refs.cri.model[key] = []
267
+ })
268
+ },
269
+ getRes(obj) {
270
+ this.orgCondtionStr = obj
271
+ },
272
+ stamp() {
273
+ this.all = false
274
+ //默认选择要打印的列
275
+ this.modelval = defaultPrint.config
276
+ this.fields = this.getfield
277
+ console.log('所有打印字段', this.fields)
278
+ this.printshow = true
279
+ this.put()
280
+ },
281
+ put() {
282
+ // 对Modelval进行排序
283
+ this.sortModelval()
284
+ this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
285
+ for (let key of this.modelval) {
286
+ this.thead += '<th>' + this.fields[key] + '</th>'
287
+ }
288
+ this.thead += '</tr>'
289
+ },
290
+ cancel() {
291
+ this.show = false
292
+ },
293
+ dealmsg(val) {
294
+ console.log('---------------dealmsg')
295
+ this.rowdata=val
296
+ this.show=true
297
+ val.model = this.model.model
298
+ this.$dispatch('deal-msg', val)
299
+ },
300
+ print() {
301
+ this.$refs.print.PrintAsFile()
302
+ this.printshow = false
303
+ },
304
+ close() {
305
+ this.printshow = false
306
+ this.all = false
307
+ },
308
+ // 对选择的列进行排序
309
+ sortModelval() {
310
+ let sortModel = []
311
+ Object.keys(this.fields).forEach((key) => {
312
+ if (this.modelval.includes(key)) {
313
+ sortModel.push(key)
314
+ }
315
+ })
316
+ this.modelval = sortModel
317
+ console.log('选择的打印的字段', this.modelval)
318
+ }
319
+ },
320
+ watch: {
321
+ 'all'(val) {
322
+ if (val) {
323
+ this.modelval = this.bodyData
324
+ } else {
325
+ this.modelval = defaultPrint.config
326
+ this.put()
327
+ }
328
+ },
329
+ sumsmodel: {
330
+ handler: function (val) {
331
+ this.getotherfooter();
332
+ },
333
+ deep: true
334
+ },
335
+ 'modelval.length'() {
336
+ this.put()
337
+ },
338
+ },
339
+ computed: {
340
+ getCondition() {
341
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
342
+ },
343
+ getfield() {
344
+ return exportConfig.businesConfig
345
+ }
346
+ }
347
+ }
348
+ </script>