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