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