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