manage-client 3.2.42 → 3.2.43

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 (111) hide show
  1. package/build/dev-server.js +8 -26
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/BonSummary.vue +178 -178
  5. package/src/components/SellReport/ChargePrick.vue +205 -205
  6. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  7. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  8. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  9. package/src/components/SellReport/NonResidentGas.vue +203 -203
  10. package/src/components/SellReport/OutletTable.vue +258 -258
  11. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  12. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  13. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  14. package/src/components/SellReport/SellingTable.vue +220 -220
  15. package/src/components/SellReport/UserSellingGas.vue +228 -228
  16. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  17. package/src/components/daping/GMap.vue +636 -636
  18. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  19. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  20. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  21. package/src/components/sale/businessquery/AreaChargeQuery.vue +380 -380
  22. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  23. package/src/components/sale/businessquery/BusinessManage.vue +6 -1
  24. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  25. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  26. package/src/components/sale/businessquery/CollectManage.vue +138 -138
  27. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  28. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  29. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  30. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  31. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  32. package/src/components/sale/businessquery/GasLossQuery.vue +561 -0
  33. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  34. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  35. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  36. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  37. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  38. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  39. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  40. package/src/components/sale/businessquery/gasPriceQuery.vue +365 -0
  41. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  42. package/src/components/sale/businessquery/usergas.vue +311 -311
  43. package/src/components/sale/config/exportConfig.js +10 -0
  44. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  45. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  46. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  47. package/src/components/statistical/DendrogramManage.vue +239 -239
  48. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  49. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  50. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  51. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  53. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  54. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  55. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  56. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  57. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  58. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  59. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  60. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  61. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  62. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  63. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  64. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  65. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  66. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  67. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  68. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  69. package/src/filiale/WEINAN/reportManage.js +12 -12
  70. package/src/filiale/WEINAN/sale.js +36 -36
  71. package/src/filiale/alashan/reportManage.js +10 -10
  72. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  73. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  74. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  75. package/src/filiale/macheng/MeterQuery.vue +12 -0
  76. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  77. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  78. package/src/filiale/pingxiang/sale.js +9 -9
  79. package/src/filiale/qianneng/OtherChargeDetailQuery.vue +74 -0
  80. package/src/filiale/qianneng/OtherChargeQuery.vue +634 -0
  81. package/src/filiale/qianneng/sale.js +9 -0
  82. package/src/filiale/qingtongxia/sale.js +13 -13
  83. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  84. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  85. package/src/filiale/rongchuang/reportManage.js +11 -11
  86. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  87. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  88. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  89. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  90. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  91. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  92. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  93. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  94. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  95. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  96. package/src/filiale/tongchuan/reportManage.js +5 -5
  97. package/src/filiale/wuhai/ChargeQuery.vue +19 -16
  98. package/src/filiale/zhongsheng/ChargeQuery.vue +1255 -1255
  99. package/src/filiale/zhongsheng/config/exportConfig.js +899 -899
  100. package/src/filiale/zhongsheng/sale.js +10 -10
  101. package/src/main.js +3 -3
  102. package/src/saleManage.js +9 -0
  103. package/static/wuhai.json +1610 -1610
  104. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  105. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  106. package/.gradle/5.4.1/gc.properties +0 -0
  107. package/src/.idea/misc.xml +0 -9
  108. package/src/.idea/modules.xml +0 -8
  109. package/src/.idea/src.iml +0 -9
  110. package/src/.idea/vcs.xml +0 -6
  111. package/src/.idea/workspace.xml +0 -93
@@ -1,402 +1,402 @@
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_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">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition="f_user_name like '%{}%'" 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_address"
62
- condition="f_address like '%{}%'" placeholder='客户地址'>
63
- </div>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">冲正类型</label>
66
- <v-select :value.sync="model.f_type"
67
- v-model="model.f_type"
68
- :options='$parent.$parent.correctTypes' placeholder='请选择'
69
- condition="f_type = '{}'"
70
- close-on-select></v-select>
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">客户类型</label>
74
- <v-select :value.sync="model.f_user_type"
75
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
76
- condition="f_user_type = '{}'"
77
- close-on-select></v-select>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">表&emsp;&emsp;号</label>
81
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
82
- condition="f_meternumber = '{}'" placeholder='表号'>
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_card_id"
87
- condition="f_card_id = '{}'" placeholder='卡号'>
88
- </div>
89
- </div>
90
- </div>
91
- </criteria>
92
-
93
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
94
- <template partial='head'>
95
- <tr>
96
- <th>
97
- <nobr>客户编号</nobr>
98
- </th>
99
- <th>
100
- <nobr>客户名称</nobr>
101
- </th>
102
- <th>
103
- <nobr>客户地址</nobr>
104
- </th>
105
- <th>
106
- <nobr>冲正类型</nobr>
107
- </th>
108
- <th>
109
- <nobr>冲正气量</nobr>
110
- </th>
111
- <th>
112
- <nobr>冲正金额</nobr>
113
- </th>
114
- <th>
115
- <nobr>冲正收款</nobr>
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><nobr>附件</nobr></th>
130
- </tr>
131
- </template>
132
- <template partial='body'>
133
- <td style="text-align: center;">
134
- <nobr>
135
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.f_user_name}}</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_type}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.f_pregas}}</nobr>
148
- </td>
149
- <td style="text-align: center;">
150
- <nobr>{{row.f_preamount}}</nobr>
151
- </td>
152
- <td style="text-align: center;">
153
- <nobr>{{row.f_collection}}</nobr>
154
- </td>
155
- <td style="text-align: center;">
156
- <nobr>{{row.f_operate_date}}</nobr>
157
- </td>
158
- <td style="text-align: center;">
159
- <nobr>{{row.f_operator}}</nobr>
160
- </td>
161
- <td style="text-align: center;">
162
- <nobr>{{row.f_depname}}</nobr>
163
- </td>
164
- <td style="text-align: center;">
165
- <nobr>{{row.f_orgname}}</nobr>
166
- </td>
167
- <td style="text-align: center;"><nobr>
168
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
169
- </nobr></td>
170
- </template>
171
- <template partial='foot'></template>
172
- </data-grid>
173
-
174
- </criteria-paged>
175
-
176
- <table class="table-hover">
177
- <tr style="position: relative" class="table-bordered">
178
- <td
179
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
180
- 汇总信息
181
- </td>
182
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
183
- 冲正气量合计:&emsp;{{sumsmodel.f_pregas}}
184
- </td>
185
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
186
- 冲正金额合计:&emsp;{{sumsmodel.f_preamount}}
187
- </td>
188
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
189
- 收款合计:&emsp;{{sumsmodel.f_collection}}
190
- </td>
191
- </tr>
192
- </table>
193
-
194
- </div>
195
- <div class="flex" v-if="show">
196
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
197
- </div>
198
- </div>
199
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
200
- <article slot="modal-body">
201
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="冲正" :isremark="false" style="width:auto" ></upload>
202
- </article>
203
- <footer slot="modal-footer" class="modal-footer">
204
- </footer>
205
- </modal>
206
- </div>
207
- </template>
208
-
209
- <script>
210
- import {PagedList} from 'vue-client'
211
- import defaultPrint from '../config/DefaultPrint'
212
- import exportConfig from '../config/exportConfig'
213
-
214
- let readySomething = async function (self) {
215
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
216
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
217
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
218
- // await self.$refs.paged.$refs.cri.search()
219
- await self.$MagLoadParams.loadParam(self.$login.f)
220
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
221
- }
222
- export default {
223
- props:['data'],
224
- title: '冲正查询',
225
- data() {
226
- return {
227
- data: {},
228
- other:[],
229
- footer:[],
230
- model: new PagedList('rs/sql/reverseQuery', 20, {}, {f_pregas: 0, f_preamount: 0, f_collection: 0}),
231
- criteriaShow: false,
232
- orgCondtionStr: '',
233
- initres: {
234
- org:[this.$login.f.orgid],
235
- dep:[],
236
- user:[],
237
- },
238
- show:false,
239
- rowdata:{},
240
- modelval: [],
241
- printshow: false,
242
- all: false,
243
- fields: {},
244
- thead: '',
245
- //默认打印列
246
- defaultfield: [],
247
- config: {
248
- defaultPrint: ['f_userinfo_code','f_user_name', 'f_address']
249
- },
250
- showupload:false,
251
- selected:{},
252
- tfoot: '',
253
- //合计数据
254
- sumsmodel: {}
255
- }
256
- },
257
- ready() {
258
- readySomething(this).then(() => {
259
- this.$emit('ready')
260
- }).catch((error) => {
261
- this.$emit('error', error)
262
- })
263
- },
264
- methods: {
265
- view(row){
266
- this.showupload = true
267
- this.selected= row
268
- },
269
- getotherfooter(){
270
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
271
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
272
- this.other=[];
273
- this.footer=[];
274
- let exportdata = this.getCondition;
275
- let otherInData=[];
276
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
277
- let footerData=[],exportfield=this.getfield;
278
- footerData.push("合计");
279
- let self = this;
280
- for(var field in self.sumsmodel){
281
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
282
- }
283
- this.footer.push(footerData);
284
- this.other.push(otherInData);
285
- },
286
- search(){
287
- this.$refs.paged.$refs.cri.search()
288
- },
289
- cancel() {
290
- this.show = false
291
- },
292
- selfSearch(args) {
293
- if (this.data) {
294
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
295
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
296
- }
297
- args.condition = `${args.condition}` + this.orgCondtionStr
298
- this.model.search(args.condition, args.model)
299
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
300
- },
301
- clear() {
302
- //清空部门和人员
303
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
304
- //部门和人员变为全选
305
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
306
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
307
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
308
- this.$refs.paged.$refs.cri.model[key] = []
309
- })
310
- },
311
- show() {
312
- this.criteriaShow = true
313
- },
314
- hidden() {
315
- this.criteriaShow = !this.criteriaShow
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
- dealmsg(val) {
330
- console.log('---------------dealmsg')
331
- this.rowdata=val
332
- this.show=true
333
- val.model = this.model.model
334
- this.$dispatch('deal-msg', val)
335
- },
336
- put() {
337
- // 对Modelval进行排序
338
- this.sortModelval()
339
- this.thead = `<tr><th colspan=${this.modelval.length}>冲正查询统计报表</th></tr><tr>`
340
- for (let key of this.modelval) {
341
- this.thead += '<th>' + this.fields[key] + '</th>'
342
- }
343
- this.thead += '</tr>'
344
- },
345
- print() {
346
- this.$refs.print.PrintAsFile()
347
- this.printshow = false
348
- },
349
- close() {
350
- this.printshow = false
351
- this.all = false
352
- },
353
- // 对选择的列进行排序
354
- sortModelval() {
355
- let sortModel = []
356
- Object.keys(this.fields).forEach((key) => {
357
- if (this.modelval.includes(key)) {
358
- sortModel.push(key)
359
- }
360
- })
361
- this.modelval = sortModel
362
- console.log('选择的打印的字段', this.modelval)
363
- }
364
- },
365
- watch: {
366
- 'all'(val) {
367
- if (val) {
368
- this.modelval = this.bodyData
369
- } else {
370
- this.modelval = defaultPrint.config
371
- this.put()
372
- }
373
- },
374
- sumsmodel:{
375
- handler: function(val) {
376
- this.getotherfooter();
377
- },
378
- deep: true
379
- },
380
- 'modelval.length'() {
381
- this.put()
382
- },
383
- },
384
- computed: {
385
- getCondition() {
386
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
387
- },
388
- getfield() {
389
- return exportConfig.reverseConfig
390
- },
391
- defaultexport() {
392
- return exportConfig.reverseexportConfig
393
- },
394
- usertypes() {
395
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
396
- },
397
- correctTypes() {
398
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
399
- }
400
- }
401
- }
402
- </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_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">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition="f_user_name like '%{}%'" 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_address"
62
+ condition="f_address like '%{}%'" placeholder='客户地址'>
63
+ </div>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">冲正类型</label>
66
+ <v-select :value.sync="model.f_type"
67
+ v-model="model.f_type"
68
+ :options='$parent.$parent.correctTypes' placeholder='请选择'
69
+ condition="f_type = '{}'"
70
+ close-on-select></v-select>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">客户类型</label>
74
+ <v-select :value.sync="model.f_user_type"
75
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
76
+ condition="f_user_type = '{}'"
77
+ close-on-select></v-select>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
81
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
82
+ condition="f_meternumber = '{}'" placeholder='表号'>
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_card_id"
87
+ condition="f_card_id = '{}'" placeholder='卡号'>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ </criteria>
92
+
93
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
94
+ <template partial='head'>
95
+ <tr>
96
+ <th>
97
+ <nobr>客户编号</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>客户名称</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>客户地址</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>冲正类型</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>冲正气量</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>冲正金额</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>冲正收款</nobr>
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><nobr>附件</nobr></th>
130
+ </tr>
131
+ </template>
132
+ <template partial='body'>
133
+ <td style="text-align: center;">
134
+ <nobr>
135
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_user_name}}</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_type}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_pregas}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_preamount}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_collection}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.f_operate_date}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_operator}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.f_depname}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;">
165
+ <nobr>{{row.f_orgname}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;"><nobr>
168
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
169
+ </nobr></td>
170
+ </template>
171
+ <template partial='foot'></template>
172
+ </data-grid>
173
+
174
+ </criteria-paged>
175
+
176
+ <table class="table-hover">
177
+ <tr style="position: relative" class="table-bordered">
178
+ <td
179
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
180
+ 汇总信息
181
+ </td>
182
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
183
+ 冲正气量合计:&emsp;{{sumsmodel.f_pregas}}
184
+ </td>
185
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
186
+ 冲正金额合计:&emsp;{{sumsmodel.f_preamount}}
187
+ </td>
188
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
189
+ 收款合计:&emsp;{{sumsmodel.f_collection}}
190
+ </td>
191
+ </tr>
192
+ </table>
193
+
194
+ </div>
195
+ <div class="flex" v-if="show">
196
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
197
+ </div>
198
+ </div>
199
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
200
+ <article slot="modal-body">
201
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="冲正" :isremark="false" style="width:auto" ></upload>
202
+ </article>
203
+ <footer slot="modal-footer" class="modal-footer">
204
+ </footer>
205
+ </modal>
206
+ </div>
207
+ </template>
208
+
209
+ <script>
210
+ import {PagedList} from 'vue-client'
211
+ import defaultPrint from '../config/DefaultPrint'
212
+ import exportConfig from '../config/exportConfig'
213
+
214
+ let readySomething = async function (self) {
215
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
216
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
217
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
218
+ // await self.$refs.paged.$refs.cri.search()
219
+ await self.$MagLoadParams.loadParam(self.$login.f)
220
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
221
+ }
222
+ export default {
223
+ props:['data'],
224
+ title: '冲正查询',
225
+ data() {
226
+ return {
227
+ data: {},
228
+ other:[],
229
+ footer:[],
230
+ model: new PagedList('rs/sql/reverseQuery', 20, {}, {f_pregas: 0, f_preamount: 0, f_collection: 0}),
231
+ criteriaShow: false,
232
+ orgCondtionStr: '',
233
+ initres: {
234
+ org:[this.$login.f.orgid],
235
+ dep:[],
236
+ user:[],
237
+ },
238
+ show:false,
239
+ rowdata:{},
240
+ modelval: [],
241
+ printshow: false,
242
+ all: false,
243
+ fields: {},
244
+ thead: '',
245
+ //默认打印列
246
+ defaultfield: [],
247
+ config: {
248
+ defaultPrint: ['f_userinfo_code','f_user_name', 'f_address']
249
+ },
250
+ showupload:false,
251
+ selected:{},
252
+ tfoot: '',
253
+ //合计数据
254
+ sumsmodel: {}
255
+ }
256
+ },
257
+ ready() {
258
+ readySomething(this).then(() => {
259
+ this.$emit('ready')
260
+ }).catch((error) => {
261
+ this.$emit('error', error)
262
+ })
263
+ },
264
+ methods: {
265
+ view(row){
266
+ this.showupload = true
267
+ this.selected= row
268
+ },
269
+ getotherfooter(){
270
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
271
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
272
+ this.other=[];
273
+ this.footer=[];
274
+ let exportdata = this.getCondition;
275
+ let otherInData=[];
276
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
277
+ let footerData=[],exportfield=this.getfield;
278
+ footerData.push("合计");
279
+ let self = this;
280
+ for(var field in self.sumsmodel){
281
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
282
+ }
283
+ this.footer.push(footerData);
284
+ this.other.push(otherInData);
285
+ },
286
+ search(){
287
+ this.$refs.paged.$refs.cri.search()
288
+ },
289
+ cancel() {
290
+ this.show = false
291
+ },
292
+ selfSearch(args) {
293
+ if (this.data) {
294
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
295
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
296
+ }
297
+ args.condition = `${args.condition}` + this.orgCondtionStr
298
+ this.model.search(args.condition, args.model)
299
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
300
+ },
301
+ clear() {
302
+ //清空部门和人员
303
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
304
+ //部门和人员变为全选
305
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
306
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
307
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
308
+ this.$refs.paged.$refs.cri.model[key] = []
309
+ })
310
+ },
311
+ show() {
312
+ this.criteriaShow = true
313
+ },
314
+ hidden() {
315
+ this.criteriaShow = !this.criteriaShow
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
+ dealmsg(val) {
330
+ console.log('---------------dealmsg')
331
+ this.rowdata=val
332
+ this.show=true
333
+ val.model = this.model.model
334
+ this.$dispatch('deal-msg', val)
335
+ },
336
+ put() {
337
+ // 对Modelval进行排序
338
+ this.sortModelval()
339
+ this.thead = `<tr><th colspan=${this.modelval.length}>冲正查询统计报表</th></tr><tr>`
340
+ for (let key of this.modelval) {
341
+ this.thead += '<th>' + this.fields[key] + '</th>'
342
+ }
343
+ this.thead += '</tr>'
344
+ },
345
+ print() {
346
+ this.$refs.print.PrintAsFile()
347
+ this.printshow = false
348
+ },
349
+ close() {
350
+ this.printshow = false
351
+ this.all = false
352
+ },
353
+ // 对选择的列进行排序
354
+ sortModelval() {
355
+ let sortModel = []
356
+ Object.keys(this.fields).forEach((key) => {
357
+ if (this.modelval.includes(key)) {
358
+ sortModel.push(key)
359
+ }
360
+ })
361
+ this.modelval = sortModel
362
+ console.log('选择的打印的字段', this.modelval)
363
+ }
364
+ },
365
+ watch: {
366
+ 'all'(val) {
367
+ if (val) {
368
+ this.modelval = this.bodyData
369
+ } else {
370
+ this.modelval = defaultPrint.config
371
+ this.put()
372
+ }
373
+ },
374
+ sumsmodel:{
375
+ handler: function(val) {
376
+ this.getotherfooter();
377
+ },
378
+ deep: true
379
+ },
380
+ 'modelval.length'() {
381
+ this.put()
382
+ },
383
+ },
384
+ computed: {
385
+ getCondition() {
386
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
387
+ },
388
+ getfield() {
389
+ return exportConfig.reverseConfig
390
+ },
391
+ defaultexport() {
392
+ return exportConfig.reverseexportConfig
393
+ },
394
+ usertypes() {
395
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
396
+ },
397
+ correctTypes() {
398
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
399
+ }
400
+ }
401
+ }
402
+ </script>