manage-client 3.2.52-aode → 3.2.53-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 +627 -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 -507
  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,371 +1,371 @@
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 for="f_date" class="font_normal_body">查询时间</label>
29
- <datepicker placeholder="查询时间" style="width:60%"
30
- v-model="model.f_date"
31
- :value.sync="model.f_date"
32
- :format="'yyyy'"
33
- :show-reset-button="true"
34
- :select-year="true">
35
- </datepicker>
36
- </div>
37
- <div class="col-sm-2 form-group">
38
- <label class="font_normal_body">客户类型</label>
39
- <v-select :value.sync="model.f_user_type"
40
- @change="$parent.$parent.userTypeChange()"
41
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
42
- condition="f_user_type = '{}'"
43
- close-on-select></v-select>
44
- </div>
45
- <div class="span" style="float:right;">
46
- <button class="button_search button_spacing" @click="search()">查询</button>
47
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
- <export-excel-plus :data="$parent.$parent.getCondition"
49
- :defaultselect="$parent.$parent.selectfields"
50
- :field="$parent.$parent.getfield"
51
- :exportprogress="true"
52
- sqlurl="rs/logic/exportfileplus"
53
- sql-name='getValueaddInfo'
54
- template-name="续保用户增值业务信息" :choose-col="true"></export-excel-plus>
55
- <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>
56
- </div>
57
- </div>
58
- <div class="row" v-show="$parent.$parent.criteriaShow">
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body">用气性质</label>
61
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
62
- :options='$parent.$parent.gasproperties' placeholder='请选择'
63
- condition="f_gasproperties = '{}'"
64
- close-on-select></v-select>
65
- </div>
66
- <div class="col-sm-2 form-group">
67
- <label for="yearenddate_s" class="font_normal_body">购买时间</label>
68
- <datepicker placeholder="开始时间" style="width:60%"
69
- v-model="model.yearenddate_s"
70
- :value.sync="model.yearenddate_s"
71
- :format="'yyyy-MM-dd 00:00:00'"
72
- condition="yearenddatesearch >= '{}'"
73
- :show-reset-button="true">
74
- </datepicker>
75
- </div>
76
- <div class="col-sm-2 form-group">
77
- <label for="yearenddate_d" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
78
- <datepicker placeholder="结束时间" style="width:60%"
79
- v-model="model.yearenddate_d"
80
- :value.sync="model.yearenddate_d"
81
- :format="'yyyy-MM-dd 00:00:00'"
82
- condition="yearenddatesearch <= '{}'"
83
- :show-reset-button="true">
84
- </datepicker>
85
- </div>
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">增值服务类型</label>
88
- <v-select :value.sync="model.f_field_name"
89
- v-model="model.f_field_name"
90
- :options='$parent.$parent.valuetypeoptions' placeholder='请选择'
91
- condition="f_value_name = '{}'"
92
- close-on-select></v-select>
93
- </div>
94
- </div>
95
- </div>
96
- </criteria>
97
-
98
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
99
- <template partial='head'>
100
- <tr>
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
- <th>
117
- <nobr>增值服务类型</nobr>
118
- </th>
119
- <th>
120
- <nobr>上次购买时间</nobr>
121
- </th>
122
- <th>
123
- <nobr>本次购买时间</nobr>
124
- </th>
125
- <th>
126
- <nobr>所属公司</nobr>
127
- </th>
128
- </tr>
129
- </template>
130
- <template partial='body'>
131
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
132
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
133
- </td>
134
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
135
- <nobr>{{row.f_user_name}}</nobr>
136
- </td>
137
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
138
- <nobr>{{row.f_user_type}}</nobr>
139
- </td>
140
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
141
- <nobr>{{row.f_gasproperties}}</nobr>
142
- </td>
143
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
144
- <nobr>{{row.f_meter_classify}}</nobr>
145
- </td>
146
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
147
- <nobr>{{row.f_value_name}}</nobr>
148
- </td>
149
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
150
- <nobr>{{row.yearstartdate}}</nobr>
151
- </td>
152
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
153
- <nobr>{{row.yearenddate}}</nobr>
154
- </td>
155
- <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
156
- <nobr>{{row.f_orgname}}</nobr>
157
- </td>
158
- </template>
159
- <template partial='foot'></template>
160
- </data-grid>
161
- </criteria-paged>
162
- </div>
163
- <div v-if="show">
164
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
165
- </div>
166
- </div>
167
- </div>
168
- </template>
169
-
170
- <script>
171
- import {PagedList} from 'vue-client'
172
- import exportConfig from '../sale/config/exportConfig'
173
- import defaultPrint from "../sale/config/DefaultPrint";
174
- import plugin from "system-clients/src/plugins/GetLoginInfoService";
175
-
176
- let readySomething = async function (self) {
177
- self.$refs.paged.$refs.cri.model.f_date = new Date().getFullYear();
178
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
179
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
180
- }
181
- export default {
182
- title: '增值业务查询',
183
-
184
- data() {
185
- return {
186
- org:[this.$login.f.orgid],
187
- filialeCodeStr: `and f_filialeid = ${this.$login.f.orgid}`,
188
- config: {
189
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
190
- },
191
- //f_price_name:[],
192
- gasproperties:[],
193
- showinfo: false,
194
- data: {},
195
- show:false,
196
- rowdata:{},
197
- initres: {
198
- org:[this.$login.f.orgid],
199
- dep:[],
200
- user:[],
201
- },
202
- model: new PagedList('rs/sql/renewalgetValueaddInfo', 20, {}, ),
203
- criteriaShow: true,
204
- orgCondtionStr: '',
205
- //合计数据
206
- defaultfield: [],
207
- sumsmodel: {},
208
- f_filialeid: this.$login.f.f_orgid,
209
- selectfields:[],
210
- }
211
- },
212
- props:['selectorg'],
213
- ready() {
214
- if(this.selectorg != null && this.selectorg != null != ''){
215
- this.initres.org=[]
216
- this.initres.org.push(this.selectorg);
217
- }
218
- readySomething(this).then(() => {
219
- this.$emit('ready')
220
- }).catch((error) => {
221
- this.$emit('error', error)
222
- })
223
- for(var item in exportConfig.renewalvalueuserinfoConfig){
224
- this.selectfields.push(item)
225
- }
226
- },
227
- methods: {
228
- getorg (obj) {
229
- if(obj.resids.length>0){
230
- this.filialeCodeStr =" and f_filialeid in " + plugin.convertToIn(obj.resids)
231
- }
232
- else{
233
- this.filialeCodeStr= " and f_filialeid = " + this.$login.f.orgid
234
- }
235
- },
236
- search(){
237
- this.$refs.paged.$refs.cri.search()
238
- },
239
- cancel() {
240
- this.show = false
241
- },
242
- showmsg(obj){
243
- this.rowdata=obj
244
- this.show=true
245
- },
246
- userTypeChange () {
247
- this.gasproperties=[]
248
- if(this.$refs.paged.$refs.cri.model !==null) {
249
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
250
-
251
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
252
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
253
- // this.gasproperties.push({label: '全部', value: ''})
254
- }
255
- else{
256
- this.gasproperties =[{label: '全部', value: ''}]
257
- }
258
- },
259
-
260
- selfSearch(args) {
261
- args.condition = args.condition+ ` ${this.filialeCodeStr}`
262
- this.model.params.f_start_year = this.$refs.paged.$refs.cri.model.f_date ==null|| this.$refs.paged.$refs.cri.model.f_date==''?'': this.$refs.paged.$refs.cri.model.f_date
263
- if(this.model.params.f_start_year && this.model.params.f_start_year!=''){
264
- this.model.params.f_end_year = `${parseInt(this.model.params.f_start_year)-1}`
265
- } else{
266
- this.$showAlert('请选择查询时间!', 'warning', 2000);
267
- return;
268
- }
269
- this.model.search(args.condition, args.model)
270
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
271
- },
272
- clear() {
273
- // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
274
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
275
- this.$refs.paged.$refs.cri.model[key] = []
276
- });
277
- this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
278
- this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
279
-
280
- },
281
- dealmsg(val) {
282
- val.model = this.model.model
283
- this.$dispatch('deal-msg', val)
284
- },
285
- show() {
286
- this.criteriaShow = true
287
- },
288
- hidden() {
289
- this.criteriaShow = !this.criteriaShow
290
- },
291
- getRes(condition,obj) {
292
- this.orgCondtionStr = condition
293
- this.f_orgid = obj.resids
294
- },
295
- stamp() {
296
- this.all = false
297
- //默认选择要打印的列
298
- this.modelval = defaultPrint.config
299
- this.fields = this.getfield
300
- console.log('所有打印字段', this.fields)
301
- this.printshow = true
302
- this.put()
303
- },
304
- put() {
305
- // 对Modelval进行排序
306
- this.sortModelval()
307
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
308
- for (let key of this.modelval) {
309
- this.thead += '<th>' + this.fields[key] + '</th>'
310
- }
311
- this.thead += '</tr>'
312
- },
313
- print() {
314
- this.$refs.print.PrintAsFile()
315
- this.printshow = false
316
- },
317
- close() {
318
- this.printshow = false
319
- this.all = false
320
- },
321
- // 对选择的列进行排序
322
- sortModelval() {
323
- let sortModel = []
324
- Object.keys(this.fields).forEach((key) => {
325
- if (this.modelval.includes(key)) {
326
- sortModel.push(key)
327
- }
328
- })
329
- this.modelval = sortModel
330
- console.log('选择的打印的字段', this.modelval)
331
- },
332
-
333
- },
334
- watch: {
335
- 'model'(val) {
336
- console.log(val, "12222222222222222222")
337
- },
338
- 'filialeCodeStr'(val) {
339
- let res = val.match(/'(.*?)'/)
340
- console.log('正则提取:',res && res[1])
341
- if (res) {
342
- this.f_filialeid = res[1]
343
- }
344
- }
345
- },
346
- computed: {
347
- getCondition() {
348
- let params={}
349
- params.f_start_year = this.$refs.paged.$refs.cri.model.f_date ==null|| this.$refs.paged.$refs.cri.model.f_date==''?'': this.$refs.paged.$refs.cri.model.f_date
350
- if(this.$refs.paged.$refs.cri.model.f_date && this.$refs.paged.$refs.cri.model.f_date!=''){
351
- params.f_end_year = `${parseInt(this.$refs.paged.$refs.cri.model.f_date)-1}`
352
- }
353
- params.condition = `${this.$refs.paged.$refs.cri.condition}`;
354
- return params;
355
- },
356
- valuetypeoptions(){
357
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
358
- },
359
- stateoptions(){
360
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
361
- },
362
- usertypes() {
363
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
364
- },
365
- getfield() {
366
- return exportConfig.renewalvalueuserinfoConfig
367
- },
368
-
369
- }
370
- }
371
- </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 for="f_date" class="font_normal_body">查询时间</label>
29
+ <datepicker placeholder="查询时间" style="width:60%"
30
+ v-model="model.f_date"
31
+ :value.sync="model.f_date"
32
+ :format="'yyyy'"
33
+ :show-reset-button="true"
34
+ :select-year="true">
35
+ </datepicker>
36
+ </div>
37
+ <div class="col-sm-2 form-group">
38
+ <label class="font_normal_body">客户类型</label>
39
+ <v-select :value.sync="model.f_user_type"
40
+ @change="$parent.$parent.userTypeChange()"
41
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
42
+ condition="f_user_type = '{}'"
43
+ close-on-select></v-select>
44
+ </div>
45
+ <div class="span" style="float:right;">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
+ <export-excel-plus :data="$parent.$parent.getCondition"
49
+ :defaultselect="$parent.$parent.selectfields"
50
+ :field="$parent.$parent.getfield"
51
+ :exportprogress="true"
52
+ sqlurl="rs/logic/exportfileplus"
53
+ sql-name='getValueaddInfo'
54
+ template-name="续保用户增值业务信息" :choose-col="true"></export-excel-plus>
55
+ <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>
56
+ </div>
57
+ </div>
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">用气性质</label>
61
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
62
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
63
+ condition="f_gasproperties = '{}'"
64
+ close-on-select></v-select>
65
+ </div>
66
+ <div class="col-sm-2 form-group">
67
+ <label for="yearenddate_s" class="font_normal_body">购买时间</label>
68
+ <datepicker placeholder="开始时间" style="width:60%"
69
+ v-model="model.yearenddate_s"
70
+ :value.sync="model.yearenddate_s"
71
+ :format="'yyyy-MM-dd 00:00:00'"
72
+ condition="yearenddatesearch >= '{}'"
73
+ :show-reset-button="true">
74
+ </datepicker>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label for="yearenddate_d" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
78
+ <datepicker placeholder="结束时间" style="width:60%"
79
+ v-model="model.yearenddate_d"
80
+ :value.sync="model.yearenddate_d"
81
+ :format="'yyyy-MM-dd 00:00:00'"
82
+ condition="yearenddatesearch <= '{}'"
83
+ :show-reset-button="true">
84
+ </datepicker>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">增值服务类型</label>
88
+ <v-select :value.sync="model.f_field_name"
89
+ v-model="model.f_field_name"
90
+ :options='$parent.$parent.valuetypeoptions' placeholder='请选择'
91
+ condition="f_value_name = '{}'"
92
+ close-on-select></v-select>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </criteria>
97
+
98
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
99
+ <template partial='head'>
100
+ <tr>
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
+ <th>
117
+ <nobr>增值服务类型</nobr>
118
+ </th>
119
+ <th>
120
+ <nobr>上次购买时间</nobr>
121
+ </th>
122
+ <th>
123
+ <nobr>本次购买时间</nobr>
124
+ </th>
125
+ <th>
126
+ <nobr>所属公司</nobr>
127
+ </th>
128
+ </tr>
129
+ </template>
130
+ <template partial='body'>
131
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
132
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
133
+ </td>
134
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
135
+ <nobr>{{row.f_user_name}}</nobr>
136
+ </td>
137
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
138
+ <nobr>{{row.f_user_type}}</nobr>
139
+ </td>
140
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
141
+ <nobr>{{row.f_gasproperties}}</nobr>
142
+ </td>
143
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
144
+ <nobr>{{row.f_meter_classify}}</nobr>
145
+ </td>
146
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
147
+ <nobr>{{row.f_value_name}}</nobr>
148
+ </td>
149
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
150
+ <nobr>{{row.yearstartdate}}</nobr>
151
+ </td>
152
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
153
+ <nobr>{{row.yearenddate}}</nobr>
154
+ </td>
155
+ <td :style="{background:(row.istrue=='1'? '#f1dec2':'')}" style="text-align: center;">
156
+ <nobr>{{row.f_orgname}}</nobr>
157
+ </td>
158
+ </template>
159
+ <template partial='foot'></template>
160
+ </data-grid>
161
+ </criteria-paged>
162
+ </div>
163
+ <div v-if="show">
164
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ </template>
169
+
170
+ <script>
171
+ import {PagedList} from 'vue-client'
172
+ import exportConfig from '../sale/config/exportConfig'
173
+ import defaultPrint from "../sale/config/DefaultPrint";
174
+ import plugin from "system-clients/src/plugins/GetLoginInfoService";
175
+
176
+ let readySomething = async function (self) {
177
+ self.$refs.paged.$refs.cri.model.f_date = new Date().getFullYear();
178
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
179
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
180
+ }
181
+ export default {
182
+ title: '增值业务查询',
183
+
184
+ data() {
185
+ return {
186
+ org:[this.$login.f.orgid],
187
+ filialeCodeStr: `and f_filialeid = ${this.$login.f.orgid}`,
188
+ config: {
189
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
190
+ },
191
+ //f_price_name:[],
192
+ gasproperties:[],
193
+ showinfo: false,
194
+ data: {},
195
+ show:false,
196
+ rowdata:{},
197
+ initres: {
198
+ org:[this.$login.f.orgid],
199
+ dep:[],
200
+ user:[],
201
+ },
202
+ model: new PagedList('rs/sql/renewalgetValueaddInfo', 20, {}, ),
203
+ criteriaShow: true,
204
+ orgCondtionStr: '',
205
+ //合计数据
206
+ defaultfield: [],
207
+ sumsmodel: {},
208
+ f_filialeid: this.$login.f.f_orgid,
209
+ selectfields:[],
210
+ }
211
+ },
212
+ props:['selectorg'],
213
+ ready() {
214
+ if(this.selectorg != null && this.selectorg != null != ''){
215
+ this.initres.org=[]
216
+ this.initres.org.push(this.selectorg);
217
+ }
218
+ readySomething(this).then(() => {
219
+ this.$emit('ready')
220
+ }).catch((error) => {
221
+ this.$emit('error', error)
222
+ })
223
+ for(var item in exportConfig.renewalvalueuserinfoConfig){
224
+ this.selectfields.push(item)
225
+ }
226
+ },
227
+ methods: {
228
+ getorg (obj) {
229
+ if(obj.resids.length>0){
230
+ this.filialeCodeStr =" and f_filialeid in " + plugin.convertToIn(obj.resids)
231
+ }
232
+ else{
233
+ this.filialeCodeStr= " and f_filialeid = " + this.$login.f.orgid
234
+ }
235
+ },
236
+ search(){
237
+ this.$refs.paged.$refs.cri.search()
238
+ },
239
+ cancel() {
240
+ this.show = false
241
+ },
242
+ showmsg(obj){
243
+ this.rowdata=obj
244
+ this.show=true
245
+ },
246
+ userTypeChange () {
247
+ this.gasproperties=[]
248
+ if(this.$refs.paged.$refs.cri.model !==null) {
249
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
250
+
251
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
252
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
253
+ // this.gasproperties.push({label: '全部', value: ''})
254
+ }
255
+ else{
256
+ this.gasproperties =[{label: '全部', value: ''}]
257
+ }
258
+ },
259
+
260
+ selfSearch(args) {
261
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
262
+ this.model.params.f_start_year = this.$refs.paged.$refs.cri.model.f_date ==null|| this.$refs.paged.$refs.cri.model.f_date==''?'': this.$refs.paged.$refs.cri.model.f_date
263
+ if(this.model.params.f_start_year && this.model.params.f_start_year!=''){
264
+ this.model.params.f_end_year = `${parseInt(this.model.params.f_start_year)-1}`
265
+ } else{
266
+ this.$showAlert('请选择查询时间!', 'warning', 2000);
267
+ return;
268
+ }
269
+ this.model.search(args.condition, args.model)
270
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
271
+ },
272
+ clear() {
273
+ // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
274
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
275
+ this.$refs.paged.$refs.cri.model[key] = []
276
+ });
277
+ this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
278
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
279
+
280
+ },
281
+ dealmsg(val) {
282
+ val.model = this.model.model
283
+ this.$dispatch('deal-msg', val)
284
+ },
285
+ show() {
286
+ this.criteriaShow = true
287
+ },
288
+ hidden() {
289
+ this.criteriaShow = !this.criteriaShow
290
+ },
291
+ getRes(condition,obj) {
292
+ this.orgCondtionStr = condition
293
+ this.f_orgid = obj.resids
294
+ },
295
+ stamp() {
296
+ this.all = false
297
+ //默认选择要打印的列
298
+ this.modelval = defaultPrint.config
299
+ this.fields = this.getfield
300
+ console.log('所有打印字段', this.fields)
301
+ this.printshow = true
302
+ this.put()
303
+ },
304
+ put() {
305
+ // 对Modelval进行排序
306
+ this.sortModelval()
307
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
308
+ for (let key of this.modelval) {
309
+ this.thead += '<th>' + this.fields[key] + '</th>'
310
+ }
311
+ this.thead += '</tr>'
312
+ },
313
+ print() {
314
+ this.$refs.print.PrintAsFile()
315
+ this.printshow = false
316
+ },
317
+ close() {
318
+ this.printshow = false
319
+ this.all = false
320
+ },
321
+ // 对选择的列进行排序
322
+ sortModelval() {
323
+ let sortModel = []
324
+ Object.keys(this.fields).forEach((key) => {
325
+ if (this.modelval.includes(key)) {
326
+ sortModel.push(key)
327
+ }
328
+ })
329
+ this.modelval = sortModel
330
+ console.log('选择的打印的字段', this.modelval)
331
+ },
332
+
333
+ },
334
+ watch: {
335
+ 'model'(val) {
336
+ console.log(val, "12222222222222222222")
337
+ },
338
+ 'filialeCodeStr'(val) {
339
+ let res = val.match(/'(.*?)'/)
340
+ console.log('正则提取:',res && res[1])
341
+ if (res) {
342
+ this.f_filialeid = res[1]
343
+ }
344
+ }
345
+ },
346
+ computed: {
347
+ getCondition() {
348
+ let params={}
349
+ params.f_start_year = this.$refs.paged.$refs.cri.model.f_date ==null|| this.$refs.paged.$refs.cri.model.f_date==''?'': this.$refs.paged.$refs.cri.model.f_date
350
+ if(this.$refs.paged.$refs.cri.model.f_date && this.$refs.paged.$refs.cri.model.f_date!=''){
351
+ params.f_end_year = `${parseInt(this.$refs.paged.$refs.cri.model.f_date)-1}`
352
+ }
353
+ params.condition = `${this.$refs.paged.$refs.cri.condition}`;
354
+ return params;
355
+ },
356
+ valuetypeoptions(){
357
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务类型')]
358
+ },
359
+ stateoptions(){
360
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('增值服务状态')]
361
+ },
362
+ usertypes() {
363
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
364
+ },
365
+ getfield() {
366
+ return exportConfig.renewalvalueuserinfoConfig
367
+ },
368
+
369
+ }
370
+ }
371
+ </script>