manage-client 3.2.30 → 3.2.34

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