manage-client 3.2.81-aode → 3.2.82-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.81-aode",
3
+ "version": "3.2.82-aode",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,512 +1,512 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex" v-if="!showinfo">
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">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司</label>
12
- <res-select :initresid="$parent.$parent.orgid"
13
- style="width:60%"
14
- @res-select="$parent.$parent.getRes"
15
- restype='organization'>
16
- </res-select>
17
- </div>
18
- <div class="col-sm-2 form-group">
19
- <label class="font_normal_body">客户编号</label>
20
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
21
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
22
- </div>
23
- <div class="col-sm-2 form-group">
24
- <label for="startDate" class="font_normal_body">开始日期</label>
25
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
26
- v-model="model.startDate"
27
- :value.sync="model.startDate"
28
- :format="'yyyy-MM-dd'"
29
- :show-reset-button="true"
30
- condition="f_open_date >= '{} 00:00:00'">
31
- </datepicker>
32
- </div>
33
- <div class="col-sm-2 form-group">
34
- <label for="endDate" class="font_normal_body">结束日期</label>
35
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
36
- v-model="model.endDate"
37
- :value.sync="model.endDate"
38
- :format="'yyyy-MM-dd'"
39
- :show-reset-button="true"
40
- condition="f_open_date <= '{} 23:59:59'">
41
- </datepicker>
42
- </div>
43
-
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
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
48
-
49
- <export-excel-plus :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
50
- :field="$parent.$parent.getfield"
51
- sqlurl="rs/logic/exportfileplus" sql-name="newAccountQuery" :template-name="$parent.$parent.getName"
52
- :choose-col="true"></export-excel-plus>
53
-
54
- <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>
55
- </div>
56
- </div>
57
- <div class="row" v-show="$parent.$parent.criteriaShow">
58
- <div class="col-sm-2 form-group">
59
- <label class="font_normal_body">客户名称</label>
60
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
61
- condition="f_user_name like '%{}%'" placeholder="客户名称">
62
- </div>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">用气性质</label>
65
- <v-select :value.sync="model.f_gasproperties" :multiple="true"
66
- v-model="model.f_gasproperties"
67
- :options='$parent.$parent.newuseroptiones' placeholder='请选择'
68
- condition=" f_gasproperties in {}"
69
- close-on-select></v-select>
70
- </div>
71
- <div class="col-sm-2">
72
- <label class="font_normal_body">气表分类</label>
73
- <v-select :value.sync="model.f_meter_classify"
74
- v-model="model.f_meter_classify"
75
- :options='$parent.$parent.metertypes' placeholder='请选择'
76
- condition="f_meter_classify = '{}'"
77
- close-on-select></v-select>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">气表品牌</label>
81
- <v-select :value.sync="model.f_meter_brand"
82
- v-model="model.f_meter_brand"
83
- :options='$parent.$parent.meterbrands' placeholder='请选择'
84
- condition="f_meter_brand = '{}'"
85
- close-on-select></v-select>
86
- </div>
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">用户状态</label>
89
- <v-select :value.sync="model.f_user_state"
90
- v-model="model.f_user_state"
91
- :options='$parent.$parent.getusertypes' placeholder='请选择'
92
- condition="f_user_state = '{}'"
93
- close-on-select></v-select>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">表具状态</label>
97
- <v-select :value.sync="model.f_table_state"
98
- v-model="model.f_table_state"
99
- :options='$parent.$parent.gettabletypes' placeholder='请选择'
100
- condition="f_table_state = '{}'"
101
- close-on-select></v-select>
102
- </div>
103
- <div class="col-sm-2 form-group">
104
- <label class="font_normal_body">是否黑名单</label>
105
- <v-select :value.sync="model.f_user_back"
106
- v-model="model.f_user_back"
107
- :options='$parent.$parent.backstates' placeholder='请选择'
108
- condition="f_user_back = '{}'"
109
- close-on-select></v-select>
110
- </div>
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">是否置换</label>
113
- <v-select :value.sync="model.f_substite"
114
- v-model="model.f_substite"
115
- :options='$parent.$parent.backstates' placeholder='请选择'
116
- condition="f_substite = '{}'"
117
- close-on-select></v-select>
118
- </div>
119
- <div class="col-sm-2 form-group">
120
- <label class="font_normal_body">是否已缴费</label>
121
- <v-select :value.sync="model.sellnum"
122
- v-model="model.sellnum"
123
- :options='$parent.$parent.sellnumoptions' placeholder='请选择'
124
- condition=" {} "
125
- close-on-select></v-select>
126
- </div>
127
- <div class="col-sm-4 form-group">
128
- <label class="font_normal_body">客户地址</label>
129
- <input type="text" style="width:80%" class="input_search" v-model="model.f_address"
130
- condition="f_address like '%{}%' " placeholder="客户地址">
131
- </div>
132
- </div>
133
-
134
- </div>
135
- </criteria>
136
-
137
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
138
- <template partial='head'>
139
- <tr>
140
- <th>
141
- <nobr>客户编号</nobr>
142
- </th>
143
- <th>
144
- <nobr>客户名称</nobr>
145
- </th>
146
- <th>
147
- <nobr>用户状态</nobr>
148
- </th>
149
- <th>
150
- <nobr>表具状态</nobr>
151
- </th>
152
- <th>
153
- <nobr>客户地址</nobr>
154
- </th>
155
- <th>
156
- <nobr>客户电话</nobr>
157
- </th>
158
- <th>
159
- <nobr>身份证号</nobr>
160
- </th>
161
- <th>
162
- <nobr>气价名称</nobr>
163
- </th>
164
- <th>
165
- <nobr>开户时间</nobr>
166
- </th>
167
- <th>
168
- <nobr>开户人</nobr>
169
- </th>
170
- <th>
171
- <nobr>表号</nobr>
172
- </th>
173
- <th>
174
- <nobr>置换员</nobr>
175
- </th>
176
- <th>
177
- <nobr>当前表通气时间</nobr>
178
- </th>
179
- <th>
180
- <nobr>用气性质</nobr>
181
- </th>
182
- <th>
183
- <nobr>累购气量</nobr>
184
- </th>
185
- <th>
186
- <nobr>气表类型</nobr>
187
- </th>
188
- <th>
189
- <nobr>气表品牌</nobr>
190
- </th>
191
- <th>
192
- <nobr>左右表</nobr>
193
- </th>
194
- <th>
195
- <nobr>是否有壁挂炉</nobr>
196
- </th>
197
- <th>
198
- <nobr>是否有热水器</nobr>
199
- </th>
200
- <th>
201
- <nobr>是否黑名单</nobr>
202
- </th>
203
- <th>
204
- <nobr>是否置换</nobr>
205
- </th>
206
- <th>
207
- <nobr>最后一次安检时间</nobr>
208
- </th>
209
- <th>
210
- <nobr>销户人</nobr>
211
- </th>
212
- <th>
213
- <nobr>销户时间</nobr>
214
- </th>
215
- <th>
216
- <nobr>销户原因</nobr>
217
- </th>
218
- <th>
219
- <nobr>所属公司</nobr>
220
- </th>
221
- </tr>
222
- </template>
223
- <template partial='body'>
224
- <td style="text-align: center;">
225
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
226
- </td>
227
- <td style="text-align: center;">
228
- <nobr>{{row.f_user_name}}</nobr>
229
- </td>
230
- <td style="text-align: center;">
231
- <nobr>{{row.f_user_state}}</nobr>
232
- </td>
233
- <td style="text-align: center;">
234
- <nobr>{{row.f_table_state}}</nobr>
235
- </td>
236
- <td style="text-align: center;">
237
- <nobr>{{row.f_address}}</nobr>
238
- </td>
239
- <td style="text-align: center;">
240
- <nobr>{{row.f_user_phone}}</nobr>
241
- </td>
242
- <td style="text-align: center;">
243
- <nobr>{{row.f_idnumber}}</nobr>
244
- </td>
245
- <td style="text-align: center;">
246
- <nobr>{{row.f_price_name}}</nobr>
247
- </td>
248
- <td style="text-align: center;">
249
- <nobr>{{row.f_open_date}}</nobr>
250
- </td>
251
- <td style="text-align: center;">
252
- <nobr>{{row.f_createfile_person}}</nobr>
253
- </td>
254
- <td style="text-align: center;">
255
- <nobr>{{row.f_meternumber}}</nobr>
256
- </td>
257
- <td style="text-align: center;">
258
- <nobr>{{row.f_gas_person}}</nobr>
259
- </td>
260
- <td style="text-align: center;">
261
- <nobr>{{row.f_gas_date}}</nobr>
262
- </td>
263
- <td style="text-align: center;">
264
- <nobr>{{row.f_gasproperties}}</nobr>
265
- </td>
266
- <td style="text-align: center;">
267
- <nobr>{{row.f_total_gas}}</nobr>
268
- </td>
269
- <td style="text-align: center;">
270
- <nobr>{{row.f_meter_type}}</nobr>
271
- </td>
272
- <td style="text-align: center;">
273
- <nobr>{{row.f_meter_brand}}</nobr>
274
- </td>
275
- <td style="text-align: center;">
276
- <nobr>{{row.f_aroundmeter}}</nobr>
277
- </td>
278
- <td style="text-align: center;">
279
- <nobr>{{row.isbgl}}</nobr>
280
- </td>
281
- <td style="text-align: center;">
282
- <nobr>{{row.ishot}}</nobr>
283
- </td>
284
- <td style="text-align: center;">
285
- <nobr>{{row.f_user_back}}</nobr>
286
- </td>
287
- <td style="text-align: center;">
288
- <nobr>{{row.f_substite}}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>{{row.f_check_time}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{row.f_canceloperator}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_canceltime}}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{row.f_cancelreason}}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{row.f_orgname}}</nobr>
304
- </td>
305
- </template>
306
- <template partial='foot'></template>
307
- </data-grid>
308
- </criteria-paged>
309
- </div>
310
- <div v-if="showinfo">
311
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
312
- </div>
313
- </div>
314
- </div>
315
- </template>
316
-
317
- <script>
318
- import {PagedList} from 'vue-client'
319
- import defaultPrint from '../config/DefaultPrint'
320
- import exportConfig from '../config/exportConfig'
321
- import plugins from '../../../plugins/GetLoginInfoService'
322
- import * as Util from '../../../stores/Util'
323
- let readySomething = async function (self) {
324
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
325
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
326
- // await self.$refs.paged.$refs.cri.search()
327
- await self.$MagLoadParams.loadParam()
328
- self.initParams()
329
-
330
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
331
- }
332
- export default {
333
- title: '开户统计',
334
- data() {
335
- return {
336
- data: {},
337
- orgid:[this.$login.f.orgid],
338
- model: new PagedList('rs/sql/newAccountQuery', 20),
339
- f_orgid: this.$login.f.orgid,
340
- criteriaShow: false,
341
- modelval: [],
342
- printshow: false,
343
- all: false,
344
- fields: {},
345
- thead: '',
346
- tfoot: '',
347
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
348
- // orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
349
- meterbrands: [],
350
- showinfo:false,
351
- rowdata:{},
352
- //合计数据
353
- sumsmodel: {},
354
- newuseroptiones:[{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
355
- selectfields:[],
356
- metertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
357
- backstates:[{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
358
- gaspropertyTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
359
- getusertypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
360
- gettabletypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')],
361
- sellnumoptions:[{label: '全部', value: ''},{label:'是',value:'sellnum>0'},{label:'否',value:'sellnum=0'}]
362
- }
363
- },
364
- props:['selectorg'],
365
- ready() {
366
- if(this.selectorg != null && this.selectorg != null != ''){
367
- this.initres.org=[]
368
- this.initres.org.push(this.selectorg);
369
- }
370
- readySomething(this).then(() => {
371
- this.$emit('ready')
372
- }).catch((error) => {
373
- this.$emit('error', error)
374
- })
375
- for(var item in exportConfig.NewAccountConfig){
376
- this.selectfields.push(item)
377
- }
378
- },
379
- methods: {
380
- cancel() {
381
- this.showinfo = false
382
- },
383
- getRes (obj) {
384
- this.orgCondtionStr = plugins.convertToIn(obj)
385
- },
386
-
387
- selfSearch(args) {
388
- if (this.orgCondtionStr)
389
- args.condition = `${args.condition}` + 'and f_filialeid in ' + this.orgCondtionStr
390
- else
391
- args.condition = `${args.condition}` + 'and f_filialeid in ' + '(' + this.$login.f.orgid + ')'
392
- this.model.search(args.condition, args.model)
393
- },
394
- showmsg(obj){
395
- this.rowdata=obj
396
- this.showinfo=true
397
- },
398
- initParams() {
399
- // 初始化气表品牌
400
- let brandArr = []
401
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
402
- let temp = {}
403
- temp.label = item.label
404
- temp.value = item.value.f_meter_brand
405
- brandArr.push(temp)
406
- })
407
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
408
- },
409
-
410
- clear() {
411
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
412
- this.$refs.paged.$refs.cri.model[key] = ''
413
- })
414
- },
415
- show() {
416
- this.criteriaShow = true
417
- },
418
- hidden() {
419
- this.criteriaShow = !this.criteriaShow
420
- },
421
- dealmsg(val) {
422
- console.log('---------------dealmsg')
423
- this.rowdata=val
424
- this.show=true
425
- val.model = this.model.model
426
- this.$dispatch('deal-msg', val)
427
- },
428
- stamp() {
429
- this.all = false
430
- //默认选择要打印的列
431
- this.modelval = defaultPrint.config
432
- this.fields = this.getfield
433
- console.log('所有打印字段', this.fields)
434
- this.printshow = true
435
- this.put()
436
- },
437
- put() {
438
- // 对Modelval进行排序
439
- this.sortModelval()
440
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
441
- for (let key of this.modelval) {
442
- this.thead += '<th>' + this.fields[key] + '</th>'
443
- }
444
- this.thead += '</tr>'
445
- },
446
- print() {
447
- this.$refs.print.PrintAsFile()
448
- this.printshow = false
449
- },
450
- close() {
451
- this.printshow = false
452
- this.all = false
453
- },
454
- // 对选择的列进行排序
455
- sortModelval() {
456
- let sortModel = []
457
- Object.keys(this.fields).forEach((key) => {
458
- if (this.modelval.includes(key)) {
459
- sortModel.push(key)
460
- }
461
- })
462
- this.modelval = sortModel
463
- console.log('选择的打印的字段', this.modelval)
464
- },
465
- async updateParams() {
466
- await this.$MagLoadParams.loadParam(this.f_filialeid)
467
- this.initParams()
468
- }
469
- },
470
- watch: {
471
- 'all'(val) {
472
- if (val) {
473
- this.modelval = this.bodyData
474
- } else {
475
- this.modelval = defaultPrint.config
476
- this.put()
477
- }
478
- },
479
- 'modelval.length'() {
480
- this.put()
481
- },
482
- 'orgCondtionStr'(val) {
483
- let res = val.match(/'(.*?)'/)
484
- console.log('正则提取:',res && res[1])
485
- if (res) {
486
- this.selectorg = res[1]
487
- }
488
- }
489
-
490
- },
491
- computed: {
492
- getCondition () {
493
- var con = ""
494
- if (this.orgCondtionStr) {
495
- con = `${this.$refs.paged.$refs.cri.condition} and f_filialeid in ${this.orgCondtionStr}`
496
- }
497
- else {
498
- con = `${this.$refs.paged.$refs.cri.condition}and f_filialeid in ('${this.$login.f.orgid}' )`
499
- }
500
- return {
501
- condition: con
502
- }
503
- },
504
- getName() {
505
- return '开户查询导出'+ Util.guid()
506
- },
507
- getfield() {
508
- return exportConfig.NewAccountConfig
509
- }
510
- }
511
- }
512
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!showinfo">
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">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司</label>
12
+ <res-select :initresid="$parent.$parent.orgid"
13
+ style="width:60%"
14
+ @res-select="$parent.$parent.getRes"
15
+ restype='organization'>
16
+ </res-select>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label class="font_normal_body">客户编号</label>
20
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
21
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
22
+ </div>
23
+ <div class="col-sm-2 form-group">
24
+ <label for="startDate" class="font_normal_body">开始日期</label>
25
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
26
+ v-model="model.startDate"
27
+ :value.sync="model.startDate"
28
+ :format="'yyyy-MM-dd'"
29
+ :show-reset-button="true"
30
+ condition="f_open_date >= '{} 00:00:00'">
31
+ </datepicker>
32
+ </div>
33
+ <div class="col-sm-2 form-group">
34
+ <label for="endDate" class="font_normal_body">结束日期</label>
35
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
36
+ v-model="model.endDate"
37
+ :value.sync="model.endDate"
38
+ :format="'yyyy-MM-dd'"
39
+ :show-reset-button="true"
40
+ condition="f_open_date <= '{} 23:59:59'">
41
+ </datepicker>
42
+ </div>
43
+
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
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
48
+
49
+ <export-excel-plus :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
50
+ :field="$parent.$parent.getfield"
51
+ sqlurl="rs/logic/exportfileplus" sql-name="newAccountQuery" :template-name="$parent.$parent.getName"
52
+ :choose-col="true"></export-excel-plus>
53
+
54
+ <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>
55
+ </div>
56
+ </div>
57
+ <div class="row" v-show="$parent.$parent.criteriaShow">
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">客户名称</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
61
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">用气性质</label>
65
+ <v-select :value.sync="model.f_gasproperties" :multiple="true"
66
+ v-model="model.f_gasproperties"
67
+ :options='$parent.$parent.newuseroptiones' placeholder='请选择'
68
+ condition=" f_gasproperties in {}"
69
+ close-on-select></v-select>
70
+ </div>
71
+ <div class="col-sm-2">
72
+ <label class="font_normal_body">气表分类</label>
73
+ <v-select :value.sync="model.f_meter_classify"
74
+ v-model="model.f_meter_classify"
75
+ :options='$parent.$parent.metertypes' placeholder='请选择'
76
+ condition="f_meter_classify = '{}'"
77
+ close-on-select></v-select>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">气表品牌</label>
81
+ <v-select :value.sync="model.f_meter_brand"
82
+ v-model="model.f_meter_brand"
83
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
84
+ condition="f_meter_brand = '{}'"
85
+ close-on-select></v-select>
86
+ </div>
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">用户状态</label>
89
+ <v-select :value.sync="model.f_user_state"
90
+ v-model="model.f_user_state"
91
+ :options='$parent.$parent.getusertypes' placeholder='请选择'
92
+ condition="f_user_state = '{}'"
93
+ close-on-select></v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">表具状态</label>
97
+ <v-select :value.sync="model.f_table_state"
98
+ v-model="model.f_table_state"
99
+ :options='$parent.$parent.gettabletypes' placeholder='请选择'
100
+ condition="f_table_state = '{}'"
101
+ close-on-select></v-select>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">是否黑名单</label>
105
+ <v-select :value.sync="model.f_user_back"
106
+ v-model="model.f_user_back"
107
+ :options='$parent.$parent.backstates' placeholder='请选择'
108
+ condition="f_user_back = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">是否置换</label>
113
+ <v-select :value.sync="model.f_substite"
114
+ v-model="model.f_substite"
115
+ :options='$parent.$parent.backstates' placeholder='请选择'
116
+ condition="f_substite = '{}'"
117
+ close-on-select></v-select>
118
+ </div>
119
+ <div class="col-sm-2 form-group">
120
+ <label class="font_normal_body">是否已缴费</label>
121
+ <v-select :value.sync="model.sellnum"
122
+ v-model="model.sellnum"
123
+ :options='$parent.$parent.sellnumoptions' placeholder='请选择'
124
+ condition=" {} "
125
+ close-on-select></v-select>
126
+ </div>
127
+ <div class="col-sm-4 form-group">
128
+ <label class="font_normal_body">客户地址</label>
129
+ <input type="text" style="width:80%" class="input_search" v-model="model.f_address"
130
+ condition="f_address like '%{}%' " placeholder="客户地址">
131
+ </div>
132
+ </div>
133
+
134
+ </div>
135
+ </criteria>
136
+
137
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
138
+ <template partial='head'>
139
+ <tr>
140
+ <th>
141
+ <nobr>客户编号</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>客户名称</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>用户状态</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>表具状态</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>客户地址</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>客户电话</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>身份证号</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>气价名称</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>开户时间</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>开户人</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>表号</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>置换员</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>当前表通气时间</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>用气性质</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>累购气量</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>气表类型</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>气表品牌</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>左右表</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>是否有壁挂炉</nobr>
196
+ </th>
197
+ <th>
198
+ <nobr>是否有热水器</nobr>
199
+ </th>
200
+ <th>
201
+ <nobr>是否黑名单</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>是否置换</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>最后一次安检时间</nobr>
208
+ </th>
209
+ <th>
210
+ <nobr>销户人</nobr>
211
+ </th>
212
+ <th>
213
+ <nobr>销户时间</nobr>
214
+ </th>
215
+ <th>
216
+ <nobr>销户原因</nobr>
217
+ </th>
218
+ <th>
219
+ <nobr>所属公司</nobr>
220
+ </th>
221
+ </tr>
222
+ </template>
223
+ <template partial='body'>
224
+ <td style="text-align: center;">
225
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_user_name}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_user_state}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_table_state}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_address}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_user_phone}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;">
243
+ <nobr>{{row.f_idnumber}}</nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr>{{row.f_price_name}}</nobr>
247
+ </td>
248
+ <td style="text-align: center;">
249
+ <nobr>{{row.f_open_date}}</nobr>
250
+ </td>
251
+ <td style="text-align: center;">
252
+ <nobr>{{row.f_createfile_person}}</nobr>
253
+ </td>
254
+ <td style="text-align: center;">
255
+ <nobr>{{row.f_meternumber}}</nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr>{{row.f_gas_person}}</nobr>
259
+ </td>
260
+ <td style="text-align: center;">
261
+ <nobr>{{row.f_gas_date}}</nobr>
262
+ </td>
263
+ <td style="text-align: center;">
264
+ <nobr>{{row.f_gasproperties}}</nobr>
265
+ </td>
266
+ <td style="text-align: center;">
267
+ <nobr>{{row.f_total_gas}}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{row.f_meter_type}}</nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr>{{row.f_meter_brand}}</nobr>
274
+ </td>
275
+ <td style="text-align: center;">
276
+ <nobr>{{row.f_aroundmeter}}</nobr>
277
+ </td>
278
+ <td style="text-align: center;">
279
+ <nobr>{{row.isbgl}}</nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr>{{row.ishot}}</nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_user_back}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_substite}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_check_time}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_canceloperator}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_canceltime}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_cancelreason}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.f_orgname}}</nobr>
304
+ </td>
305
+ </template>
306
+ <template partial='foot'></template>
307
+ </data-grid>
308
+ </criteria-paged>
309
+ </div>
310
+ <div v-if="showinfo">
311
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
312
+ </div>
313
+ </div>
314
+ </div>
315
+ </template>
316
+
317
+ <script>
318
+ import {PagedList} from 'vue-client'
319
+ import defaultPrint from '../config/DefaultPrint'
320
+ import exportConfig from '../config/exportConfig'
321
+ import plugins from '../../../plugins/GetLoginInfoService'
322
+ import * as Util from '../../../stores/Util'
323
+ let readySomething = async function (self) {
324
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
325
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
326
+ // await self.$refs.paged.$refs.cri.search()
327
+ await self.$MagLoadParams.loadParam()
328
+ self.initParams()
329
+
330
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
331
+ }
332
+ export default {
333
+ title: '开户统计',
334
+ data() {
335
+ return {
336
+ data: {},
337
+ orgid:[this.$login.f.orgid],
338
+ model: new PagedList('rs/sql/newAccountQuery', 20),
339
+ f_orgid: this.$login.f.orgid,
340
+ criteriaShow: false,
341
+ modelval: [],
342
+ printshow: false,
343
+ all: false,
344
+ fields: {},
345
+ thead: '',
346
+ tfoot: '',
347
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
348
+ // orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
349
+ meterbrands: [],
350
+ showinfo:false,
351
+ rowdata:{},
352
+ //合计数据
353
+ sumsmodel: {},
354
+ newuseroptiones:[{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
355
+ selectfields:[],
356
+ metertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
357
+ backstates:[{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
358
+ gaspropertyTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
359
+ getusertypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
360
+ gettabletypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('档案表具状态')],
361
+ sellnumoptions:[{label: '全部', value: ''},{label:'是',value:'sellnum>0'},{label:'否',value:'sellnum=0'}]
362
+ }
363
+ },
364
+ props:['selectorg'],
365
+ ready() {
366
+ if(this.selectorg != null && this.selectorg != null != ''){
367
+ this.initres.org=[]
368
+ this.initres.org.push(this.selectorg);
369
+ }
370
+ readySomething(this).then(() => {
371
+ this.$emit('ready')
372
+ }).catch((error) => {
373
+ this.$emit('error', error)
374
+ })
375
+ for(var item in exportConfig.NewAccountConfig){
376
+ this.selectfields.push(item)
377
+ }
378
+ },
379
+ methods: {
380
+ cancel() {
381
+ this.showinfo = false
382
+ },
383
+ getRes (obj) {
384
+ this.orgCondtionStr = plugins.convertToIn(obj)
385
+ },
386
+
387
+ selfSearch(args) {
388
+ if (this.orgCondtionStr)
389
+ args.condition = `${args.condition}` + 'and f_filialeid in ' + this.orgCondtionStr
390
+ else
391
+ args.condition = `${args.condition}` + 'and f_filialeid in ' + '(' + this.$login.f.orgid + ')'
392
+ this.model.search(args.condition, args.model)
393
+ },
394
+ showmsg(obj){
395
+ this.rowdata=obj
396
+ this.showinfo=true
397
+ },
398
+ initParams() {
399
+ // 初始化气表品牌
400
+ let brandArr = []
401
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
402
+ let temp = {}
403
+ temp.label = item.label
404
+ temp.value = item.value.f_meter_brand
405
+ brandArr.push(temp)
406
+ })
407
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
408
+ },
409
+
410
+ clear() {
411
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
412
+ this.$refs.paged.$refs.cri.model[key] = ''
413
+ })
414
+ },
415
+ show() {
416
+ this.criteriaShow = true
417
+ },
418
+ hidden() {
419
+ this.criteriaShow = !this.criteriaShow
420
+ },
421
+ dealmsg(val) {
422
+ console.log('---------------dealmsg')
423
+ this.rowdata=val
424
+ this.show=true
425
+ val.model = this.model.model
426
+ this.$dispatch('deal-msg', val)
427
+ },
428
+ stamp() {
429
+ this.all = false
430
+ //默认选择要打印的列
431
+ this.modelval = defaultPrint.config
432
+ this.fields = this.getfield
433
+ console.log('所有打印字段', this.fields)
434
+ this.printshow = true
435
+ this.put()
436
+ },
437
+ put() {
438
+ // 对Modelval进行排序
439
+ this.sortModelval()
440
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
441
+ for (let key of this.modelval) {
442
+ this.thead += '<th>' + this.fields[key] + '</th>'
443
+ }
444
+ this.thead += '</tr>'
445
+ },
446
+ print() {
447
+ this.$refs.print.PrintAsFile()
448
+ this.printshow = false
449
+ },
450
+ close() {
451
+ this.printshow = false
452
+ this.all = false
453
+ },
454
+ // 对选择的列进行排序
455
+ sortModelval() {
456
+ let sortModel = []
457
+ Object.keys(this.fields).forEach((key) => {
458
+ if (this.modelval.includes(key)) {
459
+ sortModel.push(key)
460
+ }
461
+ })
462
+ this.modelval = sortModel
463
+ console.log('选择的打印的字段', this.modelval)
464
+ },
465
+ async updateParams() {
466
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
467
+ this.initParams()
468
+ }
469
+ },
470
+ watch: {
471
+ 'all'(val) {
472
+ if (val) {
473
+ this.modelval = this.bodyData
474
+ } else {
475
+ this.modelval = defaultPrint.config
476
+ this.put()
477
+ }
478
+ },
479
+ 'modelval.length'() {
480
+ this.put()
481
+ },
482
+ 'orgCondtionStr'(val) {
483
+ let res = val.match(/'(.*?)'/)
484
+ console.log('正则提取:',res && res[1])
485
+ if (res) {
486
+ this.selectorg = res[1]
487
+ }
488
+ }
489
+
490
+ },
491
+ computed: {
492
+ getCondition () {
493
+ var con = ""
494
+ if (this.orgCondtionStr) {
495
+ con = `${this.$refs.paged.$refs.cri.condition} and f_filialeid in ${this.orgCondtionStr}`
496
+ }
497
+ else {
498
+ con = `${this.$refs.paged.$refs.cri.condition}and f_filialeid in ('${this.$login.f.orgid}' )`
499
+ }
500
+ return {
501
+ condition: con
502
+ }
503
+ },
504
+ getName() {
505
+ return '开户查询导出'+ Util.guid()
506
+ },
507
+ getfield() {
508
+ return exportConfig.NewAccountConfig
509
+ }
510
+ }
511
+ }
512
+ </script>