manage-client 3.2.32 → 3.2.36

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 (59) 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/sale/businessquery/AreaChargeQuery.vue +380 -0
  13. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  15. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  16. package/src/components/sale/businessquery/ChargeQuery.vue +8 -3
  17. package/src/components/sale/businessquery/CollectManage.vue +3 -0
  18. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  19. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  20. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  21. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  22. package/src/components/sale/businessquery/InspectListUser.vue +412 -433
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  24. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  25. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  26. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  27. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  28. package/src/components/sale/config/exportConfig.js +3 -0
  29. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  30. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  31. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  32. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  33. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  34. package/src/components/statistical/DendrogramManage.vue +239 -204
  35. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  36. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  37. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  38. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  39. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  40. package/src/filiale/meihekou/DeviceQuery.vue +545 -545
  41. package/src/filiale/meihekou/RecordInfoQuery.vue +1168 -1168
  42. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  43. package/src/filiale/meihekou/sale.js +31 -31
  44. package/src/filiale/pingxiang/sale.js +9 -9
  45. package/src/filiale/qingtongxia/sale.js +13 -13
  46. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  47. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  48. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  49. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  50. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  51. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  52. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  53. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  54. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  55. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1270
  56. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  57. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  58. package/src/main.js +10 -10
  59. package/src/saleManage.js +533 -529
@@ -1,408 +1,408 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
-
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label for="startDate" class="font_normal_body">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="true"
17
- condition="f_operate_date >= '{}'">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_date <= '{}'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">客户编号</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition=" f_user_name like '%{}%'" placeholder='客户名称'
39
- :size="model.f_user_name ? model.f_user_name.length * 2 : 1">
40
- </div>
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition"
47
- :field="$parent.$parent.getfield"
48
- :header="$parent.$parent.other"
49
- sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
50
- :choose-col="true"></export-excel>
51
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
- :defaultfield="$parent.$parent.defaultfield"
53
- titletable="启用记录"
54
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
56
- </div>
57
- </div>
58
-
59
- <div class="row" v-show="$parent.$parent.criteriaShow">
60
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
- <div class="col-sm-2 form-group">
62
- <label class="font_normal_body">客户地址</label>
63
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
64
- condition="f_address like '%{}%'" placeholder='客户地址'>
65
- </div>
66
- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body">操作类型</label>
68
- <v-select :value.sync="model.f_operat_type"
69
- v-model="model.f_operat_type"
70
- :options='$parent.$parent.operattype' placeholder='请选择'
71
- condition="f_operat_type = '{}'"
72
- close-on-select></v-select>
73
- </div>
74
- </div>
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">表&emsp;&emsp;号</label>
77
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
78
- condition="f_meternumber = '{}'" placeholder='表号'>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
82
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
83
- condition="f_card_id = '{}'" placeholder='卡号'>
84
- </div>
85
- <div class="row">
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
88
- <v-select class="select_list select"
89
- v-model="model.f_residential_area"
90
- :value.sync="model.f_residential_area"
91
- :options='$parent.$parent.residentialarea'
92
- style="width: 60%"
93
- placeholder='选择小区'
94
- condition="f_residential_area = '{}'"
95
- close-on-select>
96
-
97
- </v-select>
98
- </div>
99
- <div class="col-sm-2 form-group">
100
- <label class="font_normal_body">具体地址</label>
101
- <div class="btn-group select_list select" style="width: 60%;">
102
- <input type="text" style="width: 27%;" placeholder="楼号" class="input_search" v-model="model.f_building" condition="f_building = '{}'"/>&nbsp;-&nbsp;
103
- <input type="text" style="width: 20%;" placeholder="单元" class="input_search" v-model="model.f_unit" condition="f_unit = '{}'"/>&nbsp;-&nbsp;
104
- <input type="text" style="width: 36%;" placeholder="室号" class="input_search" v-model="model.f_room" condition="f_room = '{}'" />
105
- </div>
106
- </div>
107
- </div>
108
- </div>
109
- </criteria>
110
-
111
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
112
- <template partial='head'>
113
- <tr>
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>
130
- <nobr>其他原因</nobr>
131
- </th>
132
- <th>
133
- <nobr>状态</nobr>
134
- </th>
135
- <th>
136
- <nobr>启用日期</nobr>
137
- </th>
138
- <th>
139
- <nobr>操作类型</nobr>
140
- </th>
141
- <th>
142
- <nobr>人员</nobr>
143
- </th>
144
- <th>
145
- <nobr>部门</nobr>
146
- </th>
147
- <th>
148
- <nobr>公司</nobr>
149
- </th>
150
- <th><nobr>附件</nobr></th>
151
- </tr>
152
- </template>
153
- <template partial='body'>
154
- <td style="text-align: center;">
155
- <nobr>
156
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
157
- </td>
158
- <td style="text-align: center;">
159
- <nobr>{{row.f_user_name}}</nobr>
160
- </td>
161
- <td style="text-align: center;">
162
- <nobr>{{row.f_user_type}}</nobr>
163
- </td>
164
- <td style="text-align: center;">
165
- <nobr>{{row.f_address}}</nobr>
166
- </td>
167
- <td style="text-align: center;">
168
- <nobr>{{row.f_enable_reason}}</nobr>
169
- </td>
170
- <td style="text-align: center;">
171
- <nobr>{{row.f_othereason}}</nobr>
172
- </td>
173
- <td style="text-align: center;">
174
- <nobr>{{row.f_state}}</nobr>
175
- </td>
176
- <td style="text-align: center;">
177
- <nobr>{{row.f_operate_date}}</nobr>
178
- </td>
179
- <td style="text-align: center;">
180
- <nobr>{{row.f_operat_type}}</nobr>
181
- </td>
182
- <td style="text-align: center;">
183
- <nobr>{{row.f_operator}}</nobr>
184
- </td>
185
- <td style="text-align: center;">
186
- <nobr>{{row.f_depname}}</nobr>
187
- </td>
188
- <td style="text-align: center;">
189
- <nobr>{{row.f_orgname}}</nobr>
190
- </td>
191
- <td style="text-align: center;"><nobr>
192
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
193
- </nobr></td>
194
- </template>
195
- <template partial='foot'></template>
196
- </data-grid>
197
- </criteria-paged>
198
-
199
- <!-- <table class="table-hover">-->
200
- <!-- <tr style="position: relative" class="table-bordered">-->
201
- <!-- <td-->
202
- <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
203
- <!-- 汇总信息-->
204
- <!-- </td>-->
205
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">合计:&emsp;{{sumsmodel.f_pregas}}</td>-->
206
- <!-- </tr>-->
207
- <!-- </table>-->
208
- </div>
209
- <div class="flex" v-if="show">
210
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
211
- </div>
212
- </div>
213
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
214
- <article slot="modal-body">
215
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="启用" :isremark="false" style="width:auto" ></upload>
216
- </article>
217
- <footer slot="modal-footer" class="modal-footer">
218
- </footer>
219
- </modal>
220
- </div>
221
- </template>
222
-
223
- <script>
224
- import {PagedList} from 'vue-client'
225
- import defaultPrint from '../config/DefaultPrint'
226
- import exportConfig from '../config/exportConfig'
227
-
228
- let readySomething = async function (self) {
229
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
230
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
231
- // await self.$refs.paged.$refs.cri.search()
232
- await self.$MagLoadParams.loadParam()
233
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
234
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
235
- }
236
- export default {
237
- props:['data','residentialarea'],
238
- title: '启用查询',
239
- data() {
240
- return {
241
- data: {},
242
- other: [],
243
- footer: [],
244
- model: new PagedList('rs/sql/enableQuery', 20, {}),
245
- criteriaShow: false,
246
- headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
247
- bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
248
- orgCondtionStr: '',
249
- modelval: [],
250
- printshow: false,
251
- all: false,
252
- fields: {},
253
- config: {
254
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_enable_reason', 'f_othereason', 'f_state', 'f_operate_date', 'f_operat_type', 'f_operator']
255
- },
256
- //默认打印列
257
- defaultfield: [],
258
- initres: {
259
- org: [this.$login.f.orgid],
260
- dep: [],
261
- user: [],
262
- },
263
- show: false,
264
- rowdata: {},
265
- thead: '',
266
- showupload:false,
267
- selected:{},
268
- tfoot: '',
269
- //合计数据
270
- sumsmodel: {},
271
- operattype:[{label: '全部', value: ''},{label: '启用', value: '启用'},{label: '复拆表', value: '复拆表'}]
272
- }
273
- },
274
- ready() {
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
- cancel() {
307
- this.show = false
308
- },
309
- selfSearch(args) {
310
- if (this.data) {
311
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
312
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
313
- }
314
- args.condition = `${args.condition} ` + this.orgCondtionStr
315
- this.model.search(args.condition, args.model)
316
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
317
- },
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
- dealmsg(val) {
330
- console.log('---------------dealmsg')
331
- this.rowdata = val
332
- this.show = true
333
- val.model = this.model.model
334
- this.$dispatch('deal-msg', val)
335
- },
336
- hidden() {
337
- this.criteriaShow = !this.criteriaShow
338
- },
339
- getRes(obj) {
340
- this.orgCondtionStr = obj
341
- },
342
- stamp() {
343
- this.all = false
344
- //默认选择要打印的列
345
- this.modelval = defaultPrint.config
346
- this.fields = this.getfield
347
- console.log('所有打印字段', this.fields)
348
- this.printshow = true
349
- this.put()
350
- },
351
- put() {
352
- // 对Modelval进行排序
353
- this.sortModelval()
354
- this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
355
- for (let key of this.modelval) {
356
- this.thead += '<th>' + this.fields[key] + '</th>'
357
- }
358
- this.thead += '</tr>'
359
- },
360
- print() {
361
- this.$refs.print.PrintAsFile()
362
- this.printshow = false
363
- },
364
- close() {
365
- this.printshow = false
366
- this.all = false
367
- },
368
- // 对选择的列进行排序
369
- sortModelval() {
370
- let sortModel = []
371
- Object.keys(this.fields).forEach((key) => {
372
- if (this.modelval.includes(key)) {
373
- sortModel.push(key)
374
- }
375
- })
376
- this.modelval = sortModel
377
- console.log('选择的打印的字段', this.modelval)
378
- }
379
- },
380
- watch: {
381
- 'all'(val) {
382
- if (val) {
383
- this.modelval = this.bodyData
384
- } else {
385
- this.modelval = defaultPrint.config
386
- this.put()
387
- }
388
- },
389
- sumsmodel: {
390
- handler: function (val) {
391
- this.getotherfooter();
392
- },
393
- deep: true
394
- },
395
- 'modelval.length'() {
396
- this.put()
397
- }
398
- },
399
- computed: {
400
- getCondition() {
401
- return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
402
- },
403
- getfield() {
404
- return exportConfig.enableConfig
405
- }
406
- }
407
- }
408
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operate_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date <= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition=" f_user_name like '%{}%'" placeholder='客户名称'
39
+ :size="model.f_user_name ? model.f_user_name.length * 2 : 1">
40
+ </div>
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ :header="$parent.$parent.other"
49
+ sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
50
+ :choose-col="true"></export-excel>
51
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
+ :defaultfield="$parent.$parent.defaultfield"
53
+ titletable="启用记录"
54
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
56
+ </div>
57
+ </div>
58
+
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户地址</label>
63
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
64
+ condition="f_address like '%{}%'" placeholder='客户地址'>
65
+ </div>
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">操作类型</label>
68
+ <v-select :value.sync="model.f_operat_type"
69
+ v-model="model.f_operat_type"
70
+ :options='$parent.$parent.operattype' placeholder='请选择'
71
+ condition="f_operat_type = '{}'"
72
+ close-on-select></v-select>
73
+ </div>
74
+ </div>
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
77
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
78
+ condition="f_meternumber = '{}'" placeholder='表号'>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
82
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
83
+ condition="f_card_id = '{}'" placeholder='卡号'>
84
+ </div>
85
+ <div class="row">
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
88
+ <v-select class="select_list select"
89
+ v-model="model.f_residential_area"
90
+ :value.sync="model.f_residential_area"
91
+ :options='$parent.$parent.residentialarea'
92
+ style="width: 60%"
93
+ placeholder='选择小区'
94
+ condition="f_residential_area = '{}'"
95
+ close-on-select>
96
+
97
+ </v-select>
98
+ </div>
99
+ <div class="col-sm-2 form-group">
100
+ <label class="font_normal_body">具体地址</label>
101
+ <div class="btn-group select_list select" style="width: 60%;">
102
+ <input type="text" style="width: 27%;" placeholder="楼号" class="input_search" v-model="model.f_building" condition="f_building = '{}'"/>&nbsp;-&nbsp;
103
+ <input type="text" style="width: 20%;" placeholder="单元" class="input_search" v-model="model.f_unit" condition="f_unit = '{}'"/>&nbsp;-&nbsp;
104
+ <input type="text" style="width: 36%;" placeholder="室号" class="input_search" v-model="model.f_room" condition="f_room = '{}'" />
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ </criteria>
110
+
111
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
112
+ <template partial='head'>
113
+ <tr>
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>
130
+ <nobr>其他原因</nobr>
131
+ </th>
132
+ <th>
133
+ <nobr>状态</nobr>
134
+ </th>
135
+ <th>
136
+ <nobr>启用日期</nobr>
137
+ </th>
138
+ <th>
139
+ <nobr>操作类型</nobr>
140
+ </th>
141
+ <th>
142
+ <nobr>人员</nobr>
143
+ </th>
144
+ <th>
145
+ <nobr>部门</nobr>
146
+ </th>
147
+ <th>
148
+ <nobr>公司</nobr>
149
+ </th>
150
+ <th><nobr>附件</nobr></th>
151
+ </tr>
152
+ </template>
153
+ <template partial='body'>
154
+ <td style="text-align: center;">
155
+ <nobr>
156
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_user_name}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.f_user_type}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;">
165
+ <nobr>{{row.f_address}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.f_enable_reason}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;">
171
+ <nobr>{{row.f_othereason}}</nobr>
172
+ </td>
173
+ <td style="text-align: center;">
174
+ <nobr>{{row.f_state}}</nobr>
175
+ </td>
176
+ <td style="text-align: center;">
177
+ <nobr>{{row.f_operate_date}}</nobr>
178
+ </td>
179
+ <td style="text-align: center;">
180
+ <nobr>{{row.f_operat_type}}</nobr>
181
+ </td>
182
+ <td style="text-align: center;">
183
+ <nobr>{{row.f_operator}}</nobr>
184
+ </td>
185
+ <td style="text-align: center;">
186
+ <nobr>{{row.f_depname}}</nobr>
187
+ </td>
188
+ <td style="text-align: center;">
189
+ <nobr>{{row.f_orgname}}</nobr>
190
+ </td>
191
+ <td style="text-align: center;"><nobr>
192
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
193
+ </nobr></td>
194
+ </template>
195
+ <template partial='foot'></template>
196
+ </data-grid>
197
+ </criteria-paged>
198
+
199
+ <!-- <table class="table-hover">-->
200
+ <!-- <tr style="position: relative" class="table-bordered">-->
201
+ <!-- <td-->
202
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
203
+ <!-- 汇总信息-->
204
+ <!-- </td>-->
205
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">合计:&emsp;{{sumsmodel.f_pregas}}</td>-->
206
+ <!-- </tr>-->
207
+ <!-- </table>-->
208
+ </div>
209
+ <div class="flex" v-if="show">
210
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
211
+ </div>
212
+ </div>
213
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
214
+ <article slot="modal-body">
215
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="启用" :isremark="false" style="width:auto" ></upload>
216
+ </article>
217
+ <footer slot="modal-footer" class="modal-footer">
218
+ </footer>
219
+ </modal>
220
+ </div>
221
+ </template>
222
+
223
+ <script>
224
+ import {PagedList} from 'vue-client'
225
+ import defaultPrint from '../config/DefaultPrint'
226
+ import exportConfig from '../config/exportConfig'
227
+
228
+ let readySomething = async function (self) {
229
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
230
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
231
+ // await self.$refs.paged.$refs.cri.search()
232
+ await self.$MagLoadParams.loadParam()
233
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
234
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
235
+ }
236
+ export default {
237
+ props:['data','residentialarea'],
238
+ title: '启用查询',
239
+ data() {
240
+ return {
241
+ data: {},
242
+ other: [],
243
+ footer: [],
244
+ model: new PagedList('rs/sql/enableQuery', 20, {}),
245
+ criteriaShow: false,
246
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
247
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
248
+ orgCondtionStr: '',
249
+ modelval: [],
250
+ printshow: false,
251
+ all: false,
252
+ fields: {},
253
+ config: {
254
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_enable_reason', 'f_othereason', 'f_state', 'f_operate_date', 'f_operat_type', 'f_operator']
255
+ },
256
+ //默认打印列
257
+ defaultfield: [],
258
+ initres: {
259
+ org: [this.$login.f.orgid],
260
+ dep: [],
261
+ user: [],
262
+ },
263
+ show: false,
264
+ rowdata: {},
265
+ thead: '',
266
+ showupload:false,
267
+ selected:{},
268
+ tfoot: '',
269
+ //合计数据
270
+ sumsmodel: {},
271
+ operattype:[{label: '全部', value: ''},{label: '启用', value: '启用'},{label: '复拆表', value: '复拆表'}]
272
+ }
273
+ },
274
+ ready() {
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
+ cancel() {
307
+ this.show = false
308
+ },
309
+ selfSearch(args) {
310
+ if (this.data) {
311
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
312
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
313
+ }
314
+ args.condition = `${args.condition} ` + this.orgCondtionStr
315
+ this.model.search(args.condition, args.model)
316
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
317
+ },
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
+ dealmsg(val) {
330
+ console.log('---------------dealmsg')
331
+ this.rowdata = val
332
+ this.show = true
333
+ val.model = this.model.model
334
+ this.$dispatch('deal-msg', val)
335
+ },
336
+ hidden() {
337
+ this.criteriaShow = !this.criteriaShow
338
+ },
339
+ getRes(obj) {
340
+ this.orgCondtionStr = obj
341
+ },
342
+ stamp() {
343
+ this.all = false
344
+ //默认选择要打印的列
345
+ this.modelval = defaultPrint.config
346
+ this.fields = this.getfield
347
+ console.log('所有打印字段', this.fields)
348
+ this.printshow = true
349
+ this.put()
350
+ },
351
+ put() {
352
+ // 对Modelval进行排序
353
+ this.sortModelval()
354
+ this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
355
+ for (let key of this.modelval) {
356
+ this.thead += '<th>' + this.fields[key] + '</th>'
357
+ }
358
+ this.thead += '</tr>'
359
+ },
360
+ print() {
361
+ this.$refs.print.PrintAsFile()
362
+ this.printshow = false
363
+ },
364
+ close() {
365
+ this.printshow = false
366
+ this.all = false
367
+ },
368
+ // 对选择的列进行排序
369
+ sortModelval() {
370
+ let sortModel = []
371
+ Object.keys(this.fields).forEach((key) => {
372
+ if (this.modelval.includes(key)) {
373
+ sortModel.push(key)
374
+ }
375
+ })
376
+ this.modelval = sortModel
377
+ console.log('选择的打印的字段', this.modelval)
378
+ }
379
+ },
380
+ watch: {
381
+ 'all'(val) {
382
+ if (val) {
383
+ this.modelval = this.bodyData
384
+ } else {
385
+ this.modelval = defaultPrint.config
386
+ this.put()
387
+ }
388
+ },
389
+ sumsmodel: {
390
+ handler: function (val) {
391
+ this.getotherfooter();
392
+ },
393
+ deep: true
394
+ },
395
+ 'modelval.length'() {
396
+ this.put()
397
+ }
398
+ },
399
+ computed: {
400
+ getCondition() {
401
+ return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
402
+ },
403
+ getfield() {
404
+ return exportConfig.enableConfig
405
+ }
406
+ }
407
+ }
408
+ </script>