manage-client 3.3.266-1 → 3.3.267
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
|
@@ -29,14 +29,20 @@
|
|
|
29
29
|
></v-select>
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
33
|
+
<!-- <label class="font_normal_body">表具类型</label>-->
|
|
34
|
+
<!-- <v-select :value.sync="model.bjlx"-->
|
|
35
|
+
<!-- :options='$parent.$parent.bjlxArray' placeholder='请选择' v-model="model.bjlx" multiple-->
|
|
36
|
+
<!-- condition="bjlx in {}"-->
|
|
37
|
+
<!-- ></v-select>-->
|
|
38
|
+
<!-- </div>-->
|
|
32
39
|
<div class="col-sm-2 form-group">
|
|
33
|
-
<label class="font_normal_body"
|
|
34
|
-
<v-select :value.sync="model.
|
|
35
|
-
:options='$parent.$parent.bjlxArray' placeholder='请选择' v-model="model.
|
|
36
|
-
condition="
|
|
37
|
-
|
|
40
|
+
<label class="font_normal_body">抄表期间</label>
|
|
41
|
+
<v-select :value.sync="model.g_cbqj"
|
|
42
|
+
:options='$parent.$parent.bjlxArray' placeholder='请选择' v-model="model.g_cbqj" multiple
|
|
43
|
+
condition="g_cbqj in {}"
|
|
44
|
+
></v-select>
|
|
38
45
|
</div>
|
|
39
|
-
|
|
40
46
|
<div class="span" style="float:right;">
|
|
41
47
|
<button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
|
|
42
48
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
@@ -105,18 +111,18 @@
|
|
|
105
111
|
<th>
|
|
106
112
|
<nobr>月份</nobr>
|
|
107
113
|
</th>
|
|
108
|
-
<th
|
|
109
|
-
<nobr>表具类型</nobr
|
|
110
|
-
</th
|
|
114
|
+
<!-- <th>-->
|
|
115
|
+
<!-- <nobr>表具类型</nobr>-->
|
|
116
|
+
<!-- </th>-->
|
|
111
117
|
<th>
|
|
112
118
|
<nobr>收费员</nobr>
|
|
113
119
|
</th>
|
|
114
120
|
<th>
|
|
115
121
|
<nobr>抄表员</nobr>
|
|
116
122
|
</th>
|
|
117
|
-
<th
|
|
118
|
-
<nobr>通气日期</nobr
|
|
119
|
-
</th
|
|
123
|
+
<!-- <th>-->
|
|
124
|
+
<!-- <nobr>通气日期</nobr>-->
|
|
125
|
+
<!-- </th>-->
|
|
120
126
|
</tr>
|
|
121
127
|
</template>
|
|
122
128
|
<template partial='body'>
|
|
@@ -165,18 +171,18 @@
|
|
|
165
171
|
<td style="text-align: center;">
|
|
166
172
|
<nobr>{{row.t_jfyf}}</nobr>
|
|
167
173
|
</td>
|
|
168
|
-
<td style="text-align: center;"
|
|
169
|
-
<nobr>{{row.bjlx}}</nobr
|
|
170
|
-
</td
|
|
174
|
+
<!-- <td style="text-align: center;">-->
|
|
175
|
+
<!-- <nobr>{{row.bjlx}}</nobr>-->
|
|
176
|
+
<!-- </td>-->
|
|
171
177
|
<td style="text-align: center;">
|
|
172
178
|
<nobr>{{row.sfyg}}</nobr>
|
|
173
179
|
</td>
|
|
174
180
|
<td style="text-align: center;">
|
|
175
181
|
<nobr>{{row.cbg}}</nobr>
|
|
176
182
|
</td>
|
|
177
|
-
<td style="text-align: center;"
|
|
178
|
-
<nobr>{{row.tqrq}}</nobr
|
|
179
|
-
</td
|
|
183
|
+
<!-- <td style="text-align: center;">-->
|
|
184
|
+
<!-- <nobr>{{row.tqrq}}</nobr>-->
|
|
185
|
+
<!-- </td>-->
|
|
180
186
|
</template>
|
|
181
187
|
<template partial='foot'>
|
|
182
188
|
</template>
|
|
@@ -397,14 +403,14 @@
|
|
|
397
403
|
data: {
|
|
398
404
|
condition: '1=1',
|
|
399
405
|
tablename: 'qn_jgq_gsmxb',
|
|
400
|
-
groupitem: '
|
|
401
|
-
orderitem: '
|
|
402
|
-
items: '
|
|
406
|
+
groupitem: 'g_cbqj',
|
|
407
|
+
orderitem: 'g_cbqj',
|
|
408
|
+
items: 'g_cbqj'
|
|
403
409
|
}
|
|
404
410
|
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
405
411
|
let nameArr = [{label: '全部', value: ''}]
|
|
406
412
|
for (let row of data.data){
|
|
407
|
-
nameArr.push({label: row.
|
|
413
|
+
nameArr.push({label: row.g_cbqj, value: row.g_cbqj})
|
|
408
414
|
}
|
|
409
415
|
this.bjlxArray = nameArr
|
|
410
416
|
},
|
|
@@ -24,11 +24,18 @@
|
|
|
24
24
|
></v-select>
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
28
|
+
<!-- <label class="font_normal_body">表具类型</label>-->
|
|
29
|
+
<!-- <v-select :value.sync="model.bjlx"-->
|
|
30
|
+
<!-- :options='$parent.$parent.bjlxArray' placeholder='请选择' v-model="model.bjlx" multiple-->
|
|
31
|
+
<!-- condition="bjlx in {}"-->
|
|
32
|
+
<!-- ></v-select>-->
|
|
33
|
+
<!-- </div>-->
|
|
27
34
|
<div class="col-sm-2 form-group">
|
|
28
|
-
<label class="font_normal_body"
|
|
29
|
-
<v-select :value.sync="model.
|
|
30
|
-
:options='$parent.$parent.bjlxArray' placeholder='请选择' v-model="model.
|
|
31
|
-
condition="
|
|
35
|
+
<label class="font_normal_body">抄表期间</label>
|
|
36
|
+
<v-select :value.sync="model.g_cbqj"
|
|
37
|
+
:options='$parent.$parent.bjlxArray' placeholder='请选择' v-model="model.g_cbqj" multiple
|
|
38
|
+
condition="g_cbqj in {}"
|
|
32
39
|
></v-select>
|
|
33
40
|
</div>
|
|
34
41
|
|
|
@@ -108,18 +115,18 @@
|
|
|
108
115
|
<th>
|
|
109
116
|
<nobr>月份</nobr>
|
|
110
117
|
</th>
|
|
111
|
-
<th
|
|
112
|
-
<nobr>表具类型</nobr
|
|
113
|
-
</th
|
|
118
|
+
<!-- <th>-->
|
|
119
|
+
<!-- <nobr>表具类型</nobr>-->
|
|
120
|
+
<!-- </th>-->
|
|
114
121
|
<th>
|
|
115
122
|
<nobr>收费员</nobr>
|
|
116
123
|
</th>
|
|
117
124
|
<th>
|
|
118
125
|
<nobr>抄表员</nobr>
|
|
119
126
|
</th>
|
|
120
|
-
<th
|
|
121
|
-
<nobr>通气日期</nobr
|
|
122
|
-
</th
|
|
127
|
+
<!-- <th>-->
|
|
128
|
+
<!-- <nobr>通气日期</nobr>-->
|
|
129
|
+
<!-- </th>-->
|
|
123
130
|
</tr>
|
|
124
131
|
</template>
|
|
125
132
|
<template partial='body'>
|
|
@@ -172,18 +179,18 @@
|
|
|
172
179
|
<td style="text-align: center;">
|
|
173
180
|
<nobr>{{row.t_jfyf}}</nobr>
|
|
174
181
|
</td>
|
|
175
|
-
<td style="text-align: center;"
|
|
176
|
-
<nobr>{{row.bjlx}}</nobr
|
|
177
|
-
</td
|
|
182
|
+
<!-- <td style="text-align: center;">-->
|
|
183
|
+
<!-- <nobr>{{row.bjlx}}</nobr>-->
|
|
184
|
+
<!-- </td>-->
|
|
178
185
|
<td style="text-align: center;">
|
|
179
186
|
<nobr>{{row.sfyg}}</nobr>
|
|
180
187
|
</td>
|
|
181
188
|
<td style="text-align: center;">
|
|
182
189
|
<nobr>{{row.cbg}}</nobr>
|
|
183
190
|
</td>
|
|
184
|
-
<td style="text-align: center;"
|
|
185
|
-
<nobr>{{row.tqrq}}</nobr
|
|
186
|
-
</td
|
|
191
|
+
<!-- <td style="text-align: center;">-->
|
|
192
|
+
<!-- <nobr>{{row.tqrq}}</nobr>-->
|
|
193
|
+
<!-- </td>-->
|
|
187
194
|
</template>
|
|
188
195
|
<template partial='foot'>
|
|
189
196
|
</template>
|
|
@@ -369,14 +376,14 @@ export default {
|
|
|
369
376
|
data: {
|
|
370
377
|
condition: '1=1',
|
|
371
378
|
tablename: 'qn_jgq_mymx',
|
|
372
|
-
groupitem: '
|
|
373
|
-
orderitem: '
|
|
374
|
-
items: '
|
|
379
|
+
groupitem: 'g_cbqj',
|
|
380
|
+
orderitem: 'g_cbqj',
|
|
381
|
+
items: 'g_cbqj'
|
|
375
382
|
}
|
|
376
383
|
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
377
384
|
let nameArr = [{label: '全部', value: ''}]
|
|
378
385
|
for (let row of data.data){
|
|
379
|
-
nameArr.push({label: row.
|
|
386
|
+
nameArr.push({label: row.g_cbqj, value: row.g_cbqj})
|
|
380
387
|
}
|
|
381
388
|
this.bjlxArray = nameArr
|
|
382
389
|
},
|
|
@@ -149,7 +149,10 @@ export default{
|
|
|
149
149
|
qnJgqGsxsmx:{
|
|
150
150
|
'b_yhh':'用户号','c_yhmc':'用户名','d_yqdz':'用气地址','e_spmc':'商品名称','g_cbqj':'抄表期间','h_csqf':'起方','i_cszf':'止方',
|
|
151
151
|
'j_ysql':'气量','k_dj':'单价','l_je':'金额','m_znj':'违约金','o_sjje':'金额合计','u_xyqxz':'用气性质','s_jfrq':'日期',
|
|
152
|
-
't_jfyf':'月份',
|
|
152
|
+
't_jfyf':'月份',
|
|
153
|
+
// 'bjlx':'表具类型',
|
|
154
|
+
'sfyg':'收费员','cbg':'抄表员'
|
|
155
|
+
// ,'tqrq':'通气日期'
|
|
153
156
|
},
|
|
154
157
|
qnJgqGsxsmxJX:{
|
|
155
158
|
'a_yd':'月度','b_yhbh':'用户编号','c_yhmc':'用户名称','d_yhlx':'用户类型','e_yqxz':'用气性质','f_dz':'地址',
|
|
@@ -163,7 +166,10 @@ export default{
|
|
|
163
166
|
qnJgqMyxsmx:{
|
|
164
167
|
'b_yhh':'用户号','c_yhmc':'用户名','d_yqdz':'地址','e_spmc':'商品名称','g_cbqj':'抄表期间','h_csqf':'起方','i_cszf':'止方',
|
|
165
168
|
'j_ysql':'气量','k_dj':'单价','l_je':'金额','m_znj':'违约金',/**'n_jc':'价差',**/'o_sjje':'金额合计','r_yqxzcfl':'用气性质',
|
|
166
|
-
's_jfrq':'日期','t_jfyf':'月份',
|
|
169
|
+
's_jfrq':'日期','t_jfyf':'月份',
|
|
170
|
+
// 'bjlx':'表具类型',
|
|
171
|
+
'sfyg':'收费员','cbg':'抄表员'
|
|
172
|
+
// ,'tqrq':'通气日期'
|
|
167
173
|
},
|
|
168
174
|
qnJgqMyxsmxJX:{
|
|
169
175
|
'a_yd':'月度','b_yhbh':'用户编号','c_yhmc':'用户名称','d_yhlx':'用户类型','e_yqxz':'用气性质','f_dz':'地址',
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex">
|
|
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">客户编号</label>
|
|
11
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
12
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
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_user_name"
|
|
17
|
+
condition=" f_user_name like '%{}%'" 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_address"
|
|
22
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
23
|
+
</div>
|
|
24
|
+
<!-- <div class="col-sm-2">-->
|
|
25
|
+
<!-- <label class="font_normal_body">组织机构</label>-->
|
|
26
|
+
<!-- <res-select :initresid="$parent.$parent.org"-->
|
|
27
|
+
<!-- style="width:60%"-->
|
|
28
|
+
<!-- @res-select="$parent.$parent.getorg"-->
|
|
29
|
+
<!-- restype='organization'>-->
|
|
30
|
+
<!-- </res-select>-->
|
|
31
|
+
|
|
32
|
+
<!-- </div>-->
|
|
33
|
+
<div class="col-sm-2 form-group">
|
|
34
|
+
<label class="font_normal_body"> 公司 </label>
|
|
35
|
+
<right-tree @re-res="$parent.$parent.getorg"
|
|
36
|
+
:initresid='$parent.$parent.org'></right-tree>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="span" style="float:right;">
|
|
39
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
40
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
41
|
+
<export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
|
|
42
|
+
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
43
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="manage_getReportDataQuery" template-name='结算查询导出'
|
|
44
|
+
:choose-col="true"></export-excel>
|
|
45
|
+
<div style="float: right" class="button_spacing"
|
|
46
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
47
|
+
@click="$parent.$parent.hidden()"></div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
53
|
+
<div class="col-sm-2 form-group">
|
|
54
|
+
<label class="font_normal_body">表 号</label>
|
|
55
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
56
|
+
condition="f_meternumber like '%{}%'" placeholder='表号'>
|
|
57
|
+
</div>
|
|
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_residential_area"
|
|
61
|
+
condition="f_residential_area like '%{}%'" placeholder='小区'>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-sm-2 form-group">
|
|
64
|
+
<label class="font_normal_body">气表品牌</label>
|
|
65
|
+
<v-select
|
|
66
|
+
placeholder='气表品牌'
|
|
67
|
+
:value.sync="model.f_meter_brand"
|
|
68
|
+
v-model="model.f_meter_brand"
|
|
69
|
+
:options='$parent.$parent.meterbrands'
|
|
70
|
+
close-on-select
|
|
71
|
+
condition="f_meter_brand='{}'">
|
|
72
|
+
</v-select>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-2 form-group" >
|
|
75
|
+
<label class="font_normal_body">气表型号</label>
|
|
76
|
+
<v-select
|
|
77
|
+
placeholder='气表型号'
|
|
78
|
+
:value.sync="model.f_meter_style"
|
|
79
|
+
v-model="model.f_meter_style"
|
|
80
|
+
:options='$parent.$parent.metertypes'
|
|
81
|
+
close-on-select
|
|
82
|
+
condition="f_meter_style='{}'">
|
|
83
|
+
</v-select>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="col-sm-2 form-group">
|
|
86
|
+
<label for="startDate" class="font_normal_body">插入时间</label>
|
|
87
|
+
<datepicker id="startDate" placeholder="插入时间" style="width:60%"
|
|
88
|
+
v-model="model.startDate"
|
|
89
|
+
:value.sync="model.startDate"
|
|
90
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
91
|
+
:show-reset-button="true"
|
|
92
|
+
condition="f_insert_date >= '{}'">
|
|
93
|
+
</datepicker>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-sm-2 form-group">
|
|
96
|
+
<label for="endDate" class="font_normal_body"> 至 </label>
|
|
97
|
+
<datepicker id="endDate" placeholder="插入时间" style="width:60%"
|
|
98
|
+
v-model="model.endDate"
|
|
99
|
+
:value.sync="model.endDate"
|
|
100
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
101
|
+
:show-reset-button="true"
|
|
102
|
+
condition="f_insert_date <= '{}'">
|
|
103
|
+
</datepicker>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col-sm-2 form-group">
|
|
106
|
+
<label class="font_normal_body">客户类型</label>
|
|
107
|
+
<v-select :value.sync="model.f_user_type"
|
|
108
|
+
@change="$parent.$parent.userTypeChange()"
|
|
109
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
110
|
+
condition="f_user_type = '{}'"
|
|
111
|
+
close-on-select></v-select>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="col-sm-2 form-group">
|
|
114
|
+
<label class="font_normal_body">用气性质</label>
|
|
115
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
116
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
117
|
+
condition="f_gasproperties = '{}'"
|
|
118
|
+
close-on-select></v-select>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-2 form-group">
|
|
121
|
+
<label class="font_normal_body">用气类型</label>
|
|
122
|
+
<v-select :value.sync="model.f_user_nature" v-model="model.f_user_nature"
|
|
123
|
+
:options='$parent.$parent.usernatures' placeholder='请选择'
|
|
124
|
+
condition="f_user_nature = '{}'"
|
|
125
|
+
close-on-select></v-select>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<div class="col-sm-2 form-group">
|
|
129
|
+
<label class="font_normal_body">信号强度</label>
|
|
130
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_signal"
|
|
131
|
+
condition=" f_signal = '{}'" placeholder='信号强度'>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="col-sm-2 form-group">
|
|
134
|
+
<label class="font_normal_body">电压</label>
|
|
135
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_batterylevel"
|
|
136
|
+
condition=" f_batterylevel = '{}'" placeholder='电压'>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
</div>
|
|
141
|
+
</criteria>
|
|
142
|
+
|
|
143
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
144
|
+
<template partial='head'>
|
|
145
|
+
<tr>
|
|
146
|
+
<th v-for="row in $parent.$parent.$parent.headData">
|
|
147
|
+
<nobr>{{row}}</nobr>
|
|
148
|
+
</th>
|
|
149
|
+
</tr>
|
|
150
|
+
</template>
|
|
151
|
+
<template partial='body'>
|
|
152
|
+
<tr v-for="row in $parent.$parent.$parent.model.rows">
|
|
153
|
+
<td style="text-align: center;" v-for="item in $parent.$parent.$parent.config.fieldMapping">
|
|
154
|
+
<nobr v-if="item == 'f_lowlithiumbattery'">{{row[item] == 1 ? '是' : '否'}}</nobr>
|
|
155
|
+
<nobr v-if="item == 'f_magneticinterference'">{{row[item] == 1 ? '异常' : '正常'}}</nobr>
|
|
156
|
+
<nobr v-if="item != 'f_magneticinterference' && item != 'f_lowlithiumbattery'">{{row[item]}}</nobr>
|
|
157
|
+
</td>
|
|
158
|
+
</tr>
|
|
159
|
+
</template>
|
|
160
|
+
<template partial='foot'></template>
|
|
161
|
+
</data-grid>
|
|
162
|
+
</criteria-paged>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
</template>
|
|
167
|
+
|
|
168
|
+
<script>
|
|
169
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
170
|
+
import tableConfig from './../../components/sale/config/tableConfig'
|
|
171
|
+
import exportConfig from '../../components/sale/config/exportConfig'
|
|
172
|
+
import plugins from '../../plugins/GetLoginInfoService'
|
|
173
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
174
|
+
|
|
175
|
+
let readySomething = async function (self) {
|
|
176
|
+
await self.$MagLoadParams.loadParam()
|
|
177
|
+
self.initParams()
|
|
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
|
+
data() {
|
|
184
|
+
return {
|
|
185
|
+
other:[],
|
|
186
|
+
sumsmodel: {},
|
|
187
|
+
footer:[],
|
|
188
|
+
model: new PagedList('api/af-revenue/sql/manage_getReportDataQuery', 20, {}),
|
|
189
|
+
criteriaShow: false,
|
|
190
|
+
config: {
|
|
191
|
+
fieldMapping: {
|
|
192
|
+
f_userinfo_code: '客户编号',
|
|
193
|
+
f_user_name: '客户名称'
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
WarningType: [
|
|
197
|
+
{label: '全部', value: ''}
|
|
198
|
+
],
|
|
199
|
+
Warningstyles: [
|
|
200
|
+
{label: '全部', value: ''}
|
|
201
|
+
],
|
|
202
|
+
styles:false,
|
|
203
|
+
headData: [],
|
|
204
|
+
bodyData: [],
|
|
205
|
+
gasproperties:[],
|
|
206
|
+
orgCondtionStr: " and f_filialeid in (" + this.$login.f.orgid+")",
|
|
207
|
+
resshow:['company'],
|
|
208
|
+
org:[this.$login.f.orgid],
|
|
209
|
+
meterbrands:[]
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
created () {
|
|
213
|
+
this.config.fieldMapping=tableConfig.ReportDataQuery
|
|
214
|
+
console.log("========================")
|
|
215
|
+
console.log(this.config.fieldMapping)
|
|
216
|
+
var item="用户编号"
|
|
217
|
+
console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
|
|
218
|
+
console.log(this.config.fieldMapping[item])
|
|
219
|
+
this.headData=Object.keys(this.config.fieldMapping)
|
|
220
|
+
// for(var i=0;i<this.config.fieldMapping;i++){
|
|
221
|
+
// this.headData.push(this.config.fieldMapping[i])
|
|
222
|
+
// }
|
|
223
|
+
|
|
224
|
+
},
|
|
225
|
+
ready() {
|
|
226
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
227
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
228
|
+
console.log(this.$refs.paged.$refs.cri.model.startDate)
|
|
229
|
+
console.log(this.$refs.paged.$refs.cri.model.endDate)
|
|
230
|
+
readySomething(this).then(() => {
|
|
231
|
+
this.$emit('ready')
|
|
232
|
+
}).catch((error) => {
|
|
233
|
+
this.$emit('error', error)
|
|
234
|
+
})
|
|
235
|
+
},
|
|
236
|
+
methods: {
|
|
237
|
+
userTypeChange () {
|
|
238
|
+
this.gasproperties=[]
|
|
239
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
240
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
241
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
242
|
+
}
|
|
243
|
+
else{
|
|
244
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
initParams() {
|
|
248
|
+
// 初始化气表品牌
|
|
249
|
+
let brandArr = []
|
|
250
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
251
|
+
let temp = {}
|
|
252
|
+
if(item.value.f_meter_type==='物联网表'){
|
|
253
|
+
temp.label = item.label
|
|
254
|
+
temp.value = item.value.f_meter_brand
|
|
255
|
+
brandArr.push(temp )
|
|
256
|
+
}
|
|
257
|
+
})
|
|
258
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
259
|
+
//初始化气表价格
|
|
260
|
+
this.prices = this.$MagGetSaleParam.getPrices();
|
|
261
|
+
},
|
|
262
|
+
showMeterStyle() {
|
|
263
|
+
this.styles = true
|
|
264
|
+
},
|
|
265
|
+
search() {
|
|
266
|
+
this.$refs.paged.$refs.cri.search()
|
|
267
|
+
},
|
|
268
|
+
async selfSearch(args) {
|
|
269
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
270
|
+
await this.model.search(args.condition, args.model)
|
|
271
|
+
// 查询到数据进行处理
|
|
272
|
+
// if (this.model.rows.length > 0) {
|
|
273
|
+
// this.bodyData = Object.keys(this.model.rows[0])
|
|
274
|
+
// }
|
|
275
|
+
},
|
|
276
|
+
getorg(obj) {
|
|
277
|
+
if (obj.resids.length>0) {
|
|
278
|
+
this.orgCondtionStr = " and f_filialeid in " + plugin.convertToIn(obj.resids)
|
|
279
|
+
}else
|
|
280
|
+
{
|
|
281
|
+
this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
// getorg(obj) {
|
|
285
|
+
// // if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
|
|
286
|
+
// // this.orgCondtionStr = " and f_filialeid in " + plugins.convertToIn(obj)
|
|
287
|
+
// // }else{
|
|
288
|
+
// // this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
|
|
289
|
+
// // }
|
|
290
|
+
// // this.orgname = obj.res
|
|
291
|
+
// },
|
|
292
|
+
clear() {
|
|
293
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
294
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
295
|
+
})
|
|
296
|
+
},
|
|
297
|
+
hidden() {
|
|
298
|
+
this.criteriaShow = !this.criteriaShow
|
|
299
|
+
},
|
|
300
|
+
|
|
301
|
+
// getRes(obj) {
|
|
302
|
+
// this.orgCondtionStr = obj
|
|
303
|
+
// }
|
|
304
|
+
getotherfooter() {
|
|
305
|
+
this.other = [];
|
|
306
|
+
this.footer = [];
|
|
307
|
+
let otherInData = [];
|
|
308
|
+
let secondLine = [
|
|
309
|
+
`开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
|
|
310
|
+
`结束时间: ${this.$refs.paged.$refs.cri.model.startDate}`
|
|
311
|
+
];
|
|
312
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
313
|
+
let footerData = []
|
|
314
|
+
|
|
315
|
+
this.footer.push(footerData);
|
|
316
|
+
this.other.push(otherInData);
|
|
317
|
+
this.other.push(secondLine);
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
watch: {
|
|
321
|
+
sumsmodel:{
|
|
322
|
+
handler: function(val) {
|
|
323
|
+
this.getotherfooter();
|
|
324
|
+
},
|
|
325
|
+
deep: true
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
computed: {
|
|
329
|
+
metertypes() {
|
|
330
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
331
|
+
},
|
|
332
|
+
usernatures(){
|
|
333
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
|
|
334
|
+
},
|
|
335
|
+
usertypes() {
|
|
336
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
337
|
+
},
|
|
338
|
+
getCondition() {
|
|
339
|
+
return {
|
|
340
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
341
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
342
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
getfield() {
|
|
346
|
+
return exportConfig.ReportDataConfig
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
</script>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import echarts from 'echarts'
|
|
3
|
+
import MagLoadParams from '../../stores/MagLoadParams'
|
|
4
|
+
import MagGetSaleParam from '../../stores/MagGetSaleParams'
|
|
5
|
+
|
|
6
|
+
/** **************************收费组件注册******************************/
|
|
7
|
+
|
|
8
|
+
export default function () {
|
|
9
|
+
Vue.prototype.$echarts = echarts
|
|
10
|
+
Vue.use(MagLoadParams)
|
|
11
|
+
Vue.use(MagGetSaleParam)
|
|
12
|
+
// 物联网表结算查询
|
|
13
|
+
Vue.component('report-data-query', (resolve) => { require(['./ReportDataQuery'], resolve) })
|
|
14
|
+
}
|
|
15
|
+
|