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