manage-client 3.2.280 → 3.2.282

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.280",
3
+ "version": "3.2.282",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -366,7 +366,7 @@
366
366
  let otherInData=[];
367
367
  otherInData.push(`日期: ${exportdata.startDate}-${exportdata.endDate}`);
368
368
  let footerData=[],exportfield=this.getfield;
369
- footerData.push("注意:请用户务必于____天内到经纬燃气公司(运城市红旗东街204号)或微信公众号缴纳燃气费,联系电话:8810200");
369
+ footerData.push("注意:请用户务必于____天内到经纬燃气公司(山西省运城市盐湖区人民南路东阜花苑3号门面房)或微信公众号缴纳燃气费,联系电话:8810200");
370
370
  //let self = this;
371
371
  //for(var field in self.sumsmodel){
372
372
  // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
@@ -86,10 +86,11 @@
86
86
  </div>
87
87
  <div class="col-sm-2 form-group">
88
88
  <label class="font_normal_body">气表品牌</label>
89
- <v-select :value.sync="model.f_meter_brand"
89
+ <v-select :value.sync="model.f_meter_brand" multiple
90
90
  v-model="model.f_meter_brand"
91
91
  :options="$parent.$parent.meterbrands"
92
92
  condition="ss.f_meter_brand = '{}'"
93
+ value-single="false"
93
94
  close-on-select></v-select>
94
95
  </div>
95
96
  <div class="col-sm-2 form-group">
@@ -0,0 +1,158 @@
1
+ <template>
2
+ <tab-button v-ref:list :active="-1">
3
+ <tabs header="欠费查询" v-if="permission('欠费查询')">
4
+ <arrears-query v-if="show.includes('欠费查询')"></arrears-query>
5
+ </tabs>
6
+ <tabs header="非收费业务查询" v-if="permission('非收费业务查询')">
7
+ <no-business-query v-if="show.includes('非收费业务查询')" @deal-msg="dealMsg"></no-business-query>
8
+ </tabs>
9
+ <tabs header="小区综合查询" v-if="!newWebHand&&permission('小区综合查询')">
10
+ <area-general-query v-if="show.includes('小区综合查询')" @deal-msg="dealMsg"></area-general-query>
11
+ </tabs>
12
+ <tabs header="小区综合查询" v-if="newWebHand&&permission('小区综合查询')">
13
+ <new-area-general-query v-if="show.includes('小区综合查询')" @deal-msg="dealMsg"></new-area-general-query>
14
+ </tabs>
15
+ <tabs header="小区收费查询" v-if="permission('小区收费查询')">
16
+ <area-charge-query v-if="show.includes('小区收费查询')" @deal-msg="dealMsg"></area-charge-query>
17
+ </tabs>
18
+ <tabs header="小区汇总(机表)" v-if="permission('小区汇总(机表)')">
19
+ <residential-query v-if="show.includes('小区汇总(机表)')" @deal-msg="dealMsg"></residential-query>
20
+ </tabs>
21
+ <tabs header="小区汇总(卡表)" v-if="permission('小区汇总(卡表)')">
22
+ <residential-card-query v-if="show.includes('小区汇总(卡表)')" @deal-msg="dealMsg" ></residential-card-query>
23
+ </tabs>
24
+ <!--<tabs header="小区欠费汇总(机表)" v-if="permission('小区欠费汇总(机表)')">-->
25
+ <!--<residential-arrears-query v-if="show.includes('小区欠费汇总(机表)')" @deal-msg="dealMsg"></residential-arrears-query>-->
26
+ <!--</tabs>-->
27
+ <tabs header="收费员汇总表" v-if="permission('收费员汇总表')">
28
+ <sell-people-query v-if="show.includes('收费员汇总表')" @deal-msg="dealMsg"></sell-people-query>
29
+ </tabs>
30
+ <tabs header="分公司汇总表" v-if="permission('分公司汇总表')">
31
+ <sell-orgname-query v-if="show.includes('分公司汇总表')" @deal-msg="dealMsg"></sell-orgname-query>
32
+ </tabs>
33
+ <tabs header="抄表员统计" v-if="permission('抄表员统计')">
34
+ <hand-people-query v-if="show.includes('抄表员统计')" @deal-msg="dealMsg"></hand-people-query>
35
+ </tabs>
36
+ <tabs header="开户查询" v-if="permission('开户查询')">
37
+ <new-account-query v-if="show.includes('开户查询')" @deal-msg="dealMsg"></new-account-query>
38
+ </tabs>
39
+ <tabs header="用气查询" v-if="permission('用气查询')">
40
+ <fmygas-query v-if="show.includes('用气查询')" @deal-msg="dealMsg"></fmygas-query>
41
+ </tabs>
42
+ <tabs header="气费回收率" v-if="permission('气费回收率')">
43
+ <hand-rate-query v-if="show.includes('气费回收率')" @deal-msg="dealMsg"></hand-rate-query>
44
+ </tabs>
45
+ <tabs header="收费抄表" v-if="permission('收费抄表')">
46
+ <selling-hand v-if="show.includes('收费抄表')" @deal-msg="dealMsg"></selling-hand>
47
+ </tabs>
48
+ <tabs header="月用气状况" v-if="permission('月用气状况')">
49
+ <month-gas-query v-if="show.includes('月用气状况')" @deal-msg="dealMsg"></month-gas-query>
50
+ </tabs>
51
+ <tabs header="用户余额分析" v-if="permission('用户余额分析')">
52
+ <user-sell-head-detail v-if="show.includes('用户余额分析')" @deal-msg="dealMsg"></user-sell-head-detail>
53
+ </tabs>
54
+ <!--<tabs header="年度月份用量分析" v-if="permission('年度月份用量分析')">-->
55
+ <!--<year-gas-query v-if="show == '年度月份用量分析'" @deal-msg="dealMsg"></year-gas-query>-->
56
+ <!--</tabs>-->
57
+ <!--<tabs header="余额统计查询" v-if="permission('余额统计查询')">-->
58
+ <!--<balance-query v-if="show == '余额统计查询'" @deal-msg="dealMsg"></balance-query>-->
59
+ <!--</tabs>-->
60
+ <tabs header="用户余额表" v-if="permission('用户余额表')">
61
+ <balance-table v-if="show.includes('用户余额表')" @deal-msg="dealMsg"></balance-table>
62
+ </tabs>
63
+ <tabs header="抄表册统计" v-if="permission('抄表册统计')">
64
+ <hand-book-query v-if="show.includes('抄表册统计')" @deal-msg="dealMsg"></hand-book-query>
65
+ </tabs>
66
+ <tabs header="抄表册统计2" v-if="permission('抄表册统计2')">
67
+ <hand-book-two-query v-if="show.includes('抄表册统计2')" @deal-msg="dealMsg"></hand-book-two-query>
68
+ </tabs>
69
+ <tabs header="用气性质抄表率统计" v-if="permission('用气性质抄表率统计')">
70
+ <hand-gas-properties-query v-if="show.includes('用气性质抄表率统计')" @deal-msg="dealMsg"></hand-gas-properties-query>
71
+ </tabs>
72
+ <tabs header="每月应收汇总统计" v-if="permission('每月应收汇总统计')">
73
+ <hand-gas-query v-if="show.includes('每月应收汇总统计')" @deal-msg="dealMsg"></hand-gas-query>
74
+ </tabs>
75
+ <tabs header="小区缴费汇总(机表)" v-if="permission('小区缴费汇总(机表)')">
76
+ <community-paymen v-if="show.includes('小区缴费汇总(机表)')" @deal-msg="dealMsg"></community-paymen>
77
+ </tabs>
78
+ <tabs header="预存明细查询" v-if="permission('预存明细查询')">
79
+ <deposit-detail v-if="show.includes('预存明细查询')" @deal-msg="dealMsg"></deposit-detail>
80
+ </tabs>
81
+ <tabs header="小区用户分布统计" v-if="permission('小区用户分布统计')">
82
+ <plot-summary-query v-if="show.includes('小区用户分布统计')" @deal-msg="dealMsg"></plot-summary-query>
83
+ </tabs>
84
+ <tabs header="用户用气收费情况" v-if="permission('用户用气收费情况')">
85
+ <usergas v-if="show.includes('用户用气收费情况')" @deal-msg="dealMsg"></usergas>
86
+ </tabs>
87
+ <tabs header="卡表用户结余明细" v-if="permission('卡表用户结余明细')">
88
+ <yonghu-jieyu v-if="show.includes('卡表用户结余明细')" @deal-msg="dealMsg"></yonghu-jieyu>
89
+ </tabs>
90
+ <tabs header="应收实收明细" v-if="permission('应收实收明细')">
91
+ <ying-shou-ming-xi v-if="show.includes('应收实收明细')" @deal-msg="dealMsg"></ying-shou-ming-xi>
92
+ </tabs>
93
+ <tabs header="操作员日结列表" v-if="permission('操作员日结列表')">
94
+ <proceeds-oper v-if="show.includes('操作员日结列表')" @deal-msg="dealMsg"></proceeds-oper>
95
+ </tabs>
96
+ <tabs header="抄表情况记录表" v-if="permission('抄表情况记录表')">
97
+ <handplan-info v-if="show.includes('抄表情况记录表')" @deal-msg="dealMsg"></handplan-info>
98
+ </tabs>
99
+ <tabs header="未抄表用户报表" v-if="permission('未抄表用户报表')">
100
+ <unhand-business @deal-msg="dealMsg"></unhand-business>
101
+ </tabs>
102
+ <tabs header="明细报表查询" v-if="permission('明细报表查询')">
103
+ <report-detail ></report-detail>
104
+ </tabs>
105
+ <tabs header="重点用户用气排行查询" v-if="permission('重点用户用气排行查询')">
106
+ <key-user-gas-ranking v-if="show.includes('重点用户用气排行查询')" @deal-msg="dealMsg" ></key-user-gas-ranking>
107
+ </tabs>
108
+ </tab-button>
109
+
110
+ </template>
111
+
112
+ <script>
113
+ import TabButton from './../../components/sale/common/TabButton'
114
+ import Tabs from './../../components/sale/common/Tabs'
115
+
116
+ export default {
117
+ title: '汇总查询',
118
+ data () {
119
+ return {
120
+ f_start_date: '',
121
+ f_end_date: '',
122
+ listpage: true,
123
+ width: {
124
+ left: '100%',
125
+ right: '0%'
126
+ },
127
+ // searchNumber:'',
128
+ rowData: {},
129
+ newWebHand: this.$appdata.getSingleValue('新抄表'),
130
+ show: []
131
+ }
132
+ },
133
+ components: {Tabs, TabButton},
134
+ methods: {
135
+ permission (name) {
136
+ if (this.$login.r.find(value => value == '综合查询')) {
137
+ if (!this.$login.r.find(value => value == name)) {
138
+ return false
139
+ }
140
+ }
141
+ return true
142
+ },
143
+ cancel (obj) {
144
+ this.listpage = true
145
+ },
146
+ dealMsg(obj) {
147
+ this.rowData = obj
148
+ this.listpage = false
149
+ console.log(obj.model)
150
+ this.f_start_date = obj.model.startDate
151
+ this.f_end_date = obj.model.endDate
152
+ }
153
+ }
154
+ }
155
+ </script>
156
+
157
+ <style scoped>
158
+ </style>
@@ -0,0 +1,409 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!showinfo">
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd'"
16
+ :show-reset-button="true"
17
+ condition="f_open_date >= '{} 00:00:00'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd'"
26
+ :show-reset-button="true"
27
+ condition="f_open_date <= '{} 23:59:59'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
39
+ </div>
40
+ <!-- <div class="col-sm-2 form-group">-->
41
+ <!-- <label class="font_normal_body">公&ensp;&ensp;司</label>-->
42
+ <!-- <res-select :initresid="$parent.$parent.orgid"-->
43
+ <!-- style="width:60%"-->
44
+ <!-- @res-select="$parent.$parent.getRes"-->
45
+ <!-- restype='organization'>-->
46
+ <!-- </res-select>-->
47
+ <!-- </div>-->
48
+
49
+
50
+ <div class="span" style="float:right;">
51
+ <button class="button_search button_spacing" @click="search()">查询</button>
52
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
53
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
54
+
55
+ <!-- <export-excel :data="$parent.$parent.getCondition"-->
56
+ <!-- :field="$parent.$parent.getfield"-->
57
+ <!-- v-if="$parent.$parent.authArr.includes('开户查询导出')"-->
58
+ <!-- sqlurl="rs/logic/exportfile" sql-name="newAccountQuery" template-name='开户查询导出'-->
59
+ <!-- :choose-col="true"></export-excel>-->
60
+
61
+ <!-- <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>-->
62
+ </div>
63
+ </div>
64
+ <div class="row" v-show="$parent.$parent.criteriaShow">
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">用气性质</label>
67
+ <v-select :value.sync="model.f_gasproperties"
68
+ v-model="model.f_gasproperties"
69
+ :options='$parent.$parent.gaspropertyTypes' placeholder='请选择'
70
+ condition=" f_gasproperties = '{}'"
71
+ close-on-select></v-select>
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">气表品牌</label>
75
+ <v-select :value.sync="model.f_meter_brand"
76
+ v-model="model.f_meter_brand"
77
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
78
+ condition="f_meter_brand = '{}'"
79
+ close-on-select></v-select>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">客户地址</label>
83
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
84
+ condition="f_address like '%{}%'" placeholder='客户地址'>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
88
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
89
+ condition="f_residential_area like '%{}%'" placeholder="小区"/>
90
+ </div>
91
+ </div>
92
+ <div class="row" v-show="$parent.$parent.criteriaShow">
93
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
94
+
95
+ </div>
96
+
97
+ </div>
98
+ </criteria>
99
+
100
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
101
+ <template partial='head'>
102
+ <tr>
103
+ <th>
104
+ <nobr>客户编号</nobr>
105
+ </th>
106
+ <th>
107
+ <nobr>客户名称</nobr>
108
+ </th>
109
+ <th>
110
+ <data-order field="f_address" name="客户地址"></data-order>
111
+ </th>
112
+ <th>
113
+ <nobr>客户电话</nobr>
114
+ </th>
115
+ <th>
116
+ <nobr>身份证号</nobr>
117
+ </th>
118
+ <!-- <th>-->
119
+ <!-- <nobr>气价名称</nobr>-->
120
+ <!-- </th>-->
121
+ <th>
122
+ <nobr>开户时间</nobr>
123
+ </th>
124
+ <!-- <th>-->
125
+ <!-- <nobr>表号</nobr>-->
126
+ <!-- </th>-->
127
+ <!-- <th>-->
128
+ <!-- <nobr>置换员</nobr>-->
129
+ <!-- </th>-->
130
+ <!-- <th>-->
131
+ <!-- <nobr>通气时间</nobr>-->
132
+ <!-- </th>-->
133
+ <!-- <th>-->
134
+ <!-- <nobr>用气性质</nobr>-->
135
+ <!-- </th>-->
136
+ <!-- <th>-->
137
+ <!-- <nobr>累购气量</nobr>-->
138
+ <!-- </th>-->
139
+ <!-- <th>-->
140
+ <!-- <nobr>气表品牌</nobr>-->
141
+ <!-- </th>-->
142
+ <!-- <th>-->
143
+ <!-- <nobr>是否有壁挂炉</nobr>-->
144
+ <!-- </th>-->
145
+ <!-- <th>-->
146
+ <!-- <nobr>开户人</nobr>-->
147
+ <!-- </th>-->
148
+ </tr>
149
+ </template>
150
+ <template partial='body'>
151
+ <td style="text-align: center;">
152
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.f_user_name}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.f_address}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_user_phone}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_idnumber}}</nobr>
165
+ </td>
166
+ <!-- <td style="text-align: center;">-->
167
+ <!-- <nobr>{{row.f_price_name}}</nobr>-->
168
+ <!-- </td>-->
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_open_date}}</nobr>
171
+ </td>
172
+ <!-- <td style="text-align: center;">-->
173
+ <!-- <nobr>{{row.f_meternumber}}</nobr>-->
174
+ <!-- </td>-->
175
+ <!-- <td style="text-align: center;">-->
176
+ <!-- <nobr>{{row.f_gas_person}}</nobr>-->
177
+ <!-- </td>-->
178
+ <!-- <td style="text-align: center;">-->
179
+ <!-- <nobr>{{row.f_gas_date}}</nobr>-->
180
+ <!-- </td>-->
181
+ <!-- <td style="text-align: center;">-->
182
+ <!-- <nobr>{{row.f_gasproperties}}</nobr>-->
183
+ <!-- </td>-->
184
+ <!-- <td style="text-align: center;">-->
185
+ <!-- <nobr>{{row.f_total_gas}}</nobr>-->
186
+ <!-- </td>-->
187
+ <!-- <td style="text-align: center;">-->
188
+ <!-- <nobr>{{row.f_meter_brand}}</nobr>-->
189
+ <!-- </td>-->
190
+ <!-- <td style="text-align: center;">-->
191
+ <!-- <nobr>{{row.isbgl}}</nobr>-->
192
+ <!-- </td>-->
193
+ <!-- <td style="text-align: center;">-->
194
+ <!-- <nobr>{{row.f_operator}}</nobr>-->
195
+ <!-- </td>-->
196
+ </template>
197
+ <template partial='foot'></template>
198
+ </data-grid>
199
+ </criteria-paged>
200
+ </div>
201
+ <div v-if="showinfo">
202
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
203
+ </div>
204
+ </div>
205
+ </div>
206
+ </template>
207
+
208
+ <script>
209
+ import {PagedList} from 'vue-client'
210
+ import defaultPrint from './../../components/sale/config/DefaultPrint'
211
+ import exportConfig from './../../components/sale/config/exportConfig'
212
+ import plugins from './../../plugins/GetLoginInfoService'
213
+
214
+ let readySomething = async function (self) {
215
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
216
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
217
+ // await self.$refs.paged.$refs.cri.search()
218
+ await self.$MagLoadParams.loadParam()
219
+ self.initParams()
220
+
221
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
222
+ }
223
+ export default {
224
+ title: '开户统计',
225
+ data() {
226
+ return {
227
+ data: {},
228
+ initres: {
229
+ org:[this.$login.f.orgid],
230
+ dep:[],
231
+ user:[],
232
+ },
233
+ orderFields: {
234
+ f_address: 'no'
235
+ },
236
+ orderDefault: "'f_open_date desc'",
237
+ model: new PagedList('rs/sql/newAccountQuery', 20,{orderitem: "'f_open_date desc'"}),
238
+ f_orgid: this.$login.f.orgid,
239
+ criteriaShow: false,
240
+ modelval: [],
241
+ printshow: false,
242
+ all: false,
243
+ fields: {},
244
+ thead: '',
245
+ tfoot: '',
246
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
247
+ // orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
248
+ meterbrands: [],
249
+ showinfo:false,
250
+ rowdata:{},
251
+ //合计数据
252
+ sumsmodel: {}
253
+ }
254
+ },
255
+ ready() {
256
+ readySomething(this).then(() => {
257
+ this.$emit('ready')
258
+ }).catch((error) => {
259
+ this.$emit('error', error)
260
+ })
261
+ },
262
+ methods: {
263
+ cancel() {
264
+ this.showinfo = false
265
+ },
266
+ search() {
267
+ this.$refs.paged.$refs.cri.search()
268
+ },
269
+ getRes(obj) {
270
+ console.log(obj,"========")
271
+ this.orgCondtionStr = obj
272
+ },
273
+
274
+ selfSearch(args) {
275
+ args.condition = `${args.condition}` + this.orgCondtionStr
276
+ this.model.search(args.condition, args.model)
277
+ },
278
+ showmsg(obj){
279
+ this.rowdata=obj
280
+ this.showinfo=true
281
+ },
282
+ initParams() {
283
+ // 初始化气表品牌
284
+ let brandArr = []
285
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
286
+ let temp = {}
287
+ temp.label = item.label
288
+ temp.value = item.value.f_meter_brand
289
+ brandArr.push(temp)
290
+ })
291
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
292
+ },
293
+
294
+ clear() {
295
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
296
+ this.$refs.paged.$refs.cri.model[key] = []
297
+ })
298
+ },
299
+ show() {
300
+ this.criteriaShow = true
301
+ },
302
+ hidden() {
303
+ this.criteriaShow = !this.criteriaShow
304
+ },
305
+ dealmsg(val) {
306
+ console.log('---------------dealmsg')
307
+ this.rowdata=val
308
+ this.show=true
309
+ val.model = this.model.model
310
+ this.$dispatch('deal-msg', val)
311
+ },
312
+ stamp() {
313
+ this.all = false
314
+ //默认选择要打印的列
315
+ this.modelval = defaultPrint.config
316
+ this.fields = this.getfield
317
+ console.log('所有打印字段', this.fields)
318
+ this.printshow = true
319
+ this.put()
320
+ },
321
+ put() {
322
+ // 对Modelval进行排序
323
+ this.sortModelval()
324
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
325
+ for (let key of this.modelval) {
326
+ this.thead += '<th>' + this.fields[key] + '</th>'
327
+ }
328
+ this.thead += '</tr>'
329
+ },
330
+ print() {
331
+ this.$refs.print.PrintAsFile()
332
+ this.printshow = false
333
+ },
334
+ close() {
335
+ this.printshow = false
336
+ this.all = false
337
+ },
338
+ // 对选择的列进行排序
339
+ sortModelval() {
340
+ let sortModel = []
341
+ Object.keys(this.fields).forEach((key) => {
342
+ if (this.modelval.includes(key)) {
343
+ sortModel.push(key)
344
+ }
345
+ })
346
+ this.modelval = sortModel
347
+ console.log('选择的打印的字段', this.modelval)
348
+ },
349
+ async updateParams() {
350
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
351
+ this.initParams()
352
+ },
353
+ sort (field, rule) {
354
+ // 将所有排序方式设为不排序,实现相互排斥
355
+ for (let key in this.orderFields) {
356
+ if (key === field) {
357
+ this.orderFields[key] = rule
358
+ } else {
359
+ this.orderFields[key] = 'no'
360
+ }
361
+ }
362
+ // 如果新规则不排序,还原为默认排序
363
+ if (rule === 'no') {
364
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
365
+ } else {
366
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
367
+ }
368
+
369
+ this.search()
370
+ }
371
+ },
372
+ watch: {
373
+ 'all'(val) {
374
+ if (val) {
375
+ this.modelval = this.bodyData
376
+ } else {
377
+ this.modelval = defaultPrint.config
378
+ this.put()
379
+ }
380
+ },
381
+ 'modelval.length'() {
382
+ this.put()
383
+ }
384
+ },
385
+ computed: {
386
+ authArr () {
387
+ return this.$login.r ? this.$login.r : []
388
+ },
389
+ getCondition () {
390
+ var con = ""
391
+ if (this.orgCondtionStr) {
392
+ con = `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in (${this.orgCondtionStr})`
393
+ }
394
+ else {
395
+ con = `${this.$refs.paged.$refs.cri.condition}and u.f_orgid in ('${this.$login.f.orgid}' )`
396
+ }
397
+ return {
398
+ condition: con
399
+ }
400
+ },
401
+ getfield() {
402
+ return exportConfig.NewAccountConfig
403
+ },
404
+ gaspropertyTypes() {
405
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
406
+ }
407
+ }
408
+ }
409
+ </script>
@@ -1,6 +1,10 @@
1
1
  // 分公司特殊组件页面注册
2
2
  import Vue from 'vue'
3
3
  export default function () {
4
+ // 汇总查询
5
+ Vue.component('collect-manage', (resolve) => {require(['./CollectManage'], resolve)})
6
+ // 开户查询
7
+ Vue.component('new-account-query', (resolve) => { require(['./NewAccountQuery'], resolve) })
4
8
  // 用户查询
5
9
  Vue.component('user-query', (resolve) => { require(['./UserQuery'], resolve) })
6
10
  Vue.component('area-charge-query', (resolve) => { require(['./AreaChargeQuery'], resolve) })
@@ -18,7 +18,7 @@
18
18
  <div class="col-sm-2">
19
19
  <label class="font_normal_body">客户编号</label>
20
20
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
21
- condition="f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber
21
+ condition="f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber @change="$parent.$parent.inputChange"
22
22
  >
23
23
  </div>
24
24
  <div class="col-sm-2">
@@ -281,7 +281,7 @@
281
281
  orgCondtionStr: '',
282
282
  model: new PagedList('rs/sql/manage_webmeterHandQuery', 50,{
283
283
  startDate: 'this.model.startDate',
284
- endDate: 'this.model.endDate'
284
+ endDate: 'this.model.endDate',f_userinfo_code: 'this.model.f_userinfo_code'
285
285
  }),
286
286
  showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
287
287
  }
@@ -293,11 +293,20 @@
293
293
  }).catch((error) => {
294
294
  this.$emit('error', error)
295
295
  })
296
- // this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
297
- // this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
296
+ this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
297
+ this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
298
298
  // this.$refs.paged.$refs.criteria.search()
299
299
  },
300
300
  methods: {
301
+ inputChange () {
302
+ if (this.$refs.paged.$refs.criteria.model.f_userinfo_code){
303
+ this.$refs.paged.$refs.criteria.model.startDate = ''
304
+ this.$refs.paged.$refs.criteria.model.endDate = ''
305
+ }else{
306
+ this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
307
+ this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
308
+ }
309
+ },
301
310
  initParams() {
302
311
  // 初始化气表品牌
303
312
  let brandArr = []
@@ -354,15 +363,6 @@
354
363
  },
355
364
 
356
365
  search (args) {
357
- if (this.$refs.paged.$refs.criteria.model.startDate == '' || this.$refs.paged.$refs.criteria.model.endDate == ''){
358
- if (this.$refs.paged.$refs.criteria.model.f_userinfo_code){
359
- this.$refs.paged.$refs.criteria.model.startDate = '1990-01-01 00:00:00'
360
- this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),1).substring(0,10) + ' 00:00:00'
361
- }else{
362
- this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
363
- this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
364
- }
365
- }
366
366
  args.condition = `${args.condition}`+this.orgcondition
367
367
  this.condition = args.condition
368
368
  this.model.search(args.condition, args.model)
@@ -867,22 +867,22 @@ export default{
867
867
  },
868
868
  // 物联网表抄表
869
869
  webmeterHandConfig: {
870
- 'f_userinfo_code': '用户编号',
871
- 'f_user_name': '用户名称',
870
+ 'f_userinfo_code': '客户编号',
871
+ 'f_user_name': '客户名称',
872
872
  'f_residential_area': '小区名称',
873
873
  'f_address': '地址',
874
- 'f_meter_brand': '气表品牌',
875
874
  'f_meternumber': '表号',
876
- 'f_oughtamount': '本期气量',
877
- 'f_oughtfee': '本期金额',
878
- 'f_jval': '表内剩余余额',
875
+ 'f_meter_brand': '气表品牌',
879
876
  'f_hand_date': '抄表日期',
880
877
  'f_total_fee': '累计购气金额',
881
878
  'f_last_tablebase': '上期底数',
882
879
  'f_tablebase': '本期底数',
883
- 'f_balance_amount': '系统余额',
880
+ 'f_curbalance': '系统余额',
881
+ 'f_jval': '表上余额',
884
882
  'cyclegas': '当前周期已用气量',
885
883
  'cyclefee': '当前周期消费金额',
884
+ 'f_oughtamount': '本次气量',
885
+ 'f_oughtfee': '本次金额',
886
886
  'f_stair1price': '一阶气价',
887
887
  'f_stairamount1': '一阶气量',
888
888
  'f_stair1fee': '一阶金额',