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,589 +1,589 @@
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_code"
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_address"
18
- condition="f_address 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 HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_date >= to_date('{}','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 HH:mm:ss'"
36
- :show-reset-button="true"
37
- condition="f_operate_date <= to_date('{}','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="transferQuery" 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"
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">
57
- <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres"
58
- @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body">过户状态</label>
61
- <v-select :value.sync="model.f_state"
62
- v-model="model.f_state"
63
- :options='$parent.$parent.transferstate' placeholder='请选择'
64
- condition="f_state = '{}'"
65
- close-on-select></v-select>
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">原户姓名</label>
69
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
70
- placeholder="原户姓名"
71
- condition="f_user_name like '%{}%'">
72
- </div>
73
- </div>
74
- <div class="row" v-show="$parent.$parent.criteriaShow">
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">新户姓名</label>
77
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
78
- condition="f_newuser_name like '%{}%' " placeholder="新户姓名">
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">原户电话</label>
82
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
83
- condition="f_user_phone like '%{}%' " placeholder="原户电话">
84
- </div>
85
- <div class="col-sm-2 form-group">
86
- <label class="font_normal_body">新户电话</label>
87
- <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_phone"
88
- condition="f_newuser_phone like '%{}%' " placeholder="新户电话">
89
- </div>
90
- <div class="col-sm-2 form-group">
91
- <label for="f_area_id" class="font_normal_body">小区编码</label>
92
- <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
93
- condition="f_area_id = '{}'" placeholder='小区编码'>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
97
- <v-select :value.sync="model.f_residential_area"
98
- class="select_list select"
99
- enter-push
100
- multiple="true"
101
- v-model="model.f_residential_area"
102
- style="width: 60%"
103
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
104
- close-on-select>
105
- </v-select>
106
- </div>
107
- <div class="col-sm-2 form-group">
108
- <label class="font_normal_body">是否网厅</label>
109
- <v-select :value.sync="$parent.$parent.f_online_hall"
110
- :options="$parent.$parent.isOnlineHall"
111
- :search="false"
112
- placeholder='请选择'
113
- condition="{}"
114
- close-on-select></v-select>
115
- </div>
116
- <div class="col-sm-2 form-group">
117
- <label class="font_normal_body">房产地址</label>
118
- <input class="input_search" condition="f_house_address = '{}'"
119
- placeholder='房产地址'
120
- style="width:60%" type="text" v-model="model.f_house_address">
121
- </div>
122
- <div class="col-sm-2 form-group">
123
- <label class="font_normal_body">用途</label>
124
- <input class="input_search" condition="f_property_usage = '{}'"
125
- placeholder='用途'
126
- style="width:60%" type="text" v-model="model.f_property_usage">
127
- </div>
128
- <div class="col-sm-2 form-group">
129
- <label class="font_normal_body">房型</label>
130
- <input class="input_search" condition="f_house_type = '{}'"
131
- placeholder='房型'
132
- style="width:60%" type="text" v-model="model.f_house_type">
133
- </div>
134
- <div class="col-sm-2 form-group">
135
- <label class="font_normal_body">是否一户多表</label>
136
- <input class="input_search" condition="f_is_multi_meter = '{}'"
137
- placeholder='是否一户多表'
138
- style="width:60%" type="text" v-model="model.f_is_multi_meter">
139
- </div>
140
- <div class="col-sm-2 form-group">
141
- <label class="font_normal_body">关联ID</label>
142
- <input class="input_search" condition="f_house_id = '{}'"
143
- placeholder='关联ID'
144
- style="width:60%" type="text" v-model="model.f_house_id">
145
- </div>
146
- </div>
147
- </div>
148
- </criteria>
149
-
150
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
151
- <template partial='head'>
152
- <tr>
153
- <th>
154
- <nobr>客户编号</nobr>
155
- </th>
156
- <th>
157
- <nobr>客户名称</nobr>
158
- </th>
159
- <th>
160
- <nobr>客户地址</nobr>
161
- </th>
162
- <th>
163
- <nobr>原客户名称</nobr>
164
- </th>
165
- <th>
166
- <nobr>新客户电话</nobr>
167
- </th>
168
- <th>
169
- <nobr>原客户电话</nobr>
170
- </th>
171
- <th>
172
- <nobr>过户费</nobr>
173
- </th>
174
- <th>
175
- <nobr>过户日期</nobr>
176
- </th>
177
- <th>
178
- <nobr>备注</nobr>
179
- </th>
180
- <th>
181
- <nobr>操作员</nobr>
182
- </th>
183
- <th>
184
- <nobr>部门</nobr>
185
- </th>
186
- <th>
187
- <nobr>公司</nobr>
188
- </th>
189
- <th>
190
- <nobr>操作</nobr>
191
- </th>
192
- </tr>
193
- </template>
194
- <template partial='body'>
195
- <td style="text-align: center;">
196
- <nobr>
197
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
198
- </td>
199
- <td style="text-align: center;">
200
- <nobr>{{row.f_newuser_name}}</nobr>
201
- </td>
202
- <td style="text-align: center;">
203
- <nobr>{{row.f_address}}</nobr>
204
- </td>
205
- <td style="text-align: center;">
206
- <nobr>{{row.f_user_name}}</nobr>
207
- </td>
208
- <td style="text-align: center;">
209
- <nobr>{{row.f_newuser_phone}}</nobr>
210
- </td>
211
- <td style="text-align: center;">
212
- <nobr>{{row.f_user_phone}}</nobr>
213
- </td>
214
- <td style="text-align: center;">
215
- <nobr>{{row.f_transfer_fees}}</nobr>
216
- </td>
217
- <td style="text-align: center;">
218
- <nobr>{{row.f_operate_date}}</nobr>
219
- </td>
220
- <td style="text-align: center;">
221
- <nobr>{{row.f_comments}}</nobr>
222
- </td>
223
- <td style="text-align: center;">
224
- <nobr>{{row.f_operator}}</nobr>
225
- </td>
226
- <td style="text-align: center;">
227
- <nobr>{{row.f_depname}}</nobr>
228
- </td>
229
- <td style="text-align: center;">
230
- <nobr>{{row.f_orgname}}</nobr>
231
- </td>
232
- <td style="text-align:center" v-show="!$parent.$parent.$parent.isdeal">
233
- <button-link @click="$parent.$parent.$parent.handchange(row)" class="btn btn-link" type="button">查看
234
- </button-link>
235
- </td>
236
- </template>
237
- <template partial='foot'></template>
238
- </data-grid>
239
- </criteria-paged>
240
-
241
- <table class="table-hover">
242
- <tr style="position: relative" class="table-bordered">
243
- <td
244
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
245
- 汇总信息
246
- </td>
247
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
248
- 过户费合计:&emsp;{{sumsmodel.f_transfer_fees}}
249
- </td>
250
- </tr>
251
- </table>
252
- </div>
253
- <div v-if="show">
254
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
255
- </div>
256
- <div v-if="showAttachment">
257
- <attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_transfer" @close="closeAttachment"></attachment-viewer>
258
- </div>
259
- </div>
260
- </div>
261
- <modal :show.sync="handshow" backdrop="false" v-ref:modal>
262
- <header class="modal-header" slot="modal-header">
263
- <button @click="handchange()" class="close" type="button"><span>&times;</span></button>
264
- <h4 class="modal-title">{{transferInfo.f_userinfo_code}}过户信息</h4>
265
- </header>
266
- <article class="modal-body" slot="modal-body">
267
- <div style="min-height: 600px; overflow-y: auto; padding: 20px;">
268
- <!-- 上部:原用户信息、新用户信息、材料展示区 -->
269
- <div style="display: flex; flex-direction: column; gap: 20px;">
270
- <!-- 原用户信息和新用户信息 -->
271
- <div>
272
- <!-- 原用户信息 -->
273
- <div class="row" style="margin-top:10px;">
274
- <h5>原用户信息</h5>
275
- <div class="col-sm-6 form-group">
276
- <label class="font_normal_body">原用户名</label>
277
- <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_user_name" readonly="true" placeholder="原用户名">
278
- </div>
279
- <div class="col-sm-6 form-group">
280
- <label class="font_normal_body">原用户手机号</label>
281
- <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_user_phone" readonly="true" placeholder="原用户手机号">
282
- </div>
283
- <div class="col-sm-6 form-group">
284
- <label class="font_normal_body">原用户证件号</label>
285
- <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_idnumber" readonly="true" placeholder="原用户证件号">
286
- </div>
287
- </div>
288
-
289
- <!-- 新用户信息 -->
290
- <div class="row" style="margin-top:10px;">
291
- <h5>新用户信息</h5>
292
- <div class="col-sm-6">
293
- <label class="font_normal_body">新用户名</label>
294
- <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_newuser_name" readonly="true" placeholder="新用户名">
295
- </div>
296
- <div class="col-sm-6 form-group">
297
- <label class="font_normal_body">新用户手机号</label>
298
- <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_newuser_phone" readonly="true" placeholder="新用户手机号">
299
- </div>
300
-
301
- <div class="col-sm-6 form-group">
302
- <label class="font_normal_body">新用户证件类型</label>
303
- <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_newcredentials" readonly="true" placeholder="新用户证类型">
304
- </div>
305
- <div class="col-sm-6 form-group">
306
- <label class="font_normal_body">新用户证件号</label>
307
- <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_newidnumber" readonly="true" placeholder="新用户证件号">
308
- </div>
309
- </div>
310
- </div>
311
-
312
- <!-- 材料展示区 -->
313
- <div>
314
- <div v-if="imgList.f_idimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
315
- <label class="col-sm-3 control-label text-left">原户主证件材料:</label>
316
- <div v-for="row in imgList.f_idimglist" class="col-sm-3">
317
- <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
318
- </div>
319
- </div>
320
- <div v-if="imgList.f_houseimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
321
- <label class="col-sm-3 control-label text-left">原户主房屋材料:</label>
322
- <div v-for="row in imgList.f_houseimglist" class="col-sm-3">
323
- <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
324
- </div>
325
- </div>
326
- <div v-if="newImgList.f_meterimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
327
- <label class="col-sm-3 control-label text-left">气表照片:</label>
328
- <div v-for="row in newImgList.f_meterimglist" class="col-sm-3">
329
- <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
330
- </div>
331
- </div>
332
- <div v-if="newImgList.f_newidimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
333
- <label class="col-sm-3 control-label text-left">新户主证件材料:</label>
334
- <div v-for="row in newImgList.f_newidimglist" class="col-sm-3">
335
- <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
336
- </div>
337
- </div>
338
- <div v-if="newImgList.f_newhouseimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
339
- <label class="col-sm-3 control-label text-left">新户主房屋材料:</label>
340
- <div v-for="row in newImgList.f_newhouseimglist" class="col-sm-3">
341
- <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
342
- </div>
343
- </div>
344
- </div>
345
- </div>
346
-
347
- <!-- 下部:审核员备注 -->
348
- <div style="margin-top: 20px;">
349
- <div class="col-sm-12">
350
- <label class="font_normal_body">审核员备注</label>
351
- <input type="text" style="width:100%;" class="input_search" v-model="transferInfo.f_comments" readonly="true" placeholder="审核员备注">
352
- </div>
353
- </div>
354
- </div>
355
- </article>
356
- <footer class="modal-footer" slot="modal-footer">
357
- <button type="button" class="btn btn-success" @click='handchange()' v-show="handshow">确定</button>
358
- </footer>
359
- </modal>
360
- </template>
361
-
362
- <script>
363
- import {HttpResetClass, PagedList} from 'vue-client'
364
- import defaultPrint from '../config/DefaultPrint'
365
- import exportConfig from '../config/exportConfig'
366
- import AttachmentViewer from './AttachmentViewer.vue'
367
- let readySomething = async function (self) {
368
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
369
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
370
- // await self.$refs.paged.$refs.cri.search()
371
- await self.$MagLoadParams.loadParam()
372
-
373
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
374
- }
375
- export default {
376
- components: {
377
- AttachmentViewer
378
- },
379
- data() {
380
- return {
381
- data: {},
382
- show: false,
383
- rowdata: {},
384
- model: new PagedList('rs/sql/transferQuery', 20, {}, {f_transfer_fees: 0}),
385
- criteriaShow: false,
386
- jurisdiction: this.$login.r,
387
- initres: {
388
- org: [this.$login.f.orgid],
389
- dep: [],
390
- user: [],
391
- },
392
- //小区
393
- residentialArea: [],
394
- area: [],
395
- headData: ["客户编号", "新户姓名", "新户电话", "客户地址", "过户状态", "原户姓名", "原户电话", "客户类型", "用气性质", "气价名称", "过户费", "过户日期", "人员", "部门", "公司"],
396
- bodyData: ["f_userinfo_code", "f_newuser_name", "f_newuser_phone", "address", "f_state", "f_user_name", "f_user_phone", "f_user_type", "f_gasproperties", "f_price_name", "f_transfer_fees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
397
- orgCondtionStr: '',
398
- modelval: [],
399
- printshow: false,
400
- all: false,
401
- fields: {},
402
- thead: '',
403
- tfoot: '',
404
-
405
- transferstate: this.$appdata.getParam('过户状态') ? [{
406
- label: '全部',
407
- value: ''
408
- }, ...this.$appdata.getParam('过户状态')] : [],
409
- //合计数据
410
- sumsmodel: {},
411
- handshow: false,
412
- transferInfo: {},
413
- isOnlineHall: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
414
- f_online_hall: [],
415
- newImgList: {},
416
- imgList: {},
417
- showAttachment: false,
418
- currentRow: null,
419
- }
420
- },
421
- ready() {
422
- this.getaddress()
423
- console.log(this.$login.f)
424
- readySomething(this).then(() => {
425
- this.$emit('ready')
426
- }).catch((error) => {
427
- this.$emit('error', error)
428
- })
429
- },
430
- methods: {
431
- view(row) {
432
- this.currentRow = row;
433
- this.showAttachment = true;
434
- },
435
- closeAttachment() {
436
- this.showAttachment = false;
437
- },
438
- handchange(val) {
439
- this.imgList = {}
440
- this.newImgList = {}
441
- if (val) {
442
- console.log("开启弹窗")
443
- this.transferInfo = val
444
- this.imgList = this.transferInfo.f_imglist ? JSON.parse(this.transferInfo.f_imglist) : {}
445
- this.newImgList = this.transferInfo.f_newimglist ? JSON.parse(this.transferInfo.f_newimglist) : {}
446
- } else {
447
- console.log("返回置空")
448
- this.transferInfo = {}
449
- }
450
- this.handshow = !this.handshow
451
- },
452
- async getaddress() {
453
- console.log('开始获取小区')
454
- let HttpReset = new HttpResetClass()
455
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
456
- data: {
457
- condition: '1=1'
458
- }
459
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
460
- console.log('小区', data)
461
- let house = []
462
- for (let row of data.data) {
463
- console.log('开始保存小区')
464
- house.push({label: row.f_residential_area, value: row.f_residential_area})
465
- }
466
- this.residentialArea = house
467
- },
468
- search() {
469
- this.$refs.paged.$refs.cri.search()
470
- },
471
- dblclick(obj) {
472
- this.data = obj
473
- this.showinfo = true
474
- },
475
- async selfSearch(args) {
476
- if(this.f_online_hall[0] === '是'){
477
- args.condition += ` and f_source = '网厅'`
478
- } else if (this.f_online_hall[0] === '否'){
479
- args.condition += ` and f_source is null`
480
- }
481
- //小区查询条件
482
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
483
- console.log("=====小区model绑定====", this.area)
484
- if (this.area.length !== 0) {
485
- let str = JSON.stringify(this.area)
486
- str = str.replace(/"/g, `'`)
487
- str = str.replace(/\[/g, ``)
488
- str = str.replace(/\]/g, ``)
489
- console.log("=====小区model22222222222绑定====", str)
490
- //查询多个小区时条件
491
- args.condition += ` and f_residential_area in ( ${str} )`
492
- }
493
- args.condition = `${args.condition}` + this.orgCondtionStr
494
- console.log('我的阐述', JSON.stringify(args.condition))
495
- await this.model.search(args.condition, args.model)
496
-
497
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
498
- console.log('合计字段', this.sumsmodel)
499
- },
500
- dealmsg(val) {
501
- console.log('---------------dealmsg')
502
- this.rowdata = val
503
- this.show = true
504
- val.model = this.model.model
505
- this.$dispatch('deal-msg', val)
506
- },
507
- cancel() {
508
- this.show = false
509
- },
510
- clear() {
511
- //清空部门和人员
512
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
513
- //部门和人员变为全选
514
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
515
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
516
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
517
- this.$refs.paged.$refs.cri.model[key] = ''
518
- })
519
- },
520
- show() {
521
- this.criteriaShow = true
522
- },
523
- hidden() {
524
- this.criteriaShow = !this.criteriaShow
525
- },
526
- getRes(obj) {
527
- this.orgCondtionStr = obj
528
- },
529
- stamp() {
530
- this.all = false
531
- //默认选择要打印的列
532
- this.modelval = defaultPrint.config
533
- this.fields = this.getfield
534
- console.log('所有打印字段', this.fields)
535
- this.printshow = true
536
- this.put()
537
- },
538
- put() {
539
- // 对Modelval进行排序
540
- this.sortModelval()
541
- this.thead = `<tr><th colspan=${this.modelval.length}>过户查询统计报表</th></tr><tr>`
542
- for (let key of this.modelval) {
543
- this.thead += '<th>' + this.fields[key] + '</th>'
544
- }
545
- this.thead += '</tr>'
546
- },
547
- print() {
548
- this.$refs.print.PrintAsFile()
549
- this.printshow = false
550
- },
551
- close() {
552
- this.printshow = false
553
- this.all = false
554
- },
555
- // 对选择的列进行排序
556
- sortModelval() {
557
- let sortModel = []
558
- Object.keys(this.fields).forEach((key) => {
559
- if (this.modelval.includes(key)) {
560
- sortModel.push(key)
561
- }
562
- })
563
- this.modelval = sortModel
564
- console.log('选择的打印的字段', this.modelval)
565
- }
566
- },
567
- watch: {
568
- 'all'(val) {
569
- if (val) {
570
- this.modelval = this.bodyData
571
- } else {
572
- this.modelval = defaultPrint.config
573
- this.put()
574
- }
575
- },
576
- 'modelval.length'() {
577
- this.put()
578
- },
579
- },
580
- computed: {
581
- getCondition() {
582
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
583
- },
584
- getfield() {
585
- return exportConfig.transferConfig
586
- }
587
- }
588
- }
589
- </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_code"
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_address"
18
+ condition="f_address 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 HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date >= to_date('{}','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 HH:mm:ss'"
36
+ :show-reset-button="true"
37
+ condition="f_operate_date <= to_date('{}','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="transferQuery" 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"
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">
57
+ <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres"
58
+ @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">过户状态</label>
61
+ <v-select :value.sync="model.f_state"
62
+ v-model="model.f_state"
63
+ :options='$parent.$parent.transferstate' placeholder='请选择'
64
+ condition="f_state = '{}'"
65
+ close-on-select></v-select>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">原户姓名</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
70
+ placeholder="原户姓名"
71
+ condition="f_user_name like '%{}%'">
72
+ </div>
73
+ </div>
74
+ <div class="row" v-show="$parent.$parent.criteriaShow">
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">新户姓名</label>
77
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
78
+ condition="f_newuser_name like '%{}%' " placeholder="新户姓名">
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">原户电话</label>
82
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
83
+ condition="f_user_phone like '%{}%' " placeholder="原户电话">
84
+ </div>
85
+ <div class="col-sm-2 form-group">
86
+ <label class="font_normal_body">新户电话</label>
87
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_phone"
88
+ condition="f_newuser_phone like '%{}%' " placeholder="新户电话">
89
+ </div>
90
+ <div class="col-sm-2 form-group">
91
+ <label for="f_area_id" class="font_normal_body">小区编码</label>
92
+ <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
93
+ condition="f_area_id = '{}'" placeholder='小区编码'>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
97
+ <v-select :value.sync="model.f_residential_area"
98
+ class="select_list select"
99
+ enter-push
100
+ multiple="true"
101
+ v-model="model.f_residential_area"
102
+ style="width: 60%"
103
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
104
+ close-on-select>
105
+ </v-select>
106
+ </div>
107
+ <div class="col-sm-2 form-group">
108
+ <label class="font_normal_body">是否网厅</label>
109
+ <v-select :value.sync="$parent.$parent.f_online_hall"
110
+ :options="$parent.$parent.isOnlineHall"
111
+ :search="false"
112
+ placeholder='请选择'
113
+ condition="{}"
114
+ close-on-select></v-select>
115
+ </div>
116
+ <div class="col-sm-2 form-group">
117
+ <label class="font_normal_body">房产地址</label>
118
+ <input class="input_search" condition="f_house_address = '{}'"
119
+ placeholder='房产地址'
120
+ style="width:60%" type="text" v-model="model.f_house_address">
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label class="font_normal_body">用途</label>
124
+ <input class="input_search" condition="f_property_usage = '{}'"
125
+ placeholder='用途'
126
+ style="width:60%" type="text" v-model="model.f_property_usage">
127
+ </div>
128
+ <div class="col-sm-2 form-group">
129
+ <label class="font_normal_body">房型</label>
130
+ <input class="input_search" condition="f_house_type = '{}'"
131
+ placeholder='房型'
132
+ style="width:60%" type="text" v-model="model.f_house_type">
133
+ </div>
134
+ <div class="col-sm-2 form-group">
135
+ <label class="font_normal_body">是否一户多表</label>
136
+ <input class="input_search" condition="f_is_multi_meter = '{}'"
137
+ placeholder='是否一户多表'
138
+ style="width:60%" type="text" v-model="model.f_is_multi_meter">
139
+ </div>
140
+ <div class="col-sm-2 form-group">
141
+ <label class="font_normal_body">关联ID</label>
142
+ <input class="input_search" condition="f_house_id = '{}'"
143
+ placeholder='关联ID'
144
+ style="width:60%" type="text" v-model="model.f_house_id">
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </criteria>
149
+
150
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
151
+ <template partial='head'>
152
+ <tr>
153
+ <th>
154
+ <nobr>客户编号</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>客户名称</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>客户地址</nobr>
161
+ </th>
162
+ <th>
163
+ <nobr>原客户名称</nobr>
164
+ </th>
165
+ <th>
166
+ <nobr>新客户电话</nobr>
167
+ </th>
168
+ <th>
169
+ <nobr>原客户电话</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>过户费</nobr>
173
+ </th>
174
+ <th>
175
+ <nobr>过户日期</nobr>
176
+ </th>
177
+ <th>
178
+ <nobr>备注</nobr>
179
+ </th>
180
+ <th>
181
+ <nobr>操作员</nobr>
182
+ </th>
183
+ <th>
184
+ <nobr>部门</nobr>
185
+ </th>
186
+ <th>
187
+ <nobr>公司</nobr>
188
+ </th>
189
+ <th>
190
+ <nobr>操作</nobr>
191
+ </th>
192
+ </tr>
193
+ </template>
194
+ <template partial='body'>
195
+ <td style="text-align: center;">
196
+ <nobr>
197
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.f_newuser_name}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_address}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.f_user_name}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.f_newuser_phone}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.f_user_phone}}</nobr>
213
+ </td>
214
+ <td style="text-align: center;">
215
+ <nobr>{{row.f_transfer_fees}}</nobr>
216
+ </td>
217
+ <td style="text-align: center;">
218
+ <nobr>{{row.f_operate_date}}</nobr>
219
+ </td>
220
+ <td style="text-align: center;">
221
+ <nobr>{{row.f_comments}}</nobr>
222
+ </td>
223
+ <td style="text-align: center;">
224
+ <nobr>{{row.f_operator}}</nobr>
225
+ </td>
226
+ <td style="text-align: center;">
227
+ <nobr>{{row.f_depname}}</nobr>
228
+ </td>
229
+ <td style="text-align: center;">
230
+ <nobr>{{row.f_orgname}}</nobr>
231
+ </td>
232
+ <td style="text-align:center" v-show="!$parent.$parent.$parent.isdeal">
233
+ <button-link @click="$parent.$parent.$parent.handchange(row)" class="btn btn-link" type="button">查看
234
+ </button-link>
235
+ </td>
236
+ </template>
237
+ <template partial='foot'></template>
238
+ </data-grid>
239
+ </criteria-paged>
240
+
241
+ <table class="table-hover">
242
+ <tr style="position: relative" class="table-bordered">
243
+ <td
244
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
245
+ 汇总信息
246
+ </td>
247
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
248
+ 过户费合计:&emsp;{{sumsmodel.f_transfer_fees}}
249
+ </td>
250
+ </tr>
251
+ </table>
252
+ </div>
253
+ <div v-if="show">
254
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
255
+ </div>
256
+ <div v-if="showAttachment">
257
+ <attachment-viewer :business-id="currentRow && currentRow.id" table-name="t_transfer" @close="closeAttachment"></attachment-viewer>
258
+ </div>
259
+ </div>
260
+ </div>
261
+ <modal :show.sync="handshow" backdrop="false" v-ref:modal>
262
+ <header class="modal-header" slot="modal-header">
263
+ <button @click="handchange()" class="close" type="button"><span>&times;</span></button>
264
+ <h4 class="modal-title">{{transferInfo.f_userinfo_code}}过户信息</h4>
265
+ </header>
266
+ <article class="modal-body" slot="modal-body">
267
+ <div style="min-height: 600px; overflow-y: auto; padding: 20px;">
268
+ <!-- 上部:原用户信息、新用户信息、材料展示区 -->
269
+ <div style="display: flex; flex-direction: column; gap: 20px;">
270
+ <!-- 原用户信息和新用户信息 -->
271
+ <div>
272
+ <!-- 原用户信息 -->
273
+ <div class="row" style="margin-top:10px;">
274
+ <h5>原用户信息</h5>
275
+ <div class="col-sm-6 form-group">
276
+ <label class="font_normal_body">原用户名</label>
277
+ <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_user_name" readonly="true" placeholder="原用户名">
278
+ </div>
279
+ <div class="col-sm-6 form-group">
280
+ <label class="font_normal_body">原用户手机号</label>
281
+ <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_user_phone" readonly="true" placeholder="原用户手机号">
282
+ </div>
283
+ <div class="col-sm-6 form-group">
284
+ <label class="font_normal_body">原用户证件号</label>
285
+ <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_idnumber" readonly="true" placeholder="原用户证件号">
286
+ </div>
287
+ </div>
288
+
289
+ <!-- 新用户信息 -->
290
+ <div class="row" style="margin-top:10px;">
291
+ <h5>新用户信息</h5>
292
+ <div class="col-sm-6">
293
+ <label class="font_normal_body">新用户名</label>
294
+ <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_newuser_name" readonly="true" placeholder="新用户名">
295
+ </div>
296
+ <div class="col-sm-6 form-group">
297
+ <label class="font_normal_body">新用户手机号</label>
298
+ <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_newuser_phone" readonly="true" placeholder="新用户手机号">
299
+ </div>
300
+
301
+ <div class="col-sm-6 form-group">
302
+ <label class="font_normal_body">新用户证件类型</label>
303
+ <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_newcredentials" readonly="true" placeholder="新用户证类型">
304
+ </div>
305
+ <div class="col-sm-6 form-group">
306
+ <label class="font_normal_body">新用户证件号</label>
307
+ <input type="text" style="width:60%;" class="input_search" v-model="transferInfo.f_newidnumber" readonly="true" placeholder="新用户证件号">
308
+ </div>
309
+ </div>
310
+ </div>
311
+
312
+ <!-- 材料展示区 -->
313
+ <div>
314
+ <div v-if="imgList.f_idimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
315
+ <label class="col-sm-3 control-label text-left">原户主证件材料:</label>
316
+ <div v-for="row in imgList.f_idimglist" class="col-sm-3">
317
+ <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
318
+ </div>
319
+ </div>
320
+ <div v-if="imgList.f_houseimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
321
+ <label class="col-sm-3 control-label text-left">原户主房屋材料:</label>
322
+ <div v-for="row in imgList.f_houseimglist" class="col-sm-3">
323
+ <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
324
+ </div>
325
+ </div>
326
+ <div v-if="newImgList.f_meterimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
327
+ <label class="col-sm-3 control-label text-left">气表照片:</label>
328
+ <div v-for="row in newImgList.f_meterimglist" class="col-sm-3">
329
+ <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
330
+ </div>
331
+ </div>
332
+ <div v-if="newImgList.f_newidimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
333
+ <label class="col-sm-3 control-label text-left">新户主证件材料:</label>
334
+ <div v-for="row in newImgList.f_newidimglist" class="col-sm-3">
335
+ <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
336
+ </div>
337
+ </div>
338
+ <div v-if="newImgList.f_newhouseimglist.length >0" class="col-sm-12 form-group" style="margin-top: 10px;padding: 10px">
339
+ <label class="col-sm-3 control-label text-left">新户主房屋材料:</label>
340
+ <div v-for="row in newImgList.f_newhouseimglist" class="col-sm-3">
341
+ <img-self :src="row.imgUrl" alt="图片加载失败" :width="100" :height="100"></img-self>
342
+ </div>
343
+ </div>
344
+ </div>
345
+ </div>
346
+
347
+ <!-- 下部:审核员备注 -->
348
+ <div style="margin-top: 20px;">
349
+ <div class="col-sm-12">
350
+ <label class="font_normal_body">审核员备注</label>
351
+ <input type="text" style="width:100%;" class="input_search" v-model="transferInfo.f_comments" readonly="true" placeholder="审核员备注">
352
+ </div>
353
+ </div>
354
+ </div>
355
+ </article>
356
+ <footer class="modal-footer" slot="modal-footer">
357
+ <button type="button" class="btn btn-success" @click='handchange()' v-show="handshow">确定</button>
358
+ </footer>
359
+ </modal>
360
+ </template>
361
+
362
+ <script>
363
+ import {HttpResetClass, PagedList} from 'vue-client'
364
+ import defaultPrint from '../config/DefaultPrint'
365
+ import exportConfig from '../config/exportConfig'
366
+ import AttachmentViewer from './AttachmentViewer.vue'
367
+ let readySomething = async function (self) {
368
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
369
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
370
+ // await self.$refs.paged.$refs.cri.search()
371
+ await self.$MagLoadParams.loadParam()
372
+
373
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
374
+ }
375
+ export default {
376
+ components: {
377
+ AttachmentViewer
378
+ },
379
+ data() {
380
+ return {
381
+ data: {},
382
+ show: false,
383
+ rowdata: {},
384
+ model: new PagedList('rs/sql/transferQuery', 20, {}, {f_transfer_fees: 0}),
385
+ criteriaShow: false,
386
+ jurisdiction: this.$login.r,
387
+ initres: {
388
+ org: [this.$login.f.orgid],
389
+ dep: [],
390
+ user: [],
391
+ },
392
+ //小区
393
+ residentialArea: [],
394
+ area: [],
395
+ headData: ["客户编号", "新户姓名", "新户电话", "客户地址", "过户状态", "原户姓名", "原户电话", "客户类型", "用气性质", "气价名称", "过户费", "过户日期", "人员", "部门", "公司"],
396
+ bodyData: ["f_userinfo_code", "f_newuser_name", "f_newuser_phone", "address", "f_state", "f_user_name", "f_user_phone", "f_user_type", "f_gasproperties", "f_price_name", "f_transfer_fees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
397
+ orgCondtionStr: '',
398
+ modelval: [],
399
+ printshow: false,
400
+ all: false,
401
+ fields: {},
402
+ thead: '',
403
+ tfoot: '',
404
+
405
+ transferstate: this.$appdata.getParam('过户状态') ? [{
406
+ label: '全部',
407
+ value: ''
408
+ }, ...this.$appdata.getParam('过户状态')] : [],
409
+ //合计数据
410
+ sumsmodel: {},
411
+ handshow: false,
412
+ transferInfo: {},
413
+ isOnlineHall: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
414
+ f_online_hall: [],
415
+ newImgList: {},
416
+ imgList: {},
417
+ showAttachment: false,
418
+ currentRow: null,
419
+ }
420
+ },
421
+ ready() {
422
+ this.getaddress()
423
+ console.log(this.$login.f)
424
+ readySomething(this).then(() => {
425
+ this.$emit('ready')
426
+ }).catch((error) => {
427
+ this.$emit('error', error)
428
+ })
429
+ },
430
+ methods: {
431
+ view(row) {
432
+ this.currentRow = row;
433
+ this.showAttachment = true;
434
+ },
435
+ closeAttachment() {
436
+ this.showAttachment = false;
437
+ },
438
+ handchange(val) {
439
+ this.imgList = {}
440
+ this.newImgList = {}
441
+ if (val) {
442
+ console.log("开启弹窗")
443
+ this.transferInfo = val
444
+ this.imgList = this.transferInfo.f_imglist ? JSON.parse(this.transferInfo.f_imglist) : {}
445
+ this.newImgList = this.transferInfo.f_newimglist ? JSON.parse(this.transferInfo.f_newimglist) : {}
446
+ } else {
447
+ console.log("返回置空")
448
+ this.transferInfo = {}
449
+ }
450
+ this.handshow = !this.handshow
451
+ },
452
+ async getaddress() {
453
+ console.log('开始获取小区')
454
+ let HttpReset = new HttpResetClass()
455
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
456
+ data: {
457
+ condition: '1=1'
458
+ }
459
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
460
+ console.log('小区', data)
461
+ let house = []
462
+ for (let row of data.data) {
463
+ console.log('开始保存小区')
464
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
465
+ }
466
+ this.residentialArea = house
467
+ },
468
+ search() {
469
+ this.$refs.paged.$refs.cri.search()
470
+ },
471
+ dblclick(obj) {
472
+ this.data = obj
473
+ this.showinfo = true
474
+ },
475
+ async selfSearch(args) {
476
+ if(this.f_online_hall[0] === '是'){
477
+ args.condition += ` and f_source = '网厅'`
478
+ } else if (this.f_online_hall[0] === '否'){
479
+ args.condition += ` and f_source is null`
480
+ }
481
+ //小区查询条件
482
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
483
+ console.log("=====小区model绑定====", this.area)
484
+ if (this.area.length !== 0) {
485
+ let str = JSON.stringify(this.area)
486
+ str = str.replace(/"/g, `'`)
487
+ str = str.replace(/\[/g, ``)
488
+ str = str.replace(/\]/g, ``)
489
+ console.log("=====小区model22222222222绑定====", str)
490
+ //查询多个小区时条件
491
+ args.condition += ` and f_residential_area in ( ${str} )`
492
+ }
493
+ args.condition = `${args.condition}` + this.orgCondtionStr
494
+ console.log('我的阐述', JSON.stringify(args.condition))
495
+ await this.model.search(args.condition, args.model)
496
+
497
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
498
+ console.log('合计字段', this.sumsmodel)
499
+ },
500
+ dealmsg(val) {
501
+ console.log('---------------dealmsg')
502
+ this.rowdata = val
503
+ this.show = true
504
+ val.model = this.model.model
505
+ this.$dispatch('deal-msg', val)
506
+ },
507
+ cancel() {
508
+ this.show = false
509
+ },
510
+ clear() {
511
+ //清空部门和人员
512
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
513
+ //部门和人员变为全选
514
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
515
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
516
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
517
+ this.$refs.paged.$refs.cri.model[key] = ''
518
+ })
519
+ },
520
+ show() {
521
+ this.criteriaShow = true
522
+ },
523
+ hidden() {
524
+ this.criteriaShow = !this.criteriaShow
525
+ },
526
+ getRes(obj) {
527
+ this.orgCondtionStr = obj
528
+ },
529
+ stamp() {
530
+ this.all = false
531
+ //默认选择要打印的列
532
+ this.modelval = defaultPrint.config
533
+ this.fields = this.getfield
534
+ console.log('所有打印字段', this.fields)
535
+ this.printshow = true
536
+ this.put()
537
+ },
538
+ put() {
539
+ // 对Modelval进行排序
540
+ this.sortModelval()
541
+ this.thead = `<tr><th colspan=${this.modelval.length}>过户查询统计报表</th></tr><tr>`
542
+ for (let key of this.modelval) {
543
+ this.thead += '<th>' + this.fields[key] + '</th>'
544
+ }
545
+ this.thead += '</tr>'
546
+ },
547
+ print() {
548
+ this.$refs.print.PrintAsFile()
549
+ this.printshow = false
550
+ },
551
+ close() {
552
+ this.printshow = false
553
+ this.all = false
554
+ },
555
+ // 对选择的列进行排序
556
+ sortModelval() {
557
+ let sortModel = []
558
+ Object.keys(this.fields).forEach((key) => {
559
+ if (this.modelval.includes(key)) {
560
+ sortModel.push(key)
561
+ }
562
+ })
563
+ this.modelval = sortModel
564
+ console.log('选择的打印的字段', this.modelval)
565
+ }
566
+ },
567
+ watch: {
568
+ 'all'(val) {
569
+ if (val) {
570
+ this.modelval = this.bodyData
571
+ } else {
572
+ this.modelval = defaultPrint.config
573
+ this.put()
574
+ }
575
+ },
576
+ 'modelval.length'() {
577
+ this.put()
578
+ },
579
+ },
580
+ computed: {
581
+ getCondition() {
582
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
583
+ },
584
+ getfield() {
585
+ return exportConfig.transferConfig
586
+ }
587
+ }
588
+ }
589
+ </script>