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,489 @@
|
|
|
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
|
+
|
|
45
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
46
|
+
:field="$parent.$parent.getfield"
|
|
47
|
+
:header="$parent.$parent.other"
|
|
48
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="enableQuery" template-name='启用查询导出'
|
|
49
|
+
:choose-col="true"></export-excel>
|
|
50
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
51
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
52
|
+
titletable="启用记录"
|
|
53
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
54
|
+
<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>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
59
|
+
<div class="col-sm-2 form-group">
|
|
60
|
+
<label class="font_normal_body">表  号</label>
|
|
61
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
62
|
+
condition="f_meternumber = '{}'" placeholder='表号'>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="col-sm-2 form-group">
|
|
65
|
+
<label class="font_normal_body">卡  号</label>
|
|
66
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
|
|
67
|
+
condition="f_card_id = '{}'" placeholder='卡号'>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-sm-2 form-group">
|
|
70
|
+
<label class="font_normal_body">小 区</label>
|
|
71
|
+
<v-select class="select_list select"
|
|
72
|
+
v-model="model.f_residential_area"
|
|
73
|
+
:value.sync="model.f_residential_area"
|
|
74
|
+
:options='$parent.$parent.residentialarea'
|
|
75
|
+
style="width: 60%"
|
|
76
|
+
placeholder='选择小区'
|
|
77
|
+
condition="f_residential_area = '{}'"
|
|
78
|
+
close-on-select>
|
|
79
|
+
|
|
80
|
+
</v-select>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="col-sm-2 form-group">
|
|
83
|
+
<label class="font_normal_body">具体地址</label>
|
|
84
|
+
<div class="btn-group select_list select" style="width: 60%;">
|
|
85
|
+
<input type="text" style="width: 27%;" placeholder="楼号" class="input_search" v-model="model.f_building" condition="f_building = '{}'"/> -
|
|
86
|
+
<input type="text" style="width: 20%;" placeholder="单元" class="input_search" v-model="model.f_unit" condition="f_unit = '{}'"/> -
|
|
87
|
+
<input type="text" style="width: 36%;" placeholder="室号" class="input_search" v-model="model.f_room" condition="f_room = '{}'" />
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-2 form-group">
|
|
91
|
+
<label class="font_normal_body">客户名称</label>
|
|
92
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
93
|
+
condition=" f_user_name like '%{}%'" placeholder='客户名称'
|
|
94
|
+
:size="model.f_user_name ? model.f_user_name.length * 2 : 1">
|
|
95
|
+
</div>
|
|
96
|
+
<div class="col-sm-2 form-group">
|
|
97
|
+
<label class="font_normal_body">客户地址</label>
|
|
98
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
99
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="col-sm-2 form-group">
|
|
102
|
+
<label class="font_normal_body">操作类型</label>
|
|
103
|
+
<v-select :value.sync="model.f_operat_type"
|
|
104
|
+
v-model="model.f_operat_type"
|
|
105
|
+
:options='$parent.$parent.operattype' placeholder='请选择'
|
|
106
|
+
condition="f_operat_type = '{}'"
|
|
107
|
+
close-on-select></v-select>
|
|
108
|
+
</div>
|
|
109
|
+
<res-select-user-group
|
|
110
|
+
:operator-initres="$parent.$parent.initres"
|
|
111
|
+
:user-initres="$parent.$parent.userInitres"
|
|
112
|
+
:show-component="['company','department','operator','slicearea','user_company']"
|
|
113
|
+
@re-res="$parent.$parent.getRes"
|
|
114
|
+
@re-us-res="$parent.$parent.getUserRes"
|
|
115
|
+
v-ref:usersel>
|
|
116
|
+
</res-select-user-group>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</criteria>
|
|
120
|
+
|
|
121
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
122
|
+
<template partial='head'>
|
|
123
|
+
<tr>
|
|
124
|
+
<th>
|
|
125
|
+
<!-- <nobr>客户编号</nobr>-->
|
|
126
|
+
<data-order field="f_userinfo_code" name="客户编号"
|
|
127
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
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
|
+
<data-order field="f_address" name="客户地址"
|
|
141
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
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
|
+
<data-order field="f_operate_date" name="启用日期"
|
|
158
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
|
|
159
|
+
</th>
|
|
160
|
+
<th>
|
|
161
|
+
<nobr>操作类型</nobr>
|
|
162
|
+
</th>
|
|
163
|
+
<th>
|
|
164
|
+
<nobr>操作员人员</nobr>
|
|
165
|
+
</th>
|
|
166
|
+
<th>
|
|
167
|
+
<nobr>操作员部门</nobr>
|
|
168
|
+
</th>
|
|
169
|
+
<th>
|
|
170
|
+
<nobr>操作员公司</nobr>
|
|
171
|
+
</th>
|
|
172
|
+
<th>
|
|
173
|
+
<nobr>用户公司</nobr>
|
|
174
|
+
</th>
|
|
175
|
+
<th><nobr>附件</nobr></th>
|
|
176
|
+
</tr>
|
|
177
|
+
</template>
|
|
178
|
+
<template partial='body'>
|
|
179
|
+
<td style="text-align: center;">
|
|
180
|
+
<nobr>
|
|
181
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
|
|
182
|
+
</td>
|
|
183
|
+
<td style="text-align: center;">
|
|
184
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
185
|
+
</td>
|
|
186
|
+
<td style="text-align: center;">
|
|
187
|
+
<nobr>{{row.f_olduserinfo_code}}</nobr>
|
|
188
|
+
</td>
|
|
189
|
+
<td style="text-align: center;">
|
|
190
|
+
<nobr>{{row.f_user_type}}</nobr>
|
|
191
|
+
</td>
|
|
192
|
+
<td style="text-align: center;">
|
|
193
|
+
<nobr>{{row.f_address}}</nobr>
|
|
194
|
+
</td>
|
|
195
|
+
<td style="text-align: center;">
|
|
196
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
197
|
+
</td>
|
|
198
|
+
<td style="text-align: center;">
|
|
199
|
+
<nobr>{{row.f_enable_reason}}</nobr>
|
|
200
|
+
</td>
|
|
201
|
+
<td style="text-align: center;">
|
|
202
|
+
<nobr>{{row.f_othereason}}</nobr>
|
|
203
|
+
</td>
|
|
204
|
+
<td style="text-align: center;">
|
|
205
|
+
<nobr>{{row.f_state}}</nobr>
|
|
206
|
+
</td>
|
|
207
|
+
<td style="text-align: center;">
|
|
208
|
+
<nobr>{{row.f_operate_date}}</nobr>
|
|
209
|
+
</td>
|
|
210
|
+
<td style="text-align: center;">
|
|
211
|
+
<nobr>{{row.f_operat_type}}</nobr>
|
|
212
|
+
</td>
|
|
213
|
+
<td style="text-align: center;">
|
|
214
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
215
|
+
</td>
|
|
216
|
+
<td style="text-align: center;">
|
|
217
|
+
<nobr>{{row.f_depname}}</nobr>
|
|
218
|
+
</td>
|
|
219
|
+
<td style="text-align: center;">
|
|
220
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
221
|
+
</td>
|
|
222
|
+
<td style="text-align: center;">
|
|
223
|
+
<nobr>{{row.f_us_orgname}}</nobr>
|
|
224
|
+
</td>
|
|
225
|
+
<td style="text-align: center;"><nobr>
|
|
226
|
+
<button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
|
|
227
|
+
</nobr></td>
|
|
228
|
+
</template>
|
|
229
|
+
<template partial='foot'></template>
|
|
230
|
+
</data-grid>
|
|
231
|
+
</criteria-paged>
|
|
232
|
+
|
|
233
|
+
<!-- <table class="table-hover">-->
|
|
234
|
+
<!-- <tr style="position: relative" class="table-bordered">-->
|
|
235
|
+
<!-- <td-->
|
|
236
|
+
<!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
|
|
237
|
+
<!-- 汇总信息-->
|
|
238
|
+
<!-- </td>-->
|
|
239
|
+
<!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">合计: {{sumsmodel.f_pregas}}</td>-->
|
|
240
|
+
<!-- </tr>-->
|
|
241
|
+
<!-- </table>-->
|
|
242
|
+
</div>
|
|
243
|
+
<div class="flex" v-if="show">
|
|
244
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
<modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
|
248
|
+
<article slot="modal-body">
|
|
249
|
+
<upload :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="启用" :isremark="false" style="width:auto" ></upload>
|
|
250
|
+
</article>
|
|
251
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
252
|
+
</footer>
|
|
253
|
+
</modal>
|
|
254
|
+
</div>
|
|
255
|
+
</template>
|
|
256
|
+
|
|
257
|
+
<script>
|
|
258
|
+
import {PagedList} from 'vue-client'
|
|
259
|
+
import defaultPrint from './config/DefaultPrint'
|
|
260
|
+
import exportConfig from './config/exportConfig'
|
|
261
|
+
import ResSelectUserGroup from './ResSelectUserGroup.vue'
|
|
262
|
+
|
|
263
|
+
let readySomething = async function (self) {
|
|
264
|
+
self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
|
|
265
|
+
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
266
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
267
|
+
await self.$MagLoadParams.loadParam()
|
|
268
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
269
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
270
|
+
}
|
|
271
|
+
export default {
|
|
272
|
+
components: {
|
|
273
|
+
'res-select-user-group': ResSelectUserGroup
|
|
274
|
+
},
|
|
275
|
+
props:['data','residentialarea'],
|
|
276
|
+
title: '启用查询',
|
|
277
|
+
data() {
|
|
278
|
+
return {
|
|
279
|
+
data: {},
|
|
280
|
+
other: [],
|
|
281
|
+
footer: [],
|
|
282
|
+
model: new PagedList('api/af-revenue/sql/enableQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}),
|
|
283
|
+
criteriaShow: false,
|
|
284
|
+
headData: ["客户编号", "客户名称", "操作人", "操作日期", "启用状态", "停用原因", "其他停用原因", "同步状态"],
|
|
285
|
+
bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
|
|
286
|
+
orgCondtionStr: '',
|
|
287
|
+
userOrgConditionStr: '',
|
|
288
|
+
modelval: [],
|
|
289
|
+
printshow: false,
|
|
290
|
+
all: false,
|
|
291
|
+
fields: {},
|
|
292
|
+
config: {
|
|
293
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_enable_reason', 'f_othereason', 'f_state', 'f_operate_date', 'f_operat_type', 'f_operator']
|
|
294
|
+
},
|
|
295
|
+
//排序
|
|
296
|
+
orderitem:'f_operate_date desc',
|
|
297
|
+
orderFields: {
|
|
298
|
+
f_operate_date: 'no'
|
|
299
|
+
},
|
|
300
|
+
//默认打印列
|
|
301
|
+
defaultfield: [],
|
|
302
|
+
initres: {
|
|
303
|
+
org: [this.$login.f.orgid],
|
|
304
|
+
dep: [],
|
|
305
|
+
user: [],
|
|
306
|
+
},
|
|
307
|
+
userInitres: {
|
|
308
|
+
org: [],
|
|
309
|
+
dep: [],
|
|
310
|
+
user: []
|
|
311
|
+
},
|
|
312
|
+
|
|
313
|
+
show: false,
|
|
314
|
+
rowdata: {},
|
|
315
|
+
thead: '',
|
|
316
|
+
showupload:false,
|
|
317
|
+
selected:{},
|
|
318
|
+
tfoot: '',
|
|
319
|
+
//合计数据
|
|
320
|
+
sumsmodel: {},
|
|
321
|
+
operattype:[{label: '全部', value: ''},{label: '启用', value: '启用'},{label: '复拆表', value: '复拆表'}]
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
ready() {
|
|
325
|
+
readySomething(this).then(() => {
|
|
326
|
+
this.$emit('ready')
|
|
327
|
+
}).catch((error) => {
|
|
328
|
+
this.$emit('error', error)
|
|
329
|
+
})
|
|
330
|
+
},
|
|
331
|
+
methods: {
|
|
332
|
+
view(row){
|
|
333
|
+
this.showupload = true
|
|
334
|
+
this.selected= row
|
|
335
|
+
},
|
|
336
|
+
getotherfooter() {
|
|
337
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
338
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
339
|
+
this.other = [];
|
|
340
|
+
this.footer = [];
|
|
341
|
+
let exportdata = this.getCondition;
|
|
342
|
+
let otherInData = [];
|
|
343
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
344
|
+
let footerData = [], exportfield = this.getfield;
|
|
345
|
+
footerData.push("合计");
|
|
346
|
+
let self = this;
|
|
347
|
+
for (var field in self.sumsmodel) {
|
|
348
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
349
|
+
}
|
|
350
|
+
this.footer.push(footerData);
|
|
351
|
+
this.other.push(otherInData);
|
|
352
|
+
let date = []
|
|
353
|
+
date.push(`起始时间:${this.$refs.paged.$refs.cri.model.startDate}`)
|
|
354
|
+
date.push(`终止时间:${this.$refs.paged.$refs.cri.model.endDate}`)
|
|
355
|
+
this.other.push(date)
|
|
356
|
+
},
|
|
357
|
+
search() {
|
|
358
|
+
this.$refs.paged.$refs.cri.search()
|
|
359
|
+
},
|
|
360
|
+
cancel() {
|
|
361
|
+
this.show = false
|
|
362
|
+
},
|
|
363
|
+
selfSearch(args) {
|
|
364
|
+
if (this.data) {
|
|
365
|
+
this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
|
|
366
|
+
this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
|
|
367
|
+
}
|
|
368
|
+
args.condition = `${args.condition} ` + this.orgCondtionStr + this.userOrgConditionStr
|
|
369
|
+
args.condition = args.condition.replace(/f_zones/, "f_slice_area")
|
|
370
|
+
this.model.search(args.condition, args.model)
|
|
371
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
372
|
+
},
|
|
373
|
+
|
|
374
|
+
clear() {
|
|
375
|
+
// 清空组织、片区、人员
|
|
376
|
+
if (this.$refs.paged.$refs.cri.$refs.usersel && this.$refs.paged.$refs.cri.$refs.usersel.resetAll) {
|
|
377
|
+
this.$refs.paged.$refs.cri.$refs.usersel.resetAll()
|
|
378
|
+
}
|
|
379
|
+
this.orgCondtionStr = ''
|
|
380
|
+
this.userOrgConditionStr = ''
|
|
381
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
382
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
383
|
+
})
|
|
384
|
+
},
|
|
385
|
+
dealmsg(val) {
|
|
386
|
+
console.log('---------------dealmsg')
|
|
387
|
+
this.rowdata = val
|
|
388
|
+
this.show = true
|
|
389
|
+
val.model = this.model.model
|
|
390
|
+
this.$dispatch('deal-msg', val)
|
|
391
|
+
},
|
|
392
|
+
hidden() {
|
|
393
|
+
this.criteriaShow = !this.criteriaShow
|
|
394
|
+
},
|
|
395
|
+
getRes(obj) {
|
|
396
|
+
this.orgCondtionStr = obj
|
|
397
|
+
},
|
|
398
|
+
getUserRes (condition) {
|
|
399
|
+
this.userOrgConditionStr = condition
|
|
400
|
+
},
|
|
401
|
+
stamp() {
|
|
402
|
+
this.all = false
|
|
403
|
+
//默认选择要打印的列
|
|
404
|
+
this.modelval = defaultPrint.config
|
|
405
|
+
this.fields = this.getfield
|
|
406
|
+
console.log('所有打印字段', this.fields)
|
|
407
|
+
this.printshow = true
|
|
408
|
+
this.put()
|
|
409
|
+
},
|
|
410
|
+
put() {
|
|
411
|
+
// 对Modelval进行排序
|
|
412
|
+
this.sortModelval()
|
|
413
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
|
|
414
|
+
for (let key of this.modelval) {
|
|
415
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
416
|
+
}
|
|
417
|
+
this.thead += '</tr>'
|
|
418
|
+
},
|
|
419
|
+
print() {
|
|
420
|
+
this.$refs.print.PrintAsFile()
|
|
421
|
+
this.printshow = false
|
|
422
|
+
},
|
|
423
|
+
close() {
|
|
424
|
+
this.printshow = false
|
|
425
|
+
this.all = false
|
|
426
|
+
},
|
|
427
|
+
// 对选择的列进行排序
|
|
428
|
+
sortModelval() {
|
|
429
|
+
let sortModel = []
|
|
430
|
+
Object.keys(this.fields).forEach((key) => {
|
|
431
|
+
if (this.modelval.includes(key)) {
|
|
432
|
+
sortModel.push(key)
|
|
433
|
+
}
|
|
434
|
+
})
|
|
435
|
+
this.modelval = sortModel
|
|
436
|
+
console.log('选择的打印的字段', this.modelval)
|
|
437
|
+
},
|
|
438
|
+
sort (field, rule) {
|
|
439
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
440
|
+
for (let key in this.orderFields) {
|
|
441
|
+
if (key === field) {
|
|
442
|
+
this.orderFields[key] = rule
|
|
443
|
+
} else {
|
|
444
|
+
this.orderFields[key] = 'no'
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
// 如果新规则不排序,还原为默认排序
|
|
448
|
+
if (rule === 'no') {
|
|
449
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
450
|
+
} else {
|
|
451
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
this.search()
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
|
|
458
|
+
watch: {
|
|
459
|
+
'all'(val) {
|
|
460
|
+
if (val) {
|
|
461
|
+
this.modelval = this.bodyData
|
|
462
|
+
} else {
|
|
463
|
+
this.modelval = defaultPrint.config
|
|
464
|
+
this.put()
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
sumsmodel: {
|
|
468
|
+
handler: function (val) {
|
|
469
|
+
this.getotherfooter();
|
|
470
|
+
},
|
|
471
|
+
deep: true
|
|
472
|
+
},
|
|
473
|
+
'modelval.length'() {
|
|
474
|
+
this.put()
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
computed: {
|
|
478
|
+
getCondition() {
|
|
479
|
+
return {
|
|
480
|
+
condition: `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr + this.userOrgConditionStr,
|
|
481
|
+
orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
getfield() {
|
|
485
|
+
return exportConfig.enableConfig
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
</script>
|