manage-client 4.1.58 → 4.1.59
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/SellReport/jinhong/JhDayReport.vue +92 -12
- package/src/components/SellReport/jinhong/JhPublicGasPrice2Report.vue +53 -35
- package/src/filiale/bazhong/ReportDataQuery.vue +319 -0
- package/src/filiale/bazhong/config/DefaultPrint.js +6 -0
- package/src/filiale/bazhong/config/DefaultSelect.js +18 -0
- package/src/filiale/bazhong/config/exportConfig.js +2775 -0
- package/src/filiale/bazhong/config/tableConfig.js +53 -0
- package/src/filiale/bazhong/webmeterManage.js +7 -0
- package/src/filiale/liaoyuan/HandplanRatioQuery.vue +687 -0
- package/src/filiale/liaoyuan/WebHandplanRatioQuery.vue +702 -0
- package/src/filiale/liaoyuan/exportConfig.js +495 -475
- package/src/filiale/liaoyuan/sale.js +4 -0
- package/src/filiale/tongchuan/FmyGasDeviceQuery.vue +2 -2
- package/src/filiale/tongchuan/GasDeviceQuery.vue +3 -3
- package/src/filiale/tongchuan/PriceChangeQuery.vue +2 -2
- package/src/filiale/xinkang/GasUsageSummary.vue +236 -0
- package/src/filiale/xinkang/reportManage.js +2 -0
- package/src/filiale/yuansheng/RecordInfoQuery.vue +1497 -0
- package/src/filiale/yuansheng/sale.js +4 -0
- package/src/filiale/jinbin/exportConfig.js +0 -1110
- package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +0 -1372
- package/src/filiale/jinbin/sale.js +0 -7
package/build/dev-server.js
CHANGED
|
@@ -21,7 +21,7 @@ var qtx = 'http://123.57.3.66:31467/'
|
|
|
21
21
|
// var fuwu = 'http://203.57.101.233:9001'
|
|
22
22
|
var bendi = 'http://123.57.3.66:31467/'
|
|
23
23
|
// var bendi = 'http://119.187.112.234:8400/'
|
|
24
|
-
var wode = 'http://
|
|
24
|
+
var wode = 'http://123.57.3.66:31467/'
|
|
25
25
|
// 192.168.
|
|
26
26
|
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
27
27
|
// var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
|
package/package.json
CHANGED
|
@@ -24,7 +24,40 @@
|
|
|
24
24
|
:show-reset-button="reset">
|
|
25
25
|
</datepicker>
|
|
26
26
|
</div>
|
|
27
|
-
<res-select-group :show-component="$parent.$parent.resshow"
|
|
27
|
+
<res-select-group :show-component="$parent.$parent.resshow"
|
|
28
|
+
:selectin="true" :initres="$parent.$parent.initres"
|
|
29
|
+
:cascade =true @re-res="$parent.$parent.getRes" v-ref:sel>
|
|
30
|
+
</res-select-group>
|
|
31
|
+
<div class="col-sm-2 form-group">
|
|
32
|
+
<label class="font_normal_body" title="参数:报表1收费类型">收费类型</label>
|
|
33
|
+
<v-select :value.sync="$parent.$parent.f_charge_type"
|
|
34
|
+
v-ref:f_charge_type
|
|
35
|
+
v-model="$parent.$parent.f_charge_type"
|
|
36
|
+
:options='$parent.$parent.chargeTypes'
|
|
37
|
+
placeholder='请选择'
|
|
38
|
+
:multiple="true">
|
|
39
|
+
</v-select>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-2 form-group">
|
|
42
|
+
<label class="font_normal_body" title="参数:报表1用气性质">用气性质</label>
|
|
43
|
+
<v-select :value.sync="$parent.$parent.f_gasproperties"
|
|
44
|
+
v-ref:gasproperties
|
|
45
|
+
v-model="$parent.$parent.f_gasproperties"
|
|
46
|
+
:options='$parent.$parent.gasproperties'
|
|
47
|
+
placeholder='请选择'
|
|
48
|
+
:multiple="true">
|
|
49
|
+
</v-select>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="col-sm-2 form-group">
|
|
52
|
+
<label class="font_normal_body" title="参数:付款方式">收费方式</label>
|
|
53
|
+
<v-select :value.sync="$parent.$parent.f_payment"
|
|
54
|
+
v-ref:payment
|
|
55
|
+
v-model="$parent.$parent.f_payment"
|
|
56
|
+
:options='$parent.$parent.payments'
|
|
57
|
+
placeholder='请选择'
|
|
58
|
+
:multiple="true">
|
|
59
|
+
</v-select>
|
|
60
|
+
</div>
|
|
28
61
|
</div>
|
|
29
62
|
<div class="span" style = "float:right;">
|
|
30
63
|
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
@@ -73,7 +106,7 @@
|
|
|
73
106
|
</tr>
|
|
74
107
|
</tfoot>
|
|
75
108
|
</table>
|
|
76
|
-
{{{ $parent.reportStr}}}
|
|
109
|
+
{{{ $parent.reportStr }}}
|
|
77
110
|
</div>
|
|
78
111
|
</criteria-paged>
|
|
79
112
|
</div>
|
|
@@ -98,13 +131,22 @@ export default {
|
|
|
98
131
|
depid: [],
|
|
99
132
|
orgname: '',
|
|
100
133
|
depname: '',
|
|
134
|
+
f_charge_type: '',
|
|
135
|
+
f_gasproperties: '',
|
|
136
|
+
f_payment: '',
|
|
101
137
|
criteriaShow: false,
|
|
102
138
|
operatorname: '',
|
|
103
139
|
orgCondtionStr: '1=1',
|
|
104
|
-
model: new DataModel('api/af-revenue/report/dayReport', {
|
|
105
|
-
|
|
140
|
+
model: new DataModel('api/af-revenue/report/dayReport', {
|
|
141
|
+
startDate: 'this.model.startDate',
|
|
142
|
+
endDate: 'this.model.endDate',
|
|
143
|
+
f_orgid: 'this.model.f_orgid',
|
|
144
|
+
f_charge_type: 'this.model.f_charge_type',
|
|
145
|
+
f_gasproperties: 'this.model.f_gasproperties',
|
|
146
|
+
f_payment: 'this.model.f_payment'
|
|
147
|
+
}),
|
|
106
148
|
reportStr: null,
|
|
107
|
-
resshow:['company','department','operator'],
|
|
149
|
+
resshow: ['company', 'department', 'operator'],
|
|
108
150
|
spans: 0,
|
|
109
151
|
initres: {
|
|
110
152
|
org: [this.$login.f.orgid],
|
|
@@ -122,7 +164,36 @@ export default {
|
|
|
122
164
|
searchData () {
|
|
123
165
|
this.$refs.paged.$refs.criteria.search()
|
|
124
166
|
},
|
|
167
|
+
appendCondition (data) {
|
|
168
|
+
let stringValue = '('
|
|
169
|
+
for (let i = 0; i < data.length; i++) {
|
|
170
|
+
if (data[i]) {
|
|
171
|
+
if (i === data.length - 1) {
|
|
172
|
+
stringValue = stringValue + "'" + data[i] + "'"
|
|
173
|
+
} else {
|
|
174
|
+
stringValue = stringValue + "'" + data[i] + "',"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
stringValue = stringValue + ')'
|
|
179
|
+
return stringValue
|
|
180
|
+
},
|
|
125
181
|
selfSearch (args) {
|
|
182
|
+
if (this.f_charge_type.length > 0) {
|
|
183
|
+
this.$refs.paged.$refs.criteria.model.f_charge_type = this.appendCondition(this.f_charge_type)
|
|
184
|
+
} else {
|
|
185
|
+
this.$refs.paged.$refs.criteria.model.f_charge_type = ''
|
|
186
|
+
}
|
|
187
|
+
if (this.f_gasproperties.length > 0) {
|
|
188
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties = this.appendCondition(this.f_gasproperties)
|
|
189
|
+
} else {
|
|
190
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
|
|
191
|
+
}
|
|
192
|
+
if (this.f_payment.length > 0) {
|
|
193
|
+
this.$refs.paged.$refs.criteria.model.f_payment = this.appendCondition(this.f_payment)
|
|
194
|
+
} else {
|
|
195
|
+
this.$refs.paged.$refs.criteria.model.f_payment = ''
|
|
196
|
+
}
|
|
126
197
|
this.printTime = this.$login.toStandardTimeString()
|
|
127
198
|
let orgcondition = '1=1'
|
|
128
199
|
let orgstr = this.orgCondtionStr
|
|
@@ -130,7 +201,7 @@ export default {
|
|
|
130
201
|
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
131
202
|
this.$refs.paged.search(args)
|
|
132
203
|
},
|
|
133
|
-
hidden() {
|
|
204
|
+
hidden () {
|
|
134
205
|
this.criteriaShow = !this.criteriaShow
|
|
135
206
|
},
|
|
136
207
|
getRes (condition, obj) {
|
|
@@ -144,24 +215,33 @@ export default {
|
|
|
144
215
|
this.userresid = obj
|
|
145
216
|
this.f_depid = obj
|
|
146
217
|
},
|
|
147
|
-
getuser (
|
|
218
|
+
getuser (obj, val) {
|
|
148
219
|
this.operatorname = val[0]
|
|
149
220
|
this.f_operatorid = obj
|
|
150
221
|
}
|
|
151
222
|
},
|
|
152
223
|
watch: {
|
|
153
224
|
'model.data' (val) {
|
|
154
|
-
let len=0
|
|
155
|
-
let a=val.split('</tr>')
|
|
156
|
-
for(let i=0;i<a.length;i++){
|
|
157
|
-
if(a[i].split('</td>').length-1>len){
|
|
158
|
-
len=a[i].split('</td>').length-1
|
|
225
|
+
let len = 0
|
|
226
|
+
let a = val.split('</tr>')
|
|
227
|
+
for (let i = 0; i < a.length; i++) {
|
|
228
|
+
if (a[i].split('</td>').length - 1 > len) {
|
|
229
|
+
len = a[i].split('</td>').length - 1
|
|
159
230
|
}
|
|
160
231
|
}
|
|
161
232
|
this.spans = len
|
|
162
233
|
}
|
|
163
234
|
},
|
|
164
235
|
computed: {
|
|
236
|
+
payments () {
|
|
237
|
+
return this.$appdata.getParam('付款方式')
|
|
238
|
+
},
|
|
239
|
+
gasproperties () {
|
|
240
|
+
return this.$appdata.getParam('报表1用气性质')
|
|
241
|
+
},
|
|
242
|
+
chargeTypes () {
|
|
243
|
+
return this.$appdata.getParam('报表1收费类型')
|
|
244
|
+
}
|
|
165
245
|
}
|
|
166
246
|
}
|
|
167
247
|
</script>
|
|
@@ -132,9 +132,9 @@
|
|
|
132
132
|
depresid: [],
|
|
133
133
|
userresid: [],
|
|
134
134
|
initres: {
|
|
135
|
-
org:[this.$login.f.orgid],
|
|
136
|
-
dep:[],
|
|
137
|
-
user:[]
|
|
135
|
+
org: [this.$login.f.orgid],
|
|
136
|
+
dep: [],
|
|
137
|
+
user: []
|
|
138
138
|
},
|
|
139
139
|
f_public_group1: '',
|
|
140
140
|
f_public_group2: '',
|
|
@@ -149,15 +149,15 @@
|
|
|
149
149
|
depname: '',
|
|
150
150
|
operatorname: '',
|
|
151
151
|
orgCondtionStr: '1=1',
|
|
152
|
-
model: new DataModel('api/af-revenue/report/jinHongPublicGasPriceReport2',
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
152
|
+
model: new DataModel('api/af-revenue/report/jinHongPublicGasPriceReport2', {
|
|
153
|
+
startDate: 'this.model.startDate',
|
|
154
|
+
endDate: 'this.model.endDate',
|
|
155
|
+
f_orgid: 'this.model.f_orgid',
|
|
156
|
+
f_public_group1: 'this.model.f_public_group1[0]',
|
|
157
|
+
f_public_group2: 'this.model.f_public_group2[0]',
|
|
158
|
+
group1Name: 'this.model.group1Name',
|
|
159
|
+
group2Name: 'this.model.group2Name'
|
|
160
|
+
}
|
|
161
161
|
),
|
|
162
162
|
reportStr: null,
|
|
163
163
|
show: false,
|
|
@@ -170,6 +170,20 @@
|
|
|
170
170
|
// this.$refs.paged.$refs.criteria.search()
|
|
171
171
|
},
|
|
172
172
|
methods: {
|
|
173
|
+
appendCondition (data) {
|
|
174
|
+
let stringValue = '('
|
|
175
|
+
for (let i = 0; i < data.length; i++) {
|
|
176
|
+
if (data[i]) {
|
|
177
|
+
if (i === data.length - 1) {
|
|
178
|
+
stringValue = stringValue + "'" + data[i] + "'"
|
|
179
|
+
} else {
|
|
180
|
+
stringValue = stringValue + "'" + data[i] + "',"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
stringValue = stringValue + ')'
|
|
185
|
+
return stringValue
|
|
186
|
+
},
|
|
173
187
|
searchData () {
|
|
174
188
|
this.$refs.paged.$refs.criteria.search()
|
|
175
189
|
},
|
|
@@ -179,22 +193,22 @@
|
|
|
179
193
|
this.$refs.paged.$refs.criteria.model.group2Name = this.$refs.paged.$refs.criteria.$refs.grouptwo.selectedItems
|
|
180
194
|
let orgcondition = '1 = 1'
|
|
181
195
|
if (this.f_orgid[0]) {
|
|
182
|
-
orgcondition += `
|
|
196
|
+
orgcondition += ` and f_orgid in ${this.appendCondition(this.f_orgid)}`
|
|
183
197
|
}
|
|
184
198
|
if (this.f_depid[0]) {
|
|
185
|
-
orgcondition += `
|
|
199
|
+
orgcondition += ` and f_depid in ${this.appendCondition(this.f_depid)}`
|
|
186
200
|
}
|
|
187
|
-
if(this.f_operatorid[0]) {
|
|
188
|
-
orgcondition += `
|
|
201
|
+
if (this.f_operatorid[0]) {
|
|
202
|
+
orgcondition += ` and f_operatorid in ${this.appendCondition(this.f_operatorid)}`
|
|
189
203
|
}
|
|
190
204
|
let name1 = args.model.f_public_group1
|
|
191
205
|
let name2 = args.model.f_public_group2
|
|
192
|
-
if (name1 == null || name1 == '' || name2 == null || name2 == ''){
|
|
193
|
-
alert(
|
|
206
|
+
if (name1 == null || name1 == '' || name2 == null || name2 == '') {
|
|
207
|
+
alert('请选择分组项!!!')
|
|
194
208
|
return
|
|
195
209
|
}
|
|
196
|
-
if (name2.toString() == name1.toString()){
|
|
197
|
-
alert(
|
|
210
|
+
if (name2.toString() == name1.toString()) {
|
|
211
|
+
alert('分组项一与分组项二不能重复!!!')
|
|
198
212
|
return
|
|
199
213
|
}
|
|
200
214
|
console.log(args.model.f_public_group1)
|
|
@@ -211,7 +225,7 @@
|
|
|
211
225
|
this.userresid = obj
|
|
212
226
|
this.f_depid = obj
|
|
213
227
|
},
|
|
214
|
-
getuser (
|
|
228
|
+
getuser (obj, val) {
|
|
215
229
|
this.operatorname = val[0]
|
|
216
230
|
this.f_operatorid = obj
|
|
217
231
|
}
|
|
@@ -230,26 +244,30 @@
|
|
|
230
244
|
var num = 0
|
|
231
245
|
for (let td of tds) {
|
|
232
246
|
let span = td.getAttribute('colspan')
|
|
233
|
-
num = num + ((span
|
|
247
|
+
num = num + ((span || 1) - 0)
|
|
234
248
|
}
|
|
235
249
|
this.spans = num
|
|
236
250
|
}
|
|
237
251
|
},
|
|
238
252
|
computed: {
|
|
239
|
-
group1() {
|
|
240
|
-
return [
|
|
241
|
-
{label:'
|
|
242
|
-
{label:'
|
|
243
|
-
{label:'
|
|
244
|
-
{label:
|
|
253
|
+
group1 () {
|
|
254
|
+
return [
|
|
255
|
+
{label: '用户类型', value: 'f_user_type'},
|
|
256
|
+
{label: '用气性质', value: 'f_gasproperties'},
|
|
257
|
+
{label: '用户标签', value: 'f_user_tags'},
|
|
258
|
+
{label: '用气类型', value: 'f_user_gas_type'},
|
|
259
|
+
{label: '气价名称 ', value: 'f_price_name'}
|
|
260
|
+
]
|
|
245
261
|
},
|
|
246
|
-
group2() {
|
|
247
|
-
return [
|
|
248
|
-
{label:'
|
|
249
|
-
{label:'
|
|
250
|
-
{label:'
|
|
251
|
-
{label:'
|
|
252
|
-
{label:'
|
|
262
|
+
group2 () {
|
|
263
|
+
return [
|
|
264
|
+
{label: '用户类型', value: 'f_user_type'},
|
|
265
|
+
{label: '用气性质', value: 'f_gasproperties'},
|
|
266
|
+
{label: '气价名称', value: 'f_price_name'},
|
|
267
|
+
{label: '用户标签', value: 'f_user_tags'},
|
|
268
|
+
{label: '用气类型', value: 'f_user_gas_type'},
|
|
269
|
+
{label: '单价', value: 'f_stair_price'}
|
|
270
|
+
]
|
|
253
271
|
}
|
|
254
272
|
}
|
|
255
273
|
}
|
|
@@ -0,0 +1,319 @@
|
|
|
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"
|
|
44
|
+
template-name='结算查询导出'
|
|
45
|
+
:choose-col="true"></export-excel>
|
|
46
|
+
<div style="float: right" class="button_spacing"
|
|
47
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
48
|
+
@click="$parent.$parent.hidden()"></div>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
54
|
+
<div class="col-sm-2 form-group">
|
|
55
|
+
<label class="font_normal_body">表 号</label>
|
|
56
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
57
|
+
condition="f_meternumber like '%{}%'" placeholder='表号'>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="col-sm-2 form-group">
|
|
60
|
+
<label class="font_normal_body"> 小区 </label>
|
|
61
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
|
|
62
|
+
condition="f_residential_area like '%{}%'" placeholder='小区'>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="col-sm-2 form-group">
|
|
65
|
+
<label class="font_normal_body">气表品牌</label>
|
|
66
|
+
<v-select
|
|
67
|
+
placeholder='气表品牌'
|
|
68
|
+
:value.sync="model.f_meter_brand"
|
|
69
|
+
v-model="model.f_meter_brand"
|
|
70
|
+
:options='$parent.$parent.meterbrands'
|
|
71
|
+
close-on-select
|
|
72
|
+
condition="f_meter_brand='{}'">
|
|
73
|
+
</v-select>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="col-sm-2 form-group">
|
|
76
|
+
<label class="font_normal_body">气表型号</label>
|
|
77
|
+
<v-select
|
|
78
|
+
placeholder='气表型号'
|
|
79
|
+
:value.sync="model.f_meter_style"
|
|
80
|
+
v-model="model.f_meter_style"
|
|
81
|
+
:options='$parent.$parent.metertypes'
|
|
82
|
+
close-on-select
|
|
83
|
+
condition="f_meter_style='{}'">
|
|
84
|
+
</v-select>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="col-sm-2 form-group">
|
|
87
|
+
<label for="startDate" class="font_normal_body">插入时间</label>
|
|
88
|
+
<datepicker id="startDate" placeholder="插入时间" style="width:60%"
|
|
89
|
+
v-model="model.startDate"
|
|
90
|
+
:value.sync="model.startDate"
|
|
91
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
92
|
+
:show-reset-button="true"
|
|
93
|
+
condition="f_insert_date >= '{}'">
|
|
94
|
+
</datepicker>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="col-sm-2 form-group">
|
|
97
|
+
<label for="endDate"
|
|
98
|
+
class="font_normal_body"> 至 </label>
|
|
99
|
+
<datepicker id="endDate" placeholder="插入时间" style="width:60%"
|
|
100
|
+
v-model="model.endDate"
|
|
101
|
+
:value.sync="model.endDate"
|
|
102
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
103
|
+
:show-reset-button="true"
|
|
104
|
+
condition="f_insert_date <= '{}'">
|
|
105
|
+
</datepicker>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="col-sm-2 form-group">
|
|
108
|
+
<label class="font_normal_body">客户类型</label>
|
|
109
|
+
<v-select :value.sync="model.f_user_type"
|
|
110
|
+
@change="$parent.$parent.userTypeChange()"
|
|
111
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
112
|
+
condition="f_user_type = '{}'"
|
|
113
|
+
close-on-select></v-select>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="col-sm-2 form-group">
|
|
116
|
+
<label class="font_normal_body">用气性质</label>
|
|
117
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
118
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
119
|
+
condition="f_gasproperties = '{}'"
|
|
120
|
+
close-on-select></v-select>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="col-sm-2 form-group">
|
|
123
|
+
<label class="font_normal_body">用气类型</label>
|
|
124
|
+
<v-select :value.sync="model.f_user_nature" v-model="model.f_user_nature"
|
|
125
|
+
:options='$parent.$parent.usernatures' placeholder='请选择'
|
|
126
|
+
condition="f_user_nature = '{}'"
|
|
127
|
+
close-on-select></v-select>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
</div>
|
|
132
|
+
</criteria>
|
|
133
|
+
|
|
134
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
135
|
+
<template partial='head'>
|
|
136
|
+
<tr>
|
|
137
|
+
<th v-for="row in $parent.$parent.$parent.headData">
|
|
138
|
+
<nobr>{{ row }}</nobr>
|
|
139
|
+
</th>
|
|
140
|
+
</tr>
|
|
141
|
+
</template>
|
|
142
|
+
<template partial='body'>
|
|
143
|
+
<tr v-for="row in $parent.$parent.$parent.model.rows">
|
|
144
|
+
<td style="text-align: center;" v-for="item in $parent.$parent.$parent.config.fieldMapping">
|
|
145
|
+
<nobr v-if="item == 'f_lowlithiumbattery'">{{ row[item] == 1 ? '是' : '否' }}</nobr>
|
|
146
|
+
<nobr v-if="item == 'f_magneticinterference'">{{ row[item] == 1 ? '异常' : '正常' }}</nobr>
|
|
147
|
+
<nobr v-if="item != 'f_magneticinterference' && item != 'f_lowlithiumbattery'">{{ row[item] }}</nobr>
|
|
148
|
+
</td>
|
|
149
|
+
</tr>
|
|
150
|
+
</template>
|
|
151
|
+
<template partial='foot'></template>
|
|
152
|
+
</data-grid>
|
|
153
|
+
</criteria-paged>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
</template>
|
|
158
|
+
|
|
159
|
+
<script>
|
|
160
|
+
import { PagedList } from 'vue-client'
|
|
161
|
+
import tableConfig from './config/tableConfig'
|
|
162
|
+
import exportConfig from './config/exportConfig'
|
|
163
|
+
import plugins from '../../plugins/GetLoginInfoService'
|
|
164
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
165
|
+
|
|
166
|
+
let readySomething = async function (self) {
|
|
167
|
+
await self.$MagLoadParams.loadParam()
|
|
168
|
+
self.initParams()
|
|
169
|
+
// self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
170
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
171
|
+
}
|
|
172
|
+
export default {
|
|
173
|
+
title: '上报数据查询',
|
|
174
|
+
data () {
|
|
175
|
+
return {
|
|
176
|
+
other: [],
|
|
177
|
+
sumsmodel: {},
|
|
178
|
+
footer: [],
|
|
179
|
+
model: new PagedList('api/af-revenue/sql/manage_getReportDataQuery', 20, {}),
|
|
180
|
+
criteriaShow: false,
|
|
181
|
+
config: {
|
|
182
|
+
fieldMapping: {
|
|
183
|
+
f_userinfo_code: '客户编号',
|
|
184
|
+
f_user_name: '客户名称'
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
WarningType: [
|
|
188
|
+
{label: '全部', value: ''}
|
|
189
|
+
],
|
|
190
|
+
Warningstyles: [
|
|
191
|
+
{label: '全部', value: ''}
|
|
192
|
+
],
|
|
193
|
+
styles: false,
|
|
194
|
+
headData: [],
|
|
195
|
+
bodyData: [],
|
|
196
|
+
gasproperties: [],
|
|
197
|
+
orgCondtionStr: ' and f_filialeid in (' + this.$login.f.orgid + ')',
|
|
198
|
+
resshow: ['company'],
|
|
199
|
+
org: [this.$login.f.orgid],
|
|
200
|
+
meterbrands: []
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
created () {
|
|
204
|
+
this.config.fieldMapping = tableConfig.ReportDataQuery
|
|
205
|
+
console.log('========================')
|
|
206
|
+
console.log(this.config.fieldMapping)
|
|
207
|
+
var item = '用户编号'
|
|
208
|
+
console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
|
|
209
|
+
console.log(this.config.fieldMapping[item])
|
|
210
|
+
this.headData = Object.keys(this.config.fieldMapping)
|
|
211
|
+
},
|
|
212
|
+
ready () {
|
|
213
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
214
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
215
|
+
console.log(this.$refs.paged.$refs.cri.model.startDate)
|
|
216
|
+
console.log(this.$refs.paged.$refs.cri.model.endDate)
|
|
217
|
+
readySomething(this).then(() => {
|
|
218
|
+
this.$emit('ready')
|
|
219
|
+
}).catch((error) => {
|
|
220
|
+
this.$emit('error', error)
|
|
221
|
+
})
|
|
222
|
+
},
|
|
223
|
+
methods: {
|
|
224
|
+
userTypeChange () {
|
|
225
|
+
this.gasproperties = []
|
|
226
|
+
if (this.$refs.paged.$refs.cri.model !== null) {
|
|
227
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
228
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
229
|
+
} else {
|
|
230
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
initParams () {
|
|
234
|
+
// 初始化气表品牌
|
|
235
|
+
let brandArr = []
|
|
236
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
237
|
+
let temp = {}
|
|
238
|
+
if (item.value.f_meter_type === '物联网表') {
|
|
239
|
+
temp.label = item.label
|
|
240
|
+
temp.value = item.value.f_meter_brand
|
|
241
|
+
brandArr.push(temp)
|
|
242
|
+
}
|
|
243
|
+
})
|
|
244
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
245
|
+
// 初始化气表价格
|
|
246
|
+
this.prices = this.$MagGetSaleParam.getPrices()
|
|
247
|
+
},
|
|
248
|
+
showMeterStyle () {
|
|
249
|
+
this.styles = true
|
|
250
|
+
},
|
|
251
|
+
search () {
|
|
252
|
+
this.$refs.paged.$refs.cri.search()
|
|
253
|
+
},
|
|
254
|
+
async selfSearch (args) {
|
|
255
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
256
|
+
await this.model.search(args.condition, args.model)
|
|
257
|
+
},
|
|
258
|
+
getorg (obj) {
|
|
259
|
+
if (obj.resids.length > 0) {
|
|
260
|
+
this.orgCondtionStr = ' and f_filialeid in ' + plugin.convertToIn(obj.resids)
|
|
261
|
+
} else {
|
|
262
|
+
this.orgCondtionStr = ' and f_filialeid = ' + this.$login.f.orgid
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
clear () {
|
|
266
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
267
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
268
|
+
})
|
|
269
|
+
},
|
|
270
|
+
hidden () {
|
|
271
|
+
this.criteriaShow = !this.criteriaShow
|
|
272
|
+
},
|
|
273
|
+
getotherfooter () {
|
|
274
|
+
this.other = []
|
|
275
|
+
this.footer = []
|
|
276
|
+
let otherInData = []
|
|
277
|
+
let secondLine = [
|
|
278
|
+
`开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
|
|
279
|
+
`结束时间: ${this.$refs.paged.$refs.cri.model.startDate}`
|
|
280
|
+
]
|
|
281
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
282
|
+
let footerData = []
|
|
283
|
+
|
|
284
|
+
this.footer.push(footerData)
|
|
285
|
+
this.other.push(otherInData)
|
|
286
|
+
this.other.push(secondLine)
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
watch: {
|
|
290
|
+
sumsmodel: {
|
|
291
|
+
handler: function (val) {
|
|
292
|
+
this.getotherfooter()
|
|
293
|
+
},
|
|
294
|
+
deep: true
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
computed: {
|
|
298
|
+
metertypes () {
|
|
299
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
300
|
+
},
|
|
301
|
+
usernatures () {
|
|
302
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
|
|
303
|
+
},
|
|
304
|
+
usertypes () {
|
|
305
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
306
|
+
},
|
|
307
|
+
getCondition () {
|
|
308
|
+
return {
|
|
309
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
310
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
311
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
getfield () {
|
|
315
|
+
return exportConfig.ReportDataConfig
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
</script>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default{
|
|
2
|
+
compreConfig: {
|
|
3
|
+
'f_userinfo_code': '客户编号',
|
|
4
|
+
'f_card_id': '卡号',
|
|
5
|
+
'f_user_name': '客户名称',
|
|
6
|
+
'f_residential_area': '小区名称',
|
|
7
|
+
'f_address': '详细地址',
|
|
8
|
+
'f_user_phone': '联系电话',
|
|
9
|
+
'f_gas_date': '通气日期',
|
|
10
|
+
'f_meternumber': '表号',
|
|
11
|
+
'f_user_type': '客户类型',
|
|
12
|
+
'f_open_date': '开户时间',
|
|
13
|
+
'f_balance_amount': '表剩余金额',
|
|
14
|
+
'f_total_gas': '表累购气量',
|
|
15
|
+
'f_total_fee': '表累购金额',
|
|
16
|
+
'f_maxdate': '换表时间'
|
|
17
|
+
}
|
|
18
|
+
}
|