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,369 +1,399 @@
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="recordQuerys" 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>
82
-
83
-
84
- </div>
85
- </criteria>
86
-
87
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
88
- <template partial='head'>
89
- <tr>
90
- <th>
91
- <nobr>客户编号</nobr>
92
- </th>
93
- <th>
94
- <nobr>客户名称</nobr>
95
- </th>
96
- <th>
97
- <nobr>客户地址</nobr>
98
- </th>
99
- <th>
100
- <nobr>启用原因</nobr>
101
- </th>
102
- <th>
103
- <nobr>其他原因</nobr>
104
- </th>
105
- <th>
106
- <nobr>状态</nobr>
107
- </th>
108
- <th>
109
- <nobr>启用日期</nobr>
110
- </th>
111
- <th>
112
- <nobr>人员</nobr>
113
- </th>
114
- <th>
115
- <nobr>部门</nobr>
116
- </th>
117
- <th>
118
- <nobr>公司</nobr>
119
- </th>
120
- </tr>
121
- </template>
122
- <template partial='body'>
123
- <td style="text-align: center;">
124
- <nobr>
125
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
126
- </td>
127
- <td style="text-align: center;">
128
- <nobr>{{row.f_user_name}}</nobr>
129
- </td>
130
- <td style="text-align: center;">
131
- <nobr>{{row.f_address}}</nobr>
132
- </td>
133
- <td style="text-align: center;">
134
- <nobr>{{row.f_enable_reason}}</nobr>
135
- </td>
136
- <td style="text-align: center;">
137
- <nobr>{{row.f_othereason}}</nobr>
138
- </td>
139
- <td style="text-align: center;">
140
- <nobr>{{row.f_state}}</nobr>
141
- </td>
142
- <td style="text-align: center;">
143
- <nobr>{{row.f_operate_date}}</nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr>{{row.f_operator}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.f_depname}}</nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr>{{row.f_orgname}}</nobr>
153
- </td>
154
- </template>
155
- <template partial='foot'></template>
156
- </data-grid>
157
- </criteria-paged>
158
-
159
- <table class="table-hover">
160
- <tr style="position: relative" class="table-bordered">
161
- <td
162
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
163
- 汇总信息
164
- </td>
165
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
166
- </tr>
167
- </table>
168
- </div>
169
- <div v-if="show">
170
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
171
- </div>
172
- <div v-if="showAttachment">
173
- <attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_enable" @close="closeAttachment"></attachment-viewer>
174
- </div>
175
- </div>
176
- </div>
177
- </template>
178
-
179
- <script>
180
- import {HttpResetClass, PagedList} from 'vue-client'
181
- import defaultPrint from '../config/DefaultPrint'
182
- import exportConfig from '../config/exportConfig'
183
- import AttachmentViewer from './AttachmentViewer.vue'
184
-
185
- let readySomething = async function (self) {
186
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
187
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
188
- // await self.$refs.paged.$refs.cri.search()
189
- await self.$MagLoadParams.loadParam()
190
-
191
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
192
- }
193
- export default {
194
- components: {
195
- AttachmentViewer
196
- },
197
- data() {
198
- return {
199
- data: {},
200
- model: new PagedList('rs/sql/recordQuerys', 20, {}),
201
- criteriaShow: false,
202
- headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
203
- bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
204
- orgCondtionStr: '',
205
- modelval: [],
206
- printshow: false,
207
- jurisdiction:this.$login.r,
208
- all: false,
209
- fields: {},
210
- initres: {
211
- org:[this.$login.f.orgid],
212
- dep:[],
213
- user:[],
214
- },
215
- residentialArea:[],
216
- area:[],
217
- show:false,
218
- showAttachment: false,
219
- currentRow: null,
220
- rowdata:{},
221
- thead: '',
222
- tfoot: '',
223
- //合计数据
224
- sumsmodel: {}
225
- }
226
- },
227
- ready() {
228
- this.getaddress()
229
-
230
- readySomething(this).then(() => {
231
- this.$emit('ready')
232
- }).catch((error) => {
233
- this.$emit('error', error)
234
- })
235
- },
236
- methods: {
237
- view(row) {
238
- this.currentRow = row;
239
- this.showAttachment = true;
240
- },
241
- closeAttachment() {
242
- this.showAttachment = false;
243
- },
244
- async getaddress(){
245
- console.log('开始获取小区')
246
- let HttpReset = new HttpResetClass()
247
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
248
- data: {
249
- condition: '1=1'
250
- }
251
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
252
- console.log('小区',data)
253
- let house = []
254
- for (let row of data.data){
255
- console.log('开始保存小区')
256
- house.push({label: row.f_residential_area, value: row.f_residential_area})
257
- }
258
- this.residentialArea = house
259
- },
260
- search(){
261
- this.$refs.paged.$refs.cri.search()
262
- },
263
- cancel() {
264
- this.show = false
265
- },
266
- selfSearch(args) {
267
- //小区查询条件
268
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
269
- console.log("=====小区model绑定====",this.area)
270
- if(this.area.length !== 0){
271
- let str = JSON.stringify(this.area)
272
- str = str.replace(/"/g,`'`)
273
- str = str.replace(/\[/g,``)
274
- str = str.replace(/\]/g,``)
275
- console.log("=====小区model22222222222绑定====",str)
276
- //查询多个小区时条件
277
- args.condition += ` and f_residential_area in ( ${str} )`
278
- }
279
-
280
-
281
- args.condition = `${args.condition} ` + this.orgCondtionStr
282
- this.model.search(args.condition, args.model)
283
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
284
- },
285
-
286
- clear() {
287
- //清空部门和人员
288
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
289
- //部门和人员变为全选
290
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
291
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
292
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
293
- this.$refs.paged.$refs.cri.model[key] = ''
294
- })
295
- },
296
- dealmsg(val) {
297
- console.log('---------------dealmsg')
298
- this.rowdata=val
299
- this.show=true
300
- val.model = this.model.model
301
- this.$dispatch('deal-msg', val)
302
- },
303
- hidden() {
304
- this.criteriaShow = !this.criteriaShow
305
- },
306
- getRes(obj) {
307
- this.orgCondtionStr = obj
308
- },
309
- stamp() {
310
- this.all = false
311
- //默认选择要打印的列
312
- this.modelval = defaultPrint.config
313
- this.fields = this.getfield
314
- console.log('所有打印字段', this.fields)
315
- this.printshow = true
316
- this.put()
317
- },
318
- put() {
319
- // 对Modelval进行排序
320
- this.sortModelval()
321
- this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
322
- for (let key of this.modelval) {
323
- this.thead += '<th>' + this.fields[key] + '</th>'
324
- }
325
- this.thead += '</tr>'
326
- },
327
- print() {
328
- this.$refs.print.PrintAsFile()
329
- this.printshow = false
330
- },
331
- close() {
332
- this.printshow = false
333
- this.all = false
334
- },
335
- // 对选择的列进行排序
336
- sortModelval() {
337
- let sortModel = []
338
- Object.keys(this.fields).forEach((key) => {
339
- if (this.modelval.includes(key)) {
340
- sortModel.push(key)
341
- }
342
- })
343
- this.modelval = sortModel
344
- console.log('选择的打印的字段', this.modelval)
345
- }
346
- },
347
- watch: {
348
- 'all'(val) {
349
- if (val) {
350
- this.modelval = this.bodyData
351
- } else {
352
- this.modelval = defaultPrint.config
353
- this.put()
354
- }
355
- },
356
- 'modelval.length'() {
357
- this.put()
358
- },
359
- },
360
- computed: {
361
- getCondition() {
362
- return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
363
- },
364
- getfield() {
365
- return exportConfig.enableConfig
366
- }
367
- }
368
- }
369
- </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="recordQuerys" 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">房产地址</label>
83
+ <input class="input_search" condition="f_house_address = '{}'"
84
+ placeholder='房产地址'
85
+ style="width:60%" type="text" v-model="model.f_house_address">
86
+ </div>
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">用途</label>
89
+ <input class="input_search" condition="f_property_usage = '{}'"
90
+ placeholder='用途'
91
+ style="width:60%" type="text" v-model="model.f_property_usage">
92
+ </div>
93
+ <div class="col-sm-2 form-group">
94
+ <label class="font_normal_body">房型</label>
95
+ <input class="input_search" condition="f_house_type = '{}'"
96
+ placeholder='房型'
97
+ style="width:60%" type="text" v-model="model.f_house_type">
98
+ </div>
99
+ <div class="col-sm-2 form-group">
100
+ <label class="font_normal_body">是否一户多表</label>
101
+ <input class="input_search" condition="f_is_multi_meter = '{}'"
102
+ placeholder='是否一户多表'
103
+ style="width:60%" type="text" v-model="model.f_is_multi_meter">
104
+ </div>
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">关联ID</label>
107
+ <input class="input_search" condition="f_house_id = '{}'"
108
+ placeholder='关联ID'
109
+ style="width:60%" type="text" v-model="model.f_house_id">
110
+ </div>
111
+ </div>
112
+
113
+
114
+ </div>
115
+ </criteria>
116
+
117
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
118
+ <template partial='head'>
119
+ <tr>
120
+ <th>
121
+ <nobr>客户编号</nobr>
122
+ </th>
123
+ <th>
124
+ <nobr>客户名称</nobr>
125
+ </th>
126
+ <th>
127
+ <nobr>客户地址</nobr>
128
+ </th>
129
+ <th>
130
+ <nobr>启用原因</nobr>
131
+ </th>
132
+ <th>
133
+ <nobr>其他原因</nobr>
134
+ </th>
135
+ <th>
136
+ <nobr>状态</nobr>
137
+ </th>
138
+ <th>
139
+ <nobr>启用日期</nobr>
140
+ </th>
141
+ <th>
142
+ <nobr>人员</nobr>
143
+ </th>
144
+ <th>
145
+ <nobr>部门</nobr>
146
+ </th>
147
+ <th>
148
+ <nobr>公司</nobr>
149
+ </th>
150
+ </tr>
151
+ </template>
152
+ <template partial='body'>
153
+ <td style="text-align: center;">
154
+ <nobr>
155
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.f_user_name}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_address}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_enable_reason}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_othereason}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_state}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_operate_date}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_operator}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_depname}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_orgname}}</nobr>
183
+ </td>
184
+ </template>
185
+ <template partial='foot'></template>
186
+ </data-grid>
187
+ </criteria-paged>
188
+
189
+ <table class="table-hover">
190
+ <tr style="position: relative" class="table-bordered">
191
+ <td
192
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
193
+ 汇总信息
194
+ </td>
195
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计:&emsp;{{sumsmodel.f_pregas}}</td>
196
+ </tr>
197
+ </table>
198
+ </div>
199
+ <div v-if="show">
200
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
201
+ </div>
202
+ <div v-if="showAttachment">
203
+ <attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_enable" @close="closeAttachment"></attachment-viewer>
204
+ </div>
205
+ </div>
206
+ </div>
207
+ </template>
208
+
209
+ <script>
210
+ import {HttpResetClass, PagedList} from 'vue-client'
211
+ import defaultPrint from '../config/DefaultPrint'
212
+ import exportConfig from '../config/exportConfig'
213
+ import AttachmentViewer from './AttachmentViewer.vue'
214
+
215
+ let readySomething = async function (self) {
216
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
217
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
218
+ // await self.$refs.paged.$refs.cri.search()
219
+ await self.$MagLoadParams.loadParam()
220
+
221
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
222
+ }
223
+ export default {
224
+ components: {
225
+ AttachmentViewer
226
+ },
227
+ data() {
228
+ return {
229
+ data: {},
230
+ model: new PagedList('rs/sql/recordQuerys', 20, {}),
231
+ criteriaShow: false,
232
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
233
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
234
+ orgCondtionStr: '',
235
+ modelval: [],
236
+ printshow: false,
237
+ jurisdiction:this.$login.r,
238
+ all: false,
239
+ fields: {},
240
+ initres: {
241
+ org:[this.$login.f.orgid],
242
+ dep:[],
243
+ user:[],
244
+ },
245
+ residentialArea:[],
246
+ area:[],
247
+ show:false,
248
+ showAttachment: false,
249
+ currentRow: null,
250
+ rowdata:{},
251
+ thead: '',
252
+ tfoot: '',
253
+ //合计数据
254
+ sumsmodel: {}
255
+ }
256
+ },
257
+ ready() {
258
+ this.getaddress()
259
+
260
+ readySomething(this).then(() => {
261
+ this.$emit('ready')
262
+ }).catch((error) => {
263
+ this.$emit('error', error)
264
+ })
265
+ },
266
+ methods: {
267
+ view(row) {
268
+ this.currentRow = row;
269
+ this.showAttachment = true;
270
+ },
271
+ closeAttachment() {
272
+ this.showAttachment = false;
273
+ },
274
+ async getaddress(){
275
+ console.log('开始获取小区')
276
+ let HttpReset = new HttpResetClass()
277
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
278
+ data: {
279
+ condition: '1=1'
280
+ }
281
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
282
+ console.log('小区',data)
283
+ let house = []
284
+ for (let row of data.data){
285
+ console.log('开始保存小区')
286
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
287
+ }
288
+ this.residentialArea = house
289
+ },
290
+ search(){
291
+ this.$refs.paged.$refs.cri.search()
292
+ },
293
+ cancel() {
294
+ this.show = false
295
+ },
296
+ selfSearch(args) {
297
+ //小区查询条件
298
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
299
+ console.log("=====小区model绑定====",this.area)
300
+ if(this.area.length !== 0){
301
+ let str = JSON.stringify(this.area)
302
+ str = str.replace(/"/g,`'`)
303
+ str = str.replace(/\[/g,``)
304
+ str = str.replace(/\]/g,``)
305
+ console.log("=====小区model22222222222绑定====",str)
306
+ //查询多个小区时条件
307
+ args.condition += ` and f_residential_area in ( ${str} )`
308
+ }
309
+
310
+
311
+ args.condition = `${args.condition} ` + this.orgCondtionStr
312
+ this.model.search(args.condition, args.model)
313
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
314
+ },
315
+
316
+ clear() {
317
+ //清空部门和人员
318
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
319
+ //部门和人员变为全选
320
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
321
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
322
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
323
+ this.$refs.paged.$refs.cri.model[key] = ''
324
+ })
325
+ },
326
+ dealmsg(val) {
327
+ console.log('---------------dealmsg')
328
+ this.rowdata=val
329
+ this.show=true
330
+ val.model = this.model.model
331
+ this.$dispatch('deal-msg', val)
332
+ },
333
+ hidden() {
334
+ this.criteriaShow = !this.criteriaShow
335
+ },
336
+ getRes(obj) {
337
+ this.orgCondtionStr = obj
338
+ },
339
+ stamp() {
340
+ this.all = false
341
+ //默认选择要打印的列
342
+ this.modelval = defaultPrint.config
343
+ this.fields = this.getfield
344
+ console.log('所有打印字段', this.fields)
345
+ this.printshow = true
346
+ this.put()
347
+ },
348
+ put() {
349
+ // 对Modelval进行排序
350
+ this.sortModelval()
351
+ this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
352
+ for (let key of this.modelval) {
353
+ this.thead += '<th>' + this.fields[key] + '</th>'
354
+ }
355
+ this.thead += '</tr>'
356
+ },
357
+ print() {
358
+ this.$refs.print.PrintAsFile()
359
+ this.printshow = false
360
+ },
361
+ close() {
362
+ this.printshow = false
363
+ this.all = false
364
+ },
365
+ // 对选择的列进行排序
366
+ sortModelval() {
367
+ let sortModel = []
368
+ Object.keys(this.fields).forEach((key) => {
369
+ if (this.modelval.includes(key)) {
370
+ sortModel.push(key)
371
+ }
372
+ })
373
+ this.modelval = sortModel
374
+ console.log('选择的打印的字段', this.modelval)
375
+ }
376
+ },
377
+ watch: {
378
+ 'all'(val) {
379
+ if (val) {
380
+ this.modelval = this.bodyData
381
+ } else {
382
+ this.modelval = defaultPrint.config
383
+ this.put()
384
+ }
385
+ },
386
+ 'modelval.length'() {
387
+ this.put()
388
+ },
389
+ },
390
+ computed: {
391
+ getCondition() {
392
+ return {condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr}
393
+ },
394
+ getfield() {
395
+ return exportConfig.enableConfig
396
+ }
397
+ }
398
+ }
399
+ </script>