manage-client-xy 3.2.28 → 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 (31) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/components/SellReport/FinancialStatement.vue +30 -0
  4. package/src/components/SellReport/ManageBusSummary.vue +241 -241
  5. package/src/components/SellReport/SmartKitchenSummary.vue +275 -275
  6. package/src/components/SellReport/UserNumber.vue +30 -0
  7. package/src/components/SellReport/XianYangNewCharge.vue +355 -355
  8. package/src/components/sale/businessquery/AreaGeneralQuery.vue +715 -700
  9. package/src/components/sale/businessquery/CMHGasQuery.vue +441 -411
  10. package/src/components/sale/businessquery/ChangeMeterQuery.vue +659 -630
  11. package/src/components/sale/businessquery/ChangeUserQuery.vue +403 -373
  12. package/src/components/sale/businessquery/ChargeQuery.vue +1027 -997
  13. package/src/components/sale/businessquery/DisableQuery.vue +433 -403
  14. package/src/components/sale/businessquery/EnableQuery.vue +422 -392
  15. package/src/components/sale/businessquery/FMYGasQuery.vue +440 -410
  16. package/src/components/sale/businessquery/FillCardQuery.vue +522 -492
  17. package/src/components/sale/businessquery/FillGasQuery.vue +506 -476
  18. package/src/components/sale/businessquery/HandplanQuery.vue +728 -698
  19. package/src/components/sale/businessquery/LogQuery.vue +301 -269
  20. package/src/components/sale/businessquery/NewAccountQuery.vue +518 -488
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +432 -402
  22. package/src/components/sale/businessquery/RecordQuery.vue +399 -369
  23. package/src/components/sale/businessquery/ResidentialQuery.vue +417 -387
  24. package/src/components/sale/businessquery/ReverseQuery.vue +459 -429
  25. package/src/components/sale/businessquery/SellingHand.vue +408 -378
  26. package/src/components/sale/businessquery/TransferQuery.vue +589 -559
  27. package/src/components/sale/businessquery/cancelAccountQuery.vue +518 -488
  28. package/src/components/sale/filesquery/DeviceQuery.vue +30 -0
  29. package/src/components/sale/filesquery/MeterQuery.vue +30 -0
  30. package/src/components/sale/filesquery/UserQuery.vue +796 -764
  31. package/src/components/webmeter/DrillData/UserGasAll.vue +30 -1
@@ -1,392 +1,422 @@
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 class="font_normal_body">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_id"
13
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">客户名称</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
- condition=" f_user_name like '%{}%'" placeholder='客户名称'
19
- :size="model.f_user_name ? model.f_user_name.length * 2 : 1">
20
- </div>
21
- <div class="col-sm-2 form-group">
22
- <label for="startDate" class="font_normal_body">开始日期</label>
23
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
- v-model="model.startDate"
25
- :value.sync="model.startDate"
26
- :format="'yyyy-MM-dd'"
27
- :show-reset-button="true"
28
- condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
29
- </datepicker>
30
- </div>
31
- <div class="col-sm-2 form-group">
32
- <label for="endDate" class="font_normal_body">结束日期</label>
33
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
- v-model="model.endDate"
35
- :value.sync="model.endDate"
36
- :format="'yyyy-MM-dd'"
37
- :show-reset-button="true"
38
- condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
39
- </datepicker>
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
- sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
49
- v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
50
- :choose-col="true"></export-excel>
51
-
52
- <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>
53
- </div>
54
- </div>
55
- <div class="row">
56
- <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
57
- <div class="col-sm-2 form-group">
58
- <label for="f_area_id" class="font_normal_body">小区编码</label>
59
- <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
60
- condition="f_area_id = '{}'" placeholder='小区编码'>
61
- </div>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
64
- <v-select :value.sync="model.f_residential_area"
65
- class="select_list select"
66
- enter-push
67
- multiple = "true"
68
- v-model="model.f_residential_area"
69
- style="width: 60%"
70
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
71
- close-on-select>
72
- </v-select>
73
- </div>
74
- </div>
75
- <div class="row" v-show="$parent.$parent.criteriaShow">
76
- <div class="col-sm-2 form-group">
77
- <label class="font_normal_body">客户地址</label>
78
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
79
- condition="f_address like '%{}%'" placeholder='客户地址'>
80
- </div>
81
- <div class="col-sm-2 form-group">
82
- <label class="font_normal_body">是否<br/>手持设备</label>
83
- <v-select :value.sync="$parent.$parent.f_outlets"
84
- :options="$parent.$parent.isPos"
85
- :search="false"
86
- placeholder='请选择'
87
- condition="{}"
88
- close-on-select></v-select>
89
- </div>
90
- </div>
91
-
92
-
93
- </div>
94
- </criteria>
95
-
96
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
97
- <template partial='head'>
98
- <tr>
99
- <th>
100
- <nobr>客户编号</nobr>
101
- </th>
102
- <th>
103
- <nobr>客户名称</nobr>
104
- </th>
105
- <th>
106
- <nobr>客户地址</nobr>
107
- </th>
108
- <th>
109
- <nobr>启用原因</nobr>
110
- </th>
111
- <th>
112
- <nobr>其他原因</nobr>
113
- </th>
114
- <th>
115
- <nobr>状态</nobr>
116
- </th>
117
- <th>
118
- <nobr>启用日期</nobr>
119
- </th>
120
- <th>
121
- <nobr>人员</nobr>
122
- </th>
123
- <th>
124
- <nobr>部门</nobr>
125
- </th>
126
- <th>
127
- <nobr>网点</nobr>
128
- </th>
129
- <th>
130
- <nobr>公司</nobr>
131
- </th>
132
- </tr>
133
- </template>
134
- <template partial='body'>
135
- <td style="text-align: center;">
136
- <nobr>
137
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
138
- </td>
139
- <td style="text-align: center;">
140
- <nobr>{{row.f_user_name}}</nobr>
141
- </td>
142
- <td style="text-align: center;">
143
- <nobr>{{row.f_address}}</nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr>{{row.f_enable_reason}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.f_othereason}}</nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr>{{row.f_state}}</nobr>
153
- </td>
154
- <td style="text-align: center;">
155
- <nobr>{{row.f_operate_date}}</nobr>
156
- </td>
157
- <td style="text-align: center;">
158
- <nobr>{{row.f_operator}}</nobr>
159
- </td>
160
- <td style="text-align: center;">
161
- <nobr>{{row.f_depname}}</nobr>
162
- </td>
163
- <td style="text-align: center;">
164
- <nobr>{{row.f_outlets}}</nobr>
165
- </td>
166
- <td style="text-align: center;">
167
- <nobr>{{row.f_orgname}}</nobr>
168
- </td>
169
- </template>
170
- <template partial='foot'></template>
171
- </data-grid>
172
- </criteria-paged>
173
-
174
- <table class="table-hover">
175
- <tr style="position: relative" class="table-bordered">
176
- <td
177
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
178
- 汇总信息
179
- </td>
180
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
181
- </tr>
182
- </table>
183
- </div>
184
- <div v-if="show">
185
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
186
- </div>
187
- <div v-if="showAttachment">
188
- <attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_enable" @close="closeAttachment"></attachment-viewer>
189
- </div>
190
- </div>
191
- </div>
192
- </template>
193
-
194
- <script>
195
- import {HttpResetClass, PagedList} from 'vue-client'
196
- import defaultPrint from '../config/DefaultPrint'
197
- import exportConfig from '../config/exportConfig'
198
- import AttachmentViewer from './AttachmentViewer.vue'
199
-
200
- let readySomething = async function (self) {
201
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
202
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
203
- // await self.$refs.paged.$refs.cri.search()
204
- await self.$MagLoadParams.loadParam()
205
-
206
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
207
- }
208
- export default {
209
- components: {
210
- AttachmentViewer
211
- },
212
- data() {
213
- return {
214
- data: {},
215
- model: new PagedList('rs/sql/enableQuery', 20, {}),
216
- criteriaShow: false,
217
- headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
218
- bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
219
- orgCondtionStr: '',
220
- modelval: [],
221
- printshow: false,
222
- jurisdiction:this.$login.r,
223
- all: false,
224
- fields: {},
225
- initres: {
226
- org:[this.$login.f.orgid],
227
- dep:[],
228
- user:[],
229
- },
230
- residentialArea:[],
231
- area:[],
232
- f_outlets: [],
233
- isPos: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
234
- show:false,
235
- showAttachment: false,
236
- currentRow: null,
237
- rowdata:{},
238
- thead: '',
239
- tfoot: '',
240
- //合计数据
241
- sumsmodel: {}
242
- }
243
- },
244
- ready() {
245
- this.getaddress()
246
-
247
- readySomething(this).then(() => {
248
- this.$emit('ready')
249
- }).catch((error) => {
250
- this.$emit('error', error)
251
- })
252
- },
253
- methods: {
254
- async getaddress(){
255
- console.log('开始获取小区')
256
- let HttpReset = new HttpResetClass()
257
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
258
- data: {
259
- condition: '1=1'
260
- }
261
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
262
- console.log('小区',data)
263
- let house = []
264
- for (let row of data.data){
265
- console.log('开始保存小区')
266
- house.push({label: row.f_residential_area, value: row.f_residential_area})
267
- }
268
- this.residentialArea = house
269
- },
270
- search(){
271
- this.$refs.paged.$refs.cri.search()
272
- },
273
- cancel() {
274
- this.show = false
275
- },
276
- selfSearch(args) {
277
- //小区查询条件
278
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
279
- console.log("=====小区model绑定====",this.area)
280
- if(this.area.length !== 0){
281
- let str = JSON.stringify(this.area)
282
- str = str.replace(/"/g,`'`)
283
- str = str.replace(/\[/g,``)
284
- str = str.replace(/\]/g,``)
285
- console.log("=====小区model22222222222绑定====",str)
286
- //查询多个小区时条件
287
- args.condition += ` and f_residential_area in ( ${str} )`
288
- }
289
-
290
- // 手持设备查询条件
291
- if(this.f_outlets[0] === ''){
292
- args.condition+= ` and f_outlets = '手持设备'`
293
- } else if (this.f_outlets[0] === '否'){
294
- args.condition+= ` and f_outlets is null`
295
- }
296
-
297
- args.condition = `${args.condition} ` + this.orgCondtionStr
298
- this.model.search(args.condition, args.model)
299
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
300
- },
301
-
302
- clear() {
303
- //清空部门和人员
304
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
305
- //部门和人员变为全选
306
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
307
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
308
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
309
- this.$refs.paged.$refs.cri.model[key] = ''
310
- })
311
- },
312
- dealmsg(val) {
313
- console.log('---------------dealmsg')
314
- this.rowdata=val
315
- this.show=true
316
- val.model = this.model.model
317
- this.$dispatch('deal-msg', val)
318
- },
319
- view(row) {
320
- this.currentRow = row;
321
- this.showAttachment = true;
322
- },
323
- closeAttachment() {
324
- this.showAttachment = false;
325
- },
326
- hidden() {
327
- this.criteriaShow = !this.criteriaShow
328
- },
329
- getRes(obj) {
330
- this.orgCondtionStr = obj
331
- },
332
- stamp() {
333
- this.all = false
334
- //默认选择要打印的列
335
- this.modelval = defaultPrint.config
336
- this.fields = this.getfield
337
- console.log('所有打印字段', this.fields)
338
- this.printshow = true
339
- this.put()
340
- },
341
- put() {
342
- // 对Modelval进行排序
343
- this.sortModelval()
344
- this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
345
- for (let key of this.modelval) {
346
- this.thead += '<th>' + this.fields[key] + '</th>'
347
- }
348
- this.thead += '</tr>'
349
- },
350
- print() {
351
- this.$refs.print.PrintAsFile()
352
- this.printshow = false
353
- },
354
- close() {
355
- this.printshow = false
356
- this.all = false
357
- },
358
- // 对选择的列进行排序
359
- sortModelval() {
360
- let sortModel = []
361
- Object.keys(this.fields).forEach((key) => {
362
- if (this.modelval.includes(key)) {
363
- sortModel.push(key)
364
- }
365
- })
366
- this.modelval = sortModel
367
- console.log('选择的打印的字段', this.modelval)
368
- }
369
- },
370
- watch: {
371
- 'all'(val) {
372
- if (val) {
373
- this.modelval = this.bodyData
374
- } else {
375
- this.modelval = defaultPrint.config
376
- this.put()
377
- }
378
- },
379
- 'modelval.length'() {
380
- this.put()
381
- },
382
- },
383
- computed: {
384
- getCondition() {
385
- return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
386
- },
387
- getfield() {
388
- return exportConfig.enableConfig
389
- }
390
- }
391
- }
392
- </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 class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_id"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition=" f_user_name like '%{}%'" placeholder='客户名称'
19
+ :size="model.f_user_name ? model.f_user_name.length * 2 : 1">
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label for="startDate" class="font_normal_body">开始日期</label>
23
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
+ v-model="model.startDate"
25
+ :value.sync="model.startDate"
26
+ :format="'yyyy-MM-dd'"
27
+ :show-reset-button="true"
28
+ condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
29
+ </datepicker>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label for="endDate" class="font_normal_body">结束日期</label>
33
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
+ v-model="model.endDate"
35
+ :value.sync="model.endDate"
36
+ :format="'yyyy-MM-dd'"
37
+ :show-reset-button="true"
38
+ condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
39
+ </datepicker>
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
+ sqlurl="rs/logic/exportfile" sql-name="enableQuery" template-name='启用查询导出'
49
+ v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
50
+ :choose-col="true"></export-excel>
51
+
52
+ <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>
53
+ </div>
54
+ </div>
55
+ <div class="row">
56
+ <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
57
+ <div class="col-sm-2 form-group">
58
+ <label for="f_area_id" class="font_normal_body">小区编码</label>
59
+ <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
60
+ condition="f_area_id = '{}'" placeholder='小区编码'>
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
64
+ <v-select :value.sync="model.f_residential_area"
65
+ class="select_list select"
66
+ enter-push
67
+ multiple = "true"
68
+ v-model="model.f_residential_area"
69
+ style="width: 60%"
70
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
71
+ close-on-select>
72
+ </v-select>
73
+ </div>
74
+ </div>
75
+ <div class="row" v-show="$parent.$parent.criteriaShow">
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">客户地址</label>
78
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
79
+ condition="f_address like '%{}%'" placeholder='客户地址'>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">是否<br/>手持设备</label>
83
+ <v-select :value.sync="$parent.$parent.f_outlets"
84
+ :options="$parent.$parent.isPos"
85
+ :search="false"
86
+ placeholder='请选择'
87
+ condition="{}"
88
+ close-on-select></v-select>
89
+ </div>
90
+ <div class="col-sm-2 form-group">
91
+ <label class="font_normal_body">房产地址</label>
92
+ <input class="input_search" condition="f_house_address = '{}'"
93
+ placeholder='房产地址'
94
+ style="width:60%" type="text" v-model="model.f_house_address">
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">用途</label>
98
+ <input class="input_search" condition="f_property_usage = '{}'"
99
+ placeholder='用途'
100
+ style="width:60%" type="text" v-model="model.f_property_usage">
101
+ </div>
102
+ <div class="col-sm-2 form-group">
103
+ <label class="font_normal_body">房型</label>
104
+ <input class="input_search" condition="f_house_type = '{}'"
105
+ placeholder='房型'
106
+ style="width:60%" type="text" v-model="model.f_house_type">
107
+ </div>
108
+ <div class="col-sm-2 form-group">
109
+ <label class="font_normal_body">是否一户多表</label>
110
+ <input class="input_search" condition="f_is_multi_meter = '{}'"
111
+ placeholder='是否一户多表'
112
+ style="width:60%" type="text" v-model="model.f_is_multi_meter">
113
+ </div>
114
+ <div class="col-sm-2 form-group">
115
+ <label class="font_normal_body">关联ID</label>
116
+ <input class="input_search" condition="f_house_id = '{}'"
117
+ placeholder='关联ID'
118
+ style="width:60%" type="text" v-model="model.f_house_id">
119
+ </div>
120
+ </div>
121
+
122
+
123
+ </div>
124
+ </criteria>
125
+
126
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
127
+ <template partial='head'>
128
+ <tr>
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>
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
+ </tr>
163
+ </template>
164
+ <template partial='body'>
165
+ <td style="text-align: center;">
166
+ <nobr>
167
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_user_name}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_address}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_enable_reason}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_othereason}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_state}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_operate_date}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_operator}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_depname}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_outlets}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_orgname}}</nobr>
198
+ </td>
199
+ </template>
200
+ <template partial='foot'></template>
201
+ </data-grid>
202
+ </criteria-paged>
203
+
204
+ <table class="table-hover">
205
+ <tr style="position: relative" class="table-bordered">
206
+ <td
207
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
208
+ 汇总信息
209
+ </td>
210
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
211
+ </tr>
212
+ </table>
213
+ </div>
214
+ <div v-if="show">
215
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
216
+ </div>
217
+ <div v-if="showAttachment">
218
+ <attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_enable" @close="closeAttachment"></attachment-viewer>
219
+ </div>
220
+ </div>
221
+ </div>
222
+ </template>
223
+
224
+ <script>
225
+ import {HttpResetClass, PagedList} from 'vue-client'
226
+ import defaultPrint from '../config/DefaultPrint'
227
+ import exportConfig from '../config/exportConfig'
228
+ import AttachmentViewer from './AttachmentViewer.vue'
229
+
230
+ let readySomething = async function (self) {
231
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
232
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
233
+ // await self.$refs.paged.$refs.cri.search()
234
+ await self.$MagLoadParams.loadParam()
235
+
236
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
237
+ }
238
+ export default {
239
+ components: {
240
+ AttachmentViewer
241
+ },
242
+ data() {
243
+ return {
244
+ data: {},
245
+ model: new PagedList('rs/sql/enableQuery', 20, {}),
246
+ criteriaShow: false,
247
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
248
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
249
+ orgCondtionStr: '',
250
+ modelval: [],
251
+ printshow: false,
252
+ jurisdiction:this.$login.r,
253
+ all: false,
254
+ fields: {},
255
+ initres: {
256
+ org:[this.$login.f.orgid],
257
+ dep:[],
258
+ user:[],
259
+ },
260
+ residentialArea:[],
261
+ area:[],
262
+ f_outlets: [],
263
+ isPos: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
264
+ show:false,
265
+ showAttachment: false,
266
+ currentRow: null,
267
+ rowdata:{},
268
+ thead: '',
269
+ tfoot: '',
270
+ //合计数据
271
+ sumsmodel: {}
272
+ }
273
+ },
274
+ ready() {
275
+ this.getaddress()
276
+
277
+ readySomething(this).then(() => {
278
+ this.$emit('ready')
279
+ }).catch((error) => {
280
+ this.$emit('error', error)
281
+ })
282
+ },
283
+ methods: {
284
+ async getaddress(){
285
+ console.log('开始获取小区')
286
+ let HttpReset = new HttpResetClass()
287
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
288
+ data: {
289
+ condition: '1=1'
290
+ }
291
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
292
+ console.log('小区',data)
293
+ let house = []
294
+ for (let row of data.data){
295
+ console.log('开始保存小区')
296
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
297
+ }
298
+ this.residentialArea = house
299
+ },
300
+ search(){
301
+ this.$refs.paged.$refs.cri.search()
302
+ },
303
+ cancel() {
304
+ this.show = false
305
+ },
306
+ selfSearch(args) {
307
+ //小区查询条件
308
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
309
+ console.log("=====小区model绑定====",this.area)
310
+ if(this.area.length !== 0){
311
+ let str = JSON.stringify(this.area)
312
+ str = str.replace(/"/g,`'`)
313
+ str = str.replace(/\[/g,``)
314
+ str = str.replace(/\]/g,``)
315
+ console.log("=====小区model22222222222绑定====",str)
316
+ //查询多个小区时条件
317
+ args.condition += ` and f_residential_area in ( ${str} )`
318
+ }
319
+
320
+ // 手持设备查询条件
321
+ if(this.f_outlets[0] === '是'){
322
+ args.condition+= ` and f_outlets = '手持设备'`
323
+ } else if (this.f_outlets[0] === '否'){
324
+ args.condition+= ` and f_outlets is null`
325
+ }
326
+
327
+ args.condition = `${args.condition} ` + this.orgCondtionStr
328
+ this.model.search(args.condition, args.model)
329
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
330
+ },
331
+
332
+ clear() {
333
+ //清空部门和人员
334
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
335
+ //部门和人员变为全选
336
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
337
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
338
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
339
+ this.$refs.paged.$refs.cri.model[key] = ''
340
+ })
341
+ },
342
+ dealmsg(val) {
343
+ console.log('---------------dealmsg')
344
+ this.rowdata=val
345
+ this.show=true
346
+ val.model = this.model.model
347
+ this.$dispatch('deal-msg', val)
348
+ },
349
+ view(row) {
350
+ this.currentRow = row;
351
+ this.showAttachment = true;
352
+ },
353
+ closeAttachment() {
354
+ this.showAttachment = false;
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
+ print() {
381
+ this.$refs.print.PrintAsFile()
382
+ this.printshow = false
383
+ },
384
+ close() {
385
+ this.printshow = false
386
+ this.all = false
387
+ },
388
+ // 对选择的列进行排序
389
+ sortModelval() {
390
+ let sortModel = []
391
+ Object.keys(this.fields).forEach((key) => {
392
+ if (this.modelval.includes(key)) {
393
+ sortModel.push(key)
394
+ }
395
+ })
396
+ this.modelval = sortModel
397
+ console.log('选择的打印的字段', this.modelval)
398
+ }
399
+ },
400
+ watch: {
401
+ 'all'(val) {
402
+ if (val) {
403
+ this.modelval = this.bodyData
404
+ } else {
405
+ this.modelval = defaultPrint.config
406
+ this.put()
407
+ }
408
+ },
409
+ 'modelval.length'() {
410
+ this.put()
411
+ },
412
+ },
413
+ computed: {
414
+ getCondition() {
415
+ return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
416
+ },
417
+ getfield() {
418
+ return exportConfig.enableConfig
419
+ }
420
+ }
421
+ }
422
+ </script>