manage-client-xy 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 (23) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/AreaGeneralQuery.vue +715 -715
  4. package/src/components/sale/businessquery/CMHGasQuery.vue +441 -441
  5. package/src/components/sale/businessquery/ChangeMeterQuery.vue +659 -659
  6. package/src/components/sale/businessquery/ChangeUserQuery.vue +403 -403
  7. package/src/components/sale/businessquery/ChargeQuery.vue +1027 -1027
  8. package/src/components/sale/businessquery/DisableQuery.vue +433 -433
  9. package/src/components/sale/businessquery/EnableQuery.vue +422 -422
  10. package/src/components/sale/businessquery/FMYGasQuery.vue +440 -440
  11. package/src/components/sale/businessquery/FillCardQuery.vue +522 -522
  12. package/src/components/sale/businessquery/FillGasQuery.vue +506 -506
  13. package/src/components/sale/businessquery/HandplanQuery.vue +728 -728
  14. package/src/components/sale/businessquery/LogQuery.vue +301 -301
  15. package/src/components/sale/businessquery/NewAccountQuery.vue +518 -518
  16. package/src/components/sale/businessquery/OtherChargeQuery.vue +432 -432
  17. package/src/components/sale/businessquery/RecordQuery.vue +399 -399
  18. package/src/components/sale/businessquery/ResidentialQuery.vue +417 -417
  19. package/src/components/sale/businessquery/ReverseQuery.vue +459 -459
  20. package/src/components/sale/businessquery/SellingHand.vue +408 -408
  21. package/src/components/sale/businessquery/TransferQuery.vue +589 -589
  22. package/src/components/sale/businessquery/cancelAccountQuery.vue +518 -518
  23. package/src/components/sale/filesquery/UserQuery.vue +796 -796
@@ -1,440 +1,440 @@
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
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-inline auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">客户编号</label>
11
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
12
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
13
- </div>
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">客户名称</label>
16
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
17
- condition="f_user_name like '%{}%'" placeholder="客户名称">
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="startDate" class="font_normal_body">开始日期</label>
21
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
22
- v-model="model.startDate"
23
- :value.sync="model.startDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- condition="f_input_date >= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label for="endDate" class="font_normal_body">结束日期</label>
31
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
32
- v-model="model.endDate"
33
- :value.sync="model.endDate"
34
- :format="'yyyy-MM-dd HH:mm:ss'"
35
- :show-reset-button="true"
36
- condition="f_input_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
37
- </datepicker>
38
- </div>
39
- <div class="span" style="float:right;">
40
- <button class="button_search button_spacing" @click="search()">查询</button>
41
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
- <export-excel :data="$parent.$parent.getCondition"
43
- :field="$parent.$parent.getfield"
44
- sqlurl="rs/logic/exportfile" sql-name="FMYgasQuery" template-name='非民用用气查询导出'
45
- v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
46
- :choose-col="true"></export-excel>
47
- <print-data :model="$parent.model" :field="$parent.$parent.getfield"
48
- :defaultfield="$parent.$parent.defaultfield" print-name="非民用用气查询打印"
49
- ></print-data>
50
-
51
- <div style="float: right" class="button_spacing"
52
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
53
- @click="$parent.$parent.hidden()"></div>
54
- </div>
55
- </div>
56
- <div class="row" v-show="$parent.$parent.criteriaShow">
57
- <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
58
- <div class="col-sm-2 form-group">
59
- <label class="font_normal_body">客户地址</label>
60
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
61
- condition="f_address like '%{}%'" placeholder='客户地址'>
62
- </div>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">客户表号</label>
65
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
66
- condition="f_meternumber like '%{}%'" placeholder='客户表号'>
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label class="font_normal_body">气表类型</label>
70
- <v-select :value.sync="model.f_meter_type"
71
- v-model="model.f_meter_type"
72
- :options='$parent.$parent.metertype' placeholder='请选择'
73
- condition="f_meter_type like '%{}%'"
74
- close-on-select></v-select>
75
- </div>
76
- <div class="col-sm-2 form-group">
77
- <label class="font_normal_body">用户分类</label>
78
- <v-select :value.sync="model.f_user_type"
79
- @change="$parent.$parent.userTypeChange"
80
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
81
- condition="f_user_type = '{}'"
82
- close-on-select></v-select>
83
- </div>
84
- <div class="col-sm-2 form-group">
85
- <label class="font_normal_body">用户类型</label>
86
- <v-select :value.sync="model.f_user_mold"
87
- @change="$parent.$parent.userMoldChange"
88
- :options='$parent.$parent.usermold' placeholder='请选择' v-model="model.f_user_mold"
89
- close-on-select></v-select>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="font_normal_body">用气性质</label>
93
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
94
- :options='$parent.$parent.gasproperties' placeholder='请选择'
95
- condition="f_gasproperties = '{}'"
96
- close-on-select></v-select>
97
- </div>
98
- <!-- <div class="col-sm-2 form-group">-->
99
- <!-- <label for="f_area_id" class="font_normal_body">小区编码</label>-->
100
- <!-- <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"-->
101
- <!-- condition="f_area_id = '{}'" placeholder='小区编码'>-->
102
- <!-- </div>-->
103
- <div class="col-sm-2 form-group">
104
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
105
- <v-select :value.sync="model.f_residential_area"
106
- class="select_list select"
107
- enter-push
108
- multiple="true"
109
- v-model="model.f_residential_area"
110
- style="width: 60%"
111
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
112
- close-on-select>
113
- </v-select>
114
- </div>
115
- <div class="col-sm-2 form-group">
116
- <label class="font_normal_body">房产地址</label>
117
- <input class="input_search" condition="f_house_address = '{}'"
118
- placeholder='房产地址'
119
- style="width:60%" type="text" v-model="model.f_house_address">
120
- </div>
121
- <div class="col-sm-2 form-group">
122
- <label class="font_normal_body">用途</label>
123
- <input class="input_search" condition="f_property_usage = '{}'"
124
- placeholder='用途'
125
- style="width:60%" type="text" v-model="model.f_property_usage">
126
- </div>
127
- <div class="col-sm-2 form-group">
128
- <label class="font_normal_body">房型</label>
129
- <input class="input_search" condition="f_house_type = '{}'"
130
- placeholder='房型'
131
- style="width:60%" type="text" v-model="model.f_house_type">
132
- </div>
133
- <div class="col-sm-2 form-group">
134
- <label class="font_normal_body">是否一户多表</label>
135
- <input class="input_search" condition="f_is_multi_meter = '{}'"
136
- placeholder='是否一户多表'
137
- style="width:60%" type="text" v-model="model.f_is_multi_meter">
138
- </div>
139
- <div class="col-sm-2 form-group">
140
- <label class="font_normal_body">关联ID</label>
141
- <input class="input_search" condition="f_house_id = '{}'"
142
- placeholder='关联ID'
143
- style="width:60%" type="text" v-model="model.f_house_id">
144
- </div>
145
- </div>
146
- </div>
147
- </criteria>
148
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
149
- <template partial='head'>
150
- <tr>
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
- <th>
167
- <nobr>气表类型</nobr>
168
- </th>
169
- <th>
170
- <nobr>用气量</nobr>
171
- </th>
172
- <th>
173
- <nobr>用气金额</nobr>
174
- </th>
175
- <th>
176
- <nobr>用户类型</nobr>
177
- </th>
178
- <th>
179
- <nobr>用气性质</nobr>
180
- </th>
181
- </tr>
182
- </template>
183
- <template partial='body'>
184
- <td style="text-align: center;">
185
- <nobr>
186
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{ row.f_userinfo_code }}</a></span></nobr>
187
- </td>
188
- <td style="text-align: center;">
189
- <nobr>{{ row.f_user_name }}</nobr>
190
- </td>
191
- <td style="text-align: center;">
192
- <nobr>{{ row.f_address }}</nobr>
193
- </td>
194
- <td style="text-align: center;">
195
- <nobr>{{ row.f_meternumber }}</nobr>
196
- </td>
197
- <td style="text-align: center;">
198
- <nobr>{{ row.f_meter_brand }}</nobr>
199
- </td>
200
- <td style="text-align: center;">
201
- <nobr>{{ row.f_meter_type }}</nobr>
202
- </td>
203
- <td style="text-align: center;">
204
- <nobr>{{ row.yongqiliang }}</nobr>
205
- </td>
206
- <td style="text-align: center;">
207
- <nobr>{{ row.yongqijine }}</nobr>
208
- </td>
209
- <td style="text-align: center;">
210
- <nobr>{{ row.f_user_type }}</nobr>
211
- </td>
212
- <td style="text-align: center;">
213
- <nobr>{{ row.f_gasproperties }}</nobr>
214
- </td>
215
- </template>
216
- <template partial='foot'></template>
217
- </data-grid>
218
- </criteria-paged>
219
- </div>
220
- </div>
221
-
222
- </div>
223
- </template>
224
- <script>
225
- import {HttpResetClass, PagedList} from 'vue-client'
226
- import defaultPrint from '../config/DefaultPrint'
227
- import exportConfig from '../config/exportConfig'
228
-
229
- let readySomething = async function (self) {
230
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
231
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
232
- await self.$MagLoadParams.loadParam()
233
- self.initParams()
234
- }
235
- export default {
236
- title: '材料列表管理',
237
- name: 'AddMaterial',
238
- data() {
239
- return {
240
-
241
- model: new PagedList('rs/sql/FMYgasQuery', 30, {}),
242
- initres: {
243
- org: [this.$login.f.orgid],
244
- dep: [],
245
- user: [],
246
- },
247
- gasproperties: [],
248
- usermold: [],
249
- show: false,
250
- rowdata: {},
251
- criteriaShow: false,
252
- jurisdiction:this.$login.r,
253
- orgCondtionStr: '',
254
- modelval: [],
255
- printshow: false,
256
- all: false,
257
- fields: {},
258
- thead: '',
259
- tfoot: '',
260
- residentialArea:[],
261
- area:[],
262
- // 下拉框
263
-
264
- //合计数据
265
- sumsmodel: {},
266
- defaultfield: [],
267
- metertype: [{label: '全部', value: ''}, {label: '卡表', value: '卡表'}, {label: '机表', value: '机表'}]
268
- }
269
- },
270
- ready() {
271
- this.getaddress()
272
- readySomething(this)
273
- },
274
- methods: {
275
- async getaddress(){
276
- console.log('开始获取小区')
277
- let HttpReset = new HttpResetClass()
278
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
279
- data: {
280
- condition: '1=1'
281
- }
282
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
283
- console.log('小区',data)
284
- let house = []
285
- for (let row of data.data){
286
- console.log('开始保存小区')
287
- house.push({label: row.f_residential_area, value: row.f_residential_area})
288
- }
289
- this.residentialArea = house
290
- },
291
- userTypeChange () {
292
- this.usermold=[]
293
- this.f_gasproperties=[]
294
- if(this.$refs.paged.$refs.cri.model !== null) {
295
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
296
- this.$refs.paged.$refs.cri.model.f_user_mold=''
297
- this.usermold = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
298
- }
299
- else{
300
- this.usermold =[{label: '全部', value: ''}]
301
- }
302
- },
303
- userMoldChange () {
304
- this.gasproperties=[]
305
- if(this.$refs.paged.$refs.cri.model !==null) {
306
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
307
- if (this.$refs.paged.$refs.cri.model.f_user_mold[0] ==='居民'){
308
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0] + this.$refs.paged.$refs.cri.model.f_user_mold[0])
309
- return
310
- }
311
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_mold[0])
312
- }
313
- else{
314
- this.gasproperties =[{label: '全部', value: ''}]
315
- }
316
- },
317
- search() {
318
- this.$refs.paged.$refs.cri.search()
319
- },
320
- cancel() {
321
- this.show = false
322
- },
323
- selfSearch(args) {
324
- //小区查询条件
325
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
326
- console.log("=====小区model绑定====",this.area)
327
- if(this.area.length !== 0){
328
- let str = JSON.stringify(this.area)
329
- str = str.replace(/"/g,`'`)
330
- str = str.replace(/\[/g,``)
331
- str = str.replace(/\]/g,``)
332
- console.log("=====小区model22222222222绑定====",str)
333
- //查询多个小区时条件
334
- args.condition += ` and f_residential_area in ( ${str} )`
335
- }
336
-
337
- args.condition = `${args.condition} and f_user_type= '非民用' ` + this.orgCondtionStr
338
- this.model.search(args.condition, args.model)
339
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
340
- },
341
- clear() {
342
- //清空部门和人员
343
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
344
- //部门和人员变为全选
345
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
346
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
347
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
348
- this.$refs.paged.$refs.cri.model[key] = ''
349
- })
350
- },
351
- show() {
352
- this.criteriaShow = true
353
- },
354
- hidden() {
355
- this.criteriaShow = !this.criteriaShow
356
- },
357
- getRes(obj) {
358
- this.orgCondtionStr = obj
359
- },
360
- stamp() {
361
- this.all = false
362
- //默认选择要打印的列
363
- this.modelval = defaultPrint.config
364
- this.fields = this.getfield
365
- console.log('所有打印字段', this.fields)
366
- this.printshow = true
367
- this.put()
368
- },
369
- put() {
370
- // 对Modelval进行排序
371
- this.sortModelval()
372
- this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
373
- for (let key of this.modelval) {
374
- this.thead += '<th>' + this.fields[key] + '</th>'
375
- }
376
- this.thead += '</tr>'
377
- },
378
- print() {
379
- this.$refs.print.PrintAsFile()
380
- this.printshow = false
381
- },
382
- dealmsg(val) {
383
- console.log('---------------dealmsg')
384
- this.rowdata = val
385
- this.show = true
386
- val.model = this.model.model
387
- this.$dispatch('deal-msg', val)
388
- },
389
- close() {
390
- this.printshow = false
391
- this.all = false
392
- },
393
- // 对选择的列进行排序
394
- sortModelval() {
395
- let sortModel = []
396
- Object.keys(this.fields).forEach((key) => {
397
- if (this.modelval.includes(key)) {
398
- sortModel.push(key)
399
- }
400
- })
401
- this.modelval = sortModel
402
- console.log('选择的打印的字段', this.modelval)
403
- }
404
-
405
- },
406
- computed: {
407
- getCondition() {
408
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
409
- },
410
- getfield() {
411
- return exportConfig.fmygasConfig
412
- },
413
- usertypes() {
414
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
415
- },
416
- },
417
- events: {},
418
- watch: {
419
- 'all'(val) {
420
- if (val) {
421
- this.modelval = this.bodyData
422
- } else {
423
- this.modelval = defaultPrint.config
424
- this.put()
425
- }
426
- },
427
- 'modelval.length'() {
428
- this.put()
429
- },
430
- }
431
- }
432
- </script>
433
- <style>
434
- .datapanel {
435
- color: #333;
436
- background-color: white;
437
- padding: 10px 20px;
438
- border-radius: 15px;
439
- }
440
- </style>
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
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-inline auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">客户编号</label>
11
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
12
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
13
+ </div>
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户名称</label>
16
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
17
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="startDate" class="font_normal_body">开始日期</label>
21
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
22
+ v-model="model.startDate"
23
+ :value.sync="model.startDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_input_date >= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label for="endDate" class="font_normal_body">结束日期</label>
31
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
32
+ v-model="model.endDate"
33
+ :value.sync="model.endDate"
34
+ :format="'yyyy-MM-dd HH:mm:ss'"
35
+ :show-reset-button="true"
36
+ condition="f_input_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
37
+ </datepicker>
38
+ </div>
39
+ <div class="span" style="float:right;">
40
+ <button class="button_search button_spacing" @click="search()">查询</button>
41
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
+ <export-excel :data="$parent.$parent.getCondition"
43
+ :field="$parent.$parent.getfield"
44
+ sqlurl="rs/logic/exportfile" sql-name="FMYgasQuery" template-name='非民用用气查询导出'
45
+ v-if ="$parent.$parent.jurisdiction.includes('excel导出')"
46
+ :choose-col="true"></export-excel>
47
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
48
+ :defaultfield="$parent.$parent.defaultfield" print-name="非民用用气查询打印"
49
+ ></print-data>
50
+
51
+ <div style="float: right" class="button_spacing"
52
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
53
+ @click="$parent.$parent.hidden()"></div>
54
+ </div>
55
+ </div>
56
+ <div class="row" v-show="$parent.$parent.criteriaShow">
57
+ <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">客户地址</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
61
+ condition="f_address like '%{}%'" placeholder='客户地址'>
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">客户表号</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
66
+ condition="f_meternumber like '%{}%'" placeholder='客户表号'>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">气表类型</label>
70
+ <v-select :value.sync="model.f_meter_type"
71
+ v-model="model.f_meter_type"
72
+ :options='$parent.$parent.metertype' placeholder='请选择'
73
+ condition="f_meter_type like '%{}%'"
74
+ close-on-select></v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">用户分类</label>
78
+ <v-select :value.sync="model.f_user_type"
79
+ @change="$parent.$parent.userTypeChange"
80
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
81
+ condition="f_user_type = '{}'"
82
+ close-on-select></v-select>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">用户类型</label>
86
+ <v-select :value.sync="model.f_user_mold"
87
+ @change="$parent.$parent.userMoldChange"
88
+ :options='$parent.$parent.usermold' placeholder='请选择' v-model="model.f_user_mold"
89
+ close-on-select></v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">用气性质</label>
93
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
94
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
95
+ condition="f_gasproperties = '{}'"
96
+ close-on-select></v-select>
97
+ </div>
98
+ <!-- <div class="col-sm-2 form-group">-->
99
+ <!-- <label for="f_area_id" class="font_normal_body">小区编码</label>-->
100
+ <!-- <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"-->
101
+ <!-- condition="f_area_id = '{}'" placeholder='小区编码'>-->
102
+ <!-- </div>-->
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
105
+ <v-select :value.sync="model.f_residential_area"
106
+ class="select_list select"
107
+ enter-push
108
+ multiple="true"
109
+ v-model="model.f_residential_area"
110
+ style="width: 60%"
111
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
112
+ close-on-select>
113
+ </v-select>
114
+ </div>
115
+ <div class="col-sm-2 form-group">
116
+ <label class="font_normal_body">房产地址</label>
117
+ <input class="input_search" condition="f_house_address = '{}'"
118
+ placeholder='房产地址'
119
+ style="width:60%" type="text" v-model="model.f_house_address">
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">用途</label>
123
+ <input class="input_search" condition="f_property_usage = '{}'"
124
+ placeholder='用途'
125
+ style="width:60%" type="text" v-model="model.f_property_usage">
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">房型</label>
129
+ <input class="input_search" condition="f_house_type = '{}'"
130
+ placeholder='房型'
131
+ style="width:60%" type="text" v-model="model.f_house_type">
132
+ </div>
133
+ <div class="col-sm-2 form-group">
134
+ <label class="font_normal_body">是否一户多表</label>
135
+ <input class="input_search" condition="f_is_multi_meter = '{}'"
136
+ placeholder='是否一户多表'
137
+ style="width:60%" type="text" v-model="model.f_is_multi_meter">
138
+ </div>
139
+ <div class="col-sm-2 form-group">
140
+ <label class="font_normal_body">关联ID</label>
141
+ <input class="input_search" condition="f_house_id = '{}'"
142
+ placeholder='关联ID'
143
+ style="width:60%" type="text" v-model="model.f_house_id">
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </criteria>
148
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
149
+ <template partial='head'>
150
+ <tr>
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
+ <th>
167
+ <nobr>气表类型</nobr>
168
+ </th>
169
+ <th>
170
+ <nobr>用气量</nobr>
171
+ </th>
172
+ <th>
173
+ <nobr>用气金额</nobr>
174
+ </th>
175
+ <th>
176
+ <nobr>用户类型</nobr>
177
+ </th>
178
+ <th>
179
+ <nobr>用气性质</nobr>
180
+ </th>
181
+ </tr>
182
+ </template>
183
+ <template partial='body'>
184
+ <td style="text-align: center;">
185
+ <nobr>
186
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{ row.f_userinfo_code }}</a></span></nobr>
187
+ </td>
188
+ <td style="text-align: center;">
189
+ <nobr>{{ row.f_user_name }}</nobr>
190
+ </td>
191
+ <td style="text-align: center;">
192
+ <nobr>{{ row.f_address }}</nobr>
193
+ </td>
194
+ <td style="text-align: center;">
195
+ <nobr>{{ row.f_meternumber }}</nobr>
196
+ </td>
197
+ <td style="text-align: center;">
198
+ <nobr>{{ row.f_meter_brand }}</nobr>
199
+ </td>
200
+ <td style="text-align: center;">
201
+ <nobr>{{ row.f_meter_type }}</nobr>
202
+ </td>
203
+ <td style="text-align: center;">
204
+ <nobr>{{ row.yongqiliang }}</nobr>
205
+ </td>
206
+ <td style="text-align: center;">
207
+ <nobr>{{ row.yongqijine }}</nobr>
208
+ </td>
209
+ <td style="text-align: center;">
210
+ <nobr>{{ row.f_user_type }}</nobr>
211
+ </td>
212
+ <td style="text-align: center;">
213
+ <nobr>{{ row.f_gasproperties }}</nobr>
214
+ </td>
215
+ </template>
216
+ <template partial='foot'></template>
217
+ </data-grid>
218
+ </criteria-paged>
219
+ </div>
220
+ </div>
221
+
222
+ </div>
223
+ </template>
224
+ <script>
225
+ import {HttpResetClass, PagedList} from 'vue-client'
226
+ import defaultPrint from '../config/DefaultPrint'
227
+ import exportConfig from '../config/exportConfig'
228
+
229
+ let readySomething = async function (self) {
230
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
231
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
232
+ await self.$MagLoadParams.loadParam()
233
+ self.initParams()
234
+ }
235
+ export default {
236
+ title: '材料列表管理',
237
+ name: 'AddMaterial',
238
+ data() {
239
+ return {
240
+
241
+ model: new PagedList('rs/sql/FMYgasQuery', 30, {}),
242
+ initres: {
243
+ org: [this.$login.f.orgid],
244
+ dep: [],
245
+ user: [],
246
+ },
247
+ gasproperties: [],
248
+ usermold: [],
249
+ show: false,
250
+ rowdata: {},
251
+ criteriaShow: false,
252
+ jurisdiction:this.$login.r,
253
+ orgCondtionStr: '',
254
+ modelval: [],
255
+ printshow: false,
256
+ all: false,
257
+ fields: {},
258
+ thead: '',
259
+ tfoot: '',
260
+ residentialArea:[],
261
+ area:[],
262
+ // 下拉框
263
+
264
+ //合计数据
265
+ sumsmodel: {},
266
+ defaultfield: [],
267
+ metertype: [{label: '全部', value: ''}, {label: '卡表', value: '卡表'}, {label: '机表', value: '机表'}]
268
+ }
269
+ },
270
+ ready() {
271
+ this.getaddress()
272
+ readySomething(this)
273
+ },
274
+ methods: {
275
+ async getaddress(){
276
+ console.log('开始获取小区')
277
+ let HttpReset = new HttpResetClass()
278
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
279
+ data: {
280
+ condition: '1=1'
281
+ }
282
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
283
+ console.log('小区',data)
284
+ let house = []
285
+ for (let row of data.data){
286
+ console.log('开始保存小区')
287
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
288
+ }
289
+ this.residentialArea = house
290
+ },
291
+ userTypeChange () {
292
+ this.usermold=[]
293
+ this.f_gasproperties=[]
294
+ if(this.$refs.paged.$refs.cri.model !== null) {
295
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
296
+ this.$refs.paged.$refs.cri.model.f_user_mold=''
297
+ this.usermold = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
298
+ }
299
+ else{
300
+ this.usermold =[{label: '全部', value: ''}]
301
+ }
302
+ },
303
+ userMoldChange () {
304
+ this.gasproperties=[]
305
+ if(this.$refs.paged.$refs.cri.model !==null) {
306
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
307
+ if (this.$refs.paged.$refs.cri.model.f_user_mold[0] ==='居民'){
308
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0] + this.$refs.paged.$refs.cri.model.f_user_mold[0])
309
+ return
310
+ }
311
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_mold[0])
312
+ }
313
+ else{
314
+ this.gasproperties =[{label: '全部', value: ''}]
315
+ }
316
+ },
317
+ search() {
318
+ this.$refs.paged.$refs.cri.search()
319
+ },
320
+ cancel() {
321
+ this.show = false
322
+ },
323
+ selfSearch(args) {
324
+ //小区查询条件
325
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
326
+ console.log("=====小区model绑定====",this.area)
327
+ if(this.area.length !== 0){
328
+ let str = JSON.stringify(this.area)
329
+ str = str.replace(/"/g,`'`)
330
+ str = str.replace(/\[/g,``)
331
+ str = str.replace(/\]/g,``)
332
+ console.log("=====小区model22222222222绑定====",str)
333
+ //查询多个小区时条件
334
+ args.condition += ` and f_residential_area in ( ${str} )`
335
+ }
336
+
337
+ args.condition = `${args.condition} and f_user_type= '非民用' ` + this.orgCondtionStr
338
+ this.model.search(args.condition, args.model)
339
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
340
+ },
341
+ clear() {
342
+ //清空部门和人员
343
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
344
+ //部门和人员变为全选
345
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
346
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
347
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
348
+ this.$refs.paged.$refs.cri.model[key] = ''
349
+ })
350
+ },
351
+ show() {
352
+ this.criteriaShow = true
353
+ },
354
+ hidden() {
355
+ this.criteriaShow = !this.criteriaShow
356
+ },
357
+ getRes(obj) {
358
+ this.orgCondtionStr = obj
359
+ },
360
+ stamp() {
361
+ this.all = false
362
+ //默认选择要打印的列
363
+ this.modelval = defaultPrint.config
364
+ this.fields = this.getfield
365
+ console.log('所有打印字段', this.fields)
366
+ this.printshow = true
367
+ this.put()
368
+ },
369
+ put() {
370
+ // 对Modelval进行排序
371
+ this.sortModelval()
372
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
373
+ for (let key of this.modelval) {
374
+ this.thead += '<th>' + this.fields[key] + '</th>'
375
+ }
376
+ this.thead += '</tr>'
377
+ },
378
+ print() {
379
+ this.$refs.print.PrintAsFile()
380
+ this.printshow = false
381
+ },
382
+ dealmsg(val) {
383
+ console.log('---------------dealmsg')
384
+ this.rowdata = val
385
+ this.show = true
386
+ val.model = this.model.model
387
+ this.$dispatch('deal-msg', val)
388
+ },
389
+ close() {
390
+ this.printshow = false
391
+ this.all = false
392
+ },
393
+ // 对选择的列进行排序
394
+ sortModelval() {
395
+ let sortModel = []
396
+ Object.keys(this.fields).forEach((key) => {
397
+ if (this.modelval.includes(key)) {
398
+ sortModel.push(key)
399
+ }
400
+ })
401
+ this.modelval = sortModel
402
+ console.log('选择的打印的字段', this.modelval)
403
+ }
404
+
405
+ },
406
+ computed: {
407
+ getCondition() {
408
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
409
+ },
410
+ getfield() {
411
+ return exportConfig.fmygasConfig
412
+ },
413
+ usertypes() {
414
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
415
+ },
416
+ },
417
+ events: {},
418
+ watch: {
419
+ 'all'(val) {
420
+ if (val) {
421
+ this.modelval = this.bodyData
422
+ } else {
423
+ this.modelval = defaultPrint.config
424
+ this.put()
425
+ }
426
+ },
427
+ 'modelval.length'() {
428
+ this.put()
429
+ },
430
+ }
431
+ }
432
+ </script>
433
+ <style>
434
+ .datapanel {
435
+ color: #333;
436
+ background-color: white;
437
+ padding: 10px 20px;
438
+ border-radius: 15px;
439
+ }
440
+ </style>