manage-client 3.2.80 → 3.2.83-1

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 (60) hide show
  1. package/build/dev-server.js +6 -6
  2. package/package.json +1 -1
  3. package/src/components/SellReport/NonResidentGas.vue +13 -0
  4. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +36 -30
  5. package/src/components/SellReport/SellDepReport.vue +269 -266
  6. package/src/components/sale/businessquery/AreaChargeQuery.vue +22 -22
  7. package/src/components/sale/businessquery/AreaGeneralQuery.vue +35 -40
  8. package/src/components/sale/businessquery/BalanceTable.vue +29 -31
  9. package/src/components/sale/businessquery/BusinesQuery.vue +57 -18
  10. package/src/components/sale/businessquery/BusinessManage.vue +3 -1
  11. package/src/components/sale/businessquery/CancellationQuery.vue +37 -6
  12. package/src/components/sale/businessquery/CardHandplanQuery.vue +34 -6
  13. package/src/components/sale/businessquery/ChangeMeterQuery.vue +38 -7
  14. package/src/components/sale/businessquery/CollectManage.vue +9 -3
  15. package/src/components/sale/businessquery/CommunityPaymen.vue +24 -24
  16. package/src/components/sale/businessquery/DepositDetail.vue +16 -17
  17. package/src/components/sale/businessquery/DisableQuery.vue +40 -9
  18. package/src/components/sale/businessquery/EnableQuery.vue +66 -34
  19. package/src/components/sale/businessquery/FMYGasQuery.vue +26 -26
  20. package/src/components/sale/businessquery/FillCardQuery.vue +38 -6
  21. package/src/components/sale/businessquery/FillGasQuery.vue +45 -7
  22. package/src/components/sale/businessquery/GasLossQuery.vue +1 -1
  23. package/src/components/sale/businessquery/HandBookQuery.vue +37 -38
  24. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +38 -37
  25. package/src/components/sale/businessquery/HandPeopleQuery.vue +22 -22
  26. package/src/components/sale/businessquery/Handgasquery.vue +30 -33
  27. package/src/components/sale/businessquery/HandplanQuery.vue +1372 -1327
  28. package/src/components/sale/businessquery/InfoOperateRecord.vue +13 -1
  29. package/src/components/sale/businessquery/MonthGasQuery.vue +2 -1
  30. package/src/components/sale/businessquery/MoveMeterQuery.vue +43 -9
  31. package/src/components/sale/businessquery/NoBusinessQuery.vue +23 -26
  32. package/src/components/sale/businessquery/OtherChargeQuery.vue +37 -6
  33. package/src/components/sale/businessquery/PlotSummaryQuery.vue +22 -21
  34. package/src/components/sale/businessquery/PrickBillQuery.vue +15 -13
  35. package/src/components/sale/businessquery/PrivilegeQuery.vue +37 -7
  36. package/src/components/sale/businessquery/ProceedsOper.vue +4 -10
  37. package/src/components/sale/businessquery/ReceiptQuery.vue +9 -6
  38. package/src/components/sale/businessquery/ResidentialArrearsQuery.vue +23 -24
  39. package/src/components/sale/businessquery/ResidentialQuery.vue +21 -28
  40. package/src/components/sale/businessquery/ReverseQuery.vue +37 -6
  41. package/src/components/sale/businessquery/SellOrgnameQuery.vue +29 -27
  42. package/src/components/sale/businessquery/SellPeopleQuery.vue +29 -30
  43. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +27 -26
  44. package/src/components/sale/businessquery/TransferQuery.vue +55 -23
  45. package/src/components/sale/businessquery/UnhandBusiness.vue +324 -0
  46. package/src/components/sale/businessquery/UserSellHeadDetail.vue +30 -33
  47. package/src/components/sale/businessquery/YingShouMingXi.vue +10 -15
  48. package/src/components/sale/businessquery/YonghuJieyu.vue +4 -2
  49. package/src/components/sale/businessquery/gasPriceQuery.vue +1 -2
  50. package/src/components/sale/businessquery/handplan-info.vue +405 -0
  51. package/src/components/sale/businessquery/overDueQuery.vue +39 -29
  52. package/src/components/sale/businessquery/priceadjustQuery.vue +36 -6
  53. package/src/components/sale/businessquery/sellingChargePrice.vue +667 -0
  54. package/src/components/sale/config/exportConfig.js +20 -1
  55. package/src/filiale/qianneng/ChargeQuery.vue +1289 -0
  56. package/src/filiale/qianneng/HandplanQuery.vue +1352 -0
  57. package/src/filiale/qianneng/OtherChargeQuery.vue +13 -1
  58. package/src/filiale/qianneng/exportConfig.js +69 -35
  59. package/src/filiale/qianneng/sale.js +3 -1
  60. package/src/saleManage.js +10 -2
@@ -0,0 +1,405 @@
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-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">财务月度</label>
11
+ <datepicker id="aaa" placeholder="开始日期" style="width:60%"
12
+ v-model="model.accountingStartDate"
13
+ :value.sync="model.accountingStartDate"
14
+ format="yyyy-MM-dd HH:mm:ss"
15
+ :show-reset-button="true"
16
+ condition="f_accounting_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">财务月度</label>
21
+ <datepicker id="aaa" placeholder="结束日期" style="width:60%"
22
+ v-model="model.accountingEndDate"
23
+ :value.sync="model.accountingEndDate"
24
+ format="yyyy-MM-dd HH:mm:ss"
25
+ :show-reset-button="true"
26
+ condition="f_accounting_date <= '{}'">
27
+
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">自然月度</label>
32
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
33
+ v-model="model.handStartDate"
34
+ :value.sync="model.handStartDate"
35
+ format="yyyy-MM-dd HH:mm:ss"
36
+ :show-reset-button="true"
37
+ condition="f_hand_date >= '{}'">
38
+ </datepicker>
39
+ </div>
40
+ <div class="col-sm-2 form-group">
41
+ <label class="font_normal_body">自然月度</label>
42
+ <datepicker id="startDate" placeholder="结束日期" style="width:60%"
43
+ v-model="model.handEndDate"
44
+ :value.sync="model.handEndDate"
45
+ format="yyyy-MM-dd HH:mm:ss"
46
+ :show-reset-button="true"
47
+ condition="f_hand_date <= '{}'">
48
+ </datepicker>
49
+ </div>
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
+
54
+ <export-excel :data="$parent.$parent.getCondition"
55
+ :field="$parent.$parent.getfield"
56
+ :footer="$parent.$parent.footer"
57
+ :header="$parent.$parent.other"
58
+ sqlurl="rs/logic/exportfile"
59
+ sql-name="HandPlanCollection"
60
+ template-name='抄表情况记录表'
61
+ :choose-col="true"></export-excel>
62
+ <print-data :model="$parent.model"
63
+ :field="$parent.$parent.getfield"
64
+ :sum-field="$parent.$parent.getfield"
65
+ titletable="抄表情况记录表"
66
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
67
+ <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>
68
+ </div>
69
+
70
+ </div>
71
+
72
+ <div class="row" v-show="$parent.$parent.criteriaShow">
73
+ <div class="col-sm-2 form-group ">
74
+ <label for="f_gasproperties"class="font_normal_body">用气性质</label>
75
+ <v-select id="f_gasproperties"
76
+ style="width:60%"
77
+ v-model="model.f_gasproperties"
78
+ placeholder='用气性质'
79
+ :value.sync="model.f_gasproperties"
80
+ :options='$parent.$parent.gasproperties'
81
+ condition="f_gasproperties = '{}'"
82
+ close-on-select >
83
+ </v-select>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </criteria>
88
+
89
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
90
+ <template partial='head'>
91
+ <tr>
92
+ <th rowspan="2">
93
+ <nobr>用户号</nobr>
94
+ </th>
95
+ <th rowspan="2">
96
+ <nobr>小区</nobr>
97
+ </th>
98
+ <th rowspan="2">
99
+ <nobr>地址</nobr>
100
+ </th>
101
+ <th rowspan="2">
102
+ <nobr>用户名</nobr>
103
+ </th>
104
+ <th rowspan="2">
105
+ <nobr>表钢号</nobr>
106
+ </th>
107
+ <th rowspan="2">
108
+ <nobr>客户类型</nobr>
109
+ </th>
110
+ <th rowspan="2">
111
+ <nobr>用气性质</nobr>
112
+ </th>
113
+ <th colspan="12">
114
+ <nobr>月份</nobr>
115
+ </th>
116
+ </tr>
117
+ <tr>
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
+ <th>
149
+ <nobr>十一月</nobr>
150
+ </th>
151
+ <th>
152
+ <nobr>十二月</nobr>
153
+ </th>
154
+ </tr>
155
+
156
+
157
+
158
+ </template>
159
+ <template partial='body'>
160
+ <td style="text-align: center;">{{row.f_userinfo_code}}</td>
161
+ <td style="text-align: center;">{{row.f_residential_area}}</td>
162
+ <td style="text-align: center;">{{row.f_address}}</td>
163
+ <th style="text-align: center;">{{row.f_user_name}}</th>
164
+ <th style="text-align: center;">{{row.f_meternumber}}</th>
165
+ <th style="text-align: center;">{{row.f_user_type}}</th>
166
+ <th style="text-align: center;">{{row.f_gasproperties}}</th>
167
+ <th style="text-align: center;">{{row.f_month1}}</th>
168
+ <th style="text-align: center;">{{row.f_month2}}</th>
169
+ <th style="text-align: center;">{{row.f_month3}}</th>
170
+ <th style="text-align: center;">{{row.f_month4}}</th>
171
+ <th style="text-align: center;">{{row.f_month5}}</th>
172
+ <th style="text-align: center;">{{row.f_month6}}</th>
173
+ <th style="text-align: center;">{{row.f_month7}}</th>
174
+ <th style="text-align: center;">{{row.f_month8}}</th>
175
+ <th style="text-align: center;">{{row.f_month9}}</th>
176
+ <th style="text-align: center;">{{row.f_month10}}</th>
177
+ <th style="text-align: center;">{{row.f_month11}}</th>
178
+ <th style="text-align: center;">{{row.f_month12}}</th>
179
+ </template>
180
+ </data-grid>
181
+ </criteria-paged>
182
+ </div>
183
+ </div>
184
+ </div>
185
+
186
+ </template>
187
+ <script>
188
+ /**
189
+ *用户档案查询列表以及添加操作组件
190
+ */
191
+ import {PagedList} from 'vue-client'
192
+ import defaultPrint from '../config/DefaultPrint'
193
+ import exportConfig from '../config/exportConfig'
194
+
195
+ let readySomething = async function (self) {
196
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
197
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
198
+ // await self.$refs.paged.$refs.cri.search()
199
+ // await self.$getConfig(self, 'SellingHand')
200
+ // self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
201
+
202
+ await self.$MagLoadParams.loadParam()
203
+
204
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
205
+ console.log('self.sumsmodel', self.sumsmodel)
206
+ }
207
+
208
+
209
+ export default {
210
+ title: '抄表情况记录',
211
+ data() {
212
+ return {
213
+ rows: null,
214
+ other: [],
215
+ footer: [],
216
+ criteriaShow: false,
217
+ model: new PagedList('rs/sql/HandPlanCollection', 50,
218
+ {startDate: 'this.model.startDate', endDate: 'this.model.endDate'},
219
+ {
220
+ f_month1:0,
221
+ f_month2:0,
222
+ f_month3:0,
223
+ f_month4:0,
224
+ f_month5:0,
225
+ f_month6:0,
226
+ f_month7:0,
227
+ f_month8:0,
228
+ f_month9:0,
229
+ f_month10:0,
230
+ f_month11:0,
231
+ f_month12:0
232
+
233
+ }),
234
+ orgCondtionStr: '',
235
+
236
+ getfield: '',
237
+ show:false,
238
+ rowdata:{},
239
+ // config: {
240
+ // defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_last_balance', 'f_balance']
241
+ // },
242
+ initres: {
243
+ org:[this.$login.f.orgid],
244
+ dep:[],
245
+ user:[],
246
+ },
247
+ defaultfield: [],
248
+ sumsmodel: {}
249
+ }
250
+ },
251
+ ready() {
252
+ readySomething(this).then(() => {
253
+ this.$emit('ready')
254
+ }).catch((error) => {
255
+ this.$emit('error', error)
256
+ })
257
+ },
258
+ methods: {
259
+ getotherfooter() {
260
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
261
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
262
+ this.other = [];
263
+ this.footer = [];
264
+ // let exportdata = this.getCondition;
265
+ let otherInData = [];
266
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
267
+ let footerData = [], exportfield = this.getfield;
268
+ footerData.push("合计");
269
+ let self = this;
270
+ for (var field in self.sumsmodel) {
271
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
272
+ }
273
+ this.footer.push(footerData);
274
+ this.other.push(otherInData);
275
+ },
276
+ search(){
277
+ this.$refs.paged.$refs.cri.search()
278
+ },
279
+ selfSearch(args) {
280
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
281
+ args.condition = `${args.condition}` + this.orgCondtionStr
282
+ this.model.search(args.condition, args.model)
283
+ },
284
+ userTypeChange () {
285
+ this.gasproperties=[]
286
+ if(this.$refs.paged.$refs.cri.model !==null) {
287
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
288
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
289
+ }
290
+ else{
291
+ this.gasproperties =[{label: '全部', value: ''}]
292
+ }
293
+ },
294
+ show() {
295
+ this.criteriaShow = true
296
+ },
297
+ cancel() {
298
+ this.show = false
299
+ },
300
+ showmsg(obj){
301
+ this.rowdata=obj
302
+ this.show=true
303
+ },
304
+ dealmsg(val) {
305
+ console.log('---------------dealmsg')
306
+ val.model = this.model.model
307
+ this.$dispatch('deal-msg', val)
308
+ },
309
+ hidden() {
310
+ this.criteriaShow = !this.criteriaShow
311
+ },
312
+ clear() {
313
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
314
+ this.$refs.paged.$refs.cri.model[key] = []
315
+ })
316
+ },
317
+ getRes(obj) {
318
+ this.orgCondtionStr = obj
319
+ },
320
+ stamp() {
321
+ this.all = false
322
+ //默认选择要打印的列
323
+ this.modelval = defaultPrint.config
324
+ this.fields = this.getfield
325
+ console.log('所有打印字段', this.fields)
326
+ this.printshow = true
327
+ this.put()
328
+ },
329
+ put() {
330
+ // 对Modelval进行排序
331
+ this.sortModelval()
332
+ this.thead = `<tr><th colspan=${this.modelval.length}>抄表收费统计报表</th></tr><tr>`
333
+ for (let key of this.modelval) {
334
+ this.thead += '<th>' + this.fields[key] + '</th>'
335
+ }
336
+ this.thead += '</tr>'
337
+ },
338
+ print() {
339
+ this.$refs.print.PrintAsFile()
340
+ this.printshow = false
341
+ },
342
+ close() {
343
+ this.printshow = false
344
+ this.all = false
345
+ },
346
+ // 对选择的列进行排序
347
+ sortModelval() {
348
+ let sortModel = []
349
+ Object.keys(this.fields).forEach((key) => {
350
+ if (this.modelval.includes(key)) {
351
+ sortModel.push(key)
352
+ }
353
+ })
354
+ this.modelval = sortModel
355
+ console.log('选择的打印的字段', this.modelval)
356
+ }
357
+ },
358
+ watch: {
359
+ 'all'(val) {
360
+ if (val) {
361
+ this.modelval = this.bodyData
362
+ } else {
363
+ this.modelval = defaultPrint.config
364
+ this.put()
365
+ }
366
+ },
367
+ 'modelval.length'() {
368
+ this.put()
369
+ },
370
+ sumsmodel: {
371
+ handler: function (val) {
372
+ this.getotherfooter();
373
+ },
374
+ deep: true
375
+ }
376
+ },
377
+ computed: {
378
+ getCondition() {
379
+ let result = {
380
+ condition: this.$refs.paged.$refs.cri.condition + this.orgCondtionStr,
381
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
382
+ endDate: this.$refs.paged.$refs.cri.model.endDate
383
+ }
384
+ return result
385
+ },
386
+ getfield() {
387
+ return exportConfig.handplanInfoConfig
388
+ },
389
+ gasproperties() {
390
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
391
+ },
392
+ // payment() {
393
+ // return [...this.$appdata.getParam('付款方式查询')]
394
+ // }
395
+ }
396
+ }
397
+ </script>
398
+ <style media="screen">
399
+ .divtext {
400
+ min-width: 50px;
401
+ max-width: 200px;
402
+ border: 1px solid green;
403
+ display: inline-block;
404
+ }
405
+ </style>
@@ -7,28 +7,6 @@
7
7
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
8
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
9
  <div class="row">
10
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
-
12
-
13
- <div class="span" style="float:right;">
14
- <button class="button_search button_spacing" @click="search()">查询</button>
15
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
16
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
17
-
18
- <export-excel :data="$parent.$parent.getCondition"
19
- :field="$parent.$parent.getfield"
20
- :footer="$parent.$parent.footer"
21
- :header="$parent.$parent.other"
22
- sqlurl="rs/logic/exportfile" sql-name="overDueQuery" template-name='减免查询导出'
23
- :choose-col="true"></export-excel>
24
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
25
- :defaultfield="$parent.$parent.defaultfield"
26
- titletable="减免记录"
27
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
28
- <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>
29
- </div>
30
- </div>
31
- <div class="row" v-show="$parent.$parent.criteriaShow">
32
10
  <div class="col-sm-2 form-group">
33
11
  <label for="startDate" class="font_normal_body" title="减免开始时间">开始日期</label>
34
12
  <datepicker id="startDate" placeholder="开始日期" style="width:60%"
@@ -59,7 +37,28 @@
59
37
  <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
60
38
  condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
61
39
  </div>
62
- <div class="col-sm-2 form-group">
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">
63
62
  <label class="font_normal_body">客户名称</label>
64
63
  <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
65
64
  condition="f_user_name like '%{}%'" placeholder="客户名称">
@@ -81,7 +80,9 @@
81
80
  <template partial='head'>
82
81
  <tr>
83
82
  <th>
84
- <nobr>客户编号</nobr>
83
+ <!-- <nobr>客户编号</nobr>-->
84
+ <data-order field="f_userinfo_code" name="客户编号"
85
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
85
86
  </th>
86
87
  <th>
87
88
  <nobr>客户名称</nobr>
@@ -90,7 +91,9 @@
90
91
  <nobr>档案编号</nobr>
91
92
  </th>
92
93
  <th>
93
- <nobr>客户地址</nobr>
94
+ <!-- <nobr>客户地址</nobr>-->
95
+ <data-order field="f_address" name="客户地址"
96
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
94
97
  </th>
95
98
  <th>
96
99
  <nobr>上期底数</nobr>
@@ -99,7 +102,9 @@
99
102
  <nobr>本期底数</nobr>
100
103
  </th>
101
104
  <th>
102
- <nobr>抄表日期</nobr>
105
+ <!-- <nobr>抄表日期</nobr>-->
106
+ <data-order field="f_operate_date" name="抄表日期"
107
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
103
108
  </th>
104
109
  <th>
105
110
  <nobr>减免金额</nobr>
@@ -223,11 +228,13 @@
223
228
  dep:[],
224
229
  user:[],
225
230
  },
231
+ //排序
232
+ orderitem:'f_open_date desc',
226
233
  orderFields: {
227
- f_address: 'no'
234
+ f_open_date: 'no'
228
235
  },
229
236
  orderDefault: "'f_open_date desc'",
230
- model: new PagedList('rs/sql/overDueQuery', 20,{orderitem: "'f_open_date desc'"},{
237
+ model: new PagedList('rs/sql/overDueQuery', 20,{orderitem: this.orderitem?`${this.orderitem}`:"'f_open_date desc'"},{
231
238
  f_latefee_ought:0
232
239
  }),
233
240
  f_orgid: this.$login.f.orgid,
@@ -239,6 +246,7 @@
239
246
  config: {
240
247
  defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_latefee_ought', 'f_comments', 'f_operate_date', 'f_operator']
241
248
  },
249
+
242
250
  //默认打印列
243
251
  defaultfield: [],
244
252
  thead: '',
@@ -337,6 +345,7 @@
337
345
  val.model = this.model.model
338
346
  this.$dispatch('deal-msg', val)
339
347
  },
348
+
340
349
  stamp() {
341
350
  this.all = false
342
351
  //默认选择要打印的列
@@ -429,7 +438,8 @@
429
438
  con = `${this.$refs.paged.$refs.cri.condition} and f_orgid in ('${this.$login.f.orgid}' )`
430
439
  }
431
440
  return {
432
- condition: con
441
+ condition: con,
442
+ orderitem: this.orderitem?`${this.orderitem}`: " f_open_date desc"
433
443
  }
434
444
  },
435
445
  getfield() {
@@ -2,7 +2,7 @@
2
2
  <div id="unit" class="flex-row">
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
6
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
7
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
8
  <div class="row">
@@ -116,7 +116,9 @@
116
116
  <nobr>补差编号</nobr>
117
117
  </th>
118
118
  <th>
119
- <nobr>客户编号</nobr>
119
+ <!-- <nobr>客户编号</nobr>-->
120
+ <data-order field="f_userinfo_code" name="客户编号"
121
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
120
122
  </th>
121
123
  <th>
122
124
  <nobr>客户名称</nobr>
@@ -125,7 +127,9 @@
125
127
  <nobr>档案编号</nobr>
126
128
  </th>
127
129
  <th>
128
- <nobr>客户地址</nobr>
130
+ <!-- <nobr>客户地址</nobr>-->
131
+ <data-order field="f_address" name="客户地址"
132
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
129
133
  </th>
130
134
  <th>
131
135
  <nobr>气表品牌</nobr>
@@ -174,7 +178,9 @@
174
178
  <nobr>状态</nobr>
175
179
  </th>
176
180
  <th>
177
- <nobr>操作日期</nobr>
181
+ <!-- <nobr>操作日期</nobr>-->
182
+ <data-order field="f_operate_date" name="操作日期"
183
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
178
184
  </th>
179
185
 
180
186
  <th>
@@ -335,7 +341,12 @@
335
341
  dep:[],
336
342
  user:[]
337
343
  },
338
- model: new PagedList('rs/sql/surplusQuery', 20, {}, {
344
+ //排序
345
+ orderitem:'f_operate_date desc',
346
+ orderFields: {
347
+ f_operate_date: 'no'
348
+ },
349
+ model: new PagedList('rs/sql/surplusQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}, {
339
350
  f_real_amount: 0,
340
351
  f_surplus_fee: 0
341
352
  }),
@@ -464,6 +475,24 @@
464
475
  this.orgCondtionStr = condition
465
476
  this.orgname = obj.orgnames[0]
466
477
  this.depname = obj.depnames[0]
478
+ },
479
+ sort (field, rule) {
480
+ // 将所有排序方式设为不排序,实现相互排斥
481
+ for (let key in this.orderFields) {
482
+ if (key === field) {
483
+ this.orderFields[key] = rule
484
+ } else {
485
+ this.orderFields[key] = 'no'
486
+ }
487
+ }
488
+ // 如果新规则不排序,还原为默认排序
489
+ if (rule === 'no') {
490
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
491
+ } else {
492
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
493
+ }
494
+
495
+ this.search()
467
496
  }
468
497
 
469
498
  },
@@ -486,7 +515,8 @@
486
515
  return {
487
516
  startDate: this.$refs.paged.$refs.cri.model.startDate,
488
517
  endDate: this.$refs.paged.$refs.cri.model.endDate,
489
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
518
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
519
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
490
520
  },
491
521
  getfield() {
492
522
  return exportConfig.surplusConfig