manage-client 3.2.93 → 3.2.94

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 (32) hide show
  1. package/build/dev-server.js +177 -176
  2. package/package.json +1 -1
  3. package/src/components/SellReport/GasMoneyPublicMoney.vue +1 -1
  4. package/src/components/sale/businessquery/CancellationQuery.vue +418 -418
  5. package/src/components/sale/businessquery/CardHandplanQuery.vue +476 -476
  6. package/src/components/sale/businessquery/ChargeQuery.vue +1297 -1283
  7. package/src/components/sale/businessquery/DisableQuery.vue +493 -493
  8. package/src/components/sale/businessquery/EnableQuery.vue +451 -451
  9. package/src/components/sale/businessquery/FillCardQuery.vue +529 -529
  10. package/src/components/sale/businessquery/FillGasQuery.vue +560 -560
  11. package/src/components/sale/businessquery/HandplanQuery.vue +1372 -1372
  12. package/src/components/sale/businessquery/MoveMeterQuery.vue +397 -397
  13. package/src/components/sale/businessquery/PrivilegeQuery.vue +380 -380
  14. package/src/components/sale/businessquery/ReceiptQuery.vue +834 -834
  15. package/src/components/sale/businessquery/ReverseQuery.vue +444 -444
  16. package/src/components/sale/businessquery/TransferQuery.vue +461 -461
  17. package/src/components/sale/businessquery/overDueQuery.vue +453 -453
  18. package/src/components/sale/config/exportConfig.js +944 -944
  19. package/src/components/sale/filesquery/UserQuery.vue +930 -941
  20. package/src/filiale/qianneng/ManageBusSummary.vue +224 -0
  21. package/src/filiale/qianneng/exportConfig.js +69 -69
  22. package/src/filiale/qianneng/reportManage.js +3 -1
  23. package/src/filiale/qianneng/sale.js +12 -12
  24. package/src/filiale/zhongyi/ManageBusSummaryPeng.vue +241 -0
  25. package/src/filiale/zhongyi/ManageHandSellMoney.vue +247 -0
  26. package/src/filiale/zhongyi/ManageSellType.vue +284 -0
  27. package/src/filiale/zhongyi/reportManage.js +16 -0
  28. package/src/main.js +66 -66
  29. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  30. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  31. package/.gradle/buildOutputCleanup/built.bin +0 -0
  32. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -1,453 +1,453 @@
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" title="减免开始时间">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="true"
17
- condition="f_operator_date >= '{}'">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body" title="减免结束时间">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operator_date <= '{}'">
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" title="旧客户编号">档案编号</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
38
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
39
- </div>
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
-
45
- <export-excel :data="$parent.$parent.getCondition"
46
- :field="$parent.$parent.getfield"
47
- :footer="$parent.$parent.footer"
48
- :header="$parent.$parent.other"
49
- sqlurl="rs/logic/exportfile" sql-name="overDueQuery" template-name='减免查询导出'
50
- :choose-col="true"></export-excel>
51
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
- :defaultfield="$parent.$parent.defaultfield"
53
- titletable="减免记录"
54
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
- <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>
56
- </div>
57
- </div>
58
- <div class="row" v-show="$parent.$parent.criteriaShow">
59
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
-
61
- <div class="col-sm-2 form-group">
62
- <label class="font_normal_body">客户名称</label>
63
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
64
- condition="f_user_name like '%{}%'" placeholder="客户名称">
65
- </div>
66
- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body">客户地址</label>
68
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
69
- condition="f_address like '%{}%'" placeholder='客户地址'>
70
- </div>
71
- </div>
72
-
73
-
74
-
75
-
76
- </div>
77
- </criteria>
78
-
79
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
80
- <template partial='head'>
81
- <tr>
82
- <th>
83
- <!-- <nobr>客户编号</nobr>-->
84
- <data-order field="f_userinfo_code" name="客户编号"
85
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
86
- </th>
87
- <th>
88
- <nobr>客户名称</nobr>
89
- </th>
90
- <th>
91
- <nobr>档案编号</nobr>
92
- </th>
93
- <th>
94
- <!-- <nobr>客户地址</nobr>-->
95
- <data-order field="f_address" name="客户地址"
96
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
97
- </th>
98
- <th>
99
- <nobr>上期底数</nobr>
100
- </th>
101
- <th>
102
- <nobr>本期底数</nobr>
103
- </th>
104
- <th>
105
- <!-- <nobr>抄表日期</nobr>-->
106
- <data-order field="f_operate_date" name="抄表日期"
107
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
108
- </th>
109
- <th>
110
- <nobr>减免金额</nobr>
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><nobr>附件</nobr></th>
128
- </tr>
129
- </template>
130
- <template partial='body'>
131
- <td style="text-align: center;">
132
- <nobr>{{row.f_userinfo_code}}</nobr>
133
- </td>
134
- <td style="text-align: center;">
135
- <nobr>{{row.f_user_name}}</nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.f_olduserinfo_code}}</nobr>
139
- </td>
140
- <td style="text-align: center;">
141
- <nobr>{{row.f_address}}</nobr>
142
- </td>
143
- <td style="text-align: center;">
144
- <nobr>{{row.f_last_tablebase}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.f_tablebase}}</nobr>
148
- </td>
149
- <td style="text-align: center;">
150
- <nobr>{{row.f_input_date}}</nobr>
151
- </td>
152
- <td style="text-align: center;">
153
- <nobr>{{0-row.f_latefee_ought}}</nobr>
154
- </td>
155
- <td style="text-align: center;">
156
- <nobr>{{row.f_overdue.toFixed(2)}}</nobr>
157
- </td>
158
- <td style="text-align: center;">
159
- <nobr>{{(row.f_overdue.toFixed(2)-(0-row.f_latefee_ought.toFixed(2))).toFixed(2)}}</nobr>
160
- </td>
161
- <td style="text-align: center;">
162
- <nobr>{{row.f_comments}}</nobr>
163
- </td>
164
- <td style="text-align: center;">
165
- <nobr>{{row.f_operator_date}}</nobr>
166
- </td>
167
- <td style="text-align: center;">
168
- <nobr>{{row.f_operator}}</nobr>
169
- </td>
170
- <td style="text-align: center;"><nobr>
171
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
172
- </nobr></td>
173
- </template>
174
- <template partial='foot'></template>
175
- </data-grid>
176
- </criteria-paged>
177
- <table class="table-hover">
178
- <tr style="position: relative" class="table-bordered">
179
- <td
180
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
181
- 汇总信息
182
- </td>
183
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
184
- 减免金额合计:&emsp;{{0-sumsmodel.f_latefee_ought}}
185
- </td>
186
- </tr>
187
- </table>
188
- </div>
189
- <div class="flex" v-if="showinfo">
190
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
191
- </div>
192
- </div>
193
- </div>
194
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
195
- <article slot="modal-body">
196
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="减免优惠" :isremark="false" style="width:auto" ></upload>
197
- </article>
198
- <footer slot="modal-footer" class="modal-footer">
199
- </footer>
200
- </modal>
201
- </template>
202
-
203
- <script>
204
- import {PagedList} from 'vue-client'
205
- import defaultPrint from '../config/DefaultPrint'
206
- import exportConfig from '../config/exportConfig'
207
- import plugins from '../../../plugins/GetLoginInfoService'
208
-
209
- let readySomething = async function (self) {
210
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
211
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
212
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
213
- await self.$MagLoadParams.loadParam()
214
- self.initParams()
215
-
216
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
217
- }
218
- export default {
219
- title: '减免统计',
220
- props:['data'],
221
- data() {
222
- return {
223
- data: {},
224
- other: [],
225
- footer: [],
226
- initres: {
227
- org:[this.$login.f.orgid],
228
- dep:[],
229
- user:[],
230
- },
231
- //排序
232
- orderitem:'f_open_date desc',
233
- orderFields: {
234
- f_open_date: 'no'
235
- },
236
- orderDefault: "'f_open_date desc'",
237
- model: new PagedList('rs/sql/overDueQuery', 20,{orderitem: this.orderitem?`${this.orderitem}`:"'f_open_date desc'"},{
238
- f_latefee_ought:0
239
- }),
240
- f_orgid: this.$login.f.orgid,
241
- criteriaShow: false,
242
- modelval: [],
243
- printshow: false,
244
- all: false,
245
- fields: {},
246
- config: {
247
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_latefee_ought', 'f_comments', 'f_operate_date', 'f_operator']
248
- },
249
-
250
- //默认打印列
251
- defaultfield: [],
252
- thead: '',
253
- tfoot: '',
254
- //orgCondtionStr: '(' + this.$login.f.orgid + ')',
255
- orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
256
- meterbrands: [],
257
- showupload:false,
258
- selected:{},
259
- showinfo:false,
260
- rowdata:{},
261
- //合计数据
262
- sumsmodel: {}
263
- }
264
- },
265
- ready() {
266
- readySomething(this).then(() => {
267
- this.$emit('ready')
268
- }).catch((error) => {
269
- this.$emit('error', error)
270
- })
271
- },
272
- methods: {
273
- view(row){
274
- this.showupload = true
275
- this.selected= row
276
- },
277
- getotherfooter() {
278
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
279
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
280
- this.other = [];
281
- this.footer = [];
282
- let exportdata = this.getCondition;
283
- let otherInData = [];
284
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
285
- let footerData = [], exportfield = this.getfield;
286
- footerData.push("合计");
287
- let self = this;
288
- for (var field in self.sumsmodel) {
289
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
290
- }
291
- this.footer.push(footerData);
292
- this.other.push(otherInData);
293
- },
294
- cancel() {
295
- this.showinfo = false
296
- },
297
- search() {
298
- this.$refs.paged.$refs.cri.search()
299
- },
300
- getRes(obj) {
301
- console.log(obj,"========")
302
- this.orgCondtionStr = obj
303
- },
304
-
305
- selfSearch(args) {
306
- if (this.data) {
307
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
308
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
309
- }
310
- args.condition = `${args.condition} ` + this.orgCondtionStr
311
- console.log("start"+args.condition)
312
- this.model.search(args.condition, args.model)
313
- },
314
- showmsg(obj){
315
- this.rowdata=obj
316
- this.showinfo=true
317
- },
318
- initParams() {
319
- // 初始化气表品牌
320
- let brandArr = []
321
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
322
- let temp = {}
323
- temp.label = item.label
324
- temp.value = item.value.f_meter_brand
325
- brandArr.push(temp)
326
- })
327
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
328
- },
329
-
330
- clear() {
331
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
332
- this.$refs.paged.$refs.cri.model[key] = []
333
- })
334
- },
335
- show() {
336
- this.criteriaShow = true
337
- },
338
- hidden() {
339
- this.criteriaShow = !this.criteriaShow
340
- },
341
- dealmsg(val) {
342
- console.log('---------------dealmsg')
343
- this.rowdata=val
344
- this.show=true
345
- val.model = this.model.model
346
- this.$dispatch('deal-msg', val)
347
- },
348
-
349
- stamp() {
350
- this.all = false
351
- //默认选择要打印的列
352
- this.modelval = defaultPrint.config
353
- this.fields = this.getfield
354
- console.log('所有打印字段', this.fields)
355
- this.printshow = true
356
- this.put()
357
- },
358
- put() {
359
- // 对Modelval进行排序
360
- this.sortModelval()
361
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
362
- for (let key of this.modelval) {
363
- this.thead += '<th>' + this.fields[key] + '</th>'
364
- }
365
- this.thead += '</tr>'
366
- },
367
- print() {
368
- this.$refs.print.PrintAsFile()
369
- this.printshow = false
370
- },
371
- close() {
372
- this.printshow = false
373
- this.all = false
374
- },
375
- // 对选择的列进行排序
376
- sortModelval() {
377
- let sortModel = []
378
- Object.keys(this.fields).forEach((key) => {
379
- if (this.modelval.includes(key)) {
380
- sortModel.push(key)
381
- }
382
- })
383
- this.modelval = sortModel
384
- console.log('选择的打印的字段', this.modelval)
385
- },
386
- async updateParams() {
387
- await this.$MagLoadParams.loadParam(this.f_filialeid)
388
- this.initParams()
389
- },
390
- sort (field, rule) {
391
- // 将所有排序方式设为不排序,实现相互排斥
392
- for (let key in this.orderFields) {
393
- if (key === field) {
394
- this.orderFields[key] = rule
395
- } else {
396
- this.orderFields[key] = 'no'
397
- }
398
- }
399
- // 如果新规则不排序,还原为默认排序
400
- if (rule === 'no') {
401
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
402
- } else {
403
- this.model.paramSource.orderitem = `'${field} ${rule}'`
404
- }
405
-
406
- this.search()
407
- }
408
- },
409
- watch: {
410
- 'all'(val) {
411
- if (val) {
412
- this.modelval = this.bodyData
413
- } else {
414
- this.modelval = defaultPrint.config
415
- this.put()
416
- }
417
- },
418
- 'modelval.length'() {
419
- this.put()
420
- },
421
- sumsmodel: {
422
- handler: function (val) {
423
- this.getotherfooter();
424
- },
425
- deep: true
426
- }
427
- },
428
- computed: {
429
- authArr () {
430
- return this.$login.r ? this.$login.r : []
431
- },
432
- getCondition () {
433
- var con = ""
434
- if (this.orgCondtionStr) {
435
- con = `${this.$refs.paged.$refs.cri.condition} and f_orgid in (${this.orgCondtionStr})`
436
- }
437
- else {
438
- con = `${this.$refs.paged.$refs.cri.condition} and f_orgid in ('${this.$login.f.orgid}' )`
439
- }
440
- return {
441
- condition: con,
442
- orderitem: this.orderitem?`${this.orderitem}`: " f_open_date desc"
443
- }
444
- },
445
- getfield() {
446
- return exportConfig.overDueQueryConfig
447
- },
448
- gaspropertyTypes() {
449
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
450
- }
451
- }
452
- }
453
- </script>
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" title="减免开始时间">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operator_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body" title="减免结束时间">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operator_date <= '{}'">
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" title="旧客户编号">档案编号</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
38
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
39
+ </div>
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
+
45
+ <export-excel :data="$parent.$parent.getCondition"
46
+ :field="$parent.$parent.getfield"
47
+ :footer="$parent.$parent.footer"
48
+ :header="$parent.$parent.other"
49
+ sqlurl="rs/logic/exportfile" sql-name="overDueQuery" template-name='减免查询导出'
50
+ :choose-col="true"></export-excel>
51
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
+ :defaultfield="$parent.$parent.defaultfield"
53
+ titletable="减免记录"
54
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
+ <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>
56
+ </div>
57
+ </div>
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
+
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户名称</label>
63
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
64
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
65
+ </div>
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">客户地址</label>
68
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
69
+ condition="f_address like '%{}%'" placeholder='客户地址'>
70
+ </div>
71
+ </div>
72
+
73
+
74
+
75
+
76
+ </div>
77
+ </criteria>
78
+
79
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
80
+ <template partial='head'>
81
+ <tr>
82
+ <th>
83
+ <!-- <nobr>客户编号</nobr>-->
84
+ <data-order field="f_userinfo_code" name="客户编号"
85
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
86
+ </th>
87
+ <th>
88
+ <nobr>客户名称</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>档案编号</nobr>
92
+ </th>
93
+ <th>
94
+ <!-- <nobr>客户地址</nobr>-->
95
+ <data-order field="f_address" name="客户地址"
96
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
97
+ </th>
98
+ <th>
99
+ <nobr>上期底数</nobr>
100
+ </th>
101
+ <th>
102
+ <nobr>本期底数</nobr>
103
+ </th>
104
+ <th>
105
+ <!-- <nobr>抄表日期</nobr>-->
106
+ <data-order field="f_operate_date" name="抄表日期"
107
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
108
+ </th>
109
+ <th>
110
+ <nobr>减免金额</nobr>
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><nobr>附件</nobr></th>
128
+ </tr>
129
+ </template>
130
+ <template partial='body'>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.f_userinfo_code}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_user_name}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_address}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_last_tablebase}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_tablebase}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_input_date}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{0-row.f_latefee_ought}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.f_overdue.toFixed(2)}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{(row.f_overdue.toFixed(2)-(0-row.f_latefee_ought.toFixed(2))).toFixed(2)}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.f_comments}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;">
165
+ <nobr>{{row.f_operator_date}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.f_operator}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;"><nobr>
171
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
172
+ </nobr></td>
173
+ </template>
174
+ <template partial='foot'></template>
175
+ </data-grid>
176
+ </criteria-paged>
177
+ <table class="table-hover">
178
+ <tr style="position: relative" class="table-bordered">
179
+ <td
180
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
181
+ 汇总信息
182
+ </td>
183
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
184
+ 减免金额合计:&emsp;{{0-sumsmodel.f_latefee_ought}}
185
+ </td>
186
+ </tr>
187
+ </table>
188
+ </div>
189
+ <div class="flex" v-if="showinfo">
190
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
191
+ </div>
192
+ </div>
193
+ </div>
194
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
195
+ <article slot="modal-body">
196
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="减免优惠" :isremark="false" style="width:auto" ></upload>
197
+ </article>
198
+ <footer slot="modal-footer" class="modal-footer">
199
+ </footer>
200
+ </modal>
201
+ </template>
202
+
203
+ <script>
204
+ import {PagedList} from 'vue-client'
205
+ import defaultPrint from '../config/DefaultPrint'
206
+ import exportConfig from '../config/exportConfig'
207
+ import plugins from '../../../plugins/GetLoginInfoService'
208
+
209
+ let readySomething = async function (self) {
210
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
211
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
212
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
213
+ await self.$MagLoadParams.loadParam()
214
+ self.initParams()
215
+
216
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
217
+ }
218
+ export default {
219
+ title: '减免统计',
220
+ props:['data'],
221
+ data() {
222
+ return {
223
+ data: {},
224
+ other: [],
225
+ footer: [],
226
+ initres: {
227
+ org:[this.$login.f.orgid],
228
+ dep:[],
229
+ user:[],
230
+ },
231
+ //排序
232
+ orderitem:'f_open_date desc',
233
+ orderFields: {
234
+ f_open_date: 'no'
235
+ },
236
+ orderDefault: "'f_open_date desc'",
237
+ model: new PagedList('rs/sql/overDueQuery', 20,{orderitem: this.orderitem?`${this.orderitem}`:"'f_open_date desc'"},{
238
+ f_latefee_ought:0
239
+ }),
240
+ f_orgid: this.$login.f.orgid,
241
+ criteriaShow: false,
242
+ modelval: [],
243
+ printshow: false,
244
+ all: false,
245
+ fields: {},
246
+ config: {
247
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_latefee_ought', 'f_comments', 'f_operate_date', 'f_operator']
248
+ },
249
+
250
+ //默认打印列
251
+ defaultfield: [],
252
+ thead: '',
253
+ tfoot: '',
254
+ //orgCondtionStr: '(' + this.$login.f.orgid + ')',
255
+ orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
256
+ meterbrands: [],
257
+ showupload:false,
258
+ selected:{},
259
+ showinfo:false,
260
+ rowdata:{},
261
+ //合计数据
262
+ sumsmodel: {}
263
+ }
264
+ },
265
+ ready() {
266
+ readySomething(this).then(() => {
267
+ this.$emit('ready')
268
+ }).catch((error) => {
269
+ this.$emit('error', error)
270
+ })
271
+ },
272
+ methods: {
273
+ view(row){
274
+ this.showupload = true
275
+ this.selected= row
276
+ },
277
+ getotherfooter() {
278
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
279
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
280
+ this.other = [];
281
+ this.footer = [];
282
+ let exportdata = this.getCondition;
283
+ let otherInData = [];
284
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
285
+ let footerData = [], exportfield = this.getfield;
286
+ footerData.push("合计");
287
+ let self = this;
288
+ for (var field in self.sumsmodel) {
289
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
290
+ }
291
+ this.footer.push(footerData);
292
+ this.other.push(otherInData);
293
+ },
294
+ cancel() {
295
+ this.showinfo = false
296
+ },
297
+ search() {
298
+ this.$refs.paged.$refs.cri.search()
299
+ },
300
+ getRes(obj) {
301
+ console.log(obj,"========")
302
+ this.orgCondtionStr = obj
303
+ },
304
+
305
+ selfSearch(args) {
306
+ if (this.data) {
307
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
308
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
309
+ }
310
+ args.condition = `${args.condition} ` + this.orgCondtionStr
311
+ console.log("start"+args.condition)
312
+ this.model.search(args.condition, args.model)
313
+ },
314
+ showmsg(obj){
315
+ this.rowdata=obj
316
+ this.showinfo=true
317
+ },
318
+ initParams() {
319
+ // 初始化气表品牌
320
+ let brandArr = []
321
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
322
+ let temp = {}
323
+ temp.label = item.label
324
+ temp.value = item.value.f_meter_brand
325
+ brandArr.push(temp)
326
+ })
327
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
328
+ },
329
+
330
+ clear() {
331
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
332
+ this.$refs.paged.$refs.cri.model[key] = []
333
+ })
334
+ },
335
+ show() {
336
+ this.criteriaShow = true
337
+ },
338
+ hidden() {
339
+ this.criteriaShow = !this.criteriaShow
340
+ },
341
+ dealmsg(val) {
342
+ console.log('---------------dealmsg')
343
+ this.rowdata=val
344
+ this.show=true
345
+ val.model = this.model.model
346
+ this.$dispatch('deal-msg', val)
347
+ },
348
+
349
+ stamp() {
350
+ this.all = false
351
+ //默认选择要打印的列
352
+ this.modelval = defaultPrint.config
353
+ this.fields = this.getfield
354
+ console.log('所有打印字段', this.fields)
355
+ this.printshow = true
356
+ this.put()
357
+ },
358
+ put() {
359
+ // 对Modelval进行排序
360
+ this.sortModelval()
361
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
362
+ for (let key of this.modelval) {
363
+ this.thead += '<th>' + this.fields[key] + '</th>'
364
+ }
365
+ this.thead += '</tr>'
366
+ },
367
+ print() {
368
+ this.$refs.print.PrintAsFile()
369
+ this.printshow = false
370
+ },
371
+ close() {
372
+ this.printshow = false
373
+ this.all = false
374
+ },
375
+ // 对选择的列进行排序
376
+ sortModelval() {
377
+ let sortModel = []
378
+ Object.keys(this.fields).forEach((key) => {
379
+ if (this.modelval.includes(key)) {
380
+ sortModel.push(key)
381
+ }
382
+ })
383
+ this.modelval = sortModel
384
+ console.log('选择的打印的字段', this.modelval)
385
+ },
386
+ async updateParams() {
387
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
388
+ this.initParams()
389
+ },
390
+ sort (field, rule) {
391
+ // 将所有排序方式设为不排序,实现相互排斥
392
+ for (let key in this.orderFields) {
393
+ if (key === field) {
394
+ this.orderFields[key] = rule
395
+ } else {
396
+ this.orderFields[key] = 'no'
397
+ }
398
+ }
399
+ // 如果新规则不排序,还原为默认排序
400
+ if (rule === 'no') {
401
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
402
+ } else {
403
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
404
+ }
405
+
406
+ this.search()
407
+ }
408
+ },
409
+ watch: {
410
+ 'all'(val) {
411
+ if (val) {
412
+ this.modelval = this.bodyData
413
+ } else {
414
+ this.modelval = defaultPrint.config
415
+ this.put()
416
+ }
417
+ },
418
+ 'modelval.length'() {
419
+ this.put()
420
+ },
421
+ sumsmodel: {
422
+ handler: function (val) {
423
+ this.getotherfooter();
424
+ },
425
+ deep: true
426
+ }
427
+ },
428
+ computed: {
429
+ authArr () {
430
+ return this.$login.r ? this.$login.r : []
431
+ },
432
+ getCondition () {
433
+ var con = ""
434
+ if (this.orgCondtionStr) {
435
+ con = `${this.$refs.paged.$refs.cri.condition} and f_orgid in (${this.orgCondtionStr})`
436
+ }
437
+ else {
438
+ con = `${this.$refs.paged.$refs.cri.condition} and f_orgid in ('${this.$login.f.orgid}' )`
439
+ }
440
+ return {
441
+ condition: con,
442
+ orderitem: this.orderitem?`${this.orderitem}`: " f_open_date desc"
443
+ }
444
+ },
445
+ getfield() {
446
+ return exportConfig.overDueQueryConfig
447
+ },
448
+ gaspropertyTypes() {
449
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
450
+ }
451
+ }
452
+ }
453
+ </script>