manage-client 3.2.26 → 3.2.30

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