manage-client 4.0.33 → 4.0.34
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
CHANGED
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
:show-reset-button="reset"
|
|
126
126
|
:value.sync="model.startDate"
|
|
127
127
|
id="startDate"
|
|
128
|
+
condition = "f_input_date >= '{}' "
|
|
128
129
|
style="width:60%"
|
|
129
130
|
placeholder="开始时间"
|
|
130
131
|
v-model="model.startDate">
|
|
@@ -136,6 +137,7 @@
|
|
|
136
137
|
:show-reset-button="reset"
|
|
137
138
|
:value.sync="model.endDate"
|
|
138
139
|
style="width:60%"
|
|
140
|
+
condition = "f_input_date <= '{}'"
|
|
139
141
|
id="endDate"
|
|
140
142
|
style="width:60%"
|
|
141
143
|
placeholder="结束日期"
|
|
@@ -399,7 +401,7 @@ export default {
|
|
|
399
401
|
data() {
|
|
400
402
|
return {
|
|
401
403
|
resshow:['company','slicearea'],
|
|
402
|
-
model: new PagedList('api/af-revenue/sql/
|
|
404
|
+
model: new PagedList('api/af-revenue/sql/newGasRecordQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
|
|
403
405
|
f_oughtamount: 0,
|
|
404
406
|
f_oughtfee: 0,
|
|
405
407
|
f_total_gas: 0,
|
|
@@ -0,0 +1,539 @@
|
|
|
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="fireQuery" 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
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
|
|
78
|
+
condition="f_card_id like '%{}%'" placeholder='表号'>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-2 form-group" >
|
|
81
|
+
<label class="font_normal_body" title="交付日期大于">交付日期</label>
|
|
82
|
+
<datepicker placeholder="交付日期大于" style="width:60%"
|
|
83
|
+
v-model="model.f_input_start_date"
|
|
84
|
+
:value.sync="model.f_input_start_date"
|
|
85
|
+
:format="'yyyy-MM-dd'"
|
|
86
|
+
:show-reset-button="true"
|
|
87
|
+
condition="f_deliver_date >= '{} 00:00:00'">
|
|
88
|
+
</datepicker>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-2 form-group" >
|
|
91
|
+
<label class="font_normal_body" title="交付日期小于">交付日期</label>
|
|
92
|
+
<datepicker placeholder="交付日期小于" style="width:60%"
|
|
93
|
+
v-model="model.f_input_end_date"
|
|
94
|
+
:value.sync="model.f_input_end_date"
|
|
95
|
+
:format="'yyyy-MM-dd'"
|
|
96
|
+
:show-reset-button="true"
|
|
97
|
+
condition="f_deliver_date <= '{} 23:59:59'">
|
|
98
|
+
</datepicker>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="col-sm-2 form-group" >
|
|
101
|
+
<label class="font_normal_body" title="点火日期大于">点火日期</label>
|
|
102
|
+
<datepicker placeholder="点火日期大于" style="width:60%"
|
|
103
|
+
v-model="model.f_operate_start_date"
|
|
104
|
+
:value.sync="model.f_operate_start_date"
|
|
105
|
+
:format="'yyyy-MM-dd'"
|
|
106
|
+
:show-reset-button="true"
|
|
107
|
+
condition="f_operate_date >= '{} 00:00:00'">
|
|
108
|
+
</datepicker>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="col-sm-2 form-group" >
|
|
111
|
+
<label class="font_normal_body" title="点火日期小于">点火日期</label>
|
|
112
|
+
<datepicker placeholder="点火日期小于" style="width:60%"
|
|
113
|
+
v-model="model.f_operate_end_date"
|
|
114
|
+
:value.sync="model.f_operate_end_date"
|
|
115
|
+
:format="'yyyy-MM-dd'"
|
|
116
|
+
:show-reset-button="true"
|
|
117
|
+
condition="f_operate_date <= '{} 23:59:59'">
|
|
118
|
+
</datepicker>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-2 form-group">
|
|
121
|
+
<label class="font_normal_body" >抄表员 </label>
|
|
122
|
+
<v-select :value.sync="model.f_inputtor"
|
|
123
|
+
v-model="model.f_inputtor"
|
|
124
|
+
:options='$parent.$parent.inputtores' placeholder='请选择'
|
|
125
|
+
condition="f_inputtor = '{}'"
|
|
126
|
+
close-on-select :search="false">
|
|
127
|
+
</v-select>
|
|
128
|
+
</div>
|
|
129
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</criteria>
|
|
133
|
+
|
|
134
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
135
|
+
<template partial='head'>
|
|
136
|
+
<tr>
|
|
137
|
+
<th>
|
|
138
|
+
<!--<nobr>客户编号</nobr>-->
|
|
139
|
+
<data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
140
|
+
</th>
|
|
141
|
+
<th><nobr>客户名称</nobr></th>
|
|
142
|
+
<th><nobr>档案编号</nobr></th>
|
|
143
|
+
<th><nobr>客户电话</nobr></th>
|
|
144
|
+
<th>
|
|
145
|
+
<!--<nobr>客户地址</nobr>-->
|
|
146
|
+
<data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
147
|
+
</th>
|
|
148
|
+
<th><nobr>客户状态</nobr></th>
|
|
149
|
+
|
|
150
|
+
<th><nobr>表号</nobr></th>
|
|
151
|
+
<th><nobr>卡号</nobr></th>
|
|
152
|
+
<th><nobr>气表品牌</nobr></th>
|
|
153
|
+
<th><nobr>气表型号</nobr></th>
|
|
154
|
+
<th><nobr>表向</nobr></th>
|
|
155
|
+
<!--民用-->
|
|
156
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>镀锌管</nobr></th>
|
|
157
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>三通</nobr></th>
|
|
158
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>对丝</nobr></th>
|
|
159
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>弯头</nobr></th>
|
|
160
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>表前阀</nobr></th>
|
|
161
|
+
|
|
162
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>管卡</nobr></th>
|
|
163
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>灶前阀</nobr></th>
|
|
164
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>胶管</nobr></th>
|
|
165
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>自闭阀</nobr></th>
|
|
166
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>燃气具</nobr></th>
|
|
167
|
+
|
|
168
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>报警器</nobr></th>
|
|
169
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>热水器</nobr></th>
|
|
170
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>壁挂锅炉</nobr></th>
|
|
171
|
+
<th v-if="$parent.$parent.$parent.usertype!='非民用'"><nobr>型号</nobr></th>
|
|
172
|
+
|
|
173
|
+
<!-- 非民用-->
|
|
174
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>非民用气表品牌</nobr></th>
|
|
175
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>非民用气表型号</nobr></th>
|
|
176
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>流量计范围</nobr></th>
|
|
177
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器品牌</nobr></th>
|
|
178
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器型号</nobr></th>
|
|
179
|
+
|
|
180
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器出厂日期</nobr></th>
|
|
181
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器表编码</nobr></th>
|
|
182
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>控制器表封号</nobr></th>
|
|
183
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具类型</nobr></th>
|
|
184
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具品牌</nobr></th>
|
|
185
|
+
|
|
186
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>燃气具型号</nobr></th>
|
|
187
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>报警控制箱品牌、数量</nobr></th>
|
|
188
|
+
<th v-if="$parent.$parent.$parent.usertype!='民用'"><nobr>探测器数量</nobr></th>
|
|
189
|
+
<!--公共-->
|
|
190
|
+
<th><nobr>设施检验结论</nobr></th>
|
|
191
|
+
<th>
|
|
192
|
+
<!--<nobr>交付日期</nobr>-->
|
|
193
|
+
<data-order field="f_deliver_date" name="交付日期" :order.sync="$parent.$parent.$parent.orderFields.f_deliver_date"></data-order>
|
|
194
|
+
</th>
|
|
195
|
+
<th><nobr>操作人</nobr></th>
|
|
196
|
+
<th>
|
|
197
|
+
<!--<nobr>操作日期</nobr>-->
|
|
198
|
+
<data-order field="f_operate_date" name="操作日期" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
|
|
199
|
+
</th>
|
|
200
|
+
</tr>
|
|
201
|
+
</template>
|
|
202
|
+
<template partial='body'>
|
|
203
|
+
<td style="text-align: center;"><nobr>
|
|
204
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
205
|
+
</nobr> </td>
|
|
206
|
+
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
207
|
+
<td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
|
|
208
|
+
<td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
|
|
209
|
+
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
210
|
+
<td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
|
|
211
|
+
<!--民用-->
|
|
212
|
+
<td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
213
|
+
<td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
|
|
214
|
+
<td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
|
|
215
|
+
<td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
|
|
216
|
+
<td style="text-align: center;"><nobr>{{row.f_aroundmeter}}</nobr></td>
|
|
217
|
+
|
|
218
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_galvanize_pipe}}</nobr></td>
|
|
219
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_tee}}</nobr></td>
|
|
220
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_nipple}}</nobr></td>
|
|
221
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_elbow}}</nobr></td>
|
|
222
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bqf_type}}</nobr></td>
|
|
223
|
+
|
|
224
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_pipe_strap}}</nobr></td>
|
|
225
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_zqf}}</nobr></td>
|
|
226
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_sebific_duct}}</nobr></td>
|
|
227
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_alarm_code}}</nobr></td>
|
|
228
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_zbf}}</nobr></td>
|
|
229
|
+
|
|
230
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_gas_appliance}}</nobr></td>
|
|
231
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_geyser}}</nobr></td>
|
|
232
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bgl}}</nobr></td>
|
|
233
|
+
<td v-if="$parent.$parent.$parent.usertype!='非民用'" style="text-align: center;"><nobr>{{row.f_bgl_style}}</nobr></td>
|
|
234
|
+
|
|
235
|
+
<!--非民用-->
|
|
236
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_fire_gasbrand}}</nobr></td>
|
|
237
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_fire_gasmodel}}</nobr></td>
|
|
238
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_llj_scope}}</nobr></td>
|
|
239
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_brand}}</nobr></td>
|
|
240
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_model}}</nobr></td>
|
|
241
|
+
|
|
242
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_date}}</nobr></td>
|
|
243
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_code}}</nobr></td>
|
|
244
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_control_number}}</nobr></td>
|
|
245
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_type}}</nobr></td>
|
|
246
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_brand}}</nobr></td>
|
|
247
|
+
|
|
248
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_appliance_model}}</nobr></td>
|
|
249
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_alarm_info}}</nobr></td>
|
|
250
|
+
<td v-if="$parent.$parent.$parent.usertype!='民用'" style="text-align: center;"><nobr>{{row.f_detector_number}}</nobr></td>
|
|
251
|
+
|
|
252
|
+
<td style="text-align: center;"><nobr>{{row.f_fic}}</nobr></td>
|
|
253
|
+
<td style="text-align: center;"><nobr>{{row.f_deliver_date}}</nobr></td>
|
|
254
|
+
<td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
|
|
255
|
+
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
256
|
+
</template>
|
|
257
|
+
<template partial='foot'>
|
|
258
|
+
|
|
259
|
+
</template>
|
|
260
|
+
</data-grid>
|
|
261
|
+
</criteria-paged>
|
|
262
|
+
|
|
263
|
+
<table class="table-hover">
|
|
264
|
+
<tr style="position: relative" class="table-bordered">
|
|
265
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
266
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">暂无合计字段</td>
|
|
267
|
+
</tr>
|
|
268
|
+
</table>
|
|
269
|
+
|
|
270
|
+
<modal :show.sync="printshow" v-ref:modal backdrop="false">
|
|
271
|
+
<header slot="modal-header" class="modal-header text-center">
|
|
272
|
+
<h4 class="modal-title">打印列选择</h4>
|
|
273
|
+
<input type="checkbox" class="" id="f_generations" v-model="all">
|
|
274
|
+
<label for="f_generations" class="font-size">全选</label>
|
|
275
|
+
</header>
|
|
276
|
+
<article slot="modal-body">
|
|
277
|
+
<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
|
|
278
|
+
<div class="col-sm-3" v-for="f in fields">
|
|
279
|
+
<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
|
|
280
|
+
<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
</article>
|
|
284
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
285
|
+
<center>
|
|
286
|
+
<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
|
|
287
|
+
<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
|
|
288
|
+
<print-table :model='model' v-show="false" v-ref:print
|
|
289
|
+
:top='40' :left='60' :right='40' :bottom='60'
|
|
290
|
+
:thead="thead" :tfoot='tfoot' :attach="yangsen"
|
|
291
|
+
:fields="modelval" :printpage="true">
|
|
292
|
+
</print-table>
|
|
293
|
+
</center>
|
|
294
|
+
</footer>
|
|
295
|
+
</modal>
|
|
296
|
+
</div>
|
|
297
|
+
<div class="flex" v-if="show">
|
|
298
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
299
|
+
</div>
|
|
300
|
+
</div></div></div>
|
|
301
|
+
</template>
|
|
302
|
+
|
|
303
|
+
<script>
|
|
304
|
+
import { PagedList } from 'vue-client'
|
|
305
|
+
import defaultPrint from './config/DefaultPrint'
|
|
306
|
+
import exportConfig from './config/exportConfig'
|
|
307
|
+
|
|
308
|
+
let readySomething = async function (self) {
|
|
309
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
310
|
+
self.$MagGetSaleParam.initinputtor();
|
|
311
|
+
self.getinputtores();
|
|
312
|
+
// self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
313
|
+
// self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
314
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
315
|
+
}
|
|
316
|
+
export default {
|
|
317
|
+
title: '表具用气查询',
|
|
318
|
+
data() {
|
|
319
|
+
return {
|
|
320
|
+
other:[],
|
|
321
|
+
footer:[],
|
|
322
|
+
model: new PagedList('api/af-revenue/sql/fireQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'id desc'`}),
|
|
323
|
+
criteriaShow: false,
|
|
324
|
+
orgCondtionStr: '',
|
|
325
|
+
modelval: [],
|
|
326
|
+
printshow: false,
|
|
327
|
+
all: false,
|
|
328
|
+
fields: {},
|
|
329
|
+
//排序
|
|
330
|
+
orderitem:'id desc',
|
|
331
|
+
orderFields: {
|
|
332
|
+
f_userinfo_id: 'no'
|
|
333
|
+
},
|
|
334
|
+
thead: '',
|
|
335
|
+
tfoot: '',
|
|
336
|
+
defaultfield: [],
|
|
337
|
+
config: {
|
|
338
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
|
|
339
|
+
},
|
|
340
|
+
show:false,
|
|
341
|
+
rowdata:{},
|
|
342
|
+
// 下拉框参数
|
|
343
|
+
inputtores:[],
|
|
344
|
+
usertypes:this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
345
|
+
userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
|
|
346
|
+
deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
|
|
347
|
+
// brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
|
|
348
|
+
watchpurchases: this.$appdata.getParam('购买方式') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('购买方式')] : [],
|
|
349
|
+
pipetype: this.$appdata.getParam('管道类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('管道类型')] : [],
|
|
350
|
+
initres: {
|
|
351
|
+
org:[this.$login.f.orgid],
|
|
352
|
+
dep:[],
|
|
353
|
+
user:[],
|
|
354
|
+
},
|
|
355
|
+
// 合计数据
|
|
356
|
+
sumsmodel: {},
|
|
357
|
+
usertype:'全部'
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
ready(){
|
|
361
|
+
readySomething(this).then(() => {
|
|
362
|
+
this.$emit('ready')
|
|
363
|
+
}).catch((error) => {
|
|
364
|
+
this.$emit('error', error)
|
|
365
|
+
})
|
|
366
|
+
},
|
|
367
|
+
methods: {
|
|
368
|
+
async getinputtores () {
|
|
369
|
+
// 获取抄表员
|
|
370
|
+
let rs = []
|
|
371
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
372
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
373
|
+
let temp = {
|
|
374
|
+
label: this.$login.f.f_gasman[i].name,
|
|
375
|
+
value: this.$login.f.f_gasman[i].name
|
|
376
|
+
}
|
|
377
|
+
rs.push(temp)
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
this.inputtores = [{label: '全部', value: ''}, ...rs]
|
|
381
|
+
},
|
|
382
|
+
getotherfooter () {
|
|
383
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
|
|
384
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
|
|
385
|
+
this.other = [];
|
|
386
|
+
this.footer = [];
|
|
387
|
+
let exportdata = this.getCondition;
|
|
388
|
+
let otherInData = [];
|
|
389
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
390
|
+
// let footerData = [], exportfield = this.getExportField;
|
|
391
|
+
// footerData.push("合计");
|
|
392
|
+
// let self = this;
|
|
393
|
+
// for (var field in self.sumsmodel) {
|
|
394
|
+
// footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
395
|
+
// }
|
|
396
|
+
// this.footer.push(footerData);
|
|
397
|
+
this.other.push(otherInData);
|
|
398
|
+
},
|
|
399
|
+
search(){
|
|
400
|
+
this.$refs.paged.$refs.cri.search()
|
|
401
|
+
},
|
|
402
|
+
cancel() {
|
|
403
|
+
this.show = false
|
|
404
|
+
},
|
|
405
|
+
showmsg(obj){
|
|
406
|
+
this.rowdata=obj
|
|
407
|
+
this.show=true
|
|
408
|
+
},
|
|
409
|
+
selfSearch (args) {
|
|
410
|
+
if (!this.orgCondtionStr) {
|
|
411
|
+
args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
|
|
412
|
+
} else {
|
|
413
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
414
|
+
}
|
|
415
|
+
if(this.$refs.paged.$refs.cri.model.f_user_type){
|
|
416
|
+
this.usertype=this.$refs.paged.$refs.cri.model.f_user_type
|
|
417
|
+
}else{
|
|
418
|
+
this.usertype='全部'
|
|
419
|
+
}
|
|
420
|
+
this.model.search(args.condition, args.model)
|
|
421
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
422
|
+
console.log('合计字段',this.sumsmodel)
|
|
423
|
+
},
|
|
424
|
+
clear(){
|
|
425
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
426
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
427
|
+
})
|
|
428
|
+
},
|
|
429
|
+
hidden(){
|
|
430
|
+
this.criteriaShow = !this.criteriaShow
|
|
431
|
+
},
|
|
432
|
+
getRes(obj) {
|
|
433
|
+
this.orgCondtionStr = obj
|
|
434
|
+
},
|
|
435
|
+
stamp () {
|
|
436
|
+
this.all = false
|
|
437
|
+
//默认选择要打印的列
|
|
438
|
+
this.modelval = defaultPrint.config
|
|
439
|
+
this.fields = this.getfield
|
|
440
|
+
console.log('所有打印字段',this.fields)
|
|
441
|
+
this.printshow = true
|
|
442
|
+
this.put()
|
|
443
|
+
},
|
|
444
|
+
put () {
|
|
445
|
+
// 对Modelval进行排序
|
|
446
|
+
this.sortModelval()
|
|
447
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
|
|
448
|
+
for (let key of this.modelval) {
|
|
449
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
450
|
+
}
|
|
451
|
+
this.thead += '</tr>'
|
|
452
|
+
},
|
|
453
|
+
print () {
|
|
454
|
+
this.$refs.print.PrintAsFile()
|
|
455
|
+
this.printshow = false
|
|
456
|
+
},
|
|
457
|
+
close () {
|
|
458
|
+
this.printshow = false
|
|
459
|
+
this.all = false
|
|
460
|
+
},
|
|
461
|
+
// 对选择的列进行排序
|
|
462
|
+
sortModelval () {
|
|
463
|
+
let sortModel = []
|
|
464
|
+
Object.keys(this.fields).forEach((key) => {
|
|
465
|
+
if (this.modelval.includes(key)) {
|
|
466
|
+
sortModel.push(key)
|
|
467
|
+
}
|
|
468
|
+
})
|
|
469
|
+
this.modelval = sortModel
|
|
470
|
+
console.log('选择的打印的字段', this.modelval)
|
|
471
|
+
},
|
|
472
|
+
sort (field, rule) {
|
|
473
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
474
|
+
for (let key in this.orderFields) {
|
|
475
|
+
if (key === field) {
|
|
476
|
+
this.orderFields[key] = rule
|
|
477
|
+
} else {
|
|
478
|
+
this.orderFields[key] = 'no'
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
// 如果新规则不排序,还原为默认排序
|
|
482
|
+
if (rule === 'no') {
|
|
483
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
484
|
+
} else {
|
|
485
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
this.search()
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
watch:{
|
|
492
|
+
'all' (val) {
|
|
493
|
+
if (val) {
|
|
494
|
+
this.modelval = this.bodyData
|
|
495
|
+
} else {
|
|
496
|
+
this.modelval = defaultPrint.config
|
|
497
|
+
this.put()
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
sumsmodel:{
|
|
501
|
+
handler: function(val) {
|
|
502
|
+
this.getotherfooter();
|
|
503
|
+
},
|
|
504
|
+
deep: true
|
|
505
|
+
},
|
|
506
|
+
'modelval.length' () {
|
|
507
|
+
this.put()
|
|
508
|
+
},
|
|
509
|
+
},
|
|
510
|
+
computed:{
|
|
511
|
+
authArr () {
|
|
512
|
+
return this.$login.r ? this.$login.r : []
|
|
513
|
+
},
|
|
514
|
+
getCondition(){
|
|
515
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr,orderitem:this.orderitem}
|
|
516
|
+
},
|
|
517
|
+
getfield(){
|
|
518
|
+
let data = {}
|
|
519
|
+
this.bodyData.forEach((value, index)=>{
|
|
520
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
521
|
+
})
|
|
522
|
+
//合计字段打印
|
|
523
|
+
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
524
|
+
if(this.sumsmodel){
|
|
525
|
+
Object.keys(this.sumsmodel).forEach((key) => {
|
|
526
|
+
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
527
|
+
})
|
|
528
|
+
}else{
|
|
529
|
+
this.tfoot += '暂无'
|
|
530
|
+
}
|
|
531
|
+
this.tfoot += '</th></tr>'
|
|
532
|
+
return data
|
|
533
|
+
},
|
|
534
|
+
getExportField() {
|
|
535
|
+
return exportConfig.fireQueryConfig
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
</script>
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body">开始日期</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
15
|
+
:show-reset-button="true"
|
|
16
|
+
condition="f_operate_date >= '{}'">
|
|
17
|
+
</datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label class="font_normal_body">结束日期</label>
|
|
21
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
22
|
+
v-model="model.endDate"
|
|
23
|
+
:value.sync="model.endDate"
|
|
24
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
25
|
+
:show-reset-button="true"
|
|
26
|
+
condition="f_operate_date <= '{}'">
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group ">
|
|
30
|
+
<label class="font_normal_body">客户编号</label>
|
|
31
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
32
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group">
|
|
35
|
+
<label class="font_normal_body" title="旧客户编号">档案编号</label>
|
|
36
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
|
|
37
|
+
condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
<div class="span" style="float:right;">
|
|
42
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
43
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
44
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
45
|
+
|
|
46
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
47
|
+
:field="$parent.$parent.getfield"
|
|
48
|
+
:header="$parent.$parent.other"
|
|
49
|
+
v-if="$parent.$parent.authArr.includes('调价记录查询导出')"
|
|
50
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="pricechangequery" template-name='调价记录查询导出'
|
|
51
|
+
:choose-col="true"></export-excel>
|
|
52
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
53
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
54
|
+
titletable="调价记录查询"
|
|
55
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
56
|
+
<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>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
61
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
62
|
+
<div class="col-sm-2 form-group">
|
|
63
|
+
<label class="font_normal_body">客户名称</label>
|
|
64
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
65
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
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_phone"
|
|
70
|
+
condition="f_user_phone like '%{}%'" placeholder="客户电话">
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<div class="col-sm-2 form-group">
|
|
74
|
+
<label class="font_normal_body"> 旧 气 价</label>
|
|
75
|
+
<v-select :value.sync="model.f_used_content"
|
|
76
|
+
v-model="model.f_used_content"
|
|
77
|
+
:options='$parent.$parent.price' placeholder='请选择'
|
|
78
|
+
condition="f_used_content = '{}'"
|
|
79
|
+
close-on-select></v-select>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="col-sm-2 form-group">
|
|
82
|
+
<label class="font_normal_body"> 新 气 价</label>
|
|
83
|
+
<v-select :value.sync="model.f_new_content"
|
|
84
|
+
v-model="model.f_new_content"
|
|
85
|
+
:options='$parent.$parent.price ' placeholder='请选择'
|
|
86
|
+
condition="f_new_content = '{}'"
|
|
87
|
+
close-on-select></v-select>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="col-sm-2 form-group">
|
|
90
|
+
<label class="font_normal_body">客户类型</label>
|
|
91
|
+
<v-select :value.sync="model.f_user_type"
|
|
92
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
93
|
+
condition="f_user_type = '{}'"
|
|
94
|
+
close-on-select></v-select>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</criteria>
|
|
99
|
+
|
|
100
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
|
|
101
|
+
<template partial='head'>
|
|
102
|
+
<tr>
|
|
103
|
+
<th>
|
|
104
|
+
<!--<nobr>客户编号</nobr>-->
|
|
105
|
+
<data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
106
|
+
</th>
|
|
107
|
+
<th>
|
|
108
|
+
<nobr>客户名称</nobr>
|
|
109
|
+
</th>
|
|
110
|
+
<th>
|
|
111
|
+
<nobr>档案编号</nobr>
|
|
112
|
+
</th>
|
|
113
|
+
<th>
|
|
114
|
+
<nobr>客户电话</nobr>
|
|
115
|
+
</th>
|
|
116
|
+
<th>
|
|
117
|
+
<nobr>客户类型</nobr>
|
|
118
|
+
</th>
|
|
119
|
+
<th>
|
|
120
|
+
<nobr>更改前气价</nobr>
|
|
121
|
+
</th>
|
|
122
|
+
<th>
|
|
123
|
+
<nobr>更改后气价</nobr>
|
|
124
|
+
</th>
|
|
125
|
+
<th>
|
|
126
|
+
<nobr>调价原因</nobr>
|
|
127
|
+
</th>
|
|
128
|
+
<th>
|
|
129
|
+
<nobr>操作人</nobr>
|
|
130
|
+
</th>
|
|
131
|
+
<th>
|
|
132
|
+
<!--<nobr>操作日期</nobr>-->
|
|
133
|
+
<data-order field="f_operate_date" name="操作日期" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
|
|
134
|
+
</th>
|
|
135
|
+
<th>
|
|
136
|
+
<nobr>部门</nobr>
|
|
137
|
+
</th>
|
|
138
|
+
<th>
|
|
139
|
+
<nobr>公司</nobr>
|
|
140
|
+
</th>
|
|
141
|
+
</tr>
|
|
142
|
+
</template>
|
|
143
|
+
<template partial='body'>
|
|
144
|
+
<td style="text-align: center;"><nobr>
|
|
145
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
146
|
+
</nobr> </td>
|
|
147
|
+
<td style="text-align: center;">
|
|
148
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
149
|
+
</td>
|
|
150
|
+
<td style="text-align: center;">
|
|
151
|
+
<nobr>{{row.f_olduserinfo_code}}</nobr>
|
|
152
|
+
</td>
|
|
153
|
+
<td style="text-align: center;">
|
|
154
|
+
<nobr>{{row.f_user_phone}}</nobr>
|
|
155
|
+
</td>
|
|
156
|
+
<td style="text-align: center;">
|
|
157
|
+
<nobr>{{row.f_user_type}}</nobr>
|
|
158
|
+
</td>
|
|
159
|
+
<td style="text-align: center;">
|
|
160
|
+
<nobr>{{row.f_used_content}}</nobr>
|
|
161
|
+
</td>
|
|
162
|
+
<td style="text-align: center;">
|
|
163
|
+
<nobr>{{row.f_new_content}}</nobr>
|
|
164
|
+
</td>
|
|
165
|
+
<td style="text-align: center;">
|
|
166
|
+
<nobr>{{row.f_comments}}</nobr>
|
|
167
|
+
</td>
|
|
168
|
+
<td style="text-align: center;">
|
|
169
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
170
|
+
</td>
|
|
171
|
+
<td style="text-align: center;">
|
|
172
|
+
<nobr>{{row.f_operate_date}}</nobr>s
|
|
173
|
+
</td>
|
|
174
|
+
<td style="text-align: center;">
|
|
175
|
+
<nobr>{{row.f_depname}}</nobr>
|
|
176
|
+
</td>
|
|
177
|
+
<td style="text-align: center;">
|
|
178
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
179
|
+
</td>
|
|
180
|
+
</template>
|
|
181
|
+
<template partial='foot'></template>
|
|
182
|
+
</data-grid>
|
|
183
|
+
</criteria-paged>
|
|
184
|
+
</div>
|
|
185
|
+
<div class="flex" v-if="show">
|
|
186
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
</template>
|
|
191
|
+
|
|
192
|
+
<script>
|
|
193
|
+
import {PagedList} from 'vue-client'
|
|
194
|
+
import defaultPrint from './config/DefaultPrint'
|
|
195
|
+
import exportConfig from './config/exportConfig'
|
|
196
|
+
|
|
197
|
+
let readySomething = async function (self) {
|
|
198
|
+
|
|
199
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
200
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
201
|
+
// self.$refs.paged.$refs.cri.search()
|
|
202
|
+
await self.$MagLoadParams.loadParam()
|
|
203
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
204
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
205
|
+
self.getPricenames()
|
|
206
|
+
}
|
|
207
|
+
export default {
|
|
208
|
+
title: '调价记录查询',
|
|
209
|
+
data() {
|
|
210
|
+
return {
|
|
211
|
+
data: {},
|
|
212
|
+
other:[],
|
|
213
|
+
footer:[],
|
|
214
|
+
meterbrands: [],
|
|
215
|
+
pricenames: [],
|
|
216
|
+
model: new PagedList('api/af-revenue/sql/pricechangequery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}),
|
|
217
|
+
criteriaShow: false,
|
|
218
|
+
usertypes:this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
219
|
+
orgCondtionStr: '',
|
|
220
|
+
modelval: [],
|
|
221
|
+
printshow: false,
|
|
222
|
+
all: false,
|
|
223
|
+
fields: {},
|
|
224
|
+
//排序
|
|
225
|
+
orderitem:'f_operate_date desc',
|
|
226
|
+
orderFields: {
|
|
227
|
+
f_operate_date: 'no'
|
|
228
|
+
},
|
|
229
|
+
initres: {
|
|
230
|
+
org:[this.$login.f.orgid],
|
|
231
|
+
dep:[],
|
|
232
|
+
user:[],
|
|
233
|
+
},
|
|
234
|
+
defaultfield: [],
|
|
235
|
+
config: {
|
|
236
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
|
|
237
|
+
},
|
|
238
|
+
show:false,
|
|
239
|
+
rowdata:{},
|
|
240
|
+
thead: '',
|
|
241
|
+
tfoot: '',
|
|
242
|
+
price: [],
|
|
243
|
+
// tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
//合计数据
|
|
247
|
+
sumsmodel: {}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
ready() {
|
|
251
|
+
readySomething(this)
|
|
252
|
+
},
|
|
253
|
+
methods: {
|
|
254
|
+
getPricenames() {
|
|
255
|
+
this.price = []
|
|
256
|
+
let priceArr = []
|
|
257
|
+
//debugger
|
|
258
|
+
this.$MagGetSaleParam.prices.forEach((item) => {
|
|
259
|
+
let temp = {}
|
|
260
|
+
temp.label = item.f_price_name
|
|
261
|
+
temp.value = item.f_price_name
|
|
262
|
+
priceArr.push(temp)
|
|
263
|
+
})
|
|
264
|
+
this.price = [{label: '全部', value: ''}, ...priceArr]
|
|
265
|
+
},
|
|
266
|
+
getotherfooter () {
|
|
267
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
|
|
268
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
|
|
269
|
+
this.other = [];
|
|
270
|
+
this.footer = [];
|
|
271
|
+
let exportdata = this.getCondition;
|
|
272
|
+
let otherInData = [];
|
|
273
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
274
|
+
// let footerData = [], exportfield = this.getfield;
|
|
275
|
+
// footerData.push("合计");
|
|
276
|
+
// let self = this;
|
|
277
|
+
// for (var field in self.sumsmodel) {
|
|
278
|
+
// footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
279
|
+
// }
|
|
280
|
+
// this.footer.push(footerData);
|
|
281
|
+
this.other.push(otherInData);
|
|
282
|
+
},
|
|
283
|
+
search(){
|
|
284
|
+
this.$refs.paged.$refs.cri.search()
|
|
285
|
+
},
|
|
286
|
+
cancel() {
|
|
287
|
+
this.show = false
|
|
288
|
+
},
|
|
289
|
+
showmsg(obj){
|
|
290
|
+
this.rowdata=obj
|
|
291
|
+
this.show=true
|
|
292
|
+
},
|
|
293
|
+
|
|
294
|
+
selfSearch(args) {
|
|
295
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
296
|
+
this.model.search(args.condition, args.model)
|
|
297
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
298
|
+
},
|
|
299
|
+
clear() {
|
|
300
|
+
//清空部门和人员
|
|
301
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
302
|
+
//部门和人员变为全选
|
|
303
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
304
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
305
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
306
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
307
|
+
})
|
|
308
|
+
},
|
|
309
|
+
show() {
|
|
310
|
+
this.criteriaShow = true
|
|
311
|
+
},
|
|
312
|
+
hidden() {
|
|
313
|
+
this.criteriaShow = !this.criteriaShow
|
|
314
|
+
},
|
|
315
|
+
getRes(obj) {
|
|
316
|
+
console.log(obj,"========")
|
|
317
|
+
this.orgCondtionStr = obj
|
|
318
|
+
},
|
|
319
|
+
stamp() {
|
|
320
|
+
this.all = false
|
|
321
|
+
//默认选择要打印的列
|
|
322
|
+
this.modelval = defaultPrint.config
|
|
323
|
+
this.fields = this.getfield
|
|
324
|
+
console.log('所有打印字段', this.fields)
|
|
325
|
+
this.printshow = true
|
|
326
|
+
this.put()
|
|
327
|
+
},
|
|
328
|
+
dealmsg(val) {
|
|
329
|
+
console.log('---------------dealmsg')
|
|
330
|
+
val.model = this.model.model
|
|
331
|
+
this.$dispatch('deal-msg', val)
|
|
332
|
+
},
|
|
333
|
+
put() {
|
|
334
|
+
// 对Modelval进行排序
|
|
335
|
+
this.sortModelval()
|
|
336
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
|
|
337
|
+
for (let key of this.modelval) {
|
|
338
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
339
|
+
}
|
|
340
|
+
this.thead += '</tr>'
|
|
341
|
+
},
|
|
342
|
+
print() {
|
|
343
|
+
this.$refs.print.PrintAsFile()
|
|
344
|
+
this.printshow = false
|
|
345
|
+
},
|
|
346
|
+
close() {
|
|
347
|
+
this.printshow = false
|
|
348
|
+
this.all = false
|
|
349
|
+
},
|
|
350
|
+
// 对选择的列进行排序
|
|
351
|
+
sortModelval() {
|
|
352
|
+
let sortModel = []
|
|
353
|
+
Object.keys(this.fields).forEach((key) => {
|
|
354
|
+
if (this.modelval.includes(key)) {
|
|
355
|
+
sortModel.push(key)
|
|
356
|
+
}
|
|
357
|
+
})
|
|
358
|
+
this.modelval = sortModel
|
|
359
|
+
console.log('选择的打印的字段', this.modelval)
|
|
360
|
+
},
|
|
361
|
+
sort (field, rule) {
|
|
362
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
363
|
+
for (let key in this.orderFields) {
|
|
364
|
+
if (key === field) {
|
|
365
|
+
this.orderFields[key] = rule
|
|
366
|
+
} else {
|
|
367
|
+
this.orderFields[key] = 'no'
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
// 如果新规则不排序,还原为默认排序
|
|
371
|
+
if (rule === 'no') {
|
|
372
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
373
|
+
} else {
|
|
374
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
this.search()
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
watch: {
|
|
381
|
+
'all'(val) {
|
|
382
|
+
if (val) {
|
|
383
|
+
this.modelval = this.bodyData
|
|
384
|
+
} else {
|
|
385
|
+
this.modelval = defaultPrint.config
|
|
386
|
+
this.put()
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
'modelval.length'() {
|
|
390
|
+
this.put()
|
|
391
|
+
},
|
|
392
|
+
sumsmodel:{
|
|
393
|
+
handler: function(val) {
|
|
394
|
+
this.getotherfooter();
|
|
395
|
+
},
|
|
396
|
+
deep: true
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
computed: {
|
|
400
|
+
authArr () {
|
|
401
|
+
return this.$login.r ? this.$login.r : []
|
|
402
|
+
},
|
|
403
|
+
getCondition() {
|
|
404
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
|
|
405
|
+
},
|
|
406
|
+
getfield() {
|
|
407
|
+
return exportConfig.changUserConfig
|
|
408
|
+
},
|
|
409
|
+
field_name() {
|
|
410
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
</script>
|
|
@@ -231,7 +231,8 @@ export default {
|
|
|
231
231
|
'f_operate_date': '操作日期',
|
|
232
232
|
'f_depname': '部门',
|
|
233
233
|
'f_orgname': '公司',
|
|
234
|
-
'f_comments': '修改原因'
|
|
234
|
+
'f_comments': '修改原因',
|
|
235
|
+
'f_user_type': '客户类型'
|
|
235
236
|
},
|
|
236
237
|
sellingChargePriceConfig: {
|
|
237
238
|
'f_userinfo_code': '客户编号',
|
|
@@ -2677,5 +2678,48 @@ export default {
|
|
|
2677
2678
|
'f_limit_value': '单次限购量',
|
|
2678
2679
|
'f_start_date': '执行时间',
|
|
2679
2680
|
'f_operate_reason': '限购原因'
|
|
2681
|
+
},
|
|
2682
|
+
fireQueryConfig: {
|
|
2683
|
+
'f_user_name': '客户名称',
|
|
2684
|
+
'f_olduserinfo_code': '档案编号',
|
|
2685
|
+
'f_user_phone': '客户电话',
|
|
2686
|
+
'f_address': '客户地址',
|
|
2687
|
+
'f_user_state': '客户状态',
|
|
2688
|
+
'f_meternumber': '表号',
|
|
2689
|
+
'f_card_id': '卡号',
|
|
2690
|
+
'f_meter_brand': '气表品牌',
|
|
2691
|
+
'f_meter_style': '气表型号',
|
|
2692
|
+
'f_aroundmeter': '表向',
|
|
2693
|
+
'f_galvanize_pipe': '镀锌管',
|
|
2694
|
+
'f_tee': '三通',
|
|
2695
|
+
'f_nipple': '对丝',
|
|
2696
|
+
'f_elbow': '弯头',
|
|
2697
|
+
'f_bqf_type': '表前阀',
|
|
2698
|
+
'f_pipe_strap': '管卡',
|
|
2699
|
+
'f_zqf': '灶前阀',
|
|
2700
|
+
'f_sebific_duct': '胶管',
|
|
2701
|
+
'f_alarm_code': '自闭阀',
|
|
2702
|
+
'f_zbf': '燃气具',
|
|
2703
|
+
'f_gas_appliance': '报警器',
|
|
2704
|
+
'f_geyser': '热水器',
|
|
2705
|
+
'f_bgl': '壁挂锅炉',
|
|
2706
|
+
'f_bgl_style': '型号',
|
|
2707
|
+
'f_fire_gasbrand': '非民用气表品牌',
|
|
2708
|
+
'f_fire_gasmodel': '非民用气表型号',
|
|
2709
|
+
'f_llj_scope': '流量计范围',
|
|
2710
|
+
'f_control_brand': '控制器品牌',
|
|
2711
|
+
'f_control_model': '控制器型号',
|
|
2712
|
+
'f_control_date': '控制器出厂日期',
|
|
2713
|
+
'f_control_code': '控制器表编码',
|
|
2714
|
+
'f_control_number': '控制器表封号',
|
|
2715
|
+
'f_appliance_type': '燃气具类型',
|
|
2716
|
+
'f_appliance_brand': '燃气具品牌',
|
|
2717
|
+
'f_appliance_model': '燃气具型号',
|
|
2718
|
+
'f_alarm_info': '报警控制箱品牌、数量',
|
|
2719
|
+
'f_detector_number': '探测器数量',
|
|
2720
|
+
'f_fic': '设施检验结论',
|
|
2721
|
+
'f_deliver_date': '交付日期',
|
|
2722
|
+
'f_operator': '操作人',
|
|
2723
|
+
'f_operate_date': '操作日期'
|
|
2680
2724
|
}
|
|
2681
2725
|
}
|
|
@@ -24,4 +24,12 @@ export default function () {
|
|
|
24
24
|
Vue.component('web-handplan-query', (resolve) => {
|
|
25
25
|
require(['./WebHandplanQuery'], resolve)
|
|
26
26
|
})
|
|
27
|
+
// 表具设备查询
|
|
28
|
+
Vue.component('fire-query', (resolve) => {
|
|
29
|
+
require(['./FireQuery'], resolve)
|
|
30
|
+
})
|
|
31
|
+
// 调价记录查询
|
|
32
|
+
Vue.component('price-change-query', (resolve) => {
|
|
33
|
+
require(['./PriceChangeQuery'], resolve)
|
|
34
|
+
})
|
|
27
35
|
}
|