manage-client 4.0.16 → 4.0.18
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/package.json +1 -1
- package/src/components/SellReport/YuShouTable.vue +1 -1
- package/src/filiale/WEINAN/RecordInfoQuery.vue +2 -0
- package/src/filiale/WEINAN/config/exportConfig.js +484 -487
- package/src/filiale/jinbin/exportConfig.js +1110 -0
- package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +1372 -0
- package/src/filiale/jinbin/sale.js +7 -0
- package/src/filiale/yangchun/DeviceQuery.vue +619 -0
- package/src/filiale/yangchun/config/exportConfig.js +1 -0
- package/src/filiale/yangchun/sale.js +4 -0
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<div style="flex:1;" class="flex" v-if="!show">
|
|
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 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_user_name"
|
|
18
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label class="font_normal_body" title="旧客户编号">档案编号</label>
|
|
22
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
|
|
23
|
+
condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
|
|
24
|
+
</div>
|
|
25
|
+
<div class="col-sm-2 form-group" >
|
|
26
|
+
<label class="font_normal_body">客户电话</label>
|
|
27
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
28
|
+
condition="f_user_phone like '%{}%'" placeholder="客户电话">
|
|
29
|
+
</div>
|
|
30
|
+
<div class="span" style = "float:right;">
|
|
31
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
32
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
33
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
34
|
+
|
|
35
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
36
|
+
:field="$parent.$parent.getExportField"
|
|
37
|
+
:header="$parent.$parent.other"
|
|
38
|
+
v-if="$parent.$parent.authArr.includes('档案查询导出')"
|
|
39
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="deviceQuery" template-name='表具设备查询导出' :choose-col="true"></export-excel>
|
|
40
|
+
<print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
|
|
41
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
42
|
+
titletable="表具设备查询"
|
|
43
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
44
|
+
<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>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
48
|
+
|
|
49
|
+
<div class="col-sm-2 form-group" >
|
|
50
|
+
<label class="font_normal_body">客户地址</label>
|
|
51
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
52
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="col-sm-2 form-group" >
|
|
55
|
+
<label class="font_normal_body">用户状态</label>
|
|
56
|
+
<v-select :value.sync="model.f_user_state"
|
|
57
|
+
v-model="model.f_user_state"
|
|
58
|
+
:options='$parent.$parent.userstates' placeholder='请选择'
|
|
59
|
+
condition="f_user_state = '{}'"
|
|
60
|
+
close-on-select></v-select>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-2 form-group">
|
|
63
|
+
<label class="font_normal_body">客户类型</label>
|
|
64
|
+
<v-select :value.sync="model.f_user_type"
|
|
65
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
66
|
+
condition="f_user_type = '{}'"
|
|
67
|
+
close-on-select></v-select>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-sm-2 form-group" >
|
|
70
|
+
<label class="font_normal_body">所属表 </label>
|
|
71
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
72
|
+
condition="f_meternumber = '{}'" placeholder='所属表(表号)'>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div class="col-sm-2 form-group" >
|
|
76
|
+
<label class="font_normal_body">设备类型</label>
|
|
77
|
+
<v-select :value.sync="model.f_devices_type"
|
|
78
|
+
v-model="model.f_devices_type"
|
|
79
|
+
:options='$parent.$parent.deviceTypes' placeholder='请选择'
|
|
80
|
+
condition="f_devices_type = '{}'"
|
|
81
|
+
close-on-select></v-select>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="col-sm-2 form-group" >
|
|
84
|
+
<label class="font_normal_body">购买方式</label>
|
|
85
|
+
<v-select :value.sync="model.watchpurchase"
|
|
86
|
+
v-model="model.watchpurchase"
|
|
87
|
+
:options='$parent.$parent.watchpurchases' placeholder='请选择'
|
|
88
|
+
condition="watchpurchase = '{}'"
|
|
89
|
+
close-on-select></v-select>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="col-sm-2 form-group" >
|
|
92
|
+
<label class="font_normal_body">管道类型</label>
|
|
93
|
+
<v-select :value.sync="model.f_pipe_type"
|
|
94
|
+
v-model="model.f_pipe_type"
|
|
95
|
+
:options='$parent.$parent.pipetype' placeholder='请选择'
|
|
96
|
+
condition="f_pipe_type = '{}'"
|
|
97
|
+
close-on-select></v-select>
|
|
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_meter_number"
|
|
102
|
+
condition="f_meternumber = '{}'" 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_card_id"
|
|
107
|
+
condition="f_card_id = '{}'" 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_devices_no"
|
|
112
|
+
condition="f_devices_no like '%{}%'" placeholder='设备编号'>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="col-sm-2 form-group" >
|
|
115
|
+
<label class="font_normal_body">设备品牌</label>
|
|
116
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_brand"
|
|
117
|
+
condition="f_brand like '%{}%'" placeholder='设备品牌'>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="col-sm-2 form-group" >
|
|
120
|
+
<label class="font_normal_body">设备型号</label>
|
|
121
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_devices_model"
|
|
122
|
+
condition="f_devices_model like '%{}%'" placeholder='设备型号'>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="col-sm-2 form-group" >
|
|
125
|
+
<label class="font_normal_body">设备数量</label>
|
|
126
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_devices_num"
|
|
127
|
+
condition="f_devices_num = {}" placeholder='设备数量'>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="col-sm-2 form-group" >
|
|
130
|
+
<label class="font_normal_body" title="安装日期大于">安装日期</label>
|
|
131
|
+
<datepicker placeholder="安装日期大于" style="width:60%"
|
|
132
|
+
v-model="model.f_input_start_date"
|
|
133
|
+
:value.sync="model.f_input_start_date"
|
|
134
|
+
:format="'yyyy-MM-dd'"
|
|
135
|
+
:show-reset-button="true"
|
|
136
|
+
condition="f_input_date >= '{} 00:00:00'">
|
|
137
|
+
</datepicker>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="col-sm-2 form-group" >
|
|
140
|
+
<label class="font_normal_body" title="安装日期小于">安装日期</label>
|
|
141
|
+
<datepicker placeholder="安装日期小于" style="width:60%"
|
|
142
|
+
v-model="model.f_input_end_date"
|
|
143
|
+
:value.sync="model.f_input_end_date"
|
|
144
|
+
:format="'yyyy-MM-dd'"
|
|
145
|
+
:show-reset-button="true"
|
|
146
|
+
condition="f_input_date <= '{} 23:59:59'">
|
|
147
|
+
</datepicker>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="col-sm-2 form-group" >
|
|
150
|
+
<label class="font_normal_body" >到期日期</label>
|
|
151
|
+
<datepicker placeholder="到期日期大于" style="width:60%"
|
|
152
|
+
v-model="model.f_expire_start_date"
|
|
153
|
+
:value.sync="model.f_expire_start_date"
|
|
154
|
+
:format="'yyyy-MM-dd'"
|
|
155
|
+
:show-reset-button="true"
|
|
156
|
+
condition="f_expire_date >= '{} 00:00:00'">
|
|
157
|
+
</datepicker>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="col-sm-2 form-group" >
|
|
160
|
+
<label class="font_normal_body">到期日期</label>
|
|
161
|
+
<datepicker placeholder="到期日期小于" style="width:60%"
|
|
162
|
+
v-model="model.f_expire_end_date"
|
|
163
|
+
:value.sync="model.f_expire_end_date"
|
|
164
|
+
:format="'yyyy-MM-dd'"
|
|
165
|
+
:show-reset-button="true"
|
|
166
|
+
condition="f_expire_date <= '{} 23:59:59'">
|
|
167
|
+
</datepicker>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="col-sm-2 form-group" >
|
|
170
|
+
<label class="font_normal_body" title="生产日期大于" >生产日期</label>
|
|
171
|
+
<datepicker placeholder="生产日期大于" style="width:60%"
|
|
172
|
+
v-model="model.f_make_start_date"
|
|
173
|
+
:value.sync="model.f_make_start_date"
|
|
174
|
+
:format="'yyyy-MM-dd'"
|
|
175
|
+
:show-reset-button="true"
|
|
176
|
+
condition="f_make_date >= '{} 00:00:00'">
|
|
177
|
+
</datepicker>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="col-sm-2 form-group" >
|
|
180
|
+
<label class="font_normal_body" title="生产日期小于">生产日期</label>
|
|
181
|
+
<datepicker placeholder="生产日期小于" style="width:60%"
|
|
182
|
+
v-model="model.f_make_end_date"
|
|
183
|
+
:value.sync="model.f_make_end_date"
|
|
184
|
+
:format="'yyyy-MM-dd'"
|
|
185
|
+
:show-reset-button="true"
|
|
186
|
+
condition="f_make_date <= '{} 23:59:59'">
|
|
187
|
+
</datepicker>
|
|
188
|
+
</div>
|
|
189
|
+
<div class="col-sm-2 form-group" >
|
|
190
|
+
<label for="startDate" class="font_normal_body" title="操作开始日期">开始日期</label>
|
|
191
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
192
|
+
v-model="model.startDate"
|
|
193
|
+
:value.sync="model.startDate"
|
|
194
|
+
:format="'yyyy-MM-dd'"
|
|
195
|
+
:show-reset-button="true"
|
|
196
|
+
condition="f_operate_date >= '{} 00:00:00'">
|
|
197
|
+
</datepicker>
|
|
198
|
+
</div>
|
|
199
|
+
<div class="col-sm-2 form-group" >
|
|
200
|
+
<label for="endDate" class="font_normal_body" title="操作结束日期">结束日期</label>
|
|
201
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
202
|
+
v-model="model.endDate"
|
|
203
|
+
:value.sync="model.endDate"
|
|
204
|
+
:format="'yyyy-MM-dd'"
|
|
205
|
+
:show-reset-button="true"
|
|
206
|
+
condition="f_operate_date <= '{} 23:59:59'">
|
|
207
|
+
</datepicker>
|
|
208
|
+
</div>
|
|
209
|
+
<div class="col-sm-2 form-group" >
|
|
210
|
+
<label class="font_normal_body">使用年限</label>
|
|
211
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_service_life"
|
|
212
|
+
condition="f_service_life = '{}'" placeholder='使用年限'>
|
|
213
|
+
</div>
|
|
214
|
+
<div class="col-sm-2 form-group" >
|
|
215
|
+
<label class="font_normal_body">备注信息</label>
|
|
216
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_comments"
|
|
217
|
+
condition="f_comments like '%{}%'" placeholder='备注'>
|
|
218
|
+
</div>
|
|
219
|
+
<div class="col-sm-2 form-group">
|
|
220
|
+
<label class="font_normal_body" >抄表员 </label>
|
|
221
|
+
<v-select :value.sync="model.f_inputtor"
|
|
222
|
+
v-model="model.f_inputtor"
|
|
223
|
+
:options='$parent.$parent.inputtores' placeholder='请选择'
|
|
224
|
+
condition="f_inputtor = '{}'"
|
|
225
|
+
close-on-select :search="false">
|
|
226
|
+
</v-select>
|
|
227
|
+
</div>
|
|
228
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
|
|
229
|
+
<div class="col-sm-2 form-group">
|
|
230
|
+
<label class="font_normal_body" >是否到期</label>
|
|
231
|
+
<v-select :value.sync="model.f_isexpire"
|
|
232
|
+
v-model="model.f_isexpire"
|
|
233
|
+
:options='$parent.$parent.isexpire' placeholder='请选择'
|
|
234
|
+
condition="f_isexpire = '{}'"
|
|
235
|
+
close-on-select :search="false">
|
|
236
|
+
</v-select>
|
|
237
|
+
</div>
|
|
238
|
+
<div class="col-sm-2 form-group" >
|
|
239
|
+
<label class="font_normal_body" title="通气时间大于" >通气时间</label>
|
|
240
|
+
<datepicker placeholder="通气时间大于" style="width:60%"
|
|
241
|
+
v-model="model.f_uservent_start_date"
|
|
242
|
+
:value.sync="model.f_uservent_start_date"
|
|
243
|
+
:format="'yyyy-MM-dd'"
|
|
244
|
+
:show-reset-button="true"
|
|
245
|
+
condition="f_uservent_date >= '{} 00:00:00'">
|
|
246
|
+
</datepicker>
|
|
247
|
+
</div>
|
|
248
|
+
<div class="col-sm-2 form-group" >
|
|
249
|
+
<label class="font_normal_body" title="通气时间小于">通气时间</label>
|
|
250
|
+
<datepicker placeholder="通气时间小于" style="width:60%"
|
|
251
|
+
v-model="model.f_uservent_end_date"
|
|
252
|
+
:value.sync="model.f_uservent_end_date"
|
|
253
|
+
:format="'yyyy-MM-dd'"
|
|
254
|
+
:show-reset-button="true"
|
|
255
|
+
condition="f_uservent_date <= '{} 23:59:59'">
|
|
256
|
+
</datepicker>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
</criteria>
|
|
261
|
+
|
|
262
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
263
|
+
<template partial='head'>
|
|
264
|
+
<tr>
|
|
265
|
+
<th>
|
|
266
|
+
<!--<nobr>客户编号</nobr>-->
|
|
267
|
+
<data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
268
|
+
</th>
|
|
269
|
+
<th><nobr>客户名称</nobr></th>
|
|
270
|
+
<th><nobr>档案编号</nobr></th>
|
|
271
|
+
<th><nobr>客户电话</nobr></th>
|
|
272
|
+
<th>
|
|
273
|
+
<!--<nobr>客户地址</nobr>-->
|
|
274
|
+
<data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
275
|
+
</th>
|
|
276
|
+
<th><nobr>客户状态</nobr></th>
|
|
277
|
+
<th><nobr>所属表具(表号)</nobr></th>
|
|
278
|
+
<th><nobr>购买方式</nobr></th>
|
|
279
|
+
<th><nobr>设备类型</nobr></th>
|
|
280
|
+
<th><nobr>设备编号</nobr></th>
|
|
281
|
+
<th><nobr>设备品牌</nobr></th>
|
|
282
|
+
<th><nobr>设备型号</nobr></th>
|
|
283
|
+
<th><nobr>设备数量</nobr></th>
|
|
284
|
+
<th><nobr>设备状态</nobr></th>
|
|
285
|
+
<th><nobr>通气时间</nobr></th>
|
|
286
|
+
|
|
287
|
+
<th><nobr>管道类型</nobr></th>
|
|
288
|
+
<th>
|
|
289
|
+
<!--<nobr>生产日期</nobr>-->
|
|
290
|
+
<data-order field="f_make_date" name="生产日期" :order.sync="$parent.$parent.$parent.orderFields.f_make_date"></data-order>
|
|
291
|
+
</th>
|
|
292
|
+
<th><nobr>使用年限</nobr></th>
|
|
293
|
+
<th><nobr>安装人</nobr></th>
|
|
294
|
+
<th>
|
|
295
|
+
<!--<nobr>安装日期</nobr>-->
|
|
296
|
+
<data-order field="f_input_date" name="安装日期" :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
|
|
297
|
+
</th>
|
|
298
|
+
<th>
|
|
299
|
+
<!--<nobr>到期日期</nobr>-->
|
|
300
|
+
<data-order field="f_expire_date" name="到期日期" :order.sync="$parent.$parent.$parent.orderFields.f_expire_date"></data-order>
|
|
301
|
+
</th>
|
|
302
|
+
<th><nobr>是否到期</nobr></th>
|
|
303
|
+
<th><nobr>操作人</nobr></th>
|
|
304
|
+
<th>
|
|
305
|
+
<!--<nobr>操作时间</nobr>-->
|
|
306
|
+
<data-order field="f_operate_date" name="操作时间" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
|
|
307
|
+
</th>
|
|
308
|
+
<th><nobr>备注</nobr></th>
|
|
309
|
+
</tr>
|
|
310
|
+
</template>
|
|
311
|
+
<template partial='body'>
|
|
312
|
+
<td style="text-align: center;"><nobr>
|
|
313
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
314
|
+
</nobr> </td>
|
|
315
|
+
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
316
|
+
<td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
|
|
317
|
+
<td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
|
|
318
|
+
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
319
|
+
<td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
|
|
320
|
+
<td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
321
|
+
<td style="text-align: center;"><nobr>{{row.watchpurchase}}</nobr></td>
|
|
322
|
+
<td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
|
|
323
|
+
<td style="text-align: center;"><nobr>{{row.f_devices_no}}</nobr></td>
|
|
324
|
+
<td style="text-align: center;"><nobr>{{row.f_brand}}</nobr></td>
|
|
325
|
+
<td style="text-align: center;"><nobr>{{row.f_devices_model}}</nobr></td>
|
|
326
|
+
<td style="text-align: center;"><nobr>{{row.f_devices_num}}</nobr></td>
|
|
327
|
+
<td style="text-align: center;"><nobr>{{row.f_userinfodevices_state}}</nobr></td>
|
|
328
|
+
<td style="text-align: center;"><nobr>{{row.f_uservent_date}}</nobr></td>
|
|
329
|
+
|
|
330
|
+
<td style="text-align: center;"><nobr>{{row.f_pipe_type}}</nobr></td>
|
|
331
|
+
<td style="text-align: center;"><nobr>{{row.f_make_date}}</nobr></td>
|
|
332
|
+
<td style="text-align: center;"><nobr>{{row.f_service_life}}</nobr></td>
|
|
333
|
+
<td style="text-align: center;"><nobr>{{row.f_input_person}}</nobr></td>
|
|
334
|
+
<td style="text-align: center;"><nobr>{{row.f_input_date}}</nobr></td>
|
|
335
|
+
<td style="text-align: center;"><nobr>{{row.f_expire_date}}</nobr></td>
|
|
336
|
+
<td style="text-align: center;"><nobr>{{row.f_isexpire}}</nobr></td>
|
|
337
|
+
<td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
|
|
338
|
+
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
339
|
+
<td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
|
|
340
|
+
</template>
|
|
341
|
+
<template partial='foot'>
|
|
342
|
+
|
|
343
|
+
</template>
|
|
344
|
+
</data-grid>
|
|
345
|
+
</criteria-paged>
|
|
346
|
+
|
|
347
|
+
<table class="table-hover">
|
|
348
|
+
<tr style="position: relative" class="table-bordered">
|
|
349
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
350
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">暂无合计字段</td>
|
|
351
|
+
</tr>
|
|
352
|
+
</table>
|
|
353
|
+
|
|
354
|
+
<modal :show.sync="printshow" v-ref:modal backdrop="false">
|
|
355
|
+
<header slot="modal-header" class="modal-header text-center">
|
|
356
|
+
<h4 class="modal-title">打印列选择</h4>
|
|
357
|
+
<input type="checkbox" class="" id="f_generations" v-model="all">
|
|
358
|
+
<label for="f_generations" class="font-size">全选</label>
|
|
359
|
+
</header>
|
|
360
|
+
<article slot="modal-body">
|
|
361
|
+
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
|
|
362
|
+
<div class="col-sm-3" v-for="f in fields">
|
|
363
|
+
<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
|
|
364
|
+
<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
|
|
365
|
+
</div>
|
|
366
|
+
</div>
|
|
367
|
+
</article>
|
|
368
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
369
|
+
<center>
|
|
370
|
+
<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
371
|
+
<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
|
|
372
|
+
<print-table :model='model' v-show="false" v-ref:print
|
|
373
|
+
:top='40' :left='60' :right='40' :bottom='60'
|
|
374
|
+
:thead="thead" :tfoot='tfoot' :attach="yangsen"
|
|
375
|
+
:fields="modelval" :printpage="true">
|
|
376
|
+
</print-table>
|
|
377
|
+
</center>
|
|
378
|
+
</footer>
|
|
379
|
+
</modal>
|
|
380
|
+
</div>
|
|
381
|
+
<div class="flex" v-if="show">
|
|
382
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
383
|
+
</div>
|
|
384
|
+
</div></div></div>
|
|
385
|
+
</template>
|
|
386
|
+
|
|
387
|
+
<script>
|
|
388
|
+
import { PagedList } from 'vue-client'
|
|
389
|
+
import defaultPrint from './config/DefaultPrint'
|
|
390
|
+
import exportConfig from './config/exportConfig'
|
|
391
|
+
|
|
392
|
+
let readySomething = async function (self) {
|
|
393
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
394
|
+
self.$MagGetSaleParam.initinputtor();
|
|
395
|
+
self.getinputtores();
|
|
396
|
+
// self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
397
|
+
// self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
398
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
399
|
+
}
|
|
400
|
+
export default {
|
|
401
|
+
title: '表具设备查询',
|
|
402
|
+
data() {
|
|
403
|
+
return {
|
|
404
|
+
other:[],
|
|
405
|
+
footer:[],
|
|
406
|
+
model: new PagedList('api/af-revenue/sql/deviceQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}),
|
|
407
|
+
criteriaShow: false,
|
|
408
|
+
orgCondtionStr: '',
|
|
409
|
+
modelval: [],
|
|
410
|
+
printshow: false,
|
|
411
|
+
all: false,
|
|
412
|
+
fields: {},
|
|
413
|
+
//排序
|
|
414
|
+
orderitem:'f_userinfo_code desc',
|
|
415
|
+
orderFields: {
|
|
416
|
+
f_userinfo_id: 'no'
|
|
417
|
+
},
|
|
418
|
+
thead: '',
|
|
419
|
+
tfoot: '',
|
|
420
|
+
defaultfield: [],
|
|
421
|
+
config: {
|
|
422
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
|
|
423
|
+
},
|
|
424
|
+
show:false,
|
|
425
|
+
rowdata:{},
|
|
426
|
+
// 下拉框参数
|
|
427
|
+
inputtores:[],
|
|
428
|
+
usertypes:this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
429
|
+
userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
|
|
430
|
+
deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
|
|
431
|
+
// brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
|
|
432
|
+
watchpurchases: this.$appdata.getParam('购买方式') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('购买方式')] : [],
|
|
433
|
+
pipetype: this.$appdata.getParam('管道类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('管道类型')] : [],
|
|
434
|
+
isexpire: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}, ],
|
|
435
|
+
initres: {
|
|
436
|
+
org:[this.$login.f.orgid],
|
|
437
|
+
dep:[],
|
|
438
|
+
user:[],
|
|
439
|
+
},
|
|
440
|
+
// 合计数据
|
|
441
|
+
sumsmodel: {}
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
ready(){
|
|
445
|
+
readySomething(this).then(() => {
|
|
446
|
+
this.$emit('ready')
|
|
447
|
+
}).catch((error) => {
|
|
448
|
+
this.$emit('error', error)
|
|
449
|
+
})
|
|
450
|
+
},
|
|
451
|
+
methods: {
|
|
452
|
+
async getinputtores () {
|
|
453
|
+
// 获取抄表员
|
|
454
|
+
let rs = []
|
|
455
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
456
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
457
|
+
let temp = {
|
|
458
|
+
label: this.$login.f.f_gasman[i].name,
|
|
459
|
+
value: this.$login.f.f_gasman[i].name
|
|
460
|
+
}
|
|
461
|
+
rs.push(temp)
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
this.inputtores = [{label: '全部', value: ''}, ...rs]
|
|
465
|
+
},
|
|
466
|
+
getotherfooter () {
|
|
467
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
|
|
468
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
|
|
469
|
+
this.other = [];
|
|
470
|
+
this.footer = [];
|
|
471
|
+
let exportdata = this.getCondition;
|
|
472
|
+
let otherInData = [];
|
|
473
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
474
|
+
// let footerData = [], exportfield = this.getExportField;
|
|
475
|
+
// footerData.push("合计");
|
|
476
|
+
// let self = this;
|
|
477
|
+
// for (var field in self.sumsmodel) {
|
|
478
|
+
// footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
479
|
+
// }
|
|
480
|
+
// this.footer.push(footerData);
|
|
481
|
+
this.other.push(otherInData);
|
|
482
|
+
},
|
|
483
|
+
search(){
|
|
484
|
+
this.$refs.paged.$refs.cri.search()
|
|
485
|
+
},
|
|
486
|
+
cancel() {
|
|
487
|
+
this.show = false
|
|
488
|
+
},
|
|
489
|
+
showmsg(obj){
|
|
490
|
+
this.rowdata=obj
|
|
491
|
+
this.show=true
|
|
492
|
+
},
|
|
493
|
+
selfSearch (args) {
|
|
494
|
+
if (!this.orgCondtionStr) {
|
|
495
|
+
args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
|
|
496
|
+
} else {
|
|
497
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
this.model.search(args.condition, args.model)
|
|
501
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
502
|
+
console.log('合计字段',this.sumsmodel)
|
|
503
|
+
},
|
|
504
|
+
clear(){
|
|
505
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
506
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
507
|
+
})
|
|
508
|
+
},
|
|
509
|
+
hidden(){
|
|
510
|
+
this.criteriaShow = !this.criteriaShow
|
|
511
|
+
},
|
|
512
|
+
getRes(obj) {
|
|
513
|
+
this.orgCondtionStr = obj
|
|
514
|
+
},
|
|
515
|
+
stamp () {
|
|
516
|
+
this.all = false
|
|
517
|
+
//默认选择要打印的列
|
|
518
|
+
this.modelval = defaultPrint.config
|
|
519
|
+
this.fields = this.getfield
|
|
520
|
+
console.log('所有打印字段',this.fields)
|
|
521
|
+
this.printshow = true
|
|
522
|
+
this.put()
|
|
523
|
+
},
|
|
524
|
+
put () {
|
|
525
|
+
// 对Modelval进行排序
|
|
526
|
+
this.sortModelval()
|
|
527
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
|
|
528
|
+
for (let key of this.modelval) {
|
|
529
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
530
|
+
}
|
|
531
|
+
this.thead += '</tr>'
|
|
532
|
+
},
|
|
533
|
+
print () {
|
|
534
|
+
this.$refs.print.PrintAsFile()
|
|
535
|
+
this.printshow = false
|
|
536
|
+
},
|
|
537
|
+
close () {
|
|
538
|
+
this.printshow = false
|
|
539
|
+
this.all = false
|
|
540
|
+
},
|
|
541
|
+
// 对选择的列进行排序
|
|
542
|
+
sortModelval () {
|
|
543
|
+
let sortModel = []
|
|
544
|
+
Object.keys(this.fields).forEach((key) => {
|
|
545
|
+
if (this.modelval.includes(key)) {
|
|
546
|
+
sortModel.push(key)
|
|
547
|
+
}
|
|
548
|
+
})
|
|
549
|
+
this.modelval = sortModel
|
|
550
|
+
console.log('选择的打印的字段', this.modelval)
|
|
551
|
+
},
|
|
552
|
+
sort (field, rule) {
|
|
553
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
554
|
+
for (let key in this.orderFields) {
|
|
555
|
+
if (key === field) {
|
|
556
|
+
this.orderFields[key] = rule
|
|
557
|
+
} else {
|
|
558
|
+
this.orderFields[key] = 'no'
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
// 如果新规则不排序,还原为默认排序
|
|
562
|
+
if (rule === 'no') {
|
|
563
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
564
|
+
} else {
|
|
565
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
this.search()
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
watch:{
|
|
572
|
+
'all' (val) {
|
|
573
|
+
if (val) {
|
|
574
|
+
this.modelval = this.bodyData
|
|
575
|
+
} else {
|
|
576
|
+
this.modelval = defaultPrint.config
|
|
577
|
+
this.put()
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
sumsmodel:{
|
|
581
|
+
handler: function(val) {
|
|
582
|
+
this.getotherfooter();
|
|
583
|
+
},
|
|
584
|
+
deep: true
|
|
585
|
+
},
|
|
586
|
+
'modelval.length' () {
|
|
587
|
+
this.put()
|
|
588
|
+
},
|
|
589
|
+
},
|
|
590
|
+
computed:{
|
|
591
|
+
authArr () {
|
|
592
|
+
return this.$login.r ? this.$login.r : []
|
|
593
|
+
},
|
|
594
|
+
getCondition(){
|
|
595
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr,orderitem:this.orderitem}
|
|
596
|
+
},
|
|
597
|
+
getfield(){
|
|
598
|
+
let data = {}
|
|
599
|
+
this.bodyData.forEach((value, index)=>{
|
|
600
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
601
|
+
})
|
|
602
|
+
//合计字段打印
|
|
603
|
+
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
604
|
+
if(this.sumsmodel){
|
|
605
|
+
Object.keys(this.sumsmodel).forEach((key) => {
|
|
606
|
+
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
607
|
+
})
|
|
608
|
+
}else{
|
|
609
|
+
this.tfoot += '暂无'
|
|
610
|
+
}
|
|
611
|
+
this.tfoot += '</th></tr>'
|
|
612
|
+
return data
|
|
613
|
+
},
|
|
614
|
+
getExportField() {
|
|
615
|
+
return exportConfig.deviceConfig
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
</script>
|