manage-client 3.2.57 → 3.2.61
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/SellReport/UserBalanceReport.vue +180 -0
- package/src/components/webmeter/DrillData/GetNoMetereadData.vue +370 -0
- package/src/filiale/rongchuang/ChargeQuery.vue +3 -3
- package/src/filiale/rongchuang/exportConfig.js +3 -3
- package/src/filiale/tongchuan/DeviceQuery.vue +581 -0
- package/src/filiale/tongchuan/MeterQuery.vue +970 -0
- package/src/filiale/tongchuan/PriceChangeQuery.vue +1 -3
- package/src/filiale/tongchuan/UserDeviceQuery.vue +1 -3
- package/src/filiale/tongchuan/sale.js +8 -2
- package/src/reportManage.js +4 -0
- package/src/saleManage.js +542 -542
- package/src/webmeterManage.js +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 100%">
|
|
3
|
+
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-4" >
|
|
8
|
+
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
9
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
10
|
+
v-model="model.startDate"
|
|
11
|
+
:value.sync="model.startDate"
|
|
12
|
+
:disabled-days-of-Week="[]"
|
|
13
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
14
|
+
:show-reset-button="reset">
|
|
15
|
+
</datepicker>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-4" >
|
|
18
|
+
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
19
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
20
|
+
v-model="model.endDate"
|
|
21
|
+
:value.sync="model.endDate"
|
|
22
|
+
:disabled-days-of-Week="[]"
|
|
23
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
24
|
+
:show-reset-button="reset">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-4 form-group" >
|
|
28
|
+
<label class="font_normal_body" for="org">公  司:</label>
|
|
29
|
+
<right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-4 form-group">
|
|
32
|
+
<label class="font_normal_body" for="dep" >部  门:</label>
|
|
33
|
+
<res-select id="dep" restype='department' style="width: 60%"
|
|
34
|
+
is-mul="false"
|
|
35
|
+
@res-select="$parent.$parent.getdep"
|
|
36
|
+
:parentresid="$parent.$parent.depresid"
|
|
37
|
+
:initresid='$parent.$parent.depid' >
|
|
38
|
+
</res-select>
|
|
39
|
+
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-4 form-group">
|
|
42
|
+
<label class="font_normal_body" for="oper">人  员:</label>
|
|
43
|
+
<res-select id="oper" restype='user' style="width: 60%"
|
|
44
|
+
is-mul="false"
|
|
45
|
+
@res-select="$parent.$parent.getuser"
|
|
46
|
+
:parentresid="$parent.$parent.userresid"
|
|
47
|
+
:initresid='$parent.$parent.operatorid'>
|
|
48
|
+
</res-select>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="span" style = "float:right;">
|
|
52
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
53
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
54
|
+
<report-excel id='gasprice'></report-excel>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</criteria>
|
|
58
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
59
|
+
<table class='tableprint' style="margin: 0px auto">
|
|
60
|
+
<thead>
|
|
61
|
+
<tr>
|
|
62
|
+
<th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
|
|
63
|
+
<h3 style="text-align: center">{{$parent.data.f_report_name}}</h3>
|
|
64
|
+
</th>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
|
|
68
|
+
时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
|
|
69
|
+
打印时间:{{$parent.printTime}}
|
|
70
|
+
</th>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr>
|
|
73
|
+
<th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
|
|
74
|
+
<div>
|
|
75
|
+
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
76
|
+
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
77
|
+
<span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
|
|
78
|
+
</div>
|
|
79
|
+
</th>
|
|
80
|
+
</tr>
|
|
81
|
+
</thead>
|
|
82
|
+
<tr>
|
|
83
|
+
<td :colspan='$parent.tablen' class="noborder">
|
|
84
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
85
|
+
</td>
|
|
86
|
+
</tr>
|
|
87
|
+
<tfoot>
|
|
88
|
+
<tr style="text-align: left">
|
|
89
|
+
<th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
|
|
90
|
+
<th :colspan='Math.round($parent.tablen/3)'>复核人:</th>
|
|
91
|
+
<th :colspan='Math.round($parent.tablen/3)'>汇总人:</th>
|
|
92
|
+
</tr>
|
|
93
|
+
</tfoot>
|
|
94
|
+
</table>
|
|
95
|
+
</div>
|
|
96
|
+
</criteria-paged>
|
|
97
|
+
</div>
|
|
98
|
+
</template>
|
|
99
|
+
|
|
100
|
+
<script>
|
|
101
|
+
import { DataModel } from 'vue-client'
|
|
102
|
+
|
|
103
|
+
export default {
|
|
104
|
+
title: '报表',
|
|
105
|
+
props: ['data'],
|
|
106
|
+
data () {
|
|
107
|
+
return {
|
|
108
|
+
printTime: this.$login.toStandardTimeString(),
|
|
109
|
+
depresid: [],
|
|
110
|
+
userresid: [],
|
|
111
|
+
f_orgid: this.$login.f.orgid,
|
|
112
|
+
f_depid: this.$login.f.depids,
|
|
113
|
+
f_operatorid: this.$login.f.id,
|
|
114
|
+
operatorid: [],
|
|
115
|
+
depid: [],
|
|
116
|
+
tablen: 0,
|
|
117
|
+
orgname: '',
|
|
118
|
+
depname: '',
|
|
119
|
+
operatorname: '',
|
|
120
|
+
orgCondtionStr: '1=1',
|
|
121
|
+
model: new DataModel('rs/report/UserBalanceReport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
122
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
123
|
+
reportStr: null,
|
|
124
|
+
show: false
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
ready () {
|
|
128
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
129
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
130
|
+
console.log(this.$login.f)
|
|
131
|
+
},
|
|
132
|
+
methods: {
|
|
133
|
+
searchData () {
|
|
134
|
+
this.$refs.paged.$refs.criteria.search()
|
|
135
|
+
},
|
|
136
|
+
selfSearch (args) {
|
|
137
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
138
|
+
let orgcondition = '1=1'
|
|
139
|
+
if (this.f_orgid && this.f_orgid[0]) {
|
|
140
|
+
orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
|
|
141
|
+
}
|
|
142
|
+
if (this.f_depid && this.f_depid[0]) {
|
|
143
|
+
orgcondition += ' and f_depid in (' + this.f_depid + ')'
|
|
144
|
+
}
|
|
145
|
+
if (this.f_operatorid && this.f_operatorid[0]) {
|
|
146
|
+
orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
|
|
147
|
+
}
|
|
148
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
149
|
+
this.$refs.paged.search(args)
|
|
150
|
+
},
|
|
151
|
+
getRes (obj) {
|
|
152
|
+
this.orgname = obj.res[0]
|
|
153
|
+
this.depresid = obj.resids
|
|
154
|
+
this.userresid = obj.resids
|
|
155
|
+
this.f_orgid = obj.resids
|
|
156
|
+
},
|
|
157
|
+
getdep (obj, val) {
|
|
158
|
+
this.depname = val[0]
|
|
159
|
+
// this.userresid = obj
|
|
160
|
+
this.f_depid = obj
|
|
161
|
+
},
|
|
162
|
+
getuser (obj, val) {
|
|
163
|
+
this.operatorname = val[0]
|
|
164
|
+
this.f_operatorid = obj
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
watch: {
|
|
168
|
+
'model.data' (val) {
|
|
169
|
+
this.tablen = val.split('</tr>').map(item => item.split('</td>').length - 1).reduce((x, y) => x > y ? x : y)
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
computed: {
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
</script>
|
|
176
|
+
<style scoped>
|
|
177
|
+
.noborder{
|
|
178
|
+
border: none;
|
|
179
|
+
}
|
|
180
|
+
</style>
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row" v-show="!showdetail">
|
|
3
|
+
<div id='app1' class="basic-main" >
|
|
4
|
+
<criteria-paged :model="model" :pager='true' v-ref:paged>
|
|
5
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="col-sm-2 form-group">
|
|
9
|
+
<label class="font_normal_body">客户编号</label>
|
|
10
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search"
|
|
11
|
+
v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
12
|
+
condition="f_userinfo_code like '%{}%'" v-el:xq v-next-el='userinfocode' v-el:username
|
|
13
|
+
>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="col-sm-2 form-group">
|
|
16
|
+
<label class="font_normal_body">客户名称</label>
|
|
17
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search"
|
|
18
|
+
v-model="model.f_user_name" placeholder='客户名称'
|
|
19
|
+
condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
|
|
20
|
+
>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-2 form-group">
|
|
23
|
+
<label class="font_normal_body">客户地址</label>
|
|
24
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area"
|
|
25
|
+
placeholder='地址'
|
|
26
|
+
condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
|
|
27
|
+
>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label class="font_normal_body"> 表号 </label>
|
|
31
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search"
|
|
32
|
+
v-model="model.f_meternumber" placeholder='表号'
|
|
33
|
+
condition="f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
|
|
34
|
+
>
|
|
35
|
+
</div>
|
|
36
|
+
<div style="float:right">
|
|
37
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
38
|
+
<button class="button_clear button_spacing" @click="clear">清空</button>
|
|
39
|
+
<export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
|
|
40
|
+
:field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
|
|
41
|
+
sqlurl="rs/logic/exportfile" sql-name="webmeter_getNoMetereadData" template-name='未上报查询'
|
|
42
|
+
:choose-col="true"></export-excel>
|
|
43
|
+
|
|
44
|
+
<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>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
48
|
+
<div class="col-sm-2 form-group">
|
|
49
|
+
<label class="font_normal_body"> 公司 </label>
|
|
50
|
+
<right-tree @re-res="$parent.$parent.getorg" width="60%"
|
|
51
|
+
:initresid='$parent.$parent.org'></right-tree>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-2 form-group">
|
|
54
|
+
<label class="font_normal_body">客户类型</label>
|
|
55
|
+
<v-select style="width:60%" id="f_user_type"
|
|
56
|
+
v-model="model.f_user_type"
|
|
57
|
+
placeholder='客户类型'
|
|
58
|
+
:value.sync="model.f_user_type"
|
|
59
|
+
@change="$parent.$parent.userTypeChange()"
|
|
60
|
+
:options='$parent.$parent.usertypes'
|
|
61
|
+
condition="f_user_type = '{}'"
|
|
62
|
+
close-on-select>
|
|
63
|
+
</v-select>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-2 form-group">
|
|
66
|
+
<label class="font_normal_body">用气性质</label>
|
|
67
|
+
<v-select style="width:60%" id="f_gasproperties"
|
|
68
|
+
v-model="model.f_gasproperties"
|
|
69
|
+
placeholder='用气性质'
|
|
70
|
+
:value.sync="model.f_gasproperties"
|
|
71
|
+
:options='$parent.$parent.gasproperties'
|
|
72
|
+
condition="f_gasproperties = '{}'"
|
|
73
|
+
close-on-select>
|
|
74
|
+
</v-select>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="col-sm-2 form-group">
|
|
77
|
+
<label class="font_normal_body">气表品牌</label>
|
|
78
|
+
<v-select
|
|
79
|
+
placeholder='气表品牌'
|
|
80
|
+
:value.sync="model.f_meter_brand"
|
|
81
|
+
v-model="model.f_meter_brand"
|
|
82
|
+
:options='$parent.$parent.meterbrands'
|
|
83
|
+
close-on-select
|
|
84
|
+
condition="f_meter_brand='{}'">
|
|
85
|
+
</v-select>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-2 form-group" >
|
|
88
|
+
<label class="font_normal_body">气表型号</label>
|
|
89
|
+
<v-select
|
|
90
|
+
placeholder='气表型号'
|
|
91
|
+
:value.sync="model.f_meter_style"
|
|
92
|
+
v-model="model.f_meter_style"
|
|
93
|
+
:options='$parent.$parent.meterstyle[model.f_meter_brand]'
|
|
94
|
+
close-on-select
|
|
95
|
+
condition="f_meter_style='{}'">
|
|
96
|
+
</v-select>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="col-sm-2 form-group">
|
|
99
|
+
<label class="font_normal_body">用户状态</label>
|
|
100
|
+
<v-select
|
|
101
|
+
placeholder='用户状态'
|
|
102
|
+
value-single="true"
|
|
103
|
+
style="width:60%"
|
|
104
|
+
:value.sync="model.f_user_state"
|
|
105
|
+
v-model="model.f_user_state"
|
|
106
|
+
:options='$parent.$parent.userstate'
|
|
107
|
+
close-on-select condition="f_user_state ='{}'">
|
|
108
|
+
</v-select>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="col-sm-2 form-group">
|
|
111
|
+
<label class="font_normal_body">开始时间</label>
|
|
112
|
+
<datepicker style="width:60%" id="startdate" placeholder="开始时间"
|
|
113
|
+
v-model="model.startDate"
|
|
114
|
+
:value.sync="model.startDate"
|
|
115
|
+
:disabled-days-of-Week="[]"
|
|
116
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
117
|
+
:show-reset-button="reset">
|
|
118
|
+
</datepicker>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-2 form-group">
|
|
121
|
+
<label class="font_normal_body">结束时间</label>
|
|
122
|
+
<datepicker style="width:60%" id="enddate" placeholder="结束日期"
|
|
123
|
+
v-model="model.endDate"
|
|
124
|
+
:value.sync="model.endDate"
|
|
125
|
+
:disabled-days-of-Week="[]"
|
|
126
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
127
|
+
:show-reset-button="reset">
|
|
128
|
+
</datepicker>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</criteria>
|
|
133
|
+
<data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
|
134
|
+
<template partial='head'>
|
|
135
|
+
<tr>
|
|
136
|
+
<th style="text-align:center">
|
|
137
|
+
<nobr>序号</nobr>
|
|
138
|
+
</th>
|
|
139
|
+
<th style="text-align:center">
|
|
140
|
+
<nobr>未上报日期</nobr>
|
|
141
|
+
</th>
|
|
142
|
+
<th style="text-align:center">
|
|
143
|
+
<nobr>客户编号</nobr>
|
|
144
|
+
</th>
|
|
145
|
+
<th style="text-align:center">
|
|
146
|
+
<nobr>客户名称</nobr>
|
|
147
|
+
</th>
|
|
148
|
+
<th style="text-align:center">
|
|
149
|
+
<nobr>客户地址</nobr>
|
|
150
|
+
</th>
|
|
151
|
+
<th style="text-align:center">
|
|
152
|
+
<nobr>客户类型</nobr>
|
|
153
|
+
</th>
|
|
154
|
+
<th style="text-align:center">
|
|
155
|
+
<nobr>用气性质</nobr>
|
|
156
|
+
</th>
|
|
157
|
+
<th style="text-align:center">
|
|
158
|
+
<nobr>表号</nobr>
|
|
159
|
+
</th>
|
|
160
|
+
<th style="text-align:center">
|
|
161
|
+
<nobr>气表厂家</nobr>
|
|
162
|
+
</th>
|
|
163
|
+
<th style="text-align:center" >
|
|
164
|
+
<nobr>气表型号</nobr>
|
|
165
|
+
</th>
|
|
166
|
+
<th style="text-align:center" >
|
|
167
|
+
<nobr>用户状态</nobr>
|
|
168
|
+
</th>
|
|
169
|
+
<th style="text-align:center" >
|
|
170
|
+
<nobr>组织机构</nobr>
|
|
171
|
+
</th>
|
|
172
|
+
</tr>
|
|
173
|
+
</template>
|
|
174
|
+
<template partial='body'>
|
|
175
|
+
<td style="text-align:center">{{$index+1}}</td>
|
|
176
|
+
<td style="text-align:center">{{row.f_date}}</td>
|
|
177
|
+
<td style="text-align: center;"><nobr>
|
|
178
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
179
|
+
</nobr> </td>
|
|
180
|
+
<td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
|
|
181
|
+
<td><nobr>{{row.f_address}}</nobr></td>
|
|
182
|
+
<td style="text-align:center">{{row.f_user_type}}</td>
|
|
183
|
+
<td style="text-align:center">{{row.f_gasproperties}}</td>
|
|
184
|
+
<td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
185
|
+
<td style="text-align:center">
|
|
186
|
+
<nobr>{{row.f_meter_brand}}</nobr>
|
|
187
|
+
</td>
|
|
188
|
+
<td style="text-align:center">
|
|
189
|
+
<nobr>{{row.f_meter_style}}</nobr>
|
|
190
|
+
</td>
|
|
191
|
+
<td style="text-align:center">
|
|
192
|
+
<nobr>{{row.f_user_state}}</nobr>
|
|
193
|
+
</td>
|
|
194
|
+
<td style="text-align:center">
|
|
195
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
196
|
+
</td>
|
|
197
|
+
|
|
198
|
+
</template>
|
|
199
|
+
</data-grid>
|
|
200
|
+
</criteria-paged>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
<div class="flex-row" v-if="showdetail">
|
|
204
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
205
|
+
</div>
|
|
206
|
+
</template>
|
|
207
|
+
|
|
208
|
+
<script>
|
|
209
|
+
import {PagedList} from 'vue-client'
|
|
210
|
+
import * as Util from '../../../Util'
|
|
211
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
212
|
+
let readySomething = async function (self) {
|
|
213
|
+
|
|
214
|
+
await self.$MagLoadParams.loadParam()
|
|
215
|
+
self.initParams()
|
|
216
|
+
self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() +' 00:00:00'
|
|
217
|
+
self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
|
|
218
|
+
self.$refs.paged.$refs.cri.search()
|
|
219
|
+
}
|
|
220
|
+
export default {
|
|
221
|
+
title: '未上报查询',
|
|
222
|
+
props: ['data'],
|
|
223
|
+
data() {
|
|
224
|
+
return {
|
|
225
|
+
model: new PagedList('rs/sql/webmeter_getNoMetereadData', 20, {
|
|
226
|
+
startDate: 'this.model.startDate',
|
|
227
|
+
endDate: 'this.model.endDate'
|
|
228
|
+
}),
|
|
229
|
+
getfield:{
|
|
230
|
+
'f_userinfo_code':'客户编号','f_user_name':'客户名称', 'f_date': '未上报日期',
|
|
231
|
+
'f_address':'客户地址','f_user_type':'客户类型','f_gasproperties':'用气性质',
|
|
232
|
+
'f_meternumber':'表号',
|
|
233
|
+
'f_meter_brand':'气表厂家','f_orgname':'组织机构'},
|
|
234
|
+
showdetail:false,
|
|
235
|
+
rowdata:{},
|
|
236
|
+
startDate: '',
|
|
237
|
+
endDate: '',
|
|
238
|
+
criteriaShow:false,
|
|
239
|
+
outlets: [],
|
|
240
|
+
gasproperties:[{label: '全部', value: ''}],
|
|
241
|
+
operator: [],
|
|
242
|
+
meterbrands: [],
|
|
243
|
+
meterstyle:{},
|
|
244
|
+
orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
|
|
245
|
+
orgid:[this.$login.f.orgid],
|
|
246
|
+
condition: '1=1',
|
|
247
|
+
org:[this.$login.f.orgid]
|
|
248
|
+
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
ready() {
|
|
252
|
+
readySomething(this)
|
|
253
|
+
},
|
|
254
|
+
methods: {
|
|
255
|
+
|
|
256
|
+
userTypeChange () {
|
|
257
|
+
this.gasproperties=[{label: '全部', value: ''}]
|
|
258
|
+
if(this.$refs.paged.$refs.cri.model && this.$refs.paged.$refs.cri.model.f_user_type) {
|
|
259
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
260
|
+
console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
261
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
262
|
+
}
|
|
263
|
+
else{
|
|
264
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
hidden(){
|
|
268
|
+
this.criteriaShow = !this.criteriaShow
|
|
269
|
+
},
|
|
270
|
+
showmsg(obj){
|
|
271
|
+
this.rowdata = obj
|
|
272
|
+
this.showdetail = true
|
|
273
|
+
},
|
|
274
|
+
cancel() {
|
|
275
|
+
this.showdetail = false
|
|
276
|
+
},
|
|
277
|
+
initParams () {
|
|
278
|
+
// 初始化气表品牌
|
|
279
|
+
let brandArr = []
|
|
280
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
281
|
+
if(item.value.f_meter_type==='物联网表'){
|
|
282
|
+
let temp = {}
|
|
283
|
+
temp.label = item.label
|
|
284
|
+
temp.value = item.value.f_meter_brand
|
|
285
|
+
brandArr.push(temp)
|
|
286
|
+
|
|
287
|
+
let styleArr = [{label: '全部', value: ''}]
|
|
288
|
+
for (let row of item.value.gasmodel) {
|
|
289
|
+
styleArr.push({label: row.label,value: row.value.f_meter_style})
|
|
290
|
+
}
|
|
291
|
+
this.meterstyle[temp.value] = styleArr
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
})
|
|
295
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
296
|
+
},
|
|
297
|
+
search(args) {
|
|
298
|
+
this.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
299
|
+
this.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
300
|
+
if (this.endDate == '' || this.startDate == '') {
|
|
301
|
+
return this.$showMessage("时间区间的开始和结束时间不能为空!")
|
|
302
|
+
}
|
|
303
|
+
this.condition = args.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
|
|
304
|
+
this.model.search(args.condition, args.model)
|
|
305
|
+
},
|
|
306
|
+
getorg(obj) {
|
|
307
|
+
if (obj.resids.length>0) {
|
|
308
|
+
this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
|
|
309
|
+
}else
|
|
310
|
+
{
|
|
311
|
+
this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
clearmsg() {
|
|
315
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
watch: {
|
|
319
|
+
},
|
|
320
|
+
computed: {
|
|
321
|
+
getCondition() {
|
|
322
|
+
let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
|
|
323
|
+
return {
|
|
324
|
+
condition: condition ,
|
|
325
|
+
startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
|
|
326
|
+
endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
},
|
|
330
|
+
usertypes() {
|
|
331
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
332
|
+
},
|
|
333
|
+
userstate() {
|
|
334
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
</script>
|
|
339
|
+
<style>
|
|
340
|
+
.form-input-group label {
|
|
341
|
+
text-align: right;
|
|
342
|
+
width: auto;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.mystyle {
|
|
346
|
+
float: right;
|
|
347
|
+
padding-right: 10%;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.mystyle1 {
|
|
351
|
+
padding-top: 10px;
|
|
352
|
+
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.mystyle2 {
|
|
356
|
+
width: 100%;
|
|
357
|
+
height: 35px;
|
|
358
|
+
/*background: #00A3F0;*/
|
|
359
|
+
padding-left: 15px;
|
|
360
|
+
float: left;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.datapanel {
|
|
364
|
+
color: #333;
|
|
365
|
+
background-color: white;
|
|
366
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
|
|
367
|
+
padding: 10px 30px 10px 30px;
|
|
368
|
+
border-radius: 15px;
|
|
369
|
+
}
|
|
370
|
+
</style>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
</export-excel>
|
|
52
52
|
|
|
53
53
|
<print-data-rc :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
54
|
-
:defaultfield="$parent.$parent.defaultfield" :xyprint="
|
|
54
|
+
:defaultfield="$parent.$parent.defaultfield" :xyprint="1" :printview="true"
|
|
55
55
|
titletable="日收费明细" :starthead="$parent.$parent.getstart"
|
|
56
56
|
:sumsmodel="$parent.$parent.sumsmodel"></print-data-rc>
|
|
57
57
|
<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>
|
|
@@ -772,9 +772,9 @@
|
|
|
772
772
|
footer:[],
|
|
773
773
|
config: {
|
|
774
774
|
defaultPrint: [
|
|
775
|
-
'f_userinfo_code', '
|
|
775
|
+
'f_userinfo_code', 'f_user_name', 'f_address', 'f_gasproperties',
|
|
776
776
|
'f_meternumber', 'f_meter_brand', 'f_pregas', 'f_collection', 'f_privilege_money', 'f_privilege_gas',
|
|
777
|
-
'f_type', '
|
|
777
|
+
'f_type', 'f_operator', 'f_operate_date'
|
|
778
778
|
]
|
|
779
779
|
},
|
|
780
780
|
//排序
|
|
@@ -81,10 +81,10 @@ export default{
|
|
|
81
81
|
'f_operate_date': '收费日期', 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_user_type': '客户类型', 'f_gasproperties': '用气性质', 'f_meter_brand': '气表品牌', 'f_sell_price': '购气单价', 'f_pregas': '购气量', 'f_preamount': '购气金额', 'f_collection': '充值金额', 'f_surplus_fee': '调价补差', 'f_curbalance': '本期结余', 'f_payment': '付款方式', 'f_price': '单价', 'f_real_gas': '用气量', 'f_real_money': '用气金额', 'f_residual_volume': '余量', 'f_total_usegas_amount': '剩余金额'
|
|
82
82
|
},
|
|
83
83
|
chargeexportConfig: {
|
|
84
|
-
'f_userinfo_code': '客户编号', '
|
|
85
|
-
'
|
|
84
|
+
'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_address': '客户地址',
|
|
85
|
+
'f_gasproperties': '用气性质', 'f_meternumber': '表号', 'f_meter_brand': '气表品牌',
|
|
86
86
|
'f_pregas': '气量', 'f_collection': '收款', 'f_privilege_money': '优惠金额', 'f_privilege_gas': '优惠气量',
|
|
87
|
-
'f_type': '收费类型', '
|
|
87
|
+
'f_type': '收费类型', 'f_operator': '操作员','f_operate_date': '收费日期'
|
|
88
88
|
},
|
|
89
89
|
reverseexportConfig: {
|
|
90
90
|
'f_userinfo_code': '客户编号','f_user_name': '客户名称', 'f_address': '客户地址'
|