manage-client 3.2.79-aode → 3.2.80-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 (75) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  4. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  5. package/gradlew +234 -0
  6. package/gradlew.bat +89 -0
  7. package/package.json +1 -1
  8. package/src/Util.js +383 -383
  9. package/src/components/MeterManage/MeterList.vue +336 -336
  10. package/src/components/WebReport/UserGasAll.vue +214 -214
  11. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  13. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  14. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  15. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  16. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  17. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  18. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  19. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  20. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  21. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  22. package/src/components/sale/businessquery/NewAccountQuery.vue +512 -506
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  24. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  25. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  26. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  27. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  28. package/src/components/sale/config/exportConfig.js +271 -271
  29. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  30. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  31. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  32. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  33. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  34. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  35. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  36. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  37. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  38. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  39. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  40. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  41. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  42. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  43. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  44. package/src/components/sale/report/aode/YearByUserType.vue +351 -342
  45. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  46. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  47. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  48. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  49. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  50. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  51. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  52. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  54. package/src/components/webmeter/DrillData/NewUserGasAll.vue +596 -588
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +24 -0
  56. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  57. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  58. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  59. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  60. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  61. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  62. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  63. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  64. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  65. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  66. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +325 -325
  67. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  68. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  69. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  70. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  71. package/src/components/webmeter/report/ReportList.vue +211 -211
  72. package/src/main.js +56 -56
  73. package/src/saleManage.js +263 -263
  74. package/src/webmeterManage.js +99 -99
  75. package/client.iml +0 -15
@@ -1,315 +1,315 @@
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 = '{}'"
18
- placeholder="客户编号">
19
- </div>
20
-
21
- <div class="col-sm-2 form-group">
22
- <label class="font_normal_body">客户名称</label>
23
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
24
- condition="f_user_name = '{}'"
25
- placeholder="客户名称">
26
- </div>
27
- <div class="col-sm-2 form-group">
28
- <label class="font_normal_body">增值类型</label>
29
- <v-select :value.sync="model.f_field_name"
30
- v-model="model.f_field_name"
31
- :options='$parent.$parent.valuetypeoptions' placeholder='请选择'
32
- condition="itemname = '{}'"
33
- close-on-select></v-select>
34
- </div>
35
-
36
- <div class="span" style="float:right;">
37
- <button class="button_search button_spacing" @click="search()">查询</button>
38
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
-
40
- <export-excel-plus :data="$parent.$parent.getCondition"
41
- :defaultselect="$parent.$parent.selectfields"
42
- :field="$parent.$parent.getfield"
43
- :exportprogress="true"
44
- sqlurl="rs/logic/addValueQuery"
45
- sql-name='getValueaddInfo'
46
- template-name="用户增值业务汇总信息" :choose-col="true"></export-excel-plus>
47
- <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>
48
-
49
- </div>
50
- </div>
51
- <div class="row" v-show="$parent.$parent.criteriaShow">
52
- <div class="col-sm-2 form-group">
53
- <label class="font_normal_body">小区名称</label>
54
- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
55
- condition="f_residential_area = '{}'"
56
- placeholder="小区名称">
57
- </div>
58
- <div class="col-sm-2 form-group">
59
- <label class="font_normal_body">客户类型</label>
60
- <v-select :value.sync="model.f_user_type"
61
-
62
- condition="f_user_type = '{}'"
63
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
64
- close-on-select></v-select>
65
- </div>
66
- <!-- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body">用气性质</label>
68
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
69
- condition="f_gasproperties = '{}'"
70
- :options='$parent.$parent.gasproperties' placeholder='请选择'
71
- close-on-select></v-select>
72
- </div> -->
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">有无增值</label>
75
- <v-select :value.sync="model.f_open_state"
76
- v-model="model.f_open_state"
77
- :options='$parent.$parent.backstates' placeholder='请选择'
78
- condition="ishas = '{}'"
79
- close-on-select></v-select>
80
- </div>
81
-
82
- </div>
83
- </div>
84
- </criteria>
85
-
86
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
87
- <template partial='head'>
88
- <tr>
89
- <th>
90
- <nobr>增值业务名称</nobr>
91
- </th>
92
- <th>
93
- <nobr>户数</nobr>
94
- </th>
95
- </tr>
96
- </template>
97
- <template partial='body'>
98
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
99
- <nobr>{{row.itemname}}</nobr>
100
- </td>
101
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
102
- <nobr>{{row.num}}</nobr>
103
- </td>
104
-
105
- </template>
106
- <template partial='foot'></template>
107
- </data-grid>
108
- </criteria-paged>
109
- </div>
110
- </div>
111
- </div>
112
- </template>
113
-
114
- <script>
115
- import {PagedList} from 'vue-client'
116
- import exportConfig from '../sale/config/exportConfig'
117
- import defaultPrint from "../sale/config/DefaultPrint";
118
- import plugin from "system-clients/src/plugins/GetLoginInfoService";
119
-
120
- let readySomething = async function (self) {
121
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
122
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
123
- // self.$refs.paged.$refs.cri.search()
124
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
125
- await self.$MagLoadParams.loadParam()
126
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
127
- }
128
- export default {
129
- title: '增值业务汇总查询',
130
- data() {
131
- return {
132
- org:[this.$login.f.orgid],
133
- filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
134
- config: {
135
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
136
- },
137
- //f_price_name:[],
138
- gasproperties:[],
139
- showinfo: false,
140
- data: {},
141
- show:false,
142
- rowdata:{},
143
- initres: {
144
- org:[this.$login.f.orgid],
145
- dep:[],
146
- user:[],
147
- },
148
- model: new PagedList('rs/sql/addValueQuery', 20, {}, ),
149
- criteriaShow: true,
150
- orgCondtionStr: '',
151
- // 下拉框
152
- meterbrands: [],
153
- pricenames: [],
154
- prices: [],
155
- //合计数据
156
- defaultfield: [],
157
- sumsmodel: {},
158
- f_filialeid: this.$login.f.f_orgid,
159
- selectfields:[],
160
- istrueoptions:[{label:"全部",value:""},{label:"是",value:"0"},{label:"否",value:"1"}],
161
- backstates:[{label: '全部', value: ''},{label: '有', value: '有'},{label: '无', value: '无'}],
162
- }
163
- },
164
- props:['selectorg'],
165
- ready() {
166
- if(this.selectorg != null && this.selectorg != null != ''){
167
- this.initres.org=[]
168
- this.initres.org.push(this.selectorg);
169
- }
170
- readySomething(this).then(() => {
171
- this.$emit('ready')
172
- }).catch((error) => {
173
- this.$emit('error', error)
174
- })
175
- for(var item in exportConfig.valueuserinfoConfig){
176
- this.selectfields.push(item)
177
- }
178
- },
179
- methods: {
180
- getorg (obj) {
181
- if(obj.resids.length>0){
182
- this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
183
- }
184
- else{
185
- this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
186
- }
187
- },
188
- search(){
189
- this.$refs.paged.$refs.cri.search()
190
- },
191
- cancel() {
192
- this.show = false
193
- },
194
- showmsg(obj){
195
- this.rowdata=obj
196
- this.show=true
197
- },
198
- userTypeChange () {
199
- this.gasproperties=[]
200
- if(this.$refs.paged.$refs.cri.model !==null) {
201
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
202
-
203
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
204
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
205
- // this.gasproperties.push({label: '全部', value: ''})
206
- }
207
- else{
208
- this.gasproperties =[{label: '全部', value: ''}]
209
- }
210
- },
211
-
212
- selfSearch(args) {
213
- this.model.params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid
214
- this.model.search(args.condition, args.model)
215
- },
216
- clear() {
217
- // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
218
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
219
- this.$refs.paged.$refs.cri.model[key] = []
220
- });
221
- this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
222
- this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
223
-
224
- },
225
- dealmsg(val) {
226
- val.model = this.model.model
227
- this.$dispatch('deal-msg', val)
228
- },
229
- show() {
230
- this.criteriaShow = true
231
- },
232
- hidden() {
233
- this.criteriaShow = !this.criteriaShow
234
- },
235
- getRes(condition,obj) {
236
- this.orgCondtionStr = condition
237
- this.f_orgid = obj.resids
238
- },
239
- stamp() {
240
- this.all = false
241
- //默认选择要打印的列
242
- this.modelval = defaultPrint.config
243
- this.fields = this.getfield
244
- console.log('所有打印字段', this.fields)
245
- this.printshow = true
246
- this.put()
247
- },
248
- put() {
249
- // 对Modelval进行排序
250
- this.sortModelval()
251
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
252
- for (let key of this.modelval) {
253
- this.thead += '<th>' + this.fields[key] + '</th>'
254
- }
255
- this.thead += '</tr>'
256
- },
257
- print() {
258
- this.$refs.print.PrintAsFile()
259
- this.printshow = false
260
- },
261
- close() {
262
- this.printshow = false
263
- this.all = false
264
- },
265
- // 对选择的列进行排序
266
- sortModelval() {
267
- let sortModel = []
268
- Object.keys(this.fields).forEach((key) => {
269
- if (this.modelval.includes(key)) {
270
- sortModel.push(key)
271
- }
272
- })
273
- this.modelval = sortModel
274
- console.log('选择的打印的字段', this.modelval)
275
- },
276
-
277
- },
278
- watch: {
279
- 'model'(val) {
280
- console.log(val, "12222222222222222222")
281
- },
282
- 'filialeCodeStr'(val) {
283
- let res = val.match(/'(.*?)'/)
284
- console.log('正则提取:',res && res[1])
285
- if (res) {
286
- this.f_filialeid = res[1]
287
- }
288
- }
289
- },
290
- computed: {
291
- getCondition() {
292
- let params={}
293
- params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid;
294
- params.condition = `${this.$refs.paged.$refs.cri.condition}`;
295
- return params;
296
- },
297
- valuetypeoptions(){
298
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
299
- },
300
- stateoptions(){
301
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
302
- },
303
- usertypes() {
304
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
305
- },
306
- pricetypeoptions(){
307
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气价类型')]
308
- },
309
- getfield() {
310
- return exportConfig.valueuserinfoConfig
311
- },
312
-
313
- }
314
- }
315
- </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 = '{}'"
18
+ placeholder="客户编号">
19
+ </div>
20
+
21
+ <div class="col-sm-2 form-group">
22
+ <label class="font_normal_body">客户名称</label>
23
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
24
+ condition="f_user_name = '{}'"
25
+ placeholder="客户名称">
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">增值类型</label>
29
+ <v-select :value.sync="model.f_field_name"
30
+ v-model="model.f_field_name"
31
+ :options='$parent.$parent.valuetypeoptions' placeholder='请选择'
32
+ condition="itemname = '{}'"
33
+ close-on-select></v-select>
34
+ </div>
35
+
36
+ <div class="span" style="float:right;">
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
+
40
+ <export-excel-plus :data="$parent.$parent.getCondition"
41
+ :defaultselect="$parent.$parent.selectfields"
42
+ :field="$parent.$parent.getfield"
43
+ :exportprogress="true"
44
+ sqlurl="rs/logic/addValueQuery"
45
+ sql-name='getValueaddInfo'
46
+ template-name="用户增值业务汇总信息" :choose-col="true"></export-excel-plus>
47
+ <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>
48
+
49
+ </div>
50
+ </div>
51
+ <div class="row" v-show="$parent.$parent.criteriaShow">
52
+ <div class="col-sm-2 form-group">
53
+ <label class="font_normal_body">小区名称</label>
54
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
55
+ condition="f_residential_area = '{}'"
56
+ placeholder="小区名称">
57
+ </div>
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">客户类型</label>
60
+ <v-select :value.sync="model.f_user_type"
61
+
62
+ condition="f_user_type = '{}'"
63
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
64
+ close-on-select></v-select>
65
+ </div>
66
+ <!-- <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">用气性质</label>
68
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
69
+ condition="f_gasproperties = '{}'"
70
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
71
+ close-on-select></v-select>
72
+ </div> -->
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">有无增值</label>
75
+ <v-select :value.sync="model.f_open_state"
76
+ v-model="model.f_open_state"
77
+ :options='$parent.$parent.backstates' placeholder='请选择'
78
+ condition="ishas = '{}'"
79
+ close-on-select></v-select>
80
+ </div>
81
+
82
+ </div>
83
+ </div>
84
+ </criteria>
85
+
86
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
87
+ <template partial='head'>
88
+ <tr>
89
+ <th>
90
+ <nobr>增值业务名称</nobr>
91
+ </th>
92
+ <th>
93
+ <nobr>户数</nobr>
94
+ </th>
95
+ </tr>
96
+ </template>
97
+ <template partial='body'>
98
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
99
+ <nobr>{{row.itemname}}</nobr>
100
+ </td>
101
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
102
+ <nobr>{{row.num}}</nobr>
103
+ </td>
104
+
105
+ </template>
106
+ <template partial='foot'></template>
107
+ </data-grid>
108
+ </criteria-paged>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </template>
113
+
114
+ <script>
115
+ import {PagedList} from 'vue-client'
116
+ import exportConfig from '../sale/config/exportConfig'
117
+ import defaultPrint from "../sale/config/DefaultPrint";
118
+ import plugin from "system-clients/src/plugins/GetLoginInfoService";
119
+
120
+ let readySomething = async function (self) {
121
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
122
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
123
+ // self.$refs.paged.$refs.cri.search()
124
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
125
+ await self.$MagLoadParams.loadParam()
126
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
127
+ }
128
+ export default {
129
+ title: '增值业务汇总查询',
130
+ data() {
131
+ return {
132
+ org:[this.$login.f.orgid],
133
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
134
+ config: {
135
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
136
+ },
137
+ //f_price_name:[],
138
+ gasproperties:[],
139
+ showinfo: false,
140
+ data: {},
141
+ show:false,
142
+ rowdata:{},
143
+ initres: {
144
+ org:[this.$login.f.orgid],
145
+ dep:[],
146
+ user:[],
147
+ },
148
+ model: new PagedList('rs/sql/addValueQuery', 20, {}, ),
149
+ criteriaShow: true,
150
+ orgCondtionStr: '',
151
+ // 下拉框
152
+ meterbrands: [],
153
+ pricenames: [],
154
+ prices: [],
155
+ //合计数据
156
+ defaultfield: [],
157
+ sumsmodel: {},
158
+ f_filialeid: this.$login.f.f_orgid,
159
+ selectfields:[],
160
+ istrueoptions:[{label:"全部",value:""},{label:"是",value:"0"},{label:"否",value:"1"}],
161
+ backstates:[{label: '全部', value: ''},{label: '有', value: '有'},{label: '无', value: '无'}],
162
+ }
163
+ },
164
+ props:['selectorg'],
165
+ ready() {
166
+ if(this.selectorg != null && this.selectorg != null != ''){
167
+ this.initres.org=[]
168
+ this.initres.org.push(this.selectorg);
169
+ }
170
+ readySomething(this).then(() => {
171
+ this.$emit('ready')
172
+ }).catch((error) => {
173
+ this.$emit('error', error)
174
+ })
175
+ for(var item in exportConfig.valueuserinfoConfig){
176
+ this.selectfields.push(item)
177
+ }
178
+ },
179
+ methods: {
180
+ getorg (obj) {
181
+ if(obj.resids.length>0){
182
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
183
+ }
184
+ else{
185
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
186
+ }
187
+ },
188
+ search(){
189
+ this.$refs.paged.$refs.cri.search()
190
+ },
191
+ cancel() {
192
+ this.show = false
193
+ },
194
+ showmsg(obj){
195
+ this.rowdata=obj
196
+ this.show=true
197
+ },
198
+ userTypeChange () {
199
+ this.gasproperties=[]
200
+ if(this.$refs.paged.$refs.cri.model !==null) {
201
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
202
+
203
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
204
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
205
+ // this.gasproperties.push({label: '全部', value: ''})
206
+ }
207
+ else{
208
+ this.gasproperties =[{label: '全部', value: ''}]
209
+ }
210
+ },
211
+
212
+ selfSearch(args) {
213
+ this.model.params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid
214
+ this.model.search(args.condition, args.model)
215
+ },
216
+ clear() {
217
+ // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
218
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
219
+ this.$refs.paged.$refs.cri.model[key] = []
220
+ });
221
+ this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
222
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
223
+
224
+ },
225
+ dealmsg(val) {
226
+ val.model = this.model.model
227
+ this.$dispatch('deal-msg', val)
228
+ },
229
+ show() {
230
+ this.criteriaShow = true
231
+ },
232
+ hidden() {
233
+ this.criteriaShow = !this.criteriaShow
234
+ },
235
+ getRes(condition,obj) {
236
+ this.orgCondtionStr = condition
237
+ this.f_orgid = obj.resids
238
+ },
239
+ stamp() {
240
+ this.all = false
241
+ //默认选择要打印的列
242
+ this.modelval = defaultPrint.config
243
+ this.fields = this.getfield
244
+ console.log('所有打印字段', this.fields)
245
+ this.printshow = true
246
+ this.put()
247
+ },
248
+ put() {
249
+ // 对Modelval进行排序
250
+ this.sortModelval()
251
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
252
+ for (let key of this.modelval) {
253
+ this.thead += '<th>' + this.fields[key] + '</th>'
254
+ }
255
+ this.thead += '</tr>'
256
+ },
257
+ print() {
258
+ this.$refs.print.PrintAsFile()
259
+ this.printshow = false
260
+ },
261
+ close() {
262
+ this.printshow = false
263
+ this.all = false
264
+ },
265
+ // 对选择的列进行排序
266
+ sortModelval() {
267
+ let sortModel = []
268
+ Object.keys(this.fields).forEach((key) => {
269
+ if (this.modelval.includes(key)) {
270
+ sortModel.push(key)
271
+ }
272
+ })
273
+ this.modelval = sortModel
274
+ console.log('选择的打印的字段', this.modelval)
275
+ },
276
+
277
+ },
278
+ watch: {
279
+ 'model'(val) {
280
+ console.log(val, "12222222222222222222")
281
+ },
282
+ 'filialeCodeStr'(val) {
283
+ let res = val.match(/'(.*?)'/)
284
+ console.log('正则提取:',res && res[1])
285
+ if (res) {
286
+ this.f_filialeid = res[1]
287
+ }
288
+ }
289
+ },
290
+ computed: {
291
+ getCondition() {
292
+ let params={}
293
+ params.f_filialeid = this.f_filialeid == null || this.f_filialeid=='' ? this.$login.f.orgid: this.f_filialeid;
294
+ params.condition = `${this.$refs.paged.$refs.cri.condition}`;
295
+ return params;
296
+ },
297
+ valuetypeoptions(){
298
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
299
+ },
300
+ stateoptions(){
301
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
302
+ },
303
+ usertypes() {
304
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
305
+ },
306
+ pricetypeoptions(){
307
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气价类型')]
308
+ },
309
+ getfield() {
310
+ return exportConfig.valueuserinfoConfig
311
+ },
312
+
313
+ }
314
+ }
315
+ </script>