manage-client 3.2.26 → 3.2.30

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 (54) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +28 -9
  5. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/package.json +1 -1
  7. package/src/.idea/misc.xml +9 -0
  8. package/src/.idea/modules.xml +8 -0
  9. package/src/.idea/src.iml +9 -0
  10. package/src/.idea/vcs.xml +6 -0
  11. package/src/.idea/workspace.xml +93 -0
  12. package/src/components/SellReport/ChargePrick.vue +43 -122
  13. package/src/components/sale/businessquery/BusinesQuery.vue +358 -348
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -627
  15. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -348
  16. package/src/components/sale/businessquery/ChargeQuery.vue +1245 -1235
  17. package/src/components/sale/businessquery/DisableQuery.vue +451 -441
  18. package/src/components/sale/businessquery/EnableQuery.vue +408 -398
  19. package/src/components/sale/businessquery/FillCardQuery.vue +486 -477
  20. package/src/components/sale/businessquery/FillGasQuery.vue +511 -491
  21. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  22. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -619
  23. package/src/components/sale/businessquery/ReverseQuery.vue +402 -392
  24. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  25. package/src/components/sale/businessquery/TransferQuery.vue +418 -404
  26. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  27. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  28. package/src/components/sale/filesquery/DeviceQuery.vue +534 -524
  29. package/src/components/sale/filesquery/FireQuery.vue +477 -0
  30. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1250
  31. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  32. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  33. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  34. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  35. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  36. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  37. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  38. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  39. package/src/filiale/pingxiang/sale.js +9 -9
  40. package/src/filiale/qingtongxia/sale.js +13 -13
  41. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  42. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  43. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  44. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  45. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  46. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  47. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  48. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  49. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  50. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1252
  51. package/src/filiale/tongchuan/FillGasQuery.vue +523 -508
  52. package/src/filiale/tongchuan/config/exportConfig.js +1 -1
  53. package/src/main.js +10 -11
  54. package/src/saleManage.js +5 -0
@@ -1,348 +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>
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>
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>