manage-client 4.1.83 → 4.1.85-tcls
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.
- package/build/dev-server.js +227 -145
- package/package.json +111 -111
- package/src/components/SellReport/shimen/SMSummary.vue +175 -0
- package/src/filiale/shanxian/OtherChargeQuery.vue +0 -4
- package/src/filiale/tongchuan/CancellationQuery.vue +455 -0
- package/src/filiale/tongchuan/ChangeMeterQuery.vue +730 -702
- package/src/filiale/tongchuan/ChargeQuery.vue +1514 -1487
- package/src/filiale/tongchuan/DisableQuery.vue +550 -523
- package/src/filiale/tongchuan/EnableQuery.vue +489 -0
- package/src/filiale/tongchuan/FillCardQuery.vue +598 -573
- package/src/filiale/tongchuan/FillGasQuery.vue +560 -533
- package/src/filiale/tongchuan/HandplanQuery.vue +1358 -1332
- package/src/filiale/tongchuan/OtherChargeDetailQuery.vue +74 -0
- package/src/filiale/tongchuan/OtherChargeQuery.vue +751 -0
- package/src/filiale/tongchuan/PrivilegeQuery.vue +420 -0
- package/src/filiale/tongchuan/RecordInfoQuery.vue +1493 -1493
- package/src/filiale/tongchuan/ResSelectUserGroup.vue +384 -0
- package/src/filiale/tongchuan/ReverseQuery.vue +477 -450
- package/src/filiale/tongchuan/TransferQuery.vue +528 -0
- package/src/filiale/tongchuan/TransferRecordQuery.vue +202 -0
- package/src/filiale/tongchuan/config/exportConfig.js +1102 -918
- package/src/filiale/tongchuan/overDueQuery.vue +497 -0
- package/src/filiale/tongchuan/priceadjustQuery.vue +560 -0
- package/src/filiale/tongchuan/sale.js +36 -0
- package/src/filiale/tongchuan/sellingChargePrice.vue +754 -714
- package/src/main.js +3 -3
- package/src/reportManage.js +4 -0
|
@@ -0,0 +1,528 @@
|
|
|
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 @sort="sort">
|
|
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 for="startDate" class="font_normal_body">开始日期</label>
|
|
12
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
13
|
+
v-model="model.startDate"
|
|
14
|
+
:value.sync="model.startDate"
|
|
15
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
16
|
+
:show-reset-button="true"
|
|
17
|
+
condition="f_operate_date >= '{}'">
|
|
18
|
+
</datepicker>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
22
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
23
|
+
v-model="model.endDate"
|
|
24
|
+
:value.sync="model.endDate"
|
|
25
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
26
|
+
:show-reset-button="true"
|
|
27
|
+
condition="f_operate_date <= '{}'">
|
|
28
|
+
</datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-2 form-group">
|
|
31
|
+
<label class="font_normal_body">客户编号</label>
|
|
32
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
33
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-sm-2 form-group">
|
|
36
|
+
<label class="font_normal_body" title="旧客户编号">档案编号</label>
|
|
37
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
|
|
38
|
+
condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
|
|
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
|
+
<export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
|
|
45
|
+
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
46
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="transferQuery" template-name='过户查询导出'
|
|
47
|
+
:choose-col="true"></export-excel>
|
|
48
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
49
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
50
|
+
titletable="过户记录"
|
|
51
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
52
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
56
|
+
<res-select-user-group
|
|
57
|
+
:operator-initres="$parent.$parent.initres"
|
|
58
|
+
:user-initres="$parent.$parent.userInitres"
|
|
59
|
+
:show-component="['company','department','operator','slicearea','user_company']"
|
|
60
|
+
@re-res="$parent.$parent.getRes"
|
|
61
|
+
@re-us-res="$parent.$parent.getUserRes"
|
|
62
|
+
v-ref:usersel>
|
|
63
|
+
</res-select-user-group>
|
|
64
|
+
|
|
65
|
+
<div class="col-sm-2 form-group">
|
|
66
|
+
<label class="font_normal_body">客户地址</label>
|
|
67
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
68
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="col-sm-2 form-group">
|
|
71
|
+
<label class="font_normal_body">表  号</label>
|
|
72
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
73
|
+
condition="f_meternumber = '{}'" placeholder='表号'>
|
|
74
|
+
</div>
|
|
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_card_id"
|
|
78
|
+
condition="f_card_id = '{}'" placeholder='卡号'>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-2 form-group">
|
|
81
|
+
<label class="font_normal_body">过户状态</label>
|
|
82
|
+
<v-select :value.sync="model.f_state"
|
|
83
|
+
v-model="model.f_state"
|
|
84
|
+
:options='$parent.$parent.transferstate' placeholder='请选择'
|
|
85
|
+
condition="f_state = '{}'"
|
|
86
|
+
close-on-select></v-select>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="col-sm-2 form-group">
|
|
89
|
+
<label class="font_normal_body">原户姓名</label>
|
|
90
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
91
|
+
placeholder="原户姓名"
|
|
92
|
+
condition="f_user_name = '{}'">
|
|
93
|
+
</div>
|
|
94
|
+
<div class="col-sm-2 form-group">
|
|
95
|
+
<label class="font_normal_body">新户姓名</label>
|
|
96
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_name"
|
|
97
|
+
condition="f_newuser_name like '%{}%' " placeholder="新户姓名">
|
|
98
|
+
</div>
|
|
99
|
+
<div class="col-sm-2 form-group">
|
|
100
|
+
<label class="font_normal_body">原户电话</label>
|
|
101
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
102
|
+
condition="f_user_phone like '%{}%' " placeholder="原户电话">
|
|
103
|
+
</div>
|
|
104
|
+
<div class="col-sm-2 form-group">
|
|
105
|
+
<label class="font_normal_body">新户电话</label>
|
|
106
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_newuser_phone"
|
|
107
|
+
condition="f_newuser_phone like '%{}%' " placeholder="新户电话">
|
|
108
|
+
</div>
|
|
109
|
+
<div class="col-sm-2 form-group">
|
|
110
|
+
<label class="font_normal_body">合同编号</label>
|
|
111
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_contract_id"
|
|
112
|
+
condition="f_contract_id like '%{}%' " placeholder="合同编号">
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</criteria>
|
|
117
|
+
|
|
118
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
119
|
+
<template partial='head'>
|
|
120
|
+
<tr>
|
|
121
|
+
<th>
|
|
122
|
+
<!-- <nobr>客户编号</nobr>-->
|
|
123
|
+
<data-order field="f_userinfo_code" name="客户编号"
|
|
124
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
125
|
+
</th>
|
|
126
|
+
<th>
|
|
127
|
+
<nobr>客户名称</nobr>
|
|
128
|
+
</th>
|
|
129
|
+
<th>
|
|
130
|
+
<nobr>档案编号</nobr>
|
|
131
|
+
</th>
|
|
132
|
+
<th>
|
|
133
|
+
<!-- <nobr>客户地址</nobr>-->
|
|
134
|
+
<data-order field="f_address" name="客户地址"
|
|
135
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
136
|
+
</th>
|
|
137
|
+
<th>
|
|
138
|
+
<nobr>表号</nobr>
|
|
139
|
+
</th>
|
|
140
|
+
<th>
|
|
141
|
+
<nobr>原客户名称</nobr>
|
|
142
|
+
</th>
|
|
143
|
+
<th>
|
|
144
|
+
<nobr>新客户电话</nobr>
|
|
145
|
+
</th>
|
|
146
|
+
<th>
|
|
147
|
+
<nobr>新客户身份证</nobr>
|
|
148
|
+
</th>
|
|
149
|
+
<th>
|
|
150
|
+
<nobr>原客户电话</nobr>
|
|
151
|
+
</th>
|
|
152
|
+
<th>
|
|
153
|
+
<nobr>原客户身份证</nobr>
|
|
154
|
+
</th>
|
|
155
|
+
<th>
|
|
156
|
+
<nobr>原人口数</nobr>
|
|
157
|
+
</th>
|
|
158
|
+
<th>
|
|
159
|
+
<nobr>新人口数</nobr>
|
|
160
|
+
</th>
|
|
161
|
+
<th>
|
|
162
|
+
<nobr>过户费</nobr>
|
|
163
|
+
</th>
|
|
164
|
+
<th>
|
|
165
|
+
<nobr>合同编号</nobr>
|
|
166
|
+
</th>
|
|
167
|
+
<th>
|
|
168
|
+
<!-- <nobr>过户日期</nobr>-->
|
|
169
|
+
<data-order field="f_operate_date" name="过户日期"
|
|
170
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
|
|
171
|
+
</th>
|
|
172
|
+
<th>
|
|
173
|
+
<nobr>备注</nobr>
|
|
174
|
+
</th>
|
|
175
|
+
<th>
|
|
176
|
+
<nobr>操作员人员</nobr>
|
|
177
|
+
</th>
|
|
178
|
+
<th>
|
|
179
|
+
<nobr>操作员部门</nobr>
|
|
180
|
+
</th>
|
|
181
|
+
<th>
|
|
182
|
+
<nobr>操作员公司</nobr>
|
|
183
|
+
</th>
|
|
184
|
+
<th>
|
|
185
|
+
<nobr>用户公司</nobr>
|
|
186
|
+
</th>
|
|
187
|
+
<th><nobr>附件</nobr></th>
|
|
188
|
+
</tr>
|
|
189
|
+
</template>
|
|
190
|
+
<template partial='body'>
|
|
191
|
+
<td style="text-align: center;">
|
|
192
|
+
<nobr>
|
|
193
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
|
|
194
|
+
</td>
|
|
195
|
+
<td style="text-align: center;">
|
|
196
|
+
<nobr>{{row.f_newuser_name}}</nobr>
|
|
197
|
+
</td>
|
|
198
|
+
<td style="text-align: center;">
|
|
199
|
+
<nobr>{{row.f_olduserinfo_code}}</nobr>
|
|
200
|
+
</td>
|
|
201
|
+
<td style="text-align: center;">
|
|
202
|
+
<nobr>{{row.f_address}}</nobr>
|
|
203
|
+
</td>
|
|
204
|
+
<td style="text-align: center;">
|
|
205
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
206
|
+
</td>
|
|
207
|
+
<td style="text-align: center;">
|
|
208
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
209
|
+
</td>
|
|
210
|
+
<td style="text-align: center;">
|
|
211
|
+
<nobr>{{row.f_newuser_phone}}</nobr>
|
|
212
|
+
</td>
|
|
213
|
+
<td style="text-align: center;">
|
|
214
|
+
<nobr>{{row.f_newidnumber}}</nobr>
|
|
215
|
+
</td>
|
|
216
|
+
<td style="text-align: center;">
|
|
217
|
+
<nobr>{{row.f_user_phone}}</nobr>
|
|
218
|
+
</td>
|
|
219
|
+
<td style="text-align: center;">
|
|
220
|
+
<nobr>{{row.f_idnumber}}</nobr>
|
|
221
|
+
</td>
|
|
222
|
+
<td style="text-align: center;">
|
|
223
|
+
<nobr>{{ row.f_old_people_num }}</nobr>
|
|
224
|
+
</td>
|
|
225
|
+
<td style="text-align: center;">
|
|
226
|
+
<nobr>{{ row.f_new_people_num }}</nobr>
|
|
227
|
+
</td>
|
|
228
|
+
<td style="text-align: center;">
|
|
229
|
+
<nobr>{{row.f_transfer_fees}}</nobr>
|
|
230
|
+
</td>
|
|
231
|
+
<td style="text-align: center;">
|
|
232
|
+
<nobr>{{row.f_contract_id}}</nobr>
|
|
233
|
+
</td>
|
|
234
|
+
<td style="text-align: center;">
|
|
235
|
+
<nobr>{{row.f_operate_date}}</nobr>
|
|
236
|
+
</td>
|
|
237
|
+
<td style="text-align: center;">
|
|
238
|
+
<nobr>{{row.f_comments}}</nobr>
|
|
239
|
+
</td>
|
|
240
|
+
<td style="text-align: center;">
|
|
241
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
242
|
+
</td>
|
|
243
|
+
<td style="text-align: center;">
|
|
244
|
+
<nobr>{{row.f_depname}}</nobr>
|
|
245
|
+
</td>
|
|
246
|
+
<td style="text-align: center;">
|
|
247
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
248
|
+
</td>
|
|
249
|
+
<td style="text-align: center;">
|
|
250
|
+
<nobr>{{row.f_us_orgname}}</nobr>
|
|
251
|
+
</td>
|
|
252
|
+
<td style="text-align: center;"><nobr>
|
|
253
|
+
<button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
|
|
254
|
+
</nobr></td>
|
|
255
|
+
</template>
|
|
256
|
+
<template partial='foot'></template>
|
|
257
|
+
</data-grid>
|
|
258
|
+
</criteria-paged>
|
|
259
|
+
|
|
260
|
+
<table class="table-hover">
|
|
261
|
+
<tr style="position: relative" class="table-bordered">
|
|
262
|
+
<td
|
|
263
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
264
|
+
汇总信息
|
|
265
|
+
</td>
|
|
266
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
267
|
+
过户费合计: {{sumsmodel.f_transfer_fees}}
|
|
268
|
+
</td>
|
|
269
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
270
|
+
户数合计: {{sumsmodel.hushu}}
|
|
271
|
+
</td>
|
|
272
|
+
</tr>
|
|
273
|
+
</table>
|
|
274
|
+
</div>
|
|
275
|
+
<div class="flex" v-if="show">
|
|
276
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
<modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
|
280
|
+
<article slot="modal-body">
|
|
281
|
+
<upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="过户管理" :isremark="false" style="width:auto" ></upload>
|
|
282
|
+
</article>
|
|
283
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
284
|
+
</footer>
|
|
285
|
+
</modal>
|
|
286
|
+
</div>
|
|
287
|
+
</template>
|
|
288
|
+
|
|
289
|
+
<script>
|
|
290
|
+
import {PagedList} from 'vue-client'
|
|
291
|
+
import defaultPrint from './config/DefaultPrint'
|
|
292
|
+
import exportConfig from './config/exportConfig'
|
|
293
|
+
import ResSelectUserGroup from './ResSelectUserGroup.vue'
|
|
294
|
+
|
|
295
|
+
let readySomething = async function (self) {
|
|
296
|
+
self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
|
|
297
|
+
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
298
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
299
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
300
|
+
await self.$MagLoadParams.loadParam()
|
|
301
|
+
|
|
302
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
303
|
+
}
|
|
304
|
+
export default {
|
|
305
|
+
components: {
|
|
306
|
+
'res-select-user-group': ResSelectUserGroup
|
|
307
|
+
},
|
|
308
|
+
props:['data'],
|
|
309
|
+
title: '过户查询',
|
|
310
|
+
data() {
|
|
311
|
+
return {
|
|
312
|
+
data: {},
|
|
313
|
+
other:[],
|
|
314
|
+
footer:[],
|
|
315
|
+
show:false,
|
|
316
|
+
rowdata:{},
|
|
317
|
+
model: new PagedList('api/af-revenue/sql/transferQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_transfer_fees: 0,hushu:0}),
|
|
318
|
+
criteriaShow: false,
|
|
319
|
+
initres: {
|
|
320
|
+
org:[this.$login.f.orgid],
|
|
321
|
+
dep:[],
|
|
322
|
+
user:[],
|
|
323
|
+
},
|
|
324
|
+
userInitres: {
|
|
325
|
+
org: [],
|
|
326
|
+
dep: [],
|
|
327
|
+
user: []
|
|
328
|
+
},
|
|
329
|
+
headData: ["客户编号", "新户姓名", "新户电话", "客户地址", "过户状态", "原户姓名", "原户电话", "客户类型", "用气性质", "气价名称", "过户费", "过户日期", "人员", "部门", "公司"],
|
|
330
|
+
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"],
|
|
331
|
+
orgCondtionStr: '',
|
|
332
|
+
userOrgConditionStr: '',
|
|
333
|
+
modelval: [],
|
|
334
|
+
printshow: false,
|
|
335
|
+
all: false,
|
|
336
|
+
fields: {},
|
|
337
|
+
config: {
|
|
338
|
+
defaultPrint: ["f_userinfo_code", "f_newuser_name", "f_newuser_phone", "address", "f_state", "f_user_name","f_transfer_fees", "f_operate_date", "f_operator", "f_depname", "f_orgname"]
|
|
339
|
+
},
|
|
340
|
+
//排序
|
|
341
|
+
orderitem:'f_operate_date desc',
|
|
342
|
+
orderFields: {
|
|
343
|
+
f_operate_date: 'no'
|
|
344
|
+
},
|
|
345
|
+
//默认打印列
|
|
346
|
+
defaultfield: [],
|
|
347
|
+
thead: '',
|
|
348
|
+
tfoot: '',
|
|
349
|
+
showupload:false,
|
|
350
|
+
selected:{},
|
|
351
|
+
|
|
352
|
+
transferstate: this.$appdata.getParam('过户状态') ? [{
|
|
353
|
+
label: '全部',
|
|
354
|
+
value: ''
|
|
355
|
+
}, ...this.$appdata.getParam('过户状态')] : [],
|
|
356
|
+
//合计数据
|
|
357
|
+
sumsmodel: {}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
ready() {
|
|
361
|
+
console.log(this.$login.f)
|
|
362
|
+
readySomething(this).then(() => {
|
|
363
|
+
this.$emit('ready')
|
|
364
|
+
}).catch((error) => {
|
|
365
|
+
this.$emit('error', error)
|
|
366
|
+
})
|
|
367
|
+
},
|
|
368
|
+
methods: {
|
|
369
|
+
view(row){
|
|
370
|
+
this.showupload = true
|
|
371
|
+
this.selected= row
|
|
372
|
+
},
|
|
373
|
+
getotherfooter(){
|
|
374
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
375
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
376
|
+
this.other=[];
|
|
377
|
+
this.footer=[];
|
|
378
|
+
let exportdata = this.getCondition;
|
|
379
|
+
let otherInData=[];
|
|
380
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
381
|
+
let footerData=[],exportfield=this.getfield;
|
|
382
|
+
footerData.push("合计");
|
|
383
|
+
let self = this;
|
|
384
|
+
for(var field in self.sumsmodel){
|
|
385
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
386
|
+
}
|
|
387
|
+
this.footer.push(footerData);
|
|
388
|
+
this.other.push(otherInData);
|
|
389
|
+
},
|
|
390
|
+
search(){
|
|
391
|
+
this.$refs.paged.$refs.cri.search()
|
|
392
|
+
},
|
|
393
|
+
dblclick(obj) {
|
|
394
|
+
this.data = obj
|
|
395
|
+
this.showinfo = true
|
|
396
|
+
},
|
|
397
|
+
async selfSearch(args) {
|
|
398
|
+
if (this.data) {
|
|
399
|
+
this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
|
|
400
|
+
this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
|
|
401
|
+
}
|
|
402
|
+
const orgStr = this.orgCondtionStr + this.userOrgConditionStr
|
|
403
|
+
args.condition = `${args.condition}` + orgStr
|
|
404
|
+
// console.log('我的阐述', JSON.stringify(args.condition))
|
|
405
|
+
await this.model.search(args.condition, args.model)
|
|
406
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
407
|
+
console.log('合计字段', this.sumsmodel)
|
|
408
|
+
},
|
|
409
|
+
dealmsg(val) {
|
|
410
|
+
console.log('---------------dealmsg')
|
|
411
|
+
this.rowdata=val
|
|
412
|
+
this.show=true
|
|
413
|
+
val.model = this.model.model
|
|
414
|
+
this.$dispatch('deal-msg', val)
|
|
415
|
+
},
|
|
416
|
+
cancel() {
|
|
417
|
+
this.show = false
|
|
418
|
+
},
|
|
419
|
+
clear() {
|
|
420
|
+
// 清空组织、片区、用户公司
|
|
421
|
+
if (this.$refs.paged.$refs.cri.$refs.usersel && this.$refs.paged.$refs.cri.$refs.usersel.resetAll) {
|
|
422
|
+
this.$refs.paged.$refs.cri.$refs.usersel.resetAll()
|
|
423
|
+
}
|
|
424
|
+
this.orgCondtionStr = ''
|
|
425
|
+
this.userOrgConditionStr = ''
|
|
426
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
427
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
428
|
+
})
|
|
429
|
+
},
|
|
430
|
+
show() {
|
|
431
|
+
this.criteriaShow = true
|
|
432
|
+
},
|
|
433
|
+
hidden() {
|
|
434
|
+
this.criteriaShow = !this.criteriaShow
|
|
435
|
+
},
|
|
436
|
+
getRes(condition, obj) {
|
|
437
|
+
this.orgCondtionStr = condition
|
|
438
|
+
},
|
|
439
|
+
getUserRes (condition) {
|
|
440
|
+
this.userOrgConditionStr = condition
|
|
441
|
+
},
|
|
442
|
+
stamp() {
|
|
443
|
+
this.all = false
|
|
444
|
+
//默认选择要打印的列
|
|
445
|
+
this.modelval = defaultPrint.config
|
|
446
|
+
this.fields = this.getfield
|
|
447
|
+
console.log('所有打印字段', this.fields)
|
|
448
|
+
this.printshow = true
|
|
449
|
+
this.put()
|
|
450
|
+
},
|
|
451
|
+
put() {
|
|
452
|
+
// 对Modelval进行排序
|
|
453
|
+
this.sortModelval()
|
|
454
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>过户查询统计报表</th></tr><tr>`
|
|
455
|
+
for (let key of this.modelval) {
|
|
456
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
457
|
+
}
|
|
458
|
+
this.thead += '</tr>'
|
|
459
|
+
},
|
|
460
|
+
print() {
|
|
461
|
+
this.$refs.print.PrintAsFile()
|
|
462
|
+
this.printshow = false
|
|
463
|
+
},
|
|
464
|
+
close() {
|
|
465
|
+
this.printshow = false
|
|
466
|
+
this.all = false
|
|
467
|
+
},
|
|
468
|
+
// 对选择的列进行排序
|
|
469
|
+
sortModelval() {
|
|
470
|
+
let sortModel = []
|
|
471
|
+
Object.keys(this.fields).forEach((key) => {
|
|
472
|
+
if (this.modelval.includes(key)) {
|
|
473
|
+
sortModel.push(key)
|
|
474
|
+
}
|
|
475
|
+
})
|
|
476
|
+
this.modelval = sortModel
|
|
477
|
+
console.log('选择的打印的字段', this.modelval)
|
|
478
|
+
},
|
|
479
|
+
sort (field, rule) {
|
|
480
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
481
|
+
for (let key in this.orderFields) {
|
|
482
|
+
if (key === field) {
|
|
483
|
+
this.orderFields[key] = rule
|
|
484
|
+
} else {
|
|
485
|
+
this.orderFields[key] = 'no'
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
// 如果新规则不排序,还原为默认排序
|
|
489
|
+
if (rule === 'no') {
|
|
490
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
491
|
+
} else {
|
|
492
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
this.search()
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
watch: {
|
|
499
|
+
'all'(val) {
|
|
500
|
+
if (val) {
|
|
501
|
+
this.modelval = this.bodyData
|
|
502
|
+
} else {
|
|
503
|
+
this.modelval = defaultPrint.config
|
|
504
|
+
this.put()
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
'modelval.length'() {
|
|
508
|
+
this.put()
|
|
509
|
+
},
|
|
510
|
+
sumsmodel:{
|
|
511
|
+
handler: function(val) {
|
|
512
|
+
this.getotherfooter();
|
|
513
|
+
},
|
|
514
|
+
deep: true
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
computed: {
|
|
518
|
+
getCondition() {
|
|
519
|
+
return {
|
|
520
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr + this.userOrgConditionStr,
|
|
521
|
+
orderitem: this.orderitem?`${this.orderitem}`: `'f_operate_date desc'` }
|
|
522
|
+
},
|
|
523
|
+
getfield() {
|
|
524
|
+
return exportConfig.transferConfig
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
</script>
|