manage-client 3.2.35 → 3.2.36

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 (49) hide show
  1. package/.gradle/{6.7 → 5.4.1}/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/{6.7 → 5.4.1}/gc.properties +0 -0
  4. package/build/dev-server.js +193 -174
  5. package/package.json +1 -1
  6. package/src/.idea/misc.xml +9 -0
  7. package/src/.idea/modules.xml +8 -0
  8. package/src/.idea/src.iml +9 -0
  9. package/src/.idea/vcs.xml +6 -0
  10. package/src/.idea/workspace.xml +93 -0
  11. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  13. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  14. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  15. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  16. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  17. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  19. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  20. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  21. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  22. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  23. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  24. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  25. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  26. package/src/components/statistical/DendrogramManage.vue +239 -204
  27. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  28. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  29. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  30. package/src/filiale/pingxiang/sale.js +9 -9
  31. package/src/filiale/qingtongxia/sale.js +13 -13
  32. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  33. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  34. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  35. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  36. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  37. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  38. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  39. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  40. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  41. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1270
  42. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  43. package/src/main.js +66 -66
  44. package/.gradle/6.7/executionHistory/executionHistory.bin +0 -0
  45. package/.gradle/6.7/executionHistory/executionHistory.lock +0 -0
  46. package/.gradle/6.7/fileHashes/fileHashes.bin +0 -0
  47. package/.gradle/6.7/fileHashes/fileHashes.lock +0 -0
  48. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  49. package/.gradle/configuration-cache/gc.properties +0 -0
@@ -1,358 +1,358 @@
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 class="col-sm-2 form-group">
69
- <label class="font_normal_body">表&emsp;&emsp;号</label>
70
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_number"
71
- condition="f_meternumber = '{}'" placeholder='表号'>
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
75
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
76
- condition="f_card_id = '{}'" placeholder='卡号'>
77
- </div>
78
- </div>
79
-
80
- </div>
81
- </criteria>
82
-
83
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
84
- <template partial='head'>
85
- <tr>
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
- <th>
114
- <nobr>操作人</nobr>
115
- </th>
116
-
117
- </tr>
118
- </template>
119
- <template partial='body'>
120
- <td style="text-align: center;">
121
- <nobr>{{row.f_userinfo_code}}</nobr>
122
- </td>
123
- <td style="text-align: center;">
124
- <nobr>{{row.f_user_name}}</nobr>
125
- </td>
126
- <td style="text-align: center;">
127
- <nobr>{{row.f_address}}</nobr>
128
- </td>
129
- <td style="text-align: center;">
130
- <nobr>{{row.f_operat_type}}</nobr>
131
- </td>
132
- <td style="text-align: center;">
133
- <nobr>{{row.f_money}}</nobr>
134
- </td>
135
- <td style="text-align: center;">
136
- <nobr>{{row.f_state}}</nobr>
137
- </td>
138
- <td style="text-align: center;">
139
- <nobr>{{row.f_operate_date}}</nobr>
140
- </td>
141
- <td style="text-align: center;">
142
- <nobr>{{row.f_orgname}}</nobr>
143
- </td>
144
- <td style="text-align: center;">
145
- <nobr>{{row.f_depname}}</nobr>
146
- </td>
147
- <td style="text-align: center;">
148
- <nobr>{{row.f_operator}}</nobr>
149
- </td>
150
-
151
- </template>
152
- <template partial='foot'></template>
153
- </data-grid>
154
- </criteria-paged>
155
- <table class="table-hover">
156
- <tr style="position: relative" class="table-bordered">
157
- <td
158
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
159
- 汇总信息
160
- </td>
161
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
162
- 金额合计:&emsp;{{sumsmodel.f_money}}
163
- </td>
164
- </tr>
165
- </table>
166
- </div>
167
- <div class="flex" v-if="show">
168
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
169
- </div>
170
- </div>
171
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
172
- <article slot="modal-body">
173
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="停用" :isremark="false" style="width:auto" ></upload>
174
- </article>
175
- <footer slot="modal-footer" class="modal-footer">
176
- </footer>
177
- </modal>
178
- </div>
179
- </template>
180
-
181
- <script>
182
- import {PagedList} from 'vue-client'
183
- import defaultPrint from '../config/DefaultPrint'
184
- import exportConfig from '../config/exportConfig'
185
-
186
- let readySomething = async function (self) {
187
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
188
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
189
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
190
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
191
- // await self.$refs.paged.$refs.cri.search()
192
- //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
193
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
194
- await self.$MagLoadParams.loadParam()
195
-
196
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
197
- }
198
- export default {
199
- props:['data'],
200
- title: '业务查询',
201
- data() {
202
- return {
203
- data: {},
204
- other: [],
205
- footer: [],
206
- model: new PagedList('rs/sql/BusinesQuery', 20, {}, {f_money: 0}),
207
- criteriaShow: false,
208
- bodyData: ["f_userinfo_code", "f_user_name", "f_money", "f_operat_type","f_state", "f_operate_date", "f_orgname", "f_depname", "f_operator"],
209
- orgCondtionStr: '',
210
- show:false,
211
- rowdata:{},
212
- modelval: [],
213
- printshow: false,
214
- all: false,
215
- fields: {},
216
- thead: '',
217
- showupload:false,
218
- selected:{},
219
- tfoot: '',
220
- orgrestype:'organization',
221
- defaultfield: [],
222
- initres: {
223
- org:[this.$login.f.orgid],
224
- },
225
- config: {
226
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
227
- },
228
- //合计数据
229
- sumsmodel: {},
230
- operattype:[{label: '全部', value: ''},{label: '停用', value: '停用'},{label: '拆表', value: '拆表'}]
231
- }
232
- },
233
- ready() {
234
- readySomething(this).then(() => {
235
- this.$emit('ready')
236
- }).catch((error) => {
237
- this.$emit('error', error)
238
- })
239
- },
240
- methods: {
241
- view(row){
242
- this.showupload = true
243
- this.selected= row
244
- },
245
- getotherfooter() {
246
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
247
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
248
- this.other = [];
249
- this.footer = [];
250
- let exportdata = this.getCondition;
251
- let otherInData = [];
252
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
253
- let footerData = [], exportfield = this.getfield;
254
- footerData.push("合计");
255
- let self = this;
256
- for (var field in self.sumsmodel) {
257
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
258
- }
259
- this.footer.push(footerData);
260
- this.other.push(otherInData);
261
- },
262
- search(){
263
- this.$refs.paged.$refs.cri.search()
264
- },
265
- selfSearch(args) {
266
- if (this.data) {
267
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
268
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
269
- }
270
- args.condition = `${args.condition}` + this.orgCondtionStr
271
- this.model.search(args.condition, args.model)
272
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
273
- },
274
- clear() {
275
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
276
- this.$refs.paged.$refs.cri.model[key] = []
277
- })
278
- },
279
- getRes(obj) {
280
- this.orgCondtionStr = obj
281
- },
282
- stamp() {
283
- this.all = false
284
- //默认选择要打印的列
285
- this.modelval = defaultPrint.config
286
- this.fields = this.getfield
287
- console.log('所有打印字段', this.fields)
288
- this.printshow = true
289
- this.put()
290
- },
291
- put() {
292
- // 对Modelval进行排序
293
- this.sortModelval()
294
- this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
295
- for (let key of this.modelval) {
296
- this.thead += '<th>' + this.fields[key] + '</th>'
297
- }
298
- this.thead += '</tr>'
299
- },
300
- cancel() {
301
- this.show = false
302
- },
303
- dealmsg(val) {
304
- console.log('---------------dealmsg')
305
- this.rowdata=val
306
- this.show=true
307
- val.model = this.model.model
308
- this.$dispatch('deal-msg', val)
309
- },
310
- print() {
311
- this.$refs.print.PrintAsFile()
312
- this.printshow = false
313
- },
314
- close() {
315
- this.printshow = false
316
- this.all = false
317
- },
318
- // 对选择的列进行排序
319
- sortModelval() {
320
- let sortModel = []
321
- Object.keys(this.fields).forEach((key) => {
322
- if (this.modelval.includes(key)) {
323
- sortModel.push(key)
324
- }
325
- })
326
- this.modelval = sortModel
327
- console.log('选择的打印的字段', this.modelval)
328
- }
329
- },
330
- watch: {
331
- 'all'(val) {
332
- if (val) {
333
- this.modelval = this.bodyData
334
- } else {
335
- this.modelval = defaultPrint.config
336
- this.put()
337
- }
338
- },
339
- sumsmodel: {
340
- handler: function (val) {
341
- this.getotherfooter();
342
- },
343
- deep: true
344
- },
345
- 'modelval.length'() {
346
- this.put()
347
- },
348
- },
349
- computed: {
350
- getCondition() {
351
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
352
- },
353
- getfield() {
354
- return exportConfig.businesConfig
355
- }
356
- }
357
- }
358
- </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 class="col-sm-2 form-group">
69
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_number"
71
+ condition="f_meternumber = '{}'" placeholder='表号'>
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
76
+ condition="f_card_id = '{}'" placeholder='卡号'>
77
+ </div>
78
+ </div>
79
+
80
+ </div>
81
+ </criteria>
82
+
83
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
84
+ <template partial='head'>
85
+ <tr>
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
+ <th>
114
+ <nobr>操作人</nobr>
115
+ </th>
116
+
117
+ </tr>
118
+ </template>
119
+ <template partial='body'>
120
+ <td style="text-align: center;">
121
+ <nobr>{{row.f_userinfo_code}}</nobr>
122
+ </td>
123
+ <td style="text-align: center;">
124
+ <nobr>{{row.f_user_name}}</nobr>
125
+ </td>
126
+ <td style="text-align: center;">
127
+ <nobr>{{row.f_address}}</nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr>{{row.f_operat_type}}</nobr>
131
+ </td>
132
+ <td style="text-align: center;">
133
+ <nobr>{{row.f_money}}</nobr>
134
+ </td>
135
+ <td style="text-align: center;">
136
+ <nobr>{{row.f_state}}</nobr>
137
+ </td>
138
+ <td style="text-align: center;">
139
+ <nobr>{{row.f_operate_date}}</nobr>
140
+ </td>
141
+ <td style="text-align: center;">
142
+ <nobr>{{row.f_orgname}}</nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr>{{row.f_depname}}</nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr>{{row.f_operator}}</nobr>
149
+ </td>
150
+
151
+ </template>
152
+ <template partial='foot'></template>
153
+ </data-grid>
154
+ </criteria-paged>
155
+ <table class="table-hover">
156
+ <tr style="position: relative" class="table-bordered">
157
+ <td
158
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
159
+ 汇总信息
160
+ </td>
161
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
162
+ 金额合计:&emsp;{{sumsmodel.f_money}}
163
+ </td>
164
+ </tr>
165
+ </table>
166
+ </div>
167
+ <div class="flex" v-if="show">
168
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
169
+ </div>
170
+ </div>
171
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
172
+ <article slot="modal-body">
173
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="停用" :isremark="false" style="width:auto" ></upload>
174
+ </article>
175
+ <footer slot="modal-footer" class="modal-footer">
176
+ </footer>
177
+ </modal>
178
+ </div>
179
+ </template>
180
+
181
+ <script>
182
+ import {PagedList} from 'vue-client'
183
+ import defaultPrint from '../config/DefaultPrint'
184
+ import exportConfig from '../config/exportConfig'
185
+
186
+ let readySomething = async function (self) {
187
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
188
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
189
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
190
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
191
+ // await self.$refs.paged.$refs.cri.search()
192
+ //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
193
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
194
+ await self.$MagLoadParams.loadParam()
195
+
196
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
197
+ }
198
+ export default {
199
+ props:['data'],
200
+ title: '业务查询',
201
+ data() {
202
+ return {
203
+ data: {},
204
+ other: [],
205
+ footer: [],
206
+ model: new PagedList('rs/sql/BusinesQuery', 20, {}, {f_money: 0}),
207
+ criteriaShow: false,
208
+ bodyData: ["f_userinfo_code", "f_user_name", "f_money", "f_operat_type","f_state", "f_operate_date", "f_orgname", "f_depname", "f_operator"],
209
+ orgCondtionStr: '',
210
+ show:false,
211
+ rowdata:{},
212
+ modelval: [],
213
+ printshow: false,
214
+ all: false,
215
+ fields: {},
216
+ thead: '',
217
+ showupload:false,
218
+ selected:{},
219
+ tfoot: '',
220
+ orgrestype:'organization',
221
+ defaultfield: [],
222
+ initres: {
223
+ org:[this.$login.f.orgid],
224
+ },
225
+ config: {
226
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
227
+ },
228
+ //合计数据
229
+ sumsmodel: {},
230
+ operattype:[{label: '全部', value: ''},{label: '停用', value: '停用'},{label: '拆表', value: '拆表'}]
231
+ }
232
+ },
233
+ ready() {
234
+ readySomething(this).then(() => {
235
+ this.$emit('ready')
236
+ }).catch((error) => {
237
+ this.$emit('error', error)
238
+ })
239
+ },
240
+ methods: {
241
+ view(row){
242
+ this.showupload = true
243
+ this.selected= row
244
+ },
245
+ getotherfooter() {
246
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
247
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
248
+ this.other = [];
249
+ this.footer = [];
250
+ let exportdata = this.getCondition;
251
+ let otherInData = [];
252
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
253
+ let footerData = [], exportfield = this.getfield;
254
+ footerData.push("合计");
255
+ let self = this;
256
+ for (var field in self.sumsmodel) {
257
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
258
+ }
259
+ this.footer.push(footerData);
260
+ this.other.push(otherInData);
261
+ },
262
+ search(){
263
+ this.$refs.paged.$refs.cri.search()
264
+ },
265
+ selfSearch(args) {
266
+ if (this.data) {
267
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
268
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
269
+ }
270
+ args.condition = `${args.condition}` + this.orgCondtionStr
271
+ this.model.search(args.condition, args.model)
272
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
273
+ },
274
+ clear() {
275
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
276
+ this.$refs.paged.$refs.cri.model[key] = []
277
+ })
278
+ },
279
+ getRes(obj) {
280
+ this.orgCondtionStr = obj
281
+ },
282
+ stamp() {
283
+ this.all = false
284
+ //默认选择要打印的列
285
+ this.modelval = defaultPrint.config
286
+ this.fields = this.getfield
287
+ console.log('所有打印字段', this.fields)
288
+ this.printshow = true
289
+ this.put()
290
+ },
291
+ put() {
292
+ // 对Modelval进行排序
293
+ this.sortModelval()
294
+ this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
295
+ for (let key of this.modelval) {
296
+ this.thead += '<th>' + this.fields[key] + '</th>'
297
+ }
298
+ this.thead += '</tr>'
299
+ },
300
+ cancel() {
301
+ this.show = false
302
+ },
303
+ dealmsg(val) {
304
+ console.log('---------------dealmsg')
305
+ this.rowdata=val
306
+ this.show=true
307
+ val.model = this.model.model
308
+ this.$dispatch('deal-msg', val)
309
+ },
310
+ print() {
311
+ this.$refs.print.PrintAsFile()
312
+ this.printshow = false
313
+ },
314
+ close() {
315
+ this.printshow = false
316
+ this.all = false
317
+ },
318
+ // 对选择的列进行排序
319
+ sortModelval() {
320
+ let sortModel = []
321
+ Object.keys(this.fields).forEach((key) => {
322
+ if (this.modelval.includes(key)) {
323
+ sortModel.push(key)
324
+ }
325
+ })
326
+ this.modelval = sortModel
327
+ console.log('选择的打印的字段', this.modelval)
328
+ }
329
+ },
330
+ watch: {
331
+ 'all'(val) {
332
+ if (val) {
333
+ this.modelval = this.bodyData
334
+ } else {
335
+ this.modelval = defaultPrint.config
336
+ this.put()
337
+ }
338
+ },
339
+ sumsmodel: {
340
+ handler: function (val) {
341
+ this.getotherfooter();
342
+ },
343
+ deep: true
344
+ },
345
+ 'modelval.length'() {
346
+ this.put()
347
+ },
348
+ },
349
+ computed: {
350
+ getCondition() {
351
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
352
+ },
353
+ getfield() {
354
+ return exportConfig.businesConfig
355
+ }
356
+ }
357
+ }
358
+ </script>