manage-client 3.2.100 → 3.2.101

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.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/src/components/SellReport/GasMoneyPublicMoney.vue +251 -251
  3. package/src/components/SellReport/NonResidentGas.vue +216 -216
  4. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +507 -507
  5. package/src/components/SellReport/ReportItems.vue +246 -246
  6. package/src/components/sale/businessquery/ArrearsQuery.vue +934 -934
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +676 -676
  8. package/src/components/sale/businessquery/InspectListGas.vue +552 -552
  9. package/src/components/sale/businessquery/InspectListUser.vue +449 -449
  10. package/src/components/sale/businessquery/sellingChargePrice.vue +716 -716
  11. package/src/components/sale/config/exportConfig.js +44 -0
  12. package/src/components/webmeter/instruction/NewQueryInstruct.vue +446 -446
  13. package/src/components/webmeter/reportdata/ReportDataQuery.vue +28 -0
  14. package/src/filiale/liaoyuan/MeterQuery.vue +905 -905
  15. package/src/filiale/liaoyuan/RecordInfoQuery.vue +1163 -1163
  16. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  17. package/src/filiale/macheng/FxGasTable.vue +236 -236
  18. package/src/filiale/macheng/ManageDayGas.vue +248 -248
  19. package/src/filiale/macheng/ManageHandSellMoney.vue +249 -249
  20. package/src/filiale/macheng/ManageMonthGas.vue +250 -250
  21. package/src/filiale/macheng/ManageOtherCharge.vue +251 -251
  22. package/src/filiale/macheng/ManageSellType.vue +287 -287
  23. package/src/filiale/macheng/MonthGasQuery.vue +470 -0
  24. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  25. package/src/filiale/macheng/SellingTable.vue +219 -219
  26. package/src/filiale/macheng/UserBalanceReport.vue +178 -178
  27. package/src/filiale/macheng/config/DefaultPrint.js +7 -0
  28. package/src/filiale/macheng/config/exportConfig.js +74 -67
  29. package/src/filiale/macheng/reportManage.js +19 -19
  30. package/src/filiale/macheng/sale.js +12 -11
  31. package/src/filiale/meihekou/HandplanQuery.vue +1234 -1234
  32. package/src/filiale/meihekou/UserQuery.vue +773 -773
  33. package/src/filiale/qianneng/OtherChargeQuery.vue +646 -646
  34. package/src/filiale/rongchuang/SellingTable.vue +251 -251
  35. package/src/filiale/shaoguan/RecordInfoQuery.vue +1150 -1150
  36. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  37. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
@@ -0,0 +1,470 @@
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 HH:mm:ss'"
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 HH:mm:ss'"
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
+
35
+
36
+
37
+ <div class="span" style="float:right;">
38
+ <button class="button_search button_spacing" @click="search()">查询</button>
39
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
40
+ <export-excel :data="$parent.$parent.getCondition"
41
+ :field="$parent.$parent.getfield"
42
+ :footer="$parent.$parent.footer"
43
+ :header="$parent.$parent.other"
44
+ sqlurl="rs/logic/exportfile"
45
+ sql-name="MonthGasQuery"
46
+ template-name='月用气导出'
47
+ :choose-col="true"></export-excel>
48
+
49
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
50
+ :defaultfield="$parent.$parent.defaultfield"
51
+ titletable="月用气导出"
52
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
53
+ <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>
54
+ </div>
55
+ </div>
56
+ <div class="row" v-show="$parent.$parent.criteriaShow">
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">客户名称</label>
59
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
60
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户地址</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
65
+ condition="f_address like '%{}%'" placeholder='客户地址'>
66
+ </div>
67
+
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
70
+ <v-select :value.sync="model.f_user_type"
71
+ @change="$parent.$parent.userTypeChange()"
72
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
73
+ condition="f_user_type = '{}'"
74
+ close-on-select></v-select>
75
+ </div>
76
+
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">用气性质</label>
79
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
80
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
81
+ condition="f_gasproperties = '{}'"
82
+ close-on-select></v-select>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">状态</label>
86
+ <v-select :value.sync="model.f_state" v-model="model.f_state"
87
+ :options='$parent.$parent.f_state' placeholder='请选择'
88
+ multiple
89
+ :search="false"
90
+ condition="f_state in {} "
91
+ close-on-select></v-select>
92
+ </div>
93
+ <div class="col-sm-2 form-group">
94
+ <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
95
+ <v-select :value.sync="model.f_meter_style"
96
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_style"
97
+ condition="f_meter_style = '{}'"
98
+ close-on-select></v-select>
99
+ </div>
100
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
101
+
102
+ </div>
103
+ </div>
104
+ </criteria>
105
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
106
+ <template partial='head'>
107
+ <tr>
108
+ <th><nobr>客户编号</nobr></th>
109
+ <th><nobr>客户名称</nobr></th>
110
+ <th><nobr>一月</nobr></th>
111
+ <th><nobr>二月</nobr></th>
112
+ <th><nobr>三月</nobr></th>
113
+ <th><nobr>四月</nobr></th>
114
+ <th><nobr>五月</nobr></th>
115
+ <th><nobr>六月</nobr></th>
116
+ <th><nobr>七月</nobr></th>
117
+ <th><nobr>八月</nobr></th>
118
+ <th><nobr>九月</nobr></th>
119
+ <th><nobr>十月</nobr></th>
120
+ <th><nobr>十一月</nobr></th>
121
+ <th><nobr>十二月</nobr></th>
122
+ <th><nobr>累计气量</nobr></th>
123
+ <th><nobr>累计金额</nobr></th>
124
+ <th><nobr>月平均气量</nobr></th>
125
+ <th><nobr>往年月平均气量</nobr></th>
126
+ <th><nobr>气表类型</nobr></th>
127
+ </tr>
128
+ </template>
129
+ <template partial='body'>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.code}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.username}}</nobr>
135
+ </td>
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.jan}}</nobr>
138
+ </td>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.feb}}</nobr>
141
+ </td>
142
+ <td style="text-align: center;">
143
+ <nobr>{{row.mar}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.apr}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.may}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.jun}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.jul}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.jug}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.sep}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.oct}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.nov}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.dec}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.sum_oughtamount}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_oughtfee}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.avg_oughtamount}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.avg_qunianoughtamount}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_meter_style}}</nobr>
186
+ </td>
187
+ </template>
188
+ <template partial='foot'></template>
189
+ </data-grid>
190
+ </criteria-paged>
191
+ <table class="table-hover">
192
+ <tr style="position: relative" class="table-bordered">
193
+ <td
194
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
195
+ 汇总信息
196
+ </td>
197
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
198
+ 1月合计:&emsp;{{sumsmodel.jan}}
199
+ </td>
200
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
201
+ 2月合计:&emsp;{{sumsmodel.feb}}
202
+ </td>
203
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
204
+ 3月合计:&emsp;{{sumsmodel.mar}}
205
+ </td>
206
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
207
+ 4月合计:&emsp;{{sumsmodel.apr}}
208
+ </td>
209
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
210
+ 5月合计:&emsp;{{sumsmodel.may}}
211
+ </td>
212
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
213
+ 6月合计:&emsp;{{sumsmodel.jun}}
214
+ </td>
215
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
216
+ 7月合计:&emsp;{{sumsmodel.jul}}
217
+ </td>
218
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
219
+ 8月合计:&emsp;{{sumsmodel.jug}}
220
+ </td>
221
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
222
+ 9月合计:&emsp;{{sumsmodel.sep}}
223
+ </td>
224
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
225
+ 10月合计:&emsp;{{sumsmodel.oct}}
226
+ </td>
227
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
228
+ 11月合计:&emsp;{{sumsmodel.nov}}
229
+ </td>
230
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
231
+ 12月合计:&emsp;{{sumsmodel.dec}}
232
+ </td>
233
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
234
+ 累计用气量合计:&emsp;{{sumsmodel.sum_oughtamount}}
235
+ </td>
236
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
237
+ 累计金额合计:&emsp;{{sumsmodel.f_oughtfee}}
238
+ </td>
239
+ </tr>
240
+ </table>
241
+ </div>
242
+ <div v-if="show">
243
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
244
+ </div>
245
+ </div>
246
+ </div>
247
+ </template>
248
+ <script>
249
+ import { PagedList } from 'vue-client'
250
+ import defaultPrint from './config/DefaultPrint'
251
+ import exportConfig from './config/exportConfig.js'
252
+ let readySomething = async function(self) {
253
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
254
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
255
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
256
+ await self.$MagLoadParams.loadParam()
257
+ self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
258
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
259
+ }
260
+ export default {
261
+ title: '月用气查询',
262
+ name: 'MonthGasQuery',
263
+ data () {
264
+ return {
265
+ model: new PagedList('rs/sql/MonthGasQuery', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
266
+ jan: 0,
267
+ feb: 0,
268
+ mar: 0,
269
+ apr: 0,
270
+ may: 0,
271
+ jun: 0,
272
+ jul: 0,
273
+ jug: 0,
274
+ sep: 0,
275
+ oct: 0,
276
+ nov: 0,
277
+ dec: 0,
278
+ sum_oughtamount: 0,
279
+ f_oughtfee: 0
280
+ }),
281
+ initres: {
282
+ org:[this.$login.f.orgid],
283
+ dep:[],
284
+ user:[],
285
+ },
286
+ other: [],
287
+ footer: [],
288
+ gasproperties:[],
289
+ show:false,
290
+ rowdata:{},
291
+ criteriaShow: false,
292
+ orgCondtionStr: '',
293
+ modelval: [],
294
+ printshow: false,
295
+ all: false,
296
+ fields: {},
297
+ thead: '',
298
+ tfoot: '',
299
+ defaultfield: [],
300
+ config: {
301
+ defaultPrint: ['f_oughtfee', 'avg_oughtamount']
302
+ },
303
+ smallareas:[{label: '全部',value: ''}], //区域
304
+ //合计数据
305
+ sumsmodel: {},
306
+ f_filialeid: this.$login.f.f_orgid,
307
+ f_orgid: this.$login.f.orgid,
308
+ f_depid: this.$login.f.depids,
309
+ f_operatorid: this.$login.f.id
310
+ }
311
+ },
312
+ ready () {
313
+ readySomething(this)
314
+ },
315
+ methods: {
316
+ getotherfooter() {
317
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
318
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
319
+ this.other = [];
320
+ this.footer = [];
321
+ // let exportdata = this.getCondition;
322
+ let otherInData = [];
323
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
324
+ let footerData = [], exportfield = this.getfield;
325
+ footerData.push("合计");
326
+ let self = this;
327
+ for (var field in self.sumsmodel) {
328
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
329
+ }
330
+ this.footer.push(footerData);
331
+ this.other.push(otherInData);
332
+ },
333
+ userTypeChange () {
334
+ this.gasproperties=[]
335
+ if(this.$refs.paged.$refs.cri.model !==null) {
336
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
337
+
338
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
339
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
340
+ }
341
+ else{
342
+ this.gasproperties =[{label: '全部', value: ''}]
343
+ }
344
+ },
345
+ search(){
346
+ this.$refs.paged.$refs.cri.search()
347
+ },
348
+ cancel() {
349
+ this.show = false
350
+ },
351
+ selfSearch(args) {
352
+ args.condition = `${args.condition} ` + this.orgCondtionStr
353
+ let f_orgstr = this.orgCondtionStr + 'and f_orgid = ' + this.f_orgid
354
+ args.condition = `${args.condition} ` + f_orgstr
355
+ this.model.search(args.condition, args.model)
356
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
357
+ },
358
+ clear() {
359
+ //清空部门和人员
360
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
361
+ //部门和人员变为全选
362
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
363
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
364
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
365
+ this.$refs.paged.$refs.cri.model[key] = []
366
+ })
367
+ },
368
+ show() {
369
+ this.criteriaShow = true
370
+ },
371
+ hidden() {
372
+ this.criteriaShow = !this.criteriaShow
373
+ },
374
+ showmsg(obj){
375
+ this.rowdata=obj
376
+ this.show=true
377
+ },
378
+ getRes(condition,obj) {
379
+ this.orgCondtionStr = condition
380
+ this.orgname = obj.orgnames[0]
381
+ this.depname = obj.depnames[0]
382
+ },
383
+ put() {
384
+ // 对Modelval进行排序
385
+ this.sortModelval()
386
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
387
+ for (let key of this.modelval) {
388
+ this.thead += '<th>' + this.fields[key] + '</th>'
389
+ }
390
+ this.thead += '</tr>'
391
+ },
392
+ print() {
393
+ this.$refs.print.PrintAsFile()
394
+ this.printshow = false
395
+ },
396
+ dealmsg(val) {
397
+ this.rowdata=val
398
+ this.show=true
399
+ val.model = this.model.model
400
+ this.$dispatch('deal-msg', val)
401
+ },
402
+ close() {
403
+ this.printshow = false
404
+ this.all = false
405
+ },
406
+ // 对选择的列进行排序
407
+ sortModelval() {
408
+ let sortModel = []
409
+ Object.keys(this.fields).forEach((key) => {
410
+ if (this.modelval.includes(key)) {
411
+ sortModel.push(key)
412
+ }
413
+ })
414
+ this.modelval = sortModel
415
+ console.log('选择的打印的字段', this.modelval)
416
+ }
417
+ },
418
+ computed: {
419
+ getCondition() {
420
+ return {
421
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
422
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
423
+ endDate: this.$refs.paged.$refs.cri.model.endDate
424
+ }
425
+ },
426
+ getfield() {
427
+ return exportConfig.monthGasConfig
428
+ },
429
+ usertypes() {
430
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
431
+ },
432
+ f_state() {
433
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费状态')]
434
+ },
435
+ metertypes() {
436
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
437
+ },
438
+ },
439
+ events: {
440
+
441
+ },
442
+ watch: {
443
+ 'all'(val) {
444
+ if (val) {
445
+ this.modelval = this.bodyData
446
+ } else {
447
+ this.modelval = defaultPrint.monthGasConfig
448
+ this.put()
449
+ }
450
+ },
451
+ 'modelval.length'() {
452
+ this.put()
453
+ },
454
+ sumsmodel: {
455
+ handler: function (val) {
456
+ this.getotherfooter();
457
+ },
458
+ deep: true
459
+ }
460
+ }
461
+ }
462
+ </script>
463
+ <style>
464
+ .datapanel {
465
+ color: #333;
466
+ background-color: white;
467
+ padding: 10px 20px;
468
+ border-radius:15px;
469
+ }
470
+ </style>