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,444 +1,444 @@
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
-
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 HH:mm:ss'"
16
- :show-reset-button="true"
17
- condition="f_operate_date >= '{}'">
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 HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_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
-
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
46
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
47
- sqlurl="rs/logic/exportfile" sql-name="reverseQuery" template-name='冲正查询导出'
48
- :choose-col="true"></export-excel>
49
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
50
-
51
- titletable="冲正记录" :defaultfield="$parent.$parent.defaultfield"
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
-
57
- <div class="row" v-show="$parent.$parent.criteriaShow">
58
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body">客户名称</label>
61
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
62
- condition="f_user_name like '%{}%'" placeholder="客户名称">
63
- </div>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">客户地址</label>
66
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
67
- condition="f_address like '%{}%'" placeholder='客户地址'>
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">冲正类型</label>
71
- <v-select :value.sync="model.f_type"
72
- v-model="model.f_type"
73
- :options='$parent.$parent.correctTypes' placeholder='请选择'
74
- condition="f_type = '{}'"
75
- close-on-select></v-select>
76
- </div>
77
- <div class="col-sm-2 form-group">
78
- <label class="font_normal_body">客户类型</label>
79
- <v-select :value.sync="model.f_user_type"
80
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
81
- condition="f_user_type = '{}'"
82
- close-on-select></v-select>
83
- </div>
84
- <div class="col-sm-2 form-group">
85
- <label class="font_normal_body">表&emsp;&emsp;号</label>
86
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
87
- condition="f_meternumber = '{}'" placeholder='表号'>
88
- </div>
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
91
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
92
- condition="f_card_id = '{}'" placeholder='卡号'>
93
- </div>
94
- </div>
95
- </div>
96
- </criteria>
97
-
98
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
99
- <template partial='head'>
100
- <tr>
101
- <th>
102
- <!-- <nobr>客户编号</nobr>-->
103
- <data-order field="f_userinfo_code" name="客户编号"
104
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
105
- </th>
106
- <th>
107
- <nobr>客户名称</nobr>
108
- </th>
109
- <th>
110
- <nobr>档案编号</nobr>
111
- </th>
112
- <th>
113
- <!-- <nobr>客户地址</nobr>-->
114
- <data-order field="f_address" name="客户地址"
115
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
116
- </th>
117
- <th>
118
- <nobr>冲正类型</nobr>
119
- </th>
120
- <th>
121
- <nobr>冲正气量</nobr>
122
- </th>
123
- <th>
124
- <nobr>冲正金额</nobr>
125
- </th>
126
- <th>
127
- <nobr>冲正收款</nobr>
128
- </th>
129
- <th>
130
- <!-- <nobr>冲正日期</nobr>-->
131
- <data-order field="f_operate_date" name="冲正日期"
132
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
133
- </th>
134
- <th>
135
- <nobr>人员</nobr>
136
- </th>
137
- <th>
138
- <nobr>部门</nobr>
139
- </th>
140
- <th>
141
- <nobr>公司</nobr>
142
- </th>
143
- <th><nobr>附件</nobr></th>
144
- </tr>
145
- </template>
146
- <template partial='body'>
147
- <td style="text-align: center;">
148
- <nobr>
149
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr>{{row.f_user_name}}</nobr>
153
- </td>
154
- <td style="text-align: center;">
155
- <nobr>{{row.f_olduserinfo_code}}</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_type}}</nobr>
162
- </td>
163
- <td style="text-align: center;">
164
- <nobr>{{row.f_pregas}}</nobr>
165
- </td>
166
- <td style="text-align: center;">
167
- <nobr>{{row.f_preamount}}</nobr>
168
- </td>
169
- <td style="text-align: center;">
170
- <nobr>{{row.f_collection}}</nobr>
171
- </td>
172
- <td style="text-align: center;">
173
- <nobr>{{row.f_operate_date}}</nobr>
174
- </td>
175
- <td style="text-align: center;">
176
- <nobr>{{row.f_operator}}</nobr>
177
- </td>
178
- <td style="text-align: center;">
179
- <nobr>{{row.f_depname}}</nobr>
180
- </td>
181
- <td style="text-align: center;">
182
- <nobr>{{row.f_orgname}}</nobr>
183
- </td>
184
- <td style="text-align: center;"><nobr>
185
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
186
- </nobr></td>
187
- </template>
188
- <template partial='foot'></template>
189
- </data-grid>
190
-
191
- </criteria-paged>
192
-
193
- <table class="table-hover">
194
- <tr style="position: relative" class="table-bordered">
195
- <td
196
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
197
- 汇总信息
198
- </td>
199
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
200
- 冲正气量合计:&emsp;{{sumsmodel.f_pregas}}
201
- </td>
202
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
203
- 冲正金额合计:&emsp;{{sumsmodel.f_preamount}}
204
- </td>
205
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
206
- 收款合计:&emsp;{{sumsmodel.f_collection}}
207
- </td>
208
- </tr>
209
- </table>
210
-
211
- </div>
212
- <div class="flex" v-if="show">
213
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
214
- </div>
215
- </div>
216
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
217
- <article slot="modal-body">
218
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="冲正" :isremark="false" style="width:auto" ></upload>
219
- </article>
220
- <footer slot="modal-footer" class="modal-footer">
221
- </footer>
222
- </modal>
223
- </div>
224
- </template>
225
-
226
- <script>
227
- import {PagedList} from 'vue-client'
228
- import defaultPrint from '../config/DefaultPrint'
229
- import exportConfig from '../config/exportConfig'
230
-
231
- let readySomething = async function (self) {
232
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
233
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
234
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
235
- // await self.$refs.paged.$refs.cri.search()
236
- await self.$MagLoadParams.loadParam(self.$login.f)
237
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
238
- }
239
- export default {
240
- props:['data'],
241
- title: '冲正查询',
242
- data() {
243
- return {
244
- data: {},
245
- other:[],
246
- footer:[],
247
- model: new PagedList('rs/sql/reverseQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_pregas: 0, f_preamount: 0, f_collection: 0}),
248
- criteriaShow: false,
249
- orgCondtionStr: '',
250
- initres: {
251
- org:[this.$login.f.orgid],
252
- dep:[],
253
- user:[],
254
- },
255
- //排序
256
- orderitem:'f_operate_date desc',
257
- orderFields: {
258
- f_operate_date: 'no'
259
- },
260
- show:false,
261
- rowdata:{},
262
- modelval: [],
263
- printshow: false,
264
- all: false,
265
- fields: {},
266
- thead: '',
267
- //默认打印列
268
- defaultfield: [],
269
- config: {
270
- defaultPrint: ['f_userinfo_code','f_user_name', 'f_address']
271
- },
272
- showupload:false,
273
- selected:{},
274
- tfoot: '',
275
- //合计数据
276
- sumsmodel: {}
277
- }
278
- },
279
- ready() {
280
- readySomething(this).then(() => {
281
- this.$emit('ready')
282
- }).catch((error) => {
283
- this.$emit('error', error)
284
- })
285
- },
286
- methods: {
287
- view(row){
288
- this.showupload = true
289
- this.selected= row
290
- },
291
- getotherfooter(){
292
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
293
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
294
- this.other=[];
295
- this.footer=[];
296
- let exportdata = this.getCondition;
297
- let otherInData=[];
298
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
299
- let footerData=[],exportfield=this.getfield;
300
- footerData.push("合计");
301
- let self = this;
302
- for(var field in self.sumsmodel){
303
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
304
- }
305
- this.footer.push(footerData);
306
- this.other.push(otherInData);
307
- },
308
- search(){
309
- this.$refs.paged.$refs.cri.search()
310
- },
311
- cancel() {
312
- this.show = false
313
- },
314
- selfSearch(args) {
315
- if (this.data) {
316
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
317
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
318
- }
319
- args.condition = `${args.condition}` + this.orgCondtionStr
320
- this.model.search(args.condition, args.model)
321
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
322
- },
323
- clear() {
324
- //清空部门和人员
325
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
326
- //部门和人员变为全选
327
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
328
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
329
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
330
- this.$refs.paged.$refs.cri.model[key] = []
331
- })
332
- },
333
- show() {
334
- this.criteriaShow = true
335
- },
336
- hidden() {
337
- this.criteriaShow = !this.criteriaShow
338
- },
339
- getRes(obj) {
340
- this.orgCondtionStr = obj
341
- },
342
- stamp() {
343
- this.all = false
344
- //默认选择要打印的列
345
- this.modelval = defaultPrint.config
346
- this.fields = this.getfield
347
- console.log('所有打印字段', this.fields)
348
- this.printshow = true
349
- this.put()
350
- },
351
- dealmsg(val) {
352
- console.log('---------------dealmsg')
353
- this.rowdata=val
354
- this.show=true
355
- val.model = this.model.model
356
- this.$dispatch('deal-msg', val)
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
- sort (field, rule) {
387
- // 将所有排序方式设为不排序,实现相互排斥
388
- for (let key in this.orderFields) {
389
- if (key === field) {
390
- this.orderFields[key] = rule
391
- } else {
392
- this.orderFields[key] = 'no'
393
- }
394
- }
395
- // 如果新规则不排序,还原为默认排序
396
- if (rule === 'no') {
397
- this.model.paramSource.orderitem = `'${this.orderitem}'`
398
- } else {
399
- this.model.paramSource.orderitem = `'${field} ${rule}'`
400
- }
401
-
402
- this.search()
403
- }
404
- },
405
- watch: {
406
- 'all'(val) {
407
- if (val) {
408
- this.modelval = this.bodyData
409
- } else {
410
- this.modelval = defaultPrint.config
411
- this.put()
412
- }
413
- },
414
- sumsmodel:{
415
- handler: function(val) {
416
- this.getotherfooter();
417
- },
418
- deep: true
419
- },
420
- 'modelval.length'() {
421
- this.put()
422
- },
423
- },
424
- computed: {
425
- getCondition() {
426
- return {
427
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
428
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
429
- },
430
- getfield() {
431
- return exportConfig.reverseConfig
432
- },
433
- defaultexport() {
434
- return exportConfig.reverseexportConfig
435
- },
436
- usertypes() {
437
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
438
- },
439
- correctTypes() {
440
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
441
- }
442
- }
443
- }
444
- </script>
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
+
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 HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operate_date >= '{}'">
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 HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_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
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
46
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
47
+ sqlurl="rs/logic/exportfile" sql-name="reverseQuery" template-name='冲正查询导出'
48
+ :choose-col="true"></export-excel>
49
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
50
+
51
+ titletable="冲正记录" :defaultfield="$parent.$parent.defaultfield"
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
+
57
+ <div class="row" v-show="$parent.$parent.criteriaShow">
58
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">客户名称</label>
61
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
62
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
63
+ </div>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">客户地址</label>
66
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
67
+ condition="f_address like '%{}%'" placeholder='客户地址'>
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">冲正类型</label>
71
+ <v-select :value.sync="model.f_type"
72
+ v-model="model.f_type"
73
+ :options='$parent.$parent.correctTypes' placeholder='请选择'
74
+ condition="f_type = '{}'"
75
+ close-on-select></v-select>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">客户类型</label>
79
+ <v-select :value.sync="model.f_user_type"
80
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
81
+ condition="f_user_type = '{}'"
82
+ close-on-select></v-select>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
86
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
87
+ condition="f_meternumber = '{}'" placeholder='表号'>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
91
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
92
+ condition="f_card_id = '{}'" placeholder='卡号'>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </criteria>
97
+
98
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
99
+ <template partial='head'>
100
+ <tr>
101
+ <th>
102
+ <!-- <nobr>客户编号</nobr>-->
103
+ <data-order field="f_userinfo_code" name="客户编号"
104
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
105
+ </th>
106
+ <th>
107
+ <nobr>客户名称</nobr>
108
+ </th>
109
+ <th>
110
+ <nobr>档案编号</nobr>
111
+ </th>
112
+ <th>
113
+ <!-- <nobr>客户地址</nobr>-->
114
+ <data-order field="f_address" name="客户地址"
115
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
116
+ </th>
117
+ <th>
118
+ <nobr>冲正类型</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>冲正气量</nobr>
122
+ </th>
123
+ <th>
124
+ <nobr>冲正金额</nobr>
125
+ </th>
126
+ <th>
127
+ <nobr>冲正收款</nobr>
128
+ </th>
129
+ <th>
130
+ <!-- <nobr>冲正日期</nobr>-->
131
+ <data-order field="f_operate_date" name="冲正日期"
132
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
133
+ </th>
134
+ <th>
135
+ <nobr>人员</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>部门</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>公司</nobr>
142
+ </th>
143
+ <th><nobr>附件</nobr></th>
144
+ </tr>
145
+ </template>
146
+ <template partial='body'>
147
+ <td style="text-align: center;">
148
+ <nobr>
149
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.f_user_name}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.f_olduserinfo_code}}</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_type}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_pregas}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_preamount}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_collection}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_operate_date}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_operator}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_depname}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_orgname}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;"><nobr>
185
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
186
+ </nobr></td>
187
+ </template>
188
+ <template partial='foot'></template>
189
+ </data-grid>
190
+
191
+ </criteria-paged>
192
+
193
+ <table class="table-hover">
194
+ <tr style="position: relative" class="table-bordered">
195
+ <td
196
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
197
+ 汇总信息
198
+ </td>
199
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
200
+ 冲正气量合计:&emsp;{{sumsmodel.f_pregas}}
201
+ </td>
202
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
203
+ 冲正金额合计:&emsp;{{sumsmodel.f_preamount}}
204
+ </td>
205
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
206
+ 收款合计:&emsp;{{sumsmodel.f_collection}}
207
+ </td>
208
+ </tr>
209
+ </table>
210
+
211
+ </div>
212
+ <div class="flex" v-if="show">
213
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
214
+ </div>
215
+ </div>
216
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
217
+ <article slot="modal-body">
218
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="冲正" :isremark="false" style="width:auto" ></upload>
219
+ </article>
220
+ <footer slot="modal-footer" class="modal-footer">
221
+ </footer>
222
+ </modal>
223
+ </div>
224
+ </template>
225
+
226
+ <script>
227
+ import {PagedList} from 'vue-client'
228
+ import defaultPrint from '../config/DefaultPrint'
229
+ import exportConfig from '../config/exportConfig'
230
+
231
+ let readySomething = async function (self) {
232
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
233
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
234
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
235
+ // await self.$refs.paged.$refs.cri.search()
236
+ await self.$MagLoadParams.loadParam(self.$login.f)
237
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
238
+ }
239
+ export default {
240
+ props:['data'],
241
+ title: '冲正查询',
242
+ data() {
243
+ return {
244
+ data: {},
245
+ other:[],
246
+ footer:[],
247
+ model: new PagedList('rs/sql/reverseQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_pregas: 0, f_preamount: 0, f_collection: 0}),
248
+ criteriaShow: false,
249
+ orgCondtionStr: '',
250
+ initres: {
251
+ org:[this.$login.f.orgid],
252
+ dep:[],
253
+ user:[],
254
+ },
255
+ //排序
256
+ orderitem:'f_operate_date desc',
257
+ orderFields: {
258
+ f_operate_date: 'no'
259
+ },
260
+ show:false,
261
+ rowdata:{},
262
+ modelval: [],
263
+ printshow: false,
264
+ all: false,
265
+ fields: {},
266
+ thead: '',
267
+ //默认打印列
268
+ defaultfield: [],
269
+ config: {
270
+ defaultPrint: ['f_userinfo_code','f_user_name', 'f_address']
271
+ },
272
+ showupload:false,
273
+ selected:{},
274
+ tfoot: '',
275
+ //合计数据
276
+ sumsmodel: {}
277
+ }
278
+ },
279
+ ready() {
280
+ readySomething(this).then(() => {
281
+ this.$emit('ready')
282
+ }).catch((error) => {
283
+ this.$emit('error', error)
284
+ })
285
+ },
286
+ methods: {
287
+ view(row){
288
+ this.showupload = true
289
+ this.selected= row
290
+ },
291
+ getotherfooter(){
292
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
293
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
294
+ this.other=[];
295
+ this.footer=[];
296
+ let exportdata = this.getCondition;
297
+ let otherInData=[];
298
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
299
+ let footerData=[],exportfield=this.getfield;
300
+ footerData.push("合计");
301
+ let self = this;
302
+ for(var field in self.sumsmodel){
303
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
304
+ }
305
+ this.footer.push(footerData);
306
+ this.other.push(otherInData);
307
+ },
308
+ search(){
309
+ this.$refs.paged.$refs.cri.search()
310
+ },
311
+ cancel() {
312
+ this.show = false
313
+ },
314
+ selfSearch(args) {
315
+ if (this.data) {
316
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
317
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
318
+ }
319
+ args.condition = `${args.condition}` + this.orgCondtionStr
320
+ this.model.search(args.condition, args.model)
321
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
322
+ },
323
+ clear() {
324
+ //清空部门和人员
325
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
326
+ //部门和人员变为全选
327
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
328
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
329
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
330
+ this.$refs.paged.$refs.cri.model[key] = []
331
+ })
332
+ },
333
+ show() {
334
+ this.criteriaShow = true
335
+ },
336
+ hidden() {
337
+ this.criteriaShow = !this.criteriaShow
338
+ },
339
+ getRes(obj) {
340
+ this.orgCondtionStr = obj
341
+ },
342
+ stamp() {
343
+ this.all = false
344
+ //默认选择要打印的列
345
+ this.modelval = defaultPrint.config
346
+ this.fields = this.getfield
347
+ console.log('所有打印字段', this.fields)
348
+ this.printshow = true
349
+ this.put()
350
+ },
351
+ dealmsg(val) {
352
+ console.log('---------------dealmsg')
353
+ this.rowdata=val
354
+ this.show=true
355
+ val.model = this.model.model
356
+ this.$dispatch('deal-msg', val)
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
+ sort (field, rule) {
387
+ // 将所有排序方式设为不排序,实现相互排斥
388
+ for (let key in this.orderFields) {
389
+ if (key === field) {
390
+ this.orderFields[key] = rule
391
+ } else {
392
+ this.orderFields[key] = 'no'
393
+ }
394
+ }
395
+ // 如果新规则不排序,还原为默认排序
396
+ if (rule === 'no') {
397
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
398
+ } else {
399
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
400
+ }
401
+
402
+ this.search()
403
+ }
404
+ },
405
+ watch: {
406
+ 'all'(val) {
407
+ if (val) {
408
+ this.modelval = this.bodyData
409
+ } else {
410
+ this.modelval = defaultPrint.config
411
+ this.put()
412
+ }
413
+ },
414
+ sumsmodel:{
415
+ handler: function(val) {
416
+ this.getotherfooter();
417
+ },
418
+ deep: true
419
+ },
420
+ 'modelval.length'() {
421
+ this.put()
422
+ },
423
+ },
424
+ computed: {
425
+ getCondition() {
426
+ return {
427
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
428
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
429
+ },
430
+ getfield() {
431
+ return exportConfig.reverseConfig
432
+ },
433
+ defaultexport() {
434
+ return exportConfig.reverseexportConfig
435
+ },
436
+ usertypes() {
437
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
438
+ },
439
+ correctTypes() {
440
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
441
+ }
442
+ }
443
+ }
444
+ </script>