manage-client 3.2.60-aode → 3.2.61-aode

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 (71) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/InspectManage.vue +34 -34
  18. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  19. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  20. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  21. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  22. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  23. package/src/components/sale/businessquery/errorHandplanQuery.vue +246 -246
  24. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  25. package/src/components/sale/config/exportConfig.js +260 -260
  26. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  27. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  28. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  29. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  30. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  31. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  32. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  33. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  34. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  35. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  36. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  37. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  38. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  39. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  40. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  41. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  42. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  43. package/src/components/sale/report/aode/iot/ReportQuery.vue +5 -0
  44. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  45. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  46. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  47. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  48. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  49. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  50. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  51. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  52. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  53. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  54. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  55. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  56. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  57. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  58. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  59. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  60. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  61. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  62. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  63. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  64. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  65. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  66. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  67. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  68. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  69. package/src/components/webmeter/report/ReportList.vue +211 -211
  70. package/src/main.js +56 -56
  71. package/src/saleManage.js +256 -256
@@ -1,347 +1,347 @@
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">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
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_user_name"
18
- condition="f_user_name like '%{}%'" placeholder="客户名称">
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="startDate" class="font_normal_body">开始日期</label>
22
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
- v-model="model.startDate"
24
- :value.sync="model.startDate"
25
- :format="'yyyy-MM-dd'"
26
- :show-reset-button="true"
27
- condition="f_operate_date >= '{} 00:00:00'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label for="endDate" class="font_normal_body">结束日期</label>
32
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
- v-model="model.endDate"
34
- :value.sync="model.endDate"
35
- :format="'yyyy-MM-dd'"
36
- :show-reset-button="true"
37
- condition="f_operate_date <= '{} 23:59:59'">
38
- </datepicker>
39
- </div>
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
45
- :field="$parent.$parent.getfield"
46
- sqlurl="rs/logic/exportfile" sql-name="reverseQuery" template-name='冲正查询导出'
47
- :choose-col="true"></export-excel>
48
-
49
- <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>
50
- </div>
51
- </div>
52
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
53
- <div class="row" v-show="$parent.$parent.criteriaShow">
54
- <div class="col-sm-2 form-group">
55
- <label class="font_normal_body">客户地址</label>
56
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
57
- condition="f_address like '%{}%'" placeholder='客户地址'>
58
- </div>
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body">冲正类型</label>
61
- <v-select :value.sync="model.f_type"
62
- v-model="model.f_type"
63
- :options='$parent.$parent.correctTypes' placeholder='请选择'
64
- condition="f_type = '{}'"
65
- close-on-select></v-select>
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">客户类型</label>
69
- <v-select :value.sync="model.f_user_type"
70
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
71
- condition="f_user_type = '{}'"
72
- close-on-select></v-select>
73
- </div>
74
- </div>
75
- </div>
76
- </criteria>
77
-
78
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
79
- <template partial='head'>
80
- <tr>
81
- <th>
82
- <nobr>客户编号</nobr>
83
- </th>
84
- <th>
85
- <nobr>客户名称</nobr>
86
- </th>
87
- <th>
88
- <nobr>客户地址</nobr>
89
- </th>
90
- <th>
91
- <nobr>冲正类型</nobr>
92
- </th>
93
- <th>
94
- <nobr>冲正气量</nobr>
95
- </th>
96
- <th>
97
- <nobr>冲正金额</nobr>
98
- </th>
99
- <th>
100
- <nobr>冲正收款</nobr>
101
- </th>
102
- <th>
103
- <nobr>冲正日期</nobr>
104
- </th>
105
- <th>
106
- <nobr>人员</nobr>
107
- </th>
108
- <th>
109
- <nobr>部门</nobr>
110
- </th>
111
- <th>
112
- <nobr>公司</nobr>
113
- </th>
114
- </tr>
115
- </template>
116
- <template partial='body'>
117
- <td style="text-align: center;">
118
- <nobr>
119
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
120
- </td>
121
- <td style="text-align: center;">
122
- <nobr>{{row.f_user_name}}</nobr>
123
- </td>
124
- <td style="text-align: center;">
125
- <nobr>{{row.f_address}}</nobr>
126
- </td>
127
- <td style="text-align: center;">
128
- <nobr>{{row.f_type}}</nobr>
129
- </td>
130
- <td style="text-align: center;">
131
- <nobr>{{row.f_pregas}}</nobr>
132
- </td>
133
- <td style="text-align: center;">
134
- <nobr>{{row.f_preamount}}</nobr>
135
- </td>
136
- <td style="text-align: center;">
137
- <nobr>{{row.f_collection}}</nobr>
138
- </td>
139
- <td style="text-align: center;">
140
- <nobr>{{row.f_operate_date}}</nobr>
141
- </td>
142
- <td style="text-align: center;">
143
- <nobr>{{row.f_operator}}</nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr>{{row.f_depname}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.f_orgname}}</nobr>
150
- </td>
151
- </template>
152
- <template partial='foot'></template>
153
- </data-grid>
154
-
155
- </criteria-paged>
156
-
157
- <table class="table-hover">
158
- <tr style="position: relative" class="table-bordered">
159
- <td
160
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
161
- 汇总信息
162
- </td>
163
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
164
- 冲正气量合计:&emsp;{{sumsmodel.f_pregas}}
165
- </td>
166
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
167
- 冲正金额合计:&emsp;{{sumsmodel.f_preamount}}
168
- </td>
169
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
170
- 收款合计:&emsp;{{sumsmodel.f_collection}}
171
- </td>
172
- </tr>
173
- </table>
174
-
175
- </div>
176
- <div v-if="show">
177
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
178
- </div>
179
- </div>
180
- </div>
181
- </template>
182
-
183
- <script>
184
- import {PagedList} from 'vue-client'
185
- import defaultPrint from '../config/DefaultPrint'
186
- import exportConfig from '../config/exportConfig'
187
-
188
- let readySomething = async function (self) {
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
- await self.$MagLoadParams.loadParam(self.$login.f.orgid)
193
-
194
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
195
- }
196
- export default {
197
- data() {
198
- return {
199
- selectfields:[],
200
- data: {},
201
- model: new PagedList('rs/sql/reverseQuery', 20, {}, {f_pregas: 0, f_preamount: 0, f_collection: 0}),
202
- criteriaShow: false,
203
- orgCondtionStr: '',
204
- initres: {
205
- org:[this.$login.f.orgid],
206
- dep:[],
207
- user:[],
208
- },
209
- show:false,
210
- rowdata:{},
211
- modelval: [],
212
- printshow: false,
213
- all: false,
214
- fields: {},
215
- thead: '',
216
- tfoot: '',
217
- //合计数据
218
- sumsmodel: {}
219
- }
220
- },
221
- props:['selectorg'],
222
- ready() {
223
- if(this.selectorg != null && this.selectorg != null != ''){
224
- this.initres.org=[]
225
- this.initres.org.push(this.selectorg);
226
- }
227
- readySomething(this).then(() => {
228
- this.$emit('ready')
229
- }).catch((error) => {
230
- this.$emit('error', error)
231
- })
232
- for(var item in exportConfig.dataReportConfig){
233
- this.selectfields.push(item)
234
- }
235
- },
236
- methods: {
237
- search(){
238
- this.$refs.paged.$refs.cri.search()
239
- },
240
- cancel() {
241
- this.show = false
242
- },
243
- selfSearch(args) {
244
- args.condition = `${args.condition}` + this.orgCondtionStr
245
- this.model.search(args.condition, args.model)
246
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
247
- },
248
- clear() {
249
- //清空部门和人员
250
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
251
- //部门和人员变为全选
252
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
253
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
254
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
255
- this.$refs.paged.$refs.cri.model[key] = ''
256
- })
257
- },
258
- show() {
259
- this.criteriaShow = true
260
- },
261
- hidden() {
262
- this.criteriaShow = !this.criteriaShow
263
- },
264
- getRes(obj) {
265
- this.orgCondtionStr = obj
266
- },
267
- stamp() {
268
- this.all = false
269
- //默认选择要打印的列
270
- this.modelval = defaultPrint.config
271
- this.fields = this.getfield
272
- console.log('所有打印字段', this.fields)
273
- this.printshow = true
274
- this.put()
275
- },
276
- dealmsg(val) {
277
- console.log('---------------dealmsg')
278
- this.rowdata=val
279
- this.show=true
280
- val.model = this.model.model
281
- this.$dispatch('deal-msg', val)
282
- },
283
- put() {
284
- // 对Modelval进行排序
285
- this.sortModelval()
286
- this.thead = `<tr><th colspan=${this.modelval.length}>冲正查询统计报表</th></tr><tr>`
287
- for (let key of this.modelval) {
288
- this.thead += '<th>' + this.fields[key] + '</th>'
289
- }
290
- this.thead += '</tr>'
291
- },
292
- print() {
293
- this.$refs.print.PrintAsFile()
294
- this.printshow = false
295
- },
296
- close() {
297
- this.printshow = false
298
- this.all = false
299
- },
300
- // 对选择的列进行排序
301
- sortModelval() {
302
- let sortModel = []
303
- Object.keys(this.fields).forEach((key) => {
304
- if (this.modelval.includes(key)) {
305
- sortModel.push(key)
306
- }
307
- })
308
- this.modelval = sortModel
309
- console.log('选择的打印的字段', this.modelval)
310
- }
311
- },
312
- watch: {
313
- 'all'(val) {
314
- if (val) {
315
- this.modelval = this.bodyData
316
- } else {
317
- this.modelval = defaultPrint.config
318
- this.put()
319
- }
320
- },
321
- 'modelval.length'() {
322
- this.put()
323
- },
324
- 'orgCondtionStr'(val) {
325
- let res = val.match(/'(.*?)'/)
326
- console.log('正则提取:',res && res[1])
327
- if (res) {
328
- this.selectorg = res[1]
329
- }
330
- }
331
- },
332
- computed: {
333
- getCondition() {
334
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
335
- },
336
- getfield() {
337
- return exportConfig.reverseConfig
338
- },
339
- usertypes() {
340
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
341
- },
342
- correctTypes() {
343
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
344
- }
345
- }
346
- }
347
- </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">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
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_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="startDate" class="font_normal_body">开始日期</label>
22
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
+ v-model="model.startDate"
24
+ :value.sync="model.startDate"
25
+ :format="'yyyy-MM-dd'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date >= '{} 00:00:00'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label for="endDate" class="font_normal_body">结束日期</label>
32
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
+ v-model="model.endDate"
34
+ :value.sync="model.endDate"
35
+ :format="'yyyy-MM-dd'"
36
+ :show-reset-button="true"
37
+ condition="f_operate_date <= '{} 23:59:59'">
38
+ </datepicker>
39
+ </div>
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
45
+ :field="$parent.$parent.getfield"
46
+ sqlurl="rs/logic/exportfile" sql-name="reverseQuery" template-name='冲正查询导出'
47
+ :choose-col="true"></export-excel>
48
+
49
+ <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>
50
+ </div>
51
+ </div>
52
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
53
+ <div class="row" v-show="$parent.$parent.criteriaShow">
54
+ <div class="col-sm-2 form-group">
55
+ <label class="font_normal_body">客户地址</label>
56
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
57
+ condition="f_address like '%{}%'" placeholder='客户地址'>
58
+ </div>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">冲正类型</label>
61
+ <v-select :value.sync="model.f_type"
62
+ v-model="model.f_type"
63
+ :options='$parent.$parent.correctTypes' placeholder='请选择'
64
+ condition="f_type = '{}'"
65
+ close-on-select></v-select>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">客户类型</label>
69
+ <v-select :value.sync="model.f_user_type"
70
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
71
+ condition="f_user_type = '{}'"
72
+ close-on-select></v-select>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </criteria>
77
+
78
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
79
+ <template partial='head'>
80
+ <tr>
81
+ <th>
82
+ <nobr>客户编号</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>客户名称</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>客户地址</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>冲正类型</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>冲正气量</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>冲正金额</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>冲正收款</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>冲正日期</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>人员</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>部门</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>公司</nobr>
113
+ </th>
114
+ </tr>
115
+ </template>
116
+ <template partial='body'>
117
+ <td style="text-align: center;">
118
+ <nobr>
119
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
120
+ </td>
121
+ <td style="text-align: center;">
122
+ <nobr>{{row.f_user_name}}</nobr>
123
+ </td>
124
+ <td style="text-align: center;">
125
+ <nobr>{{row.f_address}}</nobr>
126
+ </td>
127
+ <td style="text-align: center;">
128
+ <nobr>{{row.f_type}}</nobr>
129
+ </td>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.f_pregas}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.f_preamount}}</nobr>
135
+ </td>
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.f_collection}}</nobr>
138
+ </td>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.f_operate_date}}</nobr>
141
+ </td>
142
+ <td style="text-align: center;">
143
+ <nobr>{{row.f_operator}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.f_depname}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.f_orgname}}</nobr>
150
+ </td>
151
+ </template>
152
+ <template partial='foot'></template>
153
+ </data-grid>
154
+
155
+ </criteria-paged>
156
+
157
+ <table class="table-hover">
158
+ <tr style="position: relative" class="table-bordered">
159
+ <td
160
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
161
+ 汇总信息
162
+ </td>
163
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
164
+ 冲正气量合计:&emsp;{{sumsmodel.f_pregas}}
165
+ </td>
166
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
167
+ 冲正金额合计:&emsp;{{sumsmodel.f_preamount}}
168
+ </td>
169
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
170
+ 收款合计:&emsp;{{sumsmodel.f_collection}}
171
+ </td>
172
+ </tr>
173
+ </table>
174
+
175
+ </div>
176
+ <div v-if="show">
177
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ </template>
182
+
183
+ <script>
184
+ import {PagedList} from 'vue-client'
185
+ import defaultPrint from '../config/DefaultPrint'
186
+ import exportConfig from '../config/exportConfig'
187
+
188
+ let readySomething = async function (self) {
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
+ await self.$MagLoadParams.loadParam(self.$login.f.orgid)
193
+
194
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
195
+ }
196
+ export default {
197
+ data() {
198
+ return {
199
+ selectfields:[],
200
+ data: {},
201
+ model: new PagedList('rs/sql/reverseQuery', 20, {}, {f_pregas: 0, f_preamount: 0, f_collection: 0}),
202
+ criteriaShow: false,
203
+ orgCondtionStr: '',
204
+ initres: {
205
+ org:[this.$login.f.orgid],
206
+ dep:[],
207
+ user:[],
208
+ },
209
+ show:false,
210
+ rowdata:{},
211
+ modelval: [],
212
+ printshow: false,
213
+ all: false,
214
+ fields: {},
215
+ thead: '',
216
+ tfoot: '',
217
+ //合计数据
218
+ sumsmodel: {}
219
+ }
220
+ },
221
+ props:['selectorg'],
222
+ ready() {
223
+ if(this.selectorg != null && this.selectorg != null != ''){
224
+ this.initres.org=[]
225
+ this.initres.org.push(this.selectorg);
226
+ }
227
+ readySomething(this).then(() => {
228
+ this.$emit('ready')
229
+ }).catch((error) => {
230
+ this.$emit('error', error)
231
+ })
232
+ for(var item in exportConfig.dataReportConfig){
233
+ this.selectfields.push(item)
234
+ }
235
+ },
236
+ methods: {
237
+ search(){
238
+ this.$refs.paged.$refs.cri.search()
239
+ },
240
+ cancel() {
241
+ this.show = false
242
+ },
243
+ selfSearch(args) {
244
+ args.condition = `${args.condition}` + this.orgCondtionStr
245
+ this.model.search(args.condition, args.model)
246
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
247
+ },
248
+ clear() {
249
+ //清空部门和人员
250
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
251
+ //部门和人员变为全选
252
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
253
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
254
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
255
+ this.$refs.paged.$refs.cri.model[key] = ''
256
+ })
257
+ },
258
+ show() {
259
+ this.criteriaShow = true
260
+ },
261
+ hidden() {
262
+ this.criteriaShow = !this.criteriaShow
263
+ },
264
+ getRes(obj) {
265
+ this.orgCondtionStr = obj
266
+ },
267
+ stamp() {
268
+ this.all = false
269
+ //默认选择要打印的列
270
+ this.modelval = defaultPrint.config
271
+ this.fields = this.getfield
272
+ console.log('所有打印字段', this.fields)
273
+ this.printshow = true
274
+ this.put()
275
+ },
276
+ dealmsg(val) {
277
+ console.log('---------------dealmsg')
278
+ this.rowdata=val
279
+ this.show=true
280
+ val.model = this.model.model
281
+ this.$dispatch('deal-msg', val)
282
+ },
283
+ put() {
284
+ // 对Modelval进行排序
285
+ this.sortModelval()
286
+ this.thead = `<tr><th colspan=${this.modelval.length}>冲正查询统计报表</th></tr><tr>`
287
+ for (let key of this.modelval) {
288
+ this.thead += '<th>' + this.fields[key] + '</th>'
289
+ }
290
+ this.thead += '</tr>'
291
+ },
292
+ print() {
293
+ this.$refs.print.PrintAsFile()
294
+ this.printshow = false
295
+ },
296
+ close() {
297
+ this.printshow = false
298
+ this.all = false
299
+ },
300
+ // 对选择的列进行排序
301
+ sortModelval() {
302
+ let sortModel = []
303
+ Object.keys(this.fields).forEach((key) => {
304
+ if (this.modelval.includes(key)) {
305
+ sortModel.push(key)
306
+ }
307
+ })
308
+ this.modelval = sortModel
309
+ console.log('选择的打印的字段', this.modelval)
310
+ }
311
+ },
312
+ watch: {
313
+ 'all'(val) {
314
+ if (val) {
315
+ this.modelval = this.bodyData
316
+ } else {
317
+ this.modelval = defaultPrint.config
318
+ this.put()
319
+ }
320
+ },
321
+ 'modelval.length'() {
322
+ this.put()
323
+ },
324
+ 'orgCondtionStr'(val) {
325
+ let res = val.match(/'(.*?)'/)
326
+ console.log('正则提取:',res && res[1])
327
+ if (res) {
328
+ this.selectorg = res[1]
329
+ }
330
+ }
331
+ },
332
+ computed: {
333
+ getCondition() {
334
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
335
+ },
336
+ getfield() {
337
+ return exportConfig.reverseConfig
338
+ },
339
+ usertypes() {
340
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
341
+ },
342
+ correctTypes() {
343
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
344
+ }
345
+ }
346
+ }
347
+ </script>