manage-client 3.2.26 → 3.2.30

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 (54) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +28 -9
  5. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/package.json +1 -1
  7. package/src/.idea/misc.xml +9 -0
  8. package/src/.idea/modules.xml +8 -0
  9. package/src/.idea/src.iml +9 -0
  10. package/src/.idea/vcs.xml +6 -0
  11. package/src/.idea/workspace.xml +93 -0
  12. package/src/components/SellReport/ChargePrick.vue +43 -122
  13. package/src/components/sale/businessquery/BusinesQuery.vue +358 -348
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -627
  15. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -348
  16. package/src/components/sale/businessquery/ChargeQuery.vue +1245 -1235
  17. package/src/components/sale/businessquery/DisableQuery.vue +451 -441
  18. package/src/components/sale/businessquery/EnableQuery.vue +408 -398
  19. package/src/components/sale/businessquery/FillCardQuery.vue +486 -477
  20. package/src/components/sale/businessquery/FillGasQuery.vue +511 -491
  21. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  22. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -619
  23. package/src/components/sale/businessquery/ReverseQuery.vue +402 -392
  24. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  25. package/src/components/sale/businessquery/TransferQuery.vue +418 -404
  26. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  27. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  28. package/src/components/sale/filesquery/DeviceQuery.vue +534 -524
  29. package/src/components/sale/filesquery/FireQuery.vue +477 -0
  30. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1250
  31. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  32. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  33. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  34. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  35. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  36. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  37. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  38. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  39. package/src/filiale/pingxiang/sale.js +9 -9
  40. package/src/filiale/qingtongxia/sale.js +13 -13
  41. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  42. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  43. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  44. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  45. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  46. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  47. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  48. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  49. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  50. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1252
  51. package/src/filiale/tongchuan/FillGasQuery.vue +523 -508
  52. package/src/filiale/tongchuan/config/exportConfig.js +1 -1
  53. package/src/main.js +10 -11
  54. package/src/saleManage.js +5 -0
@@ -1,426 +1,426 @@
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>
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_reversaltime >= '{}'">
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_reversaltime <= '{}'">
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_userid = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition=" f_username like '%{}%'" placeholder='客户名称'>
39
- </div>
40
- <div class="col-sm-2 form-group">
41
- <label class="font_normal_body">客户地址</label>
42
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
43
- condition="f_address like '%{}%'" placeholder='客户地址'>
44
- </div>
45
- <div class="span" style="float:right;">
46
- <button class="button_search button_spacing" @click="search()">查询</button>
47
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
-
50
- <export-excel :data="$parent.$parent.getCondition"
51
- :field="$parent.$parent.getfield"
52
- :header="$parent.$parent.other"
53
- sqlurl="rs/logic/exportfile" sql-name="reconcileQuery" template-name='冲正查询导出'
54
- :choose-col="true"></export-excel>
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
-
59
- <!-- <div class="row" v-show="$parent.$parent.criteriaShow">-->
60
- <!-- </div>-->
61
- </div>
62
- </criteria>
63
-
64
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
65
- <template partial='head'>
66
- <tr>
67
- <th>
68
- <nobr>客户编号</nobr>
69
- </th>
70
- <th>
71
- <nobr>客户名称</nobr>
72
- </th>
73
- <th>
74
- <nobr>身份证号</nobr>
75
- </th>
76
- <th>
77
- <nobr>地址</nobr>
78
- </th>
79
- <th>
80
- <nobr>气表品牌</nobr>
81
- </th>
82
- <th>
83
- <nobr>付款方式</nobr>
84
- </th>
85
- <th>
86
- <nobr>气表型号</nobr>
87
- </th>
88
- <th>
89
- <nobr>气价</nobr>
90
- </th>
91
- <th>
92
- <nobr>上次总累计购气量</nobr>
93
- </th>
94
- <th>
95
- <nobr>用户类型</nobr>
96
- </th>
97
- <th>
98
- <nobr>预购气量</nobr>
99
- </th>
100
- <th>
101
- <nobr>最后购气量</nobr>
102
- </th>
103
- <th>
104
- <nobr>最后购气日期</nobr>
105
- </th>
106
- <th>
107
- <nobr>预购金额</nobr>
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>
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
- <th>
155
- <nobr>冲正类型</nobr>
156
- </th>
157
- </tr>
158
- </template>
159
- <template partial='body'>
160
- <td style="text-align: center;">
161
- <nobr>{{row.f_userid}}</nobr>
162
- </td>
163
- <td style="text-align: center;">
164
- <nobr>{{row.f_username}}</nobr>
165
- </td>
166
- <td style="text-align: center;">
167
- <nobr>{{row.f_idnumber}}</nobr>
168
- </td>
169
- <td style="text-align: center;">
170
- <nobr>{{row.f_address}}</nobr>
171
- </td>
172
- <td style="text-align: center;">
173
- <nobr>{{row.f_gaswatchbrand}}</nobr>
174
- </td>
175
- <td style="text-align: center;">
176
- <nobr>{{row.f_payment}}</nobr>
177
- </td>
178
- <td style="text-align: center;">
179
- <nobr>{{row.f_metertype}}</nobr>
180
- </td>
181
- <td style="text-align: center;">
182
- <nobr>{{row.f_gasprice}}</nobr>
183
- </td>
184
- <td style="text-align: center;">
185
- <nobr>{{row.f_upbuynum}}</nobr>
186
- </td>
187
- <td style="text-align: center;">
188
- <nobr>{{row.f_usertype}}</nobr>
189
- </td>
190
- <td style="text-align: center;">
191
- <nobr>{{row.f_pregas}}</nobr>
192
- </td>
193
- <td style="text-align: center;">
194
- <nobr>{{row.f_finallybought}}</nobr>
195
- </td>
196
- <td style="text-align: center;">
197
- <nobr>{{row.f_finabuygasdate}}</nobr>
198
- </td>
199
- <td style="text-align: center;">
200
- <nobr>{{row.f_cumulativepurchase}}</nobr>
201
- </td>
202
- <td style="text-align: center;">
203
- <nobr>{{row.f_metergasnums}}</nobr>
204
- </td>
205
- <td style="text-align: center;">
206
- <nobr>{{row.f_grossproceeds}}</nobr>
207
- </td>
208
- <td style="text-align: center;">
209
- <nobr>{{row.f_totalcost}}</nobr>
210
- </td>
211
- <td style="text-align: center;">
212
- <nobr>{{row.f_sgnetwork}}</nobr>
213
- </td>
214
- <td style="text-align: center;">
215
- <nobr>{{row.f_filiale}}</nobr>
216
- </td>
217
- <td style="text-align: center;">
218
- <nobr>{{row.f_reversalname}}</nobr>
219
- </td>
220
- <td style="text-align: center;">
221
- <nobr>{{row.f_reversaldate}}</nobr>
222
- </td>
223
- <td style="text-align: center;">
224
- <nobr>{{row.f_premetergasnums}}</nobr>
225
- </td>
226
- --
227
- <td style="text-align: center;">
228
- <nobr>{{row.f_sgoperator}}</nobr>
229
- </td>
230
- <td style="text-align: center;">
231
- <nobr>{{row.f_deliverydate}}</nobr>
232
- </td>
233
- <td style="text-align: center;">
234
- <nobr>{{row.f_reversaltime}}</nobr>
235
- </td>
236
- <td style="text-align: center;">
237
- <nobr>{{row.f_reversalcause}}</nobr>
238
- </td>
239
- <td style="text-align: center;">
240
- <nobr>{{row.f_deliverytime}}</nobr>
241
- </td>
242
- <td style="text-align: center;">
243
- <nobr>{{row.f_gasgas}}</nobr>
244
- </td>
245
- <td style="text-align: center;">
246
- <nobr>{{row.chongzhengtype}}</nobr>
247
- </td>
248
- </template>
249
- <template partial='foot'></template>
250
- </data-grid>
251
- </criteria-paged>
252
- </div>
253
- </div>
254
- </div>
255
- </template>
256
-
257
- <script>
258
- import {PagedList} from 'vue-client'
259
- import defaultPrint from '../../config/DefaultPrint'
260
- import exportConfig from '../../config/exportConfig'
261
- let readySomething = async function (self) {
262
-
263
- console.log("self.login",self.$login)
264
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
265
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
266
- self.$refs.paged.$refs.cri.model.startDate=self.data.startDate
267
- self.$refs.paged.$refs.cri.model.endDate=self.data.endDate
268
- self.search()
269
- }
270
- export default {
271
- props:['data'],
272
- title: '冲正记录',
273
- data() {
274
- return {
275
- data: {},
276
- other: [],
277
- footer: [],
278
- model: new PagedList('rs/sql/reconcileQuery', 20, {}),
279
- criteriaShow: false,
280
- orgCondtionStr: '',
281
- show:false,
282
- rowdata:{},
283
- modelval: [],
284
- fields: {},
285
- config: {
286
- defaultPrint: ['f_userid', 'f_username']
287
- },
288
- thead: '',
289
- showupload:false,
290
- selected:{},
291
- }
292
- },
293
- ready() {
294
- // this.initres.dep.push(this.$login.f.depids)
295
- readySomething(this).then(() => {
296
- this.$emit('ready')
297
- }).catch((error) => {
298
- this.$emit('error', error)
299
- })
300
- },
301
- methods: {
302
- getotherfooter() {
303
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
304
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
305
- this.other = [];
306
- this.footer = [];
307
- let exportdata = this.getCondition;
308
- let otherInData = [];
309
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
310
- let footerData = [], exportfield = this.getfield;
311
- footerData.push("合计");
312
- let self = this;
313
- for (var field in self.sumsmodel) {
314
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
315
- }
316
- this.footer.push(footerData);
317
- this.other.push(otherInData);
318
- },
319
- search(){
320
- this.$refs.paged.$refs.cri.search()
321
- },
322
- selfSearch(args) {
323
- if (this.data) {
324
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
325
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
326
- }
327
- args.condition = `${args.condition}` + this.orgCondtionStr
328
- this.model.search(args.condition, args.model)
329
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
330
- },
331
- clear() {
332
- //清空部门和人员
333
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
334
- //部门和人员变为全选
335
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
336
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
337
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
338
- this.$refs.paged.$refs.cri.model[key] = []
339
- })
340
- },
341
- show() {
342
- this.criteriaShow = true
343
- },
344
- hidden() {
345
- this.criteriaShow = !this.criteriaShow
346
- },
347
- getRes(obj) {
348
- this.orgCondtionStr = obj
349
- },
350
- stamp() {
351
- this.all = false
352
- //默认选择要打印的列
353
- this.modelval = defaultPrint.config
354
- this.fields = this.getfield
355
- console.log('所有打印字段', this.fields)
356
- this.printshow = true
357
- this.put()
358
- },
359
- put() {
360
- // 对Modelval进行排序
361
- this.sortModelval()
362
- this.thead = `<tr><th colspan=${this.modelval.length}>停用查询报表</th></tr><tr>`
363
- for (let key of this.modelval) {
364
- this.thead += '<th>' + this.fields[key] + '</th>'
365
- }
366
- this.thead += '</tr>'
367
- },
368
- cancel() {
369
- this.show = false
370
- },
371
- dealmsg(val) {
372
- console.log('---------------dealmsg')
373
- this.rowdata=val
374
- this.show=true
375
- val.model = this.model.model
376
- this.$dispatch('deal-msg', val)
377
- },
378
- print() {
379
- this.$refs.print.PrintAsFile()
380
- this.printshow = false
381
- },
382
- close() {
383
- this.printshow = false
384
- this.all = false
385
- },
386
- // 对选择的列进行排序
387
- sortModelval() {
388
- let sortModel = []
389
- Object.keys(this.fields).forEach((key) => {
390
- if (this.modelval.includes(key)) {
391
- sortModel.push(key)
392
- }
393
- })
394
- this.modelval = sortModel
395
- console.log('选择的打印的字段', this.modelval)
396
- }
397
- },
398
- watch: {
399
- 'all'(val) {
400
- if (val) {
401
- this.modelval = this.bodyData
402
- } else {
403
- this.modelval = defaultPrint.config
404
- this.put()
405
- }
406
- },
407
- sumsmodel: {
408
- handler: function (val) {
409
- this.getotherfooter();
410
- },
411
- deep: true
412
- },
413
- 'modelval.length'() {
414
- this.put()
415
- },
416
- },
417
- computed: {
418
- getCondition() {
419
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
420
- },
421
- getfield() {
422
- return exportConfig.reconcileQuery
423
- },
424
- }
425
- }
426
- </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>
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_reversaltime >= '{}'">
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_reversaltime <= '{}'">
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_userid = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition=" f_username like '%{}%'" placeholder='客户名称'>
39
+ </div>
40
+ <div class="col-sm-2 form-group">
41
+ <label class="font_normal_body">客户地址</label>
42
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
43
+ condition="f_address like '%{}%'" placeholder='客户地址'>
44
+ </div>
45
+ <div class="span" style="float:right;">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
49
+
50
+ <export-excel :data="$parent.$parent.getCondition"
51
+ :field="$parent.$parent.getfield"
52
+ :header="$parent.$parent.other"
53
+ sqlurl="rs/logic/exportfile" sql-name="reconcileQuery" template-name='冲正查询导出'
54
+ :choose-col="true"></export-excel>
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
+
59
+ <!-- <div class="row" v-show="$parent.$parent.criteriaShow">-->
60
+ <!-- </div>-->
61
+ </div>
62
+ </criteria>
63
+
64
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
65
+ <template partial='head'>
66
+ <tr>
67
+ <th>
68
+ <nobr>客户编号</nobr>
69
+ </th>
70
+ <th>
71
+ <nobr>客户名称</nobr>
72
+ </th>
73
+ <th>
74
+ <nobr>身份证号</nobr>
75
+ </th>
76
+ <th>
77
+ <nobr>地址</nobr>
78
+ </th>
79
+ <th>
80
+ <nobr>气表品牌</nobr>
81
+ </th>
82
+ <th>
83
+ <nobr>付款方式</nobr>
84
+ </th>
85
+ <th>
86
+ <nobr>气表型号</nobr>
87
+ </th>
88
+ <th>
89
+ <nobr>气价</nobr>
90
+ </th>
91
+ <th>
92
+ <nobr>上次总累计购气量</nobr>
93
+ </th>
94
+ <th>
95
+ <nobr>用户类型</nobr>
96
+ </th>
97
+ <th>
98
+ <nobr>预购气量</nobr>
99
+ </th>
100
+ <th>
101
+ <nobr>最后购气量</nobr>
102
+ </th>
103
+ <th>
104
+ <nobr>最后购气日期</nobr>
105
+ </th>
106
+ <th>
107
+ <nobr>预购金额</nobr>
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>
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
+ <th>
155
+ <nobr>冲正类型</nobr>
156
+ </th>
157
+ </tr>
158
+ </template>
159
+ <template partial='body'>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_userid}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_username}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_idnumber}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_address}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_gaswatchbrand}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_payment}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_metertype}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_gasprice}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_upbuynum}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_usertype}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_pregas}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_finallybought}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_finabuygasdate}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.f_cumulativepurchase}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_metergasnums}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.f_grossproceeds}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.f_totalcost}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.f_sgnetwork}}</nobr>
213
+ </td>
214
+ <td style="text-align: center;">
215
+ <nobr>{{row.f_filiale}}</nobr>
216
+ </td>
217
+ <td style="text-align: center;">
218
+ <nobr>{{row.f_reversalname}}</nobr>
219
+ </td>
220
+ <td style="text-align: center;">
221
+ <nobr>{{row.f_reversaldate}}</nobr>
222
+ </td>
223
+ <td style="text-align: center;">
224
+ <nobr>{{row.f_premetergasnums}}</nobr>
225
+ </td>
226
+ --
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_sgoperator}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_deliverydate}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_reversaltime}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_reversalcause}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_deliverytime}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;">
243
+ <nobr>{{row.f_gasgas}}</nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr>{{row.chongzhengtype}}</nobr>
247
+ </td>
248
+ </template>
249
+ <template partial='foot'></template>
250
+ </data-grid>
251
+ </criteria-paged>
252
+ </div>
253
+ </div>
254
+ </div>
255
+ </template>
256
+
257
+ <script>
258
+ import {PagedList} from 'vue-client'
259
+ import defaultPrint from '../../config/DefaultPrint'
260
+ import exportConfig from '../../config/exportConfig'
261
+ let readySomething = async function (self) {
262
+
263
+ console.log("self.login",self.$login)
264
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
265
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
266
+ self.$refs.paged.$refs.cri.model.startDate=self.data.startDate
267
+ self.$refs.paged.$refs.cri.model.endDate=self.data.endDate
268
+ self.search()
269
+ }
270
+ export default {
271
+ props:['data'],
272
+ title: '冲正记录',
273
+ data() {
274
+ return {
275
+ data: {},
276
+ other: [],
277
+ footer: [],
278
+ model: new PagedList('rs/sql/reconcileQuery', 20, {}),
279
+ criteriaShow: false,
280
+ orgCondtionStr: '',
281
+ show:false,
282
+ rowdata:{},
283
+ modelval: [],
284
+ fields: {},
285
+ config: {
286
+ defaultPrint: ['f_userid', 'f_username']
287
+ },
288
+ thead: '',
289
+ showupload:false,
290
+ selected:{},
291
+ }
292
+ },
293
+ ready() {
294
+ // this.initres.dep.push(this.$login.f.depids)
295
+ readySomething(this).then(() => {
296
+ this.$emit('ready')
297
+ }).catch((error) => {
298
+ this.$emit('error', error)
299
+ })
300
+ },
301
+ methods: {
302
+ getotherfooter() {
303
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
304
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
305
+ this.other = [];
306
+ this.footer = [];
307
+ let exportdata = this.getCondition;
308
+ let otherInData = [];
309
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
310
+ let footerData = [], exportfield = this.getfield;
311
+ footerData.push("合计");
312
+ let self = this;
313
+ for (var field in self.sumsmodel) {
314
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
315
+ }
316
+ this.footer.push(footerData);
317
+ this.other.push(otherInData);
318
+ },
319
+ search(){
320
+ this.$refs.paged.$refs.cri.search()
321
+ },
322
+ selfSearch(args) {
323
+ if (this.data) {
324
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
325
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
326
+ }
327
+ args.condition = `${args.condition}` + this.orgCondtionStr
328
+ this.model.search(args.condition, args.model)
329
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
330
+ },
331
+ clear() {
332
+ //清空部门和人员
333
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
334
+ //部门和人员变为全选
335
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
336
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
337
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
338
+ this.$refs.paged.$refs.cri.model[key] = []
339
+ })
340
+ },
341
+ show() {
342
+ this.criteriaShow = true
343
+ },
344
+ hidden() {
345
+ this.criteriaShow = !this.criteriaShow
346
+ },
347
+ getRes(obj) {
348
+ this.orgCondtionStr = obj
349
+ },
350
+ stamp() {
351
+ this.all = false
352
+ //默认选择要打印的列
353
+ this.modelval = defaultPrint.config
354
+ this.fields = this.getfield
355
+ console.log('所有打印字段', this.fields)
356
+ this.printshow = true
357
+ this.put()
358
+ },
359
+ put() {
360
+ // 对Modelval进行排序
361
+ this.sortModelval()
362
+ this.thead = `<tr><th colspan=${this.modelval.length}>停用查询报表</th></tr><tr>`
363
+ for (let key of this.modelval) {
364
+ this.thead += '<th>' + this.fields[key] + '</th>'
365
+ }
366
+ this.thead += '</tr>'
367
+ },
368
+ cancel() {
369
+ this.show = false
370
+ },
371
+ dealmsg(val) {
372
+ console.log('---------------dealmsg')
373
+ this.rowdata=val
374
+ this.show=true
375
+ val.model = this.model.model
376
+ this.$dispatch('deal-msg', val)
377
+ },
378
+ print() {
379
+ this.$refs.print.PrintAsFile()
380
+ this.printshow = false
381
+ },
382
+ close() {
383
+ this.printshow = false
384
+ this.all = false
385
+ },
386
+ // 对选择的列进行排序
387
+ sortModelval() {
388
+ let sortModel = []
389
+ Object.keys(this.fields).forEach((key) => {
390
+ if (this.modelval.includes(key)) {
391
+ sortModel.push(key)
392
+ }
393
+ })
394
+ this.modelval = sortModel
395
+ console.log('选择的打印的字段', this.modelval)
396
+ }
397
+ },
398
+ watch: {
399
+ 'all'(val) {
400
+ if (val) {
401
+ this.modelval = this.bodyData
402
+ } else {
403
+ this.modelval = defaultPrint.config
404
+ this.put()
405
+ }
406
+ },
407
+ sumsmodel: {
408
+ handler: function (val) {
409
+ this.getotherfooter();
410
+ },
411
+ deep: true
412
+ },
413
+ 'modelval.length'() {
414
+ this.put()
415
+ },
416
+ },
417
+ computed: {
418
+ getCondition() {
419
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
420
+ },
421
+ getfield() {
422
+ return exportConfig.reconcileQuery
423
+ },
424
+ }
425
+ }
426
+ </script>