manage-client 3.2.30 → 3.2.31

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 (45) hide show
  1. package/build/dev-server.js +8 -27
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  4. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  5. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  6. package/src/components/sale/businessquery/ChargeQuery.vue +1245 -1245
  7. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  8. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  9. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  10. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  11. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  12. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  13. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  14. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  15. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  16. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  17. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  18. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  19. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  20. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  21. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  22. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  23. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  24. package/src/filiale/pingxiang/sale.js +9 -9
  25. package/src/filiale/qingtongxia/sale.js +13 -13
  26. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  27. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  28. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  29. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  30. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  31. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  32. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  33. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  34. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  35. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1270
  36. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  37. package/src/main.js +9 -9
  38. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  39. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  40. package/.gradle/5.4.1/gc.properties +0 -0
  41. package/src/.idea/misc.xml +0 -9
  42. package/src/.idea/modules.xml +0 -8
  43. package/src/.idea/src.iml +0 -9
  44. package/src/.idea/vcs.xml +0 -6
  45. package/src/.idea/workspace.xml +0 -93
@@ -1,418 +1,418 @@
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
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
- <div class="span" style="float:right;">
12
- <button class="button_search button_spacing" @click="search()">查询</button>
13
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
14
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
15
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
16
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
17
- sqlurl="rs/logic/exportfile" sql-name="transferQuery" template-name='过户查询导出'
18
- :choose-col="true"></export-excel>
19
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
20
- :defaultfield="$parent.$parent.defaultfield"
21
- titletable="过户记录"
22
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
23
- <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>
24
- </div>
25
- </div>
26
- <div class="row" v-show="$parent.$parent.criteriaShow">
27
- <div class="col-sm-2 form-group">
28
- <label for="startDate" class="font_normal_body">开始日期</label>
29
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
30
- v-model="model.startDate"
31
- :value.sync="model.startDate"
32
- :format="'yyyy-MM-dd HH:mm:ss'"
33
- :show-reset-button="true"
34
- condition="f_operate_date >= '{}'">
35
- </datepicker>
36
- </div>
37
- <div class="col-sm-2 form-group">
38
- <label for="endDate" class="font_normal_body">结束日期</label>
39
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
40
- v-model="model.endDate"
41
- :value.sync="model.endDate"
42
- :format="'yyyy-MM-dd HH:mm:ss'"
43
- :show-reset-button="true"
44
- condition="f_operate_date <= '{}'">
45
- </datepicker>
46
- </div>
47
- <div class="col-sm-2 form-group">
48
- <label class="font_normal_body">客户编号</label>
49
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
50
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
51
- </div>
52
- <div class="col-sm-2 form-group">
53
- <label class="font_normal_body">客户地址</label>
54
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
55
- condition="f_address like '%{}%'" placeholder='客户地址'>
56
- </div>
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">表&emsp;&emsp;号</label>
59
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
60
- condition="f_meternumber = '{}'" placeholder='表号'>
61
- </div>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
65
- condition="f_card_id = '{}'" placeholder='卡号'>
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">过户状态</label>
69
- <v-select :value.sync="model.f_state"
70
- v-model="model.f_state"
71
- :options='$parent.$parent.transferstate' placeholder='请选择'
72
- condition="f_state = '{}'"
73
- close-on-select></v-select>
74
- </div>
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">原户姓名</label>
77
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
78
- placeholder="原户姓名"
79
- condition="f_user_name like '%{}%'">
80
- </div>
81
- <div class="col-sm-2 form-group">
82
- <label class="font_normal_body">新户姓名</label>
83
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
84
- condition="f_newuser_name like '%{}%' " placeholder="新户姓名">
85
- </div>
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">原户电话</label>
88
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
89
- condition="f_user_phone like '%{}%' " placeholder="原户电话">
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="font_normal_body">新户电话</label>
93
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_phone"
94
- condition="f_newuser_phone like '%{}%' " placeholder="新户电话">
95
- </div>
96
- </div>
97
- </div>
98
- </criteria>
99
-
100
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
101
- <template partial='head'>
102
- <tr>
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><nobr>附件</nobr></th>
140
- </tr>
141
- </template>
142
- <template partial='body'>
143
- <td style="text-align: center;">
144
- <nobr>
145
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
146
- </td>
147
- <td style="text-align: center;">
148
- <nobr>{{row.f_newuser_name}}</nobr>
149
- </td>
150
- <td style="text-align: center;">
151
- <nobr>{{row.f_address}}</nobr>
152
- </td>
153
- <td style="text-align: center;">
154
- <nobr>{{row.f_user_name}}</nobr>
155
- </td>
156
- <td style="text-align: center;">
157
- <nobr>{{row.f_newuser_phone}}</nobr>
158
- </td>
159
- <td style="text-align: center;">
160
- <nobr>{{row.f_user_phone}}</nobr>
161
- </td>
162
- <td style="text-align: center;">
163
- <nobr>{{row.f_transfer_fees}}</nobr>
164
- </td>
165
- <td style="text-align: center;">
166
- <nobr>{{row.f_operate_date}}</nobr>
167
- </td>
168
- <td style="text-align: center;">
169
- <nobr>{{row.f_comments}}</nobr>
170
- </td>
171
- <td style="text-align: center;">
172
- <nobr>{{row.f_operator}}</nobr>
173
- </td>
174
- <td style="text-align: center;">
175
- <nobr>{{row.f_depname}}</nobr>
176
- </td>
177
- <td style="text-align: center;">
178
- <nobr>{{row.f_orgname}}</nobr>
179
- </td>
180
- <td style="text-align: center;"><nobr>
181
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
182
- </nobr></td>
183
- </template>
184
- <template partial='foot'></template>
185
- </data-grid>
186
- </criteria-paged>
187
-
188
- <table class="table-hover">
189
- <tr style="position: relative" class="table-bordered">
190
- <td
191
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
192
- 汇总信息
193
- </td>
194
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
195
- 过户费合计:&emsp;{{sumsmodel.f_transfer_fees}}
196
- </td>
197
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
198
- 户数合计:&emsp;{{sumsmodel.hushu}}
199
- </td>
200
- </tr>
201
- </table>
202
- </div>
203
- <div class="flex" v-if="show">
204
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
205
- </div>
206
- </div>
207
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
208
- <article slot="modal-body">
209
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="过户" :isremark="false" style="width:auto" ></upload>
210
- </article>
211
- <footer slot="modal-footer" class="modal-footer">
212
- </footer>
213
- </modal>
214
- </div>
215
- </template>
216
-
217
- <script>
218
- import {PagedList} from 'vue-client'
219
- import defaultPrint from '../config/DefaultPrint'
220
- import exportConfig from '../config/exportConfig'
221
-
222
- let readySomething = async function (self) {
223
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
224
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
225
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
226
- // await self.$refs.paged.$refs.cri.search()
227
- await self.$MagLoadParams.loadParam(self.$login.f)
228
-
229
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
230
- }
231
- export default {
232
- props:['data'],
233
- title: '过户查询',
234
- data() {
235
- return {
236
- data: {},
237
- other:[],
238
- footer:[],
239
- show:false,
240
- rowdata:{},
241
- model: new PagedList('rs/sql/transferQuery', 20, {}, {f_transfer_fees: 0,hushu:0}),
242
- criteriaShow: false,
243
- initres: {
244
- org:[this.$login.f.orgid],
245
- dep:[],
246
- user:[],
247
- },
248
- headData: ["客户编号", "新户姓名", "新户电话", "客户地址", "过户状态", "原户姓名", "原户电话", "客户类型", "用气性质", "气价名称", "过户费", "过户日期", "人员", "部门", "公司"],
249
- 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"],
250
- orgCondtionStr: '',
251
- modelval: [],
252
- printshow: false,
253
- all: false,
254
- fields: {},
255
- config: {
256
- defaultPrint: ["f_userinfo_code", "f_newuser_name", "f_newuser_phone", "address", "f_state", "f_user_name","f_transfer_fees", "f_operate_date", "f_operator", "f_depname", "f_orgname"]
257
- },
258
- //默认打印列
259
- defaultfield: [],
260
- thead: '',
261
- tfoot: '',
262
- showupload:false,
263
- selected:{},
264
-
265
- transferstate: this.$appdata.getParam('过户状态') ? [{
266
- label: '全部',
267
- value: ''
268
- }, ...this.$appdata.getParam('过户状态')] : [],
269
- //合计数据
270
- sumsmodel: {}
271
- }
272
- },
273
- ready() {
274
- console.log(this.$login.f)
275
- readySomething(this).then(() => {
276
- this.$emit('ready')
277
- }).catch((error) => {
278
- this.$emit('error', error)
279
- })
280
- },
281
- methods: {
282
- view(row){
283
- this.showupload = true
284
- this.selected= row
285
- },
286
- getotherfooter(){
287
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
288
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
289
- this.other=[];
290
- this.footer=[];
291
- let exportdata = this.getCondition;
292
- let otherInData=[];
293
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
294
- let footerData=[],exportfield=this.getfield;
295
- footerData.push("合计");
296
- let self = this;
297
- for(var field in self.sumsmodel){
298
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
299
- }
300
- this.footer.push(footerData);
301
- this.other.push(otherInData);
302
- },
303
- search(){
304
- this.$refs.paged.$refs.cri.search()
305
- },
306
- dblclick(obj) {
307
- this.data = obj
308
- this.showinfo = true
309
- },
310
- async selfSearch(args) {
311
- if (this.data) {
312
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
313
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
314
- }
315
- args.condition = `${args.condition}` + this.orgCondtionStr
316
- console.log('我的阐述', JSON.stringify(args.condition))
317
- await this.model.search(args.condition, args.model)
318
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
319
- this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
320
-
321
- console.log('合计字段', this.sumsmodel)
322
- },
323
- dealmsg(val) {
324
- console.log('---------------dealmsg')
325
- this.rowdata=val
326
- this.show=true
327
- val.model = this.model.model
328
- this.$dispatch('deal-msg', val)
329
- },
330
- cancel() {
331
- this.show = false
332
- },
333
- clear() {
334
- //清空部门和人员
335
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
336
- //部门和人员变为全选
337
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
338
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
339
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
340
- this.$refs.paged.$refs.cri.model[key] = []
341
- })
342
- },
343
- show() {
344
- this.criteriaShow = true
345
- },
346
- hidden() {
347
- this.criteriaShow = !this.criteriaShow
348
- },
349
- getRes(obj) {
350
- this.orgCondtionStr = obj
351
- },
352
- stamp() {
353
- this.all = false
354
- //默认选择要打印的列
355
- this.modelval = defaultPrint.config
356
- this.fields = this.getfield
357
- console.log('所有打印字段', this.fields)
358
- this.printshow = true
359
- this.put()
360
- },
361
- put() {
362
- // 对Modelval进行排序
363
- this.sortModelval()
364
- this.thead = `<tr><th colspan=${this.modelval.length}>过户查询统计报表</th></tr><tr>`
365
- for (let key of this.modelval) {
366
- this.thead += '<th>' + this.fields[key] + '</th>'
367
- }
368
- this.thead += '</tr>'
369
- },
370
- print() {
371
- this.$refs.print.PrintAsFile()
372
- this.printshow = false
373
- },
374
- close() {
375
- this.printshow = false
376
- this.all = false
377
- },
378
- // 对选择的列进行排序
379
- sortModelval() {
380
- let sortModel = []
381
- Object.keys(this.fields).forEach((key) => {
382
- if (this.modelval.includes(key)) {
383
- sortModel.push(key)
384
- }
385
- })
386
- this.modelval = sortModel
387
- console.log('选择的打印的字段', this.modelval)
388
- }
389
- },
390
- watch: {
391
- 'all'(val) {
392
- if (val) {
393
- this.modelval = this.bodyData
394
- } else {
395
- this.modelval = defaultPrint.config
396
- this.put()
397
- }
398
- },
399
- 'modelval.length'() {
400
- this.put()
401
- },
402
- sumsmodel:{
403
- handler: function(val) {
404
- this.getotherfooter();
405
- },
406
- deep: true
407
- }
408
- },
409
- computed: {
410
- getCondition() {
411
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
412
- },
413
- getfield() {
414
- return exportConfig.transferConfig
415
- }
416
- }
417
- }
418
- </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
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
+ <div class="span" style="float:right;">
12
+ <button class="button_search button_spacing" @click="search()">查询</button>
13
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
14
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
15
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
16
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
17
+ sqlurl="rs/logic/exportfile" sql-name="transferQuery" template-name='过户查询导出'
18
+ :choose-col="true"></export-excel>
19
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
20
+ :defaultfield="$parent.$parent.defaultfield"
21
+ titletable="过户记录"
22
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
23
+ <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>
24
+ </div>
25
+ </div>
26
+ <div class="row" v-show="$parent.$parent.criteriaShow">
27
+ <div class="col-sm-2 form-group">
28
+ <label for="startDate" class="font_normal_body">开始日期</label>
29
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
30
+ v-model="model.startDate"
31
+ :value.sync="model.startDate"
32
+ :format="'yyyy-MM-dd HH:mm:ss'"
33
+ :show-reset-button="true"
34
+ condition="f_operate_date >= '{}'">
35
+ </datepicker>
36
+ </div>
37
+ <div class="col-sm-2 form-group">
38
+ <label for="endDate" class="font_normal_body">结束日期</label>
39
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
40
+ v-model="model.endDate"
41
+ :value.sync="model.endDate"
42
+ :format="'yyyy-MM-dd HH:mm:ss'"
43
+ :show-reset-button="true"
44
+ condition="f_operate_date <= '{}'">
45
+ </datepicker>
46
+ </div>
47
+ <div class="col-sm-2 form-group">
48
+ <label class="font_normal_body">客户编号</label>
49
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
50
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
51
+ </div>
52
+ <div class="col-sm-2 form-group">
53
+ <label class="font_normal_body">客户地址</label>
54
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
55
+ condition="f_address like '%{}%'" placeholder='客户地址'>
56
+ </div>
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
59
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
60
+ condition="f_meternumber = '{}'" placeholder='表号'>
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
65
+ condition="f_card_id = '{}'" placeholder='卡号'>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">过户状态</label>
69
+ <v-select :value.sync="model.f_state"
70
+ v-model="model.f_state"
71
+ :options='$parent.$parent.transferstate' placeholder='请选择'
72
+ condition="f_state = '{}'"
73
+ close-on-select></v-select>
74
+ </div>
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">原户姓名</label>
77
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
78
+ placeholder="原户姓名"
79
+ condition="f_user_name like '%{}%'">
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">新户姓名</label>
83
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
84
+ condition="f_newuser_name like '%{}%' " placeholder="新户姓名">
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">原户电话</label>
88
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
89
+ condition="f_user_phone like '%{}%' " placeholder="原户电话">
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">新户电话</label>
93
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_phone"
94
+ condition="f_newuser_phone like '%{}%' " placeholder="新户电话">
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </criteria>
99
+
100
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
101
+ <template partial='head'>
102
+ <tr>
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><nobr>附件</nobr></th>
140
+ </tr>
141
+ </template>
142
+ <template partial='body'>
143
+ <td style="text-align: center;">
144
+ <nobr>
145
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr>{{row.f_newuser_name}}</nobr>
149
+ </td>
150
+ <td style="text-align: center;">
151
+ <nobr>{{row.f_address}}</nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.f_user_name}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.f_newuser_phone}}</nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_user_phone}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr>{{row.f_transfer_fees}}</nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr>{{row.f_operate_date}}</nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr>{{row.f_comments}}</nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr>{{row.f_operator}}</nobr>
173
+ </td>
174
+ <td style="text-align: center;">
175
+ <nobr>{{row.f_depname}}</nobr>
176
+ </td>
177
+ <td style="text-align: center;">
178
+ <nobr>{{row.f_orgname}}</nobr>
179
+ </td>
180
+ <td style="text-align: center;"><nobr>
181
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
182
+ </nobr></td>
183
+ </template>
184
+ <template partial='foot'></template>
185
+ </data-grid>
186
+ </criteria-paged>
187
+
188
+ <table class="table-hover">
189
+ <tr style="position: relative" class="table-bordered">
190
+ <td
191
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
192
+ 汇总信息
193
+ </td>
194
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
195
+ 过户费合计:&emsp;{{sumsmodel.f_transfer_fees}}
196
+ </td>
197
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
198
+ 户数合计:&emsp;{{sumsmodel.hushu}}
199
+ </td>
200
+ </tr>
201
+ </table>
202
+ </div>
203
+ <div class="flex" v-if="show">
204
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
205
+ </div>
206
+ </div>
207
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
208
+ <article slot="modal-body">
209
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="过户" :isremark="false" style="width:auto" ></upload>
210
+ </article>
211
+ <footer slot="modal-footer" class="modal-footer">
212
+ </footer>
213
+ </modal>
214
+ </div>
215
+ </template>
216
+
217
+ <script>
218
+ import {PagedList} from 'vue-client'
219
+ import defaultPrint from '../config/DefaultPrint'
220
+ import exportConfig from '../config/exportConfig'
221
+
222
+ let readySomething = async function (self) {
223
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
224
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
225
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
226
+ // await self.$refs.paged.$refs.cri.search()
227
+ await self.$MagLoadParams.loadParam(self.$login.f)
228
+
229
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
230
+ }
231
+ export default {
232
+ props:['data'],
233
+ title: '过户查询',
234
+ data() {
235
+ return {
236
+ data: {},
237
+ other:[],
238
+ footer:[],
239
+ show:false,
240
+ rowdata:{},
241
+ model: new PagedList('rs/sql/transferQuery', 20, {}, {f_transfer_fees: 0,hushu:0}),
242
+ criteriaShow: false,
243
+ initres: {
244
+ org:[this.$login.f.orgid],
245
+ dep:[],
246
+ user:[],
247
+ },
248
+ headData: ["客户编号", "新户姓名", "新户电话", "客户地址", "过户状态", "原户姓名", "原户电话", "客户类型", "用气性质", "气价名称", "过户费", "过户日期", "人员", "部门", "公司"],
249
+ 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"],
250
+ orgCondtionStr: '',
251
+ modelval: [],
252
+ printshow: false,
253
+ all: false,
254
+ fields: {},
255
+ config: {
256
+ defaultPrint: ["f_userinfo_code", "f_newuser_name", "f_newuser_phone", "address", "f_state", "f_user_name","f_transfer_fees", "f_operate_date", "f_operator", "f_depname", "f_orgname"]
257
+ },
258
+ //默认打印列
259
+ defaultfield: [],
260
+ thead: '',
261
+ tfoot: '',
262
+ showupload:false,
263
+ selected:{},
264
+
265
+ transferstate: this.$appdata.getParam('过户状态') ? [{
266
+ label: '全部',
267
+ value: ''
268
+ }, ...this.$appdata.getParam('过户状态')] : [],
269
+ //合计数据
270
+ sumsmodel: {}
271
+ }
272
+ },
273
+ ready() {
274
+ console.log(this.$login.f)
275
+ readySomething(this).then(() => {
276
+ this.$emit('ready')
277
+ }).catch((error) => {
278
+ this.$emit('error', error)
279
+ })
280
+ },
281
+ methods: {
282
+ view(row){
283
+ this.showupload = true
284
+ this.selected= row
285
+ },
286
+ getotherfooter(){
287
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
288
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
289
+ this.other=[];
290
+ this.footer=[];
291
+ let exportdata = this.getCondition;
292
+ let otherInData=[];
293
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
294
+ let footerData=[],exportfield=this.getfield;
295
+ footerData.push("合计");
296
+ let self = this;
297
+ for(var field in self.sumsmodel){
298
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
299
+ }
300
+ this.footer.push(footerData);
301
+ this.other.push(otherInData);
302
+ },
303
+ search(){
304
+ this.$refs.paged.$refs.cri.search()
305
+ },
306
+ dblclick(obj) {
307
+ this.data = obj
308
+ this.showinfo = true
309
+ },
310
+ async selfSearch(args) {
311
+ if (this.data) {
312
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
313
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
314
+ }
315
+ args.condition = `${args.condition}` + this.orgCondtionStr
316
+ console.log('我的阐述', JSON.stringify(args.condition))
317
+ await this.model.search(args.condition, args.model)
318
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
319
+ this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
320
+
321
+ console.log('合计字段', this.sumsmodel)
322
+ },
323
+ dealmsg(val) {
324
+ console.log('---------------dealmsg')
325
+ this.rowdata=val
326
+ this.show=true
327
+ val.model = this.model.model
328
+ this.$dispatch('deal-msg', val)
329
+ },
330
+ cancel() {
331
+ this.show = false
332
+ },
333
+ clear() {
334
+ //清空部门和人员
335
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
336
+ //部门和人员变为全选
337
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
338
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
339
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
340
+ this.$refs.paged.$refs.cri.model[key] = []
341
+ })
342
+ },
343
+ show() {
344
+ this.criteriaShow = true
345
+ },
346
+ hidden() {
347
+ this.criteriaShow = !this.criteriaShow
348
+ },
349
+ getRes(obj) {
350
+ this.orgCondtionStr = obj
351
+ },
352
+ stamp() {
353
+ this.all = false
354
+ //默认选择要打印的列
355
+ this.modelval = defaultPrint.config
356
+ this.fields = this.getfield
357
+ console.log('所有打印字段', this.fields)
358
+ this.printshow = true
359
+ this.put()
360
+ },
361
+ put() {
362
+ // 对Modelval进行排序
363
+ this.sortModelval()
364
+ this.thead = `<tr><th colspan=${this.modelval.length}>过户查询统计报表</th></tr><tr>`
365
+ for (let key of this.modelval) {
366
+ this.thead += '<th>' + this.fields[key] + '</th>'
367
+ }
368
+ this.thead += '</tr>'
369
+ },
370
+ print() {
371
+ this.$refs.print.PrintAsFile()
372
+ this.printshow = false
373
+ },
374
+ close() {
375
+ this.printshow = false
376
+ this.all = false
377
+ },
378
+ // 对选择的列进行排序
379
+ sortModelval() {
380
+ let sortModel = []
381
+ Object.keys(this.fields).forEach((key) => {
382
+ if (this.modelval.includes(key)) {
383
+ sortModel.push(key)
384
+ }
385
+ })
386
+ this.modelval = sortModel
387
+ console.log('选择的打印的字段', this.modelval)
388
+ }
389
+ },
390
+ watch: {
391
+ 'all'(val) {
392
+ if (val) {
393
+ this.modelval = this.bodyData
394
+ } else {
395
+ this.modelval = defaultPrint.config
396
+ this.put()
397
+ }
398
+ },
399
+ 'modelval.length'() {
400
+ this.put()
401
+ },
402
+ sumsmodel:{
403
+ handler: function(val) {
404
+ this.getotherfooter();
405
+ },
406
+ deep: true
407
+ }
408
+ },
409
+ computed: {
410
+ getCondition() {
411
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
412
+ },
413
+ getfield() {
414
+ return exportConfig.transferConfig
415
+ }
416
+ }
417
+ }
418
+ </script>