manage-client 1.22.40-ca → 1.22.41-ca
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/build/dev-server.js +1 -1
- package/package.json +1 -1
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +57 -14
- package/src/components/sale/businessquery/SellgasQuerybyDep.vue +187 -186
- package/src/components/sale/businessquery/SellgasQuerybySpot.vue +192 -191
- package/src/components/sale/config/exportConfig.js +7 -4
package/build/dev-server.js
CHANGED
|
@@ -8,7 +8,7 @@ var app = express()
|
|
|
8
8
|
var compiler = webpack(config)
|
|
9
9
|
// var proxy = httpProxy.createProxyServer()
|
|
10
10
|
|
|
11
|
-
var bendi = 'http://192.168.2.
|
|
11
|
+
var bendi = 'http://192.168.2.84:7003/', changan = 'http://192.168.2.84:7003/'
|
|
12
12
|
var proxyTable = {
|
|
13
13
|
// 查找资源服务数据
|
|
14
14
|
'/rs/sql/manageSingleTable': {
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<input type="text" class="form-control _zoom6" v-model="model.f_card_id"
|
|
15
15
|
condition="f_card_id = '{}' " placeholder="旧卡号">
|
|
16
16
|
</div>
|
|
17
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
17
|
+
<div class="col-sm-2 form-group form-fix-width" v-show="false">
|
|
18
18
|
<label class="font_normal_body _zoom4" >用户编号</label>
|
|
19
19
|
<input type="text" class="form-control _zoom6" v-model="model.f_userinfo_code"
|
|
20
20
|
condition="f_userinfo_code = '{}' " placeholder="用户编号">
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
41
41
|
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
42
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
42
|
+
<div class="col-sm-2 form-group form-fix-width" v-show="false">
|
|
43
43
|
<label class="font_normal_body _zoom4" >用户电话</label>
|
|
44
44
|
<input type="text" class="form-control _zoom6" v-model="model.f_user_phone"
|
|
45
45
|
condition="f_user_phone like '%{}%'" placeholder="用户电话">
|
|
@@ -49,6 +49,31 @@
|
|
|
49
49
|
<input type="text" class="form-control _zoom6" v-model="model.f_address"
|
|
50
50
|
condition="f_address like '%{}%'" placeholder='用户地址'>
|
|
51
51
|
</div>
|
|
52
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
53
|
+
<label class="font_normal_body _zoom4" >小区</label>
|
|
54
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_residential_area"
|
|
55
|
+
condition="f_residential_area like '{}%'" placeholder="小区"/>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
58
|
+
<label class="font_normal_body _zoom4" >楼号</label>
|
|
59
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_building"
|
|
60
|
+
condition="f_building = '{}'" placeholder="楼号"/>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
63
|
+
<label class="font_normal_body _zoom4" >单元</label>
|
|
64
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_unit"
|
|
65
|
+
condition="f_unit = '{}'" placeholder="单元"/>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
68
|
+
<label class="control-label">楼层</label>
|
|
69
|
+
<input type="text" class="form-control" v-model="model.f_floor"
|
|
70
|
+
condition="f_floor = '{}'" placeholder="楼层"/>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
73
|
+
<label class="control-label">门牌号</label>
|
|
74
|
+
<input type="text" class="form-control" v-model="model.f_room"
|
|
75
|
+
condition="f_room = '{}'" placeholder="门牌号">
|
|
76
|
+
</div>
|
|
52
77
|
<div class="col-sm-2 form-group form-fix-width" >
|
|
53
78
|
<label class="font_normal_body _zoom4" >换表类型</label>
|
|
54
79
|
<v-select :value.sync="model.f_type"
|
|
@@ -68,13 +93,18 @@
|
|
|
68
93
|
<div class="col-sm-2 form-group form-fix-width" >
|
|
69
94
|
<label class="font_normal_body _zoom4" >新表号</label>
|
|
70
95
|
<input type="text" class="form-control _zoom6" v-model="model.f_newmeternumber"
|
|
71
|
-
condition="f_newmeternumber
|
|
96
|
+
condition="f_newmeternumber like '%{}%'" placeholder='表编号'>
|
|
72
97
|
</div>
|
|
73
98
|
<div class="col-sm-2 form-group form-fix-width" >
|
|
74
99
|
<label class="font_normal_body _zoom4" >旧表号</label>
|
|
75
100
|
<input type="text" class="form-control _zoom6" v-model="model.f_meternumber"
|
|
76
101
|
condition="f_meternumber = '{}'" placeholder='表编号'>
|
|
77
102
|
</div>
|
|
103
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
104
|
+
<label class="font_normal_body _zoom4" >新表封号</label>
|
|
105
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_newmetertitles"
|
|
106
|
+
condition="f_newmetertitles = '{}'" placeholder='新表封号'>
|
|
107
|
+
</div>
|
|
78
108
|
<div class="col-sm-2 form-group form-fix-width" >
|
|
79
109
|
<label class="font_normal_body _zoom4" >换表状态</label>
|
|
80
110
|
<v-select :value.sync="model.f_state"
|
|
@@ -119,7 +149,7 @@
|
|
|
119
149
|
close-on-select></v-select>
|
|
120
150
|
</div>
|
|
121
151
|
<div class="col-sm-2 form-group form-fix-width" >
|
|
122
|
-
<label class="font_normal_body _zoom4"
|
|
152
|
+
<label class="font_normal_body _zoom4" >新表气表类型</label>
|
|
123
153
|
<v-select :value.sync="model.f_meter_brand"
|
|
124
154
|
v-model="model.f_meter_brand"
|
|
125
155
|
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
@@ -127,7 +157,7 @@
|
|
|
127
157
|
close-on-select></v-select>
|
|
128
158
|
</div>
|
|
129
159
|
<div class="col-sm-2 form-group form-fix-width" >
|
|
130
|
-
<label class="font_normal_body _zoom4"
|
|
160
|
+
<label class="font_normal_body _zoom4" >旧表气表类型</label>
|
|
131
161
|
<v-select :value.sync="model.old_meter_brand"
|
|
132
162
|
v-model="model.old_meter_brand"
|
|
133
163
|
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
@@ -162,6 +192,11 @@
|
|
|
162
192
|
<!-- <th><nobr>用户编号</nobr></th>-->
|
|
163
193
|
<th><nobr>用户姓名</nobr></th>
|
|
164
194
|
<th><nobr>用户地址</nobr></th>
|
|
195
|
+
<th><nobr>小区</nobr></th>
|
|
196
|
+
<th><nobr>楼号</nobr></th>
|
|
197
|
+
<th><nobr>单元</nobr></th>
|
|
198
|
+
<th><nobr>楼层</nobr></th>
|
|
199
|
+
<th><nobr>门牌号</nobr></th>
|
|
165
200
|
<th><nobr>换表类型</nobr></th>
|
|
166
201
|
<th><nobr>换表费</nobr></th>
|
|
167
202
|
<th><nobr>是否保修期免交</nobr></th>
|
|
@@ -171,17 +206,18 @@
|
|
|
171
206
|
<th><nobr>转移气量</nobr></th>
|
|
172
207
|
<th><nobr>转移金额</nobr></th>
|
|
173
208
|
<th><nobr>旧气表类型</nobr></th>
|
|
174
|
-
<th><nobr>旧气表品牌</nobr></th
|
|
175
|
-
<th><nobr>旧气表型号</nobr></th
|
|
209
|
+
<!-- <th><nobr>旧气表品牌</nobr></th>-->
|
|
210
|
+
<!-- <th><nobr>旧气表型号</nobr></th>-->
|
|
176
211
|
<th><nobr>旧表底数</nobr></th>
|
|
177
|
-
<th><nobr
|
|
178
|
-
<th><nobr
|
|
212
|
+
<th><nobr>旧表剩余气量</nobr></th>
|
|
213
|
+
<th><nobr>旧表剩余金额</nobr></th>
|
|
179
214
|
<th><nobr>新气表类型</nobr></th>
|
|
180
215
|
<th><nobr>新气表品牌</nobr></th>
|
|
181
216
|
<th><nobr>新气表型号</nobr></th>
|
|
182
217
|
<th><nobr>新表底数</nobr></th>
|
|
183
218
|
<th><nobr>新表封号</nobr></th>
|
|
184
219
|
<th><nobr>换表原因</nobr></th>
|
|
220
|
+
<th><nobr>其他换表原因</nobr></th>
|
|
185
221
|
<th><nobr>状态</nobr></th>
|
|
186
222
|
<th><nobr>换表日期</nobr></th>
|
|
187
223
|
<th><nobr>操作日期</nobr></th>
|
|
@@ -198,6 +234,11 @@
|
|
|
198
234
|
<!-- <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>-->
|
|
199
235
|
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
200
236
|
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
237
|
+
<td style="text-align: center;"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
238
|
+
<td style="text-align: center;"><nobr>{{row.f_building}}</nobr></td>
|
|
239
|
+
<td style="text-align: center;"><nobr>{{row.f_unit}}</nobr></td>
|
|
240
|
+
<td style="text-align: center;"><nobr>{{row.f_floor}}</nobr></td>
|
|
241
|
+
<td style="text-align: center;"><nobr>{{row.f_room}}</nobr></td>
|
|
201
242
|
<td style="text-align: center;"><nobr>{{row.f_type}}</nobr></td>
|
|
202
243
|
<td style="text-align: center;"><nobr>{{row.f_changemeter_fee}}</nobr></td>
|
|
203
244
|
<td style="text-align: center;"><nobr>{{row.f_freereason}}</nobr></td>
|
|
@@ -208,17 +249,19 @@
|
|
|
208
249
|
<td style="text-align: center;"><nobr>{{row.f_shiftgas}}</nobr></td>
|
|
209
250
|
<td style="text-align: center;"><nobr>{{row.f_shiftgas_money}}</nobr></td>
|
|
210
251
|
<td style="text-align: center;"><nobr>{{row.f_meter_classify}}</nobr></td>
|
|
211
|
-
<td style="text-align: center;"><nobr>{{row.f_old_meterbrand}}</nobr></td
|
|
212
|
-
<td style="text-align: center;"><nobr>{{row.f_old_meternmodel}}</nobr></td
|
|
252
|
+
<!-- <td style="text-align: center;"><nobr>{{row.f_old_meterbrand}}</nobr></td>-->
|
|
253
|
+
<!-- <td style="text-align: center;"><nobr>{{row.f_old_meternmodel}}</nobr></td>-->
|
|
213
254
|
<td style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></td>
|
|
214
|
-
<td style="text-align: center;"><nobr>{{row.f_tablebase_gas}}
|
|
215
|
-
<td style="text-align: center;"><nobr>{{row.
|
|
255
|
+
<td style="text-align: center;"><nobr>{{row.f_tablebase_gas}}方</nobr></td>
|
|
256
|
+
<td style="text-align: center;"><nobr>{{row.f_tablebase_money}}元</nobr></td>
|
|
257
|
+
<!-- <td style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></td>-->
|
|
216
258
|
<td style="text-align: center;"><nobr>{{row.f_newmeter_classify}}</nobr></td>
|
|
217
259
|
<td style="text-align: center;"><nobr>{{row.f_new_meterbrand}}</nobr></td>
|
|
218
260
|
<td style="text-align: center;"><nobr>{{row.f_new_meternmodel}}</nobr></td>
|
|
219
261
|
<td style="text-align: center;"><nobr>{{row.f_newmeter_base}}</nobr></td>
|
|
220
262
|
<td style="text-align: center;"><nobr>{{row.f_newmetertitles}}</nobr></td>
|
|
221
|
-
<td style="text-align: center;"><nobr>{{row.f_reason}}
|
|
263
|
+
<td style="text-align: center;"><nobr>{{row.f_reason}}</nobr></td>
|
|
264
|
+
<td style="text-align: center;"><nobr>{{row.f_result_change}}</nobr></td>
|
|
222
265
|
<td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
|
|
223
266
|
<td style="text-align: center;"><nobr>{{row.f_changemeter_date}}</nobr></td>
|
|
224
267
|
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
@@ -1,186 +1,187 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
7
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
8
|
-
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
9
|
-
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
10
|
-
v-model="model.startDate"
|
|
11
|
-
:value.sync="model.startDate"
|
|
12
|
-
:format="'yyyy-MM-dd'"
|
|
13
|
-
:show-reset-button="true"
|
|
14
|
-
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
15
|
-
</datepicker>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
18
|
-
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
19
|
-
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
20
|
-
v-model="model.endDate"
|
|
21
|
-
:value.sync="model.endDate"
|
|
22
|
-
:format="'yyyy-MM-dd'"
|
|
23
|
-
:show-reset-button="true"
|
|
24
|
-
condition="f_operate_date <= to_date('{} 23.59.59','yyyy-mm-dd hh24:mi:ss')">
|
|
25
|
-
</datepicker>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
28
|
-
<label class="font_normal_body _zoom4" >气表类型</label>
|
|
29
|
-
<v-select :value.sync="model.f_meter_type"
|
|
30
|
-
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
|
|
31
|
-
condition="f_meter_type = '{}'"
|
|
32
|
-
close-on-select></v-select>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
35
|
-
<label class="font_normal_body _zoom4" >用户类型</label>
|
|
36
|
-
<v-select :value.sync="model.f_user_type"
|
|
37
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
38
|
-
condition="f_user_type = '{}'"
|
|
39
|
-
close-on-select></v-select>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
42
|
-
<label class="font_normal_body _zoom4" >用气性质</label>
|
|
43
|
-
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
44
|
-
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
45
|
-
condition="f_gasproperties = '{}'"
|
|
46
|
-
close-on-select></v-select>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
-
<label class="font_normal_body _zoom4" >售气单位</label>
|
|
50
|
-
<v-select :value.sync="model.f_filiale"
|
|
51
|
-
v-model="model.f_filiale"
|
|
52
|
-
:options='$parent.$parent.filialelist' placeholder='请选择'
|
|
53
|
-
condition="f_filiale = '{}'"
|
|
54
|
-
close-on-select></v-select>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
57
|
-
<label class="font_normal_body _zoom4" >售气部门</label>
|
|
58
|
-
<v-select :value.sync="model.f_outlets"
|
|
59
|
-
v-model="model.f_outlets"
|
|
60
|
-
:options='$parent.$parent.selldep' placeholder='请选择'
|
|
61
|
-
condition="f_outlets = '{}'"
|
|
62
|
-
close-on-select></v-select>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
65
|
-
<label class="font_normal_body _zoom4" >售气站点</label>
|
|
66
|
-
<input type="text" class="form-control _zoom6" v-model="model.op_spot"
|
|
67
|
-
condition="op_spot = '{}'" placeholder="售气站点">
|
|
68
|
-
</div>
|
|
69
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
70
|
-
<label class="font_normal_body _zoom4" >人员编号</label>
|
|
71
|
-
<input type="text" class="form-control _zoom6" v-model="model.op_id"
|
|
72
|
-
condition="op_id = '{}'" placeholder="操作员编号">
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="row">
|
|
76
|
-
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
77
|
-
<button class="btn btn-success" @click="search()">查询</button>
|
|
78
|
-
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
79
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
80
|
-
:field="$parent.$parent.getExportField"
|
|
81
|
-
sqlurl="rs/logic/exportfile" sql-name="changan_sellgasByItem" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
82
|
-
<print-data :model="$parent.model" :field="$parent.$parent.getExportField"
|
|
83
|
-
:defaultfield="$parent.$parent.defaultfield" print-name="售气按部门"></print-data>
|
|
84
|
-
<div
|
|
85
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
86
|
-
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</criteria>
|
|
91
|
-
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
92
|
-
<template partial='head'>
|
|
93
|
-
<tr>
|
|
94
|
-
<th><nobr>网点</nobr></th>
|
|
95
|
-
<th><nobr>气量</nobr></th>
|
|
96
|
-
<th><nobr>金额</nobr></th>
|
|
97
|
-
<th><nobr>数量</nobr></th>
|
|
98
|
-
</tr>
|
|
99
|
-
</template>
|
|
100
|
-
<template partial='body'>
|
|
101
|
-
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
102
|
-
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
103
|
-
<td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
|
|
104
|
-
<td style="text-align: center;"><nobr>{{row.c}}</nobr></td>
|
|
105
|
-
</template>
|
|
106
|
-
</data-grid>
|
|
107
|
-
</criteria-paged>
|
|
108
|
-
<table class="table-hover" >
|
|
109
|
-
<tr class="table-bordered">
|
|
110
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
111
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计: {{sumsmodel.f_pregas}}</td>
|
|
112
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计: {{sumsmodel.f_preamount}}</td>
|
|
113
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">数量合计: {{sumsmodel.c}}</td>
|
|
114
|
-
</tr>
|
|
115
|
-
</table>
|
|
116
|
-
</div>
|
|
117
|
-
</template>
|
|
118
|
-
<script>
|
|
119
|
-
import { PagedList } from 'vue-client'
|
|
120
|
-
import exportConfig from '../config/exportConfig'
|
|
121
|
-
|
|
122
|
-
export default {
|
|
123
|
-
data() {
|
|
124
|
-
return {
|
|
125
|
-
criteriaShow:true,
|
|
126
|
-
defaultfield:[],
|
|
127
|
-
sumsmodel: {},
|
|
128
|
-
model: new PagedList('rs/sql/changan_sellgasByItem', 20,{item:"'f_outlets'"},{
|
|
129
|
-
f_pregas: 0,f_preamount: 0,c:0
|
|
130
|
-
}),
|
|
131
|
-
metertypes: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
|
132
|
-
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
133
|
-
filialelist: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
ready(){
|
|
137
|
-
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
|
|
138
|
-
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
139
|
-
},
|
|
140
|
-
methods: {
|
|
141
|
-
selfSearch (args) {
|
|
142
|
-
this.model.search(args.condition, args.model)
|
|
143
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
144
|
-
},
|
|
145
|
-
hidden(){
|
|
146
|
-
this.criteriaShow = !this.criteriaShow
|
|
147
|
-
},
|
|
148
|
-
clear(){
|
|
149
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
150
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
151
|
-
})
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
watch:{
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
computed:{
|
|
158
|
-
gasproperties () {
|
|
159
|
-
let rs = []
|
|
160
|
-
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
161
|
-
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
162
|
-
}
|
|
163
|
-
return [{label: '全部', value: ''}, ...rs]
|
|
164
|
-
},
|
|
165
|
-
selldep () {
|
|
166
|
-
let rs = []
|
|
167
|
-
if(this.$refs.paged.$refs.cri.model.f_filiale){
|
|
168
|
-
this.$refs.paged.$refs.cri.model.f_outlets = ''
|
|
169
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_filiale) ]
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
return [{label: '全部', value: ''}]
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
getCondition(){
|
|
176
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
'
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
7
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
8
|
+
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
9
|
+
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
10
|
+
v-model="model.startDate"
|
|
11
|
+
:value.sync="model.startDate"
|
|
12
|
+
:format="'yyyy-MM-dd'"
|
|
13
|
+
:show-reset-button="true"
|
|
14
|
+
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
15
|
+
</datepicker>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
18
|
+
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
19
|
+
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
20
|
+
v-model="model.endDate"
|
|
21
|
+
:value.sync="model.endDate"
|
|
22
|
+
:format="'yyyy-MM-dd'"
|
|
23
|
+
:show-reset-button="true"
|
|
24
|
+
condition="f_operate_date <= to_date('{} 23.59.59','yyyy-mm-dd hh24:mi:ss')">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
28
|
+
<label class="font_normal_body _zoom4" >气表类型</label>
|
|
29
|
+
<v-select :value.sync="model.f_meter_type"
|
|
30
|
+
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
|
|
31
|
+
condition="f_meter_type = '{}'"
|
|
32
|
+
close-on-select></v-select>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
35
|
+
<label class="font_normal_body _zoom4" >用户类型</label>
|
|
36
|
+
<v-select :value.sync="model.f_user_type"
|
|
37
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
38
|
+
condition="f_user_type = '{}'"
|
|
39
|
+
close-on-select></v-select>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
42
|
+
<label class="font_normal_body _zoom4" >用气性质</label>
|
|
43
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
44
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
45
|
+
condition="f_gasproperties = '{}'"
|
|
46
|
+
close-on-select></v-select>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
+
<label class="font_normal_body _zoom4" >售气单位</label>
|
|
50
|
+
<v-select :value.sync="model.f_filiale"
|
|
51
|
+
v-model="model.f_filiale"
|
|
52
|
+
:options='$parent.$parent.filialelist' placeholder='请选择'
|
|
53
|
+
condition="f_filiale = '{}'"
|
|
54
|
+
close-on-select></v-select>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
57
|
+
<label class="font_normal_body _zoom4" >售气部门</label>
|
|
58
|
+
<v-select :value.sync="model.f_outlets"
|
|
59
|
+
v-model="model.f_outlets"
|
|
60
|
+
:options='$parent.$parent.selldep' placeholder='请选择'
|
|
61
|
+
condition="f_outlets = '{}'"
|
|
62
|
+
close-on-select></v-select>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
65
|
+
<label class="font_normal_body _zoom4" >售气站点</label>
|
|
66
|
+
<input type="text" class="form-control _zoom6" v-model="model.op_spot"
|
|
67
|
+
condition="op_spot = '{}'" placeholder="售气站点">
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
70
|
+
<label class="font_normal_body _zoom4" >人员编号</label>
|
|
71
|
+
<input type="text" class="form-control _zoom6" v-model="model.op_id"
|
|
72
|
+
condition="op_id = '{}'" placeholder="操作员编号">
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="row">
|
|
76
|
+
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
77
|
+
<button class="btn btn-success" @click="search()">查询</button>
|
|
78
|
+
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
79
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
80
|
+
:field="$parent.$parent.getExportField"
|
|
81
|
+
sqlurl="rs/logic/exportfile" sql-name="changan_sellgasByItem" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
82
|
+
<print-data :model="$parent.model" :field="$parent.$parent.getExportField"
|
|
83
|
+
:defaultfield="$parent.$parent.defaultfield" print-name="售气按部门"></print-data>
|
|
84
|
+
<div
|
|
85
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
86
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</criteria>
|
|
91
|
+
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
92
|
+
<template partial='head'>
|
|
93
|
+
<tr>
|
|
94
|
+
<th><nobr>网点</nobr></th>
|
|
95
|
+
<th><nobr>气量</nobr></th>
|
|
96
|
+
<th><nobr>金额</nobr></th>
|
|
97
|
+
<th><nobr>数量</nobr></th>
|
|
98
|
+
</tr>
|
|
99
|
+
</template>
|
|
100
|
+
<template partial='body'>
|
|
101
|
+
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
102
|
+
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
103
|
+
<td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
|
|
104
|
+
<td style="text-align: center;"><nobr>{{row.c}}</nobr></td>
|
|
105
|
+
</template>
|
|
106
|
+
</data-grid>
|
|
107
|
+
</criteria-paged>
|
|
108
|
+
<table class="table-hover" >
|
|
109
|
+
<tr class="table-bordered">
|
|
110
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
111
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计: {{sumsmodel.f_pregas}}</td>
|
|
112
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计: {{sumsmodel.f_preamount}}</td>
|
|
113
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">数量合计: {{sumsmodel.c}}</td>
|
|
114
|
+
</tr>
|
|
115
|
+
</table>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
118
|
+
<script>
|
|
119
|
+
import { PagedList } from 'vue-client'
|
|
120
|
+
import exportConfig from '../config/exportConfig'
|
|
121
|
+
|
|
122
|
+
export default {
|
|
123
|
+
data() {
|
|
124
|
+
return {
|
|
125
|
+
criteriaShow:true,
|
|
126
|
+
defaultfield:[],
|
|
127
|
+
sumsmodel: {},
|
|
128
|
+
model: new PagedList('rs/sql/changan_sellgasByItem', 20,{item:"'f_outlets'"},{
|
|
129
|
+
f_pregas: 0,f_preamount: 0,c:0
|
|
130
|
+
}),
|
|
131
|
+
metertypes: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
|
132
|
+
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
133
|
+
filialelist: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
ready(){
|
|
137
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
|
|
138
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
139
|
+
},
|
|
140
|
+
methods: {
|
|
141
|
+
selfSearch (args) {
|
|
142
|
+
this.model.search(args.condition, args.model)
|
|
143
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
144
|
+
},
|
|
145
|
+
hidden(){
|
|
146
|
+
this.criteriaShow = !this.criteriaShow
|
|
147
|
+
},
|
|
148
|
+
clear(){
|
|
149
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
150
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
151
|
+
})
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
watch:{
|
|
155
|
+
|
|
156
|
+
},
|
|
157
|
+
computed:{
|
|
158
|
+
gasproperties () {
|
|
159
|
+
let rs = []
|
|
160
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
161
|
+
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
162
|
+
}
|
|
163
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
164
|
+
},
|
|
165
|
+
selldep () {
|
|
166
|
+
let rs = []
|
|
167
|
+
if(this.$refs.paged.$refs.cri.model.f_filiale){
|
|
168
|
+
this.$refs.paged.$refs.cri.model.f_outlets = ''
|
|
169
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_filiale) ]
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
return [{label: '全部', value: ''}]
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
getCondition(){
|
|
176
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}`,
|
|
177
|
+
item:'f_outlets'}
|
|
178
|
+
},
|
|
179
|
+
getExportField () {
|
|
180
|
+
return {
|
|
181
|
+
'f_outlets': '网点','f_pregas':'气量',
|
|
182
|
+
'f_preamount': '金额','.c':'数量',
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
</script>
|
|
@@ -1,191 +1,192 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
7
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
8
|
-
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
9
|
-
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
10
|
-
v-model="model.startDate"
|
|
11
|
-
:value.sync="model.startDate"
|
|
12
|
-
:format="'yyyy-MM-dd'"
|
|
13
|
-
:show-reset-button="true"
|
|
14
|
-
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
15
|
-
</datepicker>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
18
|
-
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
19
|
-
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
20
|
-
v-model="model.endDate"
|
|
21
|
-
:value.sync="model.endDate"
|
|
22
|
-
:format="'yyyy-MM-dd'"
|
|
23
|
-
:show-reset-button="true"
|
|
24
|
-
condition="f_operate_date <= to_date('{} 23.59.59','yyyy-mm-dd hh24:mi:ss')">
|
|
25
|
-
</datepicker>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
28
|
-
<label class="font_normal_body _zoom4" >气表类型</label>
|
|
29
|
-
<v-select :value.sync="model.f_meter_type"
|
|
30
|
-
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
|
|
31
|
-
condition="f_meter_type = '{}'"
|
|
32
|
-
close-on-select></v-select>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
35
|
-
<label class="font_normal_body _zoom4" >用户类型</label>
|
|
36
|
-
<v-select :value.sync="model.f_user_type"
|
|
37
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
38
|
-
condition="f_user_type = '{}'"
|
|
39
|
-
close-on-select></v-select>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
42
|
-
<label class="font_normal_body _zoom4" >用气性质</label>
|
|
43
|
-
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
44
|
-
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
45
|
-
condition="f_gasproperties = '{}'"
|
|
46
|
-
close-on-select></v-select>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
-
<label class="font_normal_body _zoom4" >售气单位</label>
|
|
50
|
-
<v-select :value.sync="model.f_filiale"
|
|
51
|
-
v-model="model.f_filiale"
|
|
52
|
-
:options='$parent.$parent.filialelist' placeholder='请选择'
|
|
53
|
-
condition="f_filiale = '{}'"
|
|
54
|
-
close-on-select></v-select>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
57
|
-
<label class="font_normal_body _zoom4" >售气部门</label>
|
|
58
|
-
<v-select :value.sync="model.f_outlets"
|
|
59
|
-
v-model="model.f_outlets"
|
|
60
|
-
:options='$parent.$parent.selldep' placeholder='请选择'
|
|
61
|
-
condition="f_outlets = '{}'"
|
|
62
|
-
close-on-select></v-select>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
65
|
-
<label class="font_normal_body _zoom4" >售气站点</label>
|
|
66
|
-
<input type="text" class="form-control _zoom6" v-model="model.op_spot"
|
|
67
|
-
condition="op_spot = '{}'" placeholder="售气站点">
|
|
68
|
-
</div>
|
|
69
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
70
|
-
<label class="font_normal_body _zoom4" >人员编号</label>
|
|
71
|
-
<input type="text" class="form-control _zoom6" v-model="model.op_id"
|
|
72
|
-
condition="op_id = '{}'" placeholder="操作员编号">
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="row">
|
|
76
|
-
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
77
|
-
<button class="btn btn-success" @click="search()">查询</button>
|
|
78
|
-
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
79
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
80
|
-
:field="$parent.$parent.getExportField"
|
|
81
|
-
sqlurl="rs/logic/exportfile" sql-name="changan_sellgasByItem" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
82
|
-
<print-data :model="$parent.model" :field="$parent.$parent.getExportField"
|
|
83
|
-
:defaultfield="$parent.$parent.defaultfield" print-name="售气按站点"></print-data>
|
|
84
|
-
<div
|
|
85
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
86
|
-
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</criteria>
|
|
91
|
-
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
92
|
-
<template partial='head'>
|
|
93
|
-
<tr>
|
|
94
|
-
<th><nobr>部门</nobr></th>
|
|
95
|
-
<th><nobr>站号</nobr></th>
|
|
96
|
-
<th><nobr>名称</nobr></th>
|
|
97
|
-
<th><nobr>气量</nobr></th>
|
|
98
|
-
<th><nobr>金额</nobr></th>
|
|
99
|
-
<th><nobr>数量</nobr></th>
|
|
100
|
-
</tr>
|
|
101
|
-
</template>
|
|
102
|
-
<template partial='body'>
|
|
103
|
-
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
104
|
-
<td style="text-align: center;"><nobr>{{row.op_spot}}</nobr></td>
|
|
105
|
-
<td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
|
|
106
|
-
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
107
|
-
<td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
|
|
108
|
-
<td style="text-align: center;"><nobr>{{row.c}}</nobr></td>
|
|
109
|
-
</template>
|
|
110
|
-
</data-grid>
|
|
111
|
-
</criteria-paged>
|
|
112
|
-
<table class="table-hover">
|
|
113
|
-
<tr class="table-bordered">
|
|
114
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
115
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计: {{sumsmodel.f_pregas}}</td>
|
|
116
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计: {{sumsmodel.f_preamount}}</td>
|
|
117
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">数量合计: {{sumsmodel.c}}</td>
|
|
118
|
-
</tr>
|
|
119
|
-
</table>
|
|
120
|
-
</div>
|
|
121
|
-
</template>
|
|
122
|
-
<script>
|
|
123
|
-
import { PagedList } from 'vue-client'
|
|
124
|
-
import exportConfig from '../config/exportConfig'
|
|
125
|
-
|
|
126
|
-
export default {
|
|
127
|
-
data() {
|
|
128
|
-
return {
|
|
129
|
-
defaultfield:[],
|
|
130
|
-
sumsmodel: {},
|
|
131
|
-
criteriaShow:true,
|
|
132
|
-
model: new PagedList('rs/sql/changan_sellgasByItem', 20,{item:"'f_outlets,op_spot,f_operator'"},{
|
|
133
|
-
f_pregas: 0,f_preamount: 0,c:0
|
|
134
|
-
}),
|
|
135
|
-
metertypes: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
|
136
|
-
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
137
|
-
filialelist: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
ready(){
|
|
141
|
-
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
|
|
142
|
-
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
143
|
-
},
|
|
144
|
-
methods: {
|
|
145
|
-
selfSearch (args) {
|
|
146
|
-
this.model.search(args.condition, args.model)
|
|
147
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
148
|
-
},
|
|
149
|
-
hidden(){
|
|
150
|
-
this.criteriaShow = !this.criteriaShow
|
|
151
|
-
},
|
|
152
|
-
clear(){
|
|
153
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
154
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
155
|
-
})
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
watch:{
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
computed:{
|
|
162
|
-
gasproperties () {
|
|
163
|
-
let rs = []
|
|
164
|
-
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
165
|
-
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
166
|
-
}
|
|
167
|
-
return [{label: '全部', value: ''}, ...rs]
|
|
168
|
-
},
|
|
169
|
-
selldep () {
|
|
170
|
-
let rs = []
|
|
171
|
-
if(this.$refs.paged.$refs.cri.model.f_filiale){
|
|
172
|
-
this.$refs.paged.$refs.cri.model.f_outlets = ''
|
|
173
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_filiale) ]
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
return [{label: '全部', value: ''}]
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
getCondition(){
|
|
180
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
7
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
8
|
+
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
9
|
+
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
10
|
+
v-model="model.startDate"
|
|
11
|
+
:value.sync="model.startDate"
|
|
12
|
+
:format="'yyyy-MM-dd'"
|
|
13
|
+
:show-reset-button="true"
|
|
14
|
+
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
15
|
+
</datepicker>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
18
|
+
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
19
|
+
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
20
|
+
v-model="model.endDate"
|
|
21
|
+
:value.sync="model.endDate"
|
|
22
|
+
:format="'yyyy-MM-dd'"
|
|
23
|
+
:show-reset-button="true"
|
|
24
|
+
condition="f_operate_date <= to_date('{} 23.59.59','yyyy-mm-dd hh24:mi:ss')">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
28
|
+
<label class="font_normal_body _zoom4" >气表类型</label>
|
|
29
|
+
<v-select :value.sync="model.f_meter_type"
|
|
30
|
+
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
|
|
31
|
+
condition="f_meter_type = '{}'"
|
|
32
|
+
close-on-select></v-select>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
35
|
+
<label class="font_normal_body _zoom4" >用户类型</label>
|
|
36
|
+
<v-select :value.sync="model.f_user_type"
|
|
37
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
38
|
+
condition="f_user_type = '{}'"
|
|
39
|
+
close-on-select></v-select>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
42
|
+
<label class="font_normal_body _zoom4" >用气性质</label>
|
|
43
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
44
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
45
|
+
condition="f_gasproperties = '{}'"
|
|
46
|
+
close-on-select></v-select>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
+
<label class="font_normal_body _zoom4" >售气单位</label>
|
|
50
|
+
<v-select :value.sync="model.f_filiale"
|
|
51
|
+
v-model="model.f_filiale"
|
|
52
|
+
:options='$parent.$parent.filialelist' placeholder='请选择'
|
|
53
|
+
condition="f_filiale = '{}'"
|
|
54
|
+
close-on-select></v-select>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
57
|
+
<label class="font_normal_body _zoom4" >售气部门</label>
|
|
58
|
+
<v-select :value.sync="model.f_outlets"
|
|
59
|
+
v-model="model.f_outlets"
|
|
60
|
+
:options='$parent.$parent.selldep' placeholder='请选择'
|
|
61
|
+
condition="f_outlets = '{}'"
|
|
62
|
+
close-on-select></v-select>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
65
|
+
<label class="font_normal_body _zoom4" >售气站点</label>
|
|
66
|
+
<input type="text" class="form-control _zoom6" v-model="model.op_spot"
|
|
67
|
+
condition="op_spot = '{}'" placeholder="售气站点">
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
70
|
+
<label class="font_normal_body _zoom4" >人员编号</label>
|
|
71
|
+
<input type="text" class="form-control _zoom6" v-model="model.op_id"
|
|
72
|
+
condition="op_id = '{}'" placeholder="操作员编号">
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="row">
|
|
76
|
+
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
77
|
+
<button class="btn btn-success" @click="search()">查询</button>
|
|
78
|
+
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
79
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
80
|
+
:field="$parent.$parent.getExportField"
|
|
81
|
+
sqlurl="rs/logic/exportfile" sql-name="changan_sellgasByItem" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
82
|
+
<print-data :model="$parent.model" :field="$parent.$parent.getExportField"
|
|
83
|
+
:defaultfield="$parent.$parent.defaultfield" print-name="售气按站点"></print-data>
|
|
84
|
+
<div
|
|
85
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
86
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</criteria>
|
|
91
|
+
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
92
|
+
<template partial='head'>
|
|
93
|
+
<tr>
|
|
94
|
+
<th><nobr>部门</nobr></th>
|
|
95
|
+
<th><nobr>站号</nobr></th>
|
|
96
|
+
<th><nobr>名称</nobr></th>
|
|
97
|
+
<th><nobr>气量</nobr></th>
|
|
98
|
+
<th><nobr>金额</nobr></th>
|
|
99
|
+
<th><nobr>数量</nobr></th>
|
|
100
|
+
</tr>
|
|
101
|
+
</template>
|
|
102
|
+
<template partial='body'>
|
|
103
|
+
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
104
|
+
<td style="text-align: center;"><nobr>{{row.op_spot}}</nobr></td>
|
|
105
|
+
<td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
|
|
106
|
+
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
107
|
+
<td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
|
|
108
|
+
<td style="text-align: center;"><nobr>{{row.c}}</nobr></td>
|
|
109
|
+
</template>
|
|
110
|
+
</data-grid>
|
|
111
|
+
</criteria-paged>
|
|
112
|
+
<table class="table-hover">
|
|
113
|
+
<tr class="table-bordered">
|
|
114
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
115
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计: {{sumsmodel.f_pregas}}</td>
|
|
116
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计: {{sumsmodel.f_preamount}}</td>
|
|
117
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">数量合计: {{sumsmodel.c}}</td>
|
|
118
|
+
</tr>
|
|
119
|
+
</table>
|
|
120
|
+
</div>
|
|
121
|
+
</template>
|
|
122
|
+
<script>
|
|
123
|
+
import { PagedList } from 'vue-client'
|
|
124
|
+
import exportConfig from '../config/exportConfig'
|
|
125
|
+
|
|
126
|
+
export default {
|
|
127
|
+
data() {
|
|
128
|
+
return {
|
|
129
|
+
defaultfield:[],
|
|
130
|
+
sumsmodel: {},
|
|
131
|
+
criteriaShow:true,
|
|
132
|
+
model: new PagedList('rs/sql/changan_sellgasByItem', 20,{item:"'f_outlets,op_spot,f_operator'"},{
|
|
133
|
+
f_pregas: 0,f_preamount: 0,c:0
|
|
134
|
+
}),
|
|
135
|
+
metertypes: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
|
136
|
+
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
137
|
+
filialelist: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
ready(){
|
|
141
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
|
|
142
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
143
|
+
},
|
|
144
|
+
methods: {
|
|
145
|
+
selfSearch (args) {
|
|
146
|
+
this.model.search(args.condition, args.model)
|
|
147
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
148
|
+
},
|
|
149
|
+
hidden(){
|
|
150
|
+
this.criteriaShow = !this.criteriaShow
|
|
151
|
+
},
|
|
152
|
+
clear(){
|
|
153
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
154
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
155
|
+
})
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
watch:{
|
|
159
|
+
|
|
160
|
+
},
|
|
161
|
+
computed:{
|
|
162
|
+
gasproperties () {
|
|
163
|
+
let rs = []
|
|
164
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
165
|
+
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
166
|
+
}
|
|
167
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
168
|
+
},
|
|
169
|
+
selldep () {
|
|
170
|
+
let rs = []
|
|
171
|
+
if(this.$refs.paged.$refs.cri.model.f_filiale){
|
|
172
|
+
this.$refs.paged.$refs.cri.model.f_outlets = ''
|
|
173
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_filiale) ]
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
return [{label: '全部', value: ''}]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
getCondition(){
|
|
180
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}`,
|
|
181
|
+
item:'f_outlets,op_spot,f_operator'}
|
|
182
|
+
},
|
|
183
|
+
getExportField () {
|
|
184
|
+
return {
|
|
185
|
+
'f_outlets': '部门','op_spot': '站号','f_operator': '名称',
|
|
186
|
+
'f_pregas':'气量',
|
|
187
|
+
'f_preamount': '金额','.c':'数量',
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
</script>
|
|
@@ -90,10 +90,13 @@ export default{
|
|
|
90
90
|
},
|
|
91
91
|
|
|
92
92
|
changemeterConfig: {
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
93
|
+
'f_card_id': '旧表卡号','f_newcard_id': '新表卡号','f_user_name':'用户姓名','f_address': '用户地址',
|
|
94
|
+
'f_residential_area': '小区', 'f_building': '楼栋',
|
|
95
|
+
'f_unit': '单元','f_floor': '楼层','f_room': '门牌号','f_meternumber': '表号','f_meternumber':'旧表表号','f_newmeternumber':'新表表号',
|
|
96
|
+
'f_type': '换表类型','f_changemeter_fee': '换表费','f_freereason':'是否保修期免交','f_freereason':'免交原因','f_meter_base': '旧表底数','f_newmeter_base': '新表底数',
|
|
97
|
+
'f_meter_classify': '旧气表类型','f_newmeter_classify': '新气表类型','f_shiftgas':'转移气量','f_shiftgas_money':'转移金额','f_tablebase_gas':'旧表剩余气量','f_tablebase_money':'旧表剩余金额',
|
|
98
|
+
'f_new_meterbrand':'新气表品牌','f_new_meternmodel':'新气表型号','f_newmeter_base':'新表底数','f_newmetertitles':'新表封号','f_reason':'换表原因','f_result_change':'其他换表原因','f_operate_date':'操作日期',
|
|
99
|
+
'f_state': '状态','f_changemeter_date': '换表日期','f_operator': '操作员'
|
|
97
100
|
},
|
|
98
101
|
|
|
99
102
|
otherchargeConfig: {
|