manage-client 3.2.65-aode → 3.2.66-aode

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 (69) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  24. package/src/components/sale/filesquery/ChangeUserQuery.vue +394 -0
  25. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  26. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  27. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  28. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  29. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  30. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  31. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  32. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  33. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  34. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  35. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  36. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  37. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  38. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  39. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  40. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  41. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  42. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  43. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  44. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  45. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  46. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  47. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  48. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  49. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  50. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  51. package/src/components/webmeter/DrillData/NewUserGasAll.vue +564 -564
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  53. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  54. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  55. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  56. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  57. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  58. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  59. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  60. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  61. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  62. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  63. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  64. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  65. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  66. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  67. package/src/components/webmeter/report/ReportList.vue +211 -211
  68. package/src/main.js +56 -56
  69. package/src/saleManage.js +4 -0
@@ -1,363 +1,363 @@
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 class="font_normal_body">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">客户地址</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
18
- condition="f_address like '%{}%'" placeholder='客户地址'>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="startDate" class="font_normal_body">开始日期</label>
22
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
- v-model="model.startDate"
24
- :value.sync="model.startDate"
25
- :format="'yyyy-MM-dd'"
26
- :show-reset-button="true"
27
- condition="f_operate_date >= '{} 00:00:00'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label for="endDate" class="font_normal_body">结束日期</label>
32
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
- v-model="model.endDate"
34
- :value.sync="model.endDate"
35
- :format="'yyyy-MM-dd'"
36
- :show-reset-button="true"
37
- condition="f_operate_date <= '{} 23:59:59'">
38
- </datepicker>
39
- </div>
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
-
45
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
46
- :field="$parent.$parent.getfield"
47
- sqlurl="rs/logic/exportfile" sql-name="transferQuery" template-name='过户查询导出'
48
- :choose-col="true"></export-excel>
49
-
50
- <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>
51
- </div>
52
- </div>
53
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
54
- <div class="row" v-show="$parent.$parent.criteriaShow">
55
- <div class="col-sm-2 form-group">
56
- <label class="font_normal_body">过户状态</label>
57
- <v-select :value.sync="model.f_state"
58
- v-model="model.f_state"
59
- :options='$parent.$parent.transferstate' placeholder='请选择'
60
- condition="f_state = '{}'"
61
- close-on-select></v-select>
62
- </div>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">原户姓名</label>
65
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
66
- placeholder="原户姓名"
67
- condition="f_user_name like '%{}%'">
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">新户姓名</label>
71
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
72
- condition="f_newuser_name like '%{}%' " placeholder="新户姓名">
73
- </div>
74
- <div class="col-sm-2 form-group">
75
- <label class="font_normal_body">原户电话</label>
76
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
77
- condition="f_user_phone like '%{}%' " placeholder="原户电话">
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">新户电话</label>
81
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_phone"
82
- condition="f_newuser_phone like '%{}%' " placeholder="新户电话">
83
- </div>
84
- </div>
85
- </div>
86
- </criteria>
87
-
88
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
89
- <template partial='head'>
90
- <tr>
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
- </tr>
128
- </template>
129
- <template partial='body'>
130
- <td style="text-align: center;">
131
- <nobr>
132
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
133
- </td>
134
- <td style="text-align: center;">
135
- <nobr>{{row.f_newuser_name}}</nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.f_address}}</nobr>
139
- </td>
140
- <td style="text-align: center;">
141
- <nobr>{{row.f_user_name}}</nobr>
142
- </td>
143
- <td style="text-align: center;">
144
- <nobr>{{row.f_newuser_phone}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.f_user_phone}}</nobr>
148
- </td>
149
- <td style="text-align: center;">
150
- <nobr>{{row.f_transfer_fees}}</nobr>
151
- </td>
152
- <td style="text-align: center;">
153
- <nobr>{{row.f_operate_date}}</nobr>
154
- </td>
155
- <td style="text-align: center;">
156
- <nobr>{{row.f_comments}}</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
- </template>
168
- <template partial='foot'></template>
169
- </data-grid>
170
- </criteria-paged>
171
-
172
- <table class="table-hover">
173
- <tr style="position: relative" class="table-bordered">
174
- <td
175
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
176
- 汇总信息
177
- </td>
178
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
179
- 过户费合计:&emsp;{{sumsmodel.f_transfer_fees}}
180
- </td>
181
- </tr>
182
- </table>
183
- </div>
184
- <div v-if="show">
185
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
186
- </div>
187
- </div>
188
- </div>
189
- </template>
190
-
191
- <script>
192
- import {PagedList} from 'vue-client'
193
- import defaultPrint from '../config/DefaultPrint'
194
- import exportConfig from '../config/exportConfig'
195
-
196
- let readySomething = async function (self) {
197
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
198
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
199
- // await self.$refs.paged.$refs.cri.search()
200
- await self.$MagLoadParams.loadParam(self.$login.f.orgid);
201
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
202
- }
203
- export default {
204
- data() {
205
- return {
206
- data: {},
207
- show:false,
208
- rowdata:{},
209
- model: new PagedList('rs/sql/transferQuery', 20, {}, {f_transfer_fees: 0}),
210
- criteriaShow: false,
211
- initres: {
212
- org:[this.$login.f.orgid],
213
- dep:[],
214
- user:[],
215
- },
216
- headData: ["客户编号", "新户姓名", "新户电话", "客户地址", "过户状态", "原户姓名", "原户电话", "客户类型", "用气性质", "气价名称", "过户费", "过户日期", "人员", "部门", "公司"],
217
- bodyData: ["f_userinfo_code", "f_newuser_name", "f_newuser_phone", "address", "f_state", "f_user_name", "f_user_phone", "f_user_type", "f_gasproperties", "f_price_name", "f_transfer_fees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
218
- orgCondtionStr: '',
219
- modelval: [],
220
- printshow: false,
221
- all: false,
222
- fields: {},
223
- thead: '',
224
- tfoot: '',
225
-
226
- transferstate: this.$appdata.getParam('过户状态') ? [{
227
- label: '全部',
228
- value: ''
229
- }, ...this.$appdata.getParam('过户状态')] : [],
230
- //合计数据
231
- sumsmodel: {},
232
- selectfields:[]
233
- }
234
- },
235
- props:['selectorg'],
236
- ready() {
237
- if(this.selectorg != null && this.selectorg != null != ''){
238
- this.initres.org=[]
239
- this.initres.org.push(this.selectorg);
240
- }
241
- console.log(this.$login.f)
242
- readySomething(this).then(() => {
243
- this.$emit('ready')
244
- }).catch((error) => {
245
- this.$emit('error', error)
246
- })
247
- for(var item in exportConfig.dataReportConfig){
248
- this.selectfields.push(item)
249
- }
250
- },
251
- methods: {
252
- search(){
253
- this.$refs.paged.$refs.cri.search()
254
- },
255
- dblclick(obj) {
256
- this.data = obj
257
- this.showinfo = true
258
- },
259
- async selfSearch(args) {
260
- args.condition = `${args.condition}` + this.orgCondtionStr
261
- console.log('我的阐述', JSON.stringify(args.condition))
262
- await this.model.search(args.condition, args.model)
263
-
264
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
265
- console.log('合计字段', this.sumsmodel)
266
- },
267
- dealmsg(val) {
268
- console.log('---------------dealmsg')
269
- this.rowdata=val
270
- this.show=true
271
- val.model = this.model.model
272
- this.$dispatch('deal-msg', val)
273
- },
274
- cancel() {
275
- this.show = false
276
- },
277
- clear() {
278
- //清空部门和人员
279
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
280
- //部门和人员变为全选
281
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
282
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
283
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
284
- this.$refs.paged.$refs.cri.model[key] = ''
285
- })
286
- },
287
- show() {
288
- this.criteriaShow = true
289
- },
290
- hidden() {
291
- this.criteriaShow = !this.criteriaShow
292
- },
293
- getRes(obj) {
294
- this.orgCondtionStr = obj
295
- },
296
- stamp() {
297
- this.all = false
298
- //默认选择要打印的列
299
- this.modelval = defaultPrint.config
300
- this.fields = this.getfield
301
- console.log('所有打印字段', this.fields)
302
- this.printshow = true
303
- this.put()
304
- },
305
- put() {
306
- // 对Modelval进行排序
307
- this.sortModelval()
308
- this.thead = `<tr><th colspan=${this.modelval.length}>过户查询统计报表</th></tr><tr>`
309
- for (let key of this.modelval) {
310
- this.thead += '<th>' + this.fields[key] + '</th>'
311
- }
312
- this.thead += '</tr>'
313
- },
314
- print() {
315
- this.$refs.print.PrintAsFile()
316
- this.printshow = false
317
- },
318
- close() {
319
- this.printshow = false
320
- this.all = false
321
- },
322
- // 对选择的列进行排序
323
- sortModelval() {
324
- let sortModel = []
325
- Object.keys(this.fields).forEach((key) => {
326
- if (this.modelval.includes(key)) {
327
- sortModel.push(key)
328
- }
329
- })
330
- this.modelval = sortModel
331
- console.log('选择的打印的字段', this.modelval)
332
- }
333
- },
334
- watch: {
335
- 'all'(val) {
336
- if (val) {
337
- this.modelval = this.bodyData
338
- } else {
339
- this.modelval = defaultPrint.config
340
- this.put()
341
- }
342
- },
343
- 'modelval.length'() {
344
- this.put()
345
- },
346
- 'orgCondtionStr'(val) {
347
- let res = val.match(/'(.*?)'/)
348
- console.log('正则提取:',res && res[1])
349
- if (res) {
350
- this.selectorg = res[1]
351
- }
352
- }
353
- },
354
- computed: {
355
- getCondition() {
356
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
357
- },
358
- getfield() {
359
- return exportConfig.transferConfig
360
- }
361
- }
362
- }
363
- </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 class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户地址</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
18
+ condition="f_address like '%{}%'" placeholder='客户地址'>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="startDate" class="font_normal_body">开始日期</label>
22
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
+ v-model="model.startDate"
24
+ :value.sync="model.startDate"
25
+ :format="'yyyy-MM-dd'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date >= '{} 00:00:00'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label for="endDate" class="font_normal_body">结束日期</label>
32
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
33
+ v-model="model.endDate"
34
+ :value.sync="model.endDate"
35
+ :format="'yyyy-MM-dd'"
36
+ :show-reset-button="true"
37
+ condition="f_operate_date <= '{} 23:59:59'">
38
+ </datepicker>
39
+ </div>
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
+
45
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
46
+ :field="$parent.$parent.getfield"
47
+ sqlurl="rs/logic/exportfile" sql-name="transferQuery" template-name='过户查询导出'
48
+ :choose-col="true"></export-excel>
49
+
50
+ <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>
51
+ </div>
52
+ </div>
53
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
54
+ <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="col-sm-2 form-group">
56
+ <label class="font_normal_body">过户状态</label>
57
+ <v-select :value.sync="model.f_state"
58
+ v-model="model.f_state"
59
+ :options='$parent.$parent.transferstate' placeholder='请选择'
60
+ condition="f_state = '{}'"
61
+ close-on-select></v-select>
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">原户姓名</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
66
+ placeholder="原户姓名"
67
+ condition="f_user_name like '%{}%'">
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">新户姓名</label>
71
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
72
+ condition="f_newuser_name like '%{}%' " placeholder="新户姓名">
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">原户电话</label>
76
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
77
+ condition="f_user_phone like '%{}%' " placeholder="原户电话">
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">新户电话</label>
81
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_phone"
82
+ condition="f_newuser_phone like '%{}%' " placeholder="新户电话">
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </criteria>
87
+
88
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
89
+ <template partial='head'>
90
+ <tr>
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
+ </tr>
128
+ </template>
129
+ <template partial='body'>
130
+ <td style="text-align: center;">
131
+ <nobr>
132
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_newuser_name}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_address}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_user_name}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_newuser_phone}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_user_phone}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_transfer_fees}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_operate_date}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.f_comments}}</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
+ </template>
168
+ <template partial='foot'></template>
169
+ </data-grid>
170
+ </criteria-paged>
171
+
172
+ <table class="table-hover">
173
+ <tr style="position: relative" class="table-bordered">
174
+ <td
175
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
176
+ 汇总信息
177
+ </td>
178
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
179
+ 过户费合计:&emsp;{{sumsmodel.f_transfer_fees}}
180
+ </td>
181
+ </tr>
182
+ </table>
183
+ </div>
184
+ <div v-if="show">
185
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
186
+ </div>
187
+ </div>
188
+ </div>
189
+ </template>
190
+
191
+ <script>
192
+ import {PagedList} from 'vue-client'
193
+ import defaultPrint from '../config/DefaultPrint'
194
+ import exportConfig from '../config/exportConfig'
195
+
196
+ let readySomething = async function (self) {
197
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
198
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
199
+ // await self.$refs.paged.$refs.cri.search()
200
+ await self.$MagLoadParams.loadParam(self.$login.f.orgid);
201
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
202
+ }
203
+ export default {
204
+ data() {
205
+ return {
206
+ data: {},
207
+ show:false,
208
+ rowdata:{},
209
+ model: new PagedList('rs/sql/transferQuery', 20, {}, {f_transfer_fees: 0}),
210
+ criteriaShow: false,
211
+ initres: {
212
+ org:[this.$login.f.orgid],
213
+ dep:[],
214
+ user:[],
215
+ },
216
+ headData: ["客户编号", "新户姓名", "新户电话", "客户地址", "过户状态", "原户姓名", "原户电话", "客户类型", "用气性质", "气价名称", "过户费", "过户日期", "人员", "部门", "公司"],
217
+ bodyData: ["f_userinfo_code", "f_newuser_name", "f_newuser_phone", "address", "f_state", "f_user_name", "f_user_phone", "f_user_type", "f_gasproperties", "f_price_name", "f_transfer_fees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
218
+ orgCondtionStr: '',
219
+ modelval: [],
220
+ printshow: false,
221
+ all: false,
222
+ fields: {},
223
+ thead: '',
224
+ tfoot: '',
225
+
226
+ transferstate: this.$appdata.getParam('过户状态') ? [{
227
+ label: '全部',
228
+ value: ''
229
+ }, ...this.$appdata.getParam('过户状态')] : [],
230
+ //合计数据
231
+ sumsmodel: {},
232
+ selectfields:[]
233
+ }
234
+ },
235
+ props:['selectorg'],
236
+ ready() {
237
+ if(this.selectorg != null && this.selectorg != null != ''){
238
+ this.initres.org=[]
239
+ this.initres.org.push(this.selectorg);
240
+ }
241
+ console.log(this.$login.f)
242
+ readySomething(this).then(() => {
243
+ this.$emit('ready')
244
+ }).catch((error) => {
245
+ this.$emit('error', error)
246
+ })
247
+ for(var item in exportConfig.dataReportConfig){
248
+ this.selectfields.push(item)
249
+ }
250
+ },
251
+ methods: {
252
+ search(){
253
+ this.$refs.paged.$refs.cri.search()
254
+ },
255
+ dblclick(obj) {
256
+ this.data = obj
257
+ this.showinfo = true
258
+ },
259
+ async selfSearch(args) {
260
+ args.condition = `${args.condition}` + this.orgCondtionStr
261
+ console.log('我的阐述', JSON.stringify(args.condition))
262
+ await this.model.search(args.condition, args.model)
263
+
264
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
265
+ console.log('合计字段', this.sumsmodel)
266
+ },
267
+ dealmsg(val) {
268
+ console.log('---------------dealmsg')
269
+ this.rowdata=val
270
+ this.show=true
271
+ val.model = this.model.model
272
+ this.$dispatch('deal-msg', val)
273
+ },
274
+ cancel() {
275
+ this.show = false
276
+ },
277
+ clear() {
278
+ //清空部门和人员
279
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
280
+ //部门和人员变为全选
281
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
282
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
283
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
284
+ this.$refs.paged.$refs.cri.model[key] = ''
285
+ })
286
+ },
287
+ show() {
288
+ this.criteriaShow = true
289
+ },
290
+ hidden() {
291
+ this.criteriaShow = !this.criteriaShow
292
+ },
293
+ getRes(obj) {
294
+ this.orgCondtionStr = obj
295
+ },
296
+ stamp() {
297
+ this.all = false
298
+ //默认选择要打印的列
299
+ this.modelval = defaultPrint.config
300
+ this.fields = this.getfield
301
+ console.log('所有打印字段', this.fields)
302
+ this.printshow = true
303
+ this.put()
304
+ },
305
+ put() {
306
+ // 对Modelval进行排序
307
+ this.sortModelval()
308
+ this.thead = `<tr><th colspan=${this.modelval.length}>过户查询统计报表</th></tr><tr>`
309
+ for (let key of this.modelval) {
310
+ this.thead += '<th>' + this.fields[key] + '</th>'
311
+ }
312
+ this.thead += '</tr>'
313
+ },
314
+ print() {
315
+ this.$refs.print.PrintAsFile()
316
+ this.printshow = false
317
+ },
318
+ close() {
319
+ this.printshow = false
320
+ this.all = false
321
+ },
322
+ // 对选择的列进行排序
323
+ sortModelval() {
324
+ let sortModel = []
325
+ Object.keys(this.fields).forEach((key) => {
326
+ if (this.modelval.includes(key)) {
327
+ sortModel.push(key)
328
+ }
329
+ })
330
+ this.modelval = sortModel
331
+ console.log('选择的打印的字段', this.modelval)
332
+ }
333
+ },
334
+ watch: {
335
+ 'all'(val) {
336
+ if (val) {
337
+ this.modelval = this.bodyData
338
+ } else {
339
+ this.modelval = defaultPrint.config
340
+ this.put()
341
+ }
342
+ },
343
+ 'modelval.length'() {
344
+ this.put()
345
+ },
346
+ 'orgCondtionStr'(val) {
347
+ let res = val.match(/'(.*?)'/)
348
+ console.log('正则提取:',res && res[1])
349
+ if (res) {
350
+ this.selectorg = res[1]
351
+ }
352
+ }
353
+ },
354
+ computed: {
355
+ getCondition() {
356
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
357
+ },
358
+ getfield() {
359
+ return exportConfig.transferConfig
360
+ }
361
+ }
362
+ }
363
+ </script>