manage-client 3.3.53 → 3.3.55
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 +1 -1
- package/src/components/sale/businessquery/ChargeQuery.vue +30 -35
- package/src/components/sale/businessquery/WebMeterMonthGasQuery.vue +581 -0
- package/src/filiale/qianneng/QnAqzzYsmx.vue +28 -0
- package/src/filiale/qianneng/exportConfig.js +1 -1
- package/src/filiale/shiquan/RecordInfoQuery.vue +1447 -0
- package/src/filiale/shiquan/config/DefaultPrint.js +6 -0
- package/src/filiale/shiquan/config/exportConfig.js +2276 -0
- package/src/filiale/shiquan/config/tableConfig.js +54 -0
- package/src/filiale/shiquan/sale.js +9 -0
- package/src/filiale/zhongsheng/ChargeQuery.vue +32 -55
- package/src/saleManage.js +5 -2
- package/src/webmeterManage.js +1 -1
package/package.json
CHANGED
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
<v-select :value.sync="model.f_price_name"
|
|
156
156
|
v-model="model.f_price_name"
|
|
157
157
|
multiple
|
|
158
|
-
:options="$parent.$parent.
|
|
158
|
+
:options="$parent.$parent.pricenames"
|
|
159
159
|
condition="f_price_name in {}"
|
|
160
160
|
></v-select>
|
|
161
161
|
</div>
|
|
@@ -963,8 +963,36 @@
|
|
|
963
963
|
})
|
|
964
964
|
},
|
|
965
965
|
methods: {
|
|
966
|
-
pricetypechanged(){
|
|
966
|
+
async pricetypechanged(){
|
|
967
967
|
this.$refs.paged.$refs.cri.model.f_price_name = []
|
|
968
|
+
this.pricenames = []
|
|
969
|
+
if (this.$refs.paged.$refs.cri.model.pricetype) {
|
|
970
|
+
let http = new HttpResetClass()
|
|
971
|
+
let param = {
|
|
972
|
+
items: 'f_price_name',
|
|
973
|
+
tablename: 't_stairprice',
|
|
974
|
+
condition: `f_price_type = '${this.$refs.paged.$refs.cri.model.pricetype[0]}' and f_orgid = '${this.$login.f.orgid}'`,
|
|
975
|
+
orderitem: 'id'
|
|
976
|
+
}
|
|
977
|
+
var res = await http.load('POST', 'rs/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取设备列表失败!'})
|
|
978
|
+
let uniqueMap = {}
|
|
979
|
+
let arr = []
|
|
980
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
981
|
+
let item = res.data[i];
|
|
982
|
+
if (!uniqueMap[item.f_price_name]) {
|
|
983
|
+
arr.push(item);
|
|
984
|
+
uniqueMap[item.f_price_name] = true;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
console.log('arr',arr)
|
|
988
|
+
if (arr.length > 0) {
|
|
989
|
+
arr.forEach(row => {
|
|
990
|
+
this.pricenames.push({label: row.f_price_name,value: row.f_price_name})
|
|
991
|
+
})
|
|
992
|
+
} else {
|
|
993
|
+
this.pricenames.push({label: '全部', value: ''})
|
|
994
|
+
}
|
|
995
|
+
}
|
|
968
996
|
},
|
|
969
997
|
// 获取设备下拉选
|
|
970
998
|
async getEquipment () {
|
|
@@ -1244,39 +1272,6 @@
|
|
|
1244
1272
|
}
|
|
1245
1273
|
return aaa
|
|
1246
1274
|
},
|
|
1247
|
-
getPricenames() {
|
|
1248
|
-
let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
|
|
1249
|
-
let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
|
|
1250
|
-
let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
|
|
1251
|
-
console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
|
|
1252
|
-
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
1253
|
-
let rs = []
|
|
1254
|
-
let priceArr = []
|
|
1255
|
-
if ( pricetype.length >0) {
|
|
1256
|
-
let params = {
|
|
1257
|
-
f_price_type: pricetype[0],
|
|
1258
|
-
filter: this.f_filialeid,
|
|
1259
|
-
prices: this.prices
|
|
1260
|
-
}
|
|
1261
|
-
this.$MagGetSaleParam.getPrice(params).forEach((item) => {
|
|
1262
|
-
let temp = {}
|
|
1263
|
-
temp.label = item.label
|
|
1264
|
-
temp.value = item.value.f_price_name
|
|
1265
|
-
priceArr.push(temp)
|
|
1266
|
-
})
|
|
1267
|
-
if(priceArr.length == 0 ){
|
|
1268
|
-
rs= [{label: '全部', value: ''}]
|
|
1269
|
-
}else{
|
|
1270
|
-
rs = [ ...priceArr]
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
if (rs.length === 0) {
|
|
1274
|
-
console.log('rs读出来是空')
|
|
1275
|
-
this.$refs.paged.$refs.cri.model.f_price_name = ''
|
|
1276
|
-
}
|
|
1277
|
-
return rs
|
|
1278
|
-
}
|
|
1279
|
-
},
|
|
1280
1275
|
getCondition() {
|
|
1281
1276
|
return {
|
|
1282
1277
|
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged >
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-inline auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:format="'yyyy-MM-dd'"
|
|
15
|
+
:show-reset-button="true"
|
|
16
|
+
>
|
|
17
|
+
</datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
21
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
22
|
+
v-model="model.endDate"
|
|
23
|
+
:value.sync="model.endDate"
|
|
24
|
+
:format="'yyyy-MM-dd'"
|
|
25
|
+
:show-reset-button="true"
|
|
26
|
+
>
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label class="font_normal_body">客户编号</label>
|
|
31
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
32
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group">
|
|
35
|
+
<label class="font_normal_body">客户名称</label>
|
|
36
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
37
|
+
condition="f_user_name = '{}'" placeholder="客户名称">
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div class="span" style="float:right;">
|
|
41
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
42
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
43
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
44
|
+
:field="$parent.$parent.getfield"
|
|
45
|
+
:footer="$parent.$parent.footer"
|
|
46
|
+
:header="$parent.$parent.other"
|
|
47
|
+
sqlurl="rs/logic/exportfile"
|
|
48
|
+
sql-name="MonthGasQuery"
|
|
49
|
+
template-name='月用气导出'
|
|
50
|
+
:choose-col="true"></export-excel>
|
|
51
|
+
<!-- <print-data :model="$parent.model" :field="$parent.$parent.getfield"-->
|
|
52
|
+
<!-- :defaultfield="$parent.$parent.defaultfield" print-name="非民用用气查询打印"-->
|
|
53
|
+
<!-- ></print-data>-->
|
|
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_address"
|
|
61
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</criteria>
|
|
66
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
67
|
+
<template partial='head'>
|
|
68
|
+
<tr>
|
|
69
|
+
<th><nobr>用户编号</nobr></th>
|
|
70
|
+
<th><nobr>用户姓名</nobr></th>
|
|
71
|
+
<th><nobr>用户地址</nobr></th>
|
|
72
|
+
<th><nobr>单双月</nobr></th>
|
|
73
|
+
<th><nobr>1号</nobr></th>
|
|
74
|
+
<th><nobr>2号</nobr></th>
|
|
75
|
+
<th><nobr>3号</nobr></th>
|
|
76
|
+
<th><nobr>4号</nobr></th>
|
|
77
|
+
<th><nobr>5号</nobr></th>
|
|
78
|
+
<th><nobr>6号</nobr></th>
|
|
79
|
+
<th><nobr>7号</nobr></th>
|
|
80
|
+
<th><nobr>8号</nobr></th>
|
|
81
|
+
<th><nobr>9号</nobr></th>
|
|
82
|
+
<th><nobr>10号</nobr></th>
|
|
83
|
+
<th><nobr>11号</nobr></th>
|
|
84
|
+
<th><nobr>12号</nobr></th>
|
|
85
|
+
<th><nobr>13号</nobr></th>
|
|
86
|
+
<th><nobr>14号</nobr></th>
|
|
87
|
+
<th><nobr>15号</nobr></th>
|
|
88
|
+
<th><nobr>16号</nobr></th>
|
|
89
|
+
<th><nobr>17号</nobr></th>
|
|
90
|
+
<th><nobr>18号</nobr></th>
|
|
91
|
+
<th><nobr>19号</nobr></th>
|
|
92
|
+
<th><nobr>20号</nobr></th>
|
|
93
|
+
<th><nobr>21号</nobr></th>
|
|
94
|
+
<th><nobr>22号</nobr></th>
|
|
95
|
+
<th><nobr>23号</nobr></th>
|
|
96
|
+
<th><nobr>24号</nobr></th>
|
|
97
|
+
<th><nobr>25号</nobr></th>
|
|
98
|
+
<th><nobr>26号</nobr></th>
|
|
99
|
+
<th><nobr>27号</nobr></th>
|
|
100
|
+
<th><nobr>28号</nobr></th>
|
|
101
|
+
<th><nobr>29号</nobr></th>
|
|
102
|
+
<th><nobr>30号</nobr></th>
|
|
103
|
+
<th><nobr>31号</nobr></th>
|
|
104
|
+
|
|
105
|
+
<th><nobr>最高用气量</nobr></th>
|
|
106
|
+
<th><nobr>最低用气量</nobr></th>
|
|
107
|
+
<th><nobr>日均用气量</nobr></th>
|
|
108
|
+
<th><nobr>总用气量</nobr></th>
|
|
109
|
+
<th><nobr>去年同期日均用气量</nobr></th>
|
|
110
|
+
<th><nobr>去年同期总用气量</nobr></th>
|
|
111
|
+
|
|
112
|
+
</tr>
|
|
113
|
+
</template>
|
|
114
|
+
<template partial='body'>
|
|
115
|
+
<td style="text-align: center;">
|
|
116
|
+
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
117
|
+
</td>
|
|
118
|
+
<td style="text-align: center;">
|
|
119
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
120
|
+
</td>
|
|
121
|
+
<td style="text-align: center;">
|
|
122
|
+
<nobr>{{row.f_address}}</nobr>
|
|
123
|
+
</td>
|
|
124
|
+
<td style="text-align: center;">
|
|
125
|
+
<nobr>{{row.f_hand_month}}</nobr>
|
|
126
|
+
</td>
|
|
127
|
+
<td style="text-align: center;">
|
|
128
|
+
<nobr>{{row.d1}}</nobr>
|
|
129
|
+
</td>
|
|
130
|
+
<td style="text-align: center;">
|
|
131
|
+
<nobr>{{row.d2}}</nobr>
|
|
132
|
+
</td>
|
|
133
|
+
<td style="text-align: center;">
|
|
134
|
+
<nobr>{{row.d3}}</nobr>
|
|
135
|
+
</td>
|
|
136
|
+
<td style="text-align: center;">
|
|
137
|
+
<nobr>{{row.d4}}</nobr>
|
|
138
|
+
</td>
|
|
139
|
+
<td style="text-align: center;">
|
|
140
|
+
<nobr>{{row.d5}}</nobr>
|
|
141
|
+
</td>
|
|
142
|
+
<td style="text-align: center;">
|
|
143
|
+
<nobr>{{row.d6}}</nobr>
|
|
144
|
+
</td>
|
|
145
|
+
<td style="text-align: center;">
|
|
146
|
+
<nobr>{{row.d7}}</nobr>
|
|
147
|
+
</td>
|
|
148
|
+
<td style="text-align: center;">
|
|
149
|
+
<nobr>{{row.d8}}</nobr>
|
|
150
|
+
</td>
|
|
151
|
+
<td style="text-align: center;">
|
|
152
|
+
<nobr>{{row.d9}}</nobr>
|
|
153
|
+
</td>
|
|
154
|
+
<td style="text-align: center;">
|
|
155
|
+
<nobr>{{row.d10}}</nobr>
|
|
156
|
+
</td>
|
|
157
|
+
<td style="text-align: center;">
|
|
158
|
+
<nobr>{{row.d11}}</nobr>
|
|
159
|
+
</td>
|
|
160
|
+
<td style="text-align: center;">
|
|
161
|
+
<nobr>{{row.d12}}</nobr>
|
|
162
|
+
</td>
|
|
163
|
+
<td style="text-align: center;">
|
|
164
|
+
<nobr>{{row.d13}}</nobr>
|
|
165
|
+
</td>
|
|
166
|
+
<td style="text-align: center;">
|
|
167
|
+
<nobr>{{row.d14}}</nobr>
|
|
168
|
+
</td>
|
|
169
|
+
<td style="text-align: center;">
|
|
170
|
+
<nobr>{{row.d15}}</nobr>
|
|
171
|
+
</td>
|
|
172
|
+
<td style="text-align: center;">
|
|
173
|
+
<nobr>{{row.d16}}</nobr>
|
|
174
|
+
</td>
|
|
175
|
+
<td style="text-align: center;">
|
|
176
|
+
<nobr>{{row.d17}}</nobr>
|
|
177
|
+
</td>
|
|
178
|
+
<td style="text-align: center;">
|
|
179
|
+
<nobr>{{row.d18}}</nobr>
|
|
180
|
+
</td>
|
|
181
|
+
<td style="text-align: center;">
|
|
182
|
+
<nobr>{{row.d19}}</nobr>
|
|
183
|
+
</td>
|
|
184
|
+
<td style="text-align: center;">
|
|
185
|
+
<nobr>{{row.d20}}</nobr>
|
|
186
|
+
</td>
|
|
187
|
+
<td style="text-align: center;">
|
|
188
|
+
<nobr>{{row.d21}}</nobr>
|
|
189
|
+
</td>
|
|
190
|
+
<td style="text-align: center;">
|
|
191
|
+
<nobr>{{row.d20}}</nobr>
|
|
192
|
+
</td>
|
|
193
|
+
<td style="text-align: center;">
|
|
194
|
+
<nobr>{{row.d23}}</nobr>
|
|
195
|
+
</td>
|
|
196
|
+
<td style="text-align: center;">
|
|
197
|
+
<nobr>{{row.d24}}</nobr>
|
|
198
|
+
</td>
|
|
199
|
+
<td style="text-align: center;">
|
|
200
|
+
<nobr>{{row.d25}}</nobr>
|
|
201
|
+
</td>
|
|
202
|
+
<td style="text-align: center;">
|
|
203
|
+
<nobr>{{row.d26}}</nobr>
|
|
204
|
+
</td>
|
|
205
|
+
<td style="text-align: center;">
|
|
206
|
+
<nobr>{{row.d27}}</nobr>
|
|
207
|
+
</td>
|
|
208
|
+
<td style="text-align: center;">
|
|
209
|
+
<nobr>{{row.d28}}</nobr>
|
|
210
|
+
</td>
|
|
211
|
+
<td style="text-align: center;">
|
|
212
|
+
<nobr>{{row.d29}}</nobr>
|
|
213
|
+
</td>
|
|
214
|
+
<td style="text-align: center;">
|
|
215
|
+
<nobr>{{row.d30}}</nobr>
|
|
216
|
+
</td>
|
|
217
|
+
<td style="text-align: center;">
|
|
218
|
+
<nobr>{{row.d31}}</nobr>
|
|
219
|
+
</td>
|
|
220
|
+
|
|
221
|
+
<td style="text-align: center;">
|
|
222
|
+
<nobr>{{row.maxgas}}</nobr>
|
|
223
|
+
</td>
|
|
224
|
+
<td style="text-align: center;">
|
|
225
|
+
<nobr>{{row.mingas}}</nobr>
|
|
226
|
+
</td>
|
|
227
|
+
<td style="text-align: center;">
|
|
228
|
+
<nobr>{{row.avggas}}</nobr>
|
|
229
|
+
</td>
|
|
230
|
+
<td style="text-align: center;">
|
|
231
|
+
<nobr>{{row.sumgas}}</nobr>
|
|
232
|
+
</td>
|
|
233
|
+
<td style="text-align: center;">
|
|
234
|
+
<nobr>{{row.avggas1}}</nobr>
|
|
235
|
+
</td>
|
|
236
|
+
<td style="text-align: center;">
|
|
237
|
+
<nobr>{{row.sumgas1}}</nobr>
|
|
238
|
+
</td>
|
|
239
|
+
</template>
|
|
240
|
+
<template partial='foot'></template>
|
|
241
|
+
</data-grid>
|
|
242
|
+
</criteria-paged>
|
|
243
|
+
<table class="table-hover">
|
|
244
|
+
<tr style="position: relative" class="table-bordered">
|
|
245
|
+
<td
|
|
246
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
247
|
+
汇总信息
|
|
248
|
+
</td>
|
|
249
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
250
|
+
1日: {{sumsmodel.d1}}
|
|
251
|
+
</td>
|
|
252
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
253
|
+
2日: {{sumsmodel.d2}}
|
|
254
|
+
</td>
|
|
255
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
256
|
+
3日: {{sumsmodel.d3}}
|
|
257
|
+
</td>
|
|
258
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
259
|
+
4日: {{sumsmodel.d4}}
|
|
260
|
+
</td>
|
|
261
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
262
|
+
5日: {{sumsmodel.d5}}
|
|
263
|
+
</td>
|
|
264
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
265
|
+
6日: {{sumsmodel.d6}}
|
|
266
|
+
</td>
|
|
267
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
268
|
+
7日: {{sumsmodel.d7}}
|
|
269
|
+
</td>
|
|
270
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
271
|
+
8日: {{sumsmodel.d8}}
|
|
272
|
+
</td>
|
|
273
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
274
|
+
9日: {{sumsmodel.d9}}
|
|
275
|
+
</td>
|
|
276
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
277
|
+
10日: {{sumsmodel.d10}}
|
|
278
|
+
</td>
|
|
279
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
280
|
+
11日: {{sumsmodel.d11}}
|
|
281
|
+
</td>
|
|
282
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
283
|
+
12日: {{sumsmodel.d12}}
|
|
284
|
+
</td>
|
|
285
|
+
|
|
286
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
287
|
+
13日: {{sumsmodel.d13}}
|
|
288
|
+
</td>
|
|
289
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
290
|
+
14日: {{sumsmodel.d14}}
|
|
291
|
+
</td>
|
|
292
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
293
|
+
15日: {{sumsmodel.d15}}
|
|
294
|
+
</td>
|
|
295
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
296
|
+
16日: {{sumsmodel.d16}}
|
|
297
|
+
</td>
|
|
298
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
299
|
+
17日: {{sumsmodel.d17}}
|
|
300
|
+
</td>
|
|
301
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
302
|
+
18日: {{sumsmodel.d18}}
|
|
303
|
+
</td>
|
|
304
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
305
|
+
19日: {{sumsmodel.d19}}
|
|
306
|
+
</td>
|
|
307
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
308
|
+
20日: {{sumsmodel.d20}}
|
|
309
|
+
</td>
|
|
310
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
311
|
+
21日: {{sumsmodel.d21}}
|
|
312
|
+
</td>
|
|
313
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
314
|
+
22日: {{sumsmodel.d22}}
|
|
315
|
+
</td>
|
|
316
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
317
|
+
23日: {{sumsmodel.d23}}
|
|
318
|
+
</td>
|
|
319
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
320
|
+
24日: {{sumsmodel.d24}}
|
|
321
|
+
</td>
|
|
322
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
323
|
+
25日: {{sumsmodel.d25}} </td>
|
|
324
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
325
|
+
26日: {{sumsmodel.d26}}</td>
|
|
326
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
327
|
+
27日: {{sumsmodel.d27}}</td>
|
|
328
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
329
|
+
28日: {{sumsmodel.d28}}</td>
|
|
330
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
331
|
+
29日: {{sumsmodel.d29}}</td>
|
|
332
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
333
|
+
30日: {{sumsmodel.d30}}</td>
|
|
334
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
335
|
+
31日: {{sumsmodel.d31}} </td>
|
|
336
|
+
</tr>
|
|
337
|
+
</table>
|
|
338
|
+
</div>
|
|
339
|
+
<div v-if="show">
|
|
340
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
</template>
|
|
345
|
+
<script>
|
|
346
|
+
import { PagedList } from 'vue-client'
|
|
347
|
+
import defaultPrint from '../../../components/sale/config/DefaultPrint'
|
|
348
|
+
import exportConfig from '../../../components/sale/config/exportConfig'
|
|
349
|
+
|
|
350
|
+
let readySomething = async function(self) {
|
|
351
|
+
// 加载抄表册
|
|
352
|
+
await self.$LoadParams.loadMeterBook(self.f_filialeid)
|
|
353
|
+
self.loadMeterBooks()
|
|
354
|
+
|
|
355
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
356
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
357
|
+
await self.$MagLoadParams.loadParam()
|
|
358
|
+
|
|
359
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
360
|
+
}
|
|
361
|
+
export default {
|
|
362
|
+
title: '月用气查询',
|
|
363
|
+
name: 'WebMeterMonthGasQuery',
|
|
364
|
+
data () {
|
|
365
|
+
return {
|
|
366
|
+
model: new PagedList('rs/sql/WebMeterMonth', 15, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
|
|
367
|
+
d1: 0,
|
|
368
|
+
d2: 0,
|
|
369
|
+
d3: 0,
|
|
370
|
+
d4: 0,
|
|
371
|
+
d5: 0,
|
|
372
|
+
d6: 0,
|
|
373
|
+
d7: 0,
|
|
374
|
+
d8: 0,
|
|
375
|
+
d9: 0,
|
|
376
|
+
d10: 0,
|
|
377
|
+
d11: 0,
|
|
378
|
+
d12: 0,
|
|
379
|
+
d13: 0,
|
|
380
|
+
d14: 0,
|
|
381
|
+
d15: 0,
|
|
382
|
+
d16: 0,
|
|
383
|
+
d17: 0,
|
|
384
|
+
d18: 0,
|
|
385
|
+
d19: 0,
|
|
386
|
+
d20: 0,
|
|
387
|
+
d21: 0,
|
|
388
|
+
d22: 0,
|
|
389
|
+
d23: 0,
|
|
390
|
+
d24: 0,
|
|
391
|
+
d25: 0,
|
|
392
|
+
d26: 0,
|
|
393
|
+
d27: 0,
|
|
394
|
+
d28: 0,
|
|
395
|
+
d29: 0,
|
|
396
|
+
d30: 0,
|
|
397
|
+
d31: 0
|
|
398
|
+
}),
|
|
399
|
+
initres: {
|
|
400
|
+
org:[this.$login.f.orgid],
|
|
401
|
+
dep:[],
|
|
402
|
+
user:[],
|
|
403
|
+
},
|
|
404
|
+
other: [],
|
|
405
|
+
footer: [],
|
|
406
|
+
gasproperties:[],
|
|
407
|
+
show:false,
|
|
408
|
+
rowdata:{},
|
|
409
|
+
criteriaShow: false,
|
|
410
|
+
orgCondtionStr: '',
|
|
411
|
+
modelval: [],
|
|
412
|
+
printshow: false,
|
|
413
|
+
all: false,
|
|
414
|
+
fields: {},
|
|
415
|
+
thead: '',
|
|
416
|
+
tfoot: '',
|
|
417
|
+
//合计数据
|
|
418
|
+
sumsmodel: {},
|
|
419
|
+
defaultfield: [],
|
|
420
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
421
|
+
f_orgid: this.$login.f.orgid,
|
|
422
|
+
f_depid: this.$login.f.depids,
|
|
423
|
+
f_operatorid: this.$login.f.id,
|
|
424
|
+
usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
|
|
425
|
+
meterbooks:[{label: '全部',value: ''}]
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
ready () {
|
|
429
|
+
readySomething(this)
|
|
430
|
+
},
|
|
431
|
+
methods: {
|
|
432
|
+
// 加载抄表册
|
|
433
|
+
loadMeterBooks() {
|
|
434
|
+
this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
|
|
435
|
+
},
|
|
436
|
+
getotherfooter() {
|
|
437
|
+
this.other = [];
|
|
438
|
+
this.footer = [];
|
|
439
|
+
let otherInData = [];
|
|
440
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
441
|
+
let footerData = [], exportfield = this.getfield;
|
|
442
|
+
footerData.push("合计");
|
|
443
|
+
let self = this;
|
|
444
|
+
for (var field in self.sumsmodel) {
|
|
445
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
446
|
+
}
|
|
447
|
+
this.footer.push(footerData);
|
|
448
|
+
this.other.push(otherInData);
|
|
449
|
+
},
|
|
450
|
+
userTypeChange () {
|
|
451
|
+
this.gasproperties=[]
|
|
452
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
453
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
454
|
+
|
|
455
|
+
console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
456
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
457
|
+
}
|
|
458
|
+
else{
|
|
459
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
search(){
|
|
463
|
+
this.$refs.paged.$refs.cri.search()
|
|
464
|
+
},
|
|
465
|
+
cancel() {
|
|
466
|
+
this.show = false
|
|
467
|
+
},
|
|
468
|
+
selfSearch(args) {
|
|
469
|
+
this.model.search(args.condition, args.model)
|
|
470
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
471
|
+
},
|
|
472
|
+
clear() {
|
|
473
|
+
//清空部门和人员
|
|
474
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
475
|
+
//部门和人员变为全选
|
|
476
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
477
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
478
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
479
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
480
|
+
})
|
|
481
|
+
},
|
|
482
|
+
show() {
|
|
483
|
+
this.criteriaShow = true
|
|
484
|
+
},
|
|
485
|
+
hidden() {
|
|
486
|
+
this.criteriaShow = !this.criteriaShow
|
|
487
|
+
},
|
|
488
|
+
showmsg(obj){
|
|
489
|
+
this.rowdata=obj
|
|
490
|
+
this.show=true
|
|
491
|
+
},
|
|
492
|
+
getRes(condition,obj) {
|
|
493
|
+
this.orgCondtionStr = condition
|
|
494
|
+
this.orgname = obj.orgnames[0]
|
|
495
|
+
this.depname = obj.depnames[0]
|
|
496
|
+
},
|
|
497
|
+
put() {
|
|
498
|
+
// 对Modelval进行排序
|
|
499
|
+
this.sortModelval()
|
|
500
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
|
|
501
|
+
for (let key of this.modelval) {
|
|
502
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
503
|
+
}
|
|
504
|
+
this.thead += '</tr>'
|
|
505
|
+
},
|
|
506
|
+
print() {
|
|
507
|
+
this.$refs.print.PrintAsFile()
|
|
508
|
+
this.printshow = false
|
|
509
|
+
},
|
|
510
|
+
dealmsg(val) {
|
|
511
|
+
this.rowdata=val
|
|
512
|
+
this.show=true
|
|
513
|
+
val.model = this.model.model
|
|
514
|
+
this.$dispatch('deal-msg', val)
|
|
515
|
+
},
|
|
516
|
+
close() {
|
|
517
|
+
this.printshow = false
|
|
518
|
+
this.all = false
|
|
519
|
+
},
|
|
520
|
+
// 对选择的列进行排序
|
|
521
|
+
sortModelval() {
|
|
522
|
+
let sortModel = []
|
|
523
|
+
Object.keys(this.fields).forEach((key) => {
|
|
524
|
+
if (this.modelval.includes(key)) {
|
|
525
|
+
sortModel.push(key)
|
|
526
|
+
}
|
|
527
|
+
})
|
|
528
|
+
this.modelval = sortModel
|
|
529
|
+
console.log('选择的打印的字段', this.modelval)
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
computed: {
|
|
533
|
+
metertype () {
|
|
534
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
535
|
+
},
|
|
536
|
+
getCondition() {
|
|
537
|
+
return {
|
|
538
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
539
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
540
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
getfield() {
|
|
544
|
+
return exportConfig.webmetermonthGasConfig
|
|
545
|
+
},
|
|
546
|
+
usertypes() {
|
|
547
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
548
|
+
},
|
|
549
|
+
},
|
|
550
|
+
events: {
|
|
551
|
+
|
|
552
|
+
},
|
|
553
|
+
watch: {
|
|
554
|
+
'all'(val) {
|
|
555
|
+
if (val) {
|
|
556
|
+
this.modelval = this.bodyData
|
|
557
|
+
} else {
|
|
558
|
+
this.modelval = defaultPrint.config
|
|
559
|
+
this.put()
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
'modelval.length'() {
|
|
563
|
+
this.put()
|
|
564
|
+
},
|
|
565
|
+
sumsmodel: {
|
|
566
|
+
handler: function (val) {
|
|
567
|
+
this.getotherfooter();
|
|
568
|
+
},
|
|
569
|
+
deep: true
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
</script>
|
|
574
|
+
<style>
|
|
575
|
+
.datapanel {
|
|
576
|
+
color: #333;
|
|
577
|
+
background-color: white;
|
|
578
|
+
padding: 10px 20px;
|
|
579
|
+
border-radius:15px;
|
|
580
|
+
}
|
|
581
|
+
</style>
|