sale-client 4.2.133 → 4.2.134

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 (58) hide show
  1. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.2.1/gc.properties +0 -0
  4. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  6. package/.gradle/vcs-1/gc.properties +0 -0
  7. package/build/dev-server.js +5 -5
  8. package/package.json +1 -1
  9. package/src/components/FilesManage/addressts/FileUserFilests.vue +671 -0
  10. package/src/components/FilesManage/ncUserinfoList.vue +315 -0
  11. package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +107 -0
  12. package/src/components/SendCard/SendCardData.vue +208 -0
  13. package/src/components/accounts/accountAdd.vue +276 -0
  14. package/src/components/accounts/accountsList.vue +183 -0
  15. package/src/components/accounts/accountsManage.vue +87 -0
  16. package/src/components/common/chargeinfo/chargeinfo.vue +55 -0
  17. package/src/components/common/userinfo_detail/config/exportConfig.js +85 -0
  18. package/src/components/ncarchives/ncArchivesAdd.vue +468 -0
  19. package/src/components/ncarchives/ncArchivesList.vue +159 -0
  20. package/src/components/ncarchives/ncUserfilesList.vue +373 -0
  21. package/src/components/ncarchives/ncarchivesmanage.vue +80 -0
  22. package/src/components/revenue/IOTArrears/arrears.vue +323 -0
  23. package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +369 -0
  24. package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +59 -0
  25. package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +59 -0
  26. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +73 -0
  27. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +73 -0
  28. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +199 -0
  29. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +24 -0
  30. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +24 -0
  31. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +185 -0
  32. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +185 -0
  33. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +356 -0
  34. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +148 -0
  35. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +136 -0
  36. package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +65 -0
  37. package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +483 -0
  38. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +279 -0
  39. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +265 -0
  40. package/src/components/thirdapply/thirdAdd.vue +289 -0
  41. package/src/components/thirdapply/thirdList.vue +162 -0
  42. package/src/components/thirdapply/thirdManage.vue +74 -0
  43. package/src/components/webMeter/InstructQuery.vue +414 -0
  44. package/src/components/webMeter/ParamSet/ParamSet.vue +556 -0
  45. package/src/components/webMeter/ParamSet/ParamSetForm.vue +296 -0
  46. package/src/components/webMeter/WebUserHand.vue +483 -0
  47. package/src/components/webMeter/instructionView/NewQueryInstruct.vue +509 -0
  48. package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +48 -0
  49. package/src/components/webMeter/webManage/NewMeterList.vue +461 -0
  50. package/src/filiale/yangchun/ChangeMeter.vue +1351 -1351
  51. package/src/filiale/yuncheng/ChangeMeter.vue +1149 -1149
  52. package/src/filiale/yuncheng/FileManageService.js +469 -469
  53. package/src/filiale/yuncheng/ParamSet.vue +669 -0
  54. package/src/filiale/yuncheng/ParamSetForm.vue +406 -0
  55. package/src/filiale/yuncheng/sale.js +2 -0
  56. package/src/main.js +1 -1
  57. package/src/plugins/FileManageServicets.js +214 -0
  58. package/src/plugins/GetImg.js +53 -0
@@ -0,0 +1,669 @@
1
+ <template>
2
+ <div class="basic-main" style="height:100%" >
3
+ <criteria-paged :model='model' v-ref:paged>
4
+ <criteria :model='model' partial='criteria' v-ref:criteria @condition-changed='$parent.selfSearch'>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-3" style="width:20%">
8
+ <label class="font_normal_body" >气表协议类型</label>
9
+ <v-select style="width:60%" title="气表协议类型"
10
+ placeholder='气表协议类型'
11
+ :value.sync="model.f_metertype"
12
+ v-model="model.f_metertype"
13
+ :options='$parent.$parent.metertype'
14
+ condition="f_metertype = '{}'"
15
+ close-on-select
16
+ :value-single="true" v-ref:brand> </v-select>
17
+ </div>
18
+ <div class="col-sm-2">
19
+ <label class="font_normal_body">气表品牌</label>
20
+ <v-select
21
+ placeholder='气表品牌'
22
+ :value.sync="$parent.$parent.f_gasbrand_id"
23
+ style="width:60%"
24
+ v-model="$parent.$parent.f_gasbrand_id"
25
+ :options='$parent.$parent.meterbrand'
26
+ condition="f_gasbrand_id = '{}'"
27
+ close-on-select></v-select>
28
+ </div>
29
+ <div class="col-sm-2">
30
+ <label class="font_normal_body">气表型号</label>
31
+ <v-select :value.sync="model.f_meter_style"
32
+ v-model="model.f_meter_style"
33
+ :options='$parent.$parent.meterstyle[$parent.$parent.f_gasbrand_id]' placeholder='请选择'
34
+ condition="f_gasmodel_id = '{}'"
35
+ close-on-select></v-select>
36
+ </div>
37
+ <div class="col-sm-2">
38
+ <label class="font_normal_body">客户编号</label>
39
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search "
40
+ v-model="model.f_userinfo_code"
41
+ placeholder='客户编号'
42
+ condition="f_userinfo_code like '%{}%'"
43
+ >
44
+ </div>
45
+ <div class="span" style="float:right;">
46
+ <button style="float: right" class="button_search button_spacing" @click="search()" v-el:cba>查询</button>
47
+ <button style="float: right" class="button_search button_spacing" v-show="$parent.$parent.setable" @click="$parent.$parent.showParamDefault()" v-el:cba>设置品牌默认参数</button>
48
+ <button style="float: right" class="button_search button_spacing" v-show="$parent.$parent.setable" @click="$parent.$parent.showParam()" v-el:cba>设置参数</button>
49
+ <div style="float: right" class="button_spacing"
50
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
51
+ @click="$parent.$parent.hidden()"></div>
52
+ </div>
53
+ </div>
54
+ <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="col-sm-2" >
56
+ <label class="font_normal_body">组织机构</label>
57
+ <res-select :initresid='$parent.$parent.curorgid'
58
+ @res-select="$parent.$parent.getorg"
59
+ class="select select_list"
60
+ restype='organization'
61
+ style="width: 60%">
62
+ </res-select>
63
+ </div>
64
+ <div class="col-sm-2 ">
65
+ <label class="font_normal_body">表&emsp;号&emsp;</label>
66
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
67
+ v-model="model.f_meternumber"
68
+ placeholder='表号'
69
+ condition="f_meternumber like '%{}%'"
70
+ >
71
+ </div>
72
+ <div class="col-sm-2 ">
73
+ <label class="font_normal_body">客户姓名</label>
74
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
75
+ v-model="model.f_user_name"
76
+ placeholder='客户姓名'
77
+ condition="f_user_name = '{}'"
78
+ >
79
+ </div>
80
+ <div class="col-sm-2 ">
81
+ <label class="font_normal_body">小&emsp;区&emsp;</label>
82
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
83
+ v-model="model.f_residential_area"
84
+ placeholder='小区'
85
+ condition="f_residential_area like '%{}%'"
86
+ >
87
+ </div>
88
+ <div class="col-sm-2">
89
+ <label class="font_normal_body">用户类型</label>
90
+ <v-select
91
+ placeholder='用户类型'
92
+ value-single="true"
93
+ style="width:60%"
94
+ :value.sync="model.f_user_type"
95
+ v-model="model.f_user_type"
96
+ :options='$parent.$parent.Gasusertype'
97
+ close-on-select condition="f_user_type ='{}'">
98
+ </v-select>
99
+ </div>
100
+
101
+ <div class="col-sm-2">
102
+ <label class="font_normal_body">用气性质</label>
103
+ <v-select
104
+ placeholder='用气性质'
105
+ value-single="true"
106
+ :value.sync="model.f_gasproperties"
107
+ style="width:60%"
108
+ v-model="model.f_gasproperties"
109
+ :options='$parent.$parent.Gasproperties'
110
+ close-on-select condition="f_gasproperties ='{}'">
111
+ </v-select>
112
+ </div>
113
+ <div class="col-sm-2">
114
+ <label class="font_normal_body">通气日期</label>
115
+ <datepicker id="f_gas_date" placeholder="开始时间" style="width:60%"
116
+ v-model="model.f_start_date"
117
+ :value.sync="model.f_start_date"
118
+ :format="'yyyy-MM-dd HH:mm:ss'"
119
+ condition="f_gas_date >= '{}' "
120
+ :show-reset-button="true">
121
+ </datepicker>
122
+ </div>
123
+ <div class="col-sm-2">
124
+ <label class="font_normal_body">至&emsp;&emsp;&emsp;</label>
125
+ <datepicker id="f_gas_date" placeholder="结束时间" style="width:60%"
126
+ v-model="model.f_end_date"
127
+ :value.sync="model.f_end_date"
128
+ :format="'yyyy-MM-dd HH:mm:ss'"
129
+ condition="f_gas_date <= '{}' "
130
+ :show-reset-button="true">
131
+ </datepicker>
132
+ </div>
133
+ <div class="col-sm-2">
134
+ <label class="font_normal_body">安装日期</label>
135
+ <datepicker id="f_install_date" placeholder="开始时间" style="width:60%"
136
+ v-model="model.f_install_start"
137
+ :value.sync="model.f_install_start"
138
+ :format="'yyyy-MM-dd HH:mm:ss'"
139
+ condition="f_install_date >= '{}' "
140
+ :show-reset-button="true">
141
+ </datepicker>
142
+ </div>
143
+ <div class="col-sm-2">
144
+ <label class="font_normal_body">至&emsp;&emsp;&emsp;</label>
145
+ <datepicker id="f_gas_date" placeholder="结束时间" style="width:60%"
146
+ v-model="model.f_install_end"
147
+ :value.sync="model.f_install_end"
148
+ :format="'yyyy-MM-dd HH:mm:ss'"
149
+ condition="f_install_date <= '{}' "
150
+ :show-reset-button="true">
151
+ </datepicker>
152
+ </div>
153
+ <div class="col-sm-2 ">
154
+ <label class="font_normal_body">用气地址</label>
155
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
156
+ v-model="model.f_address"
157
+ placeholder='用气地址'
158
+ condition="f_address like '%{}%'"
159
+ >
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </criteria>
164
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" :optional="true">
165
+ <template partial='head'>
166
+ <tr>
167
+ <!-- <th style="text-align:center">-->
168
+ <!-- <nobr>全选</nobr>-->
169
+ <!-- <input @keyup.enter="search" style="width:60%" type="checkbox" v-model='checked1'-->
170
+ <!-- @click="$parent.$parent.$parent.checkedALL()">-->
171
+ <!-- </th>-->
172
+ <!--<th >操作</th>-->
173
+ <th style="text-align:center">
174
+ <nobr>客户编号</nobr>
175
+ </th>
176
+ <th style="text-align:center">
177
+ <nobr>客户姓名</nobr>
178
+ </th>
179
+ <th style="text-align:center">
180
+ <nobr>用气地址</nobr>
181
+ </th>
182
+ <th style="text-align:center">
183
+ <nobr>表编号</nobr>
184
+ </th>
185
+ <th style="text-align:center">
186
+ <nobr>客户类型</nobr>
187
+ </th>
188
+ <th style="text-align:center">
189
+ <nobr>用气性质</nobr>
190
+ </th>
191
+ <th style="text-align:center">
192
+ <nobr>气表品牌</nobr>
193
+ </th>
194
+
195
+ <th style="text-align:center">
196
+ <nobr>气表型号</nobr>
197
+ </th>
198
+ <th style="text-align:center">
199
+ <nobr>安装日期</nobr>
200
+ </th>
201
+ <th style="text-align:center">
202
+ <nobr>通气日期</nobr>
203
+ </th>
204
+ <th style="text-align:center">
205
+ <nobr>阀门状态</nobr>
206
+ </th>
207
+ <th style="text-align:center" v-if="$parent.$parent.$parent.setable">
208
+ <nobr>查看</nobr>
209
+ </th>
210
+
211
+ </tr>
212
+ </template>
213
+ <template partial='body'>
214
+ <tr>
215
+ <!--<td>-->
216
+ <!--<button type="button" name="button" class="btn btn-link" v-if="row.f_user_state === '正常'"-->
217
+ <!--@click.stop="$parent.$parent.$parent.paramSet(row)">参数设置-->
218
+ <!--</button>-->
219
+ <!--</td>-->
220
+ <td style="text-align:center">
221
+ <nobr>{{row.f_userinfo_code}}</nobr>
222
+ </td>
223
+ <td style="text-align:center">
224
+ <nobr>{{row.f_user_name}}</nobr>
225
+ </td>
226
+ <td>
227
+ <nobr>{{row.f_address}}</nobr>
228
+ </td>
229
+ <td style="text-align:center">
230
+ <nobr>{{row.f_meternumber}}</nobr>
231
+ </td>
232
+ <td style="text-align:center">
233
+ <nobr>{{row.f_user_type}}</nobr>
234
+ </td>
235
+ <td style="text-align:center">
236
+ <nobr>{{row.f_gasproperties}}</nobr>
237
+ </td>
238
+ <td style="text-align:center">
239
+ <nobr>{{row.f_meter_brand}}</nobr>
240
+ </td>
241
+ <td style="text-align:center">
242
+ <nobr>{{row.f_meter_style}}</nobr>
243
+ </td>
244
+ <td style="text-align:center">
245
+ <nobr>{{row.f_install_date}}</nobr>
246
+ </td>
247
+ <td style="text-align:center">
248
+ <nobr>{{row.f_gas_date}}</nobr>
249
+ </td>
250
+ <td style="text-align:center">
251
+ <nobr>{{row.f_valvestate}}</nobr>
252
+ </td>
253
+ <td style="text-align:center" v-if="$parent.$parent.$parent.setable">
254
+ <nobr v-if="row.f_number > 0">
255
+ <button type="button" name="button" class="btn btn-link"
256
+ @click.stop="$parent.$parent.$parent.showParamHistory(row)">查看设置</button>
257
+ </nobr>
258
+ </td>
259
+
260
+ </tr>
261
+ </template>
262
+ <template partial='foot'></template>
263
+ </data-grid>
264
+ </criteria-paged>
265
+ <modal :show.sync="showParame" v-ref:modal backdrop="false" width="1500px">
266
+ <header slot="modal-header" class="modal-header">
267
+ <button type="button" class="close" @click="closeParam"><span>&times;</span></button>
268
+ <h3 class="modal-title" style="text-align: center;">参数设置</h3>
269
+ </header>
270
+ <article slot="modal-body" class="flex-row" >
271
+ <param-set-form :data="map" :condition="conditionMsg" @showparam="showparam" @clear="clear" :gasbrandid="f_gasbrand_id" :user="user" :checked1 ="checked1" v-ref:form></param-set-form>
272
+ </article>
273
+ <footer slot="modal-footer" class="modal-footer">
274
+ </footer>
275
+ </modal>
276
+ <modal :show.sync="paramHistory" v-ref:modal backdrop="false" width="1500px">
277
+ <header slot="modal-header" class="modal-header">
278
+ <button type="button" class="close" @click="closeParamHistory"><span>&times;</span></button>
279
+ <h3 class="modal-title" style="text-align: center;">参数设置记录</h3>
280
+ </header>
281
+ <article slot="modal-body" class="flex-row" >
282
+ <param-history @clear="clear" :gasbrandid="f_gasbrand_id" :user="row" v-ref:history></param-history>
283
+ </article>
284
+ <footer slot="modal-footer" class="modal-footer">
285
+ <!-- <button type="button" class="btn btn-primary" @click='confirm()'>确认</button>-->
286
+ </footer>
287
+ </modal>
288
+ </div>
289
+ </template>
290
+
291
+ <script>
292
+ import {PagedList, HttpResetClass} from 'vue-client'
293
+ import ParamSetForm from './ParamSetForm'
294
+ let initGen = async function (self) {
295
+ await self.$LoadParams.loadParam()
296
+ let res = self.$GetSaleParam.getGasbrand()
297
+ // let condition = 'f_meter_type = \'物联网表\''
298
+ // self.$resetpost('/api/af-revenue/sql/getAllBrands',{data:{condition:condition}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
299
+ let arr = []
300
+ res.forEach((item) => {
301
+ if (item.value.f_meter_type === '物联网表') {
302
+ let temp = {}
303
+ temp.label = item.label
304
+ temp.value = item.value.id
305
+ arr.push(temp)
306
+ let styleArr = []
307
+ for (let row of item.value.gasmodel) {
308
+ styleArr.push({label: row.label, value: row.value.id})
309
+ }
310
+ self.meterstyle[temp.value] = styleArr
311
+ }
312
+ })
313
+ self.meterbrand = arr
314
+ // })
315
+ }
316
+ export default {
317
+ components: {ParamSetForm},
318
+ title: '参数设置',
319
+ name: 'param-set',
320
+ data () {
321
+ return {
322
+ user: [],
323
+ meterbrand: [],
324
+ meterstyle: {},
325
+ curorgid: [this.$login.f.orgid],
326
+ f_orgid: '',
327
+ model: new PagedList('api/af-revenue/sql/iot_getOpertionList', 20),
328
+ searchshow: false,
329
+ showParame: false,
330
+ paramHistory: false,
331
+ row: null,
332
+ setable: true,
333
+ criteriaShow: false,
334
+ condition: '',
335
+ f_gasbrand_id: null,
336
+ orgcondition: ' and f_orgid = ' + this.$login.f.orgid,
337
+ isShowUserException: false,
338
+ val1: '',
339
+ f_beizhu: '',
340
+ Gasusertype: [],
341
+ Gasproperties: [],
342
+ checked1: false,
343
+ WarningType: [
344
+ {label: '全部', value: ''}
345
+ ],
346
+ initres: {
347
+ org: [this.$login.f.orgid],
348
+ dep: [],
349
+ user: []
350
+ },
351
+ styles: false,
352
+ excelTable: true,
353
+ getfield: {
354
+ 'f_orgname': '组织机构',
355
+ 'f_userinfo_code': '客户号',
356
+ 'f_user_type': '客户类型',
357
+ 'f_gasproperties': '用气性质',
358
+ 'f_user_name': '客户姓名',
359
+ 'f_address': '用气地址',
360
+ 'f_gas_date': '通气日期',
361
+ 'f_install_date':'安装日期',
362
+ 'f_meternumber': '表钢号',
363
+ 'f_meter_brand': '气表品牌',
364
+ 'f_user_id': '表编号',
365
+ 'f_meter_style': '气表型号',
366
+ 'f_valvestate': '阀门状态'
367
+
368
+ },
369
+ obj: {
370
+ userid: this.$login.f.id,
371
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
372
+ res: this.$login.f.f_fengongsi,
373
+ resids: this.$login.f.orgid
374
+ },
375
+ // 开关阀权限
376
+ valveLimit: false,
377
+ // 设置参数权限
378
+ Setarameterermissions: false,
379
+ parameterType: '',
380
+ map: new Map(),
381
+ conditionMsg: '',
382
+ isCheckAll: false
383
+ }
384
+ },
385
+ ready () {
386
+ initGen(this)
387
+ // this.model.search('1=1')
388
+ },
389
+ methods: {
390
+ getorg (val) {
391
+ this.f_orgid = this.$login.convertToIn(val)
392
+ },
393
+ // let condition = 'f_meter_type = "物联网表"'
394
+ // this.$resetpost('/api/af-revenue/sql/getAllBrands',{data:{condition:condition}},{}).then((res)=>{
395
+ // let arr=[]
396
+ // res.data.forEach((item) => {
397
+ // let temp = {}
398
+ // temp.label = item.f_meter_brand
399
+ // temp.value = item.f_gasbrand_id
400
+ // arr.push(temp)
401
+ // })
402
+ // this.meterbrand = [{label: '全部', value: ''}, ...arr]
403
+ // })
404
+ showParamHistory (row) {
405
+ this.paramHistory = !this.paramHistory
406
+ this.row = [row]
407
+ },
408
+ closeParamHistory () {
409
+ this.paramHistory = !this.paramHistory
410
+ this.$refs.history.row = {}
411
+ },
412
+ hidden () {
413
+ this.criteriaShow = !this.criteriaShow
414
+ },
415
+ async showParamDefault () {
416
+ this.user = null
417
+ this.map.clear()
418
+ await this.$refs.form.getBrandParamsHistory()
419
+ this.showParame = !this.showParame
420
+ },
421
+ showParam () {
422
+ this.conditionMsg = ''
423
+ if (this.$refs.paged.$refs.grid.getRowData().length === 0) {
424
+ this.user = []
425
+ } else {
426
+ this.user = this.$refs.paged.$refs.grid.getRowData()
427
+ }
428
+ if (this.user.length === 0) {
429
+ this.$showMessage('是否要设置查询出来的所有表参数', ['confirm', 'cancel']).then((res) => {
430
+ if (res === 'confirm') {
431
+ this.isCheckAll = true
432
+ let conditionMsg = ''
433
+ if (this.$refs.paged.$refs.criteria.model.f_gasbrand_id) {
434
+ this.meterbrand.forEach((item) => {
435
+ if (item.value === this.$refs.paged.$refs.criteria.model.f_gasbrand_id) {
436
+ conditionMsg += ('气表品牌:' + item.label + ';')
437
+ }
438
+ })
439
+ }
440
+ if (this.$refs.paged.$refs.criteria.model.f_userinfo_code) {
441
+ conditionMsg += ('客户编号:' + this.$refs.paged.$refs.criteria.model.f_userinfo_code + ';')
442
+ }
443
+ if (this.$refs.paged.$refs.criteria.model.f_meternumber) {
444
+ conditionMsg += ('表号:' + this.$refs.paged.$refs.criteria.model.f_meternumber + ';')
445
+ }
446
+ if (this.$refs.paged.$refs.criteria.model.f_meternumber) {
447
+ conditionMsg += ('表号:' + this.$refs.paged.$refs.criteria.model.f_meternumber + ';')
448
+ }
449
+ if (this.$refs.paged.$refs.criteria.model.f_user_name) {
450
+ conditionMsg += ('客户姓名:' + this.$refs.paged.$refs.criteria.model.f_user_name + ';')
451
+ }
452
+ if (this.$refs.paged.$refs.criteria.model.f_residential_area) {
453
+ conditionMsg += ('小区:' + this.$refs.paged.$refs.criteria.model.f_residential_area + ';')
454
+ }
455
+ this.conditionMsg = conditionMsg
456
+ this.$resetpost('api/af-revenue/sql/iot_getOpertionList', {data: {condition: this.condition}}, {resolveMsg: null, rejectMsg: null}).then((rat) => {
457
+ this.user = rat.data
458
+ console.log('user',this.user.length,this.user)
459
+ this.mapset(rat.data)
460
+ this.showParame = !this.showParame
461
+ })
462
+ }
463
+ })
464
+ } else {
465
+ this.isCheckAll = false
466
+ this.showParame = !this.showParame
467
+ }
468
+ },
469
+ closeParam () {
470
+ // this.$refs.form.row={}
471
+ this.showParame = !this.showParame
472
+ // if (this.isCheckAll) {
473
+ this.map.clear()
474
+ this.user = []
475
+ // }
476
+ // this.isCheckAll = false
477
+ },
478
+ clear () {
479
+ this.$refs.form.paramtype = ''
480
+ // this.isCheckAll = false
481
+ this.showParame = false
482
+ this.map.clear()
483
+ this.user = []
484
+ // this.unCheckAll()
485
+ this.search()
486
+ },
487
+ selfSearch (args) {
488
+ if (this.f_orgid) {
489
+ args.condition = `f_orgid in ${this.f_orgid} and ${args.condition}`
490
+ }
491
+ if (this.f_gasbrand_id.length > 0) {
492
+ args.condition += ' and f_gasbrand_id=' + this.f_gasbrand_id[0]
493
+ this.condition = args.condition
494
+ this.model.search(args.condition, args.model)
495
+ } else {
496
+ this.$showAlert(`请先选择气表品牌`, 'warning', 2000)
497
+ }
498
+ this.$refs.paged.$refs.grid.selectInit()
499
+ // this.isCheckAll = false
500
+ },
501
+ showparam (setable) {
502
+ this.setable = setable
503
+ if (!setable) {
504
+ this.map.clear()
505
+ this.user = []
506
+ // this.isCheckAll = false
507
+ }
508
+ },
509
+ search () {
510
+ this.$refs.paged.$refs.criteria.search()
511
+ },
512
+ mapset (array) {
513
+ this.map.clear()
514
+ for (let i = 0; i < array.length; i++) {
515
+ let userid = array[i].f_userfiles_id
516
+ let alias = array[i].f_alias
517
+ let userinfoid = array[i].f_userinfo_code
518
+ let f_orgname = array[i].f_orgname
519
+ let f_orgid = array[i].f_depid
520
+ let f_meternumber = array[i].f_meternumber
521
+ this.map.set(userid, {
522
+ id: null,
523
+ f_user_id: userid,
524
+ f_alias: alias,
525
+ f_userinfo_id: userinfoid,
526
+ f_orgname: f_orgname,
527
+ f_orgid: f_orgid,
528
+ f_meternumber: f_meternumber
529
+ })
530
+ }
531
+ },
532
+ back () {
533
+ this.$parent.msg = ''
534
+ },
535
+ clearmsg () {
536
+ this.$refs.paged.$refs.criteria.model = {}
537
+ },
538
+ clickshow () {
539
+ this.searchshow = !this.searchshow
540
+ },
541
+ getRes (obj) {
542
+ this.orgcondition = obj
543
+ },
544
+ // unCheckAll () {
545
+ // let box = document.getElementsByName('opertioninput')
546
+ // for (var i = 0; i < box.length; i++) {
547
+ // box[i].checked = false
548
+ // }
549
+ // },
550
+ // checkedALL () {
551
+ // this.checked1 = !this.checked1
552
+ // let box = document.getElementsByName('opertioninput')
553
+ // for (var i = 0; i < box.length; i++) {
554
+ // box[i].checked = this.checked1
555
+ // }
556
+ // },
557
+ // checked (val) {
558
+ // let userid = val.f_userfiles_id
559
+ // if (this.map.has(userid)) {
560
+ // this.map.delete(userid)
561
+ // /* 遍历数组,然后根据选中的状态获取对应的下标,然后进行删除 */
562
+ // for (let i = 0; i < this.user.length; i++) {
563
+ // if (val.f_userfiles_id === this.user[i].f_userfiles_id) {
564
+ // this.user.splice(i, 1)
565
+ // }
566
+ // }
567
+ // } else {
568
+ // this.user.push(val)
569
+ // this.map.set(userid, {
570
+ // id: null,
571
+ // f_user_id: userid,
572
+ // f_alias: val.f_alias,
573
+ // f_userinfo_id: val.f_userinfo_id,
574
+ // f_orgname: val.f_orgname,
575
+ // f_orgid: val.f_orgid,
576
+ // f_meternumber: val.f_meternumber
577
+ // })
578
+ // }
579
+ // },
580
+ showModal (val) {
581
+ this.val1 = val
582
+ this.isShowUserException = true
583
+ },
584
+ close () {
585
+ this.isShowUserException = false
586
+ }
587
+ },
588
+ computed: {
589
+ /* WarningType() {
590
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表品牌')]
591
+ }, */
592
+ /* Warningstyle() {
593
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('燃气表型号')]
594
+ }, */
595
+ Gasusertype () {
596
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
597
+ },
598
+ Gasproperties () {
599
+ let rs = []
600
+ if (this.$refs.paged.$refs.criteria.model.f_user_type) {
601
+ rs = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
602
+ }
603
+ return rs
604
+ },
605
+ parameterTypeList () {
606
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('设置参数')]
607
+ },
608
+ signtype1 () {
609
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('标记名称')]
610
+ },
611
+ parameterState () {
612
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('标记状态')]
613
+ },
614
+ userType () {
615
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
616
+ },
617
+ userfilesState () {
618
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('上报状态')]
619
+ },
620
+ valvestate () {
621
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')]
622
+ },
623
+ instructState () {
624
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('指令状态')]
625
+ },
626
+ metertype () {
627
+ return this.$appdata.getParam('气表协议类型')
628
+ }
629
+ },
630
+ watch: {
631
+ 'f_gasbrand_id' (val) {
632
+ if (val.length > 0) {
633
+ this.$refs.paged.$refs.criteria.model.f_gasbrand_id = val[0]
634
+ this.search()
635
+ }
636
+ }
637
+ // 'checked1' (val) {
638
+ // if (val) {
639
+ // this.user = this.model.rows
640
+ // this.mapset(this.model.rows)
641
+ // } else {
642
+ // this.map.clear()
643
+ // this.user = []
644
+ // }
645
+ // }
646
+ }
647
+ }
648
+ </script>
649
+
650
+ <style scoped>
651
+ .PanelTR {
652
+ width: 100%;
653
+ height: 40px;
654
+ }
655
+ .dleft{
656
+ padding: 10px;background-color: #ffffff;border-radius: 14px;
657
+ box-shadow: 0px 1px 10px 0px rgba(2, 56, 104, 0.2);
658
+ padding: 10px;
659
+ }
660
+ .PanelTD {
661
+ width: 5%;
662
+ }
663
+
664
+ .btn-relative {
665
+ position: relative;
666
+ left: 25px;
667
+ top: 15px;
668
+ }
669
+ </style>