manage-client 3.2.215 → 3.2.217

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  2. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  4. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  6. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  7. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  9. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  10. package/.gradle/7.1/gc.properties +0 -0
  11. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  12. package/build/dev-server.js +193 -191
  13. package/package.json +1 -1
  14. package/src/components/sale/filesquery/MeterQuery.vue +607 -627
  15. package/src/filiale/WEINAN/CancellationQuery.vue +526 -526
  16. package/src/filiale/WEINAN/ChargeQuery.vue +800 -800
  17. package/src/filiale/WEINAN/EnableQuery.vue +456 -456
  18. package/src/filiale/WEINAN/StatisticalAnalysis.vue +270 -0
  19. package/src/filiale/WEINAN/UserAddress.vue +655 -655
  20. package/src/filiale/WEINAN/UserAddressChange.vue +58 -58
  21. package/src/filiale/WEINAN/config/exportConfig.js +824 -824
  22. package/src/filiale/WEINAN/sale.js +54 -52
  23. package/src/filiale/jingwei/ChargeQuery.vue +10 -0
  24. package/src/filiale/wuhai/ChargeQuery.vue +2 -2
  25. package/src/filiale/wuhai/OtherChargeQuery.vue +5 -2
  26. package/src/filiale/wuhai/ReportList.vue +26 -2
  27. package/src/filiale/wuhai/config/DefaultPrint.js +6 -0
  28. package/src/filiale/wuhai/config/exportConfig.js +1090 -0
  29. package/src/filiale/wuhai/config/tableConfig.js +54 -0
  30. package/src/filiale/wuhai/webmeterManage.js +1 -1
  31. package/src/main.js +66 -66
@@ -28,30 +28,34 @@
28
28
  condition="f_user_phone like '%{}%'" placeholder="客户电话">
29
29
  </div>
30
30
  <div class="span" style="float:right;">
31
- <button class="button_search button_spacing" v-show="false" @click="$parent.$parent.ReadIDCard()">读取身份证</button>
32
- <read-card v-if="!$filialeInfo || $filialeInfo!=='rongcheng'" :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn" v-ref:readcard></read-card>
31
+ <button class="button_search button_spacing" v-show="false"
32
+ @click="$parent.$parent.ReadIDCard()">读取身份证
33
+ </button>
34
+ <read-card v-if="!$filialeInfo || $filialeInfo !== 'rongcheng'"
35
+ :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn"
36
+ v-ref:readcard></read-card>
33
37
  <button class="button_search button_spacing" @click="search()">查询</button>
34
38
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
39
  <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
36
40
 
37
- <export-excel :data="$parent.$parent.getCondition"
38
- :field="$parent.$parent.getExportField"
39
- :footer="$parent.$parent.footer"
40
- :header="$parent.$parent.other"
41
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
42
- sqlurl="rs/logic/exportfile" sql-name="meterQuery" template-name='表具查询导出'
43
- :choose-col="true"></export-excel>
44
- <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
45
- :defaultfield="$parent.$parent.defaultfield"
46
- titletable="客户查询"
47
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
41
+ <export-excel :data="$parent.$parent.getCondition" :field="$parent.$parent.getExportField"
42
+ :footer="$parent.$parent.footer" :header="$parent.$parent.other"
43
+ v-if="$parent.$parent.authArr.includes('档案查询导出')" sqlurl="rs/logic/exportfile"
44
+ sql-name="meterQuery"
45
+ template-name='表具查询导出' :choose-col="true"></export-excel>
46
+ <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model"
47
+ :field="$parent.$parent.getExportField" :defaultfield="$parent.$parent.defaultfield"
48
+ titletable="客户查询" :sumsmodel="$parent.$parent.sumsmodel"></print-data>
48
49
 
49
50
 
50
- <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>
51
+ <div style="float: right" class="button_spacing"
52
+ :class="{ 'button_shrink_top': $parent.$parent.criteriaShow, 'button_shrink_bottom': !$parent.$parent.criteriaShow }"
53
+ @click="$parent.$parent.hidden()"></div>
51
54
  </div>
52
55
  </div>
53
56
  <div class="row" v-show="$parent.$parent.criteriaShow">
54
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
57
+ <res-select-group :initres="$parent.$parent.initres"
58
+ @re-res="$parent.$parent.getRes"></res-select-group>
55
59
 
56
60
 
57
61
  <div class="col-sm-2 form-group">
@@ -59,7 +63,7 @@
59
63
  <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
60
64
  condition="f_address like '%{}%'" placeholder='客户地址'>
61
65
  </div>
62
- <div class="col-sm-2 form-group" v-if="!$filialeInfo || $filialeInfo!=='rongcheng'">
66
+ <div class="col-sm-2 form-group" v-if="!$filialeInfo || $filialeInfo !== 'rongcheng'">
63
67
  <label class="font_normal_body">用气点</label>
64
68
  <input type="text" style="width:60%" class="input_search" v-model="model.f_userfiles_address"
65
69
  condition="f_userfiles_address like '%{}%'" placeholder='用气点'>
@@ -78,26 +82,19 @@
78
82
 
79
83
  <div class="col-sm-2 form-group">
80
84
  <label class="font_normal_body">客户类型</label>
81
- <v-select :value.sync="model.f_user_type"
82
- :options='$parent.$parent.usertypes'
83
- @change="$parent.$parent.userTypeChange()"
84
- placeholder='请选择' v-model="model.f_user_type"
85
- condition="f_user_type = '{}'"
86
- close-on-select></v-select>
85
+ <v-select :value.sync="model.f_user_type" :options='$parent.$parent.usertypes'
86
+ @change="$parent.$parent.userTypeChange()" placeholder='请选择' v-model="model.f_user_type"
87
+ condition="f_user_type = '{}'" close-on-select></v-select>
87
88
  </div>
88
- <div class="col-sm-2 form-group" >
89
+ <div class="col-sm-2 form-group">
89
90
  <label for="f_usetype" class="font_normal_body">二次挂表</label>
90
- <v-select :value.sync="model.issecondtype" v-model="model.issecondtype"
91
- condition="f_usetype {}"
92
- :options='$parent.$parent.issecond' placeholder='请选择'
93
- close-on-select></v-select>
91
+ <v-select :value.sync="model.issecondtype" v-model="model.issecondtype" condition="f_usetype {}"
92
+ :options='$parent.$parent.issecond' placeholder='请选择' close-on-select></v-select>
94
93
  </div>
95
94
  <div class="col-sm-2 form-group" v-if="titleShow">
96
- <label for="f_usetype" class="font_normal_body" title="参数:使用类型">使用类型</label>
97
- <v-select :value.sync="model.f_usetype" v-model="model.f_usetype"
98
- condition="f_usetype = '{}'"
99
- :options='$parent.$parent.usetype' placeholder='请选择'
100
- close-on-select></v-select>
95
+ <label for="f_usetype" class="font_normal_body" title="参数:使用类型">使用类型</label>
96
+ <v-select :value.sync="model.f_usetype" v-model="model.f_usetype" condition="f_usetype = '{}'"
97
+ :options='$parent.$parent.usetype' placeholder='请选择' close-on-select></v-select>
101
98
  </div>
102
99
  <div class="col-sm-2 form-group" v-if="titleShow">
103
100
  <label class="font_normal_body">用气性质</label>
@@ -108,166 +105,126 @@
108
105
  </div>
109
106
  <div class="col-sm-2 form-group">
110
107
  <label class="font_normal_body">气价类型</label>
111
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
112
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
113
- condition="f_price_type = '{}'"
114
- close-on-select v-ref:type>
108
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype" placeholder='气价类型'
109
+ :options="$parent.$parent.pricetypes" condition="f_price_type = '{}'" close-on-select
110
+ v-ref:type>
115
111
  </v-select>
116
112
  </div>
117
113
  <div class="col-sm-2 form-group">
118
114
  <label class="font_normal_body">气价名称</label>
119
- <v-select :value.sync="model.f_price_name"
120
- v-model="model.f_price_name"
121
- :options="$parent.$parent.getPricenames"
122
- placeholder='请选择'
123
- condition="f_price_name = '{}'"
115
+ <v-select :value.sync="model.f_price_name" v-model="model.f_price_name"
116
+ :options="$parent.$parent.getPricenames" placeholder='请选择' condition="f_price_name = '{}'"
124
117
  close-on-select></v-select>
125
118
  </div>
126
119
  <div class="col-sm-2 form-group">
127
120
  <label class="font_normal_body">气表分类</label>
128
- <v-select :value.sync="model.f_meter_classify"
129
- v-model="model.f_meter_classify"
121
+ <v-select :value.sync="model.f_meter_classify" v-model="model.f_meter_classify"
130
122
  :options='$parent.$parent.metertypes' placeholder='请选择'
131
123
  condition="f_meter_classify = '{}'"
132
124
  close-on-select></v-select>
133
125
  </div>
134
126
  <div class="col-sm-2 form-group">
135
127
  <label class="font_normal_body">气表品牌</label>
136
- <v-select :value.sync="model.f_meter_brand"
137
- v-model="model.f_meter_brand"
138
- :options='$parent.$parent.meterbrands' placeholder='请选择'
139
- condition="f_meter_brand = '{}'"
128
+ <v-select :value.sync="model.f_meter_brand" v-model="model.f_meter_brand"
129
+ :options='$parent.$parent.meterbrands' placeholder='请选择' condition="f_meter_brand = '{}'"
140
130
  close-on-select></v-select>
141
131
  </div>
142
132
  <div class="col-sm-2 form-group">
143
133
  <label class="font_normal_body">气表型号</label>
144
- <v-select :value.sync="model.f_meter_style"
145
- v-model="model.f_meter_style"
134
+ <v-select :value.sync="model.f_meter_style" v-model="model.f_meter_style"
146
135
  :options='$parent.$parent.meterstyle[model.f_meter_brand]' placeholder='请选择'
147
- condition="f_meter_style = '{}'"
148
- close-on-select></v-select>
136
+ condition="f_meter_style = '{}'" close-on-select></v-select>
149
137
  </div>
150
138
  <div class="col-sm-2 form-group">
151
139
  <label class="font_normal_body">气表状态</label>
152
- <v-select :value.sync="model.f_table_state"
153
- v-model="model.f_table_state"
154
- :options='$parent.$parent.tablestate' placeholder='请选择'
155
- condition="f_table_state = '{}'"
140
+ <v-select :value.sync="model.f_table_state" v-model="model.f_table_state"
141
+ :options='$parent.$parent.tablestate' placeholder='请选择' condition="f_table_state = '{}'"
156
142
  close-on-select></v-select>
157
143
  </div>
158
144
  <div class="col-sm-2 form-group">
159
145
  <label class="font_normal_body">使用状态</label>
160
- <v-select :value.sync="model.f_usestate"
161
- v-model="model.f_usestate"
162
- :options='$parent.$parent.usestate' placeholder='请选择'
163
- condition="f_usestate = '{}'"
146
+ <v-select :value.sync="model.f_usestate" v-model="model.f_usestate"
147
+ :options='$parent.$parent.usestate' placeholder='请选择' condition="f_usestate = '{}'"
164
148
  close-on-select></v-select>
165
149
  </div>
166
150
  <div class="col-sm-2 form-group">
167
151
  <label for="startDate" class="font_normal_body">建表日期</label>
168
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
169
- v-model="model.startDate"
170
- :value.sync="model.startDate"
171
- :format="'yyyy-MM-dd'"
172
- :show-reset-button="true"
152
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%" v-model="model.startDate"
153
+ :value.sync="model.startDate" :format="'yyyy-MM-dd'" :show-reset-button="true"
173
154
  condition="f_input_date >= '{} 00:00:00'">
174
155
  </datepicker>
175
156
  </div>
176
157
  <div class="col-sm-2 form-group">
177
158
  <label for="endDate" class="font_normal_body">建表日期</label>
178
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
179
- v-model="model.endDate"
180
- :value.sync="model.endDate"
181
- :format="'yyyy-MM-dd'"
182
- :show-reset-button="true"
159
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%" v-model="model.endDate"
160
+ :value.sync="model.endDate" :format="'yyyy-MM-dd'" :show-reset-button="true"
183
161
  condition="f_input_date <= '{} 23:59:59'">
184
162
  </datepicker>
185
163
  </div>
186
164
  <div class="col-sm-2 form-group">
187
165
  <label for="startDate" class="font_normal_body">通气日期</label>
188
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
189
- v-model="model.startTQDate"
190
- :value.sync="model.startTQDate"
191
- :format="'yyyy-MM-dd'"
192
- :show-reset-button="true"
166
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%" v-model="model.startTQDate"
167
+ :value.sync="model.startTQDate" :format="'yyyy-MM-dd'" :show-reset-button="true"
193
168
  condition="f_gas_date >= '{} 00:00:00'">
194
169
  </datepicker>
195
170
  </div>
196
171
  <div class="col-sm-2 form-group">
197
172
  <label for="endDate" class="font_normal_body">通气日期</label>
198
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
199
- v-model="model.endTQDate"
200
- :value.sync="model.endTQDate"
201
- :format="'yyyy-MM-dd'"
202
- :show-reset-button="true"
173
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%" v-model="model.endTQDate"
174
+ :value.sync="model.endTQDate" :format="'yyyy-MM-dd'" :show-reset-button="true"
203
175
  condition="f_gas_date <= '{} 23:59:59'">
204
176
  </datepicker>
205
177
  </div>
206
178
  <div class="col-sm-2 form-group">
207
179
  <label class="font_normal_body">&nbsp;&nbsp;&nbsp;壁挂炉</label>
208
- <v-select :value.sync="model.isbgl" v-model="model.isbgl"
209
- :options='$parent.$parent.bgl' placeholder='请选择'
210
- condition="isbgl = '{}'"
211
- close-on-select></v-select>
180
+ <v-select :value.sync="model.isbgl" v-model="model.isbgl" :options='$parent.$parent.bgl'
181
+ placeholder='请选择' condition="isbgl = '{}'" close-on-select></v-select>
212
182
  </div>
213
183
  <div class="col-sm-2 form-group" v-if="titleShow">
214
184
  <label class="font_normal_body">用户等级</label>
215
- <v-select :value.sync="model.f_user_grade"
216
- v-model="model.f_user_grade"
217
- :options='$parent.$parent.usergrade' placeholder='请选择'
218
- condition="f_user_grade = '{}'"
185
+ <v-select :value.sync="model.f_user_grade" v-model="model.f_user_grade"
186
+ :options='$parent.$parent.usergrade' placeholder='请选择' condition="f_user_grade = '{}'"
219
187
  close-on-select></v-select>
220
188
  </div>
221
189
  <!--表册片区-->
222
190
  <div class="col-sm-2 form-group">
223
191
  <label class="font_normal_body">表册片区</label>
224
192
  <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
225
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
226
- style="width:60%"
227
- close-on-select
193
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册' style="width:60%" close-on-select
228
194
  condition="f_book_slice_area = '{}'"></v-select>
229
195
  </div>
230
196
  <div class="col-sm-2 form-group">
231
- <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
232
- <v-select :value.sync="model.f_inputtor"
233
- v-model="model.f_inputtor"
234
- :options='$parent.$parent.inputtores' placeholder='请选择'
235
- condition="f_inputtor = '{}'"
197
+ <label class="font_normal_body">抄&nbsp;&nbsp;表&nbsp;员</label>
198
+ <v-select :value.sync="model.f_inputtor" v-model="model.f_inputtor"
199
+ :options='$parent.$parent.inputtores' placeholder='请选择' condition="f_inputtor = '{}'"
236
200
  close-on-select :value-single="true" :search="false">
237
201
  </v-select>
238
202
  </div>
239
203
  <div class="col-sm-2 form-group">
240
204
  <label class="font_normal_body">抄&ensp;表&ensp;册</label>
241
205
  <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
242
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
243
- style="width:60%"
244
- close-on-select
206
+ :options='$parent.$parent.meterbooks' placeholder='抄表册' style="width:60%" close-on-select
245
207
  condition="f_meter_book_num = '{}'"></v-select>
246
208
  </div>
247
209
  <div class="col-sm-2 form-group">
248
210
  <label class="font_normal_body">自动阀控</label>
249
- <v-select
250
- placeholder='自动阀控'
251
-
252
- :value.sync="model.f_network_valve"
253
- style="width:60%"
254
- v-model="model.f_network_valve"
255
- :options='$parent.$parent.networkvalves'
256
- close-on-select
257
- condition="f_networkvalve='{}'">
211
+ <v-select placeholder='自动阀控' :value.sync="model.f_network_valve" style="width:60%"
212
+ v-model="model.f_network_valve" :options='$parent.$parent.networkvalves' close-on-select
213
+ condition="f_networkvalve='{}'">
258
214
  </v-select>
259
215
  </div>
260
-
261
216
  </div>
262
217
  </div>
263
218
  </criteria>
264
219
 
265
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" :classname="$parent.classname">
220
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy"
221
+ :classname="$parent.classname">
266
222
  <template partial='head'>
267
223
  <tr>
268
224
  <th>
269
225
  <!--<nobr>客户编号</nobr>-->
270
- <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
226
+ <data-order field="f_userinfo_code" name="客户编号"
227
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
271
228
  </th>
272
229
  <th>
273
230
  <nobr>客户名称</nobr>
@@ -286,11 +243,15 @@
286
243
  </th>
287
244
  <th>
288
245
  <!--<nobr>客户地址</nobr>-->
289
- <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
246
+ <data-order field="f_address" name="客户地址"
247
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
290
248
  </th>
291
249
  <th>
292
250
  <nobr>表册片区</nobr>
293
251
  </th>
252
+ <th>
253
+ <nobr>累购气量</nobr>
254
+ </th>
294
255
  <th>
295
256
  <nobr>表上余额</nobr>
296
257
  </th>
@@ -331,11 +292,13 @@
331
292
  </th>
332
293
  <th>
333
294
  <!--<nobr>通气时间</nobr>-->
334
- <data-order field="f_gas_date" name="通气时间" :order.sync="$parent.$parent.$parent.orderFields.f_gas_date"></data-order>
295
+ <data-order field="f_gas_date" name="通气时间"
296
+ :order.sync="$parent.$parent.$parent.orderFields.f_gas_date"></data-order>
335
297
  </th>
336
298
  <th>
337
299
  <!--<nobr>建表时间</nobr>-->
338
- <data-order field="f_input_date" name="建表时间" :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
300
+ <data-order field="f_input_date" name="建表时间"
301
+ :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
339
302
  </th>
340
303
  <th>
341
304
  <nobr>气表状态</nobr>
@@ -349,82 +312,89 @@
349
312
  </tr>
350
313
  </template>
351
314
  <template partial='body'>
352
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;"><nobr>
353
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
354
- </nobr> </td>
355
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
356
- <nobr>{{row.f_user_name}}</nobr>
315
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
316
+ <nobr>
317
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{ row.f_userinfo_code }}</a></span>
318
+ </nobr>
319
+ </td>
320
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
321
+ <nobr>{{ row.f_user_name }}</nobr>
357
322
  </td>
358
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
359
- <nobr>{{row.f_olduserinfo_code}}</nobr>
323
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
324
+ <nobr>{{ row.f_olduserinfo_code }}</nobr>
360
325
  </td>
361
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
362
- <nobr>{{row.f_user_phone}}</nobr>
326
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
327
+ <nobr>{{ row.f_user_phone }}</nobr>
363
328
  </td>
364
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
365
- <nobr>{{row.f_rent_phone}}</nobr>
329
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
330
+ <nobr>{{ row.f_rent_phone }}</nobr>
366
331
  </td>
367
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
368
- <nobr>{{row.idnumber}}</nobr>
332
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
333
+ <nobr>{{ row.idnumber }}</nobr>
369
334
  </td>
370
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
371
- <nobr>{{row.f_address}}</nobr>
335
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
336
+ <nobr>{{ row.f_address }}</nobr>
372
337
  </td>
373
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
374
- <nobr>{{row.f_book_slice_area}}</nobr>
338
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
339
+ <nobr>{{ row.f_book_slice_area }}</nobr>
375
340
  </td>
376
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
377
- <nobr>{{row.f_balance_amount}}</nobr>
341
+ <td :class="row.f_total_gas!== '正常' ? 'back-red' : 'back-blue'" style="...">
342
+ <nobr>{{ row.f_total_gas }}</nobr>
378
343
  </td>
379
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
380
- <nobr>{{row.f_user_type}}</nobr>
344
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
345
+ <nobr>{{ row.f_balance_amount }}</nobr>
381
346
  </td>
382
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" v-if="titleShow">
383
- <nobr>{{row.f_usetype}}</nobr>
347
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
348
+ <nobr>{{ row.f_user_type }}</nobr>
384
349
  </td>
385
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" v-if="titleShow">
386
- <nobr>{{row.f_gasproperties}}</nobr>
350
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;"
351
+ v-if="titleShow">
352
+ <nobr>{{ row.f_usetype }}</nobr>
387
353
  </td>
388
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
389
- <nobr>{{row.f_meternumber}}</nobr>
354
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;"
355
+ v-if="titleShow">
356
+ <nobr>{{ row.f_gasproperties }}</nobr>
390
357
  </td>
391
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
392
- <nobr>{{row.f_card_id}}</nobr>
358
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
359
+ <nobr>{{ row.f_meternumber }}</nobr>
360
+ </td>
361
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
362
+ <nobr>{{ row.f_card_id }}</nobr>
393
363
  </td>
394
364
 
395
365
 
396
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
397
- <nobr>{{row.f_price_name}}</nobr>
366
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
367
+ <nobr>{{ row.f_price_name }}</nobr>
398
368
  </td>
399
- <th :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
400
- <nobr>{{row.value}}</nobr>
369
+ <th :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
370
+ <nobr>{{ row.value }}</nobr>
401
371
  </th>
402
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
403
- <nobr>{{row.f_meter_brand}}</nobr>
372
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
373
+ <nobr>{{ row.f_meter_brand }}</nobr>
404
374
  </td>
405
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
406
- <nobr>{{row.f_meter_style}}</nobr>
375
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
376
+ <nobr>{{ row.f_meter_style }}</nobr>
407
377
  </td>
408
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
409
- <nobr>{{row.f_inputtor}}</nobr>
378
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
379
+ <nobr>{{ row.f_inputtor }}</nobr>
410
380
  </td>
411
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
412
- <nobr>{{row.f_gas_person}}</nobr>
381
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
382
+ <nobr>{{ row.f_gas_person }}</nobr>
413
383
  </td>
414
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
415
- <nobr>{{row.f_gas_date}}</nobr>
384
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
385
+ <nobr>{{ row.f_gas_date }}</nobr>
416
386
  </td>
417
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
418
- <nobr>{{row.f_input_date}}</nobr>
387
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
388
+ <nobr>{{ row.f_input_date }}</nobr>
419
389
  </td>
420
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
421
- <nobr>{{row.f_table_state}}</nobr>
390
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
391
+ <nobr>{{ row.f_table_state }}</nobr>
422
392
  </td>
423
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
424
- <nobr>{{row.isbgl}}</nobr>
393
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
394
+ <nobr>{{ row.isbgl }}</nobr>
425
395
  </td>
426
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
427
- <nobr>{{row.f_networkvalve}}</nobr>
396
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
397
+ <nobr>{{ row.f_networkvalve }}</nobr>
428
398
  </td>
429
399
  </template>
430
400
  <template partial='foot'>
@@ -438,8 +408,9 @@
438
408
  style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
439
409
  汇总信息
440
410
  </td>
441
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
442
- 表上余额合计&emsp;{{sumsmodel.f_balance_amount}}
411
+ <td
412
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
413
+ 表上余额合计&emsp;{{ sumsmodel.f_balance_amount }}
443
414
  </td>
444
415
  </tr>
445
416
  </table>
@@ -472,514 +443,523 @@
472
443
  <!--</modal>-->
473
444
  </div>
474
445
  <div class="flex" v-if="show">
475
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
446
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
447
+ @cancel-main="cancel"></user-info-detail-manage-new>
476
448
  </div>
477
449
  </div>
478
450
  </div>
479
451
  </div>
480
- <high-meter-idcard :show.sync="false" v-ref:highcard ></high-meter-idcard>
452
+ <high-meter-idcard :show.sync="false" v-ref:highcard></high-meter-idcard>
481
453
  </template>
482
454
 
483
455
  <script>
484
- import {PagedList} from 'vue-client'
485
- import exportConfig from '../config/exportConfig'
486
- let cardBtnGen = async function (self, val) {
487
- self.cardInfo = val.data
456
+ import {PagedList} from 'vue-client'
457
+ import exportConfig from '../config/exportConfig'
488
458
 
489
- // 判断读卡是否需要卡密码
490
- console.log('读卡上的信息', self.cardInfo)
459
+ let cardBtnGen = async function (self, val) {
460
+ self.cardInfo = val.data
491
461
 
492
- if (self.cardInfo.NewParam) {
493
- if (self.cardInfo.NewParam.error) {
494
- if (self.cardInfo.NewParam.error === '0001') {
495
- // 需要重新读卡并传卡密码
496
- if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
497
- self.readCardParam = self.model.rows[0].f_card_password
498
- self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
499
- } else {
500
- self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
501
- return
502
- }
462
+ // 判断读卡是否需要卡密码
463
+ console.log('读卡上的信息', self.cardInfo)
464
+
465
+ if (self.cardInfo.NewParam) {
466
+ if (self.cardInfo.NewParam.error) {
467
+ if (self.cardInfo.NewParam.error === '0001') {
468
+ // 需要重新读卡并传卡密码
469
+ if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
470
+ self.readCardParam = self.model.rows[0].f_card_password
471
+ self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
472
+ } else {
473
+ self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
474
+ return
503
475
  }
504
476
  }
505
477
  }
506
- self.card=self.cardInfo.CardID
507
- self.search()
508
478
  }
479
+ self.card = self.cardInfo.CardID
480
+ self.search()
481
+ }
509
482
 
510
- let readySomething = async function (self) {
511
- self.$MagGetSaleParam.initinputtor();
512
- self.getinputtores();
513
- self.initmeterbook();
514
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
515
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
516
- // await self.$refs.paged.$refs.cri.search()
517
- await self.$MagLoadParams.loadParam()
518
- self.initParams()
519
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
520
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
521
- }
483
+ let readySomething = async function (self) {
484
+ self.$MagGetSaleParam.initinputtor();
485
+ self.getinputtores();
486
+ self.initmeterbook();
487
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
488
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
489
+ // await self.$refs.paged.$refs.cri.search()
490
+ await self.$MagLoadParams.loadParam()
491
+ self.initParams()
492
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
493
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
494
+ }
522
495
 
523
- export default {
524
- title: '表具查询',
525
- data() {
526
- return {
527
- IdCardInfo:'',
528
- titleShow : true,
529
- card:'',
530
- isSingleUser: null,
531
- other:[],
532
- footer:[],
533
- model: new PagedList('rs/sql/meterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
534
- criteriaShow: false,
535
- orgCondtionStr: '',
496
+ export default {
497
+ title: '表具查询',
498
+ data() {
499
+ return {
500
+ IdCardInfo: '',
501
+ titleShow: true,
502
+ card: '',
503
+ isSingleUser: null,
504
+ other: [],
505
+ footer: [],
506
+ model: new PagedList('rs/sql/meterQuery', 20, {orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
507
+ criteriaShow: false,
508
+ orgCondtionStr: '',
536
509
 
537
- modelval: [],
538
- printshow: false,
539
- all: false,
540
- fields: {},
541
- //排序
542
- orderitem:'f_user_id,f_table_state desc',
543
- orderFields: {
544
- f_userinfo_id: 'no'
545
- },
546
- thead: '',
547
- tfoot: '',
548
- initres: {
549
- org:[this.$login.f.orgid],
550
- dep:[],
551
- user:[],
552
- },
553
- show:false,
554
- rowdata:{},
555
- meterbrands: [],
556
- // 气表型号
557
- meterstyle: {},
558
- //默认打印列
559
- defaultfield: [],
560
- config: {
561
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
562
- },
563
- pricenames: [],
564
- gasproperties:[],
565
- inputtouPerson: [],
566
- meterbooks:[{label: '全部',value: ''}], //抄表册
567
- prices: [],
568
- //合计数据
569
- sumsmodel: {},
570
- //表册片区
571
- bookSlice:[{label: '全部',value: ''}],
572
- inputtores:[{label: '全部',value: ''}], //抄表员
573
- f_filialeid: this.$login.f.f_orgid,
574
- allorgid:[],
575
- tempfalg :false,
576
- lastorgstr:'',
577
- issecond: [{label:'是',value:" = '二次挂表'"},{label:'否',value:" <> '二次挂表'"}],
578
- usetype:this.$appdata.getParam('使用类型'),
579
- networkvalves: this.$appdata.getParam('自动阀控') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('自动阀控')] : []
510
+ modelval: [],
511
+ printshow: false,
512
+ all: false,
513
+ fields: {},
514
+ //排序
515
+ orderitem: 'f_user_id,f_table_state desc',
516
+ orderFields: {
517
+ f_userinfo_id: 'no'
518
+ },
519
+ thead: '',
520
+ tfoot: '',
521
+ initres: {
522
+ org: [this.$login.f.orgid],
523
+ dep: [],
524
+ user: [],
525
+ },
526
+ show: false,
527
+ rowdata: {},
528
+ meterbrands: [],
529
+ // 气表型号
530
+ meterstyle: {},
531
+ //默认打印列
532
+ defaultfield: [],
533
+ config: {
534
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
535
+ },
536
+ pricenames: [],
537
+ gasproperties: [],
538
+ inputtouPerson: [],
539
+ meterbooks: [{label: '全部', value: ''}], //抄表册
540
+ prices: [],
541
+ //合计数据
542
+ sumsmodel: {},
543
+ //表册片区
544
+ bookSlice: [{label: '全部', value: ''}],
545
+ inputtores: [{label: '全部', value: ''}], //抄表员
546
+ f_filialeid: this.$login.f.f_orgid,
547
+ allorgid: [],
548
+ tempfalg: false,
549
+ lastorgstr: '',
550
+ issecond: [{label: '是', value: " = '二次挂表'"}, {label: '否', value: " <> '二次挂表'"}],
551
+ usetype: this.$appdata.getParam('使用类型'),
552
+ networkvalves: this.$appdata.getParam('自动阀控') ? [{
553
+ label: '全部',
554
+ value: ''
555
+ }, ...this.$appdata.getParam('自动阀控')] : [],
556
+ }
557
+ },
558
+ ready() {
559
+ console.log("===========", this.$filialeInfo)
560
+ this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null ? true : this.$appdata.getSingleValue('是否显示筛选框')
561
+ readySomething(this).then(() => {
562
+ this.$emit('ready')
563
+ }).catch((error) => {
564
+ this.$emit('error', error)
565
+ })
566
+ },
567
+ methods: {
568
+ ReadIDCard() {
569
+ this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
570
+ console.log('======', msg)
571
+ if (msg.err !== 0) {
572
+ return
573
+ }
574
+ this.IdCardInfo = msg.strID
575
+ })
576
+ console.log(this.IdCardInfo)
577
+ if (this.IdCardInfo) {
578
+ this.search()
579
+ } else {
580
+ alert("读取失败,找不到用户信息")
580
581
  }
581
582
  },
582
- ready() {
583
- console.log("===========",this.$filialeInfo)
584
- this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null? true : this.$appdata.getSingleValue('是否显示筛选框')
585
- readySomething(this).then(() => {
586
- this.$emit('ready')
587
- }).catch((error) => {
588
- this.$emit('error', error)
589
- })
583
+ cardBtn(val) {
584
+ // this.clear()
585
+ cardBtnGen(this, val)
590
586
  },
591
- methods: {
592
- ReadIDCard(){
593
- this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
594
- console.log('======',msg)
595
- if(msg.err !== 0){ return}
596
- this.IdCardInfo=msg.strID
597
- })
598
- console.log(this.IdCardInfo)
599
- if(this.IdCardInfo) {
600
- this.search()
601
- }else{
602
- alert("读取失败,找不到用户信息")
603
- }
604
- },
605
- cardBtn (val) {
606
- // this.clear()
607
- cardBtnGen(this, val)
608
- },
609
- async initmeterbook(orgstr){
610
- if(orgstr == null ){
611
- orgstr = this.f_filialeid;
612
- }
613
- //获取新的抄表册,先去清理所有的抄表册
614
- this.$GetSaleParam.meterbooks = [];
615
- //开始加载新的抄表册
616
- await this.$LoadParams.loadMeterBook(orgstr)
617
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
618
- },
619
- async getinputtores () {
620
- // 获取抄表员
621
- let rs = []
622
- if (this.$login.f.f_gasman.length > 0) {
623
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
624
- let temp = {
625
- label: this.$login.f.f_gasman[i].name,
626
- value: this.$login.f.f_gasman[i].name
627
- }
628
- rs.push(temp)
587
+ async initmeterbook(orgstr) {
588
+ if (orgstr == null) {
589
+ orgstr = this.f_filialeid;
590
+ }
591
+ //获取新的抄表册,先去清理所有的抄表册
592
+ this.$GetSaleParam.meterbooks = [];
593
+ //开始加载新的抄表册
594
+ await this.$LoadParams.loadMeterBook(orgstr)
595
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
596
+ },
597
+ async getinputtores() {
598
+ // 获取抄表员
599
+ let rs = []
600
+ if (this.$login.f.f_gasman.length > 0) {
601
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
602
+ let temp = {
603
+ label: this.$login.f.f_gasman[i].name,
604
+ value: this.$login.f.f_gasman[i].name
629
605
  }
606
+ rs.push(temp)
630
607
  }
631
- this.inputtores = [{label: '全部', value: ''}, ...rs]
632
- },
633
- getotherfooter () {
634
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
635
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
636
- this.other = [];
637
- this.footer = [];
638
- let exportdata = this.getCondition;
639
- let otherInData = [];
640
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
641
- let footerData = [], exportfield = this.getExportField;
642
- footerData.push("合计");
643
- let self = this;
644
- for (var field in self.sumsmodel) {
645
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
646
- }
647
- this.footer.push(footerData);
648
- this.other.push(otherInData);
649
- },
650
- search(){
651
- this.$refs.paged.$refs.cri.search()
652
- },
653
- cancel() {
654
- this.show = false
655
- },
656
- showmsg(obj){
657
- this.rowdata=obj
658
- this.show=true
659
- },
660
- selfSearch(args) {
661
- //抄表员查询条件
662
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
663
- if(this.inputtouPerson.length !== 0){
664
- let str = JSON.stringify(this.inputtouPerson)
665
- str = str.replace(/"/g,`'`)
666
- str = str.replace(/\[/g,``)
667
- str = str.replace(/\]/g,``)
668
- console.log("=====抄表员model22222222222绑定====",str)
669
- //查询多个抄表员时条件
670
- args.condition += ` and f_inputtor in ( ${str} )`
671
- }
672
- if (!this.orgCondtionStr) {
673
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
674
- } else {
675
- args.condition = `${args.condition}` + this.orgCondtionStr
676
- }
677
- if(this.card!=''){
678
- args.condition +=` and f_card_id='${this.card}'`
679
- }
680
- if(this.IdCardInfo!=''){
681
- args.condition+=` and f_idnumber='${this.IdCardInfo}'`
682
- }
683
- this.model.search(args.condition, args.model)
684
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
685
- this.card=''
686
- this.IdCardInfo=''
687
- },
688
- clear() {
689
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
690
- this.$refs.paged.$refs.cri.model[key] = []
691
- })
692
- },
693
- hidden() {
694
- this.criteriaShow = !this.criteriaShow
695
- },
696
- async getRes(condition) {
697
- this.orgCondtionStr = condition
608
+ }
609
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
610
+ },
611
+ getotherfooter() {
612
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
613
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
614
+ this.other = [];
615
+ this.footer = [];
616
+ let exportdata = this.getCondition;
617
+ let otherInData = [];
618
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
619
+ let footerData = [], exportfield = this.getExportField;
620
+ footerData.push("合计");
621
+ let self = this;
622
+ for (var field in self.sumsmodel) {
623
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
624
+ }
625
+ this.footer.push(footerData);
626
+ this.other.push(otherInData);
627
+ },
628
+ search() {
629
+ this.$refs.paged.$refs.cri.search()
630
+ },
631
+ cancel() {
632
+ this.show = false
633
+ },
634
+ showmsg(obj) {
635
+ this.rowdata = obj
636
+ this.show = true
637
+ },
638
+ selfSearch(args) {
639
+ //抄表员查询条件
640
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
641
+ if (this.inputtouPerson.length !== 0) {
642
+ let str = JSON.stringify(this.inputtouPerson)
643
+ str = str.replace(/"/g, `'`)
644
+ str = str.replace(/\[/g, ``)
645
+ str = str.replace(/\]/g, ``)
646
+ console.log("=====抄表员model22222222222绑定====", str)
647
+ //查询多个抄表员时条件
648
+ args.condition += ` and f_inputtor in ( ${str} )`
649
+ }
650
+ if (!this.orgCondtionStr) {
651
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
652
+ } else {
653
+ args.condition = `${args.condition}` + this.orgCondtionStr
654
+ }
655
+ if (this.card != '') {
656
+ args.condition += ` and f_card_id='${this.card}'`
657
+ }
658
+ if (this.IdCardInfo != '') {
659
+ args.condition += ` and f_idnumber='${this.IdCardInfo}'`
660
+ }
661
+ this.model.search(args.condition, args.model)
662
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
663
+ this.card = ''
664
+ this.IdCardInfo = ''
665
+ },
666
+ clear() {
667
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
668
+ this.$refs.paged.$refs.cri.model[key] = []
669
+ })
670
+ },
671
+ hidden() {
672
+ this.criteriaShow = !this.criteriaShow
673
+ },
674
+ async getRes(condition) {
675
+ this.orgCondtionStr = condition
698
676
 
699
- },
700
- stamp() {
701
- this.all = false
702
- //默认选择要打印的列
703
- this.modelval = defaultPrint.config
704
- this.fields = this.getfield
705
- console.log('所有打印字段', this.fields)
706
- this.printshow = true
707
- this.put()
708
- },
709
- put() {
710
- // 对Modelval进行排序
711
- this.sortModelval()
712
- this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
713
- for (let key of this.modelval) {
714
- this.thead += '<th>' + this.fields[key] + '</th>'
715
- }
716
- this.thead += '</tr>'
717
- },
718
- print() {
719
- this.$refs.print.PrintAsFile()
720
- this.printshow = false
721
- },
722
- close() {
723
- this.printshow = false
724
- this.all = false
725
- },
726
- userTypeChange () {
727
- this.gasproperties=[]
728
- if(this.$refs.paged.$refs.cri.model !==null) {
729
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
730
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
677
+ },
678
+ stamp() {
679
+ this.all = false
680
+ //默认选择要打印的列
681
+ this.modelval = defaultPrint.config
682
+ this.fields = this.getfield
683
+ console.log('所有打印字段', this.fields)
684
+ this.printshow = true
685
+ this.put()
686
+ },
687
+ put() {
688
+ // 对Modelval进行排序
689
+ this.sortModelval()
690
+ this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
691
+ for (let key of this.modelval) {
692
+ this.thead += '<th>' + this.fields[key] + '</th>'
693
+ }
694
+ this.thead += '</tr>'
695
+ },
696
+ print() {
697
+ this.$refs.print.PrintAsFile()
698
+ this.printshow = false
699
+ },
700
+ close() {
701
+ this.printshow = false
702
+ this.all = false
703
+ },
704
+ userTypeChange() {
705
+ this.gasproperties = []
706
+ if (this.$refs.paged.$refs.cri.model !== null) {
707
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
708
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
709
+ } else {
710
+ this.gasproperties = [{label: '全部', value: ''}]
711
+ }
712
+ },
713
+ initParams() {
714
+ // 初始化气表品牌
715
+ let brandArr = []
716
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
717
+ let temp = {}
718
+ temp.label = item.label
719
+ temp.value = item.value.f_meter_brand
720
+ brandArr.push(temp)
721
+ // 取出对应气表型号
722
+ let styleArr = []
723
+ for (let row of item.value.gasmodel) {
724
+ styleArr.push({label: row.label, value: row.value.f_meter_style})
731
725
  }
732
- else{
733
- this.gasproperties =[{label: '全部', value: ''}]
726
+ this.meterstyle[temp.value] = styleArr
727
+ })
728
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
729
+ //初始化气表价格
730
+ this.prices = this.$MagGetSaleParam.getPrices();
731
+ },
732
+ // 对选择的列进行排序
733
+ sortModelval() {
734
+ let sortModel = []
735
+ Object.keys(this.fields).forEach((key) => {
736
+ if (this.modelval.includes(key)) {
737
+ sortModel.push(key)
734
738
  }
735
- },
736
- initParams() {
737
- // 初始化气表品牌
738
- let brandArr = []
739
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
740
- let temp = {}
741
- temp.label = item.label
742
- temp.value = item.value.f_meter_brand
743
- brandArr.push(temp)
744
- // 取出对应气表型号
745
- let styleArr = []
746
- for (let row of item.value.gasmodel) {
747
- styleArr.push({label: row.label,value: row.value.f_meter_style})
748
- }
749
- this.meterstyle[temp.value] = styleArr
739
+ })
740
+ this.modelval = sortModel
741
+ console.log('选择的打印的字段', this.modelval)
742
+ },
743
+ async updateParams() {
744
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
745
+ this.inputtores = [];
746
+ this.inputtores.push({label: "全部", value: ""})
747
+ this.initSlice(this.f_filialeid)
748
+ if (this.allorgid != null) {
749
+ this.allorgid.forEach((res) => {
750
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
750
751
  })
751
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
752
- //初始化气表价格
753
- this.prices = this.$MagGetSaleParam.getPrices();
754
- },
755
- // 对选择的列进行排序
756
- sortModelval() {
757
- let sortModel = []
758
- Object.keys(this.fields).forEach((key) => {
759
- if (this.modelval.includes(key)) {
760
- sortModel.push(key)
761
- }
752
+ }
753
+ },
754
+ async initSlice(val) {
755
+ if (val) {
756
+ let getAllArea = await this.$resetpost('/rs/search', {
757
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
758
+ userid: this.$login.f.id
759
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
760
+ let arr = getAllArea.data.filter((res) => {
761
+ return res.parentid == val
762
+ })
763
+ this.bookSlice = []
764
+ console.log('过滤之后的片区-------------------', arr)
765
+ arr.forEach((res) => {
766
+ this.bookSlice.push({label: res.name, value: res.name})
762
767
  })
763
- this.modelval = sortModel
764
- console.log('选择的打印的字段', this.modelval)
765
- },
766
- async updateParams() {
767
- await this.$MagLoadParams.loadParam(this.f_filialeid)
768
- this.inputtores = [];
769
- this.inputtores.push({label: "全部", value: ""})
770
- this.initSlice(this.f_filialeid)
771
- if(this.allorgid!=null){
772
- this.allorgid.forEach((res)=>{
773
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
774
- })
775
- }
776
- },
777
- async initSlice (val) {
778
- if (val) {
779
- let getAllArea = await this.$resetpost('/rs/search', {
780
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
781
- userid: this.$login.f.id
782
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
783
- let arr = getAllArea.data.filter((res) => {
784
- return res.parentid == val
785
- })
786
- this.bookSlice = []
787
- console.log('过滤之后的片区-------------------', arr)
788
- arr.forEach((res) => {
789
- this.bookSlice.push({label: res.name, value: res.name})
790
- })
791
- }
792
- },
793
- sort (field, rule) {
794
- // 将所有排序方式设为不排序,实现相互排斥
795
- for (let key in this.orderFields) {
796
- if (key === field) {
797
- this.orderFields[key] = rule
798
- } else {
799
- this.orderFields[key] = 'no'
800
- }
801
- }
802
- // 如果新规则不排序,还原为默认排序
803
- if (rule === 'no') {
804
- this.model.paramSource.orderitem = `'${this.orderitem}'`
805
- } else {
806
- this.model.paramSource.orderitem = `'${field} ${rule}'`
807
- }
808
-
809
- this.search()
810
768
  }
811
769
  },
812
- watch: {
813
- 'model.rows.length' () {
814
- this.isSingleUser = this.model.rows
815
- },
816
- 'all'(val) {
817
- if (val) {
818
- this.modelval = this.bodyData
770
+ sort(field, rule) {
771
+ // 将所有排序方式设为不排序,实现相互排斥
772
+ for (let key in this.orderFields) {
773
+ if (key === field) {
774
+ this.orderFields[key] = rule
819
775
  } else {
820
- this.modelval = defaultPrint.config
821
- this.put()
776
+ this.orderFields[key] = 'no'
822
777
  }
823
- },
824
- sumsmodel:{
825
- handler: function(val) {
826
- this.getotherfooter();
827
- },
828
- deep: true
829
- },
830
- 'modelval.length'() {
778
+ }
779
+ // 如果新规则不排序,还原为默认排序
780
+ if (rule === 'no') {
781
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
782
+ } else {
783
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
784
+ }
785
+
786
+ this.search()
787
+ }
788
+ },
789
+ watch: {
790
+ 'model.rows.length'() {
791
+ this.isSingleUser = this.model.rows
792
+ },
793
+ 'all'(val) {
794
+ if (val) {
795
+ this.modelval = this.bodyData
796
+ } else {
797
+ this.modelval = defaultPrint.config
831
798
  this.put()
799
+ }
800
+ },
801
+ sumsmodel: {
802
+ handler: function (val) {
803
+ this.getotherfooter();
832
804
  },
833
- async 'orgCondtionStr'(val) {
834
- //更新抄表册
835
- this.meterbooks = [{label: '全部',value: ''}];
836
- if(this.lastorgstr != val){
837
- this.tempfalg = true;
838
- this.lastorgstr = val;
839
- }
840
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
841
- this.tempfalg = false;
842
- let a = val.substring(val.indexOf("(")+2)
843
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
844
- }
845
- let res = val.match(/'(.*?)'/)
846
- console.log('正则提取:',res && res[1])
847
- if (res) {
848
- this.f_filialeid = res[1]
849
- if(res.input !=null){
850
- let resorgid = res.input.substring(res.input.indexOf("'"));
851
- if(resorgid!= null && resorgid!=''){
852
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
853
- // resorgid = resorgid.replaceAll("'","");
854
- resorgid = resorgid.replace(/'/g,"");
855
- this.allorgid = resorgid.split(",")
856
- }
805
+ deep: true
806
+ },
807
+ 'modelval.length'() {
808
+ this.put()
809
+ },
810
+ async 'orgCondtionStr'(val) {
811
+ //更新抄表册
812
+ this.meterbooks = [{label: '全部', value: ''}];
813
+ if (this.lastorgstr != val) {
814
+ this.tempfalg = true;
815
+ this.lastorgstr = val;
816
+ }
817
+ if (this.tempfalg && val != null && val != '' && val.indexOf("(") > -1) {
818
+ this.tempfalg = false;
819
+ let a = val.substring(val.indexOf("(") + 2)
820
+ await this.initmeterbook(a.substring(0, a.indexOf(")") - 1));
821
+ }
822
+ let res = val.match(/'(.*?)'/)
823
+ console.log('正则提取:', res && res[1])
824
+ if (res) {
825
+ this.f_filialeid = res[1]
826
+ if (res.input != null) {
827
+ let resorgid = res.input.substring(res.input.indexOf("'"));
828
+ if (resorgid != null && resorgid != '') {
829
+ resorgid = resorgid.substring(0, resorgid.lastIndexOf("'") + 1);
830
+ // resorgid = resorgid.replaceAll("'","");
831
+ resorgid = resorgid.replace(/'/g, "");
832
+ this.allorgid = resorgid.split(",")
857
833
  }
858
- this.updateParams()
859
834
  }
835
+ this.updateParams()
860
836
  }
837
+ }
838
+ },
839
+ computed: {
840
+ authArr() {
841
+ return this.$login.r ? this.$login.r : []
861
842
  },
862
- computed: {
863
- authArr () {
864
- return this.$login.r ? this.$login.r : []
865
- },
866
- getPricenames() {
867
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
868
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
869
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
870
- // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
871
- if(this.$refs.paged.$refs.cri.model !==null) {
872
- let rs = []
873
- let priceArr = []
874
- if ( pricetype.length >0) {
875
- let params = {
876
- f_price_type: pricetype[0],
877
- filter: this.f_filialeid,
878
- prices: this.prices
879
- }
880
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
881
- let temp = {}
882
- temp.label = item.label
883
- temp.value = item.value.f_price_name
884
- priceArr.push(temp)
885
- })
886
- rs = [{label: '全部', value: ''}, ...priceArr]
887
- }
888
- if (rs.length === 0) {
889
- console.log('rs读出来是空')
890
- this.$refs.paged.$refs.cri.model.f_price_name = ''
843
+ getPricenames() {
844
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
845
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
846
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
847
+ // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
848
+ if (this.$refs.paged.$refs.cri.model !== null) {
849
+ let rs = []
850
+ let priceArr = []
851
+ if (pricetype.length > 0) {
852
+ let params = {
853
+ f_price_type: pricetype[0],
854
+ filter: this.f_filialeid,
855
+ prices: this.prices
891
856
  }
892
- return rs
857
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
858
+ let temp = {}
859
+ temp.label = item.label
860
+ temp.value = item.value.f_price_name
861
+ priceArr.push(temp)
862
+ })
863
+ rs = [{label: '全部', value: ''}, ...priceArr]
893
864
  }
894
- },
895
- getCondition() {
896
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
897
- },
898
- getfield() {
899
- let data = {}
900
- this.bodyData.forEach((value, index) => {
901
- data[this.bodyData[index]] = this.headData[index]
865
+ if (rs.length === 0) {
866
+ console.log('rs读出来是空')
867
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
868
+ }
869
+ return rs
870
+ }
871
+ },
872
+ getCondition() {
873
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr, orderitem: this.orderitem}
874
+ },
875
+ getfield() {
876
+ let data = {}
877
+ this.bodyData.forEach((value, index) => {
878
+ data[this.bodyData[index]] = this.headData[index]
879
+ })
880
+ //合计字段打印
881
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
882
+ if (this.sumsmodel) {
883
+ Object.keys(this.sumsmodel).forEach((key) => {
884
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
902
885
  })
903
- //合计字段打印
904
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
905
- if (this.sumsmodel) {
906
- Object.keys(this.sumsmodel).forEach((key) => {
907
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
908
- })
909
- } else {
910
- this.tfoot += '暂无'
886
+ } else {
887
+ this.tfoot += '暂无'
888
+ }
889
+ this.tfoot += '</th></tr>'
890
+ return data
891
+ },
892
+ getExportField() {
893
+ return exportConfig.meterConfig
894
+ },
895
+ areas() {
896
+ let rs = []
897
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
898
+ let temp = {
899
+ label: this.$login.f.f_allArea[i].label,
900
+ value: this.$login.f.f_allArea[i].label
911
901
  }
912
- this.tfoot += '</th></tr>'
913
- return data
914
- },
915
- getExportField() {
916
- return exportConfig.meterConfig
917
- },
918
- areas() {
919
- let rs = []
902
+ rs.push(temp)
903
+ }
904
+ return [{label: '全部', value: ''}, ...rs]
905
+ },
906
+ sliceArea() {
907
+ let rs = []
908
+ if (this.$refs.paged.$refs.cri.model.f_area.length > 0) {
920
909
  for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
921
- let temp = {
922
- label: this.$login.f.f_allArea[i].label,
923
- value: this.$login.f.f_allArea[i].label
924
- }
925
- rs.push(temp)
926
- }
927
- return [{label: '全部', value: ''}, ...rs]
928
- },
929
- sliceArea() {
930
- let rs = []
931
- if (this.$refs.paged.$refs.cri.model.f_area.length > 0) {
932
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
933
- if (this.$login.f.f_allArea[i].label === this.$refs.paged.$refs.cri.model.f_area[0]) {
934
- rs = this.$login.f.f_allArea[i].value
935
- }
910
+ if (this.$login.f.f_allArea[i].label === this.$refs.paged.$refs.cri.model.f_area[0]) {
911
+ rs = this.$login.f.f_allArea[i].value
936
912
  }
937
913
  }
938
- return [{label: '全部', value: ''}, ...rs]
939
- },
940
- usertypes() {
941
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
942
- },
943
- // gasproperties() {
944
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
945
- // },
946
-
947
- metertypes() {
948
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
949
- },
950
- // meterbrands() {
951
- // let arr = []
952
- // this.$MagGetSaleParam.getGasbrand().forEach((item) => {
953
- // let temp = {}
954
- // temp.label = item.label
955
- // temp.value = item.value.f_meter_brand
956
- // arr.push(temp)
957
- // })
958
- // return [{label: '全部', value: ''}, ...arr]
959
- // },
960
- pricetypes() {
961
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
962
- },
963
- tablestate() {
964
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
965
- },
966
- bgl(){
967
- return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
968
- },
969
- usergrade(){
970
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
971
- },
972
- usestate(){
973
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用状态')]
974
914
  }
915
+ return [{label: '全部', value: ''}, ...rs]
916
+ },
917
+ usertypes() {
918
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
919
+ },
920
+ // gasproperties() {
921
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
922
+ // },
923
+
924
+ metertypes() {
925
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
926
+ },
927
+ // meterbrands() {
928
+ // let arr = []
929
+ // this.$MagGetSaleParam.getGasbrand().forEach((item) => {
930
+ // let temp = {}
931
+ // temp.label = item.label
932
+ // temp.value = item.value.f_meter_brand
933
+ // arr.push(temp)
934
+ // })
935
+ // return [{label: '全部', value: ''}, ...arr]
936
+ // },
937
+ pricetypes() {
938
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
939
+ },
940
+ tablestate() {
941
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
942
+ },
943
+ bgl() {
944
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
945
+ },
946
+ usergrade() {
947
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
948
+ },
949
+ usestate() {
950
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用状态')]
975
951
  }
976
952
  }
953
+ }
977
954
  </script>
978
955
  <style>
979
- .back-red{ /* 红色背景 */
980
- background-color: #F6C6CE;
981
- }
982
- .back-blue{ /* 蓝色背景 */
956
+ .back-red {
957
+ /* 红色背景 */
958
+ background-color: #F6C6CE;
959
+ }
983
960
 
984
- }
961
+ .back-blue {
962
+ /* 蓝色背景 */
963
+
964
+ }
985
965
  </style>